html_url
stringlengths
48
51
title
stringlengths
5
268
comments
stringlengths
70
51.8k
body
stringlengths
0
29.8k
comment_length
int64
16
1.52k
text
stringlengths
164
54.1k
embeddings
sequencelengths
768
768
https://github.com/huggingface/datasets/issues/2820
Downloading “reddit” dataset keeps timing out.
Oh, then could you try deleting the parent directory `1ec12301abba4daa60eb3a90e53529b5b173296b22dc3bef3186e205c75e594c` instead ? This way the download manager will know that it has to uncompress the data again
## Describe the bug A clear and concise description of what the bug is. Everytime I try and download the reddit dataset it times out before finishing and I have to try again. There is some timeout error that I will post once it happens again. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("reddit", ignore_verifications=True, cache_dir="/Volumes/My Passport for Mac/og-chat-data") ``` ## Expected results A clear and concise description of the expected results. I would expect the download to finish, or at least provide a parameter to extend the read timeout window. ## Actual results Specify the actual results or traceback. Shown below in error message. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: macOS - Python version: 3.9.6 (conda env) - PyArrow version: N/A
27
Downloading “reddit” dataset keeps timing out. ## Describe the bug A clear and concise description of what the bug is. Everytime I try and download the reddit dataset it times out before finishing and I have to try again. There is some timeout error that I will post once it happens again. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("reddit", ignore_verifications=True, cache_dir="/Volumes/My Passport for Mac/og-chat-data") ``` ## Expected results A clear and concise description of the expected results. I would expect the download to finish, or at least provide a parameter to extend the read timeout window. ## Actual results Specify the actual results or traceback. Shown below in error message. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: macOS - Python version: 3.9.6 (conda env) - PyArrow version: N/A Oh, then could you try deleting the parent directory `1ec12301abba4daa60eb3a90e53529b5b173296b22dc3bef3186e205c75e594c` instead ? This way the download manager will know that it has to uncompress the data again
[ -0.32295528054237366, -0.1548748016357422, -0.09585165977478027, 0.21227681636810303, 0.17278429865837097, 0.20890861749649048, 0.031166020780801773, 0.22009479999542236, -0.04300596937537193, -0.05646982789039612, -0.07228399068117142, 0.10256894677877426, 0.2630369961261749, -0.028436090797185898, -0.10156664997339249, 0.2591443359851837, 0.07518614083528519, -0.15329043567180634, -0.13400256633758545, 0.09376220405101776, -0.045359451323747635, 0.1273859441280365, -0.1522025465965271, -0.1518074870109558, -0.25158390402793884, -0.0813380777835846, -0.11239496618509293, -0.013346697203814983, -0.24176377058029175, -0.31366169452667236, 0.2217780500650406, 0.19771434366703033, -0.06703345477581024, 0.6311798691749573, -0.0001082193193724379, -0.16610729694366455, 0.2970058023929596, 0.060700561851263046, -0.44347649812698364, -0.5188804268836975, -0.21586216986179352, -0.18760167062282562, 0.02437449060380459, 0.01841133087873459, 0.13358654081821442, 0.07640668004751205, 0.06715577840805054, -0.360951691865921, 0.3123518228530884, 0.3766128718852997, 0.22163043916225433, 0.2938491404056549, 0.18556280434131622, -0.10556569695472717, 0.155181884765625, 0.02368014119565487, 0.08088672906160355, 0.436454713344574, 0.14423809945583344, -0.13475018739700317, 0.169661745429039, 0.06608638912439346, -0.09954264014959335, 0.22067740559577942, -0.11142563819885254, -0.008921841159462929, 0.18440309166908264, -0.45538613200187683, -0.03591351956129074, 0.1294727921485901, 0.8906874060630798, -0.03976872190833092, -0.3760147988796234, -0.29682478308677673, 0.13374049961566925, 0.027068762108683586, 0.42624998092651367, 0.4283312261104584, -0.3859822452068329, 0.23892700672149658, -0.266323447227478, -0.022859890013933182, 0.05204920098185539, 0.3368499279022217, 0.0947217345237732, -0.022938372567296028, -0.007630632724612951, 0.1902259737253189, 0.19246935844421387, -0.04769323393702507, 0.3261297941207886, -0.35126739740371704, 0.025116493925452232, -0.09284713864326477, -0.3812163472175598, -0.0857715830206871, 0.01380883064121008, 0.17820312082767487, 0.16652579605579376, 0.05689239874482155, -0.036149609833955765, -0.2665974199771881, -0.156130850315094, 0.15700523555278778, 0.4282911419868469, 0.016672464087605476, -0.03587684407830238, 0.14702312648296356, 0.2235931009054184, -0.059780530631542206, -0.04540570452809334, 0.07352349162101746, 0.05018487945199013, -0.034241512417793274, 0.10984324663877487, -0.09828781336545944, 0.29767799377441406, -0.16935929656028748, -0.2574082911014557, -0.0296503733843565, 0.15538527071475983, -0.11377598345279694, -0.25343143939971924, 0.1721237301826477, -0.4568336606025696, 0.30149075388908386, -0.07334937155246735, 0.10334931313991547, -0.3224067687988281, -0.3715544044971466, -0.07703246921300888, 0.01784215122461319, -0.25355350971221924, -0.11499949544668198, -0.04782707244157791, -0.08659053593873978, 0.05565885826945305, 0.2549179792404175, -0.003471331438049674, -0.31693127751350403, -0.002110903151333332, -0.23429682850837708, -0.09617649763822556, 0.22818341851234436, -0.08994334191083908, 0.4282738268375397, 0.05636383965611458, 0.13155397772789001, -0.05672009289264679, -0.0037883867044001818, -0.34103626012802124, -0.2845477759838104, -0.13759823143482208, 0.2481367141008377, -0.22556950151920319, -0.24281775951385498, -0.1524554044008255, -0.08708667010068893, 0.12952294945716858, 0.043893489986658096, -0.09515939652919769, -0.03794654831290245, 0.12157385051250458, -0.11298564076423645, -0.08052410930395126, 0.3380517065525055, -0.43352949619293213, 0.28704145550727844, -0.2611807882785797, 0.0653514564037323, 0.23869432508945465, 0.2952558696269989, -0.20748722553253174, 0.020777396857738495, -0.2533314526081085, -0.14450635015964508, 0.28316494822502136, -0.1660374402999878, -0.709290623664856, 0.06703273952007294, -0.38655734062194824, 0.054493822157382965, -0.09515691548585892, 0.26934534311294556, 0.23800837993621826, -0.13280637562274933, 0.03596755117177963, 0.42817023396492004, -0.24065469205379486, 0.0688110738992691, -0.38967323303222656, -0.20890875160694122, 0.05800759792327881, 0.12211356312036514, -0.06808149069547653, 0.03842318058013916, -0.14750151336193085, -0.030604854226112366, 0.30821654200553894, 0.3910115361213684, 0.09567265212535858, 0.30663183331489563, -0.008559921756386757, 0.2678191363811493, 0.017574556171894073, -0.16690833866596222, -0.3697962462902069, 0.18168902397155762, 0.47220829129219055, 0.06372961401939392, -0.2675575315952301, -0.038968294858932495, -0.4558919668197632, 0.008036651648581028, -0.018616050481796265, 0.04512055218219757, 0.06060473248362541, 0.20658524334430695, 0.2361144721508026, 0.2035791426897049, -0.01894715428352356, 0.5488879084587097, 0.04799530282616615, 0.2936905324459076, -0.1253661811351776, 0.19777612388134003, -0.17986518144607544, -0.12050823122262955, 0.18510989844799042, -0.36313220858573914, 0.18163378536701202, -0.2229928970336914, -0.17260347306728363, 0.3127639591693878, 0.05405189096927643, 0.19438423216342926, 0.04773114249110222, -0.215279221534729, 0.2617833614349365, -0.14476104080677032, -0.14802487194538116, 0.4077901244163513, 0.10122267156839371, 0.05921587347984314, -0.22548530995845795, 0.005725180264562368, 0.21134279668331146, 0.17350523173809052, -0.2585217356681824, 0.13319247961044312, 0.10471104830503464, -0.004723247140645981, 0.24560946226119995, -0.0934915617108345, 0.3387974500656128, -0.24894772469997406, 0.1024932786822319, -0.16535748541355133, 0.0717942863702774, 0.32747673988342285, 0.3101590573787689, 0.05431675538420677, -0.20264355838298798, 0.22118158638477325, 0.08654563874006271, -0.1284262090921402, -0.018728183582425117, 0.43581622838974, 0.26321646571159363, 0.183912456035614, 0.27638861536979675, -0.0652683675289154, -0.1404544711112976, -0.14866819977760315, 0.18114782869815826, 0.020121576264500618, -0.007250747177749872, -0.0460745170712471, 0.13014499843120575, -0.0028623242396861315, -0.10052935779094696, -0.3409176468849182, 0.1631843000650406, 0.3060811460018158, -0.027007639408111572, -0.014439973048865795, -0.3174673914909363, -0.17550447583198547, 0.22430267930030823, -0.0507294200360775, -0.2910994291305542, -0.5441325306892395, -0.06664583832025528, 0.27324751019477844, -0.062172781676054, 0.07195957005023956, -0.10983338952064514, -0.11642280966043472, 0.37500840425491333, -0.15748608112335205, -0.023603124544024467, -0.12773257493972778, 0.017501303926110268, 0.10863039642572403, 0.23450912535190582, -0.2008153200149536, 0.30598384141921997, -0.2675751745700836, -0.2694883942604065, -0.41993939876556396, -0.003995697945356369, 0.020578861236572266, -0.17669939994812012, 0.27040499448776245, -0.17384570837020874, 0.4695633053779602, 0.10409832745790482, 0.13716839253902435, 0.11682544648647308, -0.19854478538036346, -0.07143691927194595, -0.07630724459886551, 0.08818293362855911, 0.15463688969612122, -0.062013883143663406, -0.3198409974575043, -0.25258421897888184, -0.34894630312919617, 0.14292116463184357, -0.17984525859355927, -0.010337799787521362, 0.08102510124444962, 0.1957709640264511, -0.004221090115606785, -0.06974446028470993, 0.1001497432589531, -0.20808377861976624, -0.4533271789550781, 0.49690577387809753, -0.07525023072957993, -0.2108900547027588, 0.0671745091676712, 0.21531328558921814, -0.03474786505103111, 0.25234255194664, -0.6985369920730591, 0.11773516237735748, -0.3417285978794098, 0.23115839064121246, -0.09596149623394012, -0.09154010564088821, 0.1849166303873062, -0.44457435607910156, -0.13775746524333954, 0.0578000582754612, 0.015867898240685463, -0.11996419727802277, 0.18289320170879364, 0.42539170384407043, -0.15892398357391357, 0.23614229261875153, 0.009674512781202793, 0.14785391092300415, 0.16112826764583588, 0.09447437524795532, 0.1329362839460373, 0.09862630069255829, 0.31163349747657776, 0.038288187235593796, -0.23671893775463104, -0.008222142234444618, -0.05215779319405556, -0.16884519159793854, 0.05568385869264603, 0.0042466106824576855, -0.19783727824687958, -0.1728804111480713, -0.049141090363264084, -0.30310139060020447, -0.28267645835876465, -0.07835713028907776, -0.20051313936710358, -0.02457861788570881, 0.27683115005493164, 0.0961308553814888, 0.027089513838291168, -0.2244982272386551, -0.06824055314064026, 0.022305050864815712, -0.031649406999349594, -0.1880514919757843, -0.4782492220401764, 0.16400764882564545, -0.36379483342170715, 0.21388772130012512, -0.07821479439735413, 0.2673684358596802, -0.06014604493975639, 0.069148488342762, 0.1800275593996048, 0.009743902832269669, 0.5972946286201477, -0.1228707805275917, 0.07111664116382599, -0.0421207994222641, 0.26632457971572876, -0.39593610167503357, -0.07732224464416504, 0.13076813519001007, 0.2371249794960022, 0.4672704339027405, -0.07708965986967087, -0.29897668957710266, 0.03938246890902519, 0.01094754971563816, 0.3277234733104706, 0.08523452281951904, -0.4379780888557434, 0.040949173271656036, -0.15643425285816193, -0.22099152207374573, 0.10389593243598938, 0.09664498269557953, 0.07432757318019867, -0.018769023939967155, -0.19254587590694427, 0.21589839458465576, 0.1383882611989975, 0.1051001250743866, -0.11866311728954315, 0.22499576210975647, -0.2883526086807251, 0.45661479234695435, 0.11703159660100937, -0.17513509094715118, 0.31433066725730896, 0.7368863224983215, 0.24885301291942596, -0.4469807744026184, 0.07109901309013367, -0.020480012521147728, -0.13050851225852966, 0.3000689744949341, 0.06142475828528404, -0.03964218497276306, -0.2185841053724289, 0.4220643937587738, -0.021240949630737305, 0.15746618807315826, 0.29102590680122375, 0.03611302375793457, -0.43999969959259033, -0.45560479164123535, 0.1672201305627823, 0.0991089716553688, 0.039814166724681854, 0.7080287933349609, -0.10606274753808975, 0.13491052389144897, 0.20727437734603882, -0.09534194320440292, 1.0428032875061035, -0.2065405249595642, 0.14182350039482117, 0.039207473397254944, -0.09409686923027039, 0.4687249958515167, -0.3534319996833801, 0.08537549525499344, -0.043365128338336945, 0.030495380982756615, 0.03440415486693382, -0.08453293144702911, -0.18178217113018036, 0.3168223202228546, -0.281812459230423, 0.18168698251247406, -0.23669806122779846, 0.12145332247018814, -0.1576097458600998, 0.19286629557609558, -0.37488844990730286, -0.024315619841217995, -0.13795390725135803, 0.24955283105373383, 0.038516219705343246, 0.23643743991851807, 0.025989172980189323, 0.12129393965005875, -0.12470374256372452, -0.053720343858003616, -0.6156314611434937, 0.05174557492136955, -0.16980740427970886, -0.03851534053683281, -0.3800044357776642, -0.2348262369632721, -0.06059267744421959, 0.15361568331718445, 0.1128547266125679, 0.2116144597530365, -0.04903402179479599, 0.24278044700622559, -0.1440325677394867, -0.04391549527645111, -0.04717922583222389, -0.18070930242538452, 0.12736795842647552, 0.023198196664452553, -0.33759912848472595, 0.22210480272769928, -0.056514520198106766, -0.1635819673538208, 0.23099900782108307, 0.257821261882782, 0.09681805968284607, -0.10434401035308838, 0.060571033507585526, -0.08695093542337418, 0.15474466979503632, -0.2690960466861725, 0.17428600788116455, 0.2979971468448639, 0.15704187750816345, 0.22754958271980286, -0.1475709080696106, -0.3382977843284607, -0.39095476269721985, 0.3864549398422241, 0.035689614713191986, -0.08698402345180511, 0.2533664107322693, 0.223057821393013, -0.3960118293762207, -0.3125070035457611, 0.11027661710977554, -0.546765148639679, -0.3165753185749054, 0.2736477255821228, -0.42071300745010376, 0.2876585125923157, -0.04338167607784271, -0.15753307938575745, 0.2123345583677292, 0.08395333588123322, 0.13330338895320892, -0.5559974312782288, -0.10510843247175217, -0.11521515250205994, -0.2786165475845337, 0.03141919523477554, -0.11339754611253738, -0.14512798190116882, 0.2314848154783249, -0.04552110657095909, -0.33303338289260864, 0.1012120470404625, -0.24887387454509735, 0.1280423104763031, 0.2624684274196625, -0.09278035163879395, 0.34426286816596985, -0.13488249480724335, 0.11497046053409576, 0.14287492632865906, -0.13971266150474548, -0.18040183186531067, -0.013779222033917904, 0.11844541877508163, -0.10724404454231262, -0.12021572142839432, 0.09653741866350174, -0.45418381690979004, -0.08196744322776794, 0.07035951316356659, -0.019184889271855354, 0.09943920373916626, 0.09887758642435074, -0.22017940878868103, 0.17303703725337982, -0.052403196692466736, -0.07015998661518097, 0.16506148874759674, -0.07728037983179092, 0.5235567688941956, 0.2017832249403, 0.2585538923740387, 0.10997491329908371, 0.0459434911608696, -0.5424670577049255, -0.016670530661940575, -0.062355805188417435, 0.04094328731298447, 0.4354705214500427, -0.25624215602874756, 0.03116665966808796, 0.30484968423843384, 0.4342501163482666, 0.5167428255081177, -0.020780542865395546, -0.18357504904270172, 0.3832826018333435, 0.29855042695999146, -0.015960171818733215, -0.15106870234012604, 0.2647128701210022, 0.17172090709209442, -0.007141401059925556, 0.14112582802772522, -0.0328541025519371, -0.04820225015282631, 0.12856997549533844, 0.20934288203716278, 0.6953508257865906, 0.038653936237096786, 0.22733816504478455, 0.17828752100467682, 0.13881298899650574, -0.028627535328269005, 0.46835729479789734, 0.24742858111858368, 0.025302335619926453, 0.10732639580965042, -0.1378973424434662, -0.03692720830440521, 0.00039211579132825136, 0.1407734751701355, -0.11275885254144669, -0.31166449189186096, 0.04225458949804306, 0.21483729779720306, -0.2325131595134735, -0.02997935563325882, 0.13224731385707855, 0.179806187748909, -0.28271999955177307, -0.1676201969385147, -0.16447779536247253, 0.29198503494262695, 0.06412373483181, 0.2669752240180969, 0.26393768191337585, -0.09237821400165558, -0.16877320408821106, 0.08136440068483353, 0.037108562886714935, -0.22847388684749603, 0.3985344171524048, 0.23683051764965057, 0.13046982884407043, -0.5860458016395569, -0.054081134498119354, -0.05302136391401291, 0.19571524858474731, -0.47798317670822144, 0.026409508660435677, 0.030564334243535995, -0.26749739050865173, -0.018598461523652077, 0.2658746540546417, 0.578529953956604, 0.1724969893693924, -0.06613318622112274, 0.07944923639297485, -0.030738526955246925, -0.05512053892016411, -0.08009403198957443, 0.4403759241104126, 0.03437623754143715, -0.09340693056583405, 0.3708053529262543, 0.15272782742977142, -0.26079532504081726, 0.11642073839902878, 0.09443692117929459, 0.2666625380516052, -0.24548383057117462, -0.03071572259068489, -0.03603005409240723, -0.10371289402246475, -0.3233613669872284, -0.21969889104366302, -0.20767784118652344, 0.010185111314058304, 0.5007896423339844, -0.33257219195365906, -0.006366326939314604, -0.25887688994407654, 0.1201225146651268, -0.11173438280820847, 0.3275040090084076, 0.5890838503837585, 0.2320922166109085, -0.16203159093856812, -0.3375643193721771, -0.5112206339836121, 0.11021728813648224, -0.5844737887382507, -0.19858171045780182, -0.14814071357250214, 0.41364049911499023, 0.12615472078323364, 0.41577067971229553, 0.3685457110404968, 0.11260129511356354, -0.3510940968990326, 0.4230382740497589, -0.35703030228614807, -0.3375178873538971, -0.020621970295906067, 0.03685814142227173, 0.05415442958474159, -0.3038410246372223, 0.19736598432064056, -0.28081220388412476, 0.017873328179121017, -0.10915350168943405, -0.14924612641334534, 0.17509563267230988, -0.03827188163995743, 0.5005353093147278, 0.07380654662847519, 0.2318066656589508, 0.1809501349925995, -0.528717041015625, -0.4906197786331177, -0.2379537671804428, -0.018839767202734947, -0.032170772552490234, 0.1138349398970604, 0.3460376560688019, -0.3993895947933197, 0.08922414481639862, -0.18678876757621765, 0.202719584107399, -0.08211881667375565, -0.23600362241268158, 0.19452820718288422, -0.22778411209583282, 0.002983138430863619, 0.36183106899261475, 0.0315353088080883, 0.22275011241436005, -0.017869943752884865, 0.2073405236005783, -0.24778153002262115, -0.3570302426815033, 0.2816220223903656, 0.10056902468204498, -0.41375893354415894, 0.053592488169670105, 0.17009615898132324, 0.11506861448287964, -0.004773834720253944, -0.23954926431179047, 0.1650063842535019, 0.3653583228588104, -0.013798097148537636, -0.24703866243362427, 0.15750205516815186, 0.0031550962012261152, 0.1486154943704605, -0.019963392987847328, 0.5151888728141785, 0.09584306180477142, -0.2933821380138397, 0.3243218958377838, -0.0978851243853569 ]
https://github.com/huggingface/datasets/issues/2820
Downloading “reddit” dataset keeps timing out.
It seems to have worked. It only took like 20min! I think the extra timeout length did the trick! One thing is that it downloaded a total of 41gb instead of 20gb but at least it finished.
## Describe the bug A clear and concise description of what the bug is. Everytime I try and download the reddit dataset it times out before finishing and I have to try again. There is some timeout error that I will post once it happens again. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("reddit", ignore_verifications=True, cache_dir="/Volumes/My Passport for Mac/og-chat-data") ``` ## Expected results A clear and concise description of the expected results. I would expect the download to finish, or at least provide a parameter to extend the read timeout window. ## Actual results Specify the actual results or traceback. Shown below in error message. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: macOS - Python version: 3.9.6 (conda env) - PyArrow version: N/A
37
Downloading “reddit” dataset keeps timing out. ## Describe the bug A clear and concise description of what the bug is. Everytime I try and download the reddit dataset it times out before finishing and I have to try again. There is some timeout error that I will post once it happens again. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("reddit", ignore_verifications=True, cache_dir="/Volumes/My Passport for Mac/og-chat-data") ``` ## Expected results A clear and concise description of the expected results. I would expect the download to finish, or at least provide a parameter to extend the read timeout window. ## Actual results Specify the actual results or traceback. Shown below in error message. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: macOS - Python version: 3.9.6 (conda env) - PyArrow version: N/A It seems to have worked. It only took like 20min! I think the extra timeout length did the trick! One thing is that it downloaded a total of 41gb instead of 20gb but at least it finished.
[ -0.3443331718444824, -0.14099811017513275, -0.08831925690174103, 0.10771944373846054, 0.1344686597585678, 0.1419220268726349, 0.02909347414970398, 0.23051311075687408, -0.050045788288116455, -0.14884233474731445, -0.06510064005851746, 0.13194283843040466, 0.286575049161911, 0.044866304844617844, -0.055188633501529694, 0.25864675641059875, 0.09156417101621628, -0.2118440568447113, -0.07096792012453079, 0.06414705514907837, -0.01600017212331295, 0.11668022722005844, -0.18662847578525543, -0.16312305629253387, -0.2236127406358719, -0.025842202827334404, -0.11020152270793915, -0.09716815501451492, -0.21121376752853394, -0.2538018226623535, 0.24250911176204681, 0.19643470644950867, -0.10589893907308578, 0.5974958539009094, -0.00011017123324563727, -0.19012969732284546, 0.30145835876464844, 0.07492031902074814, -0.39204490184783936, -0.5111637711524963, -0.16650643944740295, -0.14993508160114288, 0.06775113940238953, 0.05895289033651352, 0.12190283834934235, 0.10881434381008148, 0.04313487932085991, -0.34569042921066284, 0.25247570872306824, 0.4062388241291046, 0.19744285941123962, 0.3186732828617096, 0.2356891632080078, -0.06500910967588425, 0.1889503002166748, 0.009073665365576744, 0.06127014383673668, 0.4360184371471405, 0.2413877695798874, -0.14823828637599945, 0.28630849719047546, 0.02810228243470192, -0.12038497626781464, 0.24676765501499176, -0.10537775605916977, 0.008808583952486515, 0.1443115621805191, -0.45005473494529724, -0.06674337387084961, 0.16568401455879211, 0.8530226349830627, 0.03803972899913788, -0.4033251404762268, -0.28404566645622253, 0.13712093234062195, 0.018461357802152634, 0.3736429214477539, 0.4260639548301697, -0.411041796207428, 0.17740502953529358, -0.2858319580554962, -0.008682402782142162, 0.01600790210068226, 0.37066513299942017, 0.10456381738185883, -0.03358308970928192, 0.056366704404354095, 0.2642190456390381, 0.1433645784854889, -0.04440801590681076, 0.2508085072040558, -0.3367406129837036, 0.05692966282367706, -0.08361982554197311, -0.42666587233543396, -0.06965892016887665, 0.00545023288577795, 0.23711539804935455, 0.19931656122207642, 0.010983373038470745, -0.03654106333851814, -0.20650410652160645, -0.12578155100345612, 0.14879238605499268, 0.3903267979621887, -0.017385002225637436, -0.038220688700675964, 0.15595480799674988, 0.24827566742897034, -0.1521487683057785, -0.07256846874952316, 0.08172260224819183, 0.04988803341984749, -0.00675992714241147, 0.05523446202278137, -0.16088394820690155, 0.2735024392604828, -0.2745935022830963, -0.19095009565353394, -0.03401561826467514, 0.13569428026676178, -0.09710907936096191, -0.2648789584636688, 0.18212589621543884, -0.47885626554489136, 0.26053404808044434, -0.06544394791126251, 0.10633759200572968, -0.3326456546783447, -0.39250633120536804, -0.06179635226726532, 0.016521725803613663, -0.23318396508693695, -0.09920818358659744, -0.03768278285861015, -0.05094732716679573, 0.03693348914384842, 0.1624528467655182, 0.04298390448093414, -0.29289495944976807, 0.0006364895962178707, -0.17501144111156464, -0.10178229212760925, 0.18384163081645966, -0.14024245738983154, 0.4254395365715027, 0.026733484119176865, 0.1841026395559311, -0.06586485356092453, 0.05605081468820572, -0.2824711203575134, -0.24726392328739166, -0.11459404230117798, 0.22551925480365753, -0.26304787397384644, -0.34275925159454346, -0.1906621754169464, -0.030589815229177475, 0.17232759296894073, 0.04544480890035629, -0.12566672265529633, -0.043473973870277405, 0.12716849148273468, -0.07095380872488022, -0.08585909754037857, 0.30164456367492676, -0.5062202215194702, 0.2912122905254364, -0.19401413202285767, 0.10400547087192535, 0.21856790781021118, 0.25604718923568726, -0.19351765513420105, -0.020917003974318504, -0.20235896110534668, -0.11257757991552353, 0.26110896468162537, -0.17107726633548737, -0.6848199367523193, 0.05196570232510567, -0.31135132908821106, 0.01785813830792904, -0.17787456512451172, 0.2989581823348999, 0.2475440353155136, -0.06318888068199158, 0.011418293230235577, 0.4559704661369324, -0.2054671198129654, 0.06136273592710495, -0.39995259046554565, -0.20404532551765442, 0.040692038834095, 0.20022393763065338, 0.011812062934041023, -0.01785724051296711, -0.1679244041442871, -0.056086599826812744, 0.33445125818252563, 0.4108457565307617, 0.09950427711009979, 0.25829795002937317, 0.018951456993818283, 0.28073981404304504, -0.007032689172774553, -0.17410802841186523, -0.339333713054657, 0.18167424201965332, 0.547978937625885, 0.07013101130723953, -0.21652431786060333, -0.003739598672837019, -0.378416508436203, 0.031131470575928688, 0.012275543995201588, 0.04929056018590927, 0.016488466411828995, 0.15531814098358154, 0.2597067952156067, 0.23167049884796143, -0.03329693153500557, 0.5538896322250366, 0.0001851496344897896, 0.3040788173675537, -0.08716771006584167, 0.22238263487815857, -0.1737215667963028, -0.1235966682434082, 0.17658671736717224, -0.34500011801719666, 0.1806221306324005, -0.206809863448143, -0.15025025606155396, 0.2995540499687195, 0.04293181374669075, 0.09239233285188675, 0.03193535655736923, -0.19282138347625732, 0.27730801701545715, -0.1518629789352417, -0.18485566973686218, 0.3243632912635803, 0.10119198262691498, 0.02957438863813877, -0.2526458203792572, -0.003410556586459279, 0.2128175050020218, 0.22317728400230408, -0.22870036959648132, 0.1309572458267212, 0.06966672092676163, 0.0324920117855072, 0.19438759982585907, 0.014469154179096222, 0.35206449031829834, -0.2859785854816437, 0.08150637894868851, -0.17786836624145508, -0.007553020492196083, 0.35571983456611633, 0.3431662321090698, 0.08433826267719269, -0.21393495798110962, 0.2109946757555008, 0.11866390705108643, -0.15276454389095306, 0.006459353491663933, 0.35081732273101807, 0.2607824504375458, 0.18722976744174957, 0.2359100580215454, -0.1030004546046257, -0.18051593005657196, -0.15315477550029755, 0.14409177005290985, 0.04763682186603546, -0.04206346347928047, -0.0848129540681839, 0.12747402489185333, -0.02984272688627243, -0.0700509250164032, -0.3875252604484558, 0.155089870095253, 0.30911120772361755, 0.010094878263771534, -0.04074539616703987, -0.23865728080272675, -0.13844552636146545, 0.23395895957946777, -0.11198695003986359, -0.3209645450115204, -0.5685402750968933, -0.08827241510152817, 0.24177923798561096, -0.05172835290431976, 0.07450319081544876, -0.14126984775066376, -0.16991129517555237, 0.3960912823677063, -0.23231124877929688, 0.029600108042359352, -0.20219466090202332, -0.012910984456539154, 0.09962162375450134, 0.2263808399438858, -0.14351315796375275, 0.29541149735450745, -0.21676930785179138, -0.2845119833946228, -0.40605628490448, -0.06274711340665817, 0.018912088125944138, -0.1931961476802826, 0.3072667717933655, -0.2622005343437195, 0.47085389494895935, 0.02971528097987175, 0.19165755808353424, 0.11113512516021729, -0.21692471206188202, -0.059355154633522034, -0.08596653491258621, 0.06157831847667694, 0.10417105257511139, -0.024069515988230705, -0.2971175014972687, -0.2785845994949341, -0.3193434774875641, 0.19209405779838562, -0.12849372625350952, -0.05720260739326477, 0.08822622895240784, 0.23023465275764465, 0.0005931075429543853, -0.08599786460399628, 0.09640777111053467, -0.18587611615657806, -0.4200664758682251, 0.5475691556930542, -0.06460368633270264, -0.23592329025268555, 0.09556886553764343, 0.23885317146778107, -0.06941483914852142, 0.2651894688606262, -0.6985399723052979, 0.1034327819943428, -0.3445625603199005, 0.2580442726612091, -0.06913226842880249, -0.17568592727184296, 0.18533217906951904, -0.5137166976928711, -0.10900188982486725, 0.07570549100637436, 0.031174311414361, -0.07867821305990219, 0.14082007110118866, 0.3928355276584625, -0.11350436508655548, 0.22193363308906555, 0.0011655227281153202, 0.16335873305797577, 0.14114728569984436, 0.03616548329591751, 0.08606594800949097, 0.10885953903198242, 0.269469290971756, 0.013349450193345547, -0.24489614367485046, 0.04329286888241768, -0.02458273246884346, -0.13019534945487976, 0.036273159086704254, -0.02280186302959919, -0.2440936118364334, -0.17823700606822968, -0.03178536519408226, -0.26565617322921753, -0.2509201467037201, -0.07188866287469864, -0.17113055288791656, -0.059067077934741974, 0.35054537653923035, 0.17513670027256012, 0.028638377785682678, -0.28561800718307495, -0.07591920346021652, -0.014112105593085289, -0.08570981025695801, -0.18879260122776031, -0.5308371186256409, 0.15197768807411194, -0.39586231112480164, 0.24774153530597687, -0.11284996569156647, 0.2813427448272705, -0.0573083758354187, 0.04128516465425491, 0.18407891690731049, -0.00917835719883442, 0.577933669090271, -0.0978500247001648, 0.026522383093833923, -0.04646589607000351, 0.27019360661506653, -0.41847866773605347, -0.10230594873428345, 0.17670105397701263, 0.2083652913570404, 0.5239046216011047, -0.03587963059544563, -0.3270116150379181, 0.12323065847158432, 0.07599101960659027, 0.3333396911621094, 0.1616409420967102, -0.43447256088256836, 0.04069186747074127, -0.1140851303935051, -0.1964602917432785, 0.1450040340423584, 0.06933970749378204, 0.08460482209920883, -0.04927746579051018, -0.19608978927135468, 0.21466204524040222, 0.13629893958568573, 0.08595653623342514, -0.11181612312793732, 0.18462155759334564, -0.3388819694519043, 0.4967477321624756, 0.09811009466648102, -0.18203237652778625, 0.2965053915977478, 0.6978912949562073, 0.2273443639278412, -0.47421491146087646, 0.029900144785642624, -0.05654274672269821, -0.09248458594083786, 0.30005910992622375, 0.06757833063602448, -0.026383301243185997, -0.21501068770885468, 0.41103997826576233, 0.07906997203826904, 0.1983986347913742, 0.23969104886054993, 0.0864010602235794, -0.47091811895370483, -0.48002320528030396, 0.14045730233192444, 0.06523995101451874, 0.025575146079063416, 0.725469708442688, -0.10114296525716782, 0.18644976615905762, 0.2429666370153427, -0.1138594001531601, 1.0272657871246338, -0.20834140479564667, 0.12985269725322723, 0.008439995348453522, -0.09490740299224854, 0.4633692800998688, -0.33171966671943665, 0.06913382560014725, -0.06282828748226166, 0.08128543198108673, 0.06802856922149658, -0.06846029311418533, -0.17823682725429535, 0.32039138674736023, -0.2527095377445221, 0.13362394273281097, -0.16565515100955963, 0.14185649156570435, -0.1555572897195816, 0.22589905560016632, -0.2960716187953949, -0.016166716814041138, -0.06942209601402283, 0.23296035826206207, -0.01252209022641182, 0.20963168144226074, 0.0571887232363224, 0.13086532056331635, -0.2241942584514618, -0.03928981348872185, -0.6747106313705444, 0.05349424481391907, -0.11911888420581818, -0.054161589592695236, -0.3441765606403351, -0.2679917812347412, -0.04995380714535713, 0.12428704649209976, 0.1085304394364357, 0.29498371481895447, -0.07227575778961182, 0.3172171711921692, -0.15738557279109955, -0.06842993199825287, 0.008984207175672054, -0.23845085501670837, 0.11200821399688721, 0.0059922910295426846, -0.39474964141845703, 0.20439983904361725, -0.03802435100078583, -0.21800220012664795, 0.14716437458992004, 0.28497809171676636, 0.20829273760318756, -0.07382332533597946, 0.0619349367916584, -0.032831571996212006, 0.17005902528762817, -0.26205483078956604, 0.15652446448802948, 0.3397984206676483, 0.15251630544662476, 0.27849823236465454, -0.12704576551914215, -0.33942145109176636, -0.4096660315990448, 0.41080793738365173, 0.01110235508531332, -0.03997072950005531, 0.23744644224643707, 0.28741565346717834, -0.4115638732910156, -0.2906266450881958, 0.06082718446850777, -0.5332087278366089, -0.3351151645183563, 0.2490386813879013, -0.41251328587532043, 0.36516764760017395, -0.05055014789104462, -0.14699377119541168, 0.14692853391170502, 0.07749957591295242, 0.19686266779899597, -0.5906018614768982, -0.06262998282909393, -0.1093577966094017, -0.2917637526988983, 0.025508057326078415, -0.10977433621883392, -0.09305238723754883, 0.214200958609581, -0.05523664876818657, -0.29383519291877747, 0.10413569957017899, -0.23431171476840973, 0.12859809398651123, 0.3187289237976074, -0.10839137434959412, 0.375385046005249, -0.14325596392154694, 0.08878558874130249, 0.19327007234096527, -0.10475100576877594, -0.17106857895851135, 0.011100183241069317, 0.12297151982784271, -0.04849221929907799, -0.16175679862499237, 0.11116133630275726, -0.44279319047927856, -0.09047981351613998, 0.10247977077960968, -0.04717116057872772, 0.13145820796489716, 0.06538126617670059, -0.23334446549415588, 0.23940351605415344, -0.0071446881629526615, 0.0015385826118290424, 0.20369800925254822, -0.05337687209248543, 0.5051441192626953, 0.22512327134609222, 0.2564186155796051, 0.17784976959228516, 0.06642536073923111, -0.4852142632007599, -0.016063179820775986, -0.10810213536024094, 0.05663766711950302, 0.4679364264011383, -0.2862655222415924, 0.049257148057222366, 0.31049641966819763, 0.4150467813014984, 0.5625930428504944, 0.031383056193590164, -0.18462589383125305, 0.4165687561035156, 0.2802247107028961, -0.011123918928205967, -0.12667596340179443, 0.34468838572502136, 0.1587621420621872, 0.012002125382423401, 0.12860512733459473, -0.04944023862481117, -0.04306875541806221, 0.14446760714054108, 0.23527997732162476, 0.6867430210113525, 0.0569094642996788, 0.18368573486804962, 0.10029866546392441, 0.11042239516973495, -0.040523461997509, 0.4586593210697174, 0.27182164788246155, -0.00800972618162632, 0.14915987849235535, -0.1766093373298645, -0.13742929697036743, -0.02251010574400425, 0.11136720329523087, -0.0861215740442276, -0.27719980478286743, 0.022927507758140564, 0.18497219681739807, -0.24806761741638184, -0.03643607348203659, 0.16233982145786285, 0.17577633261680603, -0.22522640228271484, -0.14156585931777954, -0.15626542270183563, 0.282352089881897, 0.11314063519239426, 0.26388925313949585, 0.2492493838071823, -0.117772176861763, -0.13523268699645996, 0.1094319224357605, 0.05313333496451378, -0.29016053676605225, 0.3783888518810272, 0.23523825407028198, 0.11873478442430496, -0.6347622275352478, -0.013239183463156223, -0.14341139793395996, 0.1692616045475006, -0.4513990879058838, 0.008547124452888966, -0.03732878342270851, -0.23548243939876556, 0.019348623231053352, 0.1819729506969452, 0.5284029841423035, 0.165691077709198, -0.0857023149728775, 0.1386563777923584, -0.05802422761917114, -0.046220991760492325, -0.059084754437208176, 0.4760380983352661, 0.08334469050168991, -0.08542028814554214, 0.427846759557724, 0.12603935599327087, -0.23916707932949066, 0.13761742413043976, 0.07268301397562027, 0.261337012052536, -0.2798643112182617, -0.08904703706502914, -0.023790113627910614, -0.14423902332782745, -0.43455567955970764, -0.19168493151664734, -0.1944943368434906, -0.01157776452600956, 0.42666885256767273, -0.3257022202014923, -0.0417136512696743, -0.31874755024909973, 0.10372263938188553, -0.16763608157634735, 0.3223070204257965, 0.5741573572158813, 0.2755863666534424, -0.16998390853405, -0.29840001463890076, -0.4349108338356018, 0.0711829662322998, -0.5885076522827148, -0.17531555891036987, -0.1917392462491989, 0.46499156951904297, 0.13739222288131714, 0.3879270851612091, 0.3642195761203766, 0.09242228418588638, -0.39979949593544006, 0.47553595900535583, -0.3340260088443756, -0.29701751470565796, -0.04939492791891098, 0.03440988063812256, 0.07813946902751923, -0.25491270422935486, 0.19457854330539703, -0.2697488069534302, 0.003186165587976575, -0.156432643532753, -0.2445119470357895, 0.18968504667282104, -0.04704353213310242, 0.5041050314903259, 0.0649290382862091, 0.30301588773727417, 0.2709484398365021, -0.4769493341445923, -0.4949393570423126, -0.24788761138916016, -0.022742189466953278, 0.03704642131924629, 0.032243210822343826, 0.3441214859485626, -0.3469089865684509, 0.032655198127031326, -0.1335640698671341, 0.21371032297611237, -0.14224843680858612, -0.3069441318511963, 0.21983861923217773, -0.256990522146225, 0.022054973989725113, 0.4016229510307312, -0.01770283281803131, 0.15670591592788696, -0.03455541282892227, 0.18397867679595947, -0.2789251506328583, -0.31330257654190063, 0.26671838760375977, 0.03989224508404732, -0.39342939853668213, 0.03928793966770172, 0.09852160513401031, 0.17165321111679077, -0.0038628585170954466, -0.23050639033317566, 0.10698229819536209, 0.395353764295578, -0.024819280952215195, -0.21344494819641113, 0.19076932966709137, 0.03783338516950607, 0.1685904562473297, -0.08266657590866089, 0.4905622899532318, 0.017422880977392197, -0.2901217043399811, 0.2927953898906708, -0.11835777759552002 ]
https://github.com/huggingface/datasets/issues/2818
cannot load data from my loacal path
Hi ! The `data_files` parameter must be a string, a list/tuple or a python dict. Can you check the type of your `config.train_path` please ? Or use `data_files=str(config.train_path)` ?
## Describe the bug I just want to directly load data from my local path,but find a bug.And I compare it with pandas to provide my local path is real. here is my code ```python3 # print my local path print(config.train_path) # read data and print data length tarin=pd.read_csv(config.train_path) print(len(tarin)) # loading data by load_dataset data = load_dataset('csv',data_files=config.train_path) print(len(data)) ``` ## Steps to reproduce the bug ```python C:\Users\wie\Documents\项目\文本分类\data\train.csv 7613 Traceback (most recent call last): File "c:/Users/wie/Documents/项目/文本分类/lib/DataPrecess.py", line 17, in <module> data = load_dataset('csv',data_files=config.train_path) File "C:\Users\wie\Miniconda3\lib\site-packages\datasets\load.py", line 830, in load_dataset **config_kwargs, File "C:\Users\wie\Miniconda3\lib\site-packages\datasets\load.py", line 710, in load_dataset_builder **config_kwargs, File "C:\Users\wie\Miniconda3\lib\site-packages\datasets\builder.py", line 271, in __init__ **config_kwargs, File "C:\Users\wie\Miniconda3\lib\site-packages\datasets\builder.py", line 386, in _create_builder_config config_kwargs, custom_features=custom_features, use_auth_token=self.use_auth_token File "C:\Users\wie\Miniconda3\lib\site-packages\datasets\builder.py", line 156, in create_config_id raise ValueError("Please provide a valid `data_files` in `DatasetBuilder`") ValueError: Please provide a valid `data_files` in `DatasetBuilder` ``` ## Expected results A clear and concise description of the expected results. ## Actual results Specify the actual results or traceback. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: win10 - Python version: 3.7.9 - PyArrow version: 5.0.0
29
cannot load data from my loacal path ## Describe the bug I just want to directly load data from my local path,but find a bug.And I compare it with pandas to provide my local path is real. here is my code ```python3 # print my local path print(config.train_path) # read data and print data length tarin=pd.read_csv(config.train_path) print(len(tarin)) # loading data by load_dataset data = load_dataset('csv',data_files=config.train_path) print(len(data)) ``` ## Steps to reproduce the bug ```python C:\Users\wie\Documents\项目\文本分类\data\train.csv 7613 Traceback (most recent call last): File "c:/Users/wie/Documents/项目/文本分类/lib/DataPrecess.py", line 17, in <module> data = load_dataset('csv',data_files=config.train_path) File "C:\Users\wie\Miniconda3\lib\site-packages\datasets\load.py", line 830, in load_dataset **config_kwargs, File "C:\Users\wie\Miniconda3\lib\site-packages\datasets\load.py", line 710, in load_dataset_builder **config_kwargs, File "C:\Users\wie\Miniconda3\lib\site-packages\datasets\builder.py", line 271, in __init__ **config_kwargs, File "C:\Users\wie\Miniconda3\lib\site-packages\datasets\builder.py", line 386, in _create_builder_config config_kwargs, custom_features=custom_features, use_auth_token=self.use_auth_token File "C:\Users\wie\Miniconda3\lib\site-packages\datasets\builder.py", line 156, in create_config_id raise ValueError("Please provide a valid `data_files` in `DatasetBuilder`") ValueError: Please provide a valid `data_files` in `DatasetBuilder` ``` ## Expected results A clear and concise description of the expected results. ## Actual results Specify the actual results or traceback. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: win10 - Python version: 3.7.9 - PyArrow version: 5.0.0 Hi ! The `data_files` parameter must be a string, a list/tuple or a python dict. Can you check the type of your `config.train_path` please ? Or use `data_files=str(config.train_path)` ?
[ -0.05743883550167084, -0.0158847589045763, 0.07422022521495819, 0.5506057143211365, 0.3027435839176178, -0.19356660544872284, 0.41470593214035034, 0.07691362500190735, 0.08254630118608475, 0.063893161714077, -0.008926904760301113, 0.5863606333732605, 0.01228428352624178, -0.028452860191464424, 0.11384259164333344, -0.01467885822057724, 0.18739433586597443, 0.0855279266834259, -0.12411611527204514, -0.2560267448425293, -0.31557294726371765, 0.16885796189308167, -0.14607468247413635, 0.19019371271133423, -0.06997039169073105, 0.2109433114528656, -0.28220510482788086, 0.46751195192337036, 0.0227661170065403, -0.2501043677330017, 0.4729166328907013, -0.280921071767807, 0.4408823251724243, 0.4645852744579315, -0.00011515610094647855, -0.00973088014870882, 0.47553807497024536, 0.037579793483018875, -0.23903770744800568, -0.607242226600647, -0.16621354222297668, -0.2815759479999542, 0.42585957050323486, -0.19368192553520203, -0.06654120981693268, -0.11743634194135666, -0.2235065996646881, -0.1684543788433075, 0.4106474816799164, 0.4155714809894562, 0.17829345166683197, 0.149863600730896, -0.2141827940940857, -0.16903162002563477, 0.3525305688381195, 0.17420175671577454, 0.04614878073334694, 0.40884867310523987, 0.0037087814416736364, -0.2516222894191742, 0.10688018053770065, -0.07420103996992111, -0.13789987564086914, 0.032406311482191086, 0.25639989972114563, 0.2106461077928543, -0.05831696093082428, 0.00227961502969265, 0.1797528713941574, 0.30705496668815613, 0.5116798877716064, -0.06261836737394333, -0.3027724027633667, -0.09755706042051315, -0.038935814052820206, -0.11132887750864029, 0.25991785526275635, 0.07415775209665298, 0.015902137383818626, 0.19671718776226044, 0.11754889041185379, 0.20565930008888245, -0.0650329738855362, 0.4197382628917694, -0.14612828195095062, 0.163984477519989, -0.13121165335178375, 0.08892450481653214, 0.011664883233606815, 0.1690492182970047, 0.6599959135055542, -0.07523145526647568, 0.04721079394221306, 0.3930087089538574, -0.19943439960479736, 0.12794598937034607, 0.3355511724948883, 0.18518249690532684, -0.05194859579205513, -0.053126562386751175, 0.3470780551433563, -0.10449239611625671, -0.18621012568473816, 0.007926289923489094, 0.3611755967140198, 0.19856181740760803, -0.30460116267204285, 0.21343573927879333, 0.18997147679328918, 0.22598059475421906, -0.08591195195913315, -0.16025109589099884, -0.24203555285930634, -0.20134657621383667, -0.1269378513097763, 0.18432070314884186, 0.31401053071022034, -0.3728867471218109, -0.2214427888393402, -0.058182865381240845, 0.03461003676056862, 0.1836174726486206, 0.21194609999656677, 0.5136285424232483, -0.20884282886981964, 0.5151563882827759, 0.02250785008072853, 0.2508969306945801, -0.09226395189762115, 0.17840223014354706, -0.26141348481178284, 0.0694379135966301, -0.14603054523468018, -0.11265106499195099, -0.043009623885154724, 0.02155604027211666, 0.2521871030330658, -0.009621521458029747, -0.1722254902124405, -0.3173282742500305, -0.349234014749527, -0.4206421375274658, 0.08612775057554245, 0.07467366009950638, -0.039239637553691864, 0.09501530975103378, 0.27575311064720154, -0.09331478923559189, -0.2179807722568512, 0.1728486865758896, -0.2247140109539032, -0.4391534924507141, -0.32282406091690063, 0.13128705322742462, -0.23107090592384338, 0.040146563202142715, 0.08862230181694031, -0.2725884020328522, 0.05881612375378609, 0.30459338426589966, -0.13777975738048553, 0.12181472033262253, -0.36528557538986206, -0.25566723942756653, 0.44194331765174866, 0.6512079238891602, -0.4164176285266876, 0.2217453569173813, -0.26362448930740356, 0.07696320116519928, 0.4102800488471985, 0.16995903849601746, -0.35660111904144287, 0.38139113783836365, -0.11618039757013321, -0.15109898149967194, 0.3857564628124237, -0.5012978911399841, -0.37146350741386414, 0.5995170474052429, -0.05607450380921364, -0.23752279579639435, -0.05141695588827133, -0.02006552368402481, -0.1240403950214386, 0.08448959141969681, 0.31124770641326904, 0.49831172823905945, 0.18648317456245422, 0.15233434736728668, -0.4068829417228699, -0.4395460784435272, -0.1264507919549942, 0.24806898832321167, -0.11860724538564682, 0.05363557115197182, 0.24133503437042236, -0.3943929970264435, 0.30471161007881165, -0.059421103447675705, -0.21681958436965942, 0.48815906047821045, 0.3690139651298523, 0.08482145518064499, -0.07597759366035461, 0.19725172221660614, -0.2346256673336029, 0.2298527956008911, -0.06179599091410637, -0.15067541599273682, -0.12907081842422485, -0.003085984382778406, -0.44663673639297485, 0.09662387520074844, -0.2612612545490265, -0.1387730836868286, 0.052737362682819366, 0.17841339111328125, -0.007923642173409462, 0.07835955172777176, -0.19657312333583832, 0.15757420659065247, -0.12028292566537857, -0.1758037656545639, -0.12132688611745834, 0.2304283231496811, -0.08531107753515244, 0.07546892762184143, 0.06994811445474625, 0.4098213315010071, 0.21674205362796783, -0.03331569954752922, -0.06576068699359894, 0.38565754890441895, 0.1693175584077835, 0.28630152344703674, -0.11661951243877411, -0.3804415166378021, 0.2069358229637146, -0.06978027522563934, 0.09482771158218384, 0.03719498589634895, 0.2641214430332184, 0.14561030268669128, -0.20785388350486755, 0.15324892103672028, -0.11239031702280045, 0.06516977399587631, 0.045180484652519226, 0.0005379576468840241, 0.5214226245880127, -0.24304960668087006, 0.03469623252749443, -0.3120873272418976, 0.26498177647590637, 0.4043835997581482, 0.5120337605476379, 0.1754515916109085, -0.33314529061317444, -0.08028890937566757, 0.19670528173446655, 0.16121196746826172, 0.059238456189632416, 0.07054252177476883, -0.07835133373737335, -0.01687965728342533, -0.00278521073050797, 0.4694553017616272, 0.41989463567733765, 0.11775130778551102, 0.14666320383548737, 0.1681152731180191, 0.06415671110153198, -0.1689203530550003, 0.2062511295080185, -0.047429271042346954, 0.26921364665031433, 0.05391310900449753, -0.01482896227389574, 0.3034391403198242, -0.12368170917034149, 0.02681790105998516, 0.0028711017221212387, 0.29945942759513855, -0.32734593749046326, 0.06143094226717949, -0.375257670879364, -0.17767393589019775, -0.14560599625110626, -0.33127105236053467, 0.20786269009113312, -0.13526423275470734, -0.32298043370246887, 0.03282667696475983, -0.19120830297470093, -0.03767003118991852, -0.12183457612991333, 0.05666910111904144, -0.05943629518151283, -0.27320989966392517, -0.20220856368541718, -0.17799822986125946, -0.5250952839851379, -0.07828213274478912, 0.35573822259902954, 0.15700794756412506, -0.08732044696807861, -0.17721779644489288, -0.013318022713065147, -0.09975768625736237, 0.1238211914896965, 0.02284855581820011, 0.17898507416248322, 0.6002935767173767, 0.17147323489189148, 0.039560481905937195, 0.17908470332622528, -0.16263215243816376, 0.26456791162490845, -0.2557521164417267, -0.1662982702255249, 0.006234718952327967, 0.09913294017314911, -0.11684440821409225, -0.19665393233299255, -0.1383366882801056, -0.37821269035339355, -0.2874900698661804, -0.03894905373454094, 0.0985017940402031, 0.1825941503047943, 0.18451395630836487, 0.216905876994133, 0.23369768261909485, 0.11985143274068832, -0.07779420167207718, -0.16042593121528625, -0.4417058527469635, 0.21584612131118774, -0.02825590781867504, -0.5365148186683655, -0.3180682063102722, -0.16497570276260376, 0.38786953687667847, -0.1524084359407425, -0.517662525177002, -0.08886070549488068, -0.2314540445804596, 0.1201905906200409, -0.08136112242937088, -0.13041362166404724, 0.34633752703666687, -0.10212861001491547, -0.02987697347998619, -0.09780202805995941, -0.0786365196108818, 0.0038150453474372625, 0.18300066888332367, 0.08563093096017838, 0.14788271486759186, 0.3921528160572052, -0.13561470806598663, 0.631461501121521, 0.027488576248288155, -0.05417155474424362, 0.5767680406570435, -0.16611608862876892, 0.4468923807144165, -0.1700374335050583, -0.39501312375068665, -0.2945561110973358, 0.013005870394408703, -0.24211683869361877, 0.310936838388443, 0.05546252429485321, -0.347533255815506, -0.3655238151550293, 0.021857062354683876, -0.45511510968208313, -0.17477825284004211, -0.1583244651556015, -0.27388903498649597, 0.021791525185108185, -0.14255820214748383, 0.1417834460735321, -0.0741288885474205, -0.03788232430815697, 0.021016035228967667, 0.03132813796401024, 0.03297063335776329, -0.0628153383731842, 0.12786079943180084, -0.03291347250342369, -0.4352097511291504, 0.10978816449642181, -0.04781879484653473, 0.4363667964935303, 0.006618882063776255, -0.2862244248390198, 0.07815210521221161, -0.05846033990383148, 0.6754680871963501, 0.022382207214832306, 0.13590124249458313, 0.18148748576641083, -0.021142223849892616, -0.6554042100906372, -0.02954956889152527, 0.12112324684858322, 0.022920025512576103, 0.07676102221012115, 0.7966441512107849, 0.10240955650806427, -0.12370438128709793, 0.025263264775276184, 0.08597812801599503, 0.01820356212556362, -0.4049769639968872, -0.3497108519077301, -0.3659105896949768, 0.09848297387361526, -0.13401281833648682, -0.08360408991575241, 0.3783411979675293, -0.021298684179782867, -0.15522858500480652, -0.08615025132894516, -0.20019562542438507, -0.22231535613536835, 0.10054248571395874, 0.34251004457473755, -0.01692567951977253, 0.27567195892333984, -0.032103512436151505, 0.3114447593688965, -0.17486384510993958, 0.6477411389350891, -0.11714119464159012, -0.3216336667537689, 0.07883919775485992, -0.3234080672264099, 0.09866156429052353, 0.24707752466201782, -0.14656177163124084, 0.04782509058713913, 0.01740165427327156, -0.2901144027709961, -0.032531797885894775, 0.15999294817447662, -0.027032358571887016, 0.025242509320378304, 0.09560709446668625, -0.22980479896068573, 0.5176451802253723, 0.1183607429265976, -0.11038123816251755, 0.347083181142807, -0.5550875067710876, -0.26947537064552307, 0.23093220591545105, 0.23963233828544617, 0.838786780834198, -0.16605998575687408, 0.16180959343910217, 0.3205999433994293, -0.24571576714515686, 0.2124181091785431, 0.17302140593528748, -0.1323699653148651, -0.45162433385849, -0.19490204751491547, 0.06923496723175049, -0.14575913548469543, 0.1558915078639984, -0.06421275436878204, 0.08117544651031494, 0.07789133489131927, -0.18189045786857605, 0.35441717505455017, 0.3318727910518646, 0.0835024043917656, 0.05460174009203911, -0.1341724544763565, -0.3800010681152344, 0.053745899349451065, 0.21562056243419647, 0.1067381277680397, -0.08132629841566086, 0.03501712158322334, -0.2643422782421112, -0.17049311101436615, 0.04685589671134949, 0.3553570806980133, -0.34302279353141785, 0.01825305074453354, -0.10767357796430588, -0.4711858630180359, -0.3164747953414917, 0.6356456875801086, 0.23033356666564941, 0.04929233714938164, -0.2496902197599411, 0.08838915079832077, 0.03573353961110115, 0.17970573902130127, -0.013868069276213646, -0.1586063653230667, -0.05130280926823616, -0.11957313865423203, -0.1252862513065338, -0.19876743853092194, -0.23850210011005402, -0.17232856154441833, 0.17574849724769592, 0.36305513978004456, 0.198250874876976, -0.0026165680028498173, -0.3738713562488556, 0.06900958716869354, 0.3177512288093567, -0.20050148665905, 0.115991972386837, -0.018571512773633003, -0.02912404015660286, -0.13644714653491974, -0.16683661937713623, -0.4678332805633545, 0.019284825772047043, 0.562362551689148, 0.006111843977123499, 0.5865502953529358, 0.4906967878341675, -0.05811447277665138, 0.09343456476926804, -0.15087532997131348, 0.25382426381111145, 0.09140704572200775, -0.1445089429616928, -0.18396322429180145, -0.18030798435211182, 0.012187049724161625, -0.11383689194917679, 0.09619393944740295, 0.34516656398773193, -0.10798443853855133, -0.11196311563253403, -0.6838932037353516, -0.4484826922416687, 0.04048311337828636, -0.1864713877439499, 0.06387089937925339, 0.07370229065418243, 0.14089460670948029, -0.024440107867121696, -0.2554088234901428, -0.22263680398464203, 0.2571767568588257, -0.4180088937282562, 0.01980302482843399, -0.14122776687145233, -0.041304927319288254, 0.24452313780784607, -0.015400545671582222, 0.1508333384990692, -0.1639544516801834, 0.07083438336849213, -0.18377850949764252, -0.10562052577733994, 0.10133281350135803, 0.08590391278266907, -0.18475258350372314, -0.1455664187669754, -0.2703591585159302, -0.08905992656946182, -0.08554121851921082, -0.22526320815086365, 0.20390531420707703, -0.04064584895968437, 0.0950414389371872, -0.13096487522125244, 0.3166356384754181, -0.20542818307876587, 0.34599569439888, -0.33540698885917664, 0.010913941077888012, 0.14989471435546875, 0.19738145172595978, 0.0708731934428215, -0.0026605124585330486, 0.18824653327465057, -0.2834931015968323, -0.20060305297374725, 0.13941800594329834, 0.21056564152240753, -0.0921926200389862, 0.059951551258563995, 0.18986979126930237, 0.07456356287002563, 0.292456716299057, -0.18366098403930664, 0.09922586381435394, 0.5471071600914001, 0.14545421302318573, -0.2937478721141815, -0.06042667478322983, -0.06286292523145676, -0.10811983048915863, -0.015517729334533215, 0.18011805415153503, 0.12191818654537201, -0.2686055302619934, 0.08435136079788208, -0.060759201645851135, 0.45884114503860474, 0.09937959909439087, 0.14582623541355133, 0.33959412574768066, -0.2543953061103821, 0.16267192363739014, -0.04289839789271355, 0.2295008897781372, 0.033679310232400894, 0.5187299251556396, 0.048608582466840744, -0.08067115396261215, -0.2998913526535034, 0.4048227071762085, -0.07875307649374008, -0.6417550444602966, 0.3375593423843384, 0.04857606813311577, -0.3438982665538788, -0.25752967596054077, -0.26671919226646423, 0.23724514245986938, -0.09334388375282288, 0.11502481251955032, -0.12764430046081543, 0.1020793467760086, -0.07057492434978485, -0.2714782953262329, -0.47544050216674805, -0.15348103642463684, 0.13854041695594788, -0.03634876385331154, -0.009251846000552177, -0.19106727838516235, -0.08415365219116211, 0.1059214323759079, -0.21274490654468536, -0.20711514353752136, 0.12632371485233307, 0.3150515854358673, -0.12724129855632782, -0.31639888882637024, 0.4282376766204834, -0.24561342597007751, 0.21488827466964722, -0.013959734700620174, -0.05020426958799362, 0.20216962695121765, 0.6500502824783325, -0.05002786964178085, -0.18745121359825134, 0.12737083435058594, -0.1951829046010971, -0.16541150212287903, 0.1244850680232048, 0.09869350492954254, 0.4059481620788574, 0.5674880146980286, 0.14582562446594238, -0.12572641670703888, 0.38266369700431824, 0.05022868514060974, 0.44928476214408875, -0.2906237840652466, 0.31946849822998047, -0.08976823836565018, -0.007834525778889656, -0.044241175055503845, 0.2483789175748825, -0.41663938760757446, 0.07398751378059387, 0.23093192279338837, -0.04694708064198494, 0.36814770102500916, 0.07150552421808243, 0.06086529418826103, 0.014622380957007408, 0.4513390064239502, 0.484081894159317, 0.3376535177230835, -0.21963369846343994, -0.2611142694950104, -0.6287826299667358, 0.12541688978672028, 0.03307333216071129, 0.10066214948892593, -0.03627888485789299, 0.17462705075740814, -0.11810047179460526, 0.034803375601768494, -0.04515758529305458, 0.34804797172546387, 0.07467635720968246, -0.0032195369713008404, -0.18264763057231903, -0.3485907018184662, -0.39531654119491577, 0.04731414094567299, -0.09429773688316345, -0.435685932636261, -0.012180374935269356, 0.11429168283939362, 0.03364456817507744, 0.10586696863174438, -0.2598722279071808, -0.17448653280735016, 0.1039741188287735, 0.31861087679862976, 0.11135081946849823, 0.109174944460392, 0.03125564381480217, 0.10024751722812653, -0.3792993426322937, -0.11528544872999191, -0.073720283806324, 0.21653133630752563, 0.027878951281309128, -0.3506176173686981, -0.19000165164470673, 0.10971401631832123, -0.39745885133743286, 0.16852959990501404, 0.08213990181684494, 0.11952562630176544, 0.004652827978134155, -0.16975319385528564, -0.0053001586347818375, -0.09393571317195892, -0.022213449701666832, 0.008434378542006016, -0.2914649248123169, 0.041347358375787735, -0.06851166486740112, -0.053508974611759186, 0.3320350646972656, -0.4292978346347809, -0.05428006127476692, -0.0027852130588144064, 0.1854250729084015, -0.05215196684002876, 0.11162368953227997, -0.056281380355358124, -0.11436974257230759, 0.47932344675064087, -0.09753609448671341, -0.005254532676190138, -0.0017494607018306851, -0.17608429491519928, 0.2696329951286316, -0.10274361819028854, 0.17228813469409943, 0.02082023397088051, 0.006608335766941309, 0.0037639716174453497, -0.3554127812385559 ]
https://github.com/huggingface/datasets/issues/2813
Remove compression from xopen
After discussing with @lhoestq, a reasonable alternative: - `download_manager.extract(urlpath)` adds prefixes to `urlpath` in the same way as `fsspec` does for protocols, but we implement custom prefixes for all compression formats: `bz2::http://domain.org/filename.bz2` - `xopen` parses the `urlpath` and extracts the `compression` parameter and passes it to `fsspec.open`: `fsspec.open("http://domain.org/filename.bz2", compression="bz2")` Pros: - clean solution that continues giving support to all compression formats - no breaking change when opening non-decompressed files: if no compression-protocol-like is passed, fsspec.open does not uncompress (passes compression=None) Cons: - we create a "private" convention for the format of `urlpath`: although similar to `fsspec` protocols, we add custom prefixes for the `compression` argument
We implemented support for streaming with 2 requirements: - transparent use for the end user: just needs to pass the parameter `streaming=True` - no additional work for the contributors: previous loading scripts should also work in streaming mode with no (or minor) changes; and new loading scripts should not involve additional code to support streaming In order to fulfill these requirements, streaming implementation patched some Python functions: - the `open(urlpath)` function was patched with `fsspec.open(urlpath)` - the `os.path.join(urlpath, *others)` function was patched in order to add to `urlpath` hops (`::`) and extractor protocols (`zip://`), which are required by `fsspec.open` Recently, we implemented support for streaming all archive+compression formats: zip, tar, gz, bz2, lz4, xz, zst; tar.gz, tar.bz2,... Under the hood, the implementation: - passes an additional parameter `compression` to `fsspec.open`, so that it performs the decompression on the fly: `fsspec.open(urlpath, compression=...)` Some concerns have been raised about passing the parameter `compression` to `fsspec.open`: - https://github.com/huggingface/datasets/pull/2786#discussion_r689550254 - #2811 The main argument is that if `open` decompresses the file and afterwards we call `gzip.open` on it, that will raise an error in `oscar` dataset: ```python gzip.open(open(urlpath ``` While this is true: - it is not natural/usual to call `open` inside `gzip.open` (never seen this before) - indeed, this was recently (2 months ago) coded that way in `datasets` in order to allow streaming support (with previous implementation of streaming) In this particular case, there is a natural fix solution: #2811: - Revert the `open` inside the `gzip.open` (change done 2 months ago): `gzip.open(open(urlpath` => `gzip.open(urlpath` - Patch `gzip.open(urlpath` with `fsspec.open(urlpath, compression="gzip"` Are there other issues apart from this? Note that there is an issue just because the open inside of the gzip.open. There is no issue in the other cases where datasets loading scripts use just - `gzip.open` - `open` (after having called dl_manager.download_and_extract) TODO: - [ ] Is this really an issue? Please enumerate the `datasets` loading scripts where this is problematic. - For the moment, there are only 3 datasets where we have an `open` inside a `gzip.open`: - oscar (since 23 June), mc4 (since 2 July) and c4 (since 2 July) - In the 3 datasets, the only reason to put an open inside a gzip.open was indeed to force supporting streaming - [ ] If this is indeed an issue, which are the possible alternatives? Pros/cons?
105
Remove compression from xopen We implemented support for streaming with 2 requirements: - transparent use for the end user: just needs to pass the parameter `streaming=True` - no additional work for the contributors: previous loading scripts should also work in streaming mode with no (or minor) changes; and new loading scripts should not involve additional code to support streaming In order to fulfill these requirements, streaming implementation patched some Python functions: - the `open(urlpath)` function was patched with `fsspec.open(urlpath)` - the `os.path.join(urlpath, *others)` function was patched in order to add to `urlpath` hops (`::`) and extractor protocols (`zip://`), which are required by `fsspec.open` Recently, we implemented support for streaming all archive+compression formats: zip, tar, gz, bz2, lz4, xz, zst; tar.gz, tar.bz2,... Under the hood, the implementation: - passes an additional parameter `compression` to `fsspec.open`, so that it performs the decompression on the fly: `fsspec.open(urlpath, compression=...)` Some concerns have been raised about passing the parameter `compression` to `fsspec.open`: - https://github.com/huggingface/datasets/pull/2786#discussion_r689550254 - #2811 The main argument is that if `open` decompresses the file and afterwards we call `gzip.open` on it, that will raise an error in `oscar` dataset: ```python gzip.open(open(urlpath ``` While this is true: - it is not natural/usual to call `open` inside `gzip.open` (never seen this before) - indeed, this was recently (2 months ago) coded that way in `datasets` in order to allow streaming support (with previous implementation of streaming) In this particular case, there is a natural fix solution: #2811: - Revert the `open` inside the `gzip.open` (change done 2 months ago): `gzip.open(open(urlpath` => `gzip.open(urlpath` - Patch `gzip.open(urlpath` with `fsspec.open(urlpath, compression="gzip"` Are there other issues apart from this? Note that there is an issue just because the open inside of the gzip.open. There is no issue in the other cases where datasets loading scripts use just - `gzip.open` - `open` (after having called dl_manager.download_and_extract) TODO: - [ ] Is this really an issue? Please enumerate the `datasets` loading scripts where this is problematic. - For the moment, there are only 3 datasets where we have an `open` inside a `gzip.open`: - oscar (since 23 June), mc4 (since 2 July) and c4 (since 2 July) - In the 3 datasets, the only reason to put an open inside a gzip.open was indeed to force supporting streaming - [ ] If this is indeed an issue, which are the possible alternatives? Pros/cons? After discussing with @lhoestq, a reasonable alternative: - `download_manager.extract(urlpath)` adds prefixes to `urlpath` in the same way as `fsspec` does for protocols, but we implement custom prefixes for all compression formats: `bz2::http://domain.org/filename.bz2` - `xopen` parses the `urlpath` and extracts the `compression` parameter and passes it to `fsspec.open`: `fsspec.open("http://domain.org/filename.bz2", compression="bz2")` Pros: - clean solution that continues giving support to all compression formats - no breaking change when opening non-decompressed files: if no compression-protocol-like is passed, fsspec.open does not uncompress (passes compression=None) Cons: - we create a "private" convention for the format of `urlpath`: although similar to `fsspec` protocols, we add custom prefixes for the `compression` argument
[ -0.4191688001155853, -0.006903298199176788, 0.005912615451961756, 0.023857710883021355, 0.12481766939163208, -0.32568830251693726, -0.22927752137184143, 0.47133561968803406, 0.08866468071937561, 0.2409462034702301, -0.24715422093868256, 0.4001293480396271, 0.08196678012609482, 0.1371934711933136, -0.02266433835029602, -0.13701552152633667, -0.027831051498651505, 0.13313060998916626, 0.08823689073324203, -0.005411409307271242, -0.4790542721748352, 0.1909051090478897, -0.13400402665138245, -0.010672308504581451, 0.24459558725357056, 0.03561994433403015, 0.255626380443573, 0.21884046494960785, -0.3985930383205414, -0.14976416528224945, -0.13082583248615265, 0.14954881370067596, 0.022596340626478195, 0.08694403618574142, -0.00011308879766147584, 0.026686998084187508, 0.29884111881256104, -0.1954084187746048, -0.2381749004125595, -0.2629077434539795, -0.11785803735256195, -0.08894427120685577, 0.08253084123134613, -0.0007838503806851804, 0.10028404742479324, -0.7044280767440796, 0.020754169672727585, -0.8813660740852356, 0.5043365955352783, 0.25678637623786926, 0.12201240658760071, 0.15612974762916565, 0.059625957161188126, 0.002017385559156537, 0.27504733204841614, -0.09951391071081161, -0.19076032936573029, -0.10441592335700989, 0.2203274816274643, 0.3321313261985779, -0.1137186735868454, 0.42351341247558594, -0.18983294069766998, -0.18895167112350464, 0.32921478152275085, -0.2509937882423401, 0.07508330792188644, -0.22733448445796967, -0.18073174357414246, 0.10746993869543076, 0.1452675759792328, -0.1285867840051651, -0.5220016837120056, -0.18545721471309662, 0.06885868310928345, -0.5120437145233154, 0.13855375349521637, 0.3591737449169159, 0.04782615229487419, 0.1616457998752594, -0.08509371429681778, -0.24313975870609283, 0.007069001439958811, 0.046894337981939316, 0.19727252423763275, 0.2863022983074188, -0.0803830474615097, 0.0017110022017732263, 0.3852158188819885, 0.12432178109884262, 0.11404785513877869, -0.2616316080093384, -0.027591491118073463, -0.09735646843910217, -0.21235120296478271, 0.02729291096329689, 0.13814786076545715, 0.05710187181830406, 0.08165773749351501, 0.4363043010234833, 0.25706925988197327, 0.29957595467567444, -0.12123584747314453, 0.025668013840913773, 0.05121561884880066, 0.15650177001953125, -0.021839182823896408, -0.1820705533027649, 0.03763913735747337, 0.18231602013111115, 0.2186768651008606, -0.23489786684513092, 0.24535945057868958, -0.165180504322052, -0.36472392082214355, 0.32250651717185974, 0.6144117712974548, 0.007971197366714478, -0.16554546356201172, -0.09979251772165298, -0.15053212642669678, -0.21090973913669586, 0.053347066044807434, 0.0897924154996872, -0.06469878554344177, 0.33524438738822937, 0.017274284735322, 0.31135156750679016, -0.21424764394760132, -0.01741604506969452, -0.18733032047748566, -0.05472491309046745, -0.13139572739601135, 0.2216724157333374, 0.05506158992648125, -0.7223924398422241, 0.03929414600133896, 0.22719168663024902, 0.5497035980224609, -0.0975678488612175, 0.16361509263515472, -0.04679363965988159, 0.20229724049568176, 0.24468585848808289, -0.07804212719202042, -0.058097708970308304, 0.2379578948020935, 0.05526261031627655, -0.22827361524105072, 0.17570355534553528, -0.5017318725585938, -0.2378915250301361, -0.10617184638977051, 0.15848906338214874, -0.020717022940516472, 0.19469881057739258, 0.025214290246367455, 0.04116472601890564, -0.43550726771354675, -0.43087074160575867, 0.03437383845448494, -0.024331795051693916, -0.2750069200992584, -0.1244572103023529, 0.32721975445747375, 0.0292742308229208, 0.04159459099173546, -0.21974940598011017, -0.16320154070854187, 0.1786554455757141, 0.5669154524803162, 0.28614386916160583, -0.30466219782829285, -0.3236421048641205, -0.21751753985881805, 0.0354335643351078, 0.5478265285491943, -0.22866302728652954, -0.41496071219444275, 0.3734903335571289, 0.007339616771787405, 0.3961350619792938, 0.2859601378440857, -0.3961561322212219, 0.4834243655204773, -0.16461099684238434, 0.14457963407039642, 0.22053365409374237, 0.13592089712619781, 0.12772701680660248, -0.2463243305683136, -0.0944506824016571, 0.0922185406088829, -0.08831247687339783, -0.10494255274534225, 0.11276132613420486, -0.009960005059838295, -0.058418359607458115, 0.19224858283996582, -0.08923083543777466, 0.04228900372982025, -0.24041922390460968, 0.18961088359355927, -0.026508662849664688, -0.027019215747714043, 0.01271720603108406, 0.11640570312738419, -0.09617528319358826, -0.15983746945858002, -0.19968710839748383, -0.13205741345882416, -0.248350590467453, -0.08095867931842804, 0.023857666179537773, 0.034197043627500534, -0.22375600039958954, 0.0648612305521965, 0.15653865039348602, -0.2515936493873596, 0.03911880403757095, -0.27303534746170044, 0.2372073531150818, 0.020657500252127647, 0.022600572556257248, -0.25852736830711365, -0.028028614819049835, 0.1524491012096405, -0.03544365242123604, 0.07424677163362503, -0.029815807938575745, 0.20515204966068268, -0.13112691044807434, -0.3151760697364807, 0.44241058826446533, -0.06842748820781708, 0.3711234927177429, -0.20054984092712402, 0.04405464604496956, 0.29042762517929077, -0.32422783970832825, 0.14126646518707275, 0.5436938405036926, 0.14468148350715637, 0.18299733102321625, -0.11142507940530777, 0.3421913683414459, 0.029991142451763153, -0.0450015664100647, 0.1369953602552414, -0.05215467885136604, -0.012033005245029926, 0.007030251435935497, -0.557658314704895, 0.03994523361325264, -0.10612507909536362, 0.15983039140701294, 0.32080599665641785, 0.14018432796001434, -0.14375078678131104, -0.08270131051540375, 0.5054668188095093, -0.16502968966960907, -0.17050713300704956, 0.4521292746067047, 0.024849019944667816, -0.24511577188968658, 0.143593892455101, 0.13453200459480286, 0.605295717716217, 0.24832981824874878, 0.16989809274673462, 0.10756009817123413, 0.1086898222565651, -0.2464025765657425, 0.5393248796463013, 0.15734608471393585, 0.12083572894334793, 0.2046385407447815, 0.08830047398805618, 0.3496350347995758, -0.47632211446762085, -0.15779350697994232, -0.01889137364923954, -0.34814515709877014, -0.2709912359714508, 0.15047849714756012, -0.5044305920600891, -0.16206349432468414, 0.11403954774141312, 0.11265863478183746, 0.08048379421234131, -0.18302182853221893, 0.15745331346988678, 0.21602191030979156, -0.2817361652851105, 0.35895511507987976, -0.2321259081363678, 0.3441586494445801, -0.061099883168935776, -0.27669355273246765, -0.16153138875961304, 0.10910890251398087, 0.10535888373851776, 0.05258004739880562, -0.09006045758724213, -0.44458651542663574, 0.12026207894086838, 0.22273975610733032, 0.0490904338657856, -0.20630110800266266, -0.19728410243988037, 0.06147032603621483, -0.06342098861932755, -0.12607455253601074, -0.0545569583773613, -0.1704534888267517, -0.06197001785039902, -0.4755943715572357, 0.08862064778804779, -0.26059895753860474, 0.09252564609050751, -0.22699938714504242, -0.07095591723918915, 0.28122347593307495, -0.4269392788410187, -0.14828312397003174, 0.05394701659679413, -0.5750746130943298, 0.36330845952033997, -0.3330126106739044, 0.10322821140289307, 0.3552732765674591, -0.14640255272388458, -0.2642797529697418, 0.11230728030204773, 0.10839647799730301, -0.36499226093292236, -0.6582283973693848, 0.3468933403491974, -0.12035562098026276, -0.325630247592926, -0.13684800267219543, 0.031240856274962425, -0.027497312054038048, 0.5976184010505676, -0.07176139205694199, 0.0724809542298317, -0.1209234669804573, -0.14642998576164246, -0.17313936352729797, -0.06129883974790573, 0.33939090371131897, 0.1769472360610962, -0.22264160215854645, -0.30910199880599976, -0.10570672154426575, -0.1121421530842781, 0.16431598365306854, 0.2035524845123291, 0.06040867790579796, 0.21593418717384338, -0.036429211497306824, 0.22968140244483948, 0.11895892769098282, 0.3798583447933197, 0.6151400804519653, 0.2907942831516266, 0.4680999219417572, -0.12080857157707214, -0.06920444965362549, 0.20560789108276367, -0.1757376343011856, -0.023805221542716026, 0.1030079647898674, 0.11635874211788177, -0.117308609187603, -0.12428944557905197, 0.13890808820724487, -0.34192517399787903, -0.32832568883895874, 0.027463577687740326, -0.08664683252573013, 0.13993407785892487, 0.053755972534418106, 0.2511184811592102, -0.18934416770935059, 0.15278153121471405, 0.0916985422372818, 0.23831382393836975, 0.6755878329277039, -0.15241175889968872, 0.10701411217451096, 0.33194413781166077, -0.40489426255226135, 0.3504061698913574, -0.1224256232380867, 0.01832546480000019, -0.039714515209198, -0.2039785385131836, 0.0501861646771431, 0.1413896083831787, 0.3463095724582672, -0.07633459568023682, -0.264782190322876, 0.2832125127315521, -0.04061874747276306, -0.5618639588356018, 0.03928309306502342, -0.052255336195230484, -0.13687662780284882, -0.011774777434766293, 0.3609426021575928, -0.2811940312385559, -0.3290458619594574, -0.04025886580348015, -0.2512138783931732, 0.15118002891540527, -0.06449151039123535, -0.20484711229801178, -0.3617081642150879, -0.1570328027009964, -0.28120455145835876, 0.15255901217460632, 0.25507792830467224, -0.2527914047241211, -0.010883843526244164, -0.11236662417650223, -0.0053262775763869286, 0.3447752296924591, -0.2916860580444336, 0.4291554093360901, 0.2251061201095581, -0.15020251274108887, -0.014622964896261692, 0.43828311562538147, -0.12710486352443695, 0.39876049757003784, 0.18987499177455902, -0.6032570600509644, 0.1646268516778946, 0.3104468286037445, 0.11715306341648102, 0.3649805188179016, -0.3255360424518585, -0.04942122474312782, -0.2289680540561676, 0.3229518234729767, -0.3455226719379425, 0.3161294758319855, 0.30637988448143005, -0.26365500688552856, -0.04436416178941727, -0.43989381194114685, 0.21755115687847137, 0.16427892446517944, -0.18902191519737244, 0.8254838585853577, 0.0352727547287941, -0.17732442915439606, 0.12257929891347885, 0.12631550431251526, 1.0271837711334229, 0.07792254537343979, -0.01729188859462738, 0.5256339907646179, -0.17895948886871338, 0.22321678698062897, -0.25249722599983215, 0.15082111954689026, 0.41473183035850525, -0.6663117408752441, 0.011624430306255817, 0.06355054676532745, 0.2472856342792511, -0.2237028330564499, -0.31313908100128174, 0.1947861909866333, 0.1261041909456253, -0.37496352195739746, 0.23409885168075562, 0.16402564942836761, -0.4982548952102661, -0.5518416166305542, -0.6275806427001953, 0.13328996300697327, -0.12510418891906738, 0.10286198556423187, 0.15144816040992737, -0.4420360028743744, 0.3490968346595764, -0.24423688650131226, 0.06934711337089539, 0.3628321886062622, -0.24729914963245392, -0.008077402599155903, -0.3074159622192383, -0.22759415209293365, 0.11193029582500458, 0.1407986432313919, -0.19504252076148987, -0.1791718304157257, -0.0038058252539485693, 0.21873511373996735, -0.24081294238567352, 0.2785663604736328, -0.09777401387691498, -0.020497802644968033, 0.06064583733677864, -0.028522532433271408, -0.02981257624924183, 0.1814386248588562, -0.10007108747959137, -0.23718537390232086, 0.2475832849740982, -0.06362544000148773, 0.1865832805633545, -0.06235891953110695, -0.0895967110991478, -0.25738149881362915, -0.10821854323148727, -0.08053549379110336, 0.07914861291646957, -0.16575206816196442, 0.05839923769235611, 0.07625959068536758, -0.10580477863550186, -0.43363404273986816, -0.13764753937721252, 0.24259400367736816, -0.0383618101477623, 0.08196885883808136, 0.24148114025592804, -0.42611077427864075, -0.23488754034042358, -0.010145868174731731, -0.03615209832787514, -0.33302149176597595, -0.1468377709388733, 0.045588742941617966, -0.01849515549838543, -0.10308393836021423, -0.16382986307144165, 0.1580747365951538, -0.08490844815969467, 0.3173322081565857, 0.021517576649785042, -0.20940683782100677, -0.038197875022888184, 0.17479516565799713, -0.3201456069946289, 0.061814919114112854, 0.23440726101398468, 0.12841278314590454, -0.03250475600361824, -0.08681311458349228, -0.2891891300678253, 0.13446630537509918, 0.41742464900016785, -0.07731274515390396, -0.1533910483121872, -0.005063829477876425, 0.4084663391113281, -0.11253347247838974, 0.042986657470464706, 0.25146421790122986, -0.21608102321624756, -0.13840441405773163, -0.28217196464538574, 0.21246875822544098, -0.009444436058402061, -0.3162381947040558, -0.12140623480081558, -0.01680317334830761, -0.05275515466928482, -0.3152305483818054, 0.3412930369377136, 0.005423249211162329, 0.02685617469251156, -0.09399906545877457, 0.21267250180244446, -0.012406503781676292, 0.035611480474472046, 0.03621705248951912, 0.057279810309410095, 0.6462960243225098, -0.06968600302934647, -0.0376831479370594, -0.18342940509319305, -0.17237018048763275, -0.39893192052841187, -0.12850217521190643, 0.34834054112434387, 0.36602887511253357, 0.5126974582672119, 0.17583492398262024, -0.19102884829044342, -0.12423637509346008, 0.34276193380355835, 0.1125371977686882, -0.0456463024020195, -0.18570511043071747, -0.06850447505712509, 0.15234023332595825, -0.16646961867809296, 0.004521648865193129, -0.02806680090725422, 0.4545367658138275, 0.0036068549379706383, -0.03218924254179001, -0.06794364750385284, 0.07963792234659195, 0.021243179216980934, -0.08787200599908829, 0.11408417671918869, 0.3200620710849762, 0.574615478515625, 0.21702268719673157, 0.11675981432199478, 0.23040707409381866, -0.06402048468589783, -0.02659451775252819, 0.057558659464120865, -0.1954066902399063, -0.11655884981155396, 0.44380825757980347, 0.2932680547237396, 0.26821327209472656, -0.18622595071792603, -0.49402448534965515, -0.08666366338729858, 0.10548176616430283, -0.18014398217201233, 0.4586995840072632, 0.2597763240337372, 0.13445761799812317, -0.2059480845928192, -0.17860285937786102, 0.059389419853687286, 0.43356844782829285, 0.23767094314098358, -0.27425917983055115, 0.08186523616313934, 0.08735200762748718, 0.05762401968240738, 0.15918183326721191, 0.09301742166280746, 0.3212280571460724, 0.23386988043785095, 0.12017445266246796, 0.05648389086127281, 0.1418883502483368, -0.3399503827095032, 0.0345463789999485, 0.5236920714378357, -0.17451952397823334, 0.1115560457110405, 0.3071354627609253, 0.008091740310192108, 0.2147068977355957, 0.4515007734298706, 0.28826725482940674, -0.03928709030151367, -0.005726305767893791, 0.1468675285577774, 0.14934207499027252, 0.0900038331747055, 0.025803130120038986, 0.09697587043046951, 0.5032495260238647, 0.1215638667345047, 0.27953001856803894, 0.1764884740114212, -0.0703049823641777, 0.21524043381214142, -0.11542375385761261, 0.34896039962768555, -0.2589488625526428, 0.2532711327075958, 0.1675397902727127, 0.18096527457237244, 0.06716987490653992, -0.22217077016830444, -0.24540752172470093, 0.12459076195955276, 0.1826528161764145, 0.1845453381538391, 0.01490340381860733, -0.14293158054351807, 0.08689859509468079, 0.24952323734760284, 0.17645812034606934, -0.10614266991615295, -0.14126193523406982, -0.22669363021850586, -0.3937929570674896, -0.3562111258506775, 0.2376067042350769, 0.1957729160785675, -0.07605285942554474, 0.2027980089187622, -0.01514257863163948, 0.3195689916610718, 0.26454877853393555, -0.22843775153160095, -0.08236472308635712, 0.22038035094738007, -0.08182304352521896, -0.16189849376678467, 0.13886038959026337, 0.37442532181739807, 0.10847862809896469, -0.0013720296556130052, -0.17354559898376465, 0.242367684841156, -0.19277848303318024, 0.0812593325972557, 0.007002816069871187, 0.011238430626690388, -0.33634936809539795, -0.13744497299194336, 0.3763563632965088, 0.25800621509552, -0.048221394419670105, -0.47526463866233826, -0.1529148519039154, 0.07442785799503326, 0.05430876091122627, -0.007446744479238987, -0.11399207264184952, -0.07797601819038391, 0.2417217493057251, -0.08264663815498352, -0.00840126071125269, -0.422040730714798, 0.6201141476631165, -0.12555459141731262, -0.40730300545692444, -0.41896119713783264, 0.013687117956578732, -0.05031513422727585, -0.1109456941485405, -0.11005200445652008, 0.33061593770980835, -0.12013886868953705, 0.20108254253864288, -0.10849352926015854, -0.4842885136604309, 0.7212750911712646, -0.30659040808677673, -0.01802091859281063, 0.06007944047451019, 0.34017303586006165, 0.09340531378984451, 0.004433643538504839, -0.356125146150589, 0.16655877232551575, 0.11131580173969269, -0.0360378623008728, -0.07977116107940674, 0.12271871417760849, -0.17045296728610992, -0.13750937581062317, -0.06297043710947037, 0.23429803550243378, 0.18409420549869537, -0.2812793552875519, 0.06365842372179031, -0.1641806811094284 ]
https://github.com/huggingface/datasets/issues/2799
Loading JSON throws ArrowNotImplementedError
Hi @lewtun, thanks for reporting. Apparently, `pyarrow.json` tries to cast timestamp-like fields in your JSON file to pyarrow timestamp type, and it fails with `ArrowNotImplementedError`. I will investigate if there is a way to tell pyarrow not to try that timestamp casting.
## Describe the bug I have created a [dataset](https://huggingface.co/datasets/lewtun/github-issues-test) of GitHub issues in line-separated JSON format and am finding that I cannot load it with the `json` loading script (see stack trace below). Curiously, there is no problem loading the dataset with `pandas` which suggests some incorrect type inference is being made on the `datasets` side. For example, the stack trace indicates that some URL fields are being parsed as timestamps. You can find a Colab notebook which reproduces the error [here](https://colab.research.google.com/drive/1YUCM0j1vx5ZrouQbYSzal6RwB4-Aoh4o?usp=sharing). **Edit:** If one repeatedly tries to load the dataset, it _eventually_ works but I think it would still be good to understand why it fails in the first place :) ## Steps to reproduce the bug ```python from datasets import load_dataset from huggingface_hub import hf_hub_url import pandas as pd # returns https://huggingface.co/datasets/lewtun/github-issues-test/resolve/main/issues-datasets.jsonl data_files = hf_hub_url(repo_id="lewtun/github-issues-test", filename="issues-datasets.jsonl", repo_type="dataset") # throws ArrowNotImplementedError dset = load_dataset("json", data_files=data_files, split="test") # no problem with pandas ... df = pd.read_json(data_files, orient="records", lines=True) df.head() ``` ## Expected results I can load any line-separated JSON file, similar to `pandas`. ## Actual results ``` --------------------------------------------------------------------------- ArrowNotImplementedError Traceback (most recent call last) <ipython-input-7-5b8e82b6c3a2> in <module>() ----> 1 dset = load_dataset("json", data_files=data_files, split="test") 9 frames /usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.check_status() ArrowNotImplementedError: JSON conversion to struct<url: timestamp[s], html_url: timestamp[s], labels_url: timestamp[s], id: int64, node_id: timestamp[s], number: int64, title: timestamp[s], description: timestamp[s], creator: struct<login: timestamp[s], id: int64, node_id: timestamp[s], avatar_url: timestamp[s], gravatar_id: timestamp[s], url: timestamp[s], html_url: timestamp[s], followers_url: timestamp[s], following_url: timestamp[s], gists_url: timestamp[s], starred_url: timestamp[s], subscriptions_url: timestamp[s], organizations_url: timestamp[s], repos_url: timestamp[s], events_url: timestamp[s], received_events_url: timestamp[s], type: timestamp[s], site_admin: bool>, open_issues: int64, closed_issues: int64, state: timestamp[s], created_at: timestamp[s], updated_at: timestamp[s], due_on: timestamp[s], closed_at: timestamp[s]> is not supported ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: Linux-5.4.104+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.11 - PyArrow version: 3.0.0
42
Loading JSON throws ArrowNotImplementedError ## Describe the bug I have created a [dataset](https://huggingface.co/datasets/lewtun/github-issues-test) of GitHub issues in line-separated JSON format and am finding that I cannot load it with the `json` loading script (see stack trace below). Curiously, there is no problem loading the dataset with `pandas` which suggests some incorrect type inference is being made on the `datasets` side. For example, the stack trace indicates that some URL fields are being parsed as timestamps. You can find a Colab notebook which reproduces the error [here](https://colab.research.google.com/drive/1YUCM0j1vx5ZrouQbYSzal6RwB4-Aoh4o?usp=sharing). **Edit:** If one repeatedly tries to load the dataset, it _eventually_ works but I think it would still be good to understand why it fails in the first place :) ## Steps to reproduce the bug ```python from datasets import load_dataset from huggingface_hub import hf_hub_url import pandas as pd # returns https://huggingface.co/datasets/lewtun/github-issues-test/resolve/main/issues-datasets.jsonl data_files = hf_hub_url(repo_id="lewtun/github-issues-test", filename="issues-datasets.jsonl", repo_type="dataset") # throws ArrowNotImplementedError dset = load_dataset("json", data_files=data_files, split="test") # no problem with pandas ... df = pd.read_json(data_files, orient="records", lines=True) df.head() ``` ## Expected results I can load any line-separated JSON file, similar to `pandas`. ## Actual results ``` --------------------------------------------------------------------------- ArrowNotImplementedError Traceback (most recent call last) <ipython-input-7-5b8e82b6c3a2> in <module>() ----> 1 dset = load_dataset("json", data_files=data_files, split="test") 9 frames /usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.check_status() ArrowNotImplementedError: JSON conversion to struct<url: timestamp[s], html_url: timestamp[s], labels_url: timestamp[s], id: int64, node_id: timestamp[s], number: int64, title: timestamp[s], description: timestamp[s], creator: struct<login: timestamp[s], id: int64, node_id: timestamp[s], avatar_url: timestamp[s], gravatar_id: timestamp[s], url: timestamp[s], html_url: timestamp[s], followers_url: timestamp[s], following_url: timestamp[s], gists_url: timestamp[s], starred_url: timestamp[s], subscriptions_url: timestamp[s], organizations_url: timestamp[s], repos_url: timestamp[s], events_url: timestamp[s], received_events_url: timestamp[s], type: timestamp[s], site_admin: bool>, open_issues: int64, closed_issues: int64, state: timestamp[s], created_at: timestamp[s], updated_at: timestamp[s], due_on: timestamp[s], closed_at: timestamp[s]> is not supported ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: Linux-5.4.104+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.11 - PyArrow version: 3.0.0 Hi @lewtun, thanks for reporting. Apparently, `pyarrow.json` tries to cast timestamp-like fields in your JSON file to pyarrow timestamp type, and it fails with `ArrowNotImplementedError`. I will investigate if there is a way to tell pyarrow not to try that timestamp casting.
[ -0.06818731129169464, 0.18416215479373932, 0.03641558066010475, 0.37807008624076843, 0.2355373203754425, -0.006270223297178745, 0.4846680462360382, 0.3670633137226105, 0.4180773198604584, -0.0028389368671923876, 0.0605548620223999, 0.5898873805999756, 0.02762068808078766, -0.1488582044839859, -0.2172110229730606, -0.1838727742433548, 0.03135571628808975, 0.19051624834537506, 0.12744608521461487, 0.028584999963641167, -0.3122329115867615, 0.2942056655883789, -0.2148161679506302, 0.10177382081747055, -0.03912680596113205, -0.09522688388824463, 0.10416249185800552, 0.39333927631378174, -0.1264190673828125, -0.38264647126197815, 0.4134060740470886, -0.013035070151090622, 0.2161162942647934, 0.5308530926704407, -0.00012035988038405776, 0.1964653879404068, 0.41525277495384216, -0.0924445241689682, -0.28681185841560364, -0.4780588150024414, -0.2790296971797943, -0.3253917992115021, 0.5374761819839478, -0.12003785371780396, 0.10520531982183456, -0.24374736845493317, -0.04976978898048401, -0.22078180313110352, 0.6015408635139465, 0.2307230830192566, 0.10480260103940964, 0.4299395680427551, 0.026029197499155998, 0.019219255074858665, 0.06372804939746857, 0.2108369916677475, -0.12177588045597076, 0.45420393347740173, 0.008248300291597843, 0.12705300748348236, -0.17159712314605713, -0.0036358556244522333, -0.10264134407043457, 0.15386691689491272, 0.21912263333797455, 0.04760073125362396, -0.17040188610553741, 0.08183465152978897, 0.0492500364780426, 0.2946322560310364, 0.284576952457428, -0.0508807897567749, -0.4122375249862671, -0.34899574518203735, -0.12078513205051422, 0.13027247786521912, 0.2388218343257904, 0.24735967814922333, -0.15091712772846222, 0.1259337216615677, 0.032882604748010635, -0.018471719697117805, -0.2741968333721161, 0.23838010430335999, 0.003643703879788518, 0.011186736635863781, -0.15821944177150726, 0.10729175806045532, -0.12958568334579468, -0.02082480862736702, -0.1499336212873459, -0.22448261082172394, -0.3057588040828705, 0.1283782422542572, 0.0374985933303833, 0.11600395292043686, -0.035597749054431915, -0.41007766127586365, 0.23558370769023895, 0.35584771633148193, 0.32067087292671204, 0.20801934599876404, -0.2673652172088623, 0.2078460454940796, 0.590325653553009, 0.2016136795282364, -0.05490148812532425, 0.011498508043587208, 0.2564995288848877, 0.33051446080207825, 0.06072988733649254, -0.04355337470769882, -0.2637994587421417, -0.11083322018384933, 0.010376989841461182, -0.19745106995105743, 0.30868086218833923, -0.1726260930299759, -0.22385309636592865, 0.07556311041116714, -0.6134248971939087, -0.0573212131857872, -0.0002186513738706708, 0.3672918677330017, -0.19718718528747559, 0.49877801537513733, 0.2744283676147461, 0.48683854937553406, 0.044217128306627274, 0.03172780200839043, -0.10223813354969025, -0.03534836694598198, -0.1634833812713623, -0.2962281405925751, 0.23716622591018677, 0.052544377744197845, 0.08610545843839645, 0.1265181303024292, -0.06300155073404312, -0.4126388430595398, -0.07425983250141144, 0.04771535098552704, -0.09740504622459412, 0.1669667512178421, 0.19205154478549957, 0.1328710913658142, 0.15592622756958008, -0.40450236201286316, -0.13764633238315582, 0.03230241686105728, -0.3769195079803467, 0.005557807628065348, -0.31768515706062317, 0.05463039129972458, -0.2702910304069519, -0.012081819586455822, -0.7623516917228699, -0.05212001875042915, -0.11227820813655853, 0.06602650880813599, 0.06387511640787125, -0.024417102336883545, 0.2227596491575241, -0.24708473682403564, 0.07498185336589813, 0.2833138406276703, -0.3005582392215729, -0.23782388865947723, -0.062928706407547, -0.0374918058514595, 0.1896338015794754, 0.26508811116218567, -0.20057746767997742, 0.28454601764678955, -0.16373507678508759, 0.21066978573799133, 0.3121516704559326, -0.33273082971572876, -0.22192616760730743, 0.6055203080177307, 0.019304810091853142, 0.5248504877090454, 0.019884197041392326, -0.2308954894542694, -0.009200475178658962, 0.18840406835079193, 0.30359509587287903, 0.4013707637786865, 0.14228755235671997, 0.06791505962610245, -0.2457050383090973, -0.20226357877254486, -0.13464254140853882, 0.31276920437812805, 0.048766665160655975, 0.18893998861312866, 0.09953539818525314, 0.02447848580777645, 0.25068703293800354, -0.19513918459415436, -0.026667488738894463, 0.1624230444431305, 0.09113296866416931, 0.028215039521455765, -0.005726050119847059, -0.004411306697875261, -0.6142939925193787, 0.1499558985233307, -0.051122479140758514, 0.10920239984989166, -0.40808597207069397, 0.009320923127233982, -0.25478315353393555, 0.12606793642044067, -0.12807519733905792, 0.1847676932811737, 0.037452757358551025, 0.10865363478660583, -0.18218713998794556, 0.2108014076948166, -0.18389394879341125, 0.31523215770721436, 0.16264460980892181, 0.2816523313522339, -0.48346424102783203, 0.4377061724662781, 0.21025602519512177, -0.12123838812112808, 0.027117908000946045, 0.1853714883327484, -0.09781768918037415, -0.16267065703868866, -0.2391357272863388, 0.17275479435920715, 0.13941796123981476, 0.179713636636734, -0.05627715587615967, -0.23757092654705048, -0.08228375762701035, 0.08385948836803436, -0.1951902210712433, 0.30687758326530457, 0.22172389924526215, -0.02458440326154232, -0.028096579015254974, 0.8052087426185608, -0.07410702109336853, 0.44319722056388855, -0.015723353251814842, -0.020550785586237907, 0.4561719298362732, 0.061565812677145004, -0.3641532063484192, -0.30534011125564575, 0.2388351857662201, 0.318624883890152, 0.060367401689291, 0.004004923161119223, -0.3794294595718384, -0.1885215789079666, 0.3982870876789093, 0.005179752130061388, 0.24246230721473694, 0.15323491394519806, -0.09535687416791916, -0.09967263042926788, 0.01585964858531952, 0.140178382396698, 0.23829849064350128, 0.07587691396474838, -0.20704767107963562, -0.04344674199819565, -0.040947869420051575, -0.024745294824242592, 0.1555987149477005, 0.3065347671508789, 0.2641777992248535, 0.09334737062454224, 0.15588873624801636, -0.020961785688996315, -0.2815464735031128, -0.23800407350063324, -0.286360502243042, 0.11893868446350098, -0.6182573437690735, 0.29913759231567383, -0.47434720396995544, 0.1188913956284523, 0.03533333167433739, -0.3410823941230774, -0.12630008161067963, -0.3229715824127197, -0.3007417321205139, 0.2734273672103882, -0.11474968492984772, -0.13416682183742523, -0.2667236328125, 0.3151707649230957, -0.023212866857647896, -0.346346914768219, -0.2113419622182846, -0.011718220077455044, -0.18464821577072144, -0.02340598963201046, 0.387586772441864, 0.10929606109857559, 0.15447255969047546, -0.12894073128700256, 0.047313809394836426, 0.14181938767433167, -0.08639691770076752, 0.14820019900798798, -0.19949878752231598, 0.2889932692050934, 0.2154708057641983, 0.19690993428230286, -0.09785258024930954, -0.15164655447006226, 0.28866541385650635, 0.0957517996430397, -0.34277042746543884, 0.3241927921772003, -0.13549865782260895, 0.027899762615561485, -0.14921672642230988, -0.02916877157986164, 0.12195532023906708, -0.4392545819282532, 0.5247157216072083, 0.24586881697177887, 0.058138370513916016, -0.01700706221163273, 0.02426138147711754, 0.1799219250679016, 0.16870653629302979, 0.01591145433485508, -0.11074631661176682, -0.1546856164932251, 0.2326570451259613, -0.1608324944972992, -0.25017639994621277, 0.07645481824874878, -0.1965516358613968, 0.16859082877635956, -0.08651303499937057, -0.390976220369339, 0.025942986831068993, 0.07071974873542786, 0.11365674436092377, -0.044403787702322006, -0.2952394485473633, 0.05882461369037628, -0.012750313617289066, 0.08519040048122406, -0.18557152152061462, -0.20222538709640503, 0.12063156813383102, -0.043812669813632965, 0.02160363644361496, 0.056514542549848557, 0.7252907752990723, -0.09429588168859482, 0.1807756870985031, 0.31179991364479065, -0.0382719486951828, 0.3949742615222931, -0.02644391544163227, 0.10300911217927933, -0.4057942032814026, -0.1191258579492569, -0.38081806898117065, -0.0971134826540947, 0.07863707095384598, 0.2193029522895813, 0.10964231193065643, -0.28794798254966736, -0.24056001007556915, -0.06228409335017204, -0.4587051570415497, -0.3489449620246887, 0.13338007032871246, -0.3543262779712677, -0.3382492959499359, 0.03203357383608818, 0.22056424617767334, -0.0587298609316349, -0.05810149759054184, -0.03036249801516533, 0.4014143645763397, 0.20627954602241516, -0.04550056532025337, -0.2057114839553833, 0.03436813876032829, -0.3544536828994751, 0.3606956899166107, 0.07465274631977081, 0.3657505512237549, 0.19745834171772003, -0.028097601607441902, 0.24474874138832092, -0.20939946174621582, 0.44907259941101074, -0.12001055479049683, 0.02272767759859562, 0.028095928952097893, -0.12366592884063721, -0.6418691277503967, 0.10115137696266174, -0.12713126838207245, 0.29076629877090454, 0.23598210513591766, 0.20954784750938416, -0.4572594463825226, -0.2961418032646179, 0.10186849534511566, -0.15043905377388, -0.10587037354707718, -0.1064762994647026, -0.36403852701187134, -0.2923770546913147, -0.24482955038547516, -0.1525726616382599, 0.0274702999740839, 0.2387111634016037, 0.08743688464164734, -0.09870646893978119, -0.2664908468723297, -0.069085031747818, 0.12258501350879669, 0.21641618013381958, 0.18808802962303162, -0.21739211678504944, 0.040979791432619095, 0.00611196318641305, 0.3643350303173065, 0.3959254324436188, 0.8496598601341248, 0.25615501403808594, -0.534641444683075, 0.20925261080265045, -0.024547992274165154, 0.04204613342881203, 0.18659667670726776, 0.023035258054733276, 0.08351000398397446, 0.28506460785865784, 0.14488013088703156, -0.21752822399139404, -0.1765887290239334, 0.48042595386505127, -0.17388500273227692, -0.46211788058280945, -0.34639349579811096, 0.4906902015209198, -0.1168818399310112, 0.02133006788790226, 0.22633972764015198, 0.26789799332618713, -0.14670515060424805, 0.7589291334152222, 0.002883089706301689, 0.793040931224823, 0.14873678982257843, 0.19805265963077545, 0.7221460938453674, -0.5317469835281372, 0.4004822373390198, -0.03223046660423279, -0.07088623940944672, -0.2383532077074051, 0.5987788438796997, -0.18201710283756256, -0.15158270299434662, -0.009594365954399109, 0.19250941276550293, -0.10306885093450546, 0.02257486991584301, -0.3046785891056061, -0.016252195462584496, 0.07874862104654312, 0.128597229719162, -0.11410631239414215, -0.28102079033851624, -0.7139284014701843, -0.01392193790525198, -0.12063397467136383, 0.03402039036154747, -0.003520016325637698, -0.30640578269958496, -0.25588852167129517, -0.18885281682014465, -0.34644126892089844, 0.2579857409000397, 0.1630946397781372, -0.0184751246124506, 0.2230372577905655, -0.04961375147104263, 0.09468185156583786, -0.052479688078165054, 0.29250431060791016, -0.09333887696266174, -0.1754465103149414, 0.1870107650756836, -0.13640373945236206, -0.09913785010576248, -0.09244602173566818, -0.016064830124378204, 0.5005757212638855, -0.0768827423453331, -0.15895432233810425, -0.20509882271289825, -0.2627159059047699, -0.5380345582962036, 0.2646922469139099, 0.41636523604393005, -0.3466080129146576, -0.24097612500190735, -0.39311477541923523, -0.047528039664030075, 0.27230721712112427, -0.1570664942264557, 0.04984775930643082, 0.26246708631515503, 0.1839360147714615, -0.06745914369821548, 0.29085052013397217, -0.36090323328971863, -0.10872885584831238, 0.3222658038139343, -0.03531019389629364, 0.056495290249586105, 0.503344714641571, 0.2862298786640167, -0.21799522638320923, -0.19046145677566528, 0.20364037156105042, 0.8105611205101013, -0.626924991607666, 0.3065256178379059, -0.17307782173156738, -0.053579941391944885, -0.04724150151014328, 0.3028697967529297, 0.0699545368552208, -0.023222144693136215, 0.05662134662270546, -0.6213234663009644, -0.10620062798261642, 0.41224709153175354, -0.15431305766105652, -0.021445637568831444, 0.13514403998851776, -0.016934694722294807, -0.24055147171020508, -0.17206096649169922, -0.17293553054332733, 0.21926215291023254, -0.1576298475265503, -0.2045777440071106, -0.30864354968070984, 0.06320460140705109, 0.5788154006004333, 0.00680637639015913, 0.08658616989850998, 0.08174802362918854, -0.14363214373588562, -0.08859871327877045, -0.3009875416755676, 0.2072961926460266, 0.10435613244771957, -0.09271062910556793, -0.07846054434776306, 0.010122298263013363, -0.17902357876300812, -0.13574886322021484, 0.2507112920284271, 0.266754686832428, -0.0477173775434494, -0.13315582275390625, 0.0813499465584755, 0.15249711275100708, -0.24473494291305542, 0.1382141411304474, -0.15908381342887878, 0.5401739478111267, 0.08584684878587723, -0.04767218604683876, -0.22915242612361908, 0.14430353045463562, -0.23546186089515686, 0.2881273031234741, 0.20307670533657074, 0.21647194027900696, 0.4846534729003906, -0.4272492229938507, 0.038283057510852814, -0.20709295570850372, 0.09760752320289612, 0.316317081451416, -0.2574582099914551, 0.050457362085580826, -0.16220234334468842, 0.054788585752248764, 0.01315215788781643, 0.05251077935099602, 0.13962776958942413, -0.03898271545767784, 0.042707111686468124, 0.333688884973526, -0.13881897926330566, 0.042830999940633774, -0.23344029486179352, 0.0458436980843544, 0.42551133036613464, 0.15897729992866516, 0.051013730466365814, 0.2905644178390503, -0.2684132754802704, 0.0809302106499672, 0.01585356518626213, 0.14075802266597748, 0.2980791926383972, -0.007114956621080637, 0.06808736175298691, 0.021724840626120567, 0.14912402629852295, 0.24231332540512085, 0.0005276774754747748, -0.4159059524536133, -0.04208175837993622, 0.3158297836780548, -0.050042569637298584, 0.3092299699783325, 0.1688641905784607, 0.3333728313446045, -0.1892765611410141, 0.09698577970266342, -0.40366271138191223, -0.1670229583978653, -0.05381406843662262, -0.22119857370853424, -0.5511418581008911, -0.20695267617702484, -0.37152719497680664, -0.11091680824756622, -0.13509945571422577, -0.06150692701339722, -0.274171382188797, 0.18862254917621613, 0.05034526064991951, -0.33036282658576965, 0.08140741288661957, -0.19553887844085693, 0.2041691243648529, -0.15234708786010742, 0.22637057304382324, -0.009327996522188187, 0.036245133727788925, 0.3188803195953369, 0.07601519674062729, 0.5093174576759338, 0.22838090360164642, -0.09633480757474899, -0.24879448115825653, -0.024123763665556908, -0.14217840135097504, 0.04037773236632347, 0.34687894582748413, 0.1857324242591858, 0.03956440091133118, 0.24208207428455353, 0.1516418755054474, -0.11332342773675919, 0.35656121373176575, 0.0022536776959896088, 0.2634565830230713, -0.09924878180027008, 0.5178785920143127, -0.46765920519828796, 0.10009343922138214, -0.16723163425922394, -0.3525444567203522, -0.1460464894771576, -0.31882649660110474, -0.1780049055814743, -0.19459015130996704, -0.023564016446471214, -0.058697473257780075, 0.023275742307305336, -0.08691716194152832, 0.4179299473762512, 0.39496996998786926, 0.18195727467536926, 0.1531836837530136, -0.03307943418622017, -0.2972988486289978, 0.23512358963489532, -0.13189488649368286, 0.030758023262023926, 0.21575511991977692, 0.2165425717830658, 0.07676849514245987, 0.17264032363891602, 0.0412500835955143, 0.03877468779683113, 0.011110380291938782, 0.21657292544841766, -0.24331015348434448, -0.06097504496574402, 0.27531400322914124, 0.017352666705846786, -0.13577400147914886, -0.2809370160102844, -0.08887410908937454, -0.05857513099908829, -0.059832751750946045, 0.1518503576517105, -0.05953913554549217, -0.0654158964753151, -0.16986843943595886, 0.4425504803657532, 0.13243603706359863, 0.20110847055912018, -0.05750926211476326, -0.476009726524353, -0.2689439058303833, -0.41445255279541016, -0.13085053861141205, 0.3707847595214844, -0.1804431974887848, 0.6111345291137695, 0.03422325477004051, 0.14840488135814667, -0.018519308418035507, -0.04486348107457161, -0.18750688433647156, -0.09821823984384537, -0.5277872681617737, 0.29390010237693787, -0.3957844376564026, 0.14473477005958557, -0.13155709207057953, 0.1057320088148117, 0.12398533523082733, 0.1936316341161728, -0.07723566144704819, -0.23171398043632507, 0.4982316493988037, -0.2602384686470032, -0.313359797000885, 0.27279287576675415, 0.08891412615776062, -0.1325901746749878, -0.2973819971084595, -0.6104029417037964, 0.010996503755450249, 0.2189055234193802, 0.030551455914974213, -0.2178259640932083, -0.11244978755712509, -0.12426073849201202, -0.05467722564935684, -0.1363346129655838, 0.22239863872528076, 0.013669331558048725, -0.11380692571401596, 0.14410994946956635, -0.18696914613246918 ]
https://github.com/huggingface/datasets/issues/2799
Loading JSON throws ArrowNotImplementedError
I think the issue is more complex than that... I just took one of your JSON lines and pyarrow.json read it without problem.
## Describe the bug I have created a [dataset](https://huggingface.co/datasets/lewtun/github-issues-test) of GitHub issues in line-separated JSON format and am finding that I cannot load it with the `json` loading script (see stack trace below). Curiously, there is no problem loading the dataset with `pandas` which suggests some incorrect type inference is being made on the `datasets` side. For example, the stack trace indicates that some URL fields are being parsed as timestamps. You can find a Colab notebook which reproduces the error [here](https://colab.research.google.com/drive/1YUCM0j1vx5ZrouQbYSzal6RwB4-Aoh4o?usp=sharing). **Edit:** If one repeatedly tries to load the dataset, it _eventually_ works but I think it would still be good to understand why it fails in the first place :) ## Steps to reproduce the bug ```python from datasets import load_dataset from huggingface_hub import hf_hub_url import pandas as pd # returns https://huggingface.co/datasets/lewtun/github-issues-test/resolve/main/issues-datasets.jsonl data_files = hf_hub_url(repo_id="lewtun/github-issues-test", filename="issues-datasets.jsonl", repo_type="dataset") # throws ArrowNotImplementedError dset = load_dataset("json", data_files=data_files, split="test") # no problem with pandas ... df = pd.read_json(data_files, orient="records", lines=True) df.head() ``` ## Expected results I can load any line-separated JSON file, similar to `pandas`. ## Actual results ``` --------------------------------------------------------------------------- ArrowNotImplementedError Traceback (most recent call last) <ipython-input-7-5b8e82b6c3a2> in <module>() ----> 1 dset = load_dataset("json", data_files=data_files, split="test") 9 frames /usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.check_status() ArrowNotImplementedError: JSON conversion to struct<url: timestamp[s], html_url: timestamp[s], labels_url: timestamp[s], id: int64, node_id: timestamp[s], number: int64, title: timestamp[s], description: timestamp[s], creator: struct<login: timestamp[s], id: int64, node_id: timestamp[s], avatar_url: timestamp[s], gravatar_id: timestamp[s], url: timestamp[s], html_url: timestamp[s], followers_url: timestamp[s], following_url: timestamp[s], gists_url: timestamp[s], starred_url: timestamp[s], subscriptions_url: timestamp[s], organizations_url: timestamp[s], repos_url: timestamp[s], events_url: timestamp[s], received_events_url: timestamp[s], type: timestamp[s], site_admin: bool>, open_issues: int64, closed_issues: int64, state: timestamp[s], created_at: timestamp[s], updated_at: timestamp[s], due_on: timestamp[s], closed_at: timestamp[s]> is not supported ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: Linux-5.4.104+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.11 - PyArrow version: 3.0.0
23
Loading JSON throws ArrowNotImplementedError ## Describe the bug I have created a [dataset](https://huggingface.co/datasets/lewtun/github-issues-test) of GitHub issues in line-separated JSON format and am finding that I cannot load it with the `json` loading script (see stack trace below). Curiously, there is no problem loading the dataset with `pandas` which suggests some incorrect type inference is being made on the `datasets` side. For example, the stack trace indicates that some URL fields are being parsed as timestamps. You can find a Colab notebook which reproduces the error [here](https://colab.research.google.com/drive/1YUCM0j1vx5ZrouQbYSzal6RwB4-Aoh4o?usp=sharing). **Edit:** If one repeatedly tries to load the dataset, it _eventually_ works but I think it would still be good to understand why it fails in the first place :) ## Steps to reproduce the bug ```python from datasets import load_dataset from huggingface_hub import hf_hub_url import pandas as pd # returns https://huggingface.co/datasets/lewtun/github-issues-test/resolve/main/issues-datasets.jsonl data_files = hf_hub_url(repo_id="lewtun/github-issues-test", filename="issues-datasets.jsonl", repo_type="dataset") # throws ArrowNotImplementedError dset = load_dataset("json", data_files=data_files, split="test") # no problem with pandas ... df = pd.read_json(data_files, orient="records", lines=True) df.head() ``` ## Expected results I can load any line-separated JSON file, similar to `pandas`. ## Actual results ``` --------------------------------------------------------------------------- ArrowNotImplementedError Traceback (most recent call last) <ipython-input-7-5b8e82b6c3a2> in <module>() ----> 1 dset = load_dataset("json", data_files=data_files, split="test") 9 frames /usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.check_status() ArrowNotImplementedError: JSON conversion to struct<url: timestamp[s], html_url: timestamp[s], labels_url: timestamp[s], id: int64, node_id: timestamp[s], number: int64, title: timestamp[s], description: timestamp[s], creator: struct<login: timestamp[s], id: int64, node_id: timestamp[s], avatar_url: timestamp[s], gravatar_id: timestamp[s], url: timestamp[s], html_url: timestamp[s], followers_url: timestamp[s], following_url: timestamp[s], gists_url: timestamp[s], starred_url: timestamp[s], subscriptions_url: timestamp[s], organizations_url: timestamp[s], repos_url: timestamp[s], events_url: timestamp[s], received_events_url: timestamp[s], type: timestamp[s], site_admin: bool>, open_issues: int64, closed_issues: int64, state: timestamp[s], created_at: timestamp[s], updated_at: timestamp[s], due_on: timestamp[s], closed_at: timestamp[s]> is not supported ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: Linux-5.4.104+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.11 - PyArrow version: 3.0.0 I think the issue is more complex than that... I just took one of your JSON lines and pyarrow.json read it without problem.
[ -0.06818731129169464, 0.18416215479373932, 0.03641558066010475, 0.37807008624076843, 0.2355373203754425, -0.006270223297178745, 0.4846680462360382, 0.3670633137226105, 0.4180773198604584, -0.0028389368671923876, 0.0605548620223999, 0.5898873805999756, 0.02762068808078766, -0.1488582044839859, -0.2172110229730606, -0.1838727742433548, 0.03135571628808975, 0.19051624834537506, 0.12744608521461487, 0.028584999963641167, -0.3122329115867615, 0.2942056655883789, -0.2148161679506302, 0.10177382081747055, -0.03912680596113205, -0.09522688388824463, 0.10416249185800552, 0.39333927631378174, -0.1264190673828125, -0.38264647126197815, 0.4134060740470886, -0.013035070151090622, 0.2161162942647934, 0.5308530926704407, -0.00012035988038405776, 0.1964653879404068, 0.41525277495384216, -0.0924445241689682, -0.28681185841560364, -0.4780588150024414, -0.2790296971797943, -0.3253917992115021, 0.5374761819839478, -0.12003785371780396, 0.10520531982183456, -0.24374736845493317, -0.04976978898048401, -0.22078180313110352, 0.6015408635139465, 0.2307230830192566, 0.10480260103940964, 0.4299395680427551, 0.026029197499155998, 0.019219255074858665, 0.06372804939746857, 0.2108369916677475, -0.12177588045597076, 0.45420393347740173, 0.008248300291597843, 0.12705300748348236, -0.17159712314605713, -0.0036358556244522333, -0.10264134407043457, 0.15386691689491272, 0.21912263333797455, 0.04760073125362396, -0.17040188610553741, 0.08183465152978897, 0.0492500364780426, 0.2946322560310364, 0.284576952457428, -0.0508807897567749, -0.4122375249862671, -0.34899574518203735, -0.12078513205051422, 0.13027247786521912, 0.2388218343257904, 0.24735967814922333, -0.15091712772846222, 0.1259337216615677, 0.032882604748010635, -0.018471719697117805, -0.2741968333721161, 0.23838010430335999, 0.003643703879788518, 0.011186736635863781, -0.15821944177150726, 0.10729175806045532, -0.12958568334579468, -0.02082480862736702, -0.1499336212873459, -0.22448261082172394, -0.3057588040828705, 0.1283782422542572, 0.0374985933303833, 0.11600395292043686, -0.035597749054431915, -0.41007766127586365, 0.23558370769023895, 0.35584771633148193, 0.32067087292671204, 0.20801934599876404, -0.2673652172088623, 0.2078460454940796, 0.590325653553009, 0.2016136795282364, -0.05490148812532425, 0.011498508043587208, 0.2564995288848877, 0.33051446080207825, 0.06072988733649254, -0.04355337470769882, -0.2637994587421417, -0.11083322018384933, 0.010376989841461182, -0.19745106995105743, 0.30868086218833923, -0.1726260930299759, -0.22385309636592865, 0.07556311041116714, -0.6134248971939087, -0.0573212131857872, -0.0002186513738706708, 0.3672918677330017, -0.19718718528747559, 0.49877801537513733, 0.2744283676147461, 0.48683854937553406, 0.044217128306627274, 0.03172780200839043, -0.10223813354969025, -0.03534836694598198, -0.1634833812713623, -0.2962281405925751, 0.23716622591018677, 0.052544377744197845, 0.08610545843839645, 0.1265181303024292, -0.06300155073404312, -0.4126388430595398, -0.07425983250141144, 0.04771535098552704, -0.09740504622459412, 0.1669667512178421, 0.19205154478549957, 0.1328710913658142, 0.15592622756958008, -0.40450236201286316, -0.13764633238315582, 0.03230241686105728, -0.3769195079803467, 0.005557807628065348, -0.31768515706062317, 0.05463039129972458, -0.2702910304069519, -0.012081819586455822, -0.7623516917228699, -0.05212001875042915, -0.11227820813655853, 0.06602650880813599, 0.06387511640787125, -0.024417102336883545, 0.2227596491575241, -0.24708473682403564, 0.07498185336589813, 0.2833138406276703, -0.3005582392215729, -0.23782388865947723, -0.062928706407547, -0.0374918058514595, 0.1896338015794754, 0.26508811116218567, -0.20057746767997742, 0.28454601764678955, -0.16373507678508759, 0.21066978573799133, 0.3121516704559326, -0.33273082971572876, -0.22192616760730743, 0.6055203080177307, 0.019304810091853142, 0.5248504877090454, 0.019884197041392326, -0.2308954894542694, -0.009200475178658962, 0.18840406835079193, 0.30359509587287903, 0.4013707637786865, 0.14228755235671997, 0.06791505962610245, -0.2457050383090973, -0.20226357877254486, -0.13464254140853882, 0.31276920437812805, 0.048766665160655975, 0.18893998861312866, 0.09953539818525314, 0.02447848580777645, 0.25068703293800354, -0.19513918459415436, -0.026667488738894463, 0.1624230444431305, 0.09113296866416931, 0.028215039521455765, -0.005726050119847059, -0.004411306697875261, -0.6142939925193787, 0.1499558985233307, -0.051122479140758514, 0.10920239984989166, -0.40808597207069397, 0.009320923127233982, -0.25478315353393555, 0.12606793642044067, -0.12807519733905792, 0.1847676932811737, 0.037452757358551025, 0.10865363478660583, -0.18218713998794556, 0.2108014076948166, -0.18389394879341125, 0.31523215770721436, 0.16264460980892181, 0.2816523313522339, -0.48346424102783203, 0.4377061724662781, 0.21025602519512177, -0.12123838812112808, 0.027117908000946045, 0.1853714883327484, -0.09781768918037415, -0.16267065703868866, -0.2391357272863388, 0.17275479435920715, 0.13941796123981476, 0.179713636636734, -0.05627715587615967, -0.23757092654705048, -0.08228375762701035, 0.08385948836803436, -0.1951902210712433, 0.30687758326530457, 0.22172389924526215, -0.02458440326154232, -0.028096579015254974, 0.8052087426185608, -0.07410702109336853, 0.44319722056388855, -0.015723353251814842, -0.020550785586237907, 0.4561719298362732, 0.061565812677145004, -0.3641532063484192, -0.30534011125564575, 0.2388351857662201, 0.318624883890152, 0.060367401689291, 0.004004923161119223, -0.3794294595718384, -0.1885215789079666, 0.3982870876789093, 0.005179752130061388, 0.24246230721473694, 0.15323491394519806, -0.09535687416791916, -0.09967263042926788, 0.01585964858531952, 0.140178382396698, 0.23829849064350128, 0.07587691396474838, -0.20704767107963562, -0.04344674199819565, -0.040947869420051575, -0.024745294824242592, 0.1555987149477005, 0.3065347671508789, 0.2641777992248535, 0.09334737062454224, 0.15588873624801636, -0.020961785688996315, -0.2815464735031128, -0.23800407350063324, -0.286360502243042, 0.11893868446350098, -0.6182573437690735, 0.29913759231567383, -0.47434720396995544, 0.1188913956284523, 0.03533333167433739, -0.3410823941230774, -0.12630008161067963, -0.3229715824127197, -0.3007417321205139, 0.2734273672103882, -0.11474968492984772, -0.13416682183742523, -0.2667236328125, 0.3151707649230957, -0.023212866857647896, -0.346346914768219, -0.2113419622182846, -0.011718220077455044, -0.18464821577072144, -0.02340598963201046, 0.387586772441864, 0.10929606109857559, 0.15447255969047546, -0.12894073128700256, 0.047313809394836426, 0.14181938767433167, -0.08639691770076752, 0.14820019900798798, -0.19949878752231598, 0.2889932692050934, 0.2154708057641983, 0.19690993428230286, -0.09785258024930954, -0.15164655447006226, 0.28866541385650635, 0.0957517996430397, -0.34277042746543884, 0.3241927921772003, -0.13549865782260895, 0.027899762615561485, -0.14921672642230988, -0.02916877157986164, 0.12195532023906708, -0.4392545819282532, 0.5247157216072083, 0.24586881697177887, 0.058138370513916016, -0.01700706221163273, 0.02426138147711754, 0.1799219250679016, 0.16870653629302979, 0.01591145433485508, -0.11074631661176682, -0.1546856164932251, 0.2326570451259613, -0.1608324944972992, -0.25017639994621277, 0.07645481824874878, -0.1965516358613968, 0.16859082877635956, -0.08651303499937057, -0.390976220369339, 0.025942986831068993, 0.07071974873542786, 0.11365674436092377, -0.044403787702322006, -0.2952394485473633, 0.05882461369037628, -0.012750313617289066, 0.08519040048122406, -0.18557152152061462, -0.20222538709640503, 0.12063156813383102, -0.043812669813632965, 0.02160363644361496, 0.056514542549848557, 0.7252907752990723, -0.09429588168859482, 0.1807756870985031, 0.31179991364479065, -0.0382719486951828, 0.3949742615222931, -0.02644391544163227, 0.10300911217927933, -0.4057942032814026, -0.1191258579492569, -0.38081806898117065, -0.0971134826540947, 0.07863707095384598, 0.2193029522895813, 0.10964231193065643, -0.28794798254966736, -0.24056001007556915, -0.06228409335017204, -0.4587051570415497, -0.3489449620246887, 0.13338007032871246, -0.3543262779712677, -0.3382492959499359, 0.03203357383608818, 0.22056424617767334, -0.0587298609316349, -0.05810149759054184, -0.03036249801516533, 0.4014143645763397, 0.20627954602241516, -0.04550056532025337, -0.2057114839553833, 0.03436813876032829, -0.3544536828994751, 0.3606956899166107, 0.07465274631977081, 0.3657505512237549, 0.19745834171772003, -0.028097601607441902, 0.24474874138832092, -0.20939946174621582, 0.44907259941101074, -0.12001055479049683, 0.02272767759859562, 0.028095928952097893, -0.12366592884063721, -0.6418691277503967, 0.10115137696266174, -0.12713126838207245, 0.29076629877090454, 0.23598210513591766, 0.20954784750938416, -0.4572594463825226, -0.2961418032646179, 0.10186849534511566, -0.15043905377388, -0.10587037354707718, -0.1064762994647026, -0.36403852701187134, -0.2923770546913147, -0.24482955038547516, -0.1525726616382599, 0.0274702999740839, 0.2387111634016037, 0.08743688464164734, -0.09870646893978119, -0.2664908468723297, -0.069085031747818, 0.12258501350879669, 0.21641618013381958, 0.18808802962303162, -0.21739211678504944, 0.040979791432619095, 0.00611196318641305, 0.3643350303173065, 0.3959254324436188, 0.8496598601341248, 0.25615501403808594, -0.534641444683075, 0.20925261080265045, -0.024547992274165154, 0.04204613342881203, 0.18659667670726776, 0.023035258054733276, 0.08351000398397446, 0.28506460785865784, 0.14488013088703156, -0.21752822399139404, -0.1765887290239334, 0.48042595386505127, -0.17388500273227692, -0.46211788058280945, -0.34639349579811096, 0.4906902015209198, -0.1168818399310112, 0.02133006788790226, 0.22633972764015198, 0.26789799332618713, -0.14670515060424805, 0.7589291334152222, 0.002883089706301689, 0.793040931224823, 0.14873678982257843, 0.19805265963077545, 0.7221460938453674, -0.5317469835281372, 0.4004822373390198, -0.03223046660423279, -0.07088623940944672, -0.2383532077074051, 0.5987788438796997, -0.18201710283756256, -0.15158270299434662, -0.009594365954399109, 0.19250941276550293, -0.10306885093450546, 0.02257486991584301, -0.3046785891056061, -0.016252195462584496, 0.07874862104654312, 0.128597229719162, -0.11410631239414215, -0.28102079033851624, -0.7139284014701843, -0.01392193790525198, -0.12063397467136383, 0.03402039036154747, -0.003520016325637698, -0.30640578269958496, -0.25588852167129517, -0.18885281682014465, -0.34644126892089844, 0.2579857409000397, 0.1630946397781372, -0.0184751246124506, 0.2230372577905655, -0.04961375147104263, 0.09468185156583786, -0.052479688078165054, 0.29250431060791016, -0.09333887696266174, -0.1754465103149414, 0.1870107650756836, -0.13640373945236206, -0.09913785010576248, -0.09244602173566818, -0.016064830124378204, 0.5005757212638855, -0.0768827423453331, -0.15895432233810425, -0.20509882271289825, -0.2627159059047699, -0.5380345582962036, 0.2646922469139099, 0.41636523604393005, -0.3466080129146576, -0.24097612500190735, -0.39311477541923523, -0.047528039664030075, 0.27230721712112427, -0.1570664942264557, 0.04984775930643082, 0.26246708631515503, 0.1839360147714615, -0.06745914369821548, 0.29085052013397217, -0.36090323328971863, -0.10872885584831238, 0.3222658038139343, -0.03531019389629364, 0.056495290249586105, 0.503344714641571, 0.2862298786640167, -0.21799522638320923, -0.19046145677566528, 0.20364037156105042, 0.8105611205101013, -0.626924991607666, 0.3065256178379059, -0.17307782173156738, -0.053579941391944885, -0.04724150151014328, 0.3028697967529297, 0.0699545368552208, -0.023222144693136215, 0.05662134662270546, -0.6213234663009644, -0.10620062798261642, 0.41224709153175354, -0.15431305766105652, -0.021445637568831444, 0.13514403998851776, -0.016934694722294807, -0.24055147171020508, -0.17206096649169922, -0.17293553054332733, 0.21926215291023254, -0.1576298475265503, -0.2045777440071106, -0.30864354968070984, 0.06320460140705109, 0.5788154006004333, 0.00680637639015913, 0.08658616989850998, 0.08174802362918854, -0.14363214373588562, -0.08859871327877045, -0.3009875416755676, 0.2072961926460266, 0.10435613244771957, -0.09271062910556793, -0.07846054434776306, 0.010122298263013363, -0.17902357876300812, -0.13574886322021484, 0.2507112920284271, 0.266754686832428, -0.0477173775434494, -0.13315582275390625, 0.0813499465584755, 0.15249711275100708, -0.24473494291305542, 0.1382141411304474, -0.15908381342887878, 0.5401739478111267, 0.08584684878587723, -0.04767218604683876, -0.22915242612361908, 0.14430353045463562, -0.23546186089515686, 0.2881273031234741, 0.20307670533657074, 0.21647194027900696, 0.4846534729003906, -0.4272492229938507, 0.038283057510852814, -0.20709295570850372, 0.09760752320289612, 0.316317081451416, -0.2574582099914551, 0.050457362085580826, -0.16220234334468842, 0.054788585752248764, 0.01315215788781643, 0.05251077935099602, 0.13962776958942413, -0.03898271545767784, 0.042707111686468124, 0.333688884973526, -0.13881897926330566, 0.042830999940633774, -0.23344029486179352, 0.0458436980843544, 0.42551133036613464, 0.15897729992866516, 0.051013730466365814, 0.2905644178390503, -0.2684132754802704, 0.0809302106499672, 0.01585356518626213, 0.14075802266597748, 0.2980791926383972, -0.007114956621080637, 0.06808736175298691, 0.021724840626120567, 0.14912402629852295, 0.24231332540512085, 0.0005276774754747748, -0.4159059524536133, -0.04208175837993622, 0.3158297836780548, -0.050042569637298584, 0.3092299699783325, 0.1688641905784607, 0.3333728313446045, -0.1892765611410141, 0.09698577970266342, -0.40366271138191223, -0.1670229583978653, -0.05381406843662262, -0.22119857370853424, -0.5511418581008911, -0.20695267617702484, -0.37152719497680664, -0.11091680824756622, -0.13509945571422577, -0.06150692701339722, -0.274171382188797, 0.18862254917621613, 0.05034526064991951, -0.33036282658576965, 0.08140741288661957, -0.19553887844085693, 0.2041691243648529, -0.15234708786010742, 0.22637057304382324, -0.009327996522188187, 0.036245133727788925, 0.3188803195953369, 0.07601519674062729, 0.5093174576759338, 0.22838090360164642, -0.09633480757474899, -0.24879448115825653, -0.024123763665556908, -0.14217840135097504, 0.04037773236632347, 0.34687894582748413, 0.1857324242591858, 0.03956440091133118, 0.24208207428455353, 0.1516418755054474, -0.11332342773675919, 0.35656121373176575, 0.0022536776959896088, 0.2634565830230713, -0.09924878180027008, 0.5178785920143127, -0.46765920519828796, 0.10009343922138214, -0.16723163425922394, -0.3525444567203522, -0.1460464894771576, -0.31882649660110474, -0.1780049055814743, -0.19459015130996704, -0.023564016446471214, -0.058697473257780075, 0.023275742307305336, -0.08691716194152832, 0.4179299473762512, 0.39496996998786926, 0.18195727467536926, 0.1531836837530136, -0.03307943418622017, -0.2972988486289978, 0.23512358963489532, -0.13189488649368286, 0.030758023262023926, 0.21575511991977692, 0.2165425717830658, 0.07676849514245987, 0.17264032363891602, 0.0412500835955143, 0.03877468779683113, 0.011110380291938782, 0.21657292544841766, -0.24331015348434448, -0.06097504496574402, 0.27531400322914124, 0.017352666705846786, -0.13577400147914886, -0.2809370160102844, -0.08887410908937454, -0.05857513099908829, -0.059832751750946045, 0.1518503576517105, -0.05953913554549217, -0.0654158964753151, -0.16986843943595886, 0.4425504803657532, 0.13243603706359863, 0.20110847055912018, -0.05750926211476326, -0.476009726524353, -0.2689439058303833, -0.41445255279541016, -0.13085053861141205, 0.3707847595214844, -0.1804431974887848, 0.6111345291137695, 0.03422325477004051, 0.14840488135814667, -0.018519308418035507, -0.04486348107457161, -0.18750688433647156, -0.09821823984384537, -0.5277872681617737, 0.29390010237693787, -0.3957844376564026, 0.14473477005958557, -0.13155709207057953, 0.1057320088148117, 0.12398533523082733, 0.1936316341161728, -0.07723566144704819, -0.23171398043632507, 0.4982316493988037, -0.2602384686470032, -0.313359797000885, 0.27279287576675415, 0.08891412615776062, -0.1325901746749878, -0.2973819971084595, -0.6104029417037964, 0.010996503755450249, 0.2189055234193802, 0.030551455914974213, -0.2178259640932083, -0.11244978755712509, -0.12426073849201202, -0.05467722564935684, -0.1363346129655838, 0.22239863872528076, 0.013669331558048725, -0.11380692571401596, 0.14410994946956635, -0.18696914613246918 ]
https://github.com/huggingface/datasets/issues/2799
Loading JSON throws ArrowNotImplementedError
> I just took one of your JSON lines an pyarrow.json read it without problem. yes, and for some peculiar reason the error is non-deterministic (i was eventually able to load the whole dataset by just re-running the `load_dataset` cell multiple times 🤔) thanks for looking into this 🙏 !
## Describe the bug I have created a [dataset](https://huggingface.co/datasets/lewtun/github-issues-test) of GitHub issues in line-separated JSON format and am finding that I cannot load it with the `json` loading script (see stack trace below). Curiously, there is no problem loading the dataset with `pandas` which suggests some incorrect type inference is being made on the `datasets` side. For example, the stack trace indicates that some URL fields are being parsed as timestamps. You can find a Colab notebook which reproduces the error [here](https://colab.research.google.com/drive/1YUCM0j1vx5ZrouQbYSzal6RwB4-Aoh4o?usp=sharing). **Edit:** If one repeatedly tries to load the dataset, it _eventually_ works but I think it would still be good to understand why it fails in the first place :) ## Steps to reproduce the bug ```python from datasets import load_dataset from huggingface_hub import hf_hub_url import pandas as pd # returns https://huggingface.co/datasets/lewtun/github-issues-test/resolve/main/issues-datasets.jsonl data_files = hf_hub_url(repo_id="lewtun/github-issues-test", filename="issues-datasets.jsonl", repo_type="dataset") # throws ArrowNotImplementedError dset = load_dataset("json", data_files=data_files, split="test") # no problem with pandas ... df = pd.read_json(data_files, orient="records", lines=True) df.head() ``` ## Expected results I can load any line-separated JSON file, similar to `pandas`. ## Actual results ``` --------------------------------------------------------------------------- ArrowNotImplementedError Traceback (most recent call last) <ipython-input-7-5b8e82b6c3a2> in <module>() ----> 1 dset = load_dataset("json", data_files=data_files, split="test") 9 frames /usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.check_status() ArrowNotImplementedError: JSON conversion to struct<url: timestamp[s], html_url: timestamp[s], labels_url: timestamp[s], id: int64, node_id: timestamp[s], number: int64, title: timestamp[s], description: timestamp[s], creator: struct<login: timestamp[s], id: int64, node_id: timestamp[s], avatar_url: timestamp[s], gravatar_id: timestamp[s], url: timestamp[s], html_url: timestamp[s], followers_url: timestamp[s], following_url: timestamp[s], gists_url: timestamp[s], starred_url: timestamp[s], subscriptions_url: timestamp[s], organizations_url: timestamp[s], repos_url: timestamp[s], events_url: timestamp[s], received_events_url: timestamp[s], type: timestamp[s], site_admin: bool>, open_issues: int64, closed_issues: int64, state: timestamp[s], created_at: timestamp[s], updated_at: timestamp[s], due_on: timestamp[s], closed_at: timestamp[s]> is not supported ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: Linux-5.4.104+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.11 - PyArrow version: 3.0.0
50
Loading JSON throws ArrowNotImplementedError ## Describe the bug I have created a [dataset](https://huggingface.co/datasets/lewtun/github-issues-test) of GitHub issues in line-separated JSON format and am finding that I cannot load it with the `json` loading script (see stack trace below). Curiously, there is no problem loading the dataset with `pandas` which suggests some incorrect type inference is being made on the `datasets` side. For example, the stack trace indicates that some URL fields are being parsed as timestamps. You can find a Colab notebook which reproduces the error [here](https://colab.research.google.com/drive/1YUCM0j1vx5ZrouQbYSzal6RwB4-Aoh4o?usp=sharing). **Edit:** If one repeatedly tries to load the dataset, it _eventually_ works but I think it would still be good to understand why it fails in the first place :) ## Steps to reproduce the bug ```python from datasets import load_dataset from huggingface_hub import hf_hub_url import pandas as pd # returns https://huggingface.co/datasets/lewtun/github-issues-test/resolve/main/issues-datasets.jsonl data_files = hf_hub_url(repo_id="lewtun/github-issues-test", filename="issues-datasets.jsonl", repo_type="dataset") # throws ArrowNotImplementedError dset = load_dataset("json", data_files=data_files, split="test") # no problem with pandas ... df = pd.read_json(data_files, orient="records", lines=True) df.head() ``` ## Expected results I can load any line-separated JSON file, similar to `pandas`. ## Actual results ``` --------------------------------------------------------------------------- ArrowNotImplementedError Traceback (most recent call last) <ipython-input-7-5b8e82b6c3a2> in <module>() ----> 1 dset = load_dataset("json", data_files=data_files, split="test") 9 frames /usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.check_status() ArrowNotImplementedError: JSON conversion to struct<url: timestamp[s], html_url: timestamp[s], labels_url: timestamp[s], id: int64, node_id: timestamp[s], number: int64, title: timestamp[s], description: timestamp[s], creator: struct<login: timestamp[s], id: int64, node_id: timestamp[s], avatar_url: timestamp[s], gravatar_id: timestamp[s], url: timestamp[s], html_url: timestamp[s], followers_url: timestamp[s], following_url: timestamp[s], gists_url: timestamp[s], starred_url: timestamp[s], subscriptions_url: timestamp[s], organizations_url: timestamp[s], repos_url: timestamp[s], events_url: timestamp[s], received_events_url: timestamp[s], type: timestamp[s], site_admin: bool>, open_issues: int64, closed_issues: int64, state: timestamp[s], created_at: timestamp[s], updated_at: timestamp[s], due_on: timestamp[s], closed_at: timestamp[s]> is not supported ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: Linux-5.4.104+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.11 - PyArrow version: 3.0.0 > I just took one of your JSON lines an pyarrow.json read it without problem. yes, and for some peculiar reason the error is non-deterministic (i was eventually able to load the whole dataset by just re-running the `load_dataset` cell multiple times 🤔) thanks for looking into this 🙏 !
[ -0.06818731129169464, 0.18416215479373932, 0.03641558066010475, 0.37807008624076843, 0.2355373203754425, -0.006270223297178745, 0.4846680462360382, 0.3670633137226105, 0.4180773198604584, -0.0028389368671923876, 0.0605548620223999, 0.5898873805999756, 0.02762068808078766, -0.1488582044839859, -0.2172110229730606, -0.1838727742433548, 0.03135571628808975, 0.19051624834537506, 0.12744608521461487, 0.028584999963641167, -0.3122329115867615, 0.2942056655883789, -0.2148161679506302, 0.10177382081747055, -0.03912680596113205, -0.09522688388824463, 0.10416249185800552, 0.39333927631378174, -0.1264190673828125, -0.38264647126197815, 0.4134060740470886, -0.013035070151090622, 0.2161162942647934, 0.5308530926704407, -0.00012035988038405776, 0.1964653879404068, 0.41525277495384216, -0.0924445241689682, -0.28681185841560364, -0.4780588150024414, -0.2790296971797943, -0.3253917992115021, 0.5374761819839478, -0.12003785371780396, 0.10520531982183456, -0.24374736845493317, -0.04976978898048401, -0.22078180313110352, 0.6015408635139465, 0.2307230830192566, 0.10480260103940964, 0.4299395680427551, 0.026029197499155998, 0.019219255074858665, 0.06372804939746857, 0.2108369916677475, -0.12177588045597076, 0.45420393347740173, 0.008248300291597843, 0.12705300748348236, -0.17159712314605713, -0.0036358556244522333, -0.10264134407043457, 0.15386691689491272, 0.21912263333797455, 0.04760073125362396, -0.17040188610553741, 0.08183465152978897, 0.0492500364780426, 0.2946322560310364, 0.284576952457428, -0.0508807897567749, -0.4122375249862671, -0.34899574518203735, -0.12078513205051422, 0.13027247786521912, 0.2388218343257904, 0.24735967814922333, -0.15091712772846222, 0.1259337216615677, 0.032882604748010635, -0.018471719697117805, -0.2741968333721161, 0.23838010430335999, 0.003643703879788518, 0.011186736635863781, -0.15821944177150726, 0.10729175806045532, -0.12958568334579468, -0.02082480862736702, -0.1499336212873459, -0.22448261082172394, -0.3057588040828705, 0.1283782422542572, 0.0374985933303833, 0.11600395292043686, -0.035597749054431915, -0.41007766127586365, 0.23558370769023895, 0.35584771633148193, 0.32067087292671204, 0.20801934599876404, -0.2673652172088623, 0.2078460454940796, 0.590325653553009, 0.2016136795282364, -0.05490148812532425, 0.011498508043587208, 0.2564995288848877, 0.33051446080207825, 0.06072988733649254, -0.04355337470769882, -0.2637994587421417, -0.11083322018384933, 0.010376989841461182, -0.19745106995105743, 0.30868086218833923, -0.1726260930299759, -0.22385309636592865, 0.07556311041116714, -0.6134248971939087, -0.0573212131857872, -0.0002186513738706708, 0.3672918677330017, -0.19718718528747559, 0.49877801537513733, 0.2744283676147461, 0.48683854937553406, 0.044217128306627274, 0.03172780200839043, -0.10223813354969025, -0.03534836694598198, -0.1634833812713623, -0.2962281405925751, 0.23716622591018677, 0.052544377744197845, 0.08610545843839645, 0.1265181303024292, -0.06300155073404312, -0.4126388430595398, -0.07425983250141144, 0.04771535098552704, -0.09740504622459412, 0.1669667512178421, 0.19205154478549957, 0.1328710913658142, 0.15592622756958008, -0.40450236201286316, -0.13764633238315582, 0.03230241686105728, -0.3769195079803467, 0.005557807628065348, -0.31768515706062317, 0.05463039129972458, -0.2702910304069519, -0.012081819586455822, -0.7623516917228699, -0.05212001875042915, -0.11227820813655853, 0.06602650880813599, 0.06387511640787125, -0.024417102336883545, 0.2227596491575241, -0.24708473682403564, 0.07498185336589813, 0.2833138406276703, -0.3005582392215729, -0.23782388865947723, -0.062928706407547, -0.0374918058514595, 0.1896338015794754, 0.26508811116218567, -0.20057746767997742, 0.28454601764678955, -0.16373507678508759, 0.21066978573799133, 0.3121516704559326, -0.33273082971572876, -0.22192616760730743, 0.6055203080177307, 0.019304810091853142, 0.5248504877090454, 0.019884197041392326, -0.2308954894542694, -0.009200475178658962, 0.18840406835079193, 0.30359509587287903, 0.4013707637786865, 0.14228755235671997, 0.06791505962610245, -0.2457050383090973, -0.20226357877254486, -0.13464254140853882, 0.31276920437812805, 0.048766665160655975, 0.18893998861312866, 0.09953539818525314, 0.02447848580777645, 0.25068703293800354, -0.19513918459415436, -0.026667488738894463, 0.1624230444431305, 0.09113296866416931, 0.028215039521455765, -0.005726050119847059, -0.004411306697875261, -0.6142939925193787, 0.1499558985233307, -0.051122479140758514, 0.10920239984989166, -0.40808597207069397, 0.009320923127233982, -0.25478315353393555, 0.12606793642044067, -0.12807519733905792, 0.1847676932811737, 0.037452757358551025, 0.10865363478660583, -0.18218713998794556, 0.2108014076948166, -0.18389394879341125, 0.31523215770721436, 0.16264460980892181, 0.2816523313522339, -0.48346424102783203, 0.4377061724662781, 0.21025602519512177, -0.12123838812112808, 0.027117908000946045, 0.1853714883327484, -0.09781768918037415, -0.16267065703868866, -0.2391357272863388, 0.17275479435920715, 0.13941796123981476, 0.179713636636734, -0.05627715587615967, -0.23757092654705048, -0.08228375762701035, 0.08385948836803436, -0.1951902210712433, 0.30687758326530457, 0.22172389924526215, -0.02458440326154232, -0.028096579015254974, 0.8052087426185608, -0.07410702109336853, 0.44319722056388855, -0.015723353251814842, -0.020550785586237907, 0.4561719298362732, 0.061565812677145004, -0.3641532063484192, -0.30534011125564575, 0.2388351857662201, 0.318624883890152, 0.060367401689291, 0.004004923161119223, -0.3794294595718384, -0.1885215789079666, 0.3982870876789093, 0.005179752130061388, 0.24246230721473694, 0.15323491394519806, -0.09535687416791916, -0.09967263042926788, 0.01585964858531952, 0.140178382396698, 0.23829849064350128, 0.07587691396474838, -0.20704767107963562, -0.04344674199819565, -0.040947869420051575, -0.024745294824242592, 0.1555987149477005, 0.3065347671508789, 0.2641777992248535, 0.09334737062454224, 0.15588873624801636, -0.020961785688996315, -0.2815464735031128, -0.23800407350063324, -0.286360502243042, 0.11893868446350098, -0.6182573437690735, 0.29913759231567383, -0.47434720396995544, 0.1188913956284523, 0.03533333167433739, -0.3410823941230774, -0.12630008161067963, -0.3229715824127197, -0.3007417321205139, 0.2734273672103882, -0.11474968492984772, -0.13416682183742523, -0.2667236328125, 0.3151707649230957, -0.023212866857647896, -0.346346914768219, -0.2113419622182846, -0.011718220077455044, -0.18464821577072144, -0.02340598963201046, 0.387586772441864, 0.10929606109857559, 0.15447255969047546, -0.12894073128700256, 0.047313809394836426, 0.14181938767433167, -0.08639691770076752, 0.14820019900798798, -0.19949878752231598, 0.2889932692050934, 0.2154708057641983, 0.19690993428230286, -0.09785258024930954, -0.15164655447006226, 0.28866541385650635, 0.0957517996430397, -0.34277042746543884, 0.3241927921772003, -0.13549865782260895, 0.027899762615561485, -0.14921672642230988, -0.02916877157986164, 0.12195532023906708, -0.4392545819282532, 0.5247157216072083, 0.24586881697177887, 0.058138370513916016, -0.01700706221163273, 0.02426138147711754, 0.1799219250679016, 0.16870653629302979, 0.01591145433485508, -0.11074631661176682, -0.1546856164932251, 0.2326570451259613, -0.1608324944972992, -0.25017639994621277, 0.07645481824874878, -0.1965516358613968, 0.16859082877635956, -0.08651303499937057, -0.390976220369339, 0.025942986831068993, 0.07071974873542786, 0.11365674436092377, -0.044403787702322006, -0.2952394485473633, 0.05882461369037628, -0.012750313617289066, 0.08519040048122406, -0.18557152152061462, -0.20222538709640503, 0.12063156813383102, -0.043812669813632965, 0.02160363644361496, 0.056514542549848557, 0.7252907752990723, -0.09429588168859482, 0.1807756870985031, 0.31179991364479065, -0.0382719486951828, 0.3949742615222931, -0.02644391544163227, 0.10300911217927933, -0.4057942032814026, -0.1191258579492569, -0.38081806898117065, -0.0971134826540947, 0.07863707095384598, 0.2193029522895813, 0.10964231193065643, -0.28794798254966736, -0.24056001007556915, -0.06228409335017204, -0.4587051570415497, -0.3489449620246887, 0.13338007032871246, -0.3543262779712677, -0.3382492959499359, 0.03203357383608818, 0.22056424617767334, -0.0587298609316349, -0.05810149759054184, -0.03036249801516533, 0.4014143645763397, 0.20627954602241516, -0.04550056532025337, -0.2057114839553833, 0.03436813876032829, -0.3544536828994751, 0.3606956899166107, 0.07465274631977081, 0.3657505512237549, 0.19745834171772003, -0.028097601607441902, 0.24474874138832092, -0.20939946174621582, 0.44907259941101074, -0.12001055479049683, 0.02272767759859562, 0.028095928952097893, -0.12366592884063721, -0.6418691277503967, 0.10115137696266174, -0.12713126838207245, 0.29076629877090454, 0.23598210513591766, 0.20954784750938416, -0.4572594463825226, -0.2961418032646179, 0.10186849534511566, -0.15043905377388, -0.10587037354707718, -0.1064762994647026, -0.36403852701187134, -0.2923770546913147, -0.24482955038547516, -0.1525726616382599, 0.0274702999740839, 0.2387111634016037, 0.08743688464164734, -0.09870646893978119, -0.2664908468723297, -0.069085031747818, 0.12258501350879669, 0.21641618013381958, 0.18808802962303162, -0.21739211678504944, 0.040979791432619095, 0.00611196318641305, 0.3643350303173065, 0.3959254324436188, 0.8496598601341248, 0.25615501403808594, -0.534641444683075, 0.20925261080265045, -0.024547992274165154, 0.04204613342881203, 0.18659667670726776, 0.023035258054733276, 0.08351000398397446, 0.28506460785865784, 0.14488013088703156, -0.21752822399139404, -0.1765887290239334, 0.48042595386505127, -0.17388500273227692, -0.46211788058280945, -0.34639349579811096, 0.4906902015209198, -0.1168818399310112, 0.02133006788790226, 0.22633972764015198, 0.26789799332618713, -0.14670515060424805, 0.7589291334152222, 0.002883089706301689, 0.793040931224823, 0.14873678982257843, 0.19805265963077545, 0.7221460938453674, -0.5317469835281372, 0.4004822373390198, -0.03223046660423279, -0.07088623940944672, -0.2383532077074051, 0.5987788438796997, -0.18201710283756256, -0.15158270299434662, -0.009594365954399109, 0.19250941276550293, -0.10306885093450546, 0.02257486991584301, -0.3046785891056061, -0.016252195462584496, 0.07874862104654312, 0.128597229719162, -0.11410631239414215, -0.28102079033851624, -0.7139284014701843, -0.01392193790525198, -0.12063397467136383, 0.03402039036154747, -0.003520016325637698, -0.30640578269958496, -0.25588852167129517, -0.18885281682014465, -0.34644126892089844, 0.2579857409000397, 0.1630946397781372, -0.0184751246124506, 0.2230372577905655, -0.04961375147104263, 0.09468185156583786, -0.052479688078165054, 0.29250431060791016, -0.09333887696266174, -0.1754465103149414, 0.1870107650756836, -0.13640373945236206, -0.09913785010576248, -0.09244602173566818, -0.016064830124378204, 0.5005757212638855, -0.0768827423453331, -0.15895432233810425, -0.20509882271289825, -0.2627159059047699, -0.5380345582962036, 0.2646922469139099, 0.41636523604393005, -0.3466080129146576, -0.24097612500190735, -0.39311477541923523, -0.047528039664030075, 0.27230721712112427, -0.1570664942264557, 0.04984775930643082, 0.26246708631515503, 0.1839360147714615, -0.06745914369821548, 0.29085052013397217, -0.36090323328971863, -0.10872885584831238, 0.3222658038139343, -0.03531019389629364, 0.056495290249586105, 0.503344714641571, 0.2862298786640167, -0.21799522638320923, -0.19046145677566528, 0.20364037156105042, 0.8105611205101013, -0.626924991607666, 0.3065256178379059, -0.17307782173156738, -0.053579941391944885, -0.04724150151014328, 0.3028697967529297, 0.0699545368552208, -0.023222144693136215, 0.05662134662270546, -0.6213234663009644, -0.10620062798261642, 0.41224709153175354, -0.15431305766105652, -0.021445637568831444, 0.13514403998851776, -0.016934694722294807, -0.24055147171020508, -0.17206096649169922, -0.17293553054332733, 0.21926215291023254, -0.1576298475265503, -0.2045777440071106, -0.30864354968070984, 0.06320460140705109, 0.5788154006004333, 0.00680637639015913, 0.08658616989850998, 0.08174802362918854, -0.14363214373588562, -0.08859871327877045, -0.3009875416755676, 0.2072961926460266, 0.10435613244771957, -0.09271062910556793, -0.07846054434776306, 0.010122298263013363, -0.17902357876300812, -0.13574886322021484, 0.2507112920284271, 0.266754686832428, -0.0477173775434494, -0.13315582275390625, 0.0813499465584755, 0.15249711275100708, -0.24473494291305542, 0.1382141411304474, -0.15908381342887878, 0.5401739478111267, 0.08584684878587723, -0.04767218604683876, -0.22915242612361908, 0.14430353045463562, -0.23546186089515686, 0.2881273031234741, 0.20307670533657074, 0.21647194027900696, 0.4846534729003906, -0.4272492229938507, 0.038283057510852814, -0.20709295570850372, 0.09760752320289612, 0.316317081451416, -0.2574582099914551, 0.050457362085580826, -0.16220234334468842, 0.054788585752248764, 0.01315215788781643, 0.05251077935099602, 0.13962776958942413, -0.03898271545767784, 0.042707111686468124, 0.333688884973526, -0.13881897926330566, 0.042830999940633774, -0.23344029486179352, 0.0458436980843544, 0.42551133036613464, 0.15897729992866516, 0.051013730466365814, 0.2905644178390503, -0.2684132754802704, 0.0809302106499672, 0.01585356518626213, 0.14075802266597748, 0.2980791926383972, -0.007114956621080637, 0.06808736175298691, 0.021724840626120567, 0.14912402629852295, 0.24231332540512085, 0.0005276774754747748, -0.4159059524536133, -0.04208175837993622, 0.3158297836780548, -0.050042569637298584, 0.3092299699783325, 0.1688641905784607, 0.3333728313446045, -0.1892765611410141, 0.09698577970266342, -0.40366271138191223, -0.1670229583978653, -0.05381406843662262, -0.22119857370853424, -0.5511418581008911, -0.20695267617702484, -0.37152719497680664, -0.11091680824756622, -0.13509945571422577, -0.06150692701339722, -0.274171382188797, 0.18862254917621613, 0.05034526064991951, -0.33036282658576965, 0.08140741288661957, -0.19553887844085693, 0.2041691243648529, -0.15234708786010742, 0.22637057304382324, -0.009327996522188187, 0.036245133727788925, 0.3188803195953369, 0.07601519674062729, 0.5093174576759338, 0.22838090360164642, -0.09633480757474899, -0.24879448115825653, -0.024123763665556908, -0.14217840135097504, 0.04037773236632347, 0.34687894582748413, 0.1857324242591858, 0.03956440091133118, 0.24208207428455353, 0.1516418755054474, -0.11332342773675919, 0.35656121373176575, 0.0022536776959896088, 0.2634565830230713, -0.09924878180027008, 0.5178785920143127, -0.46765920519828796, 0.10009343922138214, -0.16723163425922394, -0.3525444567203522, -0.1460464894771576, -0.31882649660110474, -0.1780049055814743, -0.19459015130996704, -0.023564016446471214, -0.058697473257780075, 0.023275742307305336, -0.08691716194152832, 0.4179299473762512, 0.39496996998786926, 0.18195727467536926, 0.1531836837530136, -0.03307943418622017, -0.2972988486289978, 0.23512358963489532, -0.13189488649368286, 0.030758023262023926, 0.21575511991977692, 0.2165425717830658, 0.07676849514245987, 0.17264032363891602, 0.0412500835955143, 0.03877468779683113, 0.011110380291938782, 0.21657292544841766, -0.24331015348434448, -0.06097504496574402, 0.27531400322914124, 0.017352666705846786, -0.13577400147914886, -0.2809370160102844, -0.08887410908937454, -0.05857513099908829, -0.059832751750946045, 0.1518503576517105, -0.05953913554549217, -0.0654158964753151, -0.16986843943595886, 0.4425504803657532, 0.13243603706359863, 0.20110847055912018, -0.05750926211476326, -0.476009726524353, -0.2689439058303833, -0.41445255279541016, -0.13085053861141205, 0.3707847595214844, -0.1804431974887848, 0.6111345291137695, 0.03422325477004051, 0.14840488135814667, -0.018519308418035507, -0.04486348107457161, -0.18750688433647156, -0.09821823984384537, -0.5277872681617737, 0.29390010237693787, -0.3957844376564026, 0.14473477005958557, -0.13155709207057953, 0.1057320088148117, 0.12398533523082733, 0.1936316341161728, -0.07723566144704819, -0.23171398043632507, 0.4982316493988037, -0.2602384686470032, -0.313359797000885, 0.27279287576675415, 0.08891412615776062, -0.1325901746749878, -0.2973819971084595, -0.6104029417037964, 0.010996503755450249, 0.2189055234193802, 0.030551455914974213, -0.2178259640932083, -0.11244978755712509, -0.12426073849201202, -0.05467722564935684, -0.1363346129655838, 0.22239863872528076, 0.013669331558048725, -0.11380692571401596, 0.14410994946956635, -0.18696914613246918 ]
https://github.com/huggingface/datasets/issues/2799
Loading JSON throws ArrowNotImplementedError
The code works fine on my side. Not sure what's going on here :/ I remember we did a few changes in the JSON loader in #2638 , did you do an update `datasets` when debugging this ?
## Describe the bug I have created a [dataset](https://huggingface.co/datasets/lewtun/github-issues-test) of GitHub issues in line-separated JSON format and am finding that I cannot load it with the `json` loading script (see stack trace below). Curiously, there is no problem loading the dataset with `pandas` which suggests some incorrect type inference is being made on the `datasets` side. For example, the stack trace indicates that some URL fields are being parsed as timestamps. You can find a Colab notebook which reproduces the error [here](https://colab.research.google.com/drive/1YUCM0j1vx5ZrouQbYSzal6RwB4-Aoh4o?usp=sharing). **Edit:** If one repeatedly tries to load the dataset, it _eventually_ works but I think it would still be good to understand why it fails in the first place :) ## Steps to reproduce the bug ```python from datasets import load_dataset from huggingface_hub import hf_hub_url import pandas as pd # returns https://huggingface.co/datasets/lewtun/github-issues-test/resolve/main/issues-datasets.jsonl data_files = hf_hub_url(repo_id="lewtun/github-issues-test", filename="issues-datasets.jsonl", repo_type="dataset") # throws ArrowNotImplementedError dset = load_dataset("json", data_files=data_files, split="test") # no problem with pandas ... df = pd.read_json(data_files, orient="records", lines=True) df.head() ``` ## Expected results I can load any line-separated JSON file, similar to `pandas`. ## Actual results ``` --------------------------------------------------------------------------- ArrowNotImplementedError Traceback (most recent call last) <ipython-input-7-5b8e82b6c3a2> in <module>() ----> 1 dset = load_dataset("json", data_files=data_files, split="test") 9 frames /usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.check_status() ArrowNotImplementedError: JSON conversion to struct<url: timestamp[s], html_url: timestamp[s], labels_url: timestamp[s], id: int64, node_id: timestamp[s], number: int64, title: timestamp[s], description: timestamp[s], creator: struct<login: timestamp[s], id: int64, node_id: timestamp[s], avatar_url: timestamp[s], gravatar_id: timestamp[s], url: timestamp[s], html_url: timestamp[s], followers_url: timestamp[s], following_url: timestamp[s], gists_url: timestamp[s], starred_url: timestamp[s], subscriptions_url: timestamp[s], organizations_url: timestamp[s], repos_url: timestamp[s], events_url: timestamp[s], received_events_url: timestamp[s], type: timestamp[s], site_admin: bool>, open_issues: int64, closed_issues: int64, state: timestamp[s], created_at: timestamp[s], updated_at: timestamp[s], due_on: timestamp[s], closed_at: timestamp[s]> is not supported ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: Linux-5.4.104+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.11 - PyArrow version: 3.0.0
38
Loading JSON throws ArrowNotImplementedError ## Describe the bug I have created a [dataset](https://huggingface.co/datasets/lewtun/github-issues-test) of GitHub issues in line-separated JSON format and am finding that I cannot load it with the `json` loading script (see stack trace below). Curiously, there is no problem loading the dataset with `pandas` which suggests some incorrect type inference is being made on the `datasets` side. For example, the stack trace indicates that some URL fields are being parsed as timestamps. You can find a Colab notebook which reproduces the error [here](https://colab.research.google.com/drive/1YUCM0j1vx5ZrouQbYSzal6RwB4-Aoh4o?usp=sharing). **Edit:** If one repeatedly tries to load the dataset, it _eventually_ works but I think it would still be good to understand why it fails in the first place :) ## Steps to reproduce the bug ```python from datasets import load_dataset from huggingface_hub import hf_hub_url import pandas as pd # returns https://huggingface.co/datasets/lewtun/github-issues-test/resolve/main/issues-datasets.jsonl data_files = hf_hub_url(repo_id="lewtun/github-issues-test", filename="issues-datasets.jsonl", repo_type="dataset") # throws ArrowNotImplementedError dset = load_dataset("json", data_files=data_files, split="test") # no problem with pandas ... df = pd.read_json(data_files, orient="records", lines=True) df.head() ``` ## Expected results I can load any line-separated JSON file, similar to `pandas`. ## Actual results ``` --------------------------------------------------------------------------- ArrowNotImplementedError Traceback (most recent call last) <ipython-input-7-5b8e82b6c3a2> in <module>() ----> 1 dset = load_dataset("json", data_files=data_files, split="test") 9 frames /usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.check_status() ArrowNotImplementedError: JSON conversion to struct<url: timestamp[s], html_url: timestamp[s], labels_url: timestamp[s], id: int64, node_id: timestamp[s], number: int64, title: timestamp[s], description: timestamp[s], creator: struct<login: timestamp[s], id: int64, node_id: timestamp[s], avatar_url: timestamp[s], gravatar_id: timestamp[s], url: timestamp[s], html_url: timestamp[s], followers_url: timestamp[s], following_url: timestamp[s], gists_url: timestamp[s], starred_url: timestamp[s], subscriptions_url: timestamp[s], organizations_url: timestamp[s], repos_url: timestamp[s], events_url: timestamp[s], received_events_url: timestamp[s], type: timestamp[s], site_admin: bool>, open_issues: int64, closed_issues: int64, state: timestamp[s], created_at: timestamp[s], updated_at: timestamp[s], due_on: timestamp[s], closed_at: timestamp[s]> is not supported ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: Linux-5.4.104+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.11 - PyArrow version: 3.0.0 The code works fine on my side. Not sure what's going on here :/ I remember we did a few changes in the JSON loader in #2638 , did you do an update `datasets` when debugging this ?
[ -0.06818731129169464, 0.18416215479373932, 0.03641558066010475, 0.37807008624076843, 0.2355373203754425, -0.006270223297178745, 0.4846680462360382, 0.3670633137226105, 0.4180773198604584, -0.0028389368671923876, 0.0605548620223999, 0.5898873805999756, 0.02762068808078766, -0.1488582044839859, -0.2172110229730606, -0.1838727742433548, 0.03135571628808975, 0.19051624834537506, 0.12744608521461487, 0.028584999963641167, -0.3122329115867615, 0.2942056655883789, -0.2148161679506302, 0.10177382081747055, -0.03912680596113205, -0.09522688388824463, 0.10416249185800552, 0.39333927631378174, -0.1264190673828125, -0.38264647126197815, 0.4134060740470886, -0.013035070151090622, 0.2161162942647934, 0.5308530926704407, -0.00012035988038405776, 0.1964653879404068, 0.41525277495384216, -0.0924445241689682, -0.28681185841560364, -0.4780588150024414, -0.2790296971797943, -0.3253917992115021, 0.5374761819839478, -0.12003785371780396, 0.10520531982183456, -0.24374736845493317, -0.04976978898048401, -0.22078180313110352, 0.6015408635139465, 0.2307230830192566, 0.10480260103940964, 0.4299395680427551, 0.026029197499155998, 0.019219255074858665, 0.06372804939746857, 0.2108369916677475, -0.12177588045597076, 0.45420393347740173, 0.008248300291597843, 0.12705300748348236, -0.17159712314605713, -0.0036358556244522333, -0.10264134407043457, 0.15386691689491272, 0.21912263333797455, 0.04760073125362396, -0.17040188610553741, 0.08183465152978897, 0.0492500364780426, 0.2946322560310364, 0.284576952457428, -0.0508807897567749, -0.4122375249862671, -0.34899574518203735, -0.12078513205051422, 0.13027247786521912, 0.2388218343257904, 0.24735967814922333, -0.15091712772846222, 0.1259337216615677, 0.032882604748010635, -0.018471719697117805, -0.2741968333721161, 0.23838010430335999, 0.003643703879788518, 0.011186736635863781, -0.15821944177150726, 0.10729175806045532, -0.12958568334579468, -0.02082480862736702, -0.1499336212873459, -0.22448261082172394, -0.3057588040828705, 0.1283782422542572, 0.0374985933303833, 0.11600395292043686, -0.035597749054431915, -0.41007766127586365, 0.23558370769023895, 0.35584771633148193, 0.32067087292671204, 0.20801934599876404, -0.2673652172088623, 0.2078460454940796, 0.590325653553009, 0.2016136795282364, -0.05490148812532425, 0.011498508043587208, 0.2564995288848877, 0.33051446080207825, 0.06072988733649254, -0.04355337470769882, -0.2637994587421417, -0.11083322018384933, 0.010376989841461182, -0.19745106995105743, 0.30868086218833923, -0.1726260930299759, -0.22385309636592865, 0.07556311041116714, -0.6134248971939087, -0.0573212131857872, -0.0002186513738706708, 0.3672918677330017, -0.19718718528747559, 0.49877801537513733, 0.2744283676147461, 0.48683854937553406, 0.044217128306627274, 0.03172780200839043, -0.10223813354969025, -0.03534836694598198, -0.1634833812713623, -0.2962281405925751, 0.23716622591018677, 0.052544377744197845, 0.08610545843839645, 0.1265181303024292, -0.06300155073404312, -0.4126388430595398, -0.07425983250141144, 0.04771535098552704, -0.09740504622459412, 0.1669667512178421, 0.19205154478549957, 0.1328710913658142, 0.15592622756958008, -0.40450236201286316, -0.13764633238315582, 0.03230241686105728, -0.3769195079803467, 0.005557807628065348, -0.31768515706062317, 0.05463039129972458, -0.2702910304069519, -0.012081819586455822, -0.7623516917228699, -0.05212001875042915, -0.11227820813655853, 0.06602650880813599, 0.06387511640787125, -0.024417102336883545, 0.2227596491575241, -0.24708473682403564, 0.07498185336589813, 0.2833138406276703, -0.3005582392215729, -0.23782388865947723, -0.062928706407547, -0.0374918058514595, 0.1896338015794754, 0.26508811116218567, -0.20057746767997742, 0.28454601764678955, -0.16373507678508759, 0.21066978573799133, 0.3121516704559326, -0.33273082971572876, -0.22192616760730743, 0.6055203080177307, 0.019304810091853142, 0.5248504877090454, 0.019884197041392326, -0.2308954894542694, -0.009200475178658962, 0.18840406835079193, 0.30359509587287903, 0.4013707637786865, 0.14228755235671997, 0.06791505962610245, -0.2457050383090973, -0.20226357877254486, -0.13464254140853882, 0.31276920437812805, 0.048766665160655975, 0.18893998861312866, 0.09953539818525314, 0.02447848580777645, 0.25068703293800354, -0.19513918459415436, -0.026667488738894463, 0.1624230444431305, 0.09113296866416931, 0.028215039521455765, -0.005726050119847059, -0.004411306697875261, -0.6142939925193787, 0.1499558985233307, -0.051122479140758514, 0.10920239984989166, -0.40808597207069397, 0.009320923127233982, -0.25478315353393555, 0.12606793642044067, -0.12807519733905792, 0.1847676932811737, 0.037452757358551025, 0.10865363478660583, -0.18218713998794556, 0.2108014076948166, -0.18389394879341125, 0.31523215770721436, 0.16264460980892181, 0.2816523313522339, -0.48346424102783203, 0.4377061724662781, 0.21025602519512177, -0.12123838812112808, 0.027117908000946045, 0.1853714883327484, -0.09781768918037415, -0.16267065703868866, -0.2391357272863388, 0.17275479435920715, 0.13941796123981476, 0.179713636636734, -0.05627715587615967, -0.23757092654705048, -0.08228375762701035, 0.08385948836803436, -0.1951902210712433, 0.30687758326530457, 0.22172389924526215, -0.02458440326154232, -0.028096579015254974, 0.8052087426185608, -0.07410702109336853, 0.44319722056388855, -0.015723353251814842, -0.020550785586237907, 0.4561719298362732, 0.061565812677145004, -0.3641532063484192, -0.30534011125564575, 0.2388351857662201, 0.318624883890152, 0.060367401689291, 0.004004923161119223, -0.3794294595718384, -0.1885215789079666, 0.3982870876789093, 0.005179752130061388, 0.24246230721473694, 0.15323491394519806, -0.09535687416791916, -0.09967263042926788, 0.01585964858531952, 0.140178382396698, 0.23829849064350128, 0.07587691396474838, -0.20704767107963562, -0.04344674199819565, -0.040947869420051575, -0.024745294824242592, 0.1555987149477005, 0.3065347671508789, 0.2641777992248535, 0.09334737062454224, 0.15588873624801636, -0.020961785688996315, -0.2815464735031128, -0.23800407350063324, -0.286360502243042, 0.11893868446350098, -0.6182573437690735, 0.29913759231567383, -0.47434720396995544, 0.1188913956284523, 0.03533333167433739, -0.3410823941230774, -0.12630008161067963, -0.3229715824127197, -0.3007417321205139, 0.2734273672103882, -0.11474968492984772, -0.13416682183742523, -0.2667236328125, 0.3151707649230957, -0.023212866857647896, -0.346346914768219, -0.2113419622182846, -0.011718220077455044, -0.18464821577072144, -0.02340598963201046, 0.387586772441864, 0.10929606109857559, 0.15447255969047546, -0.12894073128700256, 0.047313809394836426, 0.14181938767433167, -0.08639691770076752, 0.14820019900798798, -0.19949878752231598, 0.2889932692050934, 0.2154708057641983, 0.19690993428230286, -0.09785258024930954, -0.15164655447006226, 0.28866541385650635, 0.0957517996430397, -0.34277042746543884, 0.3241927921772003, -0.13549865782260895, 0.027899762615561485, -0.14921672642230988, -0.02916877157986164, 0.12195532023906708, -0.4392545819282532, 0.5247157216072083, 0.24586881697177887, 0.058138370513916016, -0.01700706221163273, 0.02426138147711754, 0.1799219250679016, 0.16870653629302979, 0.01591145433485508, -0.11074631661176682, -0.1546856164932251, 0.2326570451259613, -0.1608324944972992, -0.25017639994621277, 0.07645481824874878, -0.1965516358613968, 0.16859082877635956, -0.08651303499937057, -0.390976220369339, 0.025942986831068993, 0.07071974873542786, 0.11365674436092377, -0.044403787702322006, -0.2952394485473633, 0.05882461369037628, -0.012750313617289066, 0.08519040048122406, -0.18557152152061462, -0.20222538709640503, 0.12063156813383102, -0.043812669813632965, 0.02160363644361496, 0.056514542549848557, 0.7252907752990723, -0.09429588168859482, 0.1807756870985031, 0.31179991364479065, -0.0382719486951828, 0.3949742615222931, -0.02644391544163227, 0.10300911217927933, -0.4057942032814026, -0.1191258579492569, -0.38081806898117065, -0.0971134826540947, 0.07863707095384598, 0.2193029522895813, 0.10964231193065643, -0.28794798254966736, -0.24056001007556915, -0.06228409335017204, -0.4587051570415497, -0.3489449620246887, 0.13338007032871246, -0.3543262779712677, -0.3382492959499359, 0.03203357383608818, 0.22056424617767334, -0.0587298609316349, -0.05810149759054184, -0.03036249801516533, 0.4014143645763397, 0.20627954602241516, -0.04550056532025337, -0.2057114839553833, 0.03436813876032829, -0.3544536828994751, 0.3606956899166107, 0.07465274631977081, 0.3657505512237549, 0.19745834171772003, -0.028097601607441902, 0.24474874138832092, -0.20939946174621582, 0.44907259941101074, -0.12001055479049683, 0.02272767759859562, 0.028095928952097893, -0.12366592884063721, -0.6418691277503967, 0.10115137696266174, -0.12713126838207245, 0.29076629877090454, 0.23598210513591766, 0.20954784750938416, -0.4572594463825226, -0.2961418032646179, 0.10186849534511566, -0.15043905377388, -0.10587037354707718, -0.1064762994647026, -0.36403852701187134, -0.2923770546913147, -0.24482955038547516, -0.1525726616382599, 0.0274702999740839, 0.2387111634016037, 0.08743688464164734, -0.09870646893978119, -0.2664908468723297, -0.069085031747818, 0.12258501350879669, 0.21641618013381958, 0.18808802962303162, -0.21739211678504944, 0.040979791432619095, 0.00611196318641305, 0.3643350303173065, 0.3959254324436188, 0.8496598601341248, 0.25615501403808594, -0.534641444683075, 0.20925261080265045, -0.024547992274165154, 0.04204613342881203, 0.18659667670726776, 0.023035258054733276, 0.08351000398397446, 0.28506460785865784, 0.14488013088703156, -0.21752822399139404, -0.1765887290239334, 0.48042595386505127, -0.17388500273227692, -0.46211788058280945, -0.34639349579811096, 0.4906902015209198, -0.1168818399310112, 0.02133006788790226, 0.22633972764015198, 0.26789799332618713, -0.14670515060424805, 0.7589291334152222, 0.002883089706301689, 0.793040931224823, 0.14873678982257843, 0.19805265963077545, 0.7221460938453674, -0.5317469835281372, 0.4004822373390198, -0.03223046660423279, -0.07088623940944672, -0.2383532077074051, 0.5987788438796997, -0.18201710283756256, -0.15158270299434662, -0.009594365954399109, 0.19250941276550293, -0.10306885093450546, 0.02257486991584301, -0.3046785891056061, -0.016252195462584496, 0.07874862104654312, 0.128597229719162, -0.11410631239414215, -0.28102079033851624, -0.7139284014701843, -0.01392193790525198, -0.12063397467136383, 0.03402039036154747, -0.003520016325637698, -0.30640578269958496, -0.25588852167129517, -0.18885281682014465, -0.34644126892089844, 0.2579857409000397, 0.1630946397781372, -0.0184751246124506, 0.2230372577905655, -0.04961375147104263, 0.09468185156583786, -0.052479688078165054, 0.29250431060791016, -0.09333887696266174, -0.1754465103149414, 0.1870107650756836, -0.13640373945236206, -0.09913785010576248, -0.09244602173566818, -0.016064830124378204, 0.5005757212638855, -0.0768827423453331, -0.15895432233810425, -0.20509882271289825, -0.2627159059047699, -0.5380345582962036, 0.2646922469139099, 0.41636523604393005, -0.3466080129146576, -0.24097612500190735, -0.39311477541923523, -0.047528039664030075, 0.27230721712112427, -0.1570664942264557, 0.04984775930643082, 0.26246708631515503, 0.1839360147714615, -0.06745914369821548, 0.29085052013397217, -0.36090323328971863, -0.10872885584831238, 0.3222658038139343, -0.03531019389629364, 0.056495290249586105, 0.503344714641571, 0.2862298786640167, -0.21799522638320923, -0.19046145677566528, 0.20364037156105042, 0.8105611205101013, -0.626924991607666, 0.3065256178379059, -0.17307782173156738, -0.053579941391944885, -0.04724150151014328, 0.3028697967529297, 0.0699545368552208, -0.023222144693136215, 0.05662134662270546, -0.6213234663009644, -0.10620062798261642, 0.41224709153175354, -0.15431305766105652, -0.021445637568831444, 0.13514403998851776, -0.016934694722294807, -0.24055147171020508, -0.17206096649169922, -0.17293553054332733, 0.21926215291023254, -0.1576298475265503, -0.2045777440071106, -0.30864354968070984, 0.06320460140705109, 0.5788154006004333, 0.00680637639015913, 0.08658616989850998, 0.08174802362918854, -0.14363214373588562, -0.08859871327877045, -0.3009875416755676, 0.2072961926460266, 0.10435613244771957, -0.09271062910556793, -0.07846054434776306, 0.010122298263013363, -0.17902357876300812, -0.13574886322021484, 0.2507112920284271, 0.266754686832428, -0.0477173775434494, -0.13315582275390625, 0.0813499465584755, 0.15249711275100708, -0.24473494291305542, 0.1382141411304474, -0.15908381342887878, 0.5401739478111267, 0.08584684878587723, -0.04767218604683876, -0.22915242612361908, 0.14430353045463562, -0.23546186089515686, 0.2881273031234741, 0.20307670533657074, 0.21647194027900696, 0.4846534729003906, -0.4272492229938507, 0.038283057510852814, -0.20709295570850372, 0.09760752320289612, 0.316317081451416, -0.2574582099914551, 0.050457362085580826, -0.16220234334468842, 0.054788585752248764, 0.01315215788781643, 0.05251077935099602, 0.13962776958942413, -0.03898271545767784, 0.042707111686468124, 0.333688884973526, -0.13881897926330566, 0.042830999940633774, -0.23344029486179352, 0.0458436980843544, 0.42551133036613464, 0.15897729992866516, 0.051013730466365814, 0.2905644178390503, -0.2684132754802704, 0.0809302106499672, 0.01585356518626213, 0.14075802266597748, 0.2980791926383972, -0.007114956621080637, 0.06808736175298691, 0.021724840626120567, 0.14912402629852295, 0.24231332540512085, 0.0005276774754747748, -0.4159059524536133, -0.04208175837993622, 0.3158297836780548, -0.050042569637298584, 0.3092299699783325, 0.1688641905784607, 0.3333728313446045, -0.1892765611410141, 0.09698577970266342, -0.40366271138191223, -0.1670229583978653, -0.05381406843662262, -0.22119857370853424, -0.5511418581008911, -0.20695267617702484, -0.37152719497680664, -0.11091680824756622, -0.13509945571422577, -0.06150692701339722, -0.274171382188797, 0.18862254917621613, 0.05034526064991951, -0.33036282658576965, 0.08140741288661957, -0.19553887844085693, 0.2041691243648529, -0.15234708786010742, 0.22637057304382324, -0.009327996522188187, 0.036245133727788925, 0.3188803195953369, 0.07601519674062729, 0.5093174576759338, 0.22838090360164642, -0.09633480757474899, -0.24879448115825653, -0.024123763665556908, -0.14217840135097504, 0.04037773236632347, 0.34687894582748413, 0.1857324242591858, 0.03956440091133118, 0.24208207428455353, 0.1516418755054474, -0.11332342773675919, 0.35656121373176575, 0.0022536776959896088, 0.2634565830230713, -0.09924878180027008, 0.5178785920143127, -0.46765920519828796, 0.10009343922138214, -0.16723163425922394, -0.3525444567203522, -0.1460464894771576, -0.31882649660110474, -0.1780049055814743, -0.19459015130996704, -0.023564016446471214, -0.058697473257780075, 0.023275742307305336, -0.08691716194152832, 0.4179299473762512, 0.39496996998786926, 0.18195727467536926, 0.1531836837530136, -0.03307943418622017, -0.2972988486289978, 0.23512358963489532, -0.13189488649368286, 0.030758023262023926, 0.21575511991977692, 0.2165425717830658, 0.07676849514245987, 0.17264032363891602, 0.0412500835955143, 0.03877468779683113, 0.011110380291938782, 0.21657292544841766, -0.24331015348434448, -0.06097504496574402, 0.27531400322914124, 0.017352666705846786, -0.13577400147914886, -0.2809370160102844, -0.08887410908937454, -0.05857513099908829, -0.059832751750946045, 0.1518503576517105, -0.05953913554549217, -0.0654158964753151, -0.16986843943595886, 0.4425504803657532, 0.13243603706359863, 0.20110847055912018, -0.05750926211476326, -0.476009726524353, -0.2689439058303833, -0.41445255279541016, -0.13085053861141205, 0.3707847595214844, -0.1804431974887848, 0.6111345291137695, 0.03422325477004051, 0.14840488135814667, -0.018519308418035507, -0.04486348107457161, -0.18750688433647156, -0.09821823984384537, -0.5277872681617737, 0.29390010237693787, -0.3957844376564026, 0.14473477005958557, -0.13155709207057953, 0.1057320088148117, 0.12398533523082733, 0.1936316341161728, -0.07723566144704819, -0.23171398043632507, 0.4982316493988037, -0.2602384686470032, -0.313359797000885, 0.27279287576675415, 0.08891412615776062, -0.1325901746749878, -0.2973819971084595, -0.6104029417037964, 0.010996503755450249, 0.2189055234193802, 0.030551455914974213, -0.2178259640932083, -0.11244978755712509, -0.12426073849201202, -0.05467722564935684, -0.1363346129655838, 0.22239863872528076, 0.013669331558048725, -0.11380692571401596, 0.14410994946956635, -0.18696914613246918 ]
https://github.com/huggingface/datasets/issues/2799
Loading JSON throws ArrowNotImplementedError
OK after upgrading `datasets` to v1.12.1 the issue seems to have gone away. Closing this now :)
## Describe the bug I have created a [dataset](https://huggingface.co/datasets/lewtun/github-issues-test) of GitHub issues in line-separated JSON format and am finding that I cannot load it with the `json` loading script (see stack trace below). Curiously, there is no problem loading the dataset with `pandas` which suggests some incorrect type inference is being made on the `datasets` side. For example, the stack trace indicates that some URL fields are being parsed as timestamps. You can find a Colab notebook which reproduces the error [here](https://colab.research.google.com/drive/1YUCM0j1vx5ZrouQbYSzal6RwB4-Aoh4o?usp=sharing). **Edit:** If one repeatedly tries to load the dataset, it _eventually_ works but I think it would still be good to understand why it fails in the first place :) ## Steps to reproduce the bug ```python from datasets import load_dataset from huggingface_hub import hf_hub_url import pandas as pd # returns https://huggingface.co/datasets/lewtun/github-issues-test/resolve/main/issues-datasets.jsonl data_files = hf_hub_url(repo_id="lewtun/github-issues-test", filename="issues-datasets.jsonl", repo_type="dataset") # throws ArrowNotImplementedError dset = load_dataset("json", data_files=data_files, split="test") # no problem with pandas ... df = pd.read_json(data_files, orient="records", lines=True) df.head() ``` ## Expected results I can load any line-separated JSON file, similar to `pandas`. ## Actual results ``` --------------------------------------------------------------------------- ArrowNotImplementedError Traceback (most recent call last) <ipython-input-7-5b8e82b6c3a2> in <module>() ----> 1 dset = load_dataset("json", data_files=data_files, split="test") 9 frames /usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.check_status() ArrowNotImplementedError: JSON conversion to struct<url: timestamp[s], html_url: timestamp[s], labels_url: timestamp[s], id: int64, node_id: timestamp[s], number: int64, title: timestamp[s], description: timestamp[s], creator: struct<login: timestamp[s], id: int64, node_id: timestamp[s], avatar_url: timestamp[s], gravatar_id: timestamp[s], url: timestamp[s], html_url: timestamp[s], followers_url: timestamp[s], following_url: timestamp[s], gists_url: timestamp[s], starred_url: timestamp[s], subscriptions_url: timestamp[s], organizations_url: timestamp[s], repos_url: timestamp[s], events_url: timestamp[s], received_events_url: timestamp[s], type: timestamp[s], site_admin: bool>, open_issues: int64, closed_issues: int64, state: timestamp[s], created_at: timestamp[s], updated_at: timestamp[s], due_on: timestamp[s], closed_at: timestamp[s]> is not supported ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: Linux-5.4.104+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.11 - PyArrow version: 3.0.0
17
Loading JSON throws ArrowNotImplementedError ## Describe the bug I have created a [dataset](https://huggingface.co/datasets/lewtun/github-issues-test) of GitHub issues in line-separated JSON format and am finding that I cannot load it with the `json` loading script (see stack trace below). Curiously, there is no problem loading the dataset with `pandas` which suggests some incorrect type inference is being made on the `datasets` side. For example, the stack trace indicates that some URL fields are being parsed as timestamps. You can find a Colab notebook which reproduces the error [here](https://colab.research.google.com/drive/1YUCM0j1vx5ZrouQbYSzal6RwB4-Aoh4o?usp=sharing). **Edit:** If one repeatedly tries to load the dataset, it _eventually_ works but I think it would still be good to understand why it fails in the first place :) ## Steps to reproduce the bug ```python from datasets import load_dataset from huggingface_hub import hf_hub_url import pandas as pd # returns https://huggingface.co/datasets/lewtun/github-issues-test/resolve/main/issues-datasets.jsonl data_files = hf_hub_url(repo_id="lewtun/github-issues-test", filename="issues-datasets.jsonl", repo_type="dataset") # throws ArrowNotImplementedError dset = load_dataset("json", data_files=data_files, split="test") # no problem with pandas ... df = pd.read_json(data_files, orient="records", lines=True) df.head() ``` ## Expected results I can load any line-separated JSON file, similar to `pandas`. ## Actual results ``` --------------------------------------------------------------------------- ArrowNotImplementedError Traceback (most recent call last) <ipython-input-7-5b8e82b6c3a2> in <module>() ----> 1 dset = load_dataset("json", data_files=data_files, split="test") 9 frames /usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.check_status() ArrowNotImplementedError: JSON conversion to struct<url: timestamp[s], html_url: timestamp[s], labels_url: timestamp[s], id: int64, node_id: timestamp[s], number: int64, title: timestamp[s], description: timestamp[s], creator: struct<login: timestamp[s], id: int64, node_id: timestamp[s], avatar_url: timestamp[s], gravatar_id: timestamp[s], url: timestamp[s], html_url: timestamp[s], followers_url: timestamp[s], following_url: timestamp[s], gists_url: timestamp[s], starred_url: timestamp[s], subscriptions_url: timestamp[s], organizations_url: timestamp[s], repos_url: timestamp[s], events_url: timestamp[s], received_events_url: timestamp[s], type: timestamp[s], site_admin: bool>, open_issues: int64, closed_issues: int64, state: timestamp[s], created_at: timestamp[s], updated_at: timestamp[s], due_on: timestamp[s], closed_at: timestamp[s]> is not supported ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: Linux-5.4.104+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.11 - PyArrow version: 3.0.0 OK after upgrading `datasets` to v1.12.1 the issue seems to have gone away. Closing this now :)
[ -0.06818731129169464, 0.18416215479373932, 0.03641558066010475, 0.37807008624076843, 0.2355373203754425, -0.006270223297178745, 0.4846680462360382, 0.3670633137226105, 0.4180773198604584, -0.0028389368671923876, 0.0605548620223999, 0.5898873805999756, 0.02762068808078766, -0.1488582044839859, -0.2172110229730606, -0.1838727742433548, 0.03135571628808975, 0.19051624834537506, 0.12744608521461487, 0.028584999963641167, -0.3122329115867615, 0.2942056655883789, -0.2148161679506302, 0.10177382081747055, -0.03912680596113205, -0.09522688388824463, 0.10416249185800552, 0.39333927631378174, -0.1264190673828125, -0.38264647126197815, 0.4134060740470886, -0.013035070151090622, 0.2161162942647934, 0.5308530926704407, -0.00012035988038405776, 0.1964653879404068, 0.41525277495384216, -0.0924445241689682, -0.28681185841560364, -0.4780588150024414, -0.2790296971797943, -0.3253917992115021, 0.5374761819839478, -0.12003785371780396, 0.10520531982183456, -0.24374736845493317, -0.04976978898048401, -0.22078180313110352, 0.6015408635139465, 0.2307230830192566, 0.10480260103940964, 0.4299395680427551, 0.026029197499155998, 0.019219255074858665, 0.06372804939746857, 0.2108369916677475, -0.12177588045597076, 0.45420393347740173, 0.008248300291597843, 0.12705300748348236, -0.17159712314605713, -0.0036358556244522333, -0.10264134407043457, 0.15386691689491272, 0.21912263333797455, 0.04760073125362396, -0.17040188610553741, 0.08183465152978897, 0.0492500364780426, 0.2946322560310364, 0.284576952457428, -0.0508807897567749, -0.4122375249862671, -0.34899574518203735, -0.12078513205051422, 0.13027247786521912, 0.2388218343257904, 0.24735967814922333, -0.15091712772846222, 0.1259337216615677, 0.032882604748010635, -0.018471719697117805, -0.2741968333721161, 0.23838010430335999, 0.003643703879788518, 0.011186736635863781, -0.15821944177150726, 0.10729175806045532, -0.12958568334579468, -0.02082480862736702, -0.1499336212873459, -0.22448261082172394, -0.3057588040828705, 0.1283782422542572, 0.0374985933303833, 0.11600395292043686, -0.035597749054431915, -0.41007766127586365, 0.23558370769023895, 0.35584771633148193, 0.32067087292671204, 0.20801934599876404, -0.2673652172088623, 0.2078460454940796, 0.590325653553009, 0.2016136795282364, -0.05490148812532425, 0.011498508043587208, 0.2564995288848877, 0.33051446080207825, 0.06072988733649254, -0.04355337470769882, -0.2637994587421417, -0.11083322018384933, 0.010376989841461182, -0.19745106995105743, 0.30868086218833923, -0.1726260930299759, -0.22385309636592865, 0.07556311041116714, -0.6134248971939087, -0.0573212131857872, -0.0002186513738706708, 0.3672918677330017, -0.19718718528747559, 0.49877801537513733, 0.2744283676147461, 0.48683854937553406, 0.044217128306627274, 0.03172780200839043, -0.10223813354969025, -0.03534836694598198, -0.1634833812713623, -0.2962281405925751, 0.23716622591018677, 0.052544377744197845, 0.08610545843839645, 0.1265181303024292, -0.06300155073404312, -0.4126388430595398, -0.07425983250141144, 0.04771535098552704, -0.09740504622459412, 0.1669667512178421, 0.19205154478549957, 0.1328710913658142, 0.15592622756958008, -0.40450236201286316, -0.13764633238315582, 0.03230241686105728, -0.3769195079803467, 0.005557807628065348, -0.31768515706062317, 0.05463039129972458, -0.2702910304069519, -0.012081819586455822, -0.7623516917228699, -0.05212001875042915, -0.11227820813655853, 0.06602650880813599, 0.06387511640787125, -0.024417102336883545, 0.2227596491575241, -0.24708473682403564, 0.07498185336589813, 0.2833138406276703, -0.3005582392215729, -0.23782388865947723, -0.062928706407547, -0.0374918058514595, 0.1896338015794754, 0.26508811116218567, -0.20057746767997742, 0.28454601764678955, -0.16373507678508759, 0.21066978573799133, 0.3121516704559326, -0.33273082971572876, -0.22192616760730743, 0.6055203080177307, 0.019304810091853142, 0.5248504877090454, 0.019884197041392326, -0.2308954894542694, -0.009200475178658962, 0.18840406835079193, 0.30359509587287903, 0.4013707637786865, 0.14228755235671997, 0.06791505962610245, -0.2457050383090973, -0.20226357877254486, -0.13464254140853882, 0.31276920437812805, 0.048766665160655975, 0.18893998861312866, 0.09953539818525314, 0.02447848580777645, 0.25068703293800354, -0.19513918459415436, -0.026667488738894463, 0.1624230444431305, 0.09113296866416931, 0.028215039521455765, -0.005726050119847059, -0.004411306697875261, -0.6142939925193787, 0.1499558985233307, -0.051122479140758514, 0.10920239984989166, -0.40808597207069397, 0.009320923127233982, -0.25478315353393555, 0.12606793642044067, -0.12807519733905792, 0.1847676932811737, 0.037452757358551025, 0.10865363478660583, -0.18218713998794556, 0.2108014076948166, -0.18389394879341125, 0.31523215770721436, 0.16264460980892181, 0.2816523313522339, -0.48346424102783203, 0.4377061724662781, 0.21025602519512177, -0.12123838812112808, 0.027117908000946045, 0.1853714883327484, -0.09781768918037415, -0.16267065703868866, -0.2391357272863388, 0.17275479435920715, 0.13941796123981476, 0.179713636636734, -0.05627715587615967, -0.23757092654705048, -0.08228375762701035, 0.08385948836803436, -0.1951902210712433, 0.30687758326530457, 0.22172389924526215, -0.02458440326154232, -0.028096579015254974, 0.8052087426185608, -0.07410702109336853, 0.44319722056388855, -0.015723353251814842, -0.020550785586237907, 0.4561719298362732, 0.061565812677145004, -0.3641532063484192, -0.30534011125564575, 0.2388351857662201, 0.318624883890152, 0.060367401689291, 0.004004923161119223, -0.3794294595718384, -0.1885215789079666, 0.3982870876789093, 0.005179752130061388, 0.24246230721473694, 0.15323491394519806, -0.09535687416791916, -0.09967263042926788, 0.01585964858531952, 0.140178382396698, 0.23829849064350128, 0.07587691396474838, -0.20704767107963562, -0.04344674199819565, -0.040947869420051575, -0.024745294824242592, 0.1555987149477005, 0.3065347671508789, 0.2641777992248535, 0.09334737062454224, 0.15588873624801636, -0.020961785688996315, -0.2815464735031128, -0.23800407350063324, -0.286360502243042, 0.11893868446350098, -0.6182573437690735, 0.29913759231567383, -0.47434720396995544, 0.1188913956284523, 0.03533333167433739, -0.3410823941230774, -0.12630008161067963, -0.3229715824127197, -0.3007417321205139, 0.2734273672103882, -0.11474968492984772, -0.13416682183742523, -0.2667236328125, 0.3151707649230957, -0.023212866857647896, -0.346346914768219, -0.2113419622182846, -0.011718220077455044, -0.18464821577072144, -0.02340598963201046, 0.387586772441864, 0.10929606109857559, 0.15447255969047546, -0.12894073128700256, 0.047313809394836426, 0.14181938767433167, -0.08639691770076752, 0.14820019900798798, -0.19949878752231598, 0.2889932692050934, 0.2154708057641983, 0.19690993428230286, -0.09785258024930954, -0.15164655447006226, 0.28866541385650635, 0.0957517996430397, -0.34277042746543884, 0.3241927921772003, -0.13549865782260895, 0.027899762615561485, -0.14921672642230988, -0.02916877157986164, 0.12195532023906708, -0.4392545819282532, 0.5247157216072083, 0.24586881697177887, 0.058138370513916016, -0.01700706221163273, 0.02426138147711754, 0.1799219250679016, 0.16870653629302979, 0.01591145433485508, -0.11074631661176682, -0.1546856164932251, 0.2326570451259613, -0.1608324944972992, -0.25017639994621277, 0.07645481824874878, -0.1965516358613968, 0.16859082877635956, -0.08651303499937057, -0.390976220369339, 0.025942986831068993, 0.07071974873542786, 0.11365674436092377, -0.044403787702322006, -0.2952394485473633, 0.05882461369037628, -0.012750313617289066, 0.08519040048122406, -0.18557152152061462, -0.20222538709640503, 0.12063156813383102, -0.043812669813632965, 0.02160363644361496, 0.056514542549848557, 0.7252907752990723, -0.09429588168859482, 0.1807756870985031, 0.31179991364479065, -0.0382719486951828, 0.3949742615222931, -0.02644391544163227, 0.10300911217927933, -0.4057942032814026, -0.1191258579492569, -0.38081806898117065, -0.0971134826540947, 0.07863707095384598, 0.2193029522895813, 0.10964231193065643, -0.28794798254966736, -0.24056001007556915, -0.06228409335017204, -0.4587051570415497, -0.3489449620246887, 0.13338007032871246, -0.3543262779712677, -0.3382492959499359, 0.03203357383608818, 0.22056424617767334, -0.0587298609316349, -0.05810149759054184, -0.03036249801516533, 0.4014143645763397, 0.20627954602241516, -0.04550056532025337, -0.2057114839553833, 0.03436813876032829, -0.3544536828994751, 0.3606956899166107, 0.07465274631977081, 0.3657505512237549, 0.19745834171772003, -0.028097601607441902, 0.24474874138832092, -0.20939946174621582, 0.44907259941101074, -0.12001055479049683, 0.02272767759859562, 0.028095928952097893, -0.12366592884063721, -0.6418691277503967, 0.10115137696266174, -0.12713126838207245, 0.29076629877090454, 0.23598210513591766, 0.20954784750938416, -0.4572594463825226, -0.2961418032646179, 0.10186849534511566, -0.15043905377388, -0.10587037354707718, -0.1064762994647026, -0.36403852701187134, -0.2923770546913147, -0.24482955038547516, -0.1525726616382599, 0.0274702999740839, 0.2387111634016037, 0.08743688464164734, -0.09870646893978119, -0.2664908468723297, -0.069085031747818, 0.12258501350879669, 0.21641618013381958, 0.18808802962303162, -0.21739211678504944, 0.040979791432619095, 0.00611196318641305, 0.3643350303173065, 0.3959254324436188, 0.8496598601341248, 0.25615501403808594, -0.534641444683075, 0.20925261080265045, -0.024547992274165154, 0.04204613342881203, 0.18659667670726776, 0.023035258054733276, 0.08351000398397446, 0.28506460785865784, 0.14488013088703156, -0.21752822399139404, -0.1765887290239334, 0.48042595386505127, -0.17388500273227692, -0.46211788058280945, -0.34639349579811096, 0.4906902015209198, -0.1168818399310112, 0.02133006788790226, 0.22633972764015198, 0.26789799332618713, -0.14670515060424805, 0.7589291334152222, 0.002883089706301689, 0.793040931224823, 0.14873678982257843, 0.19805265963077545, 0.7221460938453674, -0.5317469835281372, 0.4004822373390198, -0.03223046660423279, -0.07088623940944672, -0.2383532077074051, 0.5987788438796997, -0.18201710283756256, -0.15158270299434662, -0.009594365954399109, 0.19250941276550293, -0.10306885093450546, 0.02257486991584301, -0.3046785891056061, -0.016252195462584496, 0.07874862104654312, 0.128597229719162, -0.11410631239414215, -0.28102079033851624, -0.7139284014701843, -0.01392193790525198, -0.12063397467136383, 0.03402039036154747, -0.003520016325637698, -0.30640578269958496, -0.25588852167129517, -0.18885281682014465, -0.34644126892089844, 0.2579857409000397, 0.1630946397781372, -0.0184751246124506, 0.2230372577905655, -0.04961375147104263, 0.09468185156583786, -0.052479688078165054, 0.29250431060791016, -0.09333887696266174, -0.1754465103149414, 0.1870107650756836, -0.13640373945236206, -0.09913785010576248, -0.09244602173566818, -0.016064830124378204, 0.5005757212638855, -0.0768827423453331, -0.15895432233810425, -0.20509882271289825, -0.2627159059047699, -0.5380345582962036, 0.2646922469139099, 0.41636523604393005, -0.3466080129146576, -0.24097612500190735, -0.39311477541923523, -0.047528039664030075, 0.27230721712112427, -0.1570664942264557, 0.04984775930643082, 0.26246708631515503, 0.1839360147714615, -0.06745914369821548, 0.29085052013397217, -0.36090323328971863, -0.10872885584831238, 0.3222658038139343, -0.03531019389629364, 0.056495290249586105, 0.503344714641571, 0.2862298786640167, -0.21799522638320923, -0.19046145677566528, 0.20364037156105042, 0.8105611205101013, -0.626924991607666, 0.3065256178379059, -0.17307782173156738, -0.053579941391944885, -0.04724150151014328, 0.3028697967529297, 0.0699545368552208, -0.023222144693136215, 0.05662134662270546, -0.6213234663009644, -0.10620062798261642, 0.41224709153175354, -0.15431305766105652, -0.021445637568831444, 0.13514403998851776, -0.016934694722294807, -0.24055147171020508, -0.17206096649169922, -0.17293553054332733, 0.21926215291023254, -0.1576298475265503, -0.2045777440071106, -0.30864354968070984, 0.06320460140705109, 0.5788154006004333, 0.00680637639015913, 0.08658616989850998, 0.08174802362918854, -0.14363214373588562, -0.08859871327877045, -0.3009875416755676, 0.2072961926460266, 0.10435613244771957, -0.09271062910556793, -0.07846054434776306, 0.010122298263013363, -0.17902357876300812, -0.13574886322021484, 0.2507112920284271, 0.266754686832428, -0.0477173775434494, -0.13315582275390625, 0.0813499465584755, 0.15249711275100708, -0.24473494291305542, 0.1382141411304474, -0.15908381342887878, 0.5401739478111267, 0.08584684878587723, -0.04767218604683876, -0.22915242612361908, 0.14430353045463562, -0.23546186089515686, 0.2881273031234741, 0.20307670533657074, 0.21647194027900696, 0.4846534729003906, -0.4272492229938507, 0.038283057510852814, -0.20709295570850372, 0.09760752320289612, 0.316317081451416, -0.2574582099914551, 0.050457362085580826, -0.16220234334468842, 0.054788585752248764, 0.01315215788781643, 0.05251077935099602, 0.13962776958942413, -0.03898271545767784, 0.042707111686468124, 0.333688884973526, -0.13881897926330566, 0.042830999940633774, -0.23344029486179352, 0.0458436980843544, 0.42551133036613464, 0.15897729992866516, 0.051013730466365814, 0.2905644178390503, -0.2684132754802704, 0.0809302106499672, 0.01585356518626213, 0.14075802266597748, 0.2980791926383972, -0.007114956621080637, 0.06808736175298691, 0.021724840626120567, 0.14912402629852295, 0.24231332540512085, 0.0005276774754747748, -0.4159059524536133, -0.04208175837993622, 0.3158297836780548, -0.050042569637298584, 0.3092299699783325, 0.1688641905784607, 0.3333728313446045, -0.1892765611410141, 0.09698577970266342, -0.40366271138191223, -0.1670229583978653, -0.05381406843662262, -0.22119857370853424, -0.5511418581008911, -0.20695267617702484, -0.37152719497680664, -0.11091680824756622, -0.13509945571422577, -0.06150692701339722, -0.274171382188797, 0.18862254917621613, 0.05034526064991951, -0.33036282658576965, 0.08140741288661957, -0.19553887844085693, 0.2041691243648529, -0.15234708786010742, 0.22637057304382324, -0.009327996522188187, 0.036245133727788925, 0.3188803195953369, 0.07601519674062729, 0.5093174576759338, 0.22838090360164642, -0.09633480757474899, -0.24879448115825653, -0.024123763665556908, -0.14217840135097504, 0.04037773236632347, 0.34687894582748413, 0.1857324242591858, 0.03956440091133118, 0.24208207428455353, 0.1516418755054474, -0.11332342773675919, 0.35656121373176575, 0.0022536776959896088, 0.2634565830230713, -0.09924878180027008, 0.5178785920143127, -0.46765920519828796, 0.10009343922138214, -0.16723163425922394, -0.3525444567203522, -0.1460464894771576, -0.31882649660110474, -0.1780049055814743, -0.19459015130996704, -0.023564016446471214, -0.058697473257780075, 0.023275742307305336, -0.08691716194152832, 0.4179299473762512, 0.39496996998786926, 0.18195727467536926, 0.1531836837530136, -0.03307943418622017, -0.2972988486289978, 0.23512358963489532, -0.13189488649368286, 0.030758023262023926, 0.21575511991977692, 0.2165425717830658, 0.07676849514245987, 0.17264032363891602, 0.0412500835955143, 0.03877468779683113, 0.011110380291938782, 0.21657292544841766, -0.24331015348434448, -0.06097504496574402, 0.27531400322914124, 0.017352666705846786, -0.13577400147914886, -0.2809370160102844, -0.08887410908937454, -0.05857513099908829, -0.059832751750946045, 0.1518503576517105, -0.05953913554549217, -0.0654158964753151, -0.16986843943595886, 0.4425504803657532, 0.13243603706359863, 0.20110847055912018, -0.05750926211476326, -0.476009726524353, -0.2689439058303833, -0.41445255279541016, -0.13085053861141205, 0.3707847595214844, -0.1804431974887848, 0.6111345291137695, 0.03422325477004051, 0.14840488135814667, -0.018519308418035507, -0.04486348107457161, -0.18750688433647156, -0.09821823984384537, -0.5277872681617737, 0.29390010237693787, -0.3957844376564026, 0.14473477005958557, -0.13155709207057953, 0.1057320088148117, 0.12398533523082733, 0.1936316341161728, -0.07723566144704819, -0.23171398043632507, 0.4982316493988037, -0.2602384686470032, -0.313359797000885, 0.27279287576675415, 0.08891412615776062, -0.1325901746749878, -0.2973819971084595, -0.6104029417037964, 0.010996503755450249, 0.2189055234193802, 0.030551455914974213, -0.2178259640932083, -0.11244978755712509, -0.12426073849201202, -0.05467722564935684, -0.1363346129655838, 0.22239863872528076, 0.013669331558048725, -0.11380692571401596, 0.14410994946956635, -0.18696914613246918 ]
https://github.com/huggingface/datasets/issues/2799
Loading JSON throws ArrowNotImplementedError
Oops, I spoke too soon 😓 After deleting the cache and trying the above code snippet again I am hitting the same error. You can also reproduce it in the Colab notebook I linked to in the issue description.
## Describe the bug I have created a [dataset](https://huggingface.co/datasets/lewtun/github-issues-test) of GitHub issues in line-separated JSON format and am finding that I cannot load it with the `json` loading script (see stack trace below). Curiously, there is no problem loading the dataset with `pandas` which suggests some incorrect type inference is being made on the `datasets` side. For example, the stack trace indicates that some URL fields are being parsed as timestamps. You can find a Colab notebook which reproduces the error [here](https://colab.research.google.com/drive/1YUCM0j1vx5ZrouQbYSzal6RwB4-Aoh4o?usp=sharing). **Edit:** If one repeatedly tries to load the dataset, it _eventually_ works but I think it would still be good to understand why it fails in the first place :) ## Steps to reproduce the bug ```python from datasets import load_dataset from huggingface_hub import hf_hub_url import pandas as pd # returns https://huggingface.co/datasets/lewtun/github-issues-test/resolve/main/issues-datasets.jsonl data_files = hf_hub_url(repo_id="lewtun/github-issues-test", filename="issues-datasets.jsonl", repo_type="dataset") # throws ArrowNotImplementedError dset = load_dataset("json", data_files=data_files, split="test") # no problem with pandas ... df = pd.read_json(data_files, orient="records", lines=True) df.head() ``` ## Expected results I can load any line-separated JSON file, similar to `pandas`. ## Actual results ``` --------------------------------------------------------------------------- ArrowNotImplementedError Traceback (most recent call last) <ipython-input-7-5b8e82b6c3a2> in <module>() ----> 1 dset = load_dataset("json", data_files=data_files, split="test") 9 frames /usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.check_status() ArrowNotImplementedError: JSON conversion to struct<url: timestamp[s], html_url: timestamp[s], labels_url: timestamp[s], id: int64, node_id: timestamp[s], number: int64, title: timestamp[s], description: timestamp[s], creator: struct<login: timestamp[s], id: int64, node_id: timestamp[s], avatar_url: timestamp[s], gravatar_id: timestamp[s], url: timestamp[s], html_url: timestamp[s], followers_url: timestamp[s], following_url: timestamp[s], gists_url: timestamp[s], starred_url: timestamp[s], subscriptions_url: timestamp[s], organizations_url: timestamp[s], repos_url: timestamp[s], events_url: timestamp[s], received_events_url: timestamp[s], type: timestamp[s], site_admin: bool>, open_issues: int64, closed_issues: int64, state: timestamp[s], created_at: timestamp[s], updated_at: timestamp[s], due_on: timestamp[s], closed_at: timestamp[s]> is not supported ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: Linux-5.4.104+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.11 - PyArrow version: 3.0.0
39
Loading JSON throws ArrowNotImplementedError ## Describe the bug I have created a [dataset](https://huggingface.co/datasets/lewtun/github-issues-test) of GitHub issues in line-separated JSON format and am finding that I cannot load it with the `json` loading script (see stack trace below). Curiously, there is no problem loading the dataset with `pandas` which suggests some incorrect type inference is being made on the `datasets` side. For example, the stack trace indicates that some URL fields are being parsed as timestamps. You can find a Colab notebook which reproduces the error [here](https://colab.research.google.com/drive/1YUCM0j1vx5ZrouQbYSzal6RwB4-Aoh4o?usp=sharing). **Edit:** If one repeatedly tries to load the dataset, it _eventually_ works but I think it would still be good to understand why it fails in the first place :) ## Steps to reproduce the bug ```python from datasets import load_dataset from huggingface_hub import hf_hub_url import pandas as pd # returns https://huggingface.co/datasets/lewtun/github-issues-test/resolve/main/issues-datasets.jsonl data_files = hf_hub_url(repo_id="lewtun/github-issues-test", filename="issues-datasets.jsonl", repo_type="dataset") # throws ArrowNotImplementedError dset = load_dataset("json", data_files=data_files, split="test") # no problem with pandas ... df = pd.read_json(data_files, orient="records", lines=True) df.head() ``` ## Expected results I can load any line-separated JSON file, similar to `pandas`. ## Actual results ``` --------------------------------------------------------------------------- ArrowNotImplementedError Traceback (most recent call last) <ipython-input-7-5b8e82b6c3a2> in <module>() ----> 1 dset = load_dataset("json", data_files=data_files, split="test") 9 frames /usr/local/lib/python3.7/dist-packages/pyarrow/error.pxi in pyarrow.lib.check_status() ArrowNotImplementedError: JSON conversion to struct<url: timestamp[s], html_url: timestamp[s], labels_url: timestamp[s], id: int64, node_id: timestamp[s], number: int64, title: timestamp[s], description: timestamp[s], creator: struct<login: timestamp[s], id: int64, node_id: timestamp[s], avatar_url: timestamp[s], gravatar_id: timestamp[s], url: timestamp[s], html_url: timestamp[s], followers_url: timestamp[s], following_url: timestamp[s], gists_url: timestamp[s], starred_url: timestamp[s], subscriptions_url: timestamp[s], organizations_url: timestamp[s], repos_url: timestamp[s], events_url: timestamp[s], received_events_url: timestamp[s], type: timestamp[s], site_admin: bool>, open_issues: int64, closed_issues: int64, state: timestamp[s], created_at: timestamp[s], updated_at: timestamp[s], due_on: timestamp[s], closed_at: timestamp[s]> is not supported ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: Linux-5.4.104+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.11 - PyArrow version: 3.0.0 Oops, I spoke too soon 😓 After deleting the cache and trying the above code snippet again I am hitting the same error. You can also reproduce it in the Colab notebook I linked to in the issue description.
[ -0.06818731129169464, 0.18416215479373932, 0.03641558066010475, 0.37807008624076843, 0.2355373203754425, -0.006270223297178745, 0.4846680462360382, 0.3670633137226105, 0.4180773198604584, -0.0028389368671923876, 0.0605548620223999, 0.5898873805999756, 0.02762068808078766, -0.1488582044839859, -0.2172110229730606, -0.1838727742433548, 0.03135571628808975, 0.19051624834537506, 0.12744608521461487, 0.028584999963641167, -0.3122329115867615, 0.2942056655883789, -0.2148161679506302, 0.10177382081747055, -0.03912680596113205, -0.09522688388824463, 0.10416249185800552, 0.39333927631378174, -0.1264190673828125, -0.38264647126197815, 0.4134060740470886, -0.013035070151090622, 0.2161162942647934, 0.5308530926704407, -0.00012035988038405776, 0.1964653879404068, 0.41525277495384216, -0.0924445241689682, -0.28681185841560364, -0.4780588150024414, -0.2790296971797943, -0.3253917992115021, 0.5374761819839478, -0.12003785371780396, 0.10520531982183456, -0.24374736845493317, -0.04976978898048401, -0.22078180313110352, 0.6015408635139465, 0.2307230830192566, 0.10480260103940964, 0.4299395680427551, 0.026029197499155998, 0.019219255074858665, 0.06372804939746857, 0.2108369916677475, -0.12177588045597076, 0.45420393347740173, 0.008248300291597843, 0.12705300748348236, -0.17159712314605713, -0.0036358556244522333, -0.10264134407043457, 0.15386691689491272, 0.21912263333797455, 0.04760073125362396, -0.17040188610553741, 0.08183465152978897, 0.0492500364780426, 0.2946322560310364, 0.284576952457428, -0.0508807897567749, -0.4122375249862671, -0.34899574518203735, -0.12078513205051422, 0.13027247786521912, 0.2388218343257904, 0.24735967814922333, -0.15091712772846222, 0.1259337216615677, 0.032882604748010635, -0.018471719697117805, -0.2741968333721161, 0.23838010430335999, 0.003643703879788518, 0.011186736635863781, -0.15821944177150726, 0.10729175806045532, -0.12958568334579468, -0.02082480862736702, -0.1499336212873459, -0.22448261082172394, -0.3057588040828705, 0.1283782422542572, 0.0374985933303833, 0.11600395292043686, -0.035597749054431915, -0.41007766127586365, 0.23558370769023895, 0.35584771633148193, 0.32067087292671204, 0.20801934599876404, -0.2673652172088623, 0.2078460454940796, 0.590325653553009, 0.2016136795282364, -0.05490148812532425, 0.011498508043587208, 0.2564995288848877, 0.33051446080207825, 0.06072988733649254, -0.04355337470769882, -0.2637994587421417, -0.11083322018384933, 0.010376989841461182, -0.19745106995105743, 0.30868086218833923, -0.1726260930299759, -0.22385309636592865, 0.07556311041116714, -0.6134248971939087, -0.0573212131857872, -0.0002186513738706708, 0.3672918677330017, -0.19718718528747559, 0.49877801537513733, 0.2744283676147461, 0.48683854937553406, 0.044217128306627274, 0.03172780200839043, -0.10223813354969025, -0.03534836694598198, -0.1634833812713623, -0.2962281405925751, 0.23716622591018677, 0.052544377744197845, 0.08610545843839645, 0.1265181303024292, -0.06300155073404312, -0.4126388430595398, -0.07425983250141144, 0.04771535098552704, -0.09740504622459412, 0.1669667512178421, 0.19205154478549957, 0.1328710913658142, 0.15592622756958008, -0.40450236201286316, -0.13764633238315582, 0.03230241686105728, -0.3769195079803467, 0.005557807628065348, -0.31768515706062317, 0.05463039129972458, -0.2702910304069519, -0.012081819586455822, -0.7623516917228699, -0.05212001875042915, -0.11227820813655853, 0.06602650880813599, 0.06387511640787125, -0.024417102336883545, 0.2227596491575241, -0.24708473682403564, 0.07498185336589813, 0.2833138406276703, -0.3005582392215729, -0.23782388865947723, -0.062928706407547, -0.0374918058514595, 0.1896338015794754, 0.26508811116218567, -0.20057746767997742, 0.28454601764678955, -0.16373507678508759, 0.21066978573799133, 0.3121516704559326, -0.33273082971572876, -0.22192616760730743, 0.6055203080177307, 0.019304810091853142, 0.5248504877090454, 0.019884197041392326, -0.2308954894542694, -0.009200475178658962, 0.18840406835079193, 0.30359509587287903, 0.4013707637786865, 0.14228755235671997, 0.06791505962610245, -0.2457050383090973, -0.20226357877254486, -0.13464254140853882, 0.31276920437812805, 0.048766665160655975, 0.18893998861312866, 0.09953539818525314, 0.02447848580777645, 0.25068703293800354, -0.19513918459415436, -0.026667488738894463, 0.1624230444431305, 0.09113296866416931, 0.028215039521455765, -0.005726050119847059, -0.004411306697875261, -0.6142939925193787, 0.1499558985233307, -0.051122479140758514, 0.10920239984989166, -0.40808597207069397, 0.009320923127233982, -0.25478315353393555, 0.12606793642044067, -0.12807519733905792, 0.1847676932811737, 0.037452757358551025, 0.10865363478660583, -0.18218713998794556, 0.2108014076948166, -0.18389394879341125, 0.31523215770721436, 0.16264460980892181, 0.2816523313522339, -0.48346424102783203, 0.4377061724662781, 0.21025602519512177, -0.12123838812112808, 0.027117908000946045, 0.1853714883327484, -0.09781768918037415, -0.16267065703868866, -0.2391357272863388, 0.17275479435920715, 0.13941796123981476, 0.179713636636734, -0.05627715587615967, -0.23757092654705048, -0.08228375762701035, 0.08385948836803436, -0.1951902210712433, 0.30687758326530457, 0.22172389924526215, -0.02458440326154232, -0.028096579015254974, 0.8052087426185608, -0.07410702109336853, 0.44319722056388855, -0.015723353251814842, -0.020550785586237907, 0.4561719298362732, 0.061565812677145004, -0.3641532063484192, -0.30534011125564575, 0.2388351857662201, 0.318624883890152, 0.060367401689291, 0.004004923161119223, -0.3794294595718384, -0.1885215789079666, 0.3982870876789093, 0.005179752130061388, 0.24246230721473694, 0.15323491394519806, -0.09535687416791916, -0.09967263042926788, 0.01585964858531952, 0.140178382396698, 0.23829849064350128, 0.07587691396474838, -0.20704767107963562, -0.04344674199819565, -0.040947869420051575, -0.024745294824242592, 0.1555987149477005, 0.3065347671508789, 0.2641777992248535, 0.09334737062454224, 0.15588873624801636, -0.020961785688996315, -0.2815464735031128, -0.23800407350063324, -0.286360502243042, 0.11893868446350098, -0.6182573437690735, 0.29913759231567383, -0.47434720396995544, 0.1188913956284523, 0.03533333167433739, -0.3410823941230774, -0.12630008161067963, -0.3229715824127197, -0.3007417321205139, 0.2734273672103882, -0.11474968492984772, -0.13416682183742523, -0.2667236328125, 0.3151707649230957, -0.023212866857647896, -0.346346914768219, -0.2113419622182846, -0.011718220077455044, -0.18464821577072144, -0.02340598963201046, 0.387586772441864, 0.10929606109857559, 0.15447255969047546, -0.12894073128700256, 0.047313809394836426, 0.14181938767433167, -0.08639691770076752, 0.14820019900798798, -0.19949878752231598, 0.2889932692050934, 0.2154708057641983, 0.19690993428230286, -0.09785258024930954, -0.15164655447006226, 0.28866541385650635, 0.0957517996430397, -0.34277042746543884, 0.3241927921772003, -0.13549865782260895, 0.027899762615561485, -0.14921672642230988, -0.02916877157986164, 0.12195532023906708, -0.4392545819282532, 0.5247157216072083, 0.24586881697177887, 0.058138370513916016, -0.01700706221163273, 0.02426138147711754, 0.1799219250679016, 0.16870653629302979, 0.01591145433485508, -0.11074631661176682, -0.1546856164932251, 0.2326570451259613, -0.1608324944972992, -0.25017639994621277, 0.07645481824874878, -0.1965516358613968, 0.16859082877635956, -0.08651303499937057, -0.390976220369339, 0.025942986831068993, 0.07071974873542786, 0.11365674436092377, -0.044403787702322006, -0.2952394485473633, 0.05882461369037628, -0.012750313617289066, 0.08519040048122406, -0.18557152152061462, -0.20222538709640503, 0.12063156813383102, -0.043812669813632965, 0.02160363644361496, 0.056514542549848557, 0.7252907752990723, -0.09429588168859482, 0.1807756870985031, 0.31179991364479065, -0.0382719486951828, 0.3949742615222931, -0.02644391544163227, 0.10300911217927933, -0.4057942032814026, -0.1191258579492569, -0.38081806898117065, -0.0971134826540947, 0.07863707095384598, 0.2193029522895813, 0.10964231193065643, -0.28794798254966736, -0.24056001007556915, -0.06228409335017204, -0.4587051570415497, -0.3489449620246887, 0.13338007032871246, -0.3543262779712677, -0.3382492959499359, 0.03203357383608818, 0.22056424617767334, -0.0587298609316349, -0.05810149759054184, -0.03036249801516533, 0.4014143645763397, 0.20627954602241516, -0.04550056532025337, -0.2057114839553833, 0.03436813876032829, -0.3544536828994751, 0.3606956899166107, 0.07465274631977081, 0.3657505512237549, 0.19745834171772003, -0.028097601607441902, 0.24474874138832092, -0.20939946174621582, 0.44907259941101074, -0.12001055479049683, 0.02272767759859562, 0.028095928952097893, -0.12366592884063721, -0.6418691277503967, 0.10115137696266174, -0.12713126838207245, 0.29076629877090454, 0.23598210513591766, 0.20954784750938416, -0.4572594463825226, -0.2961418032646179, 0.10186849534511566, -0.15043905377388, -0.10587037354707718, -0.1064762994647026, -0.36403852701187134, -0.2923770546913147, -0.24482955038547516, -0.1525726616382599, 0.0274702999740839, 0.2387111634016037, 0.08743688464164734, -0.09870646893978119, -0.2664908468723297, -0.069085031747818, 0.12258501350879669, 0.21641618013381958, 0.18808802962303162, -0.21739211678504944, 0.040979791432619095, 0.00611196318641305, 0.3643350303173065, 0.3959254324436188, 0.8496598601341248, 0.25615501403808594, -0.534641444683075, 0.20925261080265045, -0.024547992274165154, 0.04204613342881203, 0.18659667670726776, 0.023035258054733276, 0.08351000398397446, 0.28506460785865784, 0.14488013088703156, -0.21752822399139404, -0.1765887290239334, 0.48042595386505127, -0.17388500273227692, -0.46211788058280945, -0.34639349579811096, 0.4906902015209198, -0.1168818399310112, 0.02133006788790226, 0.22633972764015198, 0.26789799332618713, -0.14670515060424805, 0.7589291334152222, 0.002883089706301689, 0.793040931224823, 0.14873678982257843, 0.19805265963077545, 0.7221460938453674, -0.5317469835281372, 0.4004822373390198, -0.03223046660423279, -0.07088623940944672, -0.2383532077074051, 0.5987788438796997, -0.18201710283756256, -0.15158270299434662, -0.009594365954399109, 0.19250941276550293, -0.10306885093450546, 0.02257486991584301, -0.3046785891056061, -0.016252195462584496, 0.07874862104654312, 0.128597229719162, -0.11410631239414215, -0.28102079033851624, -0.7139284014701843, -0.01392193790525198, -0.12063397467136383, 0.03402039036154747, -0.003520016325637698, -0.30640578269958496, -0.25588852167129517, -0.18885281682014465, -0.34644126892089844, 0.2579857409000397, 0.1630946397781372, -0.0184751246124506, 0.2230372577905655, -0.04961375147104263, 0.09468185156583786, -0.052479688078165054, 0.29250431060791016, -0.09333887696266174, -0.1754465103149414, 0.1870107650756836, -0.13640373945236206, -0.09913785010576248, -0.09244602173566818, -0.016064830124378204, 0.5005757212638855, -0.0768827423453331, -0.15895432233810425, -0.20509882271289825, -0.2627159059047699, -0.5380345582962036, 0.2646922469139099, 0.41636523604393005, -0.3466080129146576, -0.24097612500190735, -0.39311477541923523, -0.047528039664030075, 0.27230721712112427, -0.1570664942264557, 0.04984775930643082, 0.26246708631515503, 0.1839360147714615, -0.06745914369821548, 0.29085052013397217, -0.36090323328971863, -0.10872885584831238, 0.3222658038139343, -0.03531019389629364, 0.056495290249586105, 0.503344714641571, 0.2862298786640167, -0.21799522638320923, -0.19046145677566528, 0.20364037156105042, 0.8105611205101013, -0.626924991607666, 0.3065256178379059, -0.17307782173156738, -0.053579941391944885, -0.04724150151014328, 0.3028697967529297, 0.0699545368552208, -0.023222144693136215, 0.05662134662270546, -0.6213234663009644, -0.10620062798261642, 0.41224709153175354, -0.15431305766105652, -0.021445637568831444, 0.13514403998851776, -0.016934694722294807, -0.24055147171020508, -0.17206096649169922, -0.17293553054332733, 0.21926215291023254, -0.1576298475265503, -0.2045777440071106, -0.30864354968070984, 0.06320460140705109, 0.5788154006004333, 0.00680637639015913, 0.08658616989850998, 0.08174802362918854, -0.14363214373588562, -0.08859871327877045, -0.3009875416755676, 0.2072961926460266, 0.10435613244771957, -0.09271062910556793, -0.07846054434776306, 0.010122298263013363, -0.17902357876300812, -0.13574886322021484, 0.2507112920284271, 0.266754686832428, -0.0477173775434494, -0.13315582275390625, 0.0813499465584755, 0.15249711275100708, -0.24473494291305542, 0.1382141411304474, -0.15908381342887878, 0.5401739478111267, 0.08584684878587723, -0.04767218604683876, -0.22915242612361908, 0.14430353045463562, -0.23546186089515686, 0.2881273031234741, 0.20307670533657074, 0.21647194027900696, 0.4846534729003906, -0.4272492229938507, 0.038283057510852814, -0.20709295570850372, 0.09760752320289612, 0.316317081451416, -0.2574582099914551, 0.050457362085580826, -0.16220234334468842, 0.054788585752248764, 0.01315215788781643, 0.05251077935099602, 0.13962776958942413, -0.03898271545767784, 0.042707111686468124, 0.333688884973526, -0.13881897926330566, 0.042830999940633774, -0.23344029486179352, 0.0458436980843544, 0.42551133036613464, 0.15897729992866516, 0.051013730466365814, 0.2905644178390503, -0.2684132754802704, 0.0809302106499672, 0.01585356518626213, 0.14075802266597748, 0.2980791926383972, -0.007114956621080637, 0.06808736175298691, 0.021724840626120567, 0.14912402629852295, 0.24231332540512085, 0.0005276774754747748, -0.4159059524536133, -0.04208175837993622, 0.3158297836780548, -0.050042569637298584, 0.3092299699783325, 0.1688641905784607, 0.3333728313446045, -0.1892765611410141, 0.09698577970266342, -0.40366271138191223, -0.1670229583978653, -0.05381406843662262, -0.22119857370853424, -0.5511418581008911, -0.20695267617702484, -0.37152719497680664, -0.11091680824756622, -0.13509945571422577, -0.06150692701339722, -0.274171382188797, 0.18862254917621613, 0.05034526064991951, -0.33036282658576965, 0.08140741288661957, -0.19553887844085693, 0.2041691243648529, -0.15234708786010742, 0.22637057304382324, -0.009327996522188187, 0.036245133727788925, 0.3188803195953369, 0.07601519674062729, 0.5093174576759338, 0.22838090360164642, -0.09633480757474899, -0.24879448115825653, -0.024123763665556908, -0.14217840135097504, 0.04037773236632347, 0.34687894582748413, 0.1857324242591858, 0.03956440091133118, 0.24208207428455353, 0.1516418755054474, -0.11332342773675919, 0.35656121373176575, 0.0022536776959896088, 0.2634565830230713, -0.09924878180027008, 0.5178785920143127, -0.46765920519828796, 0.10009343922138214, -0.16723163425922394, -0.3525444567203522, -0.1460464894771576, -0.31882649660110474, -0.1780049055814743, -0.19459015130996704, -0.023564016446471214, -0.058697473257780075, 0.023275742307305336, -0.08691716194152832, 0.4179299473762512, 0.39496996998786926, 0.18195727467536926, 0.1531836837530136, -0.03307943418622017, -0.2972988486289978, 0.23512358963489532, -0.13189488649368286, 0.030758023262023926, 0.21575511991977692, 0.2165425717830658, 0.07676849514245987, 0.17264032363891602, 0.0412500835955143, 0.03877468779683113, 0.011110380291938782, 0.21657292544841766, -0.24331015348434448, -0.06097504496574402, 0.27531400322914124, 0.017352666705846786, -0.13577400147914886, -0.2809370160102844, -0.08887410908937454, -0.05857513099908829, -0.059832751750946045, 0.1518503576517105, -0.05953913554549217, -0.0654158964753151, -0.16986843943595886, 0.4425504803657532, 0.13243603706359863, 0.20110847055912018, -0.05750926211476326, -0.476009726524353, -0.2689439058303833, -0.41445255279541016, -0.13085053861141205, 0.3707847595214844, -0.1804431974887848, 0.6111345291137695, 0.03422325477004051, 0.14840488135814667, -0.018519308418035507, -0.04486348107457161, -0.18750688433647156, -0.09821823984384537, -0.5277872681617737, 0.29390010237693787, -0.3957844376564026, 0.14473477005958557, -0.13155709207057953, 0.1057320088148117, 0.12398533523082733, 0.1936316341161728, -0.07723566144704819, -0.23171398043632507, 0.4982316493988037, -0.2602384686470032, -0.313359797000885, 0.27279287576675415, 0.08891412615776062, -0.1325901746749878, -0.2973819971084595, -0.6104029417037964, 0.010996503755450249, 0.2189055234193802, 0.030551455914974213, -0.2178259640932083, -0.11244978755712509, -0.12426073849201202, -0.05467722564935684, -0.1363346129655838, 0.22239863872528076, 0.013669331558048725, -0.11380692571401596, 0.14410994946956635, -0.18696914613246918 ]
https://github.com/huggingface/datasets/issues/2788
How to sample every file in a list of files making up a split in a dataset when loading?
Hi ! This is not possible just with `load_dataset`. You can do something like this instead: ```python seed=42 data_files_dict = { "train": [train_file1, train_file2], "test": [test_file1, test_file2], "val": [val_file1, val_file2] } dataset = datasets.load_dataset( "csv", data_files=data_files_dict, ).shuffle(seed=seed) sample_dataset = {splitname: split.select(range(8)) for splitname, split in dataset.items()} ``` Another alternative is loading each file separately with `split="train[:8]"` and then use `concatenate_datasets` to merge the sample of each file.
I am loading a dataset with multiple train, test, and validation files like this: ``` data_files_dict = { "train": [train_file1, train_file2], "test": [test_file1, test_file2], "val": [val_file1, val_file2] } dataset = datasets.load_dataset( "csv", data_files=data_files_dict, split=['train[:8]', 'test[:8]', 'val[:8]'] ) ``` However, this only selects the first 8 rows from train_file1, test_file1, val_file1, since they are the first files in the lists. I'm trying to formulate a split argument that can sample from each file specified in my list of files that make up each split. Is this type of splitting supported? If so, how can I do it?
67
How to sample every file in a list of files making up a split in a dataset when loading? I am loading a dataset with multiple train, test, and validation files like this: ``` data_files_dict = { "train": [train_file1, train_file2], "test": [test_file1, test_file2], "val": [val_file1, val_file2] } dataset = datasets.load_dataset( "csv", data_files=data_files_dict, split=['train[:8]', 'test[:8]', 'val[:8]'] ) ``` However, this only selects the first 8 rows from train_file1, test_file1, val_file1, since they are the first files in the lists. I'm trying to formulate a split argument that can sample from each file specified in my list of files that make up each split. Is this type of splitting supported? If so, how can I do it? Hi ! This is not possible just with `load_dataset`. You can do something like this instead: ```python seed=42 data_files_dict = { "train": [train_file1, train_file2], "test": [test_file1, test_file2], "val": [val_file1, val_file2] } dataset = datasets.load_dataset( "csv", data_files=data_files_dict, ).shuffle(seed=seed) sample_dataset = {splitname: split.select(range(8)) for splitname, split in dataset.items()} ``` Another alternative is loading each file separately with `split="train[:8]"` and then use `concatenate_datasets` to merge the sample of each file.
[ -0.31387922167778015, -0.17968609929084778, -0.11428765207529068, 0.14546118676662445, -0.01578676514327526, 0.35745692253112793, 0.44495558738708496, 0.49487605690956116, 0.5567872524261475, 0.01950814761221409, -0.0745144858956337, 0.19857753813266754, 0.028143759816884995, 0.14345744252204895, 0.12763944268226624, -0.3237338066101074, -0.05345511436462402, 0.118750661611557, 0.2719001770019531, 0.010106928646564484, -0.18834996223449707, 0.09186086803674698, -0.4363408386707306, -0.30132657289505005, -0.1955498307943344, 0.03350246325135231, -0.38322681188583374, 0.05868883803486824, 0.029834609478712082, -0.23220597207546234, 0.047616682946681976, 0.2474762201309204, 0.08523396402597427, 0.011206462979316711, -0.00011817484482889995, 0.002029868308454752, 0.19295576214790344, -0.304951012134552, -0.22708892822265625, -0.3292899429798126, -0.04616648703813553, 0.06327986717224121, -0.07713501155376434, -0.31715691089630127, -0.15424269437789917, -0.16015975177288055, -0.03165368363261223, -0.1385711431503296, 0.4643653333187103, 0.18265649676322937, 0.020330145955085754, 0.1105126291513443, -0.326914519071579, -0.10888829827308655, 0.3746607005596161, 0.3522202670574188, 0.21874623000621796, 0.04442837834358215, 0.43583443760871887, -0.04708058387041092, -0.11414510011672974, -0.19302278757095337, -0.0340738408267498, 0.263925164937973, 0.12772905826568604, 0.12466782331466675, -0.3276382386684418, -0.3322712481021881, -0.16353996098041534, 0.45338600873947144, 0.24877382814884186, 0.009119623340666294, -0.4796767830848694, -0.6428301930427551, 0.00950572919100523, -0.39401915669441223, -0.18484710156917572, 0.453091025352478, -0.3995964229106903, 0.09521660953760147, 0.1818254590034485, -0.05720335617661476, 0.02196839079260826, 0.2663128674030304, 0.056932564824819565, 0.1254364550113678, -0.0676553025841713, 0.08104897290468216, 0.7294516563415527, 0.14164136350154877, -0.0421178825199604, -0.20767903327941895, -0.0797925814986229, 0.1188277155160904, -0.46367233991622925, -0.10481425374746323, -0.27715685963630676, -0.008904357440769672, 0.18929533660411835, 0.32946744561195374, 0.06800959259271622, -0.2414480298757553, 0.1494099646806717, 0.1700339913368225, 0.6460340619087219, -0.23813481628894806, -0.03473587706685066, 0.1712915152311325, -0.16953144967556, 0.01762433722615242, 0.03319365158677101, -0.045439016073942184, -0.038103800266981125, -0.1814243346452713, -0.3282948434352875, 0.10581275820732117, -0.12742997705936432, 0.08603961765766144, -0.1948266625404358, -0.489043653011322, -0.24408939480781555, -0.503452718257904, 0.07628685235977173, 0.3599078953266144, 0.2342459112405777, -0.08387638628482819, -0.1735525280237198, 0.4428136646747589, -0.08892595767974854, -0.274707555770874, -0.11488471925258636, 0.22234004735946655, -0.10898146778345108, 0.005719268694519997, 0.1465916782617569, -0.18843211233615875, 0.28931427001953125, -0.08655475825071335, 0.2269655019044876, -0.23060761392116547, 0.3035949170589447, -0.13872568309307098, 0.1588563174009323, 0.13407546281814575, 0.295013964176178, -0.011969097889959812, 0.26606854796409607, -0.03984992206096649, -0.1329248696565628, 0.2388460636138916, -0.25715091824531555, -0.19128595292568207, 0.20068348944187164, -0.022559119388461113, 0.010537893511354923, 0.16742578148841858, -0.36205142736434937, 0.29151082038879395, 0.11891457438468933, 0.13593600690364838, -0.11352695524692535, -0.1590326428413391, 0.044508859515190125, -0.019742676988244057, 0.15579888224601746, 0.39868849515914917, -0.23465895652770996, -0.12349140644073486, -0.2077338695526123, -0.17173606157302856, 0.36268380284309387, 0.03508551046252251, -0.36348339915275574, 0.24145488440990448, -0.36602982878685, 0.7993336319923401, 0.3345082998275757, 0.13387444615364075, -0.013738743960857391, 0.427120566368103, 0.022096257656812668, 0.038051191717386246, 0.27310094237327576, 0.06325192004442215, 0.5865429043769836, -0.05185646563768387, 0.059800684452056885, 0.5053110122680664, -0.26180499792099, 0.024047667160630226, 0.13772130012512207, -0.051343806087970734, 0.15421797335147858, 0.35517382621765137, -0.08461441844701767, 0.16780659556388855, -0.006303834728896618, 0.204827219247818, 0.5283380150794983, -0.24326840043067932, -0.03670630604028702, 0.030486224219202995, -0.002664426574483514, 0.2762812077999115, 0.003084645140916109, -0.20951439440250397, -0.1535416543483734, 0.11354190856218338, 0.2787371277809143, -0.5721080899238586, 0.3249298334121704, -0.3869333565235138, -0.12244725972414017, -0.0005190438823774457, -0.12410566955804825, 0.13675297796726227, 0.010197602212429047, 0.12567241489887238, -0.12886612117290497, -0.5308006405830383, -0.34295380115509033, -0.054197248071432114, -0.23818600177764893, 0.19406384229660034, -0.23538348078727722, 0.333445280790329, 0.2488534301519394, 0.013088548555970192, 0.18357262015342712, -0.09258666634559631, -0.016958121210336685, -0.3653474450111389, 0.04748733714222908, 0.20366676151752472, 0.895828902721405, -0.05550329014658928, 0.13768386840820312, -0.24492405354976654, 0.028220979496836662, 0.07093769311904907, -0.13688088953495026, -0.13413794338703156, -0.07894228398799896, -0.13619963824748993, -0.20742537081241608, 0.5919694304466248, -0.560575544834137, 0.4632732570171356, -0.14527922868728638, 0.254475474357605, 0.13498272001743317, -0.07276374101638794, -0.21497176587581635, -0.06778673827648163, 0.0911613330245018, -0.10497243702411652, 0.3877754807472229, 0.06206734851002693, -0.2700069844722748, -0.12361370027065277, 0.2264411449432373, -0.2351536750793457, -0.021593136712908745, 0.14200325310230255, 0.0250721275806427, 0.07693556696176529, 0.13430126011371613, 0.22101947665214539, 0.21903331577777863, 0.13670428097248077, 0.2197372317314148, -0.2373443990945816, 0.1761605441570282, -0.16787190735340118, 0.09048282355070114, 0.28049004077911377, -0.18486373126506805, 0.203476220369339, -0.5162176489830017, -0.23495951294898987, -0.12310336530208588, 0.02424912340939045, 0.20098371803760529, -0.05003915727138519, -0.1504889875650406, 0.05633073300123215, -0.15481449663639069, 0.0014888248406350613, -0.1733238399028778, -0.220873162150383, 0.10840515792369843, -0.019075868651270866, -0.21012786030769348, 0.17520953714847565, -0.014966985210776329, -0.04675137996673584, -0.050135158002376556, 0.3053675889968872, -0.04543851688504219, -0.17210814356803894, 0.08940842002630234, -0.14000192284584045, 0.12359097599983215, 0.04626024141907692, 0.504925549030304, 0.550221860408783, 0.13741150498390198, 0.04137858748435974, -0.2163083255290985, 0.20096060633659363, 0.36599433422088623, 0.05534231662750244, -0.10223101079463959, 0.1487472653388977, 0.09514326602220535, 0.39338985085487366, -0.06034313142299652, -0.3966609537601471, -0.29150354862213135, 0.4472601115703583, -0.05621550604701042, -0.12076828628778458, 0.15648606419563293, 0.025061404332518578, -0.1724923998117447, -0.2683089077472687, -0.33433395624160767, -0.170334592461586, 0.10648006945848465, 0.1056605726480484, 0.09084904193878174, -0.06130804121494293, 0.04462042078375816, -0.12983514368534088, -0.25316065549850464, -0.305223673582077, -0.06700072437524796, -0.17199963331222534, 0.028853438794612885, -0.058690447360277176, -0.14251641929149628, 0.09110566228628159, -0.17065370082855225, -0.16989795863628387, 0.3151322901248932, 0.05654195696115494, -0.11900574713945389, 0.053603991866111755, -0.023191183805465698, -0.19195838272571564, -0.044735971838235855, 0.023763487115502357, -0.22833392024040222, 0.17829777300357819, -0.12281488627195358, 0.0768628790974617, 0.3081640899181366, -0.1329180747270584, 0.23646347224712372, 0.23091264069080353, 0.07222595065832138, 0.028741056099534035, 0.9346373677253723, 0.42599865794181824, 0.13375402987003326, 0.10548560321331024, -0.005086916498839855, -0.11131039261817932, 0.02776968665421009, -0.20918703079223633, 0.06960289925336838, -0.0040834215469658375, -0.22232137620449066, 0.2278604507446289, -0.05333323776721954, -0.051084429025650024, -0.05433083325624466, 0.48304298520088196, -0.3878195285797119, -0.41130495071411133, 0.25141873955726624, -0.13396351039409637, 0.14303745329380035, -0.06346368044614792, 0.13520574569702148, 0.0034179247450083494, 0.05185168236494064, -0.3238641321659088, 0.37235039472579956, 0.684032678604126, 0.07879739999771118, -0.3335603177547455, -0.20343299210071564, 0.10916261374950409, -0.11889395862817764, 0.24299198389053345, 0.23602330684661865, 0.03311659023165703, -0.17235007882118225, 0.18525734543800354, 0.21398870646953583, 1.0035451650619507, 0.06988450139760971, -0.07131577283143997, 0.17514190077781677, -0.10783988982439041, 0.22381490468978882, -0.07188938558101654, -0.174957737326622, 0.18925841152668, 0.07399183511734009, 0.13198354840278625, -0.4061219096183777, -0.23380422592163086, -0.005198357626795769, 0.4461129605770111, -0.10552848130464554, -0.06119481474161148, 0.010893331840634346, 0.018028533086180687, -0.19268494844436646, 0.1312042623758316, 0.18451331555843353, 0.016276925802230835, -0.11888357251882553, -0.10929866135120392, 0.006172753870487213, -0.20244178175926208, 0.16967549920082092, 0.10748203098773956, 0.4021858274936676, 0.11918050795793533, 0.21990138292312622, 0.26528608798980713, -0.2765386998653412, 0.22221426665782928, 0.30642426013946533, -0.3874238431453705, -0.33235710859298706, -0.13034746050834656, -0.5022565722465515, 0.32880914211273193, 0.13139064610004425, -0.1304759532213211, 0.06956126540899277, -0.1969647854566574, -0.17340967059135437, -0.12046635895967484, 0.13010787963867188, 0.2851818799972534, -0.1736648678779602, -0.15305256843566895, -0.6710410118103027, 0.3475162982940674, 0.04271429404616356, -0.09046987444162369, 0.5216256976127625, -0.3409264087677002, -0.15214656293392181, 0.4326775074005127, -0.09263595193624496, 0.5991632342338562, -0.1708899885416031, 0.001694469596259296, 0.006423102226108313, 0.5374948978424072, 0.15723508596420288, -0.010516086593270302, 0.0857560932636261, -0.2693865895271301, -0.45925790071487427, -0.2316502332687378, -0.2514382600784302, 0.05912124738097191, 0.537787914276123, -0.0869729220867157, 0.05318232998251915, -0.22738617658615112, -0.10066648572683334, -0.15397749841213226, -0.010627658106386662, -0.04554741829633713, -0.11593253165483475, -0.016421495005488396, -0.04799891635775566, -0.1417921781539917, 0.17639780044555664, 0.18151091039180756, -0.15688136219978333, 0.02862681820988655, -0.004537935834378004, -0.35937070846557617, -0.020799461752176285, -0.04068967327475548, -0.1651330143213272, 0.017069611698389053, -0.08687950670719147, 0.005219027865678072, 0.2841283679008484, -0.22096502780914307, -0.05139240622520447, 0.13555234670639038, 0.13000307977199554, -0.1193239837884903, -0.012609947472810745, -0.3487890064716339, -0.07782381772994995, 0.3172207772731781, 0.15758436918258667, -0.13016638159751892, 0.10600932687520981, -0.05727080628275871, -0.4175531268119812, -0.14772158861160278, 0.20414677262306213, 0.2804664075374603, -0.2656112313270569, -0.5376278758049011, 0.10085657238960266, -0.06320107728242874, 0.04311942309141159, 0.006147018168121576, 0.18967509269714355, -0.22253884375095367, 0.3468295633792877, -0.09258496016263962, -0.005606433376669884, 0.03207700327038765, -0.18892669677734375, 0.06926310062408447, -0.16853468120098114, 0.3529902696609497, 0.08541885018348694, -0.053685739636421204, -0.28666114807128906, 0.08141566812992096, -0.13417375087738037, -0.05820794031023979, 0.2703181803226471, -0.060462795197963715, 0.35302019119262695, 0.03671365976333618, 0.0682969018816948, 0.2153349667787552, 0.14128300547599792, -0.18214724957942963, -0.6045980453491211, 0.24487608671188354, 0.1488196700811386, 0.09044133871793747, 0.377052366733551, -0.08226753771305084, 0.26680800318717957, -0.10993338376283646, 0.2634676992893219, -0.1126062199473381, 0.09303751587867737, 0.2155742645263672, 0.18631206452846527, 0.1346304714679718, 0.1324450820684433, -0.03276396542787552, 0.07407208532094955, -0.010123839601874352, 0.10429059714078903, 0.028612814843654633, -0.10589691996574402, -0.06806278228759766, 0.11735054105520248, 0.1163085475564003, 0.10064138472080231, 0.10082623362541199, 0.022647006437182426, -0.2740134596824646, -0.3027726411819458, 0.17932790517807007, -0.25396740436553955, 0.055406346917152405, 0.15101884305477142, 0.7681528329849243, 0.06371846795082092, -0.37979012727737427, 0.045220330357551575, -0.18935534358024597, 0.1555940955877304, 0.09560371190309525, 0.21816657483577728, 0.10930731892585754, -0.004751062020659447, -0.4768036901950836, -0.009843552485108376, 0.24390138685703278, -0.10896865278482437, -0.09055103361606598, 0.08352202922105789, 0.20700028538703918, 0.027066940441727638, 0.436459481716156, 0.7404636144638062, 0.13014815747737885, 0.48488059639930725, 0.2463206946849823, 0.1492878496646881, -0.14348331093788147, 0.06820197403430939, 0.15123961865901947, 0.12141215056180954, 0.002037316793575883, 0.28614088892936707, -0.015208306722342968, 0.04095524176955223, -0.20078633725643158, -0.2533937990665436, 0.2422311007976532, 0.25622472167015076, 0.48843950033187866, 0.9639610052108765, 0.07247336208820343, 0.036118753254413605, -0.11696411669254303, 0.13220280408859253, 0.37884047627449036, 0.23844671249389648, -0.4292249083518982, 0.5384777188301086, -0.0042349789291620255, -0.16285409033298492, -0.0874173566699028, -0.7342133522033691, 0.21442192792892456, 0.3714234232902527, 0.17541928589344025, 0.1611475944519043, -0.040127839893102646, 0.760080099105835, -0.36787235736846924, -0.17508558928966522, -0.25959086418151855, 0.14562050998210907, 0.10861793160438538, -0.17802280187606812, -0.22768372297286987, -0.0662626326084137, -0.3687976002693176, -0.07195432484149933, 0.27318239212036133, -0.310879111289978, -0.06551315635442734, 0.059358980506658554, 0.14604654908180237, -0.15207423269748688, -0.005919615738093853, -0.03395185247063637, -0.24210794270038605, -0.4008650481700897, -0.20642048120498657, -0.10826743394136429, 0.24275609850883484, 0.6257145404815674, -0.33033427596092224, 0.008357358165085316, 0.04915689304471016, 0.08172034472227097, -0.23122568428516388, -0.3645607829093933, 0.011046385392546654, 0.006282258313149214, -0.057106535881757736, -0.1167692244052887, 0.09569841623306274, 0.5006061792373657, 0.04931355640292168, -0.03623978793621063, 0.1601584106683731, 0.10433695465326309, -0.13224533200263977, -0.4573708772659302, 0.3525467813014984, 0.07186105847358704, 0.016215385869145393, -0.23914435505867004, -0.2917622923851013, -0.12118570506572723, -0.024475544691085815, -0.06471265107393265, -0.13211847841739655, 0.050442248582839966, 0.4550063908100128, 0.04640364646911621, -0.10499744862318039, -0.08721216768026352, -0.10872797667980194, 0.017495812848210335, -0.11546680331230164, -0.15338605642318726, -0.46835067868232727, -0.40396392345428467, -0.21810638904571533, -0.11781975626945496, 0.13837626576423645, 0.26900574564933777, 0.0030818518716841936, 0.236174538731575, -0.1081131249666214, -0.01702945865690708, 0.18972796201705933, 0.40295693278312683, -0.18414872884750366, -0.32476964592933655, -0.14782370626926422, 0.3181469738483429, -0.18061694502830505, -0.26077720522880554, -0.05135469511151314, 0.08182346820831299, -0.12595441937446594, -0.03651215508580208, -0.14977478981018066, 0.3844504654407501, 0.045624591410160065, -0.17523619532585144, -0.20184551179409027, 0.43260401487350464, 0.04389069601893425, 0.23297946155071259, -0.10884352773427963, -0.09677748382091522, -0.22569610178470612, -0.09822552651166916, -0.025284217670559883, 0.549103319644928, -0.15450875461101532, 0.01892726495862007, -0.22236138582229614, 0.09390442818403244, 0.03280076012015343, -0.27339601516723633, -0.36136874556541443, 0.046682845801115036, -0.3458651900291443, 0.13287928700447083, 0.3630693852901459, 0.13269516825675964, -0.16922147572040558, -0.048282671719789505, -0.020722221583127975, -0.05089588463306427, 0.2685924768447876, -0.5031933188438416, -0.04453178495168686, -0.17227159440517426, 0.09020055085420609, -0.12719154357910156, 0.07175979763269424, 0.003725164569914341, -0.03482634201645851, 0.41603586077690125, -0.19652940332889557, 0.2212657332420349, 0.080387644469738, 0.34234029054641724, -0.04239518195390701, -0.12264551222324371, 0.0007277559489011765, 0.25103235244750977, -0.38870927691459656, 0.01623222604393959, -0.2482427954673767 ]
https://github.com/huggingface/datasets/issues/2787
ConnectionError: Couldn't reach https://raw.githubusercontent.com
the bug code locate in : if data_args.task_name is not None: # Downloading and loading a dataset from the hub. datasets = load_dataset("glue", data_args.task_name, cache_dir=model_args.cache_dir)
Hello, I am trying to run run_glue.py and it gives me this error - Traceback (most recent call last): File "E:/BERT/pytorch_hugging/transformers/examples/pytorch/text-classification/run_glue.py", line 546, in <module> main() File "E:/BERT/pytorch_hugging/transformers/examples/pytorch/text-classification/run_glue.py", line 250, in main datasets = load_dataset("glue", data_args.task_name, cache_dir=model_args.cache_dir) File "C:\install\Anaconda3\envs\huggingface\lib\site-packages\datasets\load.py", line 718, in load_dataset use_auth_token=use_auth_token, File "C:\install\Anaconda3\envs\huggingface\lib\site-packages\datasets\load.py", line 320, in prepare_module local_path = cached_path(file_path, download_config=download_config) File "C:\install\Anaconda3\envs\huggingface\lib\site-packages\datasets\utils\file_utils.py", line 291, in cached_path use_auth_token=download_config.use_auth_token, File "C:\install\Anaconda3\envs\huggingface\lib\site-packages\datasets\utils\file_utils.py", line 623, in get_from_cache raise ConnectionError("Couldn't reach {}".format(url)) ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.7.0/datasets/glue/glue.py Trying to do python run_glue.py --model_name_or_path bert-base-cased --task_name mrpc --do_train --do_eval --max_seq_length 128 --per_device_train_batch_size 32 --learning_rate 2e-5 --num_train_epochs 3 --output_dir ./tmp/mrpc/ Is this something on my end? From what I can tell, this was re-fixeded by @fullyz a few months ago. Thank you!
25
ConnectionError: Couldn't reach https://raw.githubusercontent.com Hello, I am trying to run run_glue.py and it gives me this error - Traceback (most recent call last): File "E:/BERT/pytorch_hugging/transformers/examples/pytorch/text-classification/run_glue.py", line 546, in <module> main() File "E:/BERT/pytorch_hugging/transformers/examples/pytorch/text-classification/run_glue.py", line 250, in main datasets = load_dataset("glue", data_args.task_name, cache_dir=model_args.cache_dir) File "C:\install\Anaconda3\envs\huggingface\lib\site-packages\datasets\load.py", line 718, in load_dataset use_auth_token=use_auth_token, File "C:\install\Anaconda3\envs\huggingface\lib\site-packages\datasets\load.py", line 320, in prepare_module local_path = cached_path(file_path, download_config=download_config) File "C:\install\Anaconda3\envs\huggingface\lib\site-packages\datasets\utils\file_utils.py", line 291, in cached_path use_auth_token=download_config.use_auth_token, File "C:\install\Anaconda3\envs\huggingface\lib\site-packages\datasets\utils\file_utils.py", line 623, in get_from_cache raise ConnectionError("Couldn't reach {}".format(url)) ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.7.0/datasets/glue/glue.py Trying to do python run_glue.py --model_name_or_path bert-base-cased --task_name mrpc --do_train --do_eval --max_seq_length 128 --per_device_train_batch_size 32 --learning_rate 2e-5 --num_train_epochs 3 --output_dir ./tmp/mrpc/ Is this something on my end? From what I can tell, this was re-fixeded by @fullyz a few months ago. Thank you! the bug code locate in : if data_args.task_name is not None: # Downloading and loading a dataset from the hub. datasets = load_dataset("glue", data_args.task_name, cache_dir=model_args.cache_dir)
[ -0.20387108623981476, -0.16013333201408386, -0.08192571997642517, 0.046901896595954895, 0.2665441036224365, -0.07231903821229935, 0.15469588339328766, 0.3012447953224182, 0.10906840860843658, -0.09559844434261322, -0.17693941295146942, -0.1569310575723648, 0.042428161948919296, 0.009808449074625969, 0.035374127328395844, -0.1757962852716446, -0.09559158235788345, -0.04629706218838692, -0.25146281719207764, 0.1877855509519577, -0.13793526589870453, 0.178549125790596, -0.037973787635564804, 0.2863893210887909, -0.1777602881193161, -0.20449355244636536, -0.08353818207979202, 0.2092447578907013, -0.1527039259672165, -0.2665783762931824, 0.42618662118911743, -0.1104125902056694, 0.10238818824291229, 0.4276522994041443, -0.00011113022628705949, 0.21710249781608582, 0.44894132018089294, 0.07644863426685333, -0.15438444912433624, -0.30744317173957825, -0.03799118846654892, 0.06892990320920944, 0.21346580982208252, -0.22333449125289917, -0.1960693597793579, 0.34617799520492554, 0.04911448806524277, -0.1808769404888153, 0.4765048027038574, 0.2705880105495453, 0.24884198606014252, 0.3377011716365814, 0.4446749985218048, -0.21520750224590302, 0.033220406621694565, -0.2912711203098297, 0.0024016976822167635, 0.621679961681366, 0.12133553624153137, -0.2661055624485016, 0.24261531233787537, 0.20626433193683624, -0.1433541625738144, -0.012036297470331192, 0.04562127962708473, -0.15581972897052765, 0.08290619403123856, -0.2861299514770508, 0.1528286635875702, 0.06862813979387283, -0.14181660115718842, -0.2192169576883316, -0.25919124484062195, -0.07374011725187302, -0.026295596733689308, -0.12968391180038452, 0.3319052755832672, 0.16109272837638855, -0.22131456434726715, 0.22776564955711365, -0.09230920672416687, -0.1391129344701767, -0.20990613102912903, 0.24669410288333893, 0.045454587787389755, 0.21283651888370514, -0.2856878936290741, 0.2644904851913452, 0.4337482750415802, -0.037836529314517975, -0.2852621078491211, 0.0696709156036377, 0.17324566841125488, 0.1920875459909439, -0.2251848578453064, 0.03897704929113388, -0.30480024218559265, 0.08181823045015335, 0.08585207909345627, 0.02119072526693344, -0.24929507076740265, -0.1187238022685051, 0.26687300205230713, 0.187360018491745, -0.08827408403158188, 0.33094096183776855, 0.014142593368887901, 0.10959747433662415, 0.3459482789039612, 0.3594094216823578, -0.11480700224637985, 0.036582544445991516, -0.26567620038986206, -0.465621680021286, -0.3594941198825836, 0.06501426547765732, 0.2611834704875946, 0.018520403653383255, -0.16966114938259125, 0.0698690265417099, -0.17840208113193512, 0.033027343451976776, 0.1020842120051384, 0.501019299030304, -0.2648850977420807, -0.36610180139541626, 0.03986682370305061, 0.2935797870159149, 0.018017452210187912, 0.021892307326197624, -0.17826621234416962, 0.1572604924440384, -0.2640622854232788, 0.09054358303546906, 0.061872709542512894, -0.2543202042579651, 0.23535963892936707, -0.2026709020137787, 0.02307003177702427, -0.17118875682353973, 0.12058594822883606, -0.20052094757556915, -0.1581442654132843, 0.33884090185165405, 0.07973664253950119, 0.18047545850276947, 0.42919865250587463, -0.3894392251968384, -0.059661466628313065, -0.07742771506309509, -0.21490326523780823, -0.4968354403972626, 0.0238058902323246, 0.1501096785068512, -0.062012068927288055, 0.16043849289417267, -0.09893796592950821, -0.24892562627792358, 0.20213159918785095, 0.19127023220062256, -0.014095385558903217, -0.010092120617628098, 0.14349646866321564, -0.2804526090621948, 0.5142766833305359, 0.45449453592300415, 0.1708976775407791, -0.10904756188392639, -0.0004222884599585086, 0.06402099132537842, -0.05179823935031891, 0.23296010494232178, -0.06997380405664444, 0.12797145545482635, -0.37560489773750305, 0.15517252683639526, 0.3715330958366394, -0.6533888578414917, -0.2841062545776367, 0.3186046779155731, -0.27414044737815857, -0.05401644855737686, 0.16688010096549988, -0.23218980431556702, -0.04506255313754082, 0.02394133433699608, 0.39009326696395874, 0.07403799891471863, 0.07008982449769974, -0.2052421122789383, -0.024182476103305817, -0.3783529996871948, 0.12801578640937805, 0.05183182284235954, 0.11795667558908463, 0.09410379081964493, 0.02895732782781124, -0.29930806159973145, 0.2291133999824524, 0.1804356873035431, 0.02323598600924015, 0.22256024181842804, 0.08758657425642014, 0.18445248901844025, -0.05891340598464012, -0.10223669558763504, -0.09820393472909927, 0.15692773461341858, -0.13933122158050537, 0.30220600962638855, -0.4215776324272156, 0.06522893905639648, -0.38411030173301697, 0.05166316032409668, -0.23094317317008972, -0.30408552289009094, 0.16363565623760223, -0.003432170720770955, 0.44232121109962463, 0.14963603019714355, -0.09362338483333588, 0.4874022603034973, -0.1470745950937271, 0.2835756242275238, -0.35973063111305237, 0.2300841063261032, -0.3057551681995392, -0.10626745969057083, -0.15637099742889404, 0.1661881059408188, 0.35136255621910095, -0.23431245982646942, -0.026592938229441643, 0.4231662154197693, -0.2641439735889435, 0.09736070781946182, 0.26576822996139526, 0.09632273018360138, 0.031522851437330246, -0.21908165514469147, 0.025363637134432793, -0.10224619507789612, -0.016673965379595757, 0.06385832279920578, 0.6379241347312927, 0.047997456043958664, 0.1513417363166809, 0.7245128750801086, 0.19068008661270142, 0.25673121213912964, 0.1417645663022995, -0.01721707358956337, -0.24469110369682312, 0.007281261030584574, 0.20527753233909607, 0.05091584846377373, 0.4524140954017639, -0.3265388011932373, 0.16779032349586487, -0.21140338480472565, 0.14411354064941406, -0.0354800783097744, 0.2344905287027359, 0.14916059374809265, -0.36172470450401306, 0.21572880446910858, -0.11190836131572723, 0.3587547838687897, 0.35014012455940247, 0.08973928540945053, -0.016715899109840393, 0.27185070514678955, -0.10229634493589401, -0.07454589009284973, 0.3431275486946106, 0.06400211155414581, 0.07101599872112274, -0.18012948334217072, -0.03682592883706093, -0.13451221585273743, -0.12430212646722794, -0.23947882652282715, -0.19775834679603577, 0.14697572588920593, -0.2880881130695343, 0.16937993466854095, -0.11441817134618759, -0.3013059198856354, -0.15434293448925018, -0.3460414409637451, -0.41867417097091675, -0.24099388718605042, -0.3461466431617737, 0.04727290943264961, 0.06708773225545883, 0.2756138741970062, 0.10895466059446335, 0.010508406907320023, -0.005266686901450157, -0.18421071767807007, -0.034712113440036774, -0.17453046143054962, -0.1391938030719757, 0.020635847002267838, -0.0188448429107666, -0.2574254274368286, 0.2771226465702057, -0.19475498795509338, -0.11273554712533951, 0.04723697155714035, -0.2349187582731247, 0.04797271639108658, -0.09044308215379715, 0.17119522392749786, 0.3285541236400604, 0.38057902455329895, 0.18414804339408875, -0.3997780978679657, 0.572769045829773, 0.06036242097616196, 0.11442447453737259, -0.1596369445323944, 0.10835755616426468, 0.01688283123075962, 0.1767284870147705, 0.0041358075104653835, -0.6324494481086731, -0.3507916033267975, 0.3485685884952545, -0.02660178765654564, 0.15115714073181152, 0.176298588514328, 0.05967261269688606, 0.28243356943130493, -0.3841681182384491, 0.053104374557733536, -0.26311343908309937, -0.4323773980140686, 0.14251476526260376, -0.2498616874217987, -0.22013671696186066, -0.018234707415103912, 0.19050569832324982, 0.27027881145477295, -0.2122466266155243, -0.3237496614456177, -0.3732510507106781, -0.22460341453552246, -0.037376768887043, 0.1037432998418808, 0.1593065857887268, 0.2925693988800049, -0.11324961483478546, -0.03873357176780701, 0.12695272266864777, -0.21876749396324158, 0.22004200518131256, -0.19796983897686005, 0.12819638848304749, 0.22862568497657776, 0.38709256052970886, 0.041393134742975235, 0.5444859266281128, 0.24364933371543884, -0.07968281209468842, 0.3192813992500305, -0.17455288767814636, 0.2922647297382355, -0.03789026662707329, -0.5508058071136475, -0.13442237675189972, -0.1521708220243454, 0.03456895425915718, 0.04393499344587326, 0.1621204912662506, 0.17053021490573883, -0.5553136467933655, -0.2198975384235382, -0.19131988286972046, -0.2798694670200348, -0.09539179503917694, 0.008896135725080967, 0.1750698983669281, 0.026388058438897133, -0.1763008087873459, -0.2223937064409256, 0.1937033087015152, 0.2320328950881958, 0.5205127596855164, -0.03823285922408104, 0.060974981635808945, -0.15207307040691376, -0.3924022316932678, -0.46257659792900085, 0.4786422848701477, 0.034358758479356766, 0.19267895817756653, -0.29251691699028015, -0.0163766797631979, -0.04348647966980934, 0.10608313232660294, 0.7086892127990723, -0.07121322304010391, 0.22197476029396057, 0.04855165258049965, -0.08633970469236374, -0.36455491185188293, -0.06299874931573868, 0.08063852787017822, 0.28955623507499695, 0.5007994771003723, 0.48495179414749146, -0.3278109133243561, 0.09682319313287735, 0.2301485687494278, -0.07664036750793457, -0.030821507796645164, -0.07397907972335815, -0.2963501214981079, -0.365642249584198, -0.2678072154521942, 0.0053083403035998344, 0.24383887648582458, 0.21239104866981506, 0.33087050914764404, -0.1466612070798874, 0.16232161223888397, -0.24275991320610046, -0.05958089604973793, -0.018147269263863564, 0.03823409974575043, -0.2016497552394867, -0.032652147114276886, 0.17813603579998016, 0.34605124592781067, -0.31482407450675964, 0.42810192704200745, -0.24021655321121216, -0.22358329594135284, 0.16842956840991974, 0.320920467376709, 0.40583521127700806, 0.30095070600509644, -0.19912776350975037, 0.16012504696846008, 0.2677818238735199, 0.3612561523914337, -0.12620146572589874, 0.16133762896060944, 0.4501325488090515, 0.35500794649124146, -0.19517050683498383, -0.2329111546278, 0.2528257668018341, -0.07291264832019806, 0.003014862071722746, 0.2449309080839157, 0.41554969549179077, -0.2275763601064682, 0.1655351221561432, -0.29757508635520935, 1.1979166269302368, 0.05732978135347366, -0.03917140141129494, 0.13368426263332367, -0.23794715106487274, 0.5808714032173157, -0.15660002827644348, 0.11319942772388458, -0.17663922905921936, -0.09177327156066895, 0.12189703434705734, -0.2235734611749649, 0.3505116403102875, -0.19809302687644958, -0.058932334184646606, 0.2558603584766388, -0.1141534298658371, 0.3006235659122467, 0.20144550502300262, 0.2694346010684967, -0.09047387540340424, 0.004621292930096388, -0.25704067945480347, 0.13903462886810303, -0.004474779590964317, 0.4249931275844574, -0.058096520602703094, -0.1384332925081253, 0.014673926867544651, -0.33706074953079224, -0.3443259596824646, 0.15447647869586945, -0.7144247889518738, 0.16644072532653809, 0.012158348225057125, -0.08223714679479599, -0.11781056225299835, -0.021114356815814972, 0.39122438430786133, 0.1099308431148529, -0.21932345628738403, 0.18423724174499512, -0.003748331917449832, -0.3129948675632477, 0.10391625761985779, 0.12272220104932785, -0.06259556114673615, -0.2693052291870117, -0.20326656103134155, 0.14174146950244904, -0.17309634387493134, -0.42269617319107056, 0.203871950507164, -0.14619846642017365, 0.151529461145401, -0.18364322185516357, -0.022626420482993126, -0.1612544059753418, 0.024226605892181396, -0.1469755470752716, 0.11217062920331955, -0.0693802759051323, -0.24792338907718658, -0.10859763622283936, 0.022369686514139175, -0.3606719374656677, 0.017463011667132378, 0.4281620383262634, -0.1445816308259964, 0.07232052832841873, 0.45552536845207214, 0.12474042922258377, -0.13173219561576843, -0.12844648957252502, -0.21995238959789276, 0.04305601865053177, -0.40919363498687744, -0.0014767624670639634, -0.0063629611395299435, -0.1436571329832077, -0.23021593689918518, -0.09128157794475555, 0.38618144392967224, 0.22693796455860138, -0.024943886324763298, -0.5732637643814087, -0.12366543710231781, 0.12837351858615875, -0.11131998151540756, -0.0436675138771534, 0.1352207362651825, 0.29215008020401, 0.0813923329114914, 0.07727901637554169, -0.29492658376693726, -0.05822010710835457, -0.198037788271904, -0.09098261594772339, 0.46046146750450134, -0.423175573348999, 0.5564398169517517, 0.2472599893808365, 0.1833634227514267, 0.018559984862804413, -0.17679281532764435, -0.191349059343338, -0.08618107438087463, 0.12390199303627014, -0.10455065220594406, -0.2903294563293457, 0.019858358427882195, -0.33761289715766907, 0.004140346776694059, -0.006703604944050312, 0.007722188718616962, 0.04187803342938423, 0.0665358453989029, -0.28173327445983887, -0.03206606209278107, -0.08955341577529907, -0.10538532584905624, 0.1841527223587036, -0.1359492540359497, 0.1784517914056778, 0.028757883235812187, -0.006141094956547022, -0.27543237805366516, -0.17577242851257324, -0.236001655459404, -0.0797952264547348, 0.029737405478954315, 0.10815877467393875, 0.3297696113586426, -0.19428619742393494, -0.29231715202331543, -0.10878171026706696, 0.4173107445240021, -0.0037689320743083954, -0.14196191728115082, 0.05901918187737465, 0.16908110678195953, 0.1616690456867218, -0.13115325570106506, 0.0745706856250763, 0.1629069447517395, -0.15657685697078705, 0.11842755228281021, 0.20686829090118408, -0.02370298095047474, 0.16387338936328888, 0.039276931434869766, 0.019312169402837753, 0.8280627131462097, 0.2137530893087387, 0.08450698107481003, 0.1391807645559311, 0.04158133268356323, -0.06282097846269608, 0.15295596420764923, 0.00351531570777297, 0.2465282678604126, -0.08917354792356491, -0.35493654012680054, -0.06147662177681923, -0.05932311341166496, -0.06813699752092361, 0.22970473766326904, -0.06997399777173996, 0.025114350020885468, 0.1838400661945343, -0.09884807467460632, -0.13195639848709106, -0.40800967812538147, 0.613405704498291, -0.4409067928791046, -0.035708460956811905, -0.19962002336978912, 0.363047331571579, 0.03314724192023277, -0.17256151139736176, 0.14526385068893433, -0.14204873144626617, -0.23196625709533691, -0.3037567138671875, 0.08966223150491714, -0.39731884002685547, 0.36749473214149475, -0.06796720623970032, 0.030709773302078247, -0.07294664531946182, -0.3076353073120117, 0.13283859193325043, 0.24199515581130981, -0.23331011831760406, 0.38188159465789795, 0.2886331379413605, -0.03762876242399216, -0.1605471968650818, 0.4000947177410126, 0.6762164831161499, 0.2699616551399231, -0.23519709706306458, 0.26749318838119507, 0.033283960074186325, -0.05285698547959328, -0.025934429839253426, -0.005995515268296003, 0.2812906801700592, -0.003465171903371811, 0.2339334338903427, 0.23367652297019958, -0.22609780728816986, 0.052874889224767685, -0.19164863228797913, 0.3153737783432007, -0.01486788596957922, 0.41268742084503174, -0.3227868378162384, -0.14263586699962616, -0.32239219546318054, 0.13642798364162445, -0.8104321360588074, 0.17204654216766357, 0.26726797223091125, -0.4068026542663574, 0.021515611559152603, -0.17312701046466827, 0.08031534403562546, -0.07526593655347824, 0.7511889934539795, 0.20130446553230286, 0.3521663546562195, -0.4966929256916046, -0.3168995678424835, -0.29044339060783386, 0.20751294493675232, -0.12045560032129288, -0.1377061903476715, -0.05946851521730423, -0.07869888097047806, -0.13662414252758026, 0.14962589740753174, 0.1224856823682785, 0.12394674122333527, -0.2708905339241028, -0.1634463667869568, -0.016866035759449005, 0.04201198369264603, -0.06340300291776657, 0.10234619677066803, 0.27331262826919556, -0.226094588637352, 0.23419316112995148, -0.044794708490371704, 0.038397058844566345, 0.21650715172290802, -0.019557049497961998, 0.17872491478919983, -0.36867618560791016, 0.37124618887901306, 0.1257682889699936, 0.3474535048007965, 0.16407664120197296, -0.057672202587127686, -0.1508484184741974, -0.20026355981826782, -0.052504874765872955, 0.11811210215091705, -0.009458818472921848, 0.005406489130109549, -0.23456725478172302, -0.23795482516288757, -0.5355011820793152, 0.18844035267829895, 0.03245645761489868, -0.06154366955161095, 0.04100145772099495, -0.19774362444877625, 0.14530615508556366, 0.1729564666748047, 0.2607687711715698, 0.04376857727766037, -0.002930695889517665, 0.13175372779369354, -0.30685070157051086, -0.2666342556476593, 0.6317304968833923, -0.40220606327056885, -0.24217817187309265, 0.07185167074203491, 0.3609124422073364, 0.13837234675884247, 0.10802709311246872, -0.4578806459903717, 0.03677789494395256, 0.38186898827552795, 0.3051510751247406, -0.2807100713253021, 0.26361313462257385, -0.22063452005386353, 0.07509788125753403, 0.15701739490032196, 0.11334576457738876, -0.114230677485466, -0.347904235124588, -0.09011751413345337, -0.1272864192724228 ]
https://github.com/huggingface/datasets/issues/2787
ConnectionError: Couldn't reach https://raw.githubusercontent.com
Hi @jinec, From time to time we get this kind of `ConnectionError` coming from the github.com website: https://raw.githubusercontent.com Normally, it should work if you wait a little and then retry. Could you please confirm if the problem persists?
Hello, I am trying to run run_glue.py and it gives me this error - Traceback (most recent call last): File "E:/BERT/pytorch_hugging/transformers/examples/pytorch/text-classification/run_glue.py", line 546, in <module> main() File "E:/BERT/pytorch_hugging/transformers/examples/pytorch/text-classification/run_glue.py", line 250, in main datasets = load_dataset("glue", data_args.task_name, cache_dir=model_args.cache_dir) File "C:\install\Anaconda3\envs\huggingface\lib\site-packages\datasets\load.py", line 718, in load_dataset use_auth_token=use_auth_token, File "C:\install\Anaconda3\envs\huggingface\lib\site-packages\datasets\load.py", line 320, in prepare_module local_path = cached_path(file_path, download_config=download_config) File "C:\install\Anaconda3\envs\huggingface\lib\site-packages\datasets\utils\file_utils.py", line 291, in cached_path use_auth_token=download_config.use_auth_token, File "C:\install\Anaconda3\envs\huggingface\lib\site-packages\datasets\utils\file_utils.py", line 623, in get_from_cache raise ConnectionError("Couldn't reach {}".format(url)) ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.7.0/datasets/glue/glue.py Trying to do python run_glue.py --model_name_or_path bert-base-cased --task_name mrpc --do_train --do_eval --max_seq_length 128 --per_device_train_batch_size 32 --learning_rate 2e-5 --num_train_epochs 3 --output_dir ./tmp/mrpc/ Is this something on my end? From what I can tell, this was re-fixeded by @fullyz a few months ago. Thank you!
38
ConnectionError: Couldn't reach https://raw.githubusercontent.com Hello, I am trying to run run_glue.py and it gives me this error - Traceback (most recent call last): File "E:/BERT/pytorch_hugging/transformers/examples/pytorch/text-classification/run_glue.py", line 546, in <module> main() File "E:/BERT/pytorch_hugging/transformers/examples/pytorch/text-classification/run_glue.py", line 250, in main datasets = load_dataset("glue", data_args.task_name, cache_dir=model_args.cache_dir) File "C:\install\Anaconda3\envs\huggingface\lib\site-packages\datasets\load.py", line 718, in load_dataset use_auth_token=use_auth_token, File "C:\install\Anaconda3\envs\huggingface\lib\site-packages\datasets\load.py", line 320, in prepare_module local_path = cached_path(file_path, download_config=download_config) File "C:\install\Anaconda3\envs\huggingface\lib\site-packages\datasets\utils\file_utils.py", line 291, in cached_path use_auth_token=download_config.use_auth_token, File "C:\install\Anaconda3\envs\huggingface\lib\site-packages\datasets\utils\file_utils.py", line 623, in get_from_cache raise ConnectionError("Couldn't reach {}".format(url)) ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.7.0/datasets/glue/glue.py Trying to do python run_glue.py --model_name_or_path bert-base-cased --task_name mrpc --do_train --do_eval --max_seq_length 128 --per_device_train_batch_size 32 --learning_rate 2e-5 --num_train_epochs 3 --output_dir ./tmp/mrpc/ Is this something on my end? From what I can tell, this was re-fixeded by @fullyz a few months ago. Thank you! Hi @jinec, From time to time we get this kind of `ConnectionError` coming from the github.com website: https://raw.githubusercontent.com Normally, it should work if you wait a little and then retry. Could you please confirm if the problem persists?
[ -0.20387108623981476, -0.16013333201408386, -0.08192571997642517, 0.046901896595954895, 0.2665441036224365, -0.07231903821229935, 0.15469588339328766, 0.3012447953224182, 0.10906840860843658, -0.09559844434261322, -0.17693941295146942, -0.1569310575723648, 0.042428161948919296, 0.009808449074625969, 0.035374127328395844, -0.1757962852716446, -0.09559158235788345, -0.04629706218838692, -0.25146281719207764, 0.1877855509519577, -0.13793526589870453, 0.178549125790596, -0.037973787635564804, 0.2863893210887909, -0.1777602881193161, -0.20449355244636536, -0.08353818207979202, 0.2092447578907013, -0.1527039259672165, -0.2665783762931824, 0.42618662118911743, -0.1104125902056694, 0.10238818824291229, 0.4276522994041443, -0.00011113022628705949, 0.21710249781608582, 0.44894132018089294, 0.07644863426685333, -0.15438444912433624, -0.30744317173957825, -0.03799118846654892, 0.06892990320920944, 0.21346580982208252, -0.22333449125289917, -0.1960693597793579, 0.34617799520492554, 0.04911448806524277, -0.1808769404888153, 0.4765048027038574, 0.2705880105495453, 0.24884198606014252, 0.3377011716365814, 0.4446749985218048, -0.21520750224590302, 0.033220406621694565, -0.2912711203098297, 0.0024016976822167635, 0.621679961681366, 0.12133553624153137, -0.2661055624485016, 0.24261531233787537, 0.20626433193683624, -0.1433541625738144, -0.012036297470331192, 0.04562127962708473, -0.15581972897052765, 0.08290619403123856, -0.2861299514770508, 0.1528286635875702, 0.06862813979387283, -0.14181660115718842, -0.2192169576883316, -0.25919124484062195, -0.07374011725187302, -0.026295596733689308, -0.12968391180038452, 0.3319052755832672, 0.16109272837638855, -0.22131456434726715, 0.22776564955711365, -0.09230920672416687, -0.1391129344701767, -0.20990613102912903, 0.24669410288333893, 0.045454587787389755, 0.21283651888370514, -0.2856878936290741, 0.2644904851913452, 0.4337482750415802, -0.037836529314517975, -0.2852621078491211, 0.0696709156036377, 0.17324566841125488, 0.1920875459909439, -0.2251848578453064, 0.03897704929113388, -0.30480024218559265, 0.08181823045015335, 0.08585207909345627, 0.02119072526693344, -0.24929507076740265, -0.1187238022685051, 0.26687300205230713, 0.187360018491745, -0.08827408403158188, 0.33094096183776855, 0.014142593368887901, 0.10959747433662415, 0.3459482789039612, 0.3594094216823578, -0.11480700224637985, 0.036582544445991516, -0.26567620038986206, -0.465621680021286, -0.3594941198825836, 0.06501426547765732, 0.2611834704875946, 0.018520403653383255, -0.16966114938259125, 0.0698690265417099, -0.17840208113193512, 0.033027343451976776, 0.1020842120051384, 0.501019299030304, -0.2648850977420807, -0.36610180139541626, 0.03986682370305061, 0.2935797870159149, 0.018017452210187912, 0.021892307326197624, -0.17826621234416962, 0.1572604924440384, -0.2640622854232788, 0.09054358303546906, 0.061872709542512894, -0.2543202042579651, 0.23535963892936707, -0.2026709020137787, 0.02307003177702427, -0.17118875682353973, 0.12058594822883606, -0.20052094757556915, -0.1581442654132843, 0.33884090185165405, 0.07973664253950119, 0.18047545850276947, 0.42919865250587463, -0.3894392251968384, -0.059661466628313065, -0.07742771506309509, -0.21490326523780823, -0.4968354403972626, 0.0238058902323246, 0.1501096785068512, -0.062012068927288055, 0.16043849289417267, -0.09893796592950821, -0.24892562627792358, 0.20213159918785095, 0.19127023220062256, -0.014095385558903217, -0.010092120617628098, 0.14349646866321564, -0.2804526090621948, 0.5142766833305359, 0.45449453592300415, 0.1708976775407791, -0.10904756188392639, -0.0004222884599585086, 0.06402099132537842, -0.05179823935031891, 0.23296010494232178, -0.06997380405664444, 0.12797145545482635, -0.37560489773750305, 0.15517252683639526, 0.3715330958366394, -0.6533888578414917, -0.2841062545776367, 0.3186046779155731, -0.27414044737815857, -0.05401644855737686, 0.16688010096549988, -0.23218980431556702, -0.04506255313754082, 0.02394133433699608, 0.39009326696395874, 0.07403799891471863, 0.07008982449769974, -0.2052421122789383, -0.024182476103305817, -0.3783529996871948, 0.12801578640937805, 0.05183182284235954, 0.11795667558908463, 0.09410379081964493, 0.02895732782781124, -0.29930806159973145, 0.2291133999824524, 0.1804356873035431, 0.02323598600924015, 0.22256024181842804, 0.08758657425642014, 0.18445248901844025, -0.05891340598464012, -0.10223669558763504, -0.09820393472909927, 0.15692773461341858, -0.13933122158050537, 0.30220600962638855, -0.4215776324272156, 0.06522893905639648, -0.38411030173301697, 0.05166316032409668, -0.23094317317008972, -0.30408552289009094, 0.16363565623760223, -0.003432170720770955, 0.44232121109962463, 0.14963603019714355, -0.09362338483333588, 0.4874022603034973, -0.1470745950937271, 0.2835756242275238, -0.35973063111305237, 0.2300841063261032, -0.3057551681995392, -0.10626745969057083, -0.15637099742889404, 0.1661881059408188, 0.35136255621910095, -0.23431245982646942, -0.026592938229441643, 0.4231662154197693, -0.2641439735889435, 0.09736070781946182, 0.26576822996139526, 0.09632273018360138, 0.031522851437330246, -0.21908165514469147, 0.025363637134432793, -0.10224619507789612, -0.016673965379595757, 0.06385832279920578, 0.6379241347312927, 0.047997456043958664, 0.1513417363166809, 0.7245128750801086, 0.19068008661270142, 0.25673121213912964, 0.1417645663022995, -0.01721707358956337, -0.24469110369682312, 0.007281261030584574, 0.20527753233909607, 0.05091584846377373, 0.4524140954017639, -0.3265388011932373, 0.16779032349586487, -0.21140338480472565, 0.14411354064941406, -0.0354800783097744, 0.2344905287027359, 0.14916059374809265, -0.36172470450401306, 0.21572880446910858, -0.11190836131572723, 0.3587547838687897, 0.35014012455940247, 0.08973928540945053, -0.016715899109840393, 0.27185070514678955, -0.10229634493589401, -0.07454589009284973, 0.3431275486946106, 0.06400211155414581, 0.07101599872112274, -0.18012948334217072, -0.03682592883706093, -0.13451221585273743, -0.12430212646722794, -0.23947882652282715, -0.19775834679603577, 0.14697572588920593, -0.2880881130695343, 0.16937993466854095, -0.11441817134618759, -0.3013059198856354, -0.15434293448925018, -0.3460414409637451, -0.41867417097091675, -0.24099388718605042, -0.3461466431617737, 0.04727290943264961, 0.06708773225545883, 0.2756138741970062, 0.10895466059446335, 0.010508406907320023, -0.005266686901450157, -0.18421071767807007, -0.034712113440036774, -0.17453046143054962, -0.1391938030719757, 0.020635847002267838, -0.0188448429107666, -0.2574254274368286, 0.2771226465702057, -0.19475498795509338, -0.11273554712533951, 0.04723697155714035, -0.2349187582731247, 0.04797271639108658, -0.09044308215379715, 0.17119522392749786, 0.3285541236400604, 0.38057902455329895, 0.18414804339408875, -0.3997780978679657, 0.572769045829773, 0.06036242097616196, 0.11442447453737259, -0.1596369445323944, 0.10835755616426468, 0.01688283123075962, 0.1767284870147705, 0.0041358075104653835, -0.6324494481086731, -0.3507916033267975, 0.3485685884952545, -0.02660178765654564, 0.15115714073181152, 0.176298588514328, 0.05967261269688606, 0.28243356943130493, -0.3841681182384491, 0.053104374557733536, -0.26311343908309937, -0.4323773980140686, 0.14251476526260376, -0.2498616874217987, -0.22013671696186066, -0.018234707415103912, 0.19050569832324982, 0.27027881145477295, -0.2122466266155243, -0.3237496614456177, -0.3732510507106781, -0.22460341453552246, -0.037376768887043, 0.1037432998418808, 0.1593065857887268, 0.2925693988800049, -0.11324961483478546, -0.03873357176780701, 0.12695272266864777, -0.21876749396324158, 0.22004200518131256, -0.19796983897686005, 0.12819638848304749, 0.22862568497657776, 0.38709256052970886, 0.041393134742975235, 0.5444859266281128, 0.24364933371543884, -0.07968281209468842, 0.3192813992500305, -0.17455288767814636, 0.2922647297382355, -0.03789026662707329, -0.5508058071136475, -0.13442237675189972, -0.1521708220243454, 0.03456895425915718, 0.04393499344587326, 0.1621204912662506, 0.17053021490573883, -0.5553136467933655, -0.2198975384235382, -0.19131988286972046, -0.2798694670200348, -0.09539179503917694, 0.008896135725080967, 0.1750698983669281, 0.026388058438897133, -0.1763008087873459, -0.2223937064409256, 0.1937033087015152, 0.2320328950881958, 0.5205127596855164, -0.03823285922408104, 0.060974981635808945, -0.15207307040691376, -0.3924022316932678, -0.46257659792900085, 0.4786422848701477, 0.034358758479356766, 0.19267895817756653, -0.29251691699028015, -0.0163766797631979, -0.04348647966980934, 0.10608313232660294, 0.7086892127990723, -0.07121322304010391, 0.22197476029396057, 0.04855165258049965, -0.08633970469236374, -0.36455491185188293, -0.06299874931573868, 0.08063852787017822, 0.28955623507499695, 0.5007994771003723, 0.48495179414749146, -0.3278109133243561, 0.09682319313287735, 0.2301485687494278, -0.07664036750793457, -0.030821507796645164, -0.07397907972335815, -0.2963501214981079, -0.365642249584198, -0.2678072154521942, 0.0053083403035998344, 0.24383887648582458, 0.21239104866981506, 0.33087050914764404, -0.1466612070798874, 0.16232161223888397, -0.24275991320610046, -0.05958089604973793, -0.018147269263863564, 0.03823409974575043, -0.2016497552394867, -0.032652147114276886, 0.17813603579998016, 0.34605124592781067, -0.31482407450675964, 0.42810192704200745, -0.24021655321121216, -0.22358329594135284, 0.16842956840991974, 0.320920467376709, 0.40583521127700806, 0.30095070600509644, -0.19912776350975037, 0.16012504696846008, 0.2677818238735199, 0.3612561523914337, -0.12620146572589874, 0.16133762896060944, 0.4501325488090515, 0.35500794649124146, -0.19517050683498383, -0.2329111546278, 0.2528257668018341, -0.07291264832019806, 0.003014862071722746, 0.2449309080839157, 0.41554969549179077, -0.2275763601064682, 0.1655351221561432, -0.29757508635520935, 1.1979166269302368, 0.05732978135347366, -0.03917140141129494, 0.13368426263332367, -0.23794715106487274, 0.5808714032173157, -0.15660002827644348, 0.11319942772388458, -0.17663922905921936, -0.09177327156066895, 0.12189703434705734, -0.2235734611749649, 0.3505116403102875, -0.19809302687644958, -0.058932334184646606, 0.2558603584766388, -0.1141534298658371, 0.3006235659122467, 0.20144550502300262, 0.2694346010684967, -0.09047387540340424, 0.004621292930096388, -0.25704067945480347, 0.13903462886810303, -0.004474779590964317, 0.4249931275844574, -0.058096520602703094, -0.1384332925081253, 0.014673926867544651, -0.33706074953079224, -0.3443259596824646, 0.15447647869586945, -0.7144247889518738, 0.16644072532653809, 0.012158348225057125, -0.08223714679479599, -0.11781056225299835, -0.021114356815814972, 0.39122438430786133, 0.1099308431148529, -0.21932345628738403, 0.18423724174499512, -0.003748331917449832, -0.3129948675632477, 0.10391625761985779, 0.12272220104932785, -0.06259556114673615, -0.2693052291870117, -0.20326656103134155, 0.14174146950244904, -0.17309634387493134, -0.42269617319107056, 0.203871950507164, -0.14619846642017365, 0.151529461145401, -0.18364322185516357, -0.022626420482993126, -0.1612544059753418, 0.024226605892181396, -0.1469755470752716, 0.11217062920331955, -0.0693802759051323, -0.24792338907718658, -0.10859763622283936, 0.022369686514139175, -0.3606719374656677, 0.017463011667132378, 0.4281620383262634, -0.1445816308259964, 0.07232052832841873, 0.45552536845207214, 0.12474042922258377, -0.13173219561576843, -0.12844648957252502, -0.21995238959789276, 0.04305601865053177, -0.40919363498687744, -0.0014767624670639634, -0.0063629611395299435, -0.1436571329832077, -0.23021593689918518, -0.09128157794475555, 0.38618144392967224, 0.22693796455860138, -0.024943886324763298, -0.5732637643814087, -0.12366543710231781, 0.12837351858615875, -0.11131998151540756, -0.0436675138771534, 0.1352207362651825, 0.29215008020401, 0.0813923329114914, 0.07727901637554169, -0.29492658376693726, -0.05822010710835457, -0.198037788271904, -0.09098261594772339, 0.46046146750450134, -0.423175573348999, 0.5564398169517517, 0.2472599893808365, 0.1833634227514267, 0.018559984862804413, -0.17679281532764435, -0.191349059343338, -0.08618107438087463, 0.12390199303627014, -0.10455065220594406, -0.2903294563293457, 0.019858358427882195, -0.33761289715766907, 0.004140346776694059, -0.006703604944050312, 0.007722188718616962, 0.04187803342938423, 0.0665358453989029, -0.28173327445983887, -0.03206606209278107, -0.08955341577529907, -0.10538532584905624, 0.1841527223587036, -0.1359492540359497, 0.1784517914056778, 0.028757883235812187, -0.006141094956547022, -0.27543237805366516, -0.17577242851257324, -0.236001655459404, -0.0797952264547348, 0.029737405478954315, 0.10815877467393875, 0.3297696113586426, -0.19428619742393494, -0.29231715202331543, -0.10878171026706696, 0.4173107445240021, -0.0037689320743083954, -0.14196191728115082, 0.05901918187737465, 0.16908110678195953, 0.1616690456867218, -0.13115325570106506, 0.0745706856250763, 0.1629069447517395, -0.15657685697078705, 0.11842755228281021, 0.20686829090118408, -0.02370298095047474, 0.16387338936328888, 0.039276931434869766, 0.019312169402837753, 0.8280627131462097, 0.2137530893087387, 0.08450698107481003, 0.1391807645559311, 0.04158133268356323, -0.06282097846269608, 0.15295596420764923, 0.00351531570777297, 0.2465282678604126, -0.08917354792356491, -0.35493654012680054, -0.06147662177681923, -0.05932311341166496, -0.06813699752092361, 0.22970473766326904, -0.06997399777173996, 0.025114350020885468, 0.1838400661945343, -0.09884807467460632, -0.13195639848709106, -0.40800967812538147, 0.613405704498291, -0.4409067928791046, -0.035708460956811905, -0.19962002336978912, 0.363047331571579, 0.03314724192023277, -0.17256151139736176, 0.14526385068893433, -0.14204873144626617, -0.23196625709533691, -0.3037567138671875, 0.08966223150491714, -0.39731884002685547, 0.36749473214149475, -0.06796720623970032, 0.030709773302078247, -0.07294664531946182, -0.3076353073120117, 0.13283859193325043, 0.24199515581130981, -0.23331011831760406, 0.38188159465789795, 0.2886331379413605, -0.03762876242399216, -0.1605471968650818, 0.4000947177410126, 0.6762164831161499, 0.2699616551399231, -0.23519709706306458, 0.26749318838119507, 0.033283960074186325, -0.05285698547959328, -0.025934429839253426, -0.005995515268296003, 0.2812906801700592, -0.003465171903371811, 0.2339334338903427, 0.23367652297019958, -0.22609780728816986, 0.052874889224767685, -0.19164863228797913, 0.3153737783432007, -0.01486788596957922, 0.41268742084503174, -0.3227868378162384, -0.14263586699962616, -0.32239219546318054, 0.13642798364162445, -0.8104321360588074, 0.17204654216766357, 0.26726797223091125, -0.4068026542663574, 0.021515611559152603, -0.17312701046466827, 0.08031534403562546, -0.07526593655347824, 0.7511889934539795, 0.20130446553230286, 0.3521663546562195, -0.4966929256916046, -0.3168995678424835, -0.29044339060783386, 0.20751294493675232, -0.12045560032129288, -0.1377061903476715, -0.05946851521730423, -0.07869888097047806, -0.13662414252758026, 0.14962589740753174, 0.1224856823682785, 0.12394674122333527, -0.2708905339241028, -0.1634463667869568, -0.016866035759449005, 0.04201198369264603, -0.06340300291776657, 0.10234619677066803, 0.27331262826919556, -0.226094588637352, 0.23419316112995148, -0.044794708490371704, 0.038397058844566345, 0.21650715172290802, -0.019557049497961998, 0.17872491478919983, -0.36867618560791016, 0.37124618887901306, 0.1257682889699936, 0.3474535048007965, 0.16407664120197296, -0.057672202587127686, -0.1508484184741974, -0.20026355981826782, -0.052504874765872955, 0.11811210215091705, -0.009458818472921848, 0.005406489130109549, -0.23456725478172302, -0.23795482516288757, -0.5355011820793152, 0.18844035267829895, 0.03245645761489868, -0.06154366955161095, 0.04100145772099495, -0.19774362444877625, 0.14530615508556366, 0.1729564666748047, 0.2607687711715698, 0.04376857727766037, -0.002930695889517665, 0.13175372779369354, -0.30685070157051086, -0.2666342556476593, 0.6317304968833923, -0.40220606327056885, -0.24217817187309265, 0.07185167074203491, 0.3609124422073364, 0.13837234675884247, 0.10802709311246872, -0.4578806459903717, 0.03677789494395256, 0.38186898827552795, 0.3051510751247406, -0.2807100713253021, 0.26361313462257385, -0.22063452005386353, 0.07509788125753403, 0.15701739490032196, 0.11334576457738876, -0.114230677485466, -0.347904235124588, -0.09011751413345337, -0.1272864192724228 ]
https://github.com/huggingface/datasets/issues/2787
ConnectionError: Couldn't reach https://raw.githubusercontent.com
> I can access https://raw.githubusercontent.com/huggingface/datasets/1.7.0/datasets/glue/glue.py without problem... I can not access https://raw.githubusercontent.com/huggingface/datasets either, I am in China
Hello, I am trying to run run_glue.py and it gives me this error - Traceback (most recent call last): File "E:/BERT/pytorch_hugging/transformers/examples/pytorch/text-classification/run_glue.py", line 546, in <module> main() File "E:/BERT/pytorch_hugging/transformers/examples/pytorch/text-classification/run_glue.py", line 250, in main datasets = load_dataset("glue", data_args.task_name, cache_dir=model_args.cache_dir) File "C:\install\Anaconda3\envs\huggingface\lib\site-packages\datasets\load.py", line 718, in load_dataset use_auth_token=use_auth_token, File "C:\install\Anaconda3\envs\huggingface\lib\site-packages\datasets\load.py", line 320, in prepare_module local_path = cached_path(file_path, download_config=download_config) File "C:\install\Anaconda3\envs\huggingface\lib\site-packages\datasets\utils\file_utils.py", line 291, in cached_path use_auth_token=download_config.use_auth_token, File "C:\install\Anaconda3\envs\huggingface\lib\site-packages\datasets\utils\file_utils.py", line 623, in get_from_cache raise ConnectionError("Couldn't reach {}".format(url)) ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.7.0/datasets/glue/glue.py Trying to do python run_glue.py --model_name_or_path bert-base-cased --task_name mrpc --do_train --do_eval --max_seq_length 128 --per_device_train_batch_size 32 --learning_rate 2e-5 --num_train_epochs 3 --output_dir ./tmp/mrpc/ Is this something on my end? From what I can tell, this was re-fixeded by @fullyz a few months ago. Thank you!
17
ConnectionError: Couldn't reach https://raw.githubusercontent.com Hello, I am trying to run run_glue.py and it gives me this error - Traceback (most recent call last): File "E:/BERT/pytorch_hugging/transformers/examples/pytorch/text-classification/run_glue.py", line 546, in <module> main() File "E:/BERT/pytorch_hugging/transformers/examples/pytorch/text-classification/run_glue.py", line 250, in main datasets = load_dataset("glue", data_args.task_name, cache_dir=model_args.cache_dir) File "C:\install\Anaconda3\envs\huggingface\lib\site-packages\datasets\load.py", line 718, in load_dataset use_auth_token=use_auth_token, File "C:\install\Anaconda3\envs\huggingface\lib\site-packages\datasets\load.py", line 320, in prepare_module local_path = cached_path(file_path, download_config=download_config) File "C:\install\Anaconda3\envs\huggingface\lib\site-packages\datasets\utils\file_utils.py", line 291, in cached_path use_auth_token=download_config.use_auth_token, File "C:\install\Anaconda3\envs\huggingface\lib\site-packages\datasets\utils\file_utils.py", line 623, in get_from_cache raise ConnectionError("Couldn't reach {}".format(url)) ConnectionError: Couldn't reach https://raw.githubusercontent.com/huggingface/datasets/1.7.0/datasets/glue/glue.py Trying to do python run_glue.py --model_name_or_path bert-base-cased --task_name mrpc --do_train --do_eval --max_seq_length 128 --per_device_train_batch_size 32 --learning_rate 2e-5 --num_train_epochs 3 --output_dir ./tmp/mrpc/ Is this something on my end? From what I can tell, this was re-fixeded by @fullyz a few months ago. Thank you! > I can access https://raw.githubusercontent.com/huggingface/datasets/1.7.0/datasets/glue/glue.py without problem... I can not access https://raw.githubusercontent.com/huggingface/datasets either, I am in China
[ -0.20387108623981476, -0.16013333201408386, -0.08192571997642517, 0.046901896595954895, 0.2665441036224365, -0.07231903821229935, 0.15469588339328766, 0.3012447953224182, 0.10906840860843658, -0.09559844434261322, -0.17693941295146942, -0.1569310575723648, 0.042428161948919296, 0.009808449074625969, 0.035374127328395844, -0.1757962852716446, -0.09559158235788345, -0.04629706218838692, -0.25146281719207764, 0.1877855509519577, -0.13793526589870453, 0.178549125790596, -0.037973787635564804, 0.2863893210887909, -0.1777602881193161, -0.20449355244636536, -0.08353818207979202, 0.2092447578907013, -0.1527039259672165, -0.2665783762931824, 0.42618662118911743, -0.1104125902056694, 0.10238818824291229, 0.4276522994041443, -0.00011113022628705949, 0.21710249781608582, 0.44894132018089294, 0.07644863426685333, -0.15438444912433624, -0.30744317173957825, -0.03799118846654892, 0.06892990320920944, 0.21346580982208252, -0.22333449125289917, -0.1960693597793579, 0.34617799520492554, 0.04911448806524277, -0.1808769404888153, 0.4765048027038574, 0.2705880105495453, 0.24884198606014252, 0.3377011716365814, 0.4446749985218048, -0.21520750224590302, 0.033220406621694565, -0.2912711203098297, 0.0024016976822167635, 0.621679961681366, 0.12133553624153137, -0.2661055624485016, 0.24261531233787537, 0.20626433193683624, -0.1433541625738144, -0.012036297470331192, 0.04562127962708473, -0.15581972897052765, 0.08290619403123856, -0.2861299514770508, 0.1528286635875702, 0.06862813979387283, -0.14181660115718842, -0.2192169576883316, -0.25919124484062195, -0.07374011725187302, -0.026295596733689308, -0.12968391180038452, 0.3319052755832672, 0.16109272837638855, -0.22131456434726715, 0.22776564955711365, -0.09230920672416687, -0.1391129344701767, -0.20990613102912903, 0.24669410288333893, 0.045454587787389755, 0.21283651888370514, -0.2856878936290741, 0.2644904851913452, 0.4337482750415802, -0.037836529314517975, -0.2852621078491211, 0.0696709156036377, 0.17324566841125488, 0.1920875459909439, -0.2251848578453064, 0.03897704929113388, -0.30480024218559265, 0.08181823045015335, 0.08585207909345627, 0.02119072526693344, -0.24929507076740265, -0.1187238022685051, 0.26687300205230713, 0.187360018491745, -0.08827408403158188, 0.33094096183776855, 0.014142593368887901, 0.10959747433662415, 0.3459482789039612, 0.3594094216823578, -0.11480700224637985, 0.036582544445991516, -0.26567620038986206, -0.465621680021286, -0.3594941198825836, 0.06501426547765732, 0.2611834704875946, 0.018520403653383255, -0.16966114938259125, 0.0698690265417099, -0.17840208113193512, 0.033027343451976776, 0.1020842120051384, 0.501019299030304, -0.2648850977420807, -0.36610180139541626, 0.03986682370305061, 0.2935797870159149, 0.018017452210187912, 0.021892307326197624, -0.17826621234416962, 0.1572604924440384, -0.2640622854232788, 0.09054358303546906, 0.061872709542512894, -0.2543202042579651, 0.23535963892936707, -0.2026709020137787, 0.02307003177702427, -0.17118875682353973, 0.12058594822883606, -0.20052094757556915, -0.1581442654132843, 0.33884090185165405, 0.07973664253950119, 0.18047545850276947, 0.42919865250587463, -0.3894392251968384, -0.059661466628313065, -0.07742771506309509, -0.21490326523780823, -0.4968354403972626, 0.0238058902323246, 0.1501096785068512, -0.062012068927288055, 0.16043849289417267, -0.09893796592950821, -0.24892562627792358, 0.20213159918785095, 0.19127023220062256, -0.014095385558903217, -0.010092120617628098, 0.14349646866321564, -0.2804526090621948, 0.5142766833305359, 0.45449453592300415, 0.1708976775407791, -0.10904756188392639, -0.0004222884599585086, 0.06402099132537842, -0.05179823935031891, 0.23296010494232178, -0.06997380405664444, 0.12797145545482635, -0.37560489773750305, 0.15517252683639526, 0.3715330958366394, -0.6533888578414917, -0.2841062545776367, 0.3186046779155731, -0.27414044737815857, -0.05401644855737686, 0.16688010096549988, -0.23218980431556702, -0.04506255313754082, 0.02394133433699608, 0.39009326696395874, 0.07403799891471863, 0.07008982449769974, -0.2052421122789383, -0.024182476103305817, -0.3783529996871948, 0.12801578640937805, 0.05183182284235954, 0.11795667558908463, 0.09410379081964493, 0.02895732782781124, -0.29930806159973145, 0.2291133999824524, 0.1804356873035431, 0.02323598600924015, 0.22256024181842804, 0.08758657425642014, 0.18445248901844025, -0.05891340598464012, -0.10223669558763504, -0.09820393472909927, 0.15692773461341858, -0.13933122158050537, 0.30220600962638855, -0.4215776324272156, 0.06522893905639648, -0.38411030173301697, 0.05166316032409668, -0.23094317317008972, -0.30408552289009094, 0.16363565623760223, -0.003432170720770955, 0.44232121109962463, 0.14963603019714355, -0.09362338483333588, 0.4874022603034973, -0.1470745950937271, 0.2835756242275238, -0.35973063111305237, 0.2300841063261032, -0.3057551681995392, -0.10626745969057083, -0.15637099742889404, 0.1661881059408188, 0.35136255621910095, -0.23431245982646942, -0.026592938229441643, 0.4231662154197693, -0.2641439735889435, 0.09736070781946182, 0.26576822996139526, 0.09632273018360138, 0.031522851437330246, -0.21908165514469147, 0.025363637134432793, -0.10224619507789612, -0.016673965379595757, 0.06385832279920578, 0.6379241347312927, 0.047997456043958664, 0.1513417363166809, 0.7245128750801086, 0.19068008661270142, 0.25673121213912964, 0.1417645663022995, -0.01721707358956337, -0.24469110369682312, 0.007281261030584574, 0.20527753233909607, 0.05091584846377373, 0.4524140954017639, -0.3265388011932373, 0.16779032349586487, -0.21140338480472565, 0.14411354064941406, -0.0354800783097744, 0.2344905287027359, 0.14916059374809265, -0.36172470450401306, 0.21572880446910858, -0.11190836131572723, 0.3587547838687897, 0.35014012455940247, 0.08973928540945053, -0.016715899109840393, 0.27185070514678955, -0.10229634493589401, -0.07454589009284973, 0.3431275486946106, 0.06400211155414581, 0.07101599872112274, -0.18012948334217072, -0.03682592883706093, -0.13451221585273743, -0.12430212646722794, -0.23947882652282715, -0.19775834679603577, 0.14697572588920593, -0.2880881130695343, 0.16937993466854095, -0.11441817134618759, -0.3013059198856354, -0.15434293448925018, -0.3460414409637451, -0.41867417097091675, -0.24099388718605042, -0.3461466431617737, 0.04727290943264961, 0.06708773225545883, 0.2756138741970062, 0.10895466059446335, 0.010508406907320023, -0.005266686901450157, -0.18421071767807007, -0.034712113440036774, -0.17453046143054962, -0.1391938030719757, 0.020635847002267838, -0.0188448429107666, -0.2574254274368286, 0.2771226465702057, -0.19475498795509338, -0.11273554712533951, 0.04723697155714035, -0.2349187582731247, 0.04797271639108658, -0.09044308215379715, 0.17119522392749786, 0.3285541236400604, 0.38057902455329895, 0.18414804339408875, -0.3997780978679657, 0.572769045829773, 0.06036242097616196, 0.11442447453737259, -0.1596369445323944, 0.10835755616426468, 0.01688283123075962, 0.1767284870147705, 0.0041358075104653835, -0.6324494481086731, -0.3507916033267975, 0.3485685884952545, -0.02660178765654564, 0.15115714073181152, 0.176298588514328, 0.05967261269688606, 0.28243356943130493, -0.3841681182384491, 0.053104374557733536, -0.26311343908309937, -0.4323773980140686, 0.14251476526260376, -0.2498616874217987, -0.22013671696186066, -0.018234707415103912, 0.19050569832324982, 0.27027881145477295, -0.2122466266155243, -0.3237496614456177, -0.3732510507106781, -0.22460341453552246, -0.037376768887043, 0.1037432998418808, 0.1593065857887268, 0.2925693988800049, -0.11324961483478546, -0.03873357176780701, 0.12695272266864777, -0.21876749396324158, 0.22004200518131256, -0.19796983897686005, 0.12819638848304749, 0.22862568497657776, 0.38709256052970886, 0.041393134742975235, 0.5444859266281128, 0.24364933371543884, -0.07968281209468842, 0.3192813992500305, -0.17455288767814636, 0.2922647297382355, -0.03789026662707329, -0.5508058071136475, -0.13442237675189972, -0.1521708220243454, 0.03456895425915718, 0.04393499344587326, 0.1621204912662506, 0.17053021490573883, -0.5553136467933655, -0.2198975384235382, -0.19131988286972046, -0.2798694670200348, -0.09539179503917694, 0.008896135725080967, 0.1750698983669281, 0.026388058438897133, -0.1763008087873459, -0.2223937064409256, 0.1937033087015152, 0.2320328950881958, 0.5205127596855164, -0.03823285922408104, 0.060974981635808945, -0.15207307040691376, -0.3924022316932678, -0.46257659792900085, 0.4786422848701477, 0.034358758479356766, 0.19267895817756653, -0.29251691699028015, -0.0163766797631979, -0.04348647966980934, 0.10608313232660294, 0.7086892127990723, -0.07121322304010391, 0.22197476029396057, 0.04855165258049965, -0.08633970469236374, -0.36455491185188293, -0.06299874931573868, 0.08063852787017822, 0.28955623507499695, 0.5007994771003723, 0.48495179414749146, -0.3278109133243561, 0.09682319313287735, 0.2301485687494278, -0.07664036750793457, -0.030821507796645164, -0.07397907972335815, -0.2963501214981079, -0.365642249584198, -0.2678072154521942, 0.0053083403035998344, 0.24383887648582458, 0.21239104866981506, 0.33087050914764404, -0.1466612070798874, 0.16232161223888397, -0.24275991320610046, -0.05958089604973793, -0.018147269263863564, 0.03823409974575043, -0.2016497552394867, -0.032652147114276886, 0.17813603579998016, 0.34605124592781067, -0.31482407450675964, 0.42810192704200745, -0.24021655321121216, -0.22358329594135284, 0.16842956840991974, 0.320920467376709, 0.40583521127700806, 0.30095070600509644, -0.19912776350975037, 0.16012504696846008, 0.2677818238735199, 0.3612561523914337, -0.12620146572589874, 0.16133762896060944, 0.4501325488090515, 0.35500794649124146, -0.19517050683498383, -0.2329111546278, 0.2528257668018341, -0.07291264832019806, 0.003014862071722746, 0.2449309080839157, 0.41554969549179077, -0.2275763601064682, 0.1655351221561432, -0.29757508635520935, 1.1979166269302368, 0.05732978135347366, -0.03917140141129494, 0.13368426263332367, -0.23794715106487274, 0.5808714032173157, -0.15660002827644348, 0.11319942772388458, -0.17663922905921936, -0.09177327156066895, 0.12189703434705734, -0.2235734611749649, 0.3505116403102875, -0.19809302687644958, -0.058932334184646606, 0.2558603584766388, -0.1141534298658371, 0.3006235659122467, 0.20144550502300262, 0.2694346010684967, -0.09047387540340424, 0.004621292930096388, -0.25704067945480347, 0.13903462886810303, -0.004474779590964317, 0.4249931275844574, -0.058096520602703094, -0.1384332925081253, 0.014673926867544651, -0.33706074953079224, -0.3443259596824646, 0.15447647869586945, -0.7144247889518738, 0.16644072532653809, 0.012158348225057125, -0.08223714679479599, -0.11781056225299835, -0.021114356815814972, 0.39122438430786133, 0.1099308431148529, -0.21932345628738403, 0.18423724174499512, -0.003748331917449832, -0.3129948675632477, 0.10391625761985779, 0.12272220104932785, -0.06259556114673615, -0.2693052291870117, -0.20326656103134155, 0.14174146950244904, -0.17309634387493134, -0.42269617319107056, 0.203871950507164, -0.14619846642017365, 0.151529461145401, -0.18364322185516357, -0.022626420482993126, -0.1612544059753418, 0.024226605892181396, -0.1469755470752716, 0.11217062920331955, -0.0693802759051323, -0.24792338907718658, -0.10859763622283936, 0.022369686514139175, -0.3606719374656677, 0.017463011667132378, 0.4281620383262634, -0.1445816308259964, 0.07232052832841873, 0.45552536845207214, 0.12474042922258377, -0.13173219561576843, -0.12844648957252502, -0.21995238959789276, 0.04305601865053177, -0.40919363498687744, -0.0014767624670639634, -0.0063629611395299435, -0.1436571329832077, -0.23021593689918518, -0.09128157794475555, 0.38618144392967224, 0.22693796455860138, -0.024943886324763298, -0.5732637643814087, -0.12366543710231781, 0.12837351858615875, -0.11131998151540756, -0.0436675138771534, 0.1352207362651825, 0.29215008020401, 0.0813923329114914, 0.07727901637554169, -0.29492658376693726, -0.05822010710835457, -0.198037788271904, -0.09098261594772339, 0.46046146750450134, -0.423175573348999, 0.5564398169517517, 0.2472599893808365, 0.1833634227514267, 0.018559984862804413, -0.17679281532764435, -0.191349059343338, -0.08618107438087463, 0.12390199303627014, -0.10455065220594406, -0.2903294563293457, 0.019858358427882195, -0.33761289715766907, 0.004140346776694059, -0.006703604944050312, 0.007722188718616962, 0.04187803342938423, 0.0665358453989029, -0.28173327445983887, -0.03206606209278107, -0.08955341577529907, -0.10538532584905624, 0.1841527223587036, -0.1359492540359497, 0.1784517914056778, 0.028757883235812187, -0.006141094956547022, -0.27543237805366516, -0.17577242851257324, -0.236001655459404, -0.0797952264547348, 0.029737405478954315, 0.10815877467393875, 0.3297696113586426, -0.19428619742393494, -0.29231715202331543, -0.10878171026706696, 0.4173107445240021, -0.0037689320743083954, -0.14196191728115082, 0.05901918187737465, 0.16908110678195953, 0.1616690456867218, -0.13115325570106506, 0.0745706856250763, 0.1629069447517395, -0.15657685697078705, 0.11842755228281021, 0.20686829090118408, -0.02370298095047474, 0.16387338936328888, 0.039276931434869766, 0.019312169402837753, 0.8280627131462097, 0.2137530893087387, 0.08450698107481003, 0.1391807645559311, 0.04158133268356323, -0.06282097846269608, 0.15295596420764923, 0.00351531570777297, 0.2465282678604126, -0.08917354792356491, -0.35493654012680054, -0.06147662177681923, -0.05932311341166496, -0.06813699752092361, 0.22970473766326904, -0.06997399777173996, 0.025114350020885468, 0.1838400661945343, -0.09884807467460632, -0.13195639848709106, -0.40800967812538147, 0.613405704498291, -0.4409067928791046, -0.035708460956811905, -0.19962002336978912, 0.363047331571579, 0.03314724192023277, -0.17256151139736176, 0.14526385068893433, -0.14204873144626617, -0.23196625709533691, -0.3037567138671875, 0.08966223150491714, -0.39731884002685547, 0.36749473214149475, -0.06796720623970032, 0.030709773302078247, -0.07294664531946182, -0.3076353073120117, 0.13283859193325043, 0.24199515581130981, -0.23331011831760406, 0.38188159465789795, 0.2886331379413605, -0.03762876242399216, -0.1605471968650818, 0.4000947177410126, 0.6762164831161499, 0.2699616551399231, -0.23519709706306458, 0.26749318838119507, 0.033283960074186325, -0.05285698547959328, -0.025934429839253426, -0.005995515268296003, 0.2812906801700592, -0.003465171903371811, 0.2339334338903427, 0.23367652297019958, -0.22609780728816986, 0.052874889224767685, -0.19164863228797913, 0.3153737783432007, -0.01486788596957922, 0.41268742084503174, -0.3227868378162384, -0.14263586699962616, -0.32239219546318054, 0.13642798364162445, -0.8104321360588074, 0.17204654216766357, 0.26726797223091125, -0.4068026542663574, 0.021515611559152603, -0.17312701046466827, 0.08031534403562546, -0.07526593655347824, 0.7511889934539795, 0.20130446553230286, 0.3521663546562195, -0.4966929256916046, -0.3168995678424835, -0.29044339060783386, 0.20751294493675232, -0.12045560032129288, -0.1377061903476715, -0.05946851521730423, -0.07869888097047806, -0.13662414252758026, 0.14962589740753174, 0.1224856823682785, 0.12394674122333527, -0.2708905339241028, -0.1634463667869568, -0.016866035759449005, 0.04201198369264603, -0.06340300291776657, 0.10234619677066803, 0.27331262826919556, -0.226094588637352, 0.23419316112995148, -0.044794708490371704, 0.038397058844566345, 0.21650715172290802, -0.019557049497961998, 0.17872491478919983, -0.36867618560791016, 0.37124618887901306, 0.1257682889699936, 0.3474535048007965, 0.16407664120197296, -0.057672202587127686, -0.1508484184741974, -0.20026355981826782, -0.052504874765872955, 0.11811210215091705, -0.009458818472921848, 0.005406489130109549, -0.23456725478172302, -0.23795482516288757, -0.5355011820793152, 0.18844035267829895, 0.03245645761489868, -0.06154366955161095, 0.04100145772099495, -0.19774362444877625, 0.14530615508556366, 0.1729564666748047, 0.2607687711715698, 0.04376857727766037, -0.002930695889517665, 0.13175372779369354, -0.30685070157051086, -0.2666342556476593, 0.6317304968833923, -0.40220606327056885, -0.24217817187309265, 0.07185167074203491, 0.3609124422073364, 0.13837234675884247, 0.10802709311246872, -0.4578806459903717, 0.03677789494395256, 0.38186898827552795, 0.3051510751247406, -0.2807100713253021, 0.26361313462257385, -0.22063452005386353, 0.07509788125753403, 0.15701739490032196, 0.11334576457738876, -0.114230677485466, -0.347904235124588, -0.09011751413345337, -0.1272864192724228 ]
https://github.com/huggingface/datasets/issues/2775
`generate_random_fingerprint()` deterministic with 🤗Transformers' `set_seed()`
I dug into what I believe is the root of this issue and added a repro in my comment. If this is better addressed as a cross-team issue, let me know and I can open an issue in the Transformers repo
## Describe the bug **Update:** I dug into this to try to reproduce the underlying issue, and I believe it's that `set_seed()` from the `transformers` library makes the "random" fingerprint identical each time. I believe this is still a bug, because `datasets` is used exactly this way in `transformers` after `set_seed()` has been called, and I think that using `set_seed()` is a standard procedure to aid reproducibility. I've added more details to reproduce this below. Hi there! I'm using my own local dataset and custom preprocessing function. My preprocessing function seems to be unpickle-able, perhaps because it is from a closure (will debug this separately). I get this warning, which is expected: https://github.com/huggingface/datasets/blob/450b9174765374111e5c6daab0ed294bc3d9b639/src/datasets/fingerprint.py#L260-L265 However, what's not expected is that the `datasets` actually _does_ seem to cache and reuse this dataset between runs! After that line, the next thing that's logged looks like: ```text Loading cached processed dataset at /home/xxx/.cache/huggingface/datasets/csv/default-xxx/0.0.0/xxx/cache-xxx.arrow ``` The path is exactly the same each run (e.g., last 26 runs). This becomes a problem because I'll pass in the `--max_eval_samples` flag to the HuggingFace example script I'm running off of ([run_swag.py](https://github.com/huggingface/transformers/blob/master/examples/pytorch/multiple-choice/run_swag.py)). The fact that the cached dataset is reused means this flag gets ignored. I'll try to load 100 examples, and it will load the full cached 1,000,000. I think that https://github.com/huggingface/datasets/blob/450b9174765374111e5c6daab0ed294bc3d9b639/src/datasets/fingerprint.py#L248 ... is actually consistent because randomness is being controlled in HuggingFace/Transformers for reproducibility. I've added a demo of this below. ## Steps to reproduce the bug ```python # Contents of print_fingerprint.py from transformers import set_seed from datasets.fingerprint import generate_random_fingerprint set_seed(42) print(generate_random_fingerprint()) ``` ```bash for i in {0..10}; do python print_fingerprint.py done 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d ``` ## Expected results After the "random hash" warning is emitted, a random hash is generated, and no outdated cached datasets are reused. ## Actual results After the "random hash" warning is emitted, an identical hash is generated each time, and an outdated cached dataset is reused each run. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Linux-5.8.0-1038-gcp-x86_64-with-glibc2.31 - Python version: 3.9.6 - PyArrow version: 4.0.1
41
`generate_random_fingerprint()` deterministic with 🤗Transformers' `set_seed()` ## Describe the bug **Update:** I dug into this to try to reproduce the underlying issue, and I believe it's that `set_seed()` from the `transformers` library makes the "random" fingerprint identical each time. I believe this is still a bug, because `datasets` is used exactly this way in `transformers` after `set_seed()` has been called, and I think that using `set_seed()` is a standard procedure to aid reproducibility. I've added more details to reproduce this below. Hi there! I'm using my own local dataset and custom preprocessing function. My preprocessing function seems to be unpickle-able, perhaps because it is from a closure (will debug this separately). I get this warning, which is expected: https://github.com/huggingface/datasets/blob/450b9174765374111e5c6daab0ed294bc3d9b639/src/datasets/fingerprint.py#L260-L265 However, what's not expected is that the `datasets` actually _does_ seem to cache and reuse this dataset between runs! After that line, the next thing that's logged looks like: ```text Loading cached processed dataset at /home/xxx/.cache/huggingface/datasets/csv/default-xxx/0.0.0/xxx/cache-xxx.arrow ``` The path is exactly the same each run (e.g., last 26 runs). This becomes a problem because I'll pass in the `--max_eval_samples` flag to the HuggingFace example script I'm running off of ([run_swag.py](https://github.com/huggingface/transformers/blob/master/examples/pytorch/multiple-choice/run_swag.py)). The fact that the cached dataset is reused means this flag gets ignored. I'll try to load 100 examples, and it will load the full cached 1,000,000. I think that https://github.com/huggingface/datasets/blob/450b9174765374111e5c6daab0ed294bc3d9b639/src/datasets/fingerprint.py#L248 ... is actually consistent because randomness is being controlled in HuggingFace/Transformers for reproducibility. I've added a demo of this below. ## Steps to reproduce the bug ```python # Contents of print_fingerprint.py from transformers import set_seed from datasets.fingerprint import generate_random_fingerprint set_seed(42) print(generate_random_fingerprint()) ``` ```bash for i in {0..10}; do python print_fingerprint.py done 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d ``` ## Expected results After the "random hash" warning is emitted, a random hash is generated, and no outdated cached datasets are reused. ## Actual results After the "random hash" warning is emitted, an identical hash is generated each time, and an outdated cached dataset is reused each run. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Linux-5.8.0-1038-gcp-x86_64-with-glibc2.31 - Python version: 3.9.6 - PyArrow version: 4.0.1 I dug into what I believe is the root of this issue and added a repro in my comment. If this is better addressed as a cross-team issue, let me know and I can open an issue in the Transformers repo
[ -0.16224305331707, -0.06068200618028641, 0.09388259798288345, 0.083602674305439, 0.31440484523773193, -0.14297327399253845, 0.6139577031135559, 0.013213169761002064, -0.11961641162633896, 0.005815909244120121, 0.16503453254699707, 0.2017952799797058, -0.07878872007131577, 0.09452242404222488, -0.0190067570656538, 0.21308578550815582, 0.027878794819116592, -0.14028678834438324, -0.2763955295085907, -0.1410641223192215, -0.22847715020179749, 0.15234558284282684, -0.08743784576654434, -0.16173897683620453, -0.6726454496383667, -0.10210307687520981, -0.13290131092071533, 0.1628410369157791, 0.1795905977487564, -0.41693922877311707, 0.1931263655424118, 0.23521466553211212, -0.10143455862998962, 0.38755273818969727, -0.00011994224041700363, -0.09373790770769119, 0.3522935211658478, -0.06502662599086761, -0.2904088497161865, -0.10390352457761765, 0.04166746139526367, 0.18742772936820984, -0.05347621440887451, -0.11911160498857498, -0.06007794663310051, 0.007090380880981684, 0.13240139186382294, -0.41589227318763733, 0.39372995495796204, -0.12082298845052719, 0.16694694757461548, 0.27933230996131897, -0.11707909405231476, 0.09176816046237946, 0.1264912486076355, 0.7000271081924438, -0.2477300614118576, -0.04095190763473511, 0.0038182768039405346, 0.03527960181236267, -0.2997260093688965, 0.25504040718078613, 0.14568886160850525, 0.1156734824180603, 0.5079761743545532, 0.19230292737483978, -0.17866675555706024, -0.15323692560195923, 0.11486286669969559, 0.2767551839351654, 0.2311258465051651, -0.37487491965293884, -0.33699145913124084, -0.6084532737731934, -0.23626822233200073, -0.23218193650245667, 0.15272003412246704, 0.0096533028408885, -0.1577538251876831, 0.07931650429964066, -0.3549198806285858, 0.1265326291322708, 0.07074452936649323, -0.1952131688594818, 0.24688854813575745, 0.22187790274620056, 0.007237264886498451, 0.16794009506702423, 0.15873482823371887, 0.06049806624650955, 0.16993579268455505, -0.1181587502360344, -0.0938740149140358, 0.0394965261220932, 0.018043341115117073, 0.10574319958686829, 0.1586054414510727, 0.15346315503120422, 0.3189108073711395, 0.5014270544052124, 0.06100966036319733, 0.10238505154848099, 0.16774408519268036, -0.07384303212165833, 0.24670106172561646, 0.21972401440143585, -0.058061785995960236, 0.3566730320453644, 0.06708589196205139, 0.03704395890235901, -0.0029729604721069336, 0.014272593893110752, 0.2652677893638611, -0.0426025465130806, 0.5014551281929016, -0.02701181173324585, 0.2397683560848236, -0.05103669688105583, 0.06508178263902664, 0.14982159435749054, 0.0121367322281003, -0.07505358755588531, -0.07793144881725311, 0.2501382529735565, -0.19820795953273773, -0.024246420711278915, -0.09562370926141739, -0.044906459748744965, -0.13488344848155975, -0.08267036825418472, -0.2837889790534973, -0.1389884352684021, -0.251523494720459, 0.2813725769519806, -0.0713062733411789, -0.08077852427959442, 0.34109750390052795, 0.2519499957561493, 0.185481995344162, -0.15562961995601654, 0.178533136844635, -0.062260452657938004, 0.44979166984558105, 0.1312011182308197, -0.192961648106575, 0.15771059691905975, 0.15320438146591187, 0.07865897566080093, -0.16107378900051117, 0.08812431246042252, 0.08657190948724747, -0.23641350865364075, 0.11736913025379181, 0.05256331339478493, -0.5501565933227539, 0.12229189276695251, -0.09839780628681183, -0.03664899989962578, 0.49200648069381714, 0.1749352365732193, 0.26513227820396423, -0.18992504477500916, -0.4315013587474823, -0.29181867837905884, 0.07293376326560974, 0.7805559039115906, 0.029277166351675987, -0.291433185338974, 0.027197953313589096, 0.15184976160526276, 0.1788179576396942, 0.15702423453330994, -0.1241750717163086, 0.22122566401958466, -0.4607885181903839, 0.22057725489139557, -0.23224005103111267, -0.1423753798007965, -0.23229411244392395, 0.3027458190917969, -0.09363365173339844, 0.38315391540527344, 0.038359932601451874, 0.05610943213105202, -0.11149951815605164, -0.12546393275260925, -0.23886531591415405, 0.22451527416706085, -0.006820688955485821, 0.1098390519618988, -0.4005633592605591, -0.38976356387138367, 0.06552960723638535, -0.04836457595229149, 0.0519646517932415, 0.009436924010515213, 0.13186974823474884, -0.1288127601146698, 0.28778788447380066, -0.10685127973556519, 0.15813764929771423, 0.15285325050354004, 0.15872997045516968, 0.2246326059103012, 0.035185493528842926, 0.16891589760780334, -0.5419939160346985, 0.38200727105140686, -0.24104812741279602, -0.18935829401016235, -0.14942048490047455, -0.3210414946079254, -0.07530197501182556, 0.09607617557048798, -0.4060976803302765, -0.31525981426239014, -0.015451463870704174, 0.5506617426872253, 0.2708691358566284, -0.005199759267270565, 0.09682443737983704, 0.2403063029050827, 0.14232850074768066, -0.002717819297686219, -0.9128637909889221, 0.05678490549325943, 0.09068263322114944, -0.17256216704845428, -0.23067043721675873, 0.07788637280464172, 0.09686842560768127, -0.22878822684288025, 0.03843654319643974, 0.3598064184188843, 0.15805570781230927, 0.26281774044036865, -0.09842067956924438, 0.192810520529747, 0.007418888155370951, -0.10861817002296448, -0.03949350491166115, 0.15217719972133636, 0.055404528975486755, -0.1021173745393753, -0.09838051348924637, 0.4918053448200226, -0.21289028227329254, 0.1159907802939415, -0.1526506096124649, -0.08623193204402924, -0.0628085806965828, -0.052596911787986755, -0.2161845564842224, -0.19715461134910583, 0.08998291194438934, -0.039049189537763596, 0.5391988158226013, 0.22829504311084747, -0.3941819965839386, 0.23121599853038788, -0.001653839717619121, -0.04917052388191223, 0.14370094239711761, 0.08520398288965225, 0.07124535739421844, -0.31313490867614746, 0.056008949875831604, 0.3389393985271454, 0.4275985360145569, 0.01599670760333538, 0.058363623917102814, 0.05122724175453186, -0.1064068153500557, -0.1665116548538208, -0.007132840808480978, 0.0005932064377702773, -0.029842553660273552, 0.2195872962474823, 0.1412554830312729, 0.011257424019277096, -0.4387527108192444, -0.02868853323161602, 0.13569624722003937, -0.027310065925121307, -0.31918197870254517, 0.2899667024612427, -0.17555245757102966, 0.44555893540382385, -0.3127734661102295, -0.154507115483284, -0.28952524065971375, -0.2514544129371643, -0.12136592715978622, 0.4109184741973877, -0.11663024872541428, 0.19500957429409027, -0.19686150550842285, 0.29713431000709534, -0.08533278852701187, -0.275969922542572, -0.2541821300983429, -0.10936281830072403, -0.21838586032390594, -0.06022908166050911, 0.12037549912929535, -0.00343999988399446, 0.23211118578910828, -0.11008120328187943, -0.0712263211607933, -0.3098181486129761, -0.10552888363599777, 0.22297528386116028, -0.10863479226827621, 0.5486390590667725, 0.247772216796875, -0.21884553134441376, -0.17938007414340973, -0.21308061480522156, 0.21211926639080048, -0.19382716715335846, -0.08628994226455688, -0.1702486276626587, -0.09227001667022705, -0.05378036946058273, 0.029568903148174286, 0.06901581585407257, -0.0948401466012001, 0.012120368890464306, 0.25576597452163696, -0.0645928606390953, 0.04051796719431877, 0.5897525548934937, 0.028413211926817894, -0.05743648111820221, -0.1054534763097763, -0.04405360668897629, -0.5146175622940063, -0.49496859312057495, 0.2611507177352905, -0.16340070962905884, -0.2163863629102707, -0.32583650946617126, -0.2972288727760315, 0.01883922703564167, 0.1888899803161621, -0.6068615913391113, -0.051664602011442184, -0.26852303743362427, 0.4238201081752777, -0.20325462520122528, 0.01777471788227558, 0.3344091475009918, 0.09859655797481537, 0.10768025368452072, -0.02111034281551838, -0.047480352222919464, 0.2567789852619171, -0.3898845613002777, 0.3817116320133209, 0.10487495362758636, 0.06025400012731552, 0.08924692124128342, 1.004688024520874, 0.23593083024024963, -0.36999982595443726, 0.19783328473567963, -0.06440924108028412, 0.47496289014816284, -0.29798614978790283, -0.20793692767620087, 0.13105036318302155, -0.059039585292339325, -0.2528947591781616, 0.16061720252037048, -0.07951702177524567, 0.20314188301563263, 0.1621234118938446, 0.23740719258785248, -0.15798908472061157, -0.3636940121650696, 0.11795973777770996, -0.018376391381025314, 0.029056180268526077, 0.022086331620812416, 0.3120575547218323, -0.20992983877658844, -0.15833498537540436, 0.0411258190870285, 0.03566989675164223, 0.42217493057250977, 0.0522913932800293, -0.3100935220718384, 0.1876138299703598, -0.6171495914459229, 0.054094601422548294, 0.2187434434890747, 0.23804381489753723, -0.10982759296894073, -0.3385642170906067, 0.10949627310037613, -0.08085829764604568, 0.7635932564735413, -0.021159449592232704, 0.2726782560348511, 0.0645889937877655, -0.4564518332481384, -0.17785556614398956, -0.01947912946343422, 0.038732342422008514, -0.211859792470932, 0.07436462491750717, 0.10870613157749176, -0.16907481849193573, 0.16451700031757355, -0.14421446621418, 0.19735251367092133, -0.12989814579486847, -0.19459126889705658, -0.2662624716758728, -0.30793166160583496, -0.1788807362318039, 0.1033715084195137, 0.06400326639413834, -0.060818858444690704, -0.08260300755500793, 0.019687963649630547, -0.3017711341381073, -0.25996750593185425, 0.04352635145187378, 0.07066299766302109, 0.34439048171043396, 0.0018845634767785668, 0.404628187417984, 0.454714298248291, -0.19826725125312805, 0.08943583071231842, 0.4374316930770874, -0.2148360162973404, 0.008554388768970966, 0.22023122012615204, -0.03968169912695885, -0.23343710601329803, 0.54661625623703, -0.18775343894958496, -0.08945316821336746, 0.058728862553834915, 0.01080984715372324, -0.44398263096809387, 0.06646348536014557, 0.14664089679718018, 0.11371596902608871, -0.028197798877954483, -0.26248010993003845, 0.33129143714904785, 0.02726132422685623, -0.2758754789829254, 0.4392707049846649, -0.30990827083587646, -0.12392361462116241, 0.42471176385879517, 0.24714399874210358, 0.880484938621521, -0.12720981240272522, 0.3180260956287384, 0.19071367383003235, 0.27682429552078247, 0.14863529801368713, 0.48297542333602905, 0.011516259983181953, -0.4281357526779175, -0.3656574487686157, 0.006081468891352415, -0.20244097709655762, 0.055591732263565063, 0.08699491620063782, 0.06656738370656967, 0.11327286064624786, -0.06304249912500381, 0.10322826355695724, -0.15678513050079346, 0.15604610741138458, 0.024632148444652557, -0.21568633615970612, 0.17356416583061218, 0.08434499055147171, 0.17185506224632263, 0.5333350300788879, -0.06999041140079498, 0.09539619088172913, 0.060763876885175705, -0.24666213989257812, -0.36353111267089844, 0.20860622823238373, -0.2790144681930542, 0.20228427648544312, 0.3691953420639038, -0.025836225599050522, -0.25836536288261414, 0.1351563185453415, 0.509841799736023, 0.1552303284406662, -0.10205210745334625, 0.14779655635356903, 0.25783246755599976, 0.19270116090774536, -0.13152767717838287, -0.13015010952949524, 0.2111312747001648, 0.1236366480588913, -0.12068227678537369, -0.15193521976470947, -0.047805365175008774, -0.27167531847953796, -0.45989087224006653, -0.012133300304412842, -0.09795329719781876, -0.3023136556148529, 0.07902923226356506, -0.14669226109981537, 0.02726568654179573, -0.15418393909931183, 0.028699709102511406, 0.22076575458049774, 0.02281220443546772, 0.12999677658081055, -0.17856357991695404, -0.40695205330848694, -0.22650177776813507, 0.4325009286403656, -0.061209745705127716, 0.07272469997406006, 0.26022371649742126, 0.0922236517071724, -0.03154347091913223, -0.10855740308761597, 0.2351079285144806, 0.13772596418857574, -0.5122734904289246, 0.24340035021305084, -0.21698103845119476, -0.019595911726355553, -0.08135559409856796, 0.2316168248653412, 0.11155954748392105, 0.03482288494706154, -0.06170251592993736, -0.15238308906555176, -0.3719455897808075, -0.1704629361629486, 0.08219709247350693, 0.3519156575202942, 0.29289907217025757, 0.09904097765684128, -0.1051282212138176, 0.31249022483825684, -0.2433376908302307, -0.050234414637088776, 0.007626723498106003, 0.029681596904993057, 0.06706823408603668, -0.3035529851913452, 0.28679150342941284, -0.06814447045326233, -0.006358257960528135, 0.2946643829345703, -0.3688631057739258, -0.11842846125364304, -0.4529236853122711, 0.15936627984046936, 0.008885129354894161, -0.004895244725048542, -0.15719573199748993, 0.17797596752643585, 0.023719310760498047, -0.39667966961860657, 0.3917921185493469, 0.5151256322860718, 0.01499622967094183, -0.08308596909046173, 0.4291327893733978, 0.05374536290764809, -0.09802470356225967, -0.17535653710365295, -0.18444722890853882, 0.07485563308000565, 0.24807696044445038, 0.10791639238595963, -0.15067635476589203, 0.007184055168181658, -0.2314373403787613, 0.02881166897714138, 0.23021136224269867, -0.06765586882829666, 0.01801830530166626, -0.1343325674533844, -0.2681116461753845, -0.0723341554403305, 0.17030204832553864, 0.16116932034492493, -0.16351303458213806, -0.3935708999633789, 0.13543249666690826, 0.14979471266269684, -0.07259983569383621, -0.2825772762298584, -0.38760271668434143, 0.24930423498153687, 0.08689871430397034, 0.5509287714958191, 0.3141428232192993, -0.12256836891174316, 0.05723591893911362, 0.03461902216076851, 0.5128442049026489, -0.3987121880054474, 0.2396625280380249, 0.309047132730484, -0.2385406345129013, 0.02523493394255638, 0.49388226866722107, 0.29231396317481995, 0.20635677874088287, 0.17327448725700378, -0.03843085840344429, 0.5072748064994812, -0.30277737975120544, 0.09721846133470535, -0.1392076164484024, -0.6456994414329529, 0.30823883414268494, 0.4405921697616577, -0.15164661407470703, 0.4086827039718628, 0.07743354886770248, 0.48320549726486206, -0.16603632271289825, -0.08580091595649719, -0.3003624975681305, 0.30243611335754395, 0.014399584382772446, -0.5353147983551025, 0.03777927905321121, -0.0834386795759201, -0.3826372027397156, 0.09004189819097519, -0.0035492919851094484, -0.20816268026828766, 0.6144248843193054, -0.07520963996648788, -0.2515944540500641, -0.3642040193080902, -0.037835802882909775, 0.014261309057474136, 0.1197621077299118, -0.31158503890037537, 0.2505502998828888, 0.1605970561504364, -0.296970933675766, 0.10138139873743057, 0.1887003630399704, 0.5075889229774475, 0.3388091027736664, 0.1338159590959549, 0.107594333589077, -0.29516032338142395, 0.19070011377334595, -0.24812917411327362, 0.30666473507881165, -0.23675604164600372, -0.2121829241514206, 0.27298930287361145, 0.0783088207244873, -0.12300991266965866, 0.07552434504032135, 0.060490190982818604, 0.45059460401535034, -0.19694137573242188, 0.6952246427536011, -0.1496914178133011, 0.18838204443454742, -0.0011686881771311164, 0.3480207324028015, -0.36970239877700806, 0.05856010317802429, 0.26239365339279175, -0.1507830023765564, 0.19906863570213318, -0.132258340716362, 0.03402692452073097, -0.04889814183115959, 0.3877415657043457, 0.2560422420501709, -0.34836113452911377, -0.17921018600463867, 0.19576390087604523, -0.5142298340797424, 0.35331690311431885, -0.19996333122253418, 0.1005278006196022, 0.08040177822113037, 0.1455354541540146, -0.22769220173358917, -0.009682812727987766, -0.17147016525268555, 0.2559449374675751, 0.008132858201861382, 0.3090418875217438, -0.1568305641412735, 0.08803979307413101, -0.43921223282814026, -0.014475192874670029, 0.21304607391357422, -0.38414323329925537, 0.2073269486427307, 0.19992458820343018, -0.02970767393708229, 0.05502742528915405, -0.1730278730392456, -0.02778126299381256, -0.006820867769420147, 0.40174600481987, 0.26525115966796875, 0.07998253405094147, -0.18513281643390656, -0.182678684592247, -0.577165424823761, -0.15515592694282532, -0.11464525759220123, 0.11606191098690033, 0.10479547083377838, 0.22329851984977722, -0.20687174797058105, -0.26768752932548523, -0.4154664874076843, 0.23654507100582123, 0.25994566082954407, -0.13951022922992706, -0.136260986328125, 0.23889678716659546, -0.3561549484729767, 0.3288770914077759, 0.09196081012487411, 0.4796585440635681, -0.024372657760977745, 0.28056344389915466, -0.13492809236049652, -0.4061139225959778, 0.721650242805481, -0.5009365677833557, -0.24772363901138306, -0.32388925552368164, 0.044061124324798584, 0.07158945500850677, -0.45236003398895264, -0.4823105037212372, 0.16658540070056915, 0.14523743093013763, 0.09781376272439957, -0.001137231127358973, -0.1485639214515686, -0.24830259382724762, 0.02759048342704773, -0.09752226620912552, 0.5400007963180542, 0.1959821581840515, -0.15169477462768555, 0.3653634190559387, -0.15052708983421326 ]
https://github.com/huggingface/datasets/issues/2775
`generate_random_fingerprint()` deterministic with 🤗Transformers' `set_seed()`
Hi ! IMO we shouldn't try to modify `set_seed` from transformers but maybe make `datasets` have its own RNG just to generate random fingerprints. Any opinion on this @LysandreJik ?
## Describe the bug **Update:** I dug into this to try to reproduce the underlying issue, and I believe it's that `set_seed()` from the `transformers` library makes the "random" fingerprint identical each time. I believe this is still a bug, because `datasets` is used exactly this way in `transformers` after `set_seed()` has been called, and I think that using `set_seed()` is a standard procedure to aid reproducibility. I've added more details to reproduce this below. Hi there! I'm using my own local dataset and custom preprocessing function. My preprocessing function seems to be unpickle-able, perhaps because it is from a closure (will debug this separately). I get this warning, which is expected: https://github.com/huggingface/datasets/blob/450b9174765374111e5c6daab0ed294bc3d9b639/src/datasets/fingerprint.py#L260-L265 However, what's not expected is that the `datasets` actually _does_ seem to cache and reuse this dataset between runs! After that line, the next thing that's logged looks like: ```text Loading cached processed dataset at /home/xxx/.cache/huggingface/datasets/csv/default-xxx/0.0.0/xxx/cache-xxx.arrow ``` The path is exactly the same each run (e.g., last 26 runs). This becomes a problem because I'll pass in the `--max_eval_samples` flag to the HuggingFace example script I'm running off of ([run_swag.py](https://github.com/huggingface/transformers/blob/master/examples/pytorch/multiple-choice/run_swag.py)). The fact that the cached dataset is reused means this flag gets ignored. I'll try to load 100 examples, and it will load the full cached 1,000,000. I think that https://github.com/huggingface/datasets/blob/450b9174765374111e5c6daab0ed294bc3d9b639/src/datasets/fingerprint.py#L248 ... is actually consistent because randomness is being controlled in HuggingFace/Transformers for reproducibility. I've added a demo of this below. ## Steps to reproduce the bug ```python # Contents of print_fingerprint.py from transformers import set_seed from datasets.fingerprint import generate_random_fingerprint set_seed(42) print(generate_random_fingerprint()) ``` ```bash for i in {0..10}; do python print_fingerprint.py done 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d ``` ## Expected results After the "random hash" warning is emitted, a random hash is generated, and no outdated cached datasets are reused. ## Actual results After the "random hash" warning is emitted, an identical hash is generated each time, and an outdated cached dataset is reused each run. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Linux-5.8.0-1038-gcp-x86_64-with-glibc2.31 - Python version: 3.9.6 - PyArrow version: 4.0.1
30
`generate_random_fingerprint()` deterministic with 🤗Transformers' `set_seed()` ## Describe the bug **Update:** I dug into this to try to reproduce the underlying issue, and I believe it's that `set_seed()` from the `transformers` library makes the "random" fingerprint identical each time. I believe this is still a bug, because `datasets` is used exactly this way in `transformers` after `set_seed()` has been called, and I think that using `set_seed()` is a standard procedure to aid reproducibility. I've added more details to reproduce this below. Hi there! I'm using my own local dataset and custom preprocessing function. My preprocessing function seems to be unpickle-able, perhaps because it is from a closure (will debug this separately). I get this warning, which is expected: https://github.com/huggingface/datasets/blob/450b9174765374111e5c6daab0ed294bc3d9b639/src/datasets/fingerprint.py#L260-L265 However, what's not expected is that the `datasets` actually _does_ seem to cache and reuse this dataset between runs! After that line, the next thing that's logged looks like: ```text Loading cached processed dataset at /home/xxx/.cache/huggingface/datasets/csv/default-xxx/0.0.0/xxx/cache-xxx.arrow ``` The path is exactly the same each run (e.g., last 26 runs). This becomes a problem because I'll pass in the `--max_eval_samples` flag to the HuggingFace example script I'm running off of ([run_swag.py](https://github.com/huggingface/transformers/blob/master/examples/pytorch/multiple-choice/run_swag.py)). The fact that the cached dataset is reused means this flag gets ignored. I'll try to load 100 examples, and it will load the full cached 1,000,000. I think that https://github.com/huggingface/datasets/blob/450b9174765374111e5c6daab0ed294bc3d9b639/src/datasets/fingerprint.py#L248 ... is actually consistent because randomness is being controlled in HuggingFace/Transformers for reproducibility. I've added a demo of this below. ## Steps to reproduce the bug ```python # Contents of print_fingerprint.py from transformers import set_seed from datasets.fingerprint import generate_random_fingerprint set_seed(42) print(generate_random_fingerprint()) ``` ```bash for i in {0..10}; do python print_fingerprint.py done 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d 1c80317fa3b1799d ``` ## Expected results After the "random hash" warning is emitted, a random hash is generated, and no outdated cached datasets are reused. ## Actual results After the "random hash" warning is emitted, an identical hash is generated each time, and an outdated cached dataset is reused each run. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Linux-5.8.0-1038-gcp-x86_64-with-glibc2.31 - Python version: 3.9.6 - PyArrow version: 4.0.1 Hi ! IMO we shouldn't try to modify `set_seed` from transformers but maybe make `datasets` have its own RNG just to generate random fingerprints. Any opinion on this @LysandreJik ?
[ -0.16224305331707, -0.06068200618028641, 0.09388259798288345, 0.083602674305439, 0.31440484523773193, -0.14297327399253845, 0.6139577031135559, 0.013213169761002064, -0.11961641162633896, 0.005815909244120121, 0.16503453254699707, 0.2017952799797058, -0.07878872007131577, 0.09452242404222488, -0.0190067570656538, 0.21308578550815582, 0.027878794819116592, -0.14028678834438324, -0.2763955295085907, -0.1410641223192215, -0.22847715020179749, 0.15234558284282684, -0.08743784576654434, -0.16173897683620453, -0.6726454496383667, -0.10210307687520981, -0.13290131092071533, 0.1628410369157791, 0.1795905977487564, -0.41693922877311707, 0.1931263655424118, 0.23521466553211212, -0.10143455862998962, 0.38755273818969727, -0.00011994224041700363, -0.09373790770769119, 0.3522935211658478, -0.06502662599086761, -0.2904088497161865, -0.10390352457761765, 0.04166746139526367, 0.18742772936820984, -0.05347621440887451, -0.11911160498857498, -0.06007794663310051, 0.007090380880981684, 0.13240139186382294, -0.41589227318763733, 0.39372995495796204, -0.12082298845052719, 0.16694694757461548, 0.27933230996131897, -0.11707909405231476, 0.09176816046237946, 0.1264912486076355, 0.7000271081924438, -0.2477300614118576, -0.04095190763473511, 0.0038182768039405346, 0.03527960181236267, -0.2997260093688965, 0.25504040718078613, 0.14568886160850525, 0.1156734824180603, 0.5079761743545532, 0.19230292737483978, -0.17866675555706024, -0.15323692560195923, 0.11486286669969559, 0.2767551839351654, 0.2311258465051651, -0.37487491965293884, -0.33699145913124084, -0.6084532737731934, -0.23626822233200073, -0.23218193650245667, 0.15272003412246704, 0.0096533028408885, -0.1577538251876831, 0.07931650429964066, -0.3549198806285858, 0.1265326291322708, 0.07074452936649323, -0.1952131688594818, 0.24688854813575745, 0.22187790274620056, 0.007237264886498451, 0.16794009506702423, 0.15873482823371887, 0.06049806624650955, 0.16993579268455505, -0.1181587502360344, -0.0938740149140358, 0.0394965261220932, 0.018043341115117073, 0.10574319958686829, 0.1586054414510727, 0.15346315503120422, 0.3189108073711395, 0.5014270544052124, 0.06100966036319733, 0.10238505154848099, 0.16774408519268036, -0.07384303212165833, 0.24670106172561646, 0.21972401440143585, -0.058061785995960236, 0.3566730320453644, 0.06708589196205139, 0.03704395890235901, -0.0029729604721069336, 0.014272593893110752, 0.2652677893638611, -0.0426025465130806, 0.5014551281929016, -0.02701181173324585, 0.2397683560848236, -0.05103669688105583, 0.06508178263902664, 0.14982159435749054, 0.0121367322281003, -0.07505358755588531, -0.07793144881725311, 0.2501382529735565, -0.19820795953273773, -0.024246420711278915, -0.09562370926141739, -0.044906459748744965, -0.13488344848155975, -0.08267036825418472, -0.2837889790534973, -0.1389884352684021, -0.251523494720459, 0.2813725769519806, -0.0713062733411789, -0.08077852427959442, 0.34109750390052795, 0.2519499957561493, 0.185481995344162, -0.15562961995601654, 0.178533136844635, -0.062260452657938004, 0.44979166984558105, 0.1312011182308197, -0.192961648106575, 0.15771059691905975, 0.15320438146591187, 0.07865897566080093, -0.16107378900051117, 0.08812431246042252, 0.08657190948724747, -0.23641350865364075, 0.11736913025379181, 0.05256331339478493, -0.5501565933227539, 0.12229189276695251, -0.09839780628681183, -0.03664899989962578, 0.49200648069381714, 0.1749352365732193, 0.26513227820396423, -0.18992504477500916, -0.4315013587474823, -0.29181867837905884, 0.07293376326560974, 0.7805559039115906, 0.029277166351675987, -0.291433185338974, 0.027197953313589096, 0.15184976160526276, 0.1788179576396942, 0.15702423453330994, -0.1241750717163086, 0.22122566401958466, -0.4607885181903839, 0.22057725489139557, -0.23224005103111267, -0.1423753798007965, -0.23229411244392395, 0.3027458190917969, -0.09363365173339844, 0.38315391540527344, 0.038359932601451874, 0.05610943213105202, -0.11149951815605164, -0.12546393275260925, -0.23886531591415405, 0.22451527416706085, -0.006820688955485821, 0.1098390519618988, -0.4005633592605591, -0.38976356387138367, 0.06552960723638535, -0.04836457595229149, 0.0519646517932415, 0.009436924010515213, 0.13186974823474884, -0.1288127601146698, 0.28778788447380066, -0.10685127973556519, 0.15813764929771423, 0.15285325050354004, 0.15872997045516968, 0.2246326059103012, 0.035185493528842926, 0.16891589760780334, -0.5419939160346985, 0.38200727105140686, -0.24104812741279602, -0.18935829401016235, -0.14942048490047455, -0.3210414946079254, -0.07530197501182556, 0.09607617557048798, -0.4060976803302765, -0.31525981426239014, -0.015451463870704174, 0.5506617426872253, 0.2708691358566284, -0.005199759267270565, 0.09682443737983704, 0.2403063029050827, 0.14232850074768066, -0.002717819297686219, -0.9128637909889221, 0.05678490549325943, 0.09068263322114944, -0.17256216704845428, -0.23067043721675873, 0.07788637280464172, 0.09686842560768127, -0.22878822684288025, 0.03843654319643974, 0.3598064184188843, 0.15805570781230927, 0.26281774044036865, -0.09842067956924438, 0.192810520529747, 0.007418888155370951, -0.10861817002296448, -0.03949350491166115, 0.15217719972133636, 0.055404528975486755, -0.1021173745393753, -0.09838051348924637, 0.4918053448200226, -0.21289028227329254, 0.1159907802939415, -0.1526506096124649, -0.08623193204402924, -0.0628085806965828, -0.052596911787986755, -0.2161845564842224, -0.19715461134910583, 0.08998291194438934, -0.039049189537763596, 0.5391988158226013, 0.22829504311084747, -0.3941819965839386, 0.23121599853038788, -0.001653839717619121, -0.04917052388191223, 0.14370094239711761, 0.08520398288965225, 0.07124535739421844, -0.31313490867614746, 0.056008949875831604, 0.3389393985271454, 0.4275985360145569, 0.01599670760333538, 0.058363623917102814, 0.05122724175453186, -0.1064068153500557, -0.1665116548538208, -0.007132840808480978, 0.0005932064377702773, -0.029842553660273552, 0.2195872962474823, 0.1412554830312729, 0.011257424019277096, -0.4387527108192444, -0.02868853323161602, 0.13569624722003937, -0.027310065925121307, -0.31918197870254517, 0.2899667024612427, -0.17555245757102966, 0.44555893540382385, -0.3127734661102295, -0.154507115483284, -0.28952524065971375, -0.2514544129371643, -0.12136592715978622, 0.4109184741973877, -0.11663024872541428, 0.19500957429409027, -0.19686150550842285, 0.29713431000709534, -0.08533278852701187, -0.275969922542572, -0.2541821300983429, -0.10936281830072403, -0.21838586032390594, -0.06022908166050911, 0.12037549912929535, -0.00343999988399446, 0.23211118578910828, -0.11008120328187943, -0.0712263211607933, -0.3098181486129761, -0.10552888363599777, 0.22297528386116028, -0.10863479226827621, 0.5486390590667725, 0.247772216796875, -0.21884553134441376, -0.17938007414340973, -0.21308061480522156, 0.21211926639080048, -0.19382716715335846, -0.08628994226455688, -0.1702486276626587, -0.09227001667022705, -0.05378036946058273, 0.029568903148174286, 0.06901581585407257, -0.0948401466012001, 0.012120368890464306, 0.25576597452163696, -0.0645928606390953, 0.04051796719431877, 0.5897525548934937, 0.028413211926817894, -0.05743648111820221, -0.1054534763097763, -0.04405360668897629, -0.5146175622940063, -0.49496859312057495, 0.2611507177352905, -0.16340070962905884, -0.2163863629102707, -0.32583650946617126, -0.2972288727760315, 0.01883922703564167, 0.1888899803161621, -0.6068615913391113, -0.051664602011442184, -0.26852303743362427, 0.4238201081752777, -0.20325462520122528, 0.01777471788227558, 0.3344091475009918, 0.09859655797481537, 0.10768025368452072, -0.02111034281551838, -0.047480352222919464, 0.2567789852619171, -0.3898845613002777, 0.3817116320133209, 0.10487495362758636, 0.06025400012731552, 0.08924692124128342, 1.004688024520874, 0.23593083024024963, -0.36999982595443726, 0.19783328473567963, -0.06440924108028412, 0.47496289014816284, -0.29798614978790283, -0.20793692767620087, 0.13105036318302155, -0.059039585292339325, -0.2528947591781616, 0.16061720252037048, -0.07951702177524567, 0.20314188301563263, 0.1621234118938446, 0.23740719258785248, -0.15798908472061157, -0.3636940121650696, 0.11795973777770996, -0.018376391381025314, 0.029056180268526077, 0.022086331620812416, 0.3120575547218323, -0.20992983877658844, -0.15833498537540436, 0.0411258190870285, 0.03566989675164223, 0.42217493057250977, 0.0522913932800293, -0.3100935220718384, 0.1876138299703598, -0.6171495914459229, 0.054094601422548294, 0.2187434434890747, 0.23804381489753723, -0.10982759296894073, -0.3385642170906067, 0.10949627310037613, -0.08085829764604568, 0.7635932564735413, -0.021159449592232704, 0.2726782560348511, 0.0645889937877655, -0.4564518332481384, -0.17785556614398956, -0.01947912946343422, 0.038732342422008514, -0.211859792470932, 0.07436462491750717, 0.10870613157749176, -0.16907481849193573, 0.16451700031757355, -0.14421446621418, 0.19735251367092133, -0.12989814579486847, -0.19459126889705658, -0.2662624716758728, -0.30793166160583496, -0.1788807362318039, 0.1033715084195137, 0.06400326639413834, -0.060818858444690704, -0.08260300755500793, 0.019687963649630547, -0.3017711341381073, -0.25996750593185425, 0.04352635145187378, 0.07066299766302109, 0.34439048171043396, 0.0018845634767785668, 0.404628187417984, 0.454714298248291, -0.19826725125312805, 0.08943583071231842, 0.4374316930770874, -0.2148360162973404, 0.008554388768970966, 0.22023122012615204, -0.03968169912695885, -0.23343710601329803, 0.54661625623703, -0.18775343894958496, -0.08945316821336746, 0.058728862553834915, 0.01080984715372324, -0.44398263096809387, 0.06646348536014557, 0.14664089679718018, 0.11371596902608871, -0.028197798877954483, -0.26248010993003845, 0.33129143714904785, 0.02726132422685623, -0.2758754789829254, 0.4392707049846649, -0.30990827083587646, -0.12392361462116241, 0.42471176385879517, 0.24714399874210358, 0.880484938621521, -0.12720981240272522, 0.3180260956287384, 0.19071367383003235, 0.27682429552078247, 0.14863529801368713, 0.48297542333602905, 0.011516259983181953, -0.4281357526779175, -0.3656574487686157, 0.006081468891352415, -0.20244097709655762, 0.055591732263565063, 0.08699491620063782, 0.06656738370656967, 0.11327286064624786, -0.06304249912500381, 0.10322826355695724, -0.15678513050079346, 0.15604610741138458, 0.024632148444652557, -0.21568633615970612, 0.17356416583061218, 0.08434499055147171, 0.17185506224632263, 0.5333350300788879, -0.06999041140079498, 0.09539619088172913, 0.060763876885175705, -0.24666213989257812, -0.36353111267089844, 0.20860622823238373, -0.2790144681930542, 0.20228427648544312, 0.3691953420639038, -0.025836225599050522, -0.25836536288261414, 0.1351563185453415, 0.509841799736023, 0.1552303284406662, -0.10205210745334625, 0.14779655635356903, 0.25783246755599976, 0.19270116090774536, -0.13152767717838287, -0.13015010952949524, 0.2111312747001648, 0.1236366480588913, -0.12068227678537369, -0.15193521976470947, -0.047805365175008774, -0.27167531847953796, -0.45989087224006653, -0.012133300304412842, -0.09795329719781876, -0.3023136556148529, 0.07902923226356506, -0.14669226109981537, 0.02726568654179573, -0.15418393909931183, 0.028699709102511406, 0.22076575458049774, 0.02281220443546772, 0.12999677658081055, -0.17856357991695404, -0.40695205330848694, -0.22650177776813507, 0.4325009286403656, -0.061209745705127716, 0.07272469997406006, 0.26022371649742126, 0.0922236517071724, -0.03154347091913223, -0.10855740308761597, 0.2351079285144806, 0.13772596418857574, -0.5122734904289246, 0.24340035021305084, -0.21698103845119476, -0.019595911726355553, -0.08135559409856796, 0.2316168248653412, 0.11155954748392105, 0.03482288494706154, -0.06170251592993736, -0.15238308906555176, -0.3719455897808075, -0.1704629361629486, 0.08219709247350693, 0.3519156575202942, 0.29289907217025757, 0.09904097765684128, -0.1051282212138176, 0.31249022483825684, -0.2433376908302307, -0.050234414637088776, 0.007626723498106003, 0.029681596904993057, 0.06706823408603668, -0.3035529851913452, 0.28679150342941284, -0.06814447045326233, -0.006358257960528135, 0.2946643829345703, -0.3688631057739258, -0.11842846125364304, -0.4529236853122711, 0.15936627984046936, 0.008885129354894161, -0.004895244725048542, -0.15719573199748993, 0.17797596752643585, 0.023719310760498047, -0.39667966961860657, 0.3917921185493469, 0.5151256322860718, 0.01499622967094183, -0.08308596909046173, 0.4291327893733978, 0.05374536290764809, -0.09802470356225967, -0.17535653710365295, -0.18444722890853882, 0.07485563308000565, 0.24807696044445038, 0.10791639238595963, -0.15067635476589203, 0.007184055168181658, -0.2314373403787613, 0.02881166897714138, 0.23021136224269867, -0.06765586882829666, 0.01801830530166626, -0.1343325674533844, -0.2681116461753845, -0.0723341554403305, 0.17030204832553864, 0.16116932034492493, -0.16351303458213806, -0.3935708999633789, 0.13543249666690826, 0.14979471266269684, -0.07259983569383621, -0.2825772762298584, -0.38760271668434143, 0.24930423498153687, 0.08689871430397034, 0.5509287714958191, 0.3141428232192993, -0.12256836891174316, 0.05723591893911362, 0.03461902216076851, 0.5128442049026489, -0.3987121880054474, 0.2396625280380249, 0.309047132730484, -0.2385406345129013, 0.02523493394255638, 0.49388226866722107, 0.29231396317481995, 0.20635677874088287, 0.17327448725700378, -0.03843085840344429, 0.5072748064994812, -0.30277737975120544, 0.09721846133470535, -0.1392076164484024, -0.6456994414329529, 0.30823883414268494, 0.4405921697616577, -0.15164661407470703, 0.4086827039718628, 0.07743354886770248, 0.48320549726486206, -0.16603632271289825, -0.08580091595649719, -0.3003624975681305, 0.30243611335754395, 0.014399584382772446, -0.5353147983551025, 0.03777927905321121, -0.0834386795759201, -0.3826372027397156, 0.09004189819097519, -0.0035492919851094484, -0.20816268026828766, 0.6144248843193054, -0.07520963996648788, -0.2515944540500641, -0.3642040193080902, -0.037835802882909775, 0.014261309057474136, 0.1197621077299118, -0.31158503890037537, 0.2505502998828888, 0.1605970561504364, -0.296970933675766, 0.10138139873743057, 0.1887003630399704, 0.5075889229774475, 0.3388091027736664, 0.1338159590959549, 0.107594333589077, -0.29516032338142395, 0.19070011377334595, -0.24812917411327362, 0.30666473507881165, -0.23675604164600372, -0.2121829241514206, 0.27298930287361145, 0.0783088207244873, -0.12300991266965866, 0.07552434504032135, 0.060490190982818604, 0.45059460401535034, -0.19694137573242188, 0.6952246427536011, -0.1496914178133011, 0.18838204443454742, -0.0011686881771311164, 0.3480207324028015, -0.36970239877700806, 0.05856010317802429, 0.26239365339279175, -0.1507830023765564, 0.19906863570213318, -0.132258340716362, 0.03402692452073097, -0.04889814183115959, 0.3877415657043457, 0.2560422420501709, -0.34836113452911377, -0.17921018600463867, 0.19576390087604523, -0.5142298340797424, 0.35331690311431885, -0.19996333122253418, 0.1005278006196022, 0.08040177822113037, 0.1455354541540146, -0.22769220173358917, -0.009682812727987766, -0.17147016525268555, 0.2559449374675751, 0.008132858201861382, 0.3090418875217438, -0.1568305641412735, 0.08803979307413101, -0.43921223282814026, -0.014475192874670029, 0.21304607391357422, -0.38414323329925537, 0.2073269486427307, 0.19992458820343018, -0.02970767393708229, 0.05502742528915405, -0.1730278730392456, -0.02778126299381256, -0.006820867769420147, 0.40174600481987, 0.26525115966796875, 0.07998253405094147, -0.18513281643390656, -0.182678684592247, -0.577165424823761, -0.15515592694282532, -0.11464525759220123, 0.11606191098690033, 0.10479547083377838, 0.22329851984977722, -0.20687174797058105, -0.26768752932548523, -0.4154664874076843, 0.23654507100582123, 0.25994566082954407, -0.13951022922992706, -0.136260986328125, 0.23889678716659546, -0.3561549484729767, 0.3288770914077759, 0.09196081012487411, 0.4796585440635681, -0.024372657760977745, 0.28056344389915466, -0.13492809236049652, -0.4061139225959778, 0.721650242805481, -0.5009365677833557, -0.24772363901138306, -0.32388925552368164, 0.044061124324798584, 0.07158945500850677, -0.45236003398895264, -0.4823105037212372, 0.16658540070056915, 0.14523743093013763, 0.09781376272439957, -0.001137231127358973, -0.1485639214515686, -0.24830259382724762, 0.02759048342704773, -0.09752226620912552, 0.5400007963180542, 0.1959821581840515, -0.15169477462768555, 0.3653634190559387, -0.15052708983421326 ]
https://github.com/huggingface/datasets/issues/2768
`ArrowInvalid: Added column's length must match table's length.` after using `select`
Hi, the `select` method creates an indices mapping and doesn't modify the underlying PyArrow table by default for better performance. To modify the underlying table after the `select` call, call `flatten_indices` on the dataset object as follows: ```python from datasets import load_dataset ds = load_dataset("tweets_hate_speech_detection")['train'].select(range(128)) ds = ds.flatten_indices() ds = ds.add_column('ones', [1]*128) ```
## Describe the bug I would like to add a column to a downsampled dataset. However I get an error message saying the length don't match with the length of the unsampled dataset indicated. I suspect that the dataset size is not updated when calling `select`. ## Steps to reproduce the bug ```python from datasets import load_dataset ds = load_dataset("tweets_hate_speech_detection")['train'].select(range(128)) ds = ds.add_column('ones', [1]*128) ``` ## Expected results I would expect a new column named `ones` filled with `1`. When I check the length of `ds` it says `128`. Interestingly, it works when calling `ds = ds.map(lambda x: x)` before adding the column. ## Actual results Specify the actual results or traceback. ```python --------------------------------------------------------------------------- ArrowInvalid Traceback (most recent call last) /var/folders/l4/2905jygx4tx5jv8_kn03vxsw0000gn/T/ipykernel_6301/868709636.py in <module> 1 from datasets import load_dataset 2 ds = load_dataset("tweets_hate_speech_detection")['train'].select(range(128)) ----> 3 ds = ds.add_column('ones', [0]*128) ~/git/semantic-clustering/env/lib/python3.8/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 183 } 184 # apply actual function --> 185 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 186 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 187 # re-apply format to the output ~/git/semantic-clustering/env/lib/python3.8/site-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 395 # Call actual function 396 --> 397 out = func(self, *args, **kwargs) 398 399 # Update fingerprint of in-place transforms + update in-place history of transforms ~/git/semantic-clustering/env/lib/python3.8/site-packages/datasets/arrow_dataset.py in add_column(self, name, column, new_fingerprint) 2965 column_table = InMemoryTable.from_pydict({name: column}) 2966 # Concatenate tables horizontally -> 2967 table = ConcatenationTable.from_tables([self._data, column_table], axis=1) 2968 # Update features 2969 info = self.info.copy() ~/git/semantic-clustering/env/lib/python3.8/site-packages/datasets/table.py in from_tables(cls, tables, axis) 715 table_blocks = to_blocks(table) 716 blocks = _extend_blocks(blocks, table_blocks, axis=axis) --> 717 return cls.from_blocks(blocks) 718 719 @property ~/git/semantic-clustering/env/lib/python3.8/site-packages/datasets/table.py in from_blocks(cls, blocks) 663 return cls(table, blocks) 664 else: --> 665 table = cls._concat_blocks_horizontally_and_vertically(blocks) 666 return cls(table, blocks) 667 ~/git/semantic-clustering/env/lib/python3.8/site-packages/datasets/table.py in _concat_blocks_horizontally_and_vertically(cls, blocks) 623 if not tables: 624 continue --> 625 pa_table_horizontally_concatenated = cls._concat_blocks(tables, axis=1) 626 pa_tables_to_concat_vertically.append(pa_table_horizontally_concatenated) 627 return cls._concat_blocks(pa_tables_to_concat_vertically, axis=0) ~/git/semantic-clustering/env/lib/python3.8/site-packages/datasets/table.py in _concat_blocks(blocks, axis) 612 else: 613 for name, col in zip(table.column_names, table.columns): --> 614 pa_table = pa_table.append_column(name, col) 615 return pa_table 616 else: ~/git/semantic-clustering/env/lib/python3.8/site-packages/pyarrow/table.pxi in pyarrow.lib.Table.append_column() ~/git/semantic-clustering/env/lib/python3.8/site-packages/pyarrow/table.pxi in pyarrow.lib.Table.add_column() ~/git/semantic-clustering/env/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status() ~/git/semantic-clustering/env/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status() ArrowInvalid: Added column's length must match table's length. Expected length 31962 but got length 128 ``` ## Environment info - `datasets` version: 1.11.0 - Platform: macOS-10.16-x86_64-i386-64bit - Python version: 3.8.5 - PyArrow version: 5.0.0
53
`ArrowInvalid: Added column's length must match table's length.` after using `select` ## Describe the bug I would like to add a column to a downsampled dataset. However I get an error message saying the length don't match with the length of the unsampled dataset indicated. I suspect that the dataset size is not updated when calling `select`. ## Steps to reproduce the bug ```python from datasets import load_dataset ds = load_dataset("tweets_hate_speech_detection")['train'].select(range(128)) ds = ds.add_column('ones', [1]*128) ``` ## Expected results I would expect a new column named `ones` filled with `1`. When I check the length of `ds` it says `128`. Interestingly, it works when calling `ds = ds.map(lambda x: x)` before adding the column. ## Actual results Specify the actual results or traceback. ```python --------------------------------------------------------------------------- ArrowInvalid Traceback (most recent call last) /var/folders/l4/2905jygx4tx5jv8_kn03vxsw0000gn/T/ipykernel_6301/868709636.py in <module> 1 from datasets import load_dataset 2 ds = load_dataset("tweets_hate_speech_detection")['train'].select(range(128)) ----> 3 ds = ds.add_column('ones', [0]*128) ~/git/semantic-clustering/env/lib/python3.8/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 183 } 184 # apply actual function --> 185 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 186 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 187 # re-apply format to the output ~/git/semantic-clustering/env/lib/python3.8/site-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 395 # Call actual function 396 --> 397 out = func(self, *args, **kwargs) 398 399 # Update fingerprint of in-place transforms + update in-place history of transforms ~/git/semantic-clustering/env/lib/python3.8/site-packages/datasets/arrow_dataset.py in add_column(self, name, column, new_fingerprint) 2965 column_table = InMemoryTable.from_pydict({name: column}) 2966 # Concatenate tables horizontally -> 2967 table = ConcatenationTable.from_tables([self._data, column_table], axis=1) 2968 # Update features 2969 info = self.info.copy() ~/git/semantic-clustering/env/lib/python3.8/site-packages/datasets/table.py in from_tables(cls, tables, axis) 715 table_blocks = to_blocks(table) 716 blocks = _extend_blocks(blocks, table_blocks, axis=axis) --> 717 return cls.from_blocks(blocks) 718 719 @property ~/git/semantic-clustering/env/lib/python3.8/site-packages/datasets/table.py in from_blocks(cls, blocks) 663 return cls(table, blocks) 664 else: --> 665 table = cls._concat_blocks_horizontally_and_vertically(blocks) 666 return cls(table, blocks) 667 ~/git/semantic-clustering/env/lib/python3.8/site-packages/datasets/table.py in _concat_blocks_horizontally_and_vertically(cls, blocks) 623 if not tables: 624 continue --> 625 pa_table_horizontally_concatenated = cls._concat_blocks(tables, axis=1) 626 pa_tables_to_concat_vertically.append(pa_table_horizontally_concatenated) 627 return cls._concat_blocks(pa_tables_to_concat_vertically, axis=0) ~/git/semantic-clustering/env/lib/python3.8/site-packages/datasets/table.py in _concat_blocks(blocks, axis) 612 else: 613 for name, col in zip(table.column_names, table.columns): --> 614 pa_table = pa_table.append_column(name, col) 615 return pa_table 616 else: ~/git/semantic-clustering/env/lib/python3.8/site-packages/pyarrow/table.pxi in pyarrow.lib.Table.append_column() ~/git/semantic-clustering/env/lib/python3.8/site-packages/pyarrow/table.pxi in pyarrow.lib.Table.add_column() ~/git/semantic-clustering/env/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status() ~/git/semantic-clustering/env/lib/python3.8/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status() ArrowInvalid: Added column's length must match table's length. Expected length 31962 but got length 128 ``` ## Environment info - `datasets` version: 1.11.0 - Platform: macOS-10.16-x86_64-i386-64bit - Python version: 3.8.5 - PyArrow version: 5.0.0 Hi, the `select` method creates an indices mapping and doesn't modify the underlying PyArrow table by default for better performance. To modify the underlying table after the `select` call, call `flatten_indices` on the dataset object as follows: ```python from datasets import load_dataset ds = load_dataset("tweets_hate_speech_detection")['train'].select(range(128)) ds = ds.flatten_indices() ds = ds.add_column('ones', [1]*128) ```
[ -0.2274187207221985, -0.18983076512813568, -0.008905163034796715, 0.03250928595662117, 0.09828277677297592, 0.04157380759716034, 0.07285049557685852, 0.1837979555130005, 0.060487404465675354, 0.16475354135036469, 0.2048400491476059, 0.6761353611946106, 0.013996896333992481, -0.31388363242149353, 0.06910878419876099, -0.23144711554050446, 0.07802377641201019, 0.12259065359830856, -0.33082902431488037, -0.06523249298334122, -0.3497130274772644, 0.013275375589728355, -0.3354176878929138, -0.3151189684867859, -0.35253065824508667, -0.1137230172753334, -0.1477193832397461, -0.0766473338007927, -0.32534074783325195, -0.32771551609039307, 0.08159295469522476, -0.38400551676750183, 0.055131882429122925, 0.2379107028245926, -0.00012643783702515066, -0.11211264878511429, 0.23498129844665527, -0.1064971461892128, -0.2713167667388916, 0.09049773961305618, -0.1300845891237259, -0.3753255307674408, 0.14736884832382202, -0.15934856235980988, 0.18648597598075867, -0.1655193716287613, -0.623904824256897, -0.31726527214050293, -0.07590975612401962, 0.16528961062431335, 0.16145382821559906, 0.25179436802864075, 0.012038798071444035, -0.28050708770751953, -0.0970272496342659, 0.19605371356010437, -0.26209476590156555, 0.344880610704422, 0.06026887521147728, -0.09416363388299942, 0.38120710849761963, 0.3098257780075073, 0.20302337408065796, -0.01772238314151764, 0.1855841875076294, -0.07064326852560043, -0.09063569456338882, -0.021047482267022133, 0.47857871651649475, -0.0847310870885849, 0.7143199443817139, -0.2248951941728592, -0.24912577867507935, -0.1734178215265274, 0.4096646010875702, -0.3938189744949341, -0.027173060923814774, -0.1862058788537979, 0.2897663116455078, 0.020664067938923836, -0.14053907990455627, 0.08480925858020782, 0.16040898859500885, 0.18992722034454346, -0.006955128163099289, 0.5650566220283508, 0.20246948301792145, 0.37047043442726135, -0.19264067709445953, -0.17043207585811615, 0.008175978437066078, 0.09424296021461487, -0.2345471829175949, 0.36363235116004944, -0.387201726436615, -0.20498144626617432, -0.2336309254169464, -0.21559418737888336, 0.12005002051591873, 0.3310543894767761, -0.13778725266456604, -0.27821114659309387, 0.33233878016471863, -0.20037053525447845, 0.29723405838012695, 0.3154059946537018, 0.044809915125370026, 0.6069283485412598, -0.347319632768631, -0.21179263293743134, 0.3857120871543884, 0.007428680546581745, 0.16380177438259125, -0.22885958850383759, 0.3544318675994873, -0.22070272266864777, 0.10142801702022552, 0.048701610416173935, -0.21820326149463654, 0.21330636739730835, -0.16404767334461212, -0.08078160881996155, -0.16887572407722473, 0.13296978175640106, 0.1167244240641594, 0.09041538834571838, 0.12356981635093689, 0.3109092116355896, -0.1185307577252388, -0.016927728429436684, -0.2082298845052719, -0.0679130107164383, -0.03488238900899887, -0.02942483313381672, -0.06455744802951813, 0.35722798109054565, 0.28365379571914673, -0.07212235778570175, -0.2275484800338745, -0.228639617562294, -0.14714495837688446, -0.05400516837835312, 0.1518874168395996, 0.20090217888355255, -0.24855999648571014, 0.08383835852146149, -0.06924917548894882, -0.3781673014163971, -0.1850915253162384, 0.36475229263305664, -0.228900745511055, -0.2965628504753113, -0.6092180013656616, 0.04430587962269783, 0.029309576377272606, -0.14132240414619446, 0.10891209542751312, 0.2688696086406708, 0.4819934368133545, -0.11844325810670853, 0.423647403717041, -0.3621312975883484, -0.31570103764533997, -0.12693800032138824, 0.1514502763748169, 0.2686060667037964, -0.8413775563240051, -0.0652502253651619, 0.008248062804341316, 0.24858467280864716, 0.1492481827735901, 0.24917829036712646, -0.03179116174578667, -0.11568380147218704, 0.10233214497566223, 0.27500882744789124, 0.44404733180999756, 0.2298649549484253, -0.8025736808776855, -0.1254063844680786, -0.4141770005226135, 0.10224445909261703, -0.11903874576091766, 0.1956772357225418, 0.08397039771080017, 0.20129673182964325, 0.35248231887817383, 0.09563812613487244, -0.08323702216148376, -0.14146964251995087, -0.3857779800891876, -0.10185184329748154, 0.20326311886310577, -0.13365165889263153, 0.04353763535618782, -0.010633381083607674, 0.3127949833869934, -0.0638057142496109, 0.3429015576839447, 0.32777419686317444, 0.20387735962867737, 0.3033573627471924, 0.21940575540065765, -0.03384928032755852, 0.2668211758136749, -0.23827965557575226, -0.27108561992645264, 0.09771928936243057, 0.12231871485710144, -0.15197107195854187, -0.1563117802143097, -0.2403458207845688, -0.7025289535522461, 0.21834588050842285, 0.13641606271266937, 0.0053382753394544125, -0.06923078000545502, -0.059043291956186295, 0.2180902510881424, -0.13419944047927856, -0.03268333896994591, -0.05486449971795082, -0.35583800077438354, 0.14711180329322815, -0.10493364185094833, 0.28961625695228577, 0.05344856157898903, -0.3693043887615204, -0.2833220064640045, 0.1731368750333786, 0.14238248765468597, 0.14397525787353516, -0.33182865381240845, 0.5284385681152344, -0.025057530030608177, -0.1870952993631363, -0.0710228979587555, -0.3655416667461395, 0.18586240708827972, -0.0491628460586071, 0.27880164980888367, -0.07489795982837677, 0.17838381230831146, 0.004564999602735043, 0.01180305052548647, -0.06782738864421844, -0.23799140751361847, 0.2784358859062195, -0.347055047750473, -0.1087515652179718, 0.059035368263721466, 0.13152480125427246, -0.11299195140600204, -0.3320050537586212, -0.28763893246650696, 0.012284808792173862, -0.03642651438713074, -0.01512649841606617, -0.22957774996757507, 0.06011447310447693, 0.21463994681835175, -0.026400573551654816, 0.11148405820131302, 0.1653432995080948, -0.2672158479690552, 0.10053972899913788, 0.3662690818309784, 0.24151615798473358, 0.7434340119361877, 0.19912554323673248, 0.09392454475164413, -0.024331791326403618, -0.12020911276340485, -0.007924451492726803, 0.04659189283847809, -0.04838917776942253, 0.014866860583424568, 0.25917425751686096, 0.23370984196662903, -0.10831421613693237, -0.02537880837917328, 0.3794059157371521, 0.12653012573719025, 0.1463615596294403, -0.30060258507728577, 0.030423227697610855, -0.3964521586894989, 0.10900581628084183, -0.11381833255290985, -0.10688679665327072, -0.047232870012521744, -0.167769655585289, 0.03502373397350311, 0.03380794823169708, -0.2729741334915161, 0.27556735277175903, -0.4887412190437317, 0.12871024012565613, 0.26966869831085205, -0.1172127053141594, 0.13539756834506989, 0.10729308426380157, -0.16013504564762115, -0.025659602135419846, -0.347800612449646, 0.07679884135723114, 0.12654921412467957, 0.3528582453727722, -0.08098006993532181, -0.1846955418586731, -0.6639269590377808, -0.09058859199285507, -0.1658448874950409, 0.13471250236034393, 0.1048661470413208, 0.10177098959684372, -0.17200832068920135, -0.10642994940280914, 0.14429724216461182, 0.29944145679473877, 0.00710221566259861, 0.05529811605811119, 0.05151877924799919, -0.12115005403757095, -0.1023787185549736, -0.4178764522075653, -0.22436150908470154, -0.25377508997917175, 0.25435540080070496, 0.16773493587970734, -0.09822685271501541, -0.1927156299352646, 0.49283653497695923, -0.33015137910842896, 0.015229647047817707, -0.017203694209456444, -0.31844788789749146, 0.3683969974517822, 0.4220625162124634, -0.06958666443824768, -0.1449093520641327, 0.033717069774866104, -0.24322068691253662, -0.023913700133562088, 0.09185127168893814, -0.14720746874809265, 0.09335293620824814, -0.13830755650997162, 0.12083274126052856, -0.03245091065764427, 0.21976836025714874, 0.5915469527244568, -0.07738851755857468, 0.10234800726175308, -0.1245046854019165, -0.401310533285141, 0.2273927479982376, 0.23494477570056915, 0.5312866568565369, -0.13361969590187073, 0.45299485325813293, -0.000041220278944820166, 0.28857460618019104, 0.09171963483095169, -0.21832479536533356, -0.03164341300725937, -0.20980724692344666, 0.17827755212783813, -0.33102917671203613, 0.030183574184775352, -0.22010472416877747, -0.05309823900461197, -0.03775256499648094, -0.031093424186110497, 0.003857767442241311, -0.21965792775154114, 0.2738204598426819, 0.006902395281940699, 0.09543365240097046, 0.13206380605697632, 0.004728775005787611, -0.18695345520973206, -0.01422501914203167, 0.21182963252067566, 0.27937546372413635, -0.2753639221191406, 0.0334080345928669, -0.10570450872182846, -0.24048779904842377, -0.06809107214212418, -0.026326999068260193, -0.43331179022789, -0.045196257531642914, -0.28382253646850586, 0.38992950320243835, 0.1940862536430359, 0.5467466115951538, 0.17540974915027618, -0.5557875037193298, 0.13115859031677246, 0.2818833291530609, 0.24103689193725586, -0.3274643123149872, -0.42511942982673645, 0.04702514410018921, 0.19856029748916626, -0.47206082940101624, -0.11633500456809998, 0.08499301224946976, -0.026556825265288353, 0.053041186183691025, 0.14171414077281952, -0.1842363029718399, 0.3784874975681305, 0.538303792476654, 0.27809804677963257, -0.13544712960720062, -0.17487680912017822, -0.21134217083454132, -0.1154455840587616, 0.038357485085725784, 0.26661667227745056, 0.0506882518529892, 0.11903796344995499, 0.3347778618335724, -0.058850713074207306, -0.21792222559452057, -0.4106577932834625, -0.23200422525405884, 0.10789152979850769, 0.5795092582702637, 0.130952388048172, 0.34341666102409363, -0.17274926602840424, 0.1780848503112793, 0.1462423950433731, 0.6778906583786011, -0.3160172402858734, -0.1287689507007599, 0.1859259158372879, -0.258547306060791, 0.28524112701416016, 0.35646456480026245, 0.10482214391231537, 0.42737534642219543, -0.09761274605989456, 0.16154161095619202, -0.12369640171527863, -0.3316584527492523, 0.34830135107040405, -0.03649143502116203, 0.1592894047498703, -0.14290300011634827, 0.5838422775268555, 0.055739715695381165, -0.06406854838132858, 0.5355710387229919, 0.38552963733673096, -0.04773302376270294, 0.17898719012737274, 0.22905957698822021, 1.0119832754135132, 0.39873313903808594, -0.2096710503101349, 0.14939194917678833, -0.6083499789237976, 0.13851258158683777, 0.17108288407325745, 0.041534725576639175, -0.19490298628807068, -0.2967475950717926, 0.1062929704785347, -0.03846621513366699, 0.0778827890753746, -0.038350194692611694, -0.07418899983167648, -0.022515086457133293, -0.41111063957214355, -0.06086385250091553, -0.09941353648900986, 0.03563714399933815, -0.20629939436912537, -0.10184256732463837, 0.07683068513870239, 0.014451988972723484, 0.1541113555431366, 0.10619916766881943, -0.025900062173604965, 0.2839575409889221, -0.3806120753288269, -0.5120565295219421, -0.09943914413452148, 0.015670673921704292, 0.10890264064073563, 0.05757267028093338, 0.010258742608129978, -0.4089049994945526, 0.14617614448070526, -0.15496565401554108, -0.08747566491365433, 0.13368575274944305, 0.14386624097824097, 0.3423865735530853, 0.27247685194015503, 0.22392289340496063, 0.1456790566444397, 0.11362435668706894, 0.09489954262971878, 0.21529197692871094, -0.23690848052501678, 0.09165561944246292, -0.08565299957990646, -0.16439712047576904, -0.28900107741355896, 0.1409192979335785, -0.03279818594455719, -0.5026829838752747, -0.3177190124988556, 0.10729915648698807, 0.18245159089565277, -0.17356829345226288, 0.03700343146920204, -0.25705304741859436, 0.012125106528401375, 0.2574304938316345, 0.1259058713912964, -0.32054606080055237, -0.12505082786083221, 0.7137429714202881, 0.24309612810611725, 0.0370570570230484, 0.5456560850143433, -0.06203705817461014, -0.20057404041290283, 0.05785471200942993, -0.2416698932647705, 0.19416803121566772, -0.4723767042160034, 0.03876597061753273, -0.31998753547668457, 0.10191361606121063, 0.0100216343998909, 0.07819541543722153, 0.26858317852020264, 0.23270109295845032, -0.36258748173713684, 0.1678192913532257, -0.3429451584815979, 0.363906592130661, 0.14606137573719025, 0.31420278549194336, -0.16752630472183228, -0.20098915696144104, -0.060171522200107574, 0.37766456604003906, -0.16904740035533905, -0.28575193881988525, 0.07476191222667694, 0.22110608220100403, 0.12004745751619339, 0.261272132396698, -0.2349202036857605, -0.16873641312122345, 0.07425696402788162, 0.41326650977134705, 0.18928690254688263, -0.0425817109644413, -0.01773815229535103, 0.1136993020772934, 0.13037854433059692, 0.11595989763736725, -0.19416877627372742, -0.3900860846042633, -0.02200278453528881, -0.07339543104171753, -0.013169929385185242, 0.04381910338997841, -0.18926063179969788, -0.1686124950647354, 0.1748151034116745, -0.2541183531284332, 0.046072784811258316, 0.34475836157798767, -0.10995269566774368, 0.16765081882476807, -0.06502261757850647, 0.18593478202819824, 0.265505850315094, 0.16382433474063873, -0.35480356216430664, 0.010115571320056915, -0.22490909695625305, -0.02529696561396122, 0.23449404537677765, -0.2191298007965088, 0.10441596060991287, -0.09087546914815903, 0.25511226058006287, 0.25296884775161743, -0.0010136906057596207, -0.33002999424934387, 0.006133839953690767, 0.09208239614963531, -0.3814069628715515, -0.0281082633882761, -0.30358168482780457, 0.24321186542510986, 0.09741998463869095, 0.3086267113685608, 0.09312719106674194, 0.19000938534736633, -0.32612547278404236, 0.18380264937877655, 0.27008599042892456, -0.1610836386680603, -0.049795132130384445, 0.8157379031181335, 0.02743014320731163, -0.06185189634561539, 0.3706049919128418, 0.2224714607000351, 0.2035602629184723, 0.060965441167354584, 0.003350052982568741, 0.47961992025375366, 0.29297059774398804, 0.08171743154525757, -0.12374971061944962, 0.05996118485927582, 0.19831521809101105, 0.08280808478593826, 0.036537736654281616, -0.09298287332057953, 0.41183677315711975, -0.023714765906333923, 0.07256802916526794, -0.35030943155288696, -0.08448978513479233, 0.07565601170063019, -0.18598055839538574, 0.000715886999387294, -0.6281939148902893, -0.1837960183620453, -0.3110828995704651, -0.35947185754776, -0.10477592051029205, -0.05674766004085541, 0.7304556369781494, -0.2808417081832886, 0.04078999534249306, -0.25830817222595215, -0.20989806950092316, 0.003149244701489806, 0.07612106204032898, -0.31283578276634216, 0.2475764900445938, 0.22724175453186035, -0.059145670384168625, 0.3323109447956085, 0.04565183445811272, 0.32543566823005676, 0.132834792137146, 0.2016153484582901, -0.09294143319129944, 0.23717403411865234, -0.23488953709602356, 0.2276575118303299, 0.3966605067253113, 0.12930110096931458, -0.1632922738790512, 0.17528758943080902, 0.053434617817401886, -0.09524531662464142, 0.20360390841960907, 0.1524476855993271, 0.42002779245376587, -0.3563273847103119, 0.1430586725473404, -0.13084320724010468, -0.3367045223712921, -0.07973946630954742, -0.047032855451107025, -0.037160713225603104, 0.08621840924024582, 0.0980571061372757, -0.09104008227586746, 0.02921779826283455, -0.16156378388404846, 0.003369502956047654, -0.12877032160758972, 0.19487731158733368, 0.21440738439559937, -0.29219791293144226, 0.055078938603401184, -0.18446865677833557, -0.26140183210372925, -0.06716891378164291, -0.5196351408958435, -0.5024824142456055, 0.03916875645518303, 0.24467365443706512, 0.20134112238883972, -0.09250380098819733, 0.4790180027484894, 0.23017124831676483, 0.013290615752339363, 0.46271219849586487, -0.018811259418725967, -0.29725581407546997, -0.14635984599590302, 0.045929718762636185, 0.04314830154180527, -0.18462559580802917, 0.04131421074271202, 0.22306153178215027, -0.12429540604352951, -0.08509460836648941, -0.11415131390094757, 0.18727359175682068, 0.2204163372516632, 0.4074784219264984, 0.022122221067547798, 0.548941969871521, 0.11264047771692276, 0.224677175283432, -0.26294174790382385, -0.3424994945526123, -0.24194028973579407, 0.2906064987182617, 0.09790242463350296, 0.38729164004325867, 0.05800603702664375, 0.01271777879446745, 0.12507708370685577, 0.199515700340271, -0.3370288014411926, 0.13434550166130066, -0.23466981947422028, -0.047232113778591156, -0.19393236935138702, 0.07654190808534622, 0.12497559189796448, 0.05014246329665184, 0.2796937823295593, 0.3591468632221222, 0.16477642953395844, -0.44755715131759644, 0.41960832476615906, 0.027705568820238113, -0.24971289932727814, -0.0874989703297615, 0.02196529135107994, 0.3229508697986603, -0.1594499945640564, -0.21853044629096985, -0.16098640859127045, 0.30491015315055847, -0.10446535050868988, 0.3495867848396301, 0.1398436427116394, -0.08411869406700134, 0.1383664906024933, -0.22828473150730133, 0.5186857581138611, -0.2141585350036621, 0.10191761702299118, -0.20326270163059235, -0.3424545228481293 ]
https://github.com/huggingface/datasets/issues/2767
equal operation to perform unbatch for huggingface datasets
Hi @lhoestq Maybe this is clearer to explain like this, currently map function, map one example to "one" modified one, lets assume we want to map one example to "multiple" examples, in which we do not know in advance how many examples they would be per each entry. I greatly appreciate telling me how I can handle this operation, thanks a lot
Hi I need to use "unbatch" operation in tensorflow on a huggingface dataset, I could not find this operation, could you kindly direct me how I can do it, here is the problem I am trying to solve: I am considering "record" dataset in SuperGlue and I need to replicate each entery of the dataset for each answer, to make it similar to what T5 originally did: https://github.com/google-research/text-to-text-transfer-transformer/blob/3c58859b8fe72c2dbca6a43bc775aa510ba7e706/t5/data/preprocessors.py#L925 Here please find an example: For example, a typical example from ReCoRD might look like { 'passsage': 'This is the passage.', 'query': 'A @placeholder is a bird.', 'entities': ['penguin', 'potato', 'pigeon'], 'answers': ['penguin', 'pigeon'], } and I need a prosessor which would turn this example into the following two examples: { 'inputs': 'record query: A @placeholder is a bird. entities: penguin, ' 'potato, pigeon passage: This is the passage.', 'targets': 'penguin', } and { 'inputs': 'record query: A @placeholder is a bird. entities: penguin, ' 'potato, pigeon passage: This is the passage.', 'targets': 'pigeon', } For doing this, one need unbatch, as each entry can map to multiple samples depending on the number of answers, I am not sure how to perform this operation with huggingface datasets library and greatly appreciate your help @lhoestq Thank you very much.
62
equal operation to perform unbatch for huggingface datasets Hi I need to use "unbatch" operation in tensorflow on a huggingface dataset, I could not find this operation, could you kindly direct me how I can do it, here is the problem I am trying to solve: I am considering "record" dataset in SuperGlue and I need to replicate each entery of the dataset for each answer, to make it similar to what T5 originally did: https://github.com/google-research/text-to-text-transfer-transformer/blob/3c58859b8fe72c2dbca6a43bc775aa510ba7e706/t5/data/preprocessors.py#L925 Here please find an example: For example, a typical example from ReCoRD might look like { 'passsage': 'This is the passage.', 'query': 'A @placeholder is a bird.', 'entities': ['penguin', 'potato', 'pigeon'], 'answers': ['penguin', 'pigeon'], } and I need a prosessor which would turn this example into the following two examples: { 'inputs': 'record query: A @placeholder is a bird. entities: penguin, ' 'potato, pigeon passage: This is the passage.', 'targets': 'penguin', } and { 'inputs': 'record query: A @placeholder is a bird. entities: penguin, ' 'potato, pigeon passage: This is the passage.', 'targets': 'pigeon', } For doing this, one need unbatch, as each entry can map to multiple samples depending on the number of answers, I am not sure how to perform this operation with huggingface datasets library and greatly appreciate your help @lhoestq Thank you very much. Hi @lhoestq Maybe this is clearer to explain like this, currently map function, map one example to "one" modified one, lets assume we want to map one example to "multiple" examples, in which we do not know in advance how many examples they would be per each entry. I greatly appreciate telling me how I can handle this operation, thanks a lot
[ -0.028676999732851982, -0.7930667996406555, 0.03352866694331169, -0.08185024559497833, -0.004916331730782986, -0.10334877669811249, 0.23047807812690735, -0.0015911773080006242, 0.42847275733947754, 0.2395399808883667, -0.32405680418014526, -0.045957617461681366, 0.0236225426197052, 0.4699031710624695, 0.17681564390659332, -0.2348048835992813, 0.07965219765901566, 0.11208676546812057, -0.25764530897140503, -0.07382773607969284, -0.16417783498764038, -0.021459318697452545, -0.5562421679496765, -0.18724887073040009, 0.35300710797309875, -0.3256388306617737, -0.13141345977783203, -0.23179680109024048, -0.1461292803287506, 0.315525084733963, 0.3914794623851776, 0.3159993290901184, 0.14500194787979126, 0.43599456548690796, -0.00012499607692006975, 0.26830124855041504, -0.2683858275413513, -0.16011974215507507, 0.12413547188043594, -0.145785391330719, -0.131862610578537, -0.03086177445948124, -0.08612998574972153, -0.29094719886779785, -0.15537670254707336, 0.024716561660170555, 0.083805151283741, -0.3370777666568756, 0.6689300537109375, 0.11635398119688034, 0.003391098231077194, 0.20230232179164886, -0.08281613141298294, 0.06870123744010925, -0.09687741100788116, 0.06435105204582214, 0.003319875104352832, 0.09441749006509781, 0.08198342472314835, -0.019664252176880836, 0.0691596120595932, 0.30623629689216614, -0.020752297714352608, -0.04878951609134674, 0.05082147195935249, 0.07096727937459946, 0.029462456703186035, -0.42448288202285767, 0.09951762109994888, 0.36011284589767456, 0.19118165969848633, -0.33352041244506836, -0.5461019277572632, -0.042486391961574554, 0.05931871756911278, -0.029331155121326447, -0.23616518080234528, 0.15739747881889343, -0.10509967058897018, 0.20684102177619934, -0.4860779941082001, -0.11990704387426376, -0.040141165256500244, 0.0794258564710617, 0.10404027998447418, -0.08836548030376434, -0.3136320412158966, 0.3048332631587982, 0.08571064472198486, 0.06866426765918732, -0.15801949799060822, -0.10467052459716797, 0.15476030111312866, 0.2256593108177185, -0.6143535375595093, -0.21986174583435059, -0.25620388984680176, -0.018030574545264244, 0.3166290521621704, 0.3536278009414673, 0.5462896823883057, -0.054885756224393845, -0.0812084749341011, 0.12956228852272034, 0.08675813674926758, 0.5366973876953125, -0.0814005583524704, -0.24189844727516174, -0.012094149366021156, 0.13488700985908508, 0.032275620847940445, -0.019191259518265724, 0.3165334165096283, -0.07558628916740417, -0.3641902506351471, 0.1535307914018631, 0.3737839162349701, -0.07682166993618011, -0.3276384770870209, -0.20549239218235016, -0.3553684949874878, -0.11002984642982483, 0.013368443585932255, 0.14977779984474182, -0.1751030683517456, 0.03242450952529907, 0.182923823595047, 0.058238521218299866, -0.26706647872924805, -0.0648583173751831, -0.156545951962471, 0.23465093970298767, -0.16233481466770172, 0.030316878110170364, -0.08354999125003815, -0.14398778975009918, 0.014388308860361576, 0.4878040850162506, -0.013279740698635578, -0.04945939779281616, 0.22683283686637878, -0.11751751601696014, 0.3311554193496704, -0.012913941405713558, 0.17024347186088562, -0.10793235152959824, 0.13207903504371643, 0.048105791211128235, -0.04732341691851616, -0.0201097521930933, -0.11246046423912048, -0.25196877121925354, 0.07918088138103485, -0.034201327711343765, -0.2808186113834381, 0.041597895324230194, -0.2271559089422226, 0.34255754947662354, -0.3150838017463684, 0.3320273756980896, 0.44805851578712463, 0.3958912491798401, -0.09266052395105362, -0.08121687918901443, 0.3662142753601074, 0.01352294534444809, -0.02993096597492695, -0.29754436016082764, 0.3306923508644104, -0.02061900682747364, 0.2846173048019409, 0.26933571696281433, -0.07723215222358704, 0.25605684518814087, -0.24794340133666992, -0.1416991651058197, 0.21708932518959045, -0.1550874412059784, -0.4226655662059784, 0.2669498026371002, -0.11168218404054642, 0.30419111251831055, -0.02934401109814644, 0.04536868631839752, -0.06065123900771141, 0.16916659474372864, -0.021124722436070442, 0.23455394804477692, -0.0976085439324379, -0.09169213473796844, -0.007735439110547304, -0.15542136132717133, 0.3678479790687561, -0.12374946475028992, -0.11239378899335861, 0.33737286925315857, 0.11415494233369827, -0.03116852417588234, 0.24006043374538422, -0.46579205989837646, 0.2133105844259262, 0.25599420070648193, 0.23005101084709167, 0.1441584676504135, 0.24750730395317078, -0.16223075985908508, -0.3966982960700989, 0.11275863647460938, -0.38743725419044495, 0.10978591442108154, 0.13575191795825958, -0.31871891021728516, -0.11473771184682846, -0.2083287537097931, -0.11587505042552948, -0.02755010686814785, -0.09130670130252838, -0.07691598683595657, 0.42524874210357666, 0.01415521651506424, -0.40405818819999695, 0.28840816020965576, -0.12111897021532059, 0.11166780441999435, -0.44173678755760193, 0.0506429448723793, 0.2840942442417145, 0.0014731261180713773, -0.03124306909739971, 0.16961559653282166, -0.014317058026790619, -0.385128915309906, 0.09390001744031906, 0.3167593777179718, -0.2716917097568512, -0.005070825573056936, -0.07308906316757202, 0.07145977020263672, 0.06497383862733841, -0.10723038762807846, -0.14675948023796082, 0.11615192145109177, 0.0738631933927536, -0.06350848078727722, -0.11466160416603088, 0.7550534009933472, -0.06315010786056519, 0.15738795697689056, 0.10187018662691116, -0.042271893471479416, -0.15536420047283173, -0.25586435198783875, -0.13658200204372406, 0.25263017416000366, 0.1801747977733612, -0.2043045312166214, 0.2563442587852478, -0.1358105093240738, -0.22757133841514587, -0.2907537519931793, 0.27382421493530273, 0.0077713788487017155, 0.3027173578739166, 0.1412796676158905, 0.06360701471567154, 0.16199663281440735, 0.016805052757263184, -0.16538533568382263, 0.35423603653907776, -0.030022190883755684, 0.2275405079126358, 0.3308393955230713, 0.2882862389087677, 0.14961500465869904, 0.031107032671570778, -0.27904975414276123, -0.04087955504655838, -0.028925932943820953, 0.01718870736658573, 0.08656622469425201, -0.33600813150405884, -0.011224478483200073, 0.08991603553295135, 0.1401437520980835, -0.023819269612431526, -0.07931598275899887, -0.12067990005016327, -0.15897546708583832, -0.1988612413406372, 0.030830612406134605, -0.22427061200141907, -0.028089947998523712, -0.06754397600889206, 0.0957191213965416, 0.0862424373626709, 0.4852786958217621, 0.30772411823272705, 0.4453642666339874, -0.04950428754091263, 0.3921656012535095, -0.08353087306022644, 0.040827471762895584, 0.09934044629335403, -0.04597831517457962, -0.12552401423454285, -0.21143290400505066, 0.20400865375995636, -0.006647543981671333, -0.0031045246869325638, -0.5141175389289856, -0.22448773682117462, 0.2302788645029068, 0.04125789552927017, -0.24992933869361877, 0.37665843963623047, 0.023863762617111206, -0.5575555562973022, -0.10512804985046387, -0.029765445739030838, -0.09150536358356476, -0.5620682239532471, 0.21150247752666473, -0.1757509410381317, 0.14433497190475464, -0.2802773714065552, -0.33912572264671326, -0.07254607230424881, -0.2252957969903946, 0.9792706966400146, -0.36120083928108215, 0.04112062230706215, 0.1631680279970169, -0.22864305973052979, 0.06319079548120499, -0.020939506590366364, 0.1144876703619957, -0.09629525989294052, -0.5435055494308472, -0.1717206835746765, 0.0018515738192945719, -0.11627253890037537, -0.13598719239234924, -0.055607862770557404, 0.07786162197589874, 0.5772362947463989, 0.005335254594683647, -0.19057096540927887, -0.39504319429397583, -0.2697647213935852, -0.08623567223548889, 0.4126005172729492, 0.2028820514678955, -0.32945117354393005, 0.1059354618191719, -0.0606168657541275, -0.04983602464199066, 0.23336195945739746, 0.01494592521339655, -0.09655337035655975, 0.21602527797222137, -0.028182443231344223, 0.3622387647628784, 0.33417609333992004, 0.36769527196884155, -0.10231737047433853, 0.033214371651411057, -0.27088791131973267, -0.09478066116571426, 0.10315144807100296, -0.3197566866874695, 0.09537936002016068, 0.12446831166744232, 0.25720033049583435, 0.08730582147836685, -0.20405052602291107, 0.28341713547706604, -0.10262356698513031, -0.08830064535140991, -0.3075084090232849, -0.336574524641037, 0.05346829816699028, -0.21007946133613586, 0.23209185898303986, -0.14465685188770294, -0.24375590682029724, -0.036359116435050964, -0.10276897996664047, 0.2560221254825592, 0.22576920688152313, 0.14452049136161804, 0.10723628103733063, -0.43001240491867065, -0.25471317768096924, -0.4477875232696533, 0.6707227230072021, -0.08589129149913788, 0.2343776673078537, 0.06058797240257263, -0.10173040628433228, 0.1097610741853714, 0.06081840768456459, 1.0629652738571167, -0.12690980732440948, -0.11507976800203323, -0.45814669132232666, -0.5178866386413574, -0.3554794490337372, 0.22336603701114655, -0.2517985999584198, 0.5846659541130066, -0.22076575458049774, 0.49855929613113403, -0.326009601354599, -0.2020830512046814, 0.35661742091178894, -0.02168758027255535, -0.11135202646255493, -0.11268826574087143, -0.051789768040180206, -0.5832821130752563, -0.16696283221244812, -0.00963450688868761, 0.13984830677509308, 0.1057278960943222, 0.07367540150880814, 0.08253158628940582, -0.34501540660858154, 0.22818981111049652, 0.32954102754592896, -0.12239497154951096, -0.05310492962598801, 0.23267202079296112, -0.11023411899805069, 0.14793825149536133, 0.3024219870567322, -0.15868805348873138, 0.132197305560112, -0.0909598097205162, -0.48778995871543884, -0.20947057008743286, 0.1972484290599823, 0.4393363296985626, -0.006739350501447916, 0.15472683310508728, 0.5029056072235107, 0.3022943139076233, 0.2137039750814438, -0.18648618459701538, 0.07949181646108627, 0.06670311093330383, 0.41777747869491577, -0.2173389494419098, -0.3686799705028534, 0.26209428906440735, 0.2697609066963196, -0.18369083106517792, 0.3210781514644623, 0.35973110795021057, -0.17645077407360077, 0.062317147850990295, -0.03368739038705826, 0.9954259991645813, -0.2392774075269699, 0.03274209052324295, 0.09335505962371826, 0.09930207580327988, 0.5693767666816711, -0.3401607871055603, 0.18464937806129456, -0.1260443925857544, -0.48997554183006287, -0.13571608066558838, -0.07991885393857956, 0.0968291312456131, 0.19369952380657196, -0.348897248506546, 0.3828972578048706, 0.28538596630096436, -0.082576222717762, -0.06413716077804565, -0.02802513912320137, -0.16562771797180176, -0.10713384300470352, -0.1467166393995285, -0.10796799510717392, 0.02205686829984188, 0.5606477856636047, 0.005652673076838255, -0.01858377456665039, 0.23288461565971375, -0.015953199937939644, -0.022552980110049248, -0.1988404244184494, -0.5518345832824707, 0.2577759623527527, 0.24687111377716064, -0.09291645139455795, -0.05919812247157097, 0.6065933108329773, 0.5822292566299438, -0.14187556505203247, 0.041940174996852875, -0.1534198522567749, 0.06948872655630112, 0.0006186202517710626, -0.2725731432437897, -0.06096583604812622, 0.16314826905727386, 0.04065325856208801, -0.2638305127620697, 0.002318780403584242, 0.096116803586483, 0.12852336466312408, -0.06290064752101898, 0.06544793397188187, -0.029810799285769463, -0.3008280098438263, -0.021839985623955727, 0.11219871789216995, -0.13069690763950348, 0.10831821709871292, -0.08720333129167557, -0.07226092368364334, -0.525249719619751, 0.19371339678764343, -0.16985554993152618, -0.46613121032714844, 0.009429516270756721, 0.394913911819458, 0.2523921728134155, -0.10133937746286392, 0.3541485369205475, 0.010543271899223328, 0.12933999300003052, -0.07488331198692322, -0.26238423585891724, 0.337966650724411, -0.4243888854980469, 0.4755462110042572, -0.31028130650520325, 0.29229533672332764, 0.07429610192775726, 0.1960965096950531, 0.10801161080598831, 0.20438553392887115, -0.25148245692253113, -0.2861176133155823, -0.15187028050422668, 0.09578587114810944, 0.21978811919689178, 0.19171567261219025, 0.07586680352687836, 0.2850635349750519, 0.10132241994142532, -0.14316965639591217, -0.16647516191005707, 0.2582516372203827, -0.29096749424934387, 0.251113623380661, 0.16904716193675995, -0.026635421440005302, 0.19018788635730743, 0.23326584696769714, -0.05089208483695984, 0.21258611977100372, -0.12344838678836823, -0.08586472272872925, -0.03352408856153488, 0.16546328365802765, -0.07317547500133514, 0.012054205872118473, 0.22067558765411377, 0.27746856212615967, 0.001631869818083942, -0.1156458631157875, 0.6620076298713684, 0.3135240375995636, 0.12423095852136612, 0.4530085027217865, -0.039236344397068024, -0.030065275728702545, -0.43027594685554504, -0.2596960663795471, 0.20562264323234558, 0.012928626500070095, -0.04194817692041397, 0.07905910164117813, -0.058080777525901794, -0.048475928604602814, -0.096889428794384, -0.031572941690683365, 0.5867379307746887, -0.24566715955734253, -0.027761127799749374, 0.10221537202596664, -0.00989814568310976, -0.36023327708244324, 0.38589826226234436, -0.17299918830394745, -0.2082861363887787, 0.06136402115225792, -0.04699398949742317, 0.014611652120947838, -0.09978267550468445, 0.22819170355796814, 0.30336272716522217, -0.2837217450141907, 0.024739619344472885, 0.3674831688404083, -0.11263467371463776, 0.2506140172481537, -0.15458613634109497, -0.23122766613960266, -0.014427478425204754, -0.1954030841588974, 0.10381392389535904, 0.45073169469833374, -0.04862266033887863, 0.07287812232971191, -0.07900083065032959, 0.11524592339992523, 0.3343012034893036, -0.0837700366973877, -0.18270207941532135, 0.47006756067276, -0.2861008942127228, 0.23735322058200836, 0.35966500639915466, -0.44379836320877075, 0.13416379690170288, 0.49128371477127075, 0.010559659451246262, 0.42070022225379944, -0.07134643942117691, 0.5603378415107727, -0.014985949732363224, -0.28979921340942383, 0.16620081663131714, 0.4697266221046448, -0.18046030402183533, -0.18055082857608795, -0.1419830322265625, -0.14821785688400269, -0.14955668151378632, 0.09112104773521423, -0.06438250094652176, -0.014467663131654263, 0.3167577385902405, 0.04424053803086281, 0.11895518749952316, 0.037594281136989594, -0.1458502858877182, 0.32635438442230225, 0.30607205629348755, -0.02808692865073681, -0.19089597463607788, 0.3235076367855072, -0.22398479282855988, 0.06672268360853195, 0.6331108808517456, -0.045776549726724625, -0.015190926380455494, -0.33154231309890747, 0.6930214166641235, 0.2356727123260498, -0.12774962186813354, 0.04815172031521797, -0.02933644875884056, 0.037245724350214005, 0.015402012504637241, -0.031846944242715836, -0.0016325233737006783, -0.02841050922870636, 0.19668810069561005, -0.11643023043870926, 0.14570511877536774, -0.4811047911643982, 0.07325265556573868, -0.05000344663858414, -0.07420974969863892, -0.21541112661361694, 0.22005361318588257, -0.22817350924015045, -0.3667745292186737, 0.11724241077899933, -0.16666021943092346, 0.07502255588769913, 0.11930637061595917, -0.027011817321181297, -0.18345488607883453, 0.2962087392807007, 0.33217647671699524, 0.4024868607521057, -0.1092904806137085, -0.18975521624088287, -0.07695777714252472, 0.03806184604763985, 0.2055293470621109, -0.2358454316854477, 0.32912591099739075, 0.06149289011955261, -0.02846596948802471, 0.022851992398500443, -0.043723125010728836, -0.17729400098323822, -0.2516961693763733, 0.11588986217975616, -0.3434188663959503, -0.20813092589378357, -0.08879078179597855, 0.2309342324733734, 0.2883776128292084, -0.3365616798400879, 0.0835813656449318, 0.3303908407688141, -0.21508508920669556, -0.06392687559127808, 0.44000008702278137, -0.006996806710958481, 0.02287879027426243, 0.021018706262111664, 0.19094215333461761, -0.1019744873046875, -0.11593718081712723, -0.073542021214962, 0.47315141558647156, 0.12084589898586273, -0.3382178843021393, 0.34094372391700745, -0.08893892914056778, 0.10219741612672806, -0.2532985210418701, -0.3499636948108673, -0.04326486960053444, 0.19768957793712616, 0.5831401348114014, -0.43779003620147705, -0.24458833038806915, 0.13924738764762878, 0.034170594066381454, -0.04715843126177788, 0.3726728558540344, 0.847861647605896, -0.11414334923028946, -0.09203805029392242, -0.17281648516654968, -0.06305821239948273, 0.5526188015937805, -0.2391413450241089, -0.19330938160419464, 0.07688336819410324, 0.2288537621498108, -0.1346840262413025, -0.42522746324539185, -0.6996856331825256, 0.13810937106609344, 0.2961443066596985, -0.08485633879899979, -0.1005776897072792, 0.38153326511383057, -0.053822197020053864, -0.16551518440246582, 0.0913752019405365, 0.0765393078327179, 0.35956481099128723, -0.3701280951499939, 0.2556762099266052, -0.3200048506259918 ]
https://github.com/huggingface/datasets/issues/2767
equal operation to perform unbatch for huggingface datasets
Hi, this is also my question on how to perform similar operation as "unbatch" in tensorflow in great huggingface dataset library. thanks.
Hi I need to use "unbatch" operation in tensorflow on a huggingface dataset, I could not find this operation, could you kindly direct me how I can do it, here is the problem I am trying to solve: I am considering "record" dataset in SuperGlue and I need to replicate each entery of the dataset for each answer, to make it similar to what T5 originally did: https://github.com/google-research/text-to-text-transfer-transformer/blob/3c58859b8fe72c2dbca6a43bc775aa510ba7e706/t5/data/preprocessors.py#L925 Here please find an example: For example, a typical example from ReCoRD might look like { 'passsage': 'This is the passage.', 'query': 'A @placeholder is a bird.', 'entities': ['penguin', 'potato', 'pigeon'], 'answers': ['penguin', 'pigeon'], } and I need a prosessor which would turn this example into the following two examples: { 'inputs': 'record query: A @placeholder is a bird. entities: penguin, ' 'potato, pigeon passage: This is the passage.', 'targets': 'penguin', } and { 'inputs': 'record query: A @placeholder is a bird. entities: penguin, ' 'potato, pigeon passage: This is the passage.', 'targets': 'pigeon', } For doing this, one need unbatch, as each entry can map to multiple samples depending on the number of answers, I am not sure how to perform this operation with huggingface datasets library and greatly appreciate your help @lhoestq Thank you very much.
22
equal operation to perform unbatch for huggingface datasets Hi I need to use "unbatch" operation in tensorflow on a huggingface dataset, I could not find this operation, could you kindly direct me how I can do it, here is the problem I am trying to solve: I am considering "record" dataset in SuperGlue and I need to replicate each entery of the dataset for each answer, to make it similar to what T5 originally did: https://github.com/google-research/text-to-text-transfer-transformer/blob/3c58859b8fe72c2dbca6a43bc775aa510ba7e706/t5/data/preprocessors.py#L925 Here please find an example: For example, a typical example from ReCoRD might look like { 'passsage': 'This is the passage.', 'query': 'A @placeholder is a bird.', 'entities': ['penguin', 'potato', 'pigeon'], 'answers': ['penguin', 'pigeon'], } and I need a prosessor which would turn this example into the following two examples: { 'inputs': 'record query: A @placeholder is a bird. entities: penguin, ' 'potato, pigeon passage: This is the passage.', 'targets': 'penguin', } and { 'inputs': 'record query: A @placeholder is a bird. entities: penguin, ' 'potato, pigeon passage: This is the passage.', 'targets': 'pigeon', } For doing this, one need unbatch, as each entry can map to multiple samples depending on the number of answers, I am not sure how to perform this operation with huggingface datasets library and greatly appreciate your help @lhoestq Thank you very much. Hi, this is also my question on how to perform similar operation as "unbatch" in tensorflow in great huggingface dataset library. thanks.
[ -0.0424979142844677, -0.7478793263435364, 0.04419731721282005, -0.06380221992731094, 0.060215290635824203, -0.07411933690309525, 0.2164924293756485, 0.023403478786349297, 0.40412744879722595, 0.2328331023454666, -0.37579089403152466, -0.0309476125985384, 0.008743955753743649, 0.46033433079719543, 0.2217882126569748, -0.23810043931007385, 0.04931226745247841, 0.0999174639582634, -0.21668869256973267, -0.0692887082695961, -0.07732358574867249, -0.011772767640650272, -0.5677041411399841, -0.16497310996055603, 0.3511198163032532, -0.2511514723300934, -0.1151803582906723, -0.23093122243881226, -0.1251271367073059, 0.2847946286201477, 0.4793151617050171, 0.24269798398017883, 0.16693854331970215, 0.44915395975112915, -0.00012562921619974077, 0.2773347496986389, -0.22053547203540802, -0.15159806609153748, 0.15758965909481049, -0.15104825794696808, -0.18505020439624786, -0.03841801732778549, -0.05398302152752876, -0.306835412979126, -0.1764235645532608, -0.01845814660191536, 0.06310634315013885, -0.33451002836227417, 0.6362300515174866, 0.17196378111839294, 0.0013317771954461932, 0.2099071741104126, -0.07986494153738022, 0.082084521651268, -0.1022050753235817, 0.036743197590112686, -0.02563539519906044, 0.11460408568382263, 0.08465265482664108, 0.045523833483457565, 0.0681283175945282, 0.23449569940567017, -0.05646273493766785, -0.029929349198937416, 0.03532359376549721, 0.10956874489784241, -0.0328950509428978, -0.3611130118370056, 0.13644012808799744, 0.39373624324798584, 0.21836040914058685, -0.3737196624279022, -0.533320426940918, -0.02681199088692665, 0.07566291093826294, -0.06859205663204193, -0.20590980350971222, 0.24829833209514618, -0.09614221751689911, 0.2391858994960785, -0.4491078555583954, -0.1502820998430252, -0.08606868982315063, 0.01371291559189558, 0.057408180087804794, -0.10048579424619675, -0.3021978735923767, 0.2693091034889221, 0.057684291154146194, 0.08200661838054657, -0.09206881374120712, -0.07700943201780319, 0.10636553168296814, 0.15840749442577362, -0.6728427410125732, -0.24407663941383362, -0.24140885472297668, 0.023915370926260948, 0.26838406920433044, 0.3667657673358917, 0.5453343987464905, -0.052472032606601715, -0.026259388774633408, 0.07172396779060364, 0.05092379450798035, 0.5504605174064636, -0.09274926036596298, -0.2812032103538513, 0.037321753799915314, 0.11108513921499252, -0.013881954364478588, -0.05106668546795845, 0.322121798992157, -0.05302435904741287, -0.34406599402427673, 0.14720535278320312, 0.3968830704689026, -0.10287050902843475, -0.3556046485900879, -0.1796557605266571, -0.3000113070011139, -0.12987615168094635, 0.06736194342374802, 0.12277083098888397, -0.18775850534439087, 0.016536027193069458, 0.11429176479578018, 0.041676703840494156, -0.2851555347442627, -0.07815264910459518, -0.16235564649105072, 0.29753321409225464, -0.1561620980501175, 0.02505018562078476, -0.028483368456363678, -0.24228394031524658, 0.010654497891664505, 0.4878167510032654, -0.02493547648191452, -0.0006226064288057387, 0.22138525545597076, -0.19168254733085632, 0.2998885214328766, -0.02212199568748474, 0.12743352353572845, -0.16723798215389252, 0.11758840829133987, 0.05633455142378807, -0.03607337921857834, 0.01100572757422924, -0.07500436902046204, -0.26576465368270874, 0.038135990500450134, -0.041654836386442184, -0.32461243867874146, 0.0032486815471202135, -0.17932194471359253, 0.26971983909606934, -0.38060030341148376, 0.4313862919807434, 0.4621521532535553, 0.36154353618621826, -0.04201814532279968, -0.06874703615903854, 0.41440290212631226, -0.07492353767156601, -0.06794716417789459, -0.3054029643535614, 0.3379548192024231, -0.04218950867652893, 0.32595375180244446, 0.2724408209323883, -0.06805656105279922, 0.30237576365470886, -0.23110339045524597, -0.1621001958847046, 0.23518583178520203, -0.17557695508003235, -0.44585248827934265, 0.18760946393013, -0.0978449285030365, 0.2507427930831909, -0.04810846969485283, 0.07291720807552338, -0.07735773921012878, 0.22217245399951935, -0.04416520893573761, 0.25551554560661316, -0.048726629465818405, -0.13832835853099823, -0.015506443567574024, -0.18307512998580933, 0.3481130599975586, -0.08249535411596298, -0.09418519586324692, 0.38124728202819824, 0.12711487710475922, -0.021774038672447205, 0.22187075018882751, -0.4553266167640686, 0.16015508770942688, 0.28631266951560974, 0.2274767905473709, 0.13335146009922028, 0.23195654153823853, -0.18239909410476685, -0.3266887366771698, 0.1416940987110138, -0.35983750224113464, 0.08892721682786942, 0.11572513729333878, -0.3049007058143616, -0.13051389157772064, -0.23496989905834198, -0.10132337361574173, 0.005927609279751778, -0.10831107199192047, -0.09702242910861969, 0.4688786566257477, 0.05136280134320259, -0.4691465198993683, 0.3537306487560272, -0.1237800344824791, 0.12769168615341187, -0.4118320345878601, 0.041368190199136734, 0.29548847675323486, -0.016927748918533325, -0.013537568971514702, 0.22849534451961517, -0.015514752827584743, -0.3583827614784241, 0.08197323232889175, 0.3086037039756775, -0.3341929018497467, 0.03361637517809868, -0.05688260868191719, 0.046270690858364105, 0.0354422964155674, -0.15276043117046356, -0.17863960564136505, 0.053583092987537384, 0.08922182768583298, -0.01126139983534813, -0.05504895746707916, 0.7477802634239197, -0.09936138242483139, 0.13714702427387238, 0.14002180099487305, -0.056911349296569824, -0.17307382822036743, -0.32485225796699524, -0.12027226388454437, 0.27660951018333435, 0.2228628247976303, -0.2027992606163025, 0.21677640080451965, -0.14631341397762299, -0.2560456693172455, -0.3367407023906708, 0.31057843565940857, 0.04510683938860893, 0.3367244601249695, 0.1336294412612915, 0.04170478880405426, 0.20175248384475708, 0.012655158527195454, -0.14682960510253906, 0.422799676656723, -0.030949421226978302, 0.25676465034484863, 0.37955334782600403, 0.3169099688529968, 0.1312442421913147, 0.08417914062738419, -0.24909868836402893, -0.07978178560733795, -0.014539703726768494, 0.055771604180336, 0.06994844973087311, -0.3710448443889618, -0.004146373365074396, 0.07006227970123291, 0.1621100902557373, 0.02414032816886902, -0.1014375314116478, -0.1798606514930725, -0.20023559033870697, -0.2028769552707672, 0.009896633215248585, -0.16728729009628296, -0.013286654837429523, -0.09066955745220184, 0.0028246911242604256, 0.14917178452014923, 0.4050224721431732, 0.22132574021816254, 0.42590853571891785, -0.09626088291406631, 0.3810701370239258, -0.11735150218009949, 0.034156668931245804, 0.09191826730966568, -0.03929542750120163, -0.13898321986198425, -0.18747107684612274, 0.21976447105407715, 0.014732781797647476, 0.03984297811985016, -0.510452926158905, -0.163260355591774, 0.25421276688575745, 0.04263313487172127, -0.20617949962615967, 0.35541656613349915, 0.05679142475128174, -0.5357359647750854, -0.0846046581864357, -0.02825196646153927, -0.08852550387382507, -0.549032986164093, 0.19301100075244904, -0.15962661802768707, 0.16915825009346008, -0.30598118901252747, -0.3406267464160919, -0.08382587134838104, -0.21637168526649475, 0.9462258219718933, -0.31642791628837585, 0.020824255421757698, 0.15761922299861908, -0.3140147924423218, 0.1281803548336029, -0.023696785792708397, 0.15454554557800293, -0.05361558124423027, -0.5723292231559753, -0.1633879840373993, 0.026713240891695023, -0.13614067435264587, -0.12011931091547012, -0.01984015665948391, 0.13752639293670654, 0.5128788948059082, -0.04317786544561386, -0.12748171389102936, -0.48696368932724, -0.25369584560394287, -0.09113109111785889, 0.41128256916999817, 0.12516984343528748, -0.36627307534217834, 0.10884788632392883, -0.018460536375641823, -0.016202418133616447, 0.21334688365459442, 0.004053220618516207, -0.09666343778371811, 0.25947341322898865, -0.048067931085824966, 0.3650168180465698, 0.3248700797557831, 0.3047574460506439, -0.10519188642501831, 0.04025452584028244, -0.29728272557258606, -0.08659952878952026, 0.06798099726438522, -0.3497265577316284, 0.12378523498773575, 0.15970708429813385, 0.32754239439964294, 0.11144047230482101, -0.19264739751815796, 0.3412342667579651, -0.12673179805278778, -0.09450291097164154, -0.26972097158432007, -0.31937000155448914, -0.05572149530053139, -0.15401829779148102, 0.24773555994033813, -0.12368612736463547, -0.19045516848564148, 0.02784949168562889, -0.16542953252792358, 0.2789088785648346, 0.2406207025051117, 0.1410549283027649, 0.09667133539915085, -0.3829193711280823, -0.3035740852355957, -0.48835667967796326, 0.6454590559005737, -0.13980725407600403, 0.2618303596973419, 0.06658665835857391, -0.1270619034767151, 0.13068540394306183, 0.03411616384983063, 1.037057876586914, -0.03248703479766846, -0.139674574136734, -0.4750312268733978, -0.47101926803588867, -0.31399720907211304, 0.18416082859039307, -0.22217103838920593, 0.5769689679145813, -0.23693981766700745, 0.3767886459827423, -0.2941349148750305, -0.22231866419315338, 0.3668454885482788, -0.03646170720458031, -0.07916413992643356, -0.10182448476552963, -0.05390052869915962, -0.6249426007270813, -0.09153927862644196, -0.018013548105955124, 0.06560303270816803, 0.15498606860637665, 0.04119598865509033, 0.13250809907913208, -0.37460342049598694, 0.1941816210746765, 0.36765339970588684, -0.1300133615732193, -0.0035212591756135225, 0.1491786241531372, -0.10015177726745605, 0.1031872034072876, 0.3238513171672821, -0.22972726821899414, 0.13004392385482788, -0.03215944766998291, -0.4681829810142517, -0.21335820853710175, 0.1570042073726654, 0.47056111693382263, -0.08564528822898865, 0.10721850395202637, 0.6108522415161133, 0.2382158786058426, 0.1436382383108139, -0.19656525552272797, 0.06707953661680222, 0.06441155821084976, 0.43008559942245483, -0.1884414553642273, -0.3638094961643219, 0.2624979615211487, 0.3062620759010315, -0.15621335804462433, 0.24976320564746857, 0.3646604120731354, -0.20328621566295624, -0.00841898936778307, -0.05419287458062172, 0.940131664276123, -0.212105393409729, 0.010436173528432846, 0.05461028590798378, 0.07881507277488708, 0.625530481338501, -0.27051568031311035, 0.25176066160202026, -0.15836431086063385, -0.540990948677063, -0.1581999510526657, -0.13589642941951752, 0.16044409573078156, 0.10709183663129807, -0.3282732665538788, 0.3783895969390869, 0.28350773453712463, -0.09566699713468552, -0.034036848694086075, -0.0009840818820521235, -0.1824062466621399, -0.08069285750389099, -0.15655507147312164, -0.11366640776395798, -0.032701365649700165, 0.5507884621620178, 0.021355003118515015, 0.016727151349186897, 0.2169838398694992, 0.046950846910476685, -0.04095160588622093, -0.15431012213230133, -0.46445485949516296, 0.26871782541275024, 0.30736082792282104, -0.14659792184829712, 0.013155888766050339, 0.6149057745933533, 0.6690641045570374, -0.11127627640962601, -0.0006841265712864697, -0.12051206827163696, 0.05160020664334297, 0.01701536402106285, -0.21835756301879883, -0.05210847780108452, 0.1305117905139923, 0.050195664167404175, -0.2650192081928253, 0.023301230743527412, 0.15526746213436127, 0.11651555448770523, -0.0890500396490097, 0.09023658186197281, 0.005577312782406807, -0.2745077610015869, -0.040498968213796616, 0.10447576642036438, -0.11790573596954346, 0.10137181729078293, -0.08721374720335007, -0.06883984059095383, -0.49575743079185486, 0.17893283069133759, -0.16136878728866577, -0.4757237732410431, -0.0061026522889733315, 0.35088711977005005, 0.2941737771034241, -0.06432449072599411, 0.4002085328102112, 0.0366976261138916, 0.13232772052288055, -0.06678014248609543, -0.26620471477508545, 0.2626364231109619, -0.3881516456604004, 0.47408196330070496, -0.29399406909942627, 0.317354679107666, 0.10677845031023026, 0.11311574280261993, 0.016211755573749542, 0.1288260668516159, -0.28893497586250305, -0.2663586735725403, -0.12451818585395813, 0.07646476477384567, 0.17954006791114807, 0.17790402472019196, 0.07501108944416046, 0.276652067899704, 0.04762697219848633, -0.2402661293745041, -0.155855193734169, 0.28424152731895447, -0.2833644449710846, 0.21844170987606049, 0.13266655802726746, -0.015770835801959038, 0.1630743443965912, 0.21652111411094666, -0.05670088157057762, 0.22617094218730927, -0.054717276245355606, -0.08684127032756805, -0.0172897856682539, 0.16161228716373444, -0.11244690418243408, 0.008478895761072636, 0.16746772825717926, 0.29565194249153137, -0.03307018801569939, -0.07341008633375168, 0.6825499534606934, 0.2951779365539551, 0.12589778006076813, 0.47613993287086487, -0.03627221658825874, -0.0462830476462841, -0.4582366645336151, -0.3013267517089844, 0.17851370573043823, 0.031439900398254395, -0.007262127008289099, 0.10813762247562408, -0.06150270625948906, -0.01646924577653408, -0.14219021797180176, -0.03762410581111908, 0.574813961982727, -0.2740880250930786, -0.02955256588757038, 0.06084151938557625, -0.039630819112062454, -0.390590101480484, 0.40942129492759705, -0.17401205003261566, -0.20188620686531067, 0.020180976018309593, -0.020628733560442924, -0.00534947169944644, -0.10283398628234863, 0.21947184205055237, 0.2927228510379791, -0.2715492844581604, 0.025117501616477966, 0.3670119345188141, -0.1269935965538025, 0.2906768023967743, -0.2144140899181366, -0.2452573925256729, 0.04693792387843132, -0.19407467544078827, 0.12045323848724365, 0.42682456970214844, 0.04513183608651161, 0.025243960320949554, -0.040161389857530594, 0.0988047644495964, 0.2951335906982422, -0.016015339642763138, -0.18376417458057404, 0.43727555871009827, -0.22560715675354004, 0.24729472398757935, 0.35730165243148804, -0.42443516850471497, 0.11445394903421402, 0.45162251591682434, -0.004189041443169117, 0.4051043689250946, -0.08188942074775696, 0.545557975769043, -0.0006802090210840106, -0.25017911195755005, 0.1463158279657364, 0.4758296608924866, -0.1705470085144043, -0.19440530240535736, -0.09802640974521637, -0.11434401571750641, -0.09354301542043686, 0.11518646031618118, -0.05331093445420265, 0.025072161108255386, 0.1784050613641739, 0.0636570155620575, 0.10812356323003769, 0.05062878504395485, -0.032984424382448196, 0.33124443888664246, 0.24969124794006348, 0.019304553046822548, -0.19966471195220947, 0.3107483386993408, -0.1767766922712326, 0.04559620842337608, 0.6782322525978088, -0.07002940773963928, -0.0051776086911559105, -0.3357175290584564, 0.6726941466331482, 0.2287704199552536, -0.1550968885421753, 0.04357787221670151, 0.012539869174361229, 0.04219219088554382, 0.06605274230241776, -0.03025594912469387, -0.0014335749438032508, 0.010144616477191448, 0.18193469941616058, -0.07800062000751495, 0.15849599242210388, -0.5389953255653381, 0.1471685767173767, 0.006196743343025446, -0.09306386858224869, -0.24712570011615753, 0.22123879194259644, -0.2751743197441101, -0.40470901131629944, 0.13316811621189117, -0.1408243626356125, 0.06478510797023773, 0.11521397531032562, -0.030660906806588173, -0.20475469529628754, 0.2973884344100952, 0.3563150465488434, 0.4698464274406433, -0.07877121865749359, -0.14689043164253235, -0.08651875704526901, -0.01494514662772417, 0.27264297008514404, -0.23905357718467712, 0.33460134267807007, 0.037535160779953, -0.08500010520219803, -0.030418943613767624, -0.08277341723442078, -0.13913458585739136, -0.20848305523395538, 0.021533548831939697, -0.3523411154747009, -0.20751452445983887, -0.056042250245809555, 0.20398108661174774, 0.19302815198898315, -0.29367855191230774, 0.13066819310188293, 0.3046518564224243, -0.22055064141750336, -0.034695979207754135, 0.41230517625808716, 0.022964011877775192, 0.020556220784783363, -0.038700226694345474, 0.11136354506015778, -0.09044227749109268, -0.0774444118142128, -0.04146380349993706, 0.48005586862564087, 0.09696662425994873, -0.3031172752380371, 0.3314425051212311, -0.11998975276947021, 0.10949911922216415, -0.21388325095176697, -0.38640037178993225, -0.046675365418195724, 0.22702185809612274, 0.5675138235092163, -0.44726285338401794, -0.2105766087770462, 0.11870984733104706, 0.02140728570520878, -0.03361789137125015, 0.3569825291633606, 0.8135994076728821, -0.12699465453624725, -0.11030956357717514, -0.22179660201072693, -0.0645323246717453, 0.5682215690612793, -0.29654520750045776, -0.17267262935638428, 0.0495363213121891, 0.22863928973674774, -0.11545630544424057, -0.39573317766189575, -0.6892157793045044, 0.12225129455327988, 0.30597037076950073, -0.10446852445602417, -0.12298592925071716, 0.4051799774169922, -0.0281283687800169, -0.08969870954751968, 0.11163890361785889, 0.03322542831301689, 0.38589367270469666, -0.3727831244468689, 0.2502817213535309, -0.24131907522678375 ]
https://github.com/huggingface/datasets/issues/2767
equal operation to perform unbatch for huggingface datasets
Hi, `Dataset.map` in the batched mode allows you to map a single row to multiple rows. So to perform "unbatch", you can do the following: ```python import collections def unbatch(batch): new_batch = collections.defaultdict(list) keys = batch.keys() for values in zip(*batch.values()): ex = {k: v for k, v in zip(keys, values)} inputs = f"record query: {ex['query']} entities: {', '.join(ex['entities'])} passage: {ex['passage']}" new_batch["inputs"].extend([inputs] * len(ex["answers"])) new_batch["targets"].extend(ex["answers"]) return new_batch dset = dset.map(unbatch, batched=True, remove_columns=dset.column_names) ```
Hi I need to use "unbatch" operation in tensorflow on a huggingface dataset, I could not find this operation, could you kindly direct me how I can do it, here is the problem I am trying to solve: I am considering "record" dataset in SuperGlue and I need to replicate each entery of the dataset for each answer, to make it similar to what T5 originally did: https://github.com/google-research/text-to-text-transfer-transformer/blob/3c58859b8fe72c2dbca6a43bc775aa510ba7e706/t5/data/preprocessors.py#L925 Here please find an example: For example, a typical example from ReCoRD might look like { 'passsage': 'This is the passage.', 'query': 'A @placeholder is a bird.', 'entities': ['penguin', 'potato', 'pigeon'], 'answers': ['penguin', 'pigeon'], } and I need a prosessor which would turn this example into the following two examples: { 'inputs': 'record query: A @placeholder is a bird. entities: penguin, ' 'potato, pigeon passage: This is the passage.', 'targets': 'penguin', } and { 'inputs': 'record query: A @placeholder is a bird. entities: penguin, ' 'potato, pigeon passage: This is the passage.', 'targets': 'pigeon', } For doing this, one need unbatch, as each entry can map to multiple samples depending on the number of answers, I am not sure how to perform this operation with huggingface datasets library and greatly appreciate your help @lhoestq Thank you very much.
72
equal operation to perform unbatch for huggingface datasets Hi I need to use "unbatch" operation in tensorflow on a huggingface dataset, I could not find this operation, could you kindly direct me how I can do it, here is the problem I am trying to solve: I am considering "record" dataset in SuperGlue and I need to replicate each entery of the dataset for each answer, to make it similar to what T5 originally did: https://github.com/google-research/text-to-text-transfer-transformer/blob/3c58859b8fe72c2dbca6a43bc775aa510ba7e706/t5/data/preprocessors.py#L925 Here please find an example: For example, a typical example from ReCoRD might look like { 'passsage': 'This is the passage.', 'query': 'A @placeholder is a bird.', 'entities': ['penguin', 'potato', 'pigeon'], 'answers': ['penguin', 'pigeon'], } and I need a prosessor which would turn this example into the following two examples: { 'inputs': 'record query: A @placeholder is a bird. entities: penguin, ' 'potato, pigeon passage: This is the passage.', 'targets': 'penguin', } and { 'inputs': 'record query: A @placeholder is a bird. entities: penguin, ' 'potato, pigeon passage: This is the passage.', 'targets': 'pigeon', } For doing this, one need unbatch, as each entry can map to multiple samples depending on the number of answers, I am not sure how to perform this operation with huggingface datasets library and greatly appreciate your help @lhoestq Thank you very much. Hi, `Dataset.map` in the batched mode allows you to map a single row to multiple rows. So to perform "unbatch", you can do the following: ```python import collections def unbatch(batch): new_batch = collections.defaultdict(list) keys = batch.keys() for values in zip(*batch.values()): ex = {k: v for k, v in zip(keys, values)} inputs = f"record query: {ex['query']} entities: {', '.join(ex['entities'])} passage: {ex['passage']}" new_batch["inputs"].extend([inputs] * len(ex["answers"])) new_batch["targets"].extend(ex["answers"]) return new_batch dset = dset.map(unbatch, batched=True, remove_columns=dset.column_names) ```
[ -0.07538116723299026, -0.773524820804596, 0.02615165151655674, -0.06931907683610916, 0.022894421592354774, -0.04826777055859566, 0.30341264605522156, 0.040893297642469406, 0.39757516980171204, 0.23980264365673065, -0.36508575081825256, -0.06458903849124908, 0.026436321437358856, 0.41190895438194275, 0.17975910007953644, -0.2043052762746811, 0.06330471485853195, 0.09900885820388794, -0.23755699396133423, -0.05853819474577904, -0.1362457424402237, 0.04074408859014511, -0.5339217782020569, -0.17674104869365692, 0.3353884816169739, -0.29739177227020264, -0.11615797132253647, -0.2635369300842285, -0.10344813764095306, 0.30520740151405334, 0.4921703636646271, 0.3093295097351074, 0.2077561467885971, 0.4856836795806885, -0.00012465217150747776, 0.3010810911655426, -0.24924735724925995, -0.15269112586975098, 0.11457689851522446, -0.08736700564622879, -0.13085676729679108, -0.08828257024288177, -0.06933735311031342, -0.31218084692955017, -0.16777639091014862, -0.013515281490981579, 0.08616893738508224, -0.33387869596481323, 0.6199628710746765, 0.10766205191612244, 0.003584430553019047, 0.3279935121536255, -0.07364824414253235, 0.047105759382247925, -0.16187487542629242, 0.031558528542518616, -0.016298018395900726, 0.1471147984266281, 0.12398458272218704, 0.01303845550864935, 0.08115984499454498, 0.3311886489391327, -0.1018417701125145, -0.034806761890649796, 0.06852094829082489, 0.14177237451076508, 0.07371501624584198, -0.4227609634399414, 0.16539472341537476, 0.3434446454048157, 0.12869802117347717, -0.34579235315322876, -0.5522568225860596, -0.11105231940746307, 0.06644631922245026, -0.07841353118419647, -0.24249131977558136, 0.15491171181201935, -0.12318158149719238, 0.1915922909975052, -0.45870932936668396, -0.08506248146295547, -0.06420467048883438, 0.05137736350297928, 0.06632844358682632, -0.02158849500119686, -0.2763305902481079, 0.27081677317619324, 0.05634620040655136, 0.09412718564271927, -0.15241478383541107, -0.12067997455596924, 0.16492034494876862, 0.22937363386154175, -0.6707262396812439, -0.2004776895046234, -0.21760576963424683, -0.08277439326047897, 0.24865439534187317, 0.30647364258766174, 0.5127055048942566, -0.06953161954879761, -0.0014585452154278755, 0.09126424789428711, 0.0690612867474556, 0.5457299947738647, -0.10104364156723022, -0.22347146272659302, 0.010707399807870388, 0.11909569054841995, -0.0006034536054357886, -0.0132917994633317, 0.307989239692688, -0.09607692062854767, -0.2861177325248718, 0.1868262141942978, 0.39911389350891113, -0.004852257203310728, -0.3670804500579834, -0.18272079527378082, -0.33059433102607727, -0.15041276812553406, 0.016825050115585327, 0.16194811463356018, -0.1955445557832718, 0.038826730102300644, 0.1834593266248703, 0.09624817967414856, -0.2616736888885498, -0.03417146950960159, -0.17547650635242462, 0.20054766535758972, -0.13556896150112152, -0.014928088523447514, 0.0025350742507725954, -0.19642385840415955, 0.01825414039194584, 0.4052438735961914, 0.04595942050218582, -0.007874560542404652, 0.18505729734897614, -0.13792523741722107, 0.33000773191452026, 0.026792632415890694, 0.20547698438167572, -0.10438425838947296, 0.11968022584915161, 0.11093618720769882, -0.06761308014392853, 0.006233105901628733, -0.07623926550149918, -0.23703086376190186, 0.10293904691934586, -0.02619130164384842, -0.290127694606781, -0.006433643400669098, -0.26550084352493286, 0.28056395053863525, -0.3139200508594513, 0.4107518196105957, 0.4642281234264374, 0.30839043855667114, -0.05793895199894905, -0.08848798274993896, 0.39093413949012756, -0.03358002007007599, -0.12681010365486145, -0.2703213691711426, 0.3334638178348541, -0.007043534889817238, 0.3165132999420166, 0.3111933767795563, -0.05838051065802574, 0.347565621137619, -0.2451772391796112, -0.047212906181812286, 0.20526647567749023, -0.1820422112941742, -0.4236241579055786, 0.23096852004528046, -0.0761009231209755, 0.29903653264045715, -0.035675857216119766, 0.061170000582933426, -0.03611670807003975, 0.17294777929782867, 0.040079593658447266, 0.28852471709251404, -0.08794053643941879, -0.08191697299480438, 0.0025713497307151556, -0.17503096163272858, 0.2911463975906372, -0.09375542402267456, -0.019505346193909645, 0.28818151354789734, 0.05033931881189346, -0.1503593474626541, 0.27432745695114136, -0.5115570425987244, 0.20570968091487885, 0.23517508804798126, 0.23318767547607422, 0.18627583980560303, 0.23769259452819824, -0.18020935356616974, -0.462091863155365, 0.17021776735782623, -0.37578219175338745, 0.1592281013727188, 0.05107882246375084, -0.3364463448524475, -0.13253958523273468, -0.18998637795448303, -0.14490793645381927, 0.04387969523668289, -0.09329044073820114, -0.13331113755702972, 0.4629059433937073, 0.025024468079209328, -0.40025821328163147, 0.23730488121509552, -0.08361729979515076, 0.10976843535900116, -0.41555729508399963, 0.06138269975781441, 0.24618804454803467, -0.018650518730282784, -0.009056865237653255, 0.21176199615001678, 0.01630551740527153, -0.3814625144004822, 0.10809887200593948, 0.293658971786499, -0.34849023818969727, 0.019219426438212395, -0.07981845736503601, 0.08172202110290527, 0.06730802357196808, -0.05967146158218384, -0.12954245507717133, 0.05068301409482956, 0.07365016639232635, -0.06416136026382446, -0.03393033146858215, 0.8116826415061951, -0.09513918310403824, 0.12687060236930847, 0.06701865047216415, -0.06727660447359085, -0.1310654729604721, -0.23659059405326843, -0.18496815860271454, 0.20446914434432983, 0.1865122765302658, -0.23162005841732025, 0.2167523205280304, -0.18970637023448944, -0.24003566801548004, -0.2519876956939697, 0.29170092940330505, 0.007705810479819775, 0.311277836561203, 0.11274753510951996, 0.04257899150252342, 0.21218544244766235, -0.03882954642176628, -0.14694052934646606, 0.3771910071372986, 0.001111102756112814, 0.25645527243614197, 0.3336133062839508, 0.27841147780418396, 0.15653324127197266, 0.05014432966709137, -0.2609420120716095, -0.04003770649433136, 0.0102965934202075, 0.010452094487845898, 0.10220855474472046, -0.3529455363750458, -0.0023583208676427603, 0.057904403656721115, 0.16358928382396698, 0.009168695658445358, -0.06852352619171143, -0.09332957863807678, -0.15903466939926147, -0.20329917967319489, -0.048406340181827545, -0.19998043775558472, -0.06365352869033813, -0.05968911573290825, 0.06508636474609375, 0.08276601880788803, 0.45275232195854187, 0.23238086700439453, 0.4247008264064789, -0.004651282448321581, 0.3034425675868988, -0.14032942056655884, 0.012463237158954144, 0.0758061558008194, -0.04367943853139877, -0.11889782547950745, -0.23607271909713745, 0.28238585591316223, -0.005720898509025574, 0.03723519295454025, -0.5395434498786926, -0.16033656895160675, 0.21133019030094147, -0.06520486623048782, -0.2380533665418625, 0.3718395531177521, 0.1210862547159195, -0.5385230779647827, -0.13016298413276672, 0.04267903417348862, -0.16476048529148102, -0.5449090600013733, 0.1823604255914688, -0.1517249494791031, 0.11902189999818802, -0.25545987486839294, -0.31287795305252075, -0.11223501712083817, -0.19338813424110413, 0.9071430563926697, -0.3603636622428894, 0.03876826539635658, 0.16979016363620758, -0.24539963901042938, 0.09097230434417725, 0.012081190012395382, 0.043833907693624496, -0.10465787351131439, -0.5249738097190857, -0.12238624691963196, 0.03222762793302536, -0.1373957246541977, -0.12704682350158691, -0.030066832900047302, 0.11962153017520905, 0.5564441680908203, -0.004287702031433582, -0.14652763307094574, -0.41103702783584595, -0.1484779268503189, -0.05923254042863846, 0.4029558300971985, 0.19722211360931396, -0.34974974393844604, 0.1031159907579422, -0.03210004046559334, -0.057219162583351135, 0.17772001028060913, -0.00031699042301625013, -0.11170221865177155, 0.20103372633457184, 0.014789596199989319, 0.36136478185653687, 0.4233078956604004, 0.268990159034729, -0.11243240535259247, 0.021175790578126907, -0.24063672125339508, -0.07814372330904007, 0.06879306584596634, -0.41652199625968933, 0.08670467138290405, 0.0967588722705841, 0.21218574047088623, 0.08907566964626312, -0.24108046293258667, 0.276547908782959, -0.0950959175825119, -0.030313808470964432, -0.3282959461212158, -0.356039822101593, 0.05938145890831947, -0.24327504634857178, 0.24999910593032837, -0.10773041099309921, -0.1504729688167572, -0.07598178088665009, -0.11814501881599426, 0.23020438849925995, 0.1959133893251419, 0.12477117031812668, 0.08062650263309479, -0.385632187128067, -0.29920557141304016, -0.5825086832046509, 0.689899206161499, -0.09068071097135544, 0.282805472612381, 0.10382433980703354, -0.09632456302642822, 0.09180332720279694, 0.0738142654299736, 1.1266226768493652, -0.0902918353676796, -0.06798538565635681, -0.4532371759414673, -0.47926202416419983, -0.3658044636249542, 0.17474812269210815, -0.24620209634304047, 0.49593088030815125, -0.13692104816436768, 0.486179381608963, -0.3012240529060364, -0.21580179035663605, 0.38422250747680664, -0.07084962725639343, -0.1029941663146019, -0.10854782909154892, -0.10394645482301712, -0.6143310070037842, -0.14521420001983643, 0.040212083607912064, 0.17367638647556305, 0.1835605949163437, 0.09638890624046326, 0.14428070187568665, -0.34702321887016296, 0.21966426074504852, 0.37895500659942627, -0.0680103749036789, -0.0419565849006176, 0.21029682457447052, -0.1067139282822609, 0.11418525129556656, 0.2900211811065674, -0.1538267880678177, 0.049999386072158813, -0.11193079501390457, -0.5091650485992432, -0.20363548398017883, 0.13879531621932983, 0.4453863203525543, 0.0021083333995193243, 0.08938999474048615, 0.4498017728328705, 0.33132585883140564, 0.18783824145793915, -0.20954206585884094, 0.07528942823410034, 0.12294703722000122, 0.47679004073143005, -0.24560163915157318, -0.37568989396095276, 0.1890125870704651, 0.29010310769081116, -0.12519879639148712, 0.258332759141922, 0.3687479794025421, -0.21652112901210785, 0.0750945657491684, -0.07716836035251617, 0.9015501737594604, -0.2241620272397995, 0.0572487898170948, 0.199395552277565, 0.17862451076507568, 0.580835223197937, -0.2855260372161865, 0.2576752007007599, -0.1110956221818924, -0.5086904764175415, -0.12336203455924988, -0.10077709704637527, 0.14352238178253174, 0.17989446222782135, -0.2801913022994995, 0.36125293374061584, 0.3504682183265686, -0.0795019119977951, -0.07736903429031372, -0.05941969156265259, -0.13411179184913635, -0.1367686241865158, -0.17933394014835358, -0.10629652440547943, -0.021722808480262756, 0.5700867176055908, -0.04591028019785881, -0.0014355563325807452, 0.18197473883628845, -0.004344438202679157, -0.07260451465845108, -0.22046220302581787, -0.5403102040290833, 0.2581212818622589, 0.2453533113002777, -0.14665234088897705, -0.10701096802949905, 0.5531072020530701, 0.6465961933135986, -0.1431565135717392, 0.018572039902210236, -0.13601142168045044, 0.0638052448630333, 0.01166980154812336, -0.2535892724990845, -0.13508743047714233, 0.14615662395954132, 0.038785018026828766, -0.2595752775669098, 0.0008660382591187954, 0.13027241826057434, 0.04201560840010643, -0.015095139853656292, 0.07754448801279068, -0.1029813215136528, -0.3029365539550781, -0.07924404740333557, 0.09852082282304764, -0.09897243976593018, 0.08072739094495773, -0.08588886260986328, -0.07277180999517441, -0.5481365323066711, 0.2476283609867096, -0.16788960993289948, -0.49149444699287415, -0.010616379790008068, 0.4057466983795166, 0.260699063539505, -0.17422817647457123, 0.4102475941181183, 0.0836176648736, 0.09361476451158524, -0.057073671370744705, -0.28617236018180847, 0.2830047309398651, -0.43445897102355957, 0.5060540437698364, -0.30744972825050354, 0.2821791172027588, 0.06427893042564392, 0.16857962310314178, 0.1294114589691162, 0.12958791851997375, -0.2556285560131073, -0.2817220687866211, -0.14727084338665009, 0.07853012531995773, 0.24408411979675293, 0.24418066442012787, 0.12584088742733002, 0.37675940990448, 0.09021356701850891, -0.17052128911018372, -0.16658847033977509, 0.2332269698381424, -0.23454925417900085, 0.19790402054786682, 0.1407255083322525, -0.07131639868021011, 0.2908713221549988, 0.2017940878868103, -0.06331208348274231, 0.1915009617805481, -0.0993863046169281, -0.11012542992830276, -0.02466774359345436, 0.1482064574956894, -0.07896934449672699, 0.008947005495429039, 0.22330361604690552, 0.2798078954219818, -0.027252329513430595, -0.10519256442785263, 0.6996045708656311, 0.369426429271698, 0.12268427759408951, 0.4460556209087372, 0.0006682605016976595, 0.015198227018117905, -0.36118781566619873, -0.2898229956626892, 0.21365010738372803, 0.012439914979040623, 0.006439080461859703, 0.12289198487997055, -0.07642065733671188, -0.03617316484451294, -0.10912390053272247, -0.06807051599025726, 0.5871480107307434, -0.22306910157203674, 0.014605918899178505, 0.05283520743250847, -0.11491767317056656, -0.3639833629131317, 0.4361191987991333, -0.1670496165752411, -0.19697000086307526, -0.05722583830356598, -0.08792224526405334, 0.017471542581915855, -0.1485780030488968, 0.24394531548023224, 0.37670958042144775, -0.2628638744354248, 0.05593855679035187, 0.3968822658061981, -0.15162579715251923, 0.32479608058929443, -0.19858580827713013, -0.22186700999736786, 0.09028124809265137, -0.17617183923721313, 0.13243728876113892, 0.4299083650112152, 0.05775091424584389, 0.10984034836292267, -0.012612350285053253, 0.13128170371055603, 0.32241809368133545, -0.03351385146379471, -0.15837138891220093, 0.41374635696411133, -0.2783845365047455, 0.23693615198135376, 0.297863632440567, -0.42792248725891113, 0.06647756695747375, 0.4004286527633667, -0.028737828135490417, 0.40751543641090393, -0.09160564094781876, 0.5527045726776123, -0.08894092589616776, -0.3047347962856293, 0.12279964983463287, 0.48813655972480774, -0.24412775039672852, -0.17032530903816223, -0.19859635829925537, -0.1303696632385254, -0.038266003131866455, 0.07536045461893082, -0.04832066595554352, 0.02607896365225315, 0.17918230593204498, 0.03579253703355789, 0.1077532097697258, 0.050712525844573975, -0.1503036618232727, 0.2482164055109024, 0.24316710233688354, 0.01622111350297928, -0.22398388385772705, 0.25433284044265747, -0.21707437932491302, 0.03944689407944679, 0.719627857208252, 0.01882285438477993, -0.009519731625914574, -0.29573169350624084, 0.6617156863212585, 0.17894774675369263, -0.16406230628490448, -0.02955663949251175, -0.02096233144402504, 0.019035061821341515, 0.018069326877593994, -0.013945560902357101, 0.026274068281054497, -0.02926807664334774, 0.1912160962820053, -0.10570230334997177, 0.16118822991847992, -0.4103519022464752, 0.08132001757621765, -0.08170713484287262, -0.1073373407125473, -0.21971118450164795, 0.19436262547969818, -0.2433096468448639, -0.31143686175346375, 0.12058045715093613, -0.1593332290649414, 0.10791663825511932, 0.0862916111946106, -0.017618371173739433, -0.15515023469924927, 0.3381443917751312, 0.35476845502853394, 0.382083535194397, -0.1703348606824875, -0.09735077619552612, -0.14170977473258972, 0.010784739628434181, 0.19788293540477753, -0.208907812833786, 0.33435410261154175, 0.10712646692991257, -0.0026870265137404203, -0.035932764410972595, 0.02138715237379074, -0.17848503589630127, -0.2717832624912262, 0.12112315744161606, -0.3433915376663208, -0.20458145439624786, -0.12640200555324554, 0.19573262333869934, 0.2733251750469208, -0.3446793854236603, 0.07549154758453369, 0.3581223487854004, -0.21339020133018494, -0.06849903613328934, 0.3740198612213135, 0.017586475238204002, 0.09975967556238174, -0.008787917904555798, 0.1813976913690567, -0.06380901485681534, -0.06795956939458847, -0.05066773667931557, 0.38925132155418396, 0.12807638943195343, -0.33851954340934753, 0.3446710407733917, -0.0772370994091034, 0.1299193799495697, -0.25939443707466125, -0.37699466943740845, -0.07434429973363876, 0.24128131568431854, 0.5907959342002869, -0.4905031621456146, -0.22750476002693176, 0.15219809114933014, -0.004522509872913361, -0.03311563655734062, 0.3418530821800232, 0.8235200047492981, -0.12544149160385132, -0.022154811769723892, -0.21959474682807922, -0.08719118684530258, 0.6015580892562866, -0.28158992528915405, -0.22638240456581116, -0.004798299167305231, 0.1956966370344162, -0.1035829558968544, -0.349714070558548, -0.6360825300216675, 0.1418415755033493, 0.2863030433654785, -0.07553037256002426, -0.10868887603282928, 0.4168683588504791, -0.08349117636680603, -0.1523139625787735, 0.08694663643836975, 0.09168373793363571, 0.3570878505706787, -0.41124218702316284, 0.18356958031654358, -0.30441564321517944 ]
https://github.com/huggingface/datasets/issues/2767
equal operation to perform unbatch for huggingface datasets
Dear @mariosasko First, thank you very much for coming back to me on this, I appreciate it a lot. I tried this solution, I am getting errors, do you mind giving me one test example to be able to run your code, to understand better the format of the inputs to your function? in this function https://github.com/google-research/text-to-text-transfer-transformer/blob/3c58859b8fe72c2dbca6a43bc775aa510ba7e706/t5/data/preprocessors.py#L952 they copy each example to the number of "answers", do you mean one should not do the copying part and use directly your function? thank you very much for your help and time.
Hi I need to use "unbatch" operation in tensorflow on a huggingface dataset, I could not find this operation, could you kindly direct me how I can do it, here is the problem I am trying to solve: I am considering "record" dataset in SuperGlue and I need to replicate each entery of the dataset for each answer, to make it similar to what T5 originally did: https://github.com/google-research/text-to-text-transfer-transformer/blob/3c58859b8fe72c2dbca6a43bc775aa510ba7e706/t5/data/preprocessors.py#L925 Here please find an example: For example, a typical example from ReCoRD might look like { 'passsage': 'This is the passage.', 'query': 'A @placeholder is a bird.', 'entities': ['penguin', 'potato', 'pigeon'], 'answers': ['penguin', 'pigeon'], } and I need a prosessor which would turn this example into the following two examples: { 'inputs': 'record query: A @placeholder is a bird. entities: penguin, ' 'potato, pigeon passage: This is the passage.', 'targets': 'penguin', } and { 'inputs': 'record query: A @placeholder is a bird. entities: penguin, ' 'potato, pigeon passage: This is the passage.', 'targets': 'pigeon', } For doing this, one need unbatch, as each entry can map to multiple samples depending on the number of answers, I am not sure how to perform this operation with huggingface datasets library and greatly appreciate your help @lhoestq Thank you very much.
90
equal operation to perform unbatch for huggingface datasets Hi I need to use "unbatch" operation in tensorflow on a huggingface dataset, I could not find this operation, could you kindly direct me how I can do it, here is the problem I am trying to solve: I am considering "record" dataset in SuperGlue and I need to replicate each entery of the dataset for each answer, to make it similar to what T5 originally did: https://github.com/google-research/text-to-text-transfer-transformer/blob/3c58859b8fe72c2dbca6a43bc775aa510ba7e706/t5/data/preprocessors.py#L925 Here please find an example: For example, a typical example from ReCoRD might look like { 'passsage': 'This is the passage.', 'query': 'A @placeholder is a bird.', 'entities': ['penguin', 'potato', 'pigeon'], 'answers': ['penguin', 'pigeon'], } and I need a prosessor which would turn this example into the following two examples: { 'inputs': 'record query: A @placeholder is a bird. entities: penguin, ' 'potato, pigeon passage: This is the passage.', 'targets': 'penguin', } and { 'inputs': 'record query: A @placeholder is a bird. entities: penguin, ' 'potato, pigeon passage: This is the passage.', 'targets': 'pigeon', } For doing this, one need unbatch, as each entry can map to multiple samples depending on the number of answers, I am not sure how to perform this operation with huggingface datasets library and greatly appreciate your help @lhoestq Thank you very much. Dear @mariosasko First, thank you very much for coming back to me on this, I appreciate it a lot. I tried this solution, I am getting errors, do you mind giving me one test example to be able to run your code, to understand better the format of the inputs to your function? in this function https://github.com/google-research/text-to-text-transfer-transformer/blob/3c58859b8fe72c2dbca6a43bc775aa510ba7e706/t5/data/preprocessors.py#L952 they copy each example to the number of "answers", do you mean one should not do the copying part and use directly your function? thank you very much for your help and time.
[ -0.010877499356865883, -0.7745166420936584, 0.050037965178489685, -0.043820176273584366, 0.05859578773379326, -0.13151340186595917, 0.24490424990653992, 0.03557970002293587, 0.40340378880500793, 0.2071983516216278, -0.36472994089126587, -0.057684604078531265, 0.025830483064055443, 0.45285987854003906, 0.13687945902347565, -0.24154144525527954, 0.035421643406152725, 0.13007444143295288, -0.3146572709083557, -0.09713231772184372, -0.12795554101467133, 0.009023623540997505, -0.5449331998825073, -0.17416885495185852, 0.3397316634654999, -0.28557464480400085, -0.1111920028924942, -0.22679749131202698, -0.20183978974819183, 0.33072179555892944, 0.42120689153671265, 0.27654483914375305, 0.15666992962360382, 0.5160191655158997, -0.00012626813258975744, 0.2817387580871582, -0.2239808440208435, -0.15294583141803741, 0.09268059581518173, -0.15737570822238922, -0.1417338252067566, -0.04408855363726616, -0.0630614385008812, -0.27521318197250366, -0.1816471368074417, -0.0017649848014116287, 0.04540794715285301, -0.33862605690956116, 0.6838319897651672, 0.1817793846130371, -0.004846449941396713, 0.2067309468984604, -0.059735171496868134, 0.09206755459308624, -0.13503557443618774, 0.06712287664413452, -0.020441662520170212, 0.07359199225902557, 0.07423871755599976, 0.03918446600437164, 0.08259902894496918, 0.28699207305908203, -0.03426041081547737, -0.061668746173381805, 0.08219612389802933, 0.10652266442775726, 0.0024305449333041906, -0.3898437023162842, 0.11112003028392792, 0.36190685629844666, 0.20633476972579956, -0.3542034924030304, -0.5544352531433105, -0.052140966057777405, 0.025304477661848068, -0.04707041382789612, -0.20787139236927032, 0.16579826176166534, -0.11597152799367905, 0.214490607380867, -0.4811854958534241, -0.09870482981204987, -0.07230502367019653, 0.07318373769521713, 0.0504784882068634, -0.1077798455953598, -0.2960428297519684, 0.2540515959262848, 0.0699310451745987, 0.09059436619281769, -0.11748001724481583, -0.11754179000854492, 0.12303439527750015, 0.2084047943353653, -0.6481527090072632, -0.2360534369945526, -0.25775009393692017, -0.020778803154826164, 0.2639651298522949, 0.3931051194667816, 0.5452445149421692, -0.10599718242883682, -0.06836305558681488, 0.07755197584629059, 0.07180029153823853, 0.5941025018692017, -0.09312409907579422, -0.24497416615486145, -0.021666904911398888, 0.11493317782878876, 0.03385007753968239, -0.04561324790120125, 0.3210248351097107, -0.07352042198181152, -0.3377155065536499, 0.14422838389873505, 0.3928581178188324, -0.09812504798173904, -0.3077068030834198, -0.17141050100326538, -0.34827369451522827, -0.10623524338006973, 0.00524495542049408, 0.12359876185655594, -0.17380018532276154, 0.09560681134462357, 0.22503137588500977, 0.08441918343305588, -0.2863166034221649, -0.09465844929218292, -0.16763938963413239, 0.28883054852485657, -0.18384720385074615, 0.007838190533220768, -0.05555835738778114, -0.18036584556102753, -0.021318061277270317, 0.5038353204727173, 0.010385802946984768, -0.03494466468691826, 0.20614290237426758, -0.164464071393013, 0.3446747362613678, -0.027621513232588768, 0.15815089643001556, -0.1279953122138977, 0.139308899641037, -0.018206065520644188, -0.025307632982730865, 0.00047238843399100006, -0.05773797258734703, -0.24455761909484863, 0.06475824117660522, -0.03857684135437012, -0.3195185363292694, 0.028810767456889153, -0.1932256668806076, 0.3196072280406952, -0.3369591534137726, 0.39801788330078125, 0.45499277114868164, 0.3295465111732483, -0.054833073168992996, -0.07112278789281845, 0.4004133939743042, 0.03207097202539444, -0.08926143497228622, -0.29604074358940125, 0.34395474195480347, 0.009356480091810226, 0.3034726083278656, 0.293740451335907, -0.01325793843716383, 0.2759529650211334, -0.24296241998672485, -0.09621413797140121, 0.20006126165390015, -0.1653338223695755, -0.3978581726551056, 0.24382451176643372, -0.09369786083698273, 0.28581827878952026, -0.0008193593821488321, 0.03271634131669998, -0.0864739641547203, 0.18819110095500946, -0.027079621329903603, 0.2525264322757721, -0.06613864749670029, -0.10531345754861832, -0.065160371363163, -0.16174998879432678, 0.35058876872062683, -0.06559585779905319, -0.08299968391656876, 0.3464677929878235, 0.06523546576499939, -0.06195132061839104, 0.22063472867012024, -0.5067729949951172, 0.17426049709320068, 0.2860682010650635, 0.27377137541770935, 0.14227376878261566, 0.2397805005311966, -0.1471373736858368, -0.322126179933548, 0.10422873497009277, -0.35726749897003174, 0.18655115365982056, 0.12310189753770828, -0.28224530816078186, -0.17483599483966827, -0.2101636528968811, -0.1613720953464508, -0.02207052893936634, -0.09282847493886948, -0.08941636979579926, 0.4296043813228607, 0.0627397820353508, -0.3935890197753906, 0.35312485694885254, -0.11033249646425247, 0.11737372726202011, -0.45659106969833374, 0.07668964564800262, 0.2712407410144806, -0.02120286226272583, -0.029492592439055443, 0.2020920217037201, 0.02501974254846573, -0.31820929050445557, 0.09315317124128342, 0.2768292725086212, -0.31118324398994446, -0.00004999426528229378, -0.08070342242717743, 0.11296915262937546, 0.04488370567560196, -0.09338711202144623, -0.13565672934055328, 0.11589771509170532, 0.09894196689128876, -0.05756794661283493, -0.08038542419672012, 0.7735750675201416, -0.06307955086231232, 0.11833073943853378, 0.11514165997505188, -0.05419577658176422, -0.15631288290023804, -0.29358306527137756, -0.13842040300369263, 0.2834092378616333, 0.251112699508667, -0.21208921074867249, 0.2328740656375885, -0.12833920121192932, -0.2621285617351532, -0.28625622391700745, 0.27009317278862, 0.028427837416529655, 0.3281137943267822, 0.11951563507318497, 0.031461991369724274, 0.19467149674892426, -0.01533737126737833, -0.15549583733081818, 0.38155999779701233, -0.0071749016642570496, 0.2247861623764038, 0.3685891628265381, 0.310509592294693, 0.14310729503631592, 0.055368054658174515, -0.2981644868850708, -0.07289966195821762, 0.03938981145620346, 0.00860600359737873, 0.10302789509296417, -0.3797222077846527, 0.023647788912057877, 0.030248522758483887, 0.17025113105773926, -0.08162252604961395, -0.07307835668325424, -0.15843042731285095, -0.18324512243270874, -0.20118868350982666, 0.03637629374861717, -0.194118469953537, -0.043836355209350586, -0.08063379675149918, 0.06610690802335739, 0.1269938051700592, 0.4456270635128021, 0.24062184989452362, 0.4628778100013733, -0.028090041130781174, 0.3665049076080322, -0.13638626039028168, 0.05759439989924431, 0.07059605419635773, -0.046173837035894394, -0.11942358314990997, -0.20331701636314392, 0.20380130410194397, -0.0031706863082945347, 0.04397580772638321, -0.4660871624946594, -0.23746486008167267, 0.26773446798324585, 0.023288635537028313, -0.21134889125823975, 0.3508020043373108, 0.05570530891418457, -0.5462495684623718, -0.07832051068544388, -0.021693386137485504, -0.08848273754119873, -0.5615619421005249, 0.2528972625732422, -0.1770297884941101, 0.12331566959619522, -0.3099220097064972, -0.3661051094532013, -0.08729608356952667, -0.20642055571079254, 0.93702632188797, -0.3762083053588867, 0.005792419891804457, 0.1996503472328186, -0.22223204374313354, 0.06772187352180481, 0.012603974901139736, 0.15565477311611176, -0.09767217934131622, -0.5041767358779907, -0.07312581688165665, 0.028170600533485413, -0.13766735792160034, -0.14870305359363556, -0.05468740314245224, 0.08025302737951279, 0.5497126579284668, -0.02826549857854843, -0.19948159158229828, -0.4520469009876251, -0.296163946390152, -0.07280633598566055, 0.42090052366256714, 0.1771833300590515, -0.3457147479057312, 0.12052082270383835, -0.03753139078617096, -0.06958530098199844, 0.22957675158977509, 0.01873033680021763, -0.12705162167549133, 0.23470810055732727, 0.0014079995453357697, 0.3598979115486145, 0.35385289788246155, 0.34701937437057495, -0.09902546554803848, 0.03700541704893112, -0.2861384153366089, -0.08527641743421555, 0.09005967527627945, -0.369648814201355, 0.10219740867614746, 0.13570137321949005, 0.263287216424942, 0.07791007310152054, -0.1912820041179657, 0.29929640889167786, -0.15098974108695984, -0.0565323643386364, -0.337249219417572, -0.32835903763771057, 0.04198877885937691, -0.1391092985868454, 0.22628171741962433, -0.14365580677986145, -0.16146840155124664, -0.01052845735102892, -0.13943253457546234, 0.2685932219028473, 0.23487325012683868, 0.10991974174976349, 0.12223571538925171, -0.36184364557266235, -0.24837180972099304, -0.4749390780925751, 0.6477645039558411, -0.10549560934305191, 0.2582261860370636, 0.059657108038663864, -0.12247639149427414, 0.10190097242593765, 0.05528046935796738, 1.0442073345184326, -0.0928625538945198, -0.14188843965530396, -0.4542003571987152, -0.5523260831832886, -0.3331586718559265, 0.21966980397701263, -0.2337745726108551, 0.5441314578056335, -0.19805137813091278, 0.4110110402107239, -0.3555337190628052, -0.1987072378396988, 0.3440609276294708, -0.04280516877770424, -0.11762779206037521, -0.11237562447786331, -0.06975981593132019, -0.619322657585144, -0.11438082158565521, -0.02281198836863041, 0.1505485326051712, 0.16857290267944336, 0.0634070336818695, 0.1474555879831314, -0.35769426822662354, 0.22873501479625702, 0.3958051800727844, -0.11859941482543945, -0.0005936658126302063, 0.13958197832107544, -0.12851673364639282, 0.12510482966899872, 0.3129321336746216, -0.22906118631362915, 0.18284964561462402, -0.038917869329452515, -0.525521993637085, -0.20112062990665436, 0.12820430099964142, 0.4326053857803345, 0.004306587856262922, 0.12118558585643768, 0.4952026605606079, 0.2905818521976471, 0.16927087306976318, -0.17519520223140717, 0.05145556852221489, 0.05473152548074722, 0.438325434923172, -0.2018348127603531, -0.3718875050544739, 0.20344609022140503, 0.25662761926651, -0.1311088502407074, 0.29509347677230835, 0.40551361441612244, -0.17058752477169037, 0.0070119136944413185, -0.06412363797426224, 1.0264145135879517, -0.17790433764457703, 0.022666173055768013, 0.1446869969367981, 0.0649365782737732, 0.547271192073822, -0.3608384430408478, 0.20803134143352509, -0.16704246401786804, -0.5076099634170532, -0.1528959572315216, -0.1149316132068634, 0.10491882264614105, 0.12648624181747437, -0.3500162363052368, 0.35972627997398376, 0.29497942328453064, -0.1077527403831482, -0.03782937675714493, 0.006812333595007658, -0.17523342370986938, -0.07237455248832703, -0.15630950033664703, -0.11045150458812714, -0.009184309281408787, 0.5706517696380615, 0.009358270093798637, -0.01835213415324688, 0.1865914911031723, -0.013880129903554916, -0.06017298996448517, -0.16251149773597717, -0.5331324338912964, 0.22631105780601501, 0.3066321313381195, -0.1381724774837494, 0.01404375396668911, 0.6243478655815125, 0.6611807346343994, -0.13278695940971375, -0.0027741992380470037, -0.16449306905269623, 0.018012050539255142, 0.04692684859037399, -0.23060676455497742, -0.05749591067433357, 0.16573302447795868, 0.04810541868209839, -0.2576409876346588, -0.009264502674341202, 0.1547839641571045, 0.0989362969994545, -0.0698963925242424, 0.018864914774894714, -0.07715664803981781, -0.3292370140552521, -0.029253631830215454, 0.12327086925506592, -0.10894756764173508, 0.1232992559671402, -0.08641401678323746, -0.04038146510720253, -0.5168852806091309, 0.1755291074514389, -0.12887513637542725, -0.4917958974838257, 0.016539841890335083, 0.4037632346153259, 0.2822575569152832, -0.11604730039834976, 0.4003129005432129, 0.0940634161233902, 0.0872102826833725, -0.05273080989718437, -0.2767203450202942, 0.35078829526901245, -0.46225517988204956, 0.46937817335128784, -0.3270954191684723, 0.271769255399704, 0.0570283979177475, 0.17791356146335602, 0.10258392989635468, 0.1646062433719635, -0.2312489151954651, -0.29013460874557495, -0.10189107805490494, 0.09406733512878418, 0.20680446922779083, 0.1520269364118576, 0.09835570305585861, 0.2725200355052948, 0.10683934390544891, -0.21885478496551514, -0.16837137937545776, 0.24678456783294678, -0.2557551860809326, 0.19999004900455475, 0.13473421335220337, -0.09198816120624542, 0.1986115574836731, 0.19776420295238495, -0.06850893050432205, 0.22194316983222961, -0.12613998353481293, -0.08838749676942825, -0.03914707899093628, 0.16713038086891174, -0.08067034929990768, 0.013414643704891205, 0.18745188415050507, 0.2687893211841583, -0.0019304117886349559, -0.08062843978404999, 0.6413137316703796, 0.33121147751808167, 0.11508794128894806, 0.5001335740089417, -0.051440171897411346, -0.01752474159002304, -0.4890022873878479, -0.2775420844554901, 0.21262426674365997, 0.0310202706605196, 0.02764682099223137, 0.09177862107753754, -0.024626832455396652, -0.027503184974193573, -0.13594737648963928, 0.0027697812765836716, 0.5822213292121887, -0.22751128673553467, -0.012743290513753891, 0.04687213897705078, -0.020213209092617035, -0.38274121284484863, 0.39915964007377625, -0.16544915735721588, -0.24941441416740417, 0.036015260964632034, -0.051216669380664825, 0.006890120450407267, -0.08354297280311584, 0.2543732225894928, 0.31493106484413147, -0.2773490250110626, 0.029996555298566818, 0.3806998133659363, -0.1358976513147354, 0.2611200213432312, -0.1441328078508377, -0.20448826253414154, 0.026425804942846298, -0.204790398478508, 0.10578296333551407, 0.4187949299812317, -0.014558536931872368, 0.07333285361528397, -0.06092183664441109, 0.103160060942173, 0.23560146987438202, -0.06551512330770493, -0.21087603271007538, 0.41386353969573975, -0.2922666370868683, 0.23272953927516937, 0.29903438687324524, -0.3924890458583832, 0.09511840343475342, 0.4452512264251709, 0.0023688473738729954, 0.4268142580986023, -0.04949835315346718, 0.5840531587600708, 0.01750974915921688, -0.28042271733283997, 0.11949805170297623, 0.44499582052230835, -0.20142538845539093, -0.11960428208112717, -0.17126670479774475, -0.1596519500017166, -0.18773870170116425, 0.09001937508583069, -0.07517363876104355, 0.002811823971569538, 0.21731705963611603, 0.07179451733827591, 0.06396470963954926, 0.02408519573509693, -0.07956636697053909, 0.29133498668670654, 0.27239230275154114, -0.009019944816827774, -0.17659273743629456, 0.34580162167549133, -0.1892181783914566, 0.09637142717838287, 0.6774992346763611, -0.028156423941254616, 0.017948314547538757, -0.374705970287323, 0.6705464124679565, 0.21693414449691772, -0.16347968578338623, 0.04809962958097458, -0.01090692076832056, 0.02363731898367405, 0.060625240206718445, -0.012556042522192001, 0.003327549435198307, -0.012748879380524158, 0.18453030288219452, -0.1218113899230957, 0.131962388753891, -0.49200478196144104, 0.11603004485368729, -0.00959488470107317, -0.06203613057732582, -0.20286966860294342, 0.17454920709133148, -0.27870234847068787, -0.3275159001350403, 0.14061887562274933, -0.10912343114614487, 0.09323970228433609, 0.09255604445934296, -0.032507818192243576, -0.15016144514083862, 0.2595948874950409, 0.3713560402393341, 0.43556323647499084, -0.12312477082014084, -0.1570318192243576, -0.09166347235441208, 0.036056943237781525, 0.26349425315856934, -0.26747554540634155, 0.3377639055252075, 0.05073326826095581, 0.030575688928365707, 0.03233661875128746, -0.064015693962574, -0.1622576117515564, -0.25867870450019836, 0.08737305551767349, -0.3793010115623474, -0.20622827112674713, -0.04687807336449623, 0.20623604953289032, 0.227014422416687, -0.3029268682003021, 0.06981875747442245, 0.354450523853302, -0.19747444987297058, -0.04936252534389496, 0.42188605666160583, -0.03919222205877304, 0.07471322268247604, -0.06413830816745758, 0.19398513436317444, -0.06140035763382912, -0.09221325814723969, -0.04777098819613457, 0.507321298122406, 0.11553144454956055, -0.36524006724357605, 0.3364468216896057, -0.09411270171403885, 0.124905064702034, -0.24639356136322021, -0.396331250667572, -0.07428663969039917, 0.2382936179637909, 0.5800231695175171, -0.4254644811153412, -0.24573011696338654, 0.13560763001441956, 0.03318212926387787, -0.00664889719337225, 0.32699069380760193, 0.8123002648353577, -0.10883966088294983, -0.05095459148287773, -0.1931658238172531, -0.08895502984523773, 0.5671643018722534, -0.2700324058532715, -0.20032206177711487, 0.07616888731718063, 0.19302457571029663, -0.09619326889514923, -0.37204888463020325, -0.7107868194580078, 0.1285327821969986, 0.2590751349925995, -0.11077915877103806, -0.08770904690027237, 0.4188712537288666, -0.06243903934955597, -0.12266363948583603, 0.10634200274944305, 0.06590814143419266, 0.3857211470603943, -0.3582315742969513, 0.2123968005180359, -0.2672466039657593 ]
https://github.com/huggingface/datasets/issues/2767
equal operation to perform unbatch for huggingface datasets
Hi @mariosasko I think finally I got this, I think you mean to do things in one step, here is the full example for completeness: ``` def unbatch(batch): new_batch = collections.defaultdict(list) keys = batch.keys() for values in zip(*batch.values()): ex = {k: v for k, v in zip(keys, values)} # updates the passage. passage = ex['passage'] passage = re.sub(r'(\.|\?|\!|\"|\')\n@highlight\n', r'\1 ', passage) passage = re.sub(r'\n@highlight\n', '. ', passage) inputs = f"record query: {ex['query']} entities: {', '.join(ex['entities'])} passage: {passage}" # duplicates the samples based on number of answers. num_answers = len(ex["answers"]) num_duplicates = np.maximum(1, num_answers) new_batch["inputs"].extend([inputs] * num_duplicates) #len(ex["answers"])) new_batch["targets"].extend(ex["answers"] if num_answers > 0 else ["<unk>"]) return new_batch data = datasets.load_dataset('super_glue', 'record', split="train", script_version="master") data = data.map(unbatch, batched=True, remove_columns=data.column_names) ``` Thanks a lot again, this was a super great way to do it.
Hi I need to use "unbatch" operation in tensorflow on a huggingface dataset, I could not find this operation, could you kindly direct me how I can do it, here is the problem I am trying to solve: I am considering "record" dataset in SuperGlue and I need to replicate each entery of the dataset for each answer, to make it similar to what T5 originally did: https://github.com/google-research/text-to-text-transfer-transformer/blob/3c58859b8fe72c2dbca6a43bc775aa510ba7e706/t5/data/preprocessors.py#L925 Here please find an example: For example, a typical example from ReCoRD might look like { 'passsage': 'This is the passage.', 'query': 'A @placeholder is a bird.', 'entities': ['penguin', 'potato', 'pigeon'], 'answers': ['penguin', 'pigeon'], } and I need a prosessor which would turn this example into the following two examples: { 'inputs': 'record query: A @placeholder is a bird. entities: penguin, ' 'potato, pigeon passage: This is the passage.', 'targets': 'penguin', } and { 'inputs': 'record query: A @placeholder is a bird. entities: penguin, ' 'potato, pigeon passage: This is the passage.', 'targets': 'pigeon', } For doing this, one need unbatch, as each entry can map to multiple samples depending on the number of answers, I am not sure how to perform this operation with huggingface datasets library and greatly appreciate your help @lhoestq Thank you very much.
131
equal operation to perform unbatch for huggingface datasets Hi I need to use "unbatch" operation in tensorflow on a huggingface dataset, I could not find this operation, could you kindly direct me how I can do it, here is the problem I am trying to solve: I am considering "record" dataset in SuperGlue and I need to replicate each entery of the dataset for each answer, to make it similar to what T5 originally did: https://github.com/google-research/text-to-text-transfer-transformer/blob/3c58859b8fe72c2dbca6a43bc775aa510ba7e706/t5/data/preprocessors.py#L925 Here please find an example: For example, a typical example from ReCoRD might look like { 'passsage': 'This is the passage.', 'query': 'A @placeholder is a bird.', 'entities': ['penguin', 'potato', 'pigeon'], 'answers': ['penguin', 'pigeon'], } and I need a prosessor which would turn this example into the following two examples: { 'inputs': 'record query: A @placeholder is a bird. entities: penguin, ' 'potato, pigeon passage: This is the passage.', 'targets': 'penguin', } and { 'inputs': 'record query: A @placeholder is a bird. entities: penguin, ' 'potato, pigeon passage: This is the passage.', 'targets': 'pigeon', } For doing this, one need unbatch, as each entry can map to multiple samples depending on the number of answers, I am not sure how to perform this operation with huggingface datasets library and greatly appreciate your help @lhoestq Thank you very much. Hi @mariosasko I think finally I got this, I think you mean to do things in one step, here is the full example for completeness: ``` def unbatch(batch): new_batch = collections.defaultdict(list) keys = batch.keys() for values in zip(*batch.values()): ex = {k: v for k, v in zip(keys, values)} # updates the passage. passage = ex['passage'] passage = re.sub(r'(\.|\?|\!|\"|\')\n@highlight\n', r'\1 ', passage) passage = re.sub(r'\n@highlight\n', '. ', passage) inputs = f"record query: {ex['query']} entities: {', '.join(ex['entities'])} passage: {passage}" # duplicates the samples based on number of answers. num_answers = len(ex["answers"]) num_duplicates = np.maximum(1, num_answers) new_batch["inputs"].extend([inputs] * num_duplicates) #len(ex["answers"])) new_batch["targets"].extend(ex["answers"] if num_answers > 0 else ["<unk>"]) return new_batch data = datasets.load_dataset('super_glue', 'record', split="train", script_version="master") data = data.map(unbatch, batched=True, remove_columns=data.column_names) ``` Thanks a lot again, this was a super great way to do it.
[ -0.024465251713991165, -0.8023654222488403, 0.036325424909591675, -0.05561288073658943, 0.021609896793961525, -0.07333119213581085, 0.2536011338233948, 0.049449220299720764, 0.38152316212654114, 0.24148811399936676, -0.3534255623817444, -0.06547226756811142, 0.039371147751808167, 0.4445895254611969, 0.17294318974018097, -0.2635638415813446, 0.060086991637945175, 0.13238777220249176, -0.2501768171787262, -0.09620266407728195, -0.11241661757230759, 0.03288817033171654, -0.5142917633056641, -0.17909005284309387, 0.3367595970630646, -0.29380521178245544, -0.15012896060943604, -0.25004690885543823, -0.12829358875751495, 0.30188223719596863, 0.4609176814556122, 0.29092833399772644, 0.21230743825435638, 0.45097416639328003, -0.0001249901979463175, 0.2926601469516754, -0.24297039210796356, -0.13375838100910187, 0.11450126022100449, -0.08805463463068008, -0.09685209393501282, -0.0942036509513855, -0.03448372706770897, -0.3120000958442688, -0.17728854715824127, -0.007346789352595806, 0.057662513107061386, -0.3176601827144623, 0.6801811456680298, 0.12360180914402008, 0.01118720043450594, 0.2365359216928482, -0.07502532005310059, 0.06909636408090591, -0.13741907477378845, 0.016166746616363525, -0.020939258858561516, 0.06641919910907745, 0.09173035621643066, 0.039654046297073364, 0.10786224156618118, 0.3016742765903473, -0.06182210147380829, -0.03895998001098633, 0.05091296136379242, 0.13035576045513153, 0.05708089843392372, -0.41064706444740295, 0.14308500289916992, 0.37123072147369385, 0.1794087439775467, -0.3381173610687256, -0.5565251111984253, -0.06256069988012314, 0.04548841342329979, -0.12297169119119644, -0.23596929013729095, 0.17068403959274292, -0.13050952553749084, 0.2065274566411972, -0.41072848439216614, -0.06597442179918289, -0.043280646204948425, 0.04212630167603493, 0.07609638571739197, -0.06340892612934113, -0.2866247892379761, 0.2641927897930145, 0.06872715055942535, 0.11849672347307205, -0.13351468741893768, -0.10687361657619476, 0.13438773155212402, 0.21309642493724823, -0.6556069850921631, -0.22274139523506165, -0.2433805614709854, -0.04946861416101456, 0.2786216735839844, 0.3848896324634552, 0.5002586245536804, -0.0848696231842041, -0.020716777071356773, 0.06510616093873978, 0.07397089153528214, 0.5639442801475525, -0.09176713228225708, -0.2520310580730438, -0.0166104007512331, 0.1402391940355301, 0.01756114885210991, -0.04193591699004173, 0.30556225776672363, -0.09903676807880402, -0.2601805031299591, 0.2037353366613388, 0.401716947555542, -0.07107239216566086, -0.3239938020706177, -0.18349939584732056, -0.32719680666923523, -0.1466226726770401, -0.007003302685916424, 0.12629473209381104, -0.19843508303165436, 0.0695279911160469, 0.184355229139328, 0.06983653455972672, -0.28676655888557434, -0.06191549450159073, -0.17952899634838104, 0.25243282318115234, -0.13913071155548096, -0.0016129357973113656, -0.04393722862005234, -0.21096287667751312, 0.012420454993844032, 0.4680204689502716, 0.044781237840652466, -0.049214594066143036, 0.22294820845127106, -0.14773258566856384, 0.2782619595527649, -0.002751205815002322, 0.19481398165225983, -0.11238163709640503, 0.10899181663990021, 0.053472161293029785, -0.07318722456693649, -0.006998369935899973, -0.044264353811740875, -0.23404017090797424, 0.10502933710813522, -0.02085554227232933, -0.29174715280532837, 0.025285394862294197, -0.20574402809143066, 0.2881164848804474, -0.3421458303928375, 0.4115397036075592, 0.4393233060836792, 0.3590461015701294, -0.053682491183280945, -0.056432075798511505, 0.41317418217658997, -0.01927046850323677, -0.09652873128652573, -0.2679919898509979, 0.3482646942138672, 0.02315507084131241, 0.30757877230644226, 0.28822943568229675, -0.05138041824102402, 0.3208952248096466, -0.253156840801239, -0.09511221200227737, 0.2231656163930893, -0.17476999759674072, -0.41797950863838196, 0.2593773603439331, -0.0811823308467865, 0.29438143968582153, 0.01265595480799675, 0.058135390281677246, -0.11512968689203262, 0.17972837388515472, -0.014045512303709984, 0.28017717599868774, -0.08166609704494476, -0.09733852744102478, -0.020045939832925797, -0.17888599634170532, 0.3267519772052765, -0.09373751282691956, -0.051144883036613464, 0.3327538073062897, 0.04157348349690437, -0.11672790348529816, 0.2596203684806824, -0.4877482056617737, 0.18168018758296967, 0.2622479796409607, 0.24512436985969543, 0.14325565099716187, 0.24288824200630188, -0.15262840688228607, -0.3867458999156952, 0.15052929520606995, -0.33420494198799133, 0.15096227824687958, 0.08889731764793396, -0.32471606135368347, -0.14254391193389893, -0.2196984887123108, -0.15164072811603546, -0.0205252543091774, -0.08478237688541412, -0.1131095439195633, 0.4627566635608673, 0.023746373131871223, -0.3968053460121155, 0.27660760283470154, -0.0825328454375267, 0.09799131006002426, -0.4222599267959595, 0.0488031730055809, 0.23846189677715302, 0.008813456632196903, -0.005917926784604788, 0.1739049255847931, 0.03892863169312477, -0.3525581359863281, 0.08618463575839996, 0.2756897807121277, -0.32014498114585876, 0.0070609948597848415, -0.0751747190952301, 0.06697361171245575, 0.03773079067468643, -0.08971571177244186, -0.13466940820217133, 0.036800336092710495, 0.07518396526575089, -0.06048377603292465, -0.037287283688783646, 0.7736294269561768, -0.08138468861579895, 0.1259879469871521, 0.1066020205616951, -0.04895009845495224, -0.14985880255699158, -0.2755476236343384, -0.16731210052967072, 0.2761719226837158, 0.23568129539489746, -0.22012750804424286, 0.25206682085990906, -0.18066421151161194, -0.22666476666927338, -0.27303168177604675, 0.28957584500312805, 0.02222219854593277, 0.32338747382164, 0.12198281288146973, 0.055422358214855194, 0.2160237729549408, -0.04022134467959404, -0.15599749982357025, 0.36853715777397156, -0.003990354482084513, 0.2545130252838135, 0.35801777243614197, 0.28798532485961914, 0.15234804153442383, 0.050968460738658905, -0.2573584318161011, -0.07444161176681519, 0.0054114824160933495, -0.010023793205618858, 0.11934017390012741, -0.3581905961036682, 0.006307953502982855, 0.041261930018663406, 0.17518888413906097, 0.006913757883012295, -0.0505397692322731, -0.10884193331003189, -0.15349163115024567, -0.19931600987911224, -0.0013040673220530152, -0.20276132225990295, -0.04777742177248001, -0.0915740504860878, 0.014452683739364147, 0.09217959642410278, 0.4318851828575134, 0.24832141399383545, 0.4400371313095093, -0.0472344234585762, 0.3629508912563324, -0.1473095715045929, 0.006606730166822672, 0.06753470748662949, -0.038522813469171524, -0.13261759281158447, -0.22884199023246765, 0.24578729271888733, -0.020264524966478348, 0.01673257164657116, -0.5255942344665527, -0.1940319836139679, 0.23815207183361053, -0.004763353615999222, -0.2378983199596405, 0.3722149133682251, 0.08936386555433273, -0.5399630665779114, -0.11122822016477585, 0.018306251615285873, -0.1314905881881714, -0.5532984733581543, 0.20906886458396912, -0.1560288667678833, 0.1315939724445343, -0.2751111090183258, -0.3274397850036621, -0.10128254443407059, -0.19408610463142395, 0.9283856749534607, -0.34111806750297546, 0.04656711965799332, 0.19616825878620148, -0.267883837223053, 0.07389730215072632, 0.02581368014216423, 0.12244867533445358, -0.09970325231552124, -0.5181102156639099, -0.13647079467773438, 0.0263616144657135, -0.1522430181503296, -0.1412651091814041, -0.06310764700174332, 0.13394370675086975, 0.53875333070755, -0.0023166825994849205, -0.2072088122367859, -0.44112974405288696, -0.22788721323013306, -0.10102108865976334, 0.4474503695964813, 0.17700067162513733, -0.34112921357154846, 0.11885954439640045, -0.0365312285721302, -0.05376558378338814, 0.21130456030368805, -0.00687686400488019, -0.14272920787334442, 0.19219739735126495, 0.02580217458307743, 0.36207014322280884, 0.37073543667793274, 0.31901493668556213, -0.08353108167648315, 0.05429352447390556, -0.26088184118270874, -0.1027701273560524, 0.07085716724395752, -0.38953614234924316, 0.09456737339496613, 0.13661888241767883, 0.21344639360904694, 0.06444323807954788, -0.21145813167095184, 0.314169704914093, -0.1198178231716156, -0.017607901245355606, -0.31522613763809204, -0.33041566610336304, 0.0021316695492714643, -0.19763317704200745, 0.21630977094173431, -0.1318216472864151, -0.1573127955198288, -0.039275094866752625, -0.08845949918031693, 0.2690509557723999, 0.20985794067382812, 0.10983404517173767, 0.10711848735809326, -0.40775176882743835, -0.30521151423454285, -0.5409753918647766, 0.6420143246650696, -0.09644723683595657, 0.2413143366575241, 0.09194406867027283, -0.08665217459201813, 0.08484148979187012, 0.06615913659334183, 1.0803829431533813, -0.08720839023590088, -0.10288172960281372, -0.4584878087043762, -0.5351154208183289, -0.3529352843761444, 0.17829269170761108, -0.22403155267238617, 0.5216463208198547, -0.20151612162590027, 0.43667179346084595, -0.3163001239299774, -0.22941376268863678, 0.38310500979423523, -0.03918919339776039, -0.08682582527399063, -0.1147056519985199, -0.1034918874502182, -0.6376010179519653, -0.10896868258714676, 0.014284202829003334, 0.17502516508102417, 0.16642387211322784, 0.06788042187690735, 0.11981870979070663, -0.3701830506324768, 0.20599620044231415, 0.3532640337944031, -0.12397485971450806, -0.018102208152413368, 0.1862315833568573, -0.09424430131912231, 0.09397327899932861, 0.3174673616886139, -0.24032583832740784, 0.10545489192008972, -0.08417288959026337, -0.5110260844230652, -0.18142524361610413, 0.14486272633075714, 0.43063879013061523, -0.006527145393192768, 0.09082511067390442, 0.47076258063316345, 0.27092865109443665, 0.17090964317321777, -0.2007092982530594, 0.08867555856704712, 0.09924840927124023, 0.46989956498146057, -0.21322084963321686, -0.37080544233322144, 0.23329269886016846, 0.2992039918899536, -0.12401894479990005, 0.30079948902130127, 0.355235755443573, -0.17229369282722473, 0.01969660259783268, -0.08502614498138428, 0.9305516481399536, -0.20576535165309906, 0.055385299026966095, 0.16624079644680023, 0.15245942771434784, 0.5891497731208801, -0.311837375164032, 0.24211330711841583, -0.1372165083885193, -0.5443877577781677, -0.14003373682498932, -0.11192117631435394, 0.1085164025425911, 0.1334478259086609, -0.30482742190361023, 0.3906707167625427, 0.3042512536048889, -0.0892806127667427, -0.05345240980386734, -0.03375624865293503, -0.19320537149906158, -0.08824113756418228, -0.16919930279254913, -0.1124444454908371, -0.03404070809483528, 0.5939663052558899, -0.04187282919883728, 0.0029526008293032646, 0.18441657721996307, -0.02147098444402218, -0.034533049911260605, -0.17518135905265808, -0.5350189208984375, 0.26527541875839233, 0.26612380146980286, -0.1540381908416748, -0.0759144127368927, 0.571686863899231, 0.6944460272789001, -0.13554182648658752, 0.025409750640392303, -0.13890928030014038, 0.04753890633583069, 0.005984253250062466, -0.24997708201408386, -0.07929448038339615, 0.11799822002649307, 0.027909742668271065, -0.2371242642402649, -0.008959589526057243, 0.12502431869506836, 0.0945892184972763, -0.03596581146121025, 0.02415134757757187, -0.04304997995495796, -0.28122782707214355, -0.038164082914590836, 0.1298305094242096, -0.10416640341281891, 0.06698811054229736, -0.07779078930616379, -0.03739551082253456, -0.5551760196685791, 0.17271871864795685, -0.13986587524414062, -0.47182342410087585, 0.016303792595863342, 0.358614057302475, 0.2728104591369629, -0.14446136355400085, 0.4105929136276245, 0.07937745749950409, 0.12351685762405396, -0.05825379863381386, -0.3121369481086731, 0.28126391768455505, -0.44667327404022217, 0.4826536774635315, -0.33326342701911926, 0.2762410342693329, 0.04687337949872017, 0.1860538125038147, 0.09923549741506577, 0.1407223492860794, -0.22394926846027374, -0.25911569595336914, -0.11634176224470139, 0.062432002276182175, 0.20130175352096558, 0.2372535765171051, 0.10000400990247726, 0.3003728985786438, 0.07583285868167877, -0.14643792808055878, -0.16598030924797058, 0.21760539710521698, -0.23730453848838806, 0.19348376989364624, 0.14311058819293976, -0.07615326344966888, 0.25136056542396545, 0.23217537999153137, -0.057826414704322815, 0.2195383906364441, -0.09897138178348541, -0.10252443701028824, -0.04583657532930374, 0.15386290848255157, -0.09286834299564362, 0.023361098021268845, 0.23050445318222046, 0.3027403950691223, -0.015840834006667137, -0.09843473136425018, 0.6481763124465942, 0.29995208978652954, 0.12846332788467407, 0.5035306811332703, 0.007453014608472586, -0.002104506129398942, -0.4534742832183838, -0.29452356696128845, 0.21173889935016632, 0.0077517288736999035, 0.020065955817699432, 0.09806372225284576, -0.05319047346711159, -0.028461117297410965, -0.12613987922668457, -0.07333827018737793, 0.5804972648620605, -0.22784550487995148, -0.030417107045650482, 0.082679383456707, -0.06774594634771347, -0.389681875705719, 0.4106399118900299, -0.1681346595287323, -0.2066206932067871, -0.014543907716870308, -0.06960397958755493, 0.02620600536465645, -0.12124842405319214, 0.22671617567539215, 0.3431793451309204, -0.2564215362071991, 0.02456142194569111, 0.37739863991737366, -0.14936207234859467, 0.3176620304584503, -0.17932482063770294, -0.23064889013767242, 0.03594116494059563, -0.18040502071380615, 0.14048786461353302, 0.44475415349006653, 0.03610088676214218, 0.09672045707702637, -0.07803355902433395, 0.11919218301773071, 0.2925366163253784, -0.06842074543237686, -0.2099962830543518, 0.4174324870109558, -0.3103862404823303, 0.2381179928779602, 0.29559922218322754, -0.4263083040714264, 0.06925062090158463, 0.3971647620201111, -0.010781125165522099, 0.39508622884750366, -0.07957641780376434, 0.5769340395927429, -0.04241142049431801, -0.29231712222099304, 0.12339785695075989, 0.47119176387786865, -0.22320300340652466, -0.13911600410938263, -0.15960565209388733, -0.12543654441833496, -0.0932336151599884, 0.07866953313350677, -0.03782424330711365, 0.0231222715228796, 0.19004704058170319, 0.06850605458021164, 0.10574939846992493, 0.042623553425073624, -0.09702283889055252, 0.2900155186653137, 0.28176721930503845, -0.0030865187291055918, -0.21675793826580048, 0.3081444203853607, -0.22935828566551208, 0.02458380162715912, 0.6840303540229797, -0.02125292830169201, -0.0011888385051861405, -0.3366941213607788, 0.6613734364509583, 0.2384198009967804, -0.1470417082309723, 0.002266228897497058, -0.06457294523715973, 0.027070244774222374, 0.05545041710138321, -0.025122927501797676, 0.012793458998203278, -0.031258147209882736, 0.17852124571800232, -0.12076199799776077, 0.13669012486934662, -0.4874289035797119, 0.14451390504837036, -0.04622576758265495, -0.07356864213943481, -0.22271180152893066, 0.21864868700504303, -0.2597883343696594, -0.3497096300125122, 0.11948162317276001, -0.10829101502895355, 0.07927723228931427, 0.07227618247270584, -0.02187967114150524, -0.19361545145511627, 0.29462939500808716, 0.3574357032775879, 0.427312433719635, -0.1635020524263382, -0.11607515811920166, -0.1072797179222107, 0.01793256774544716, 0.2351534068584442, -0.2670190632343292, 0.3736531734466553, 0.08780364692211151, -0.009118090383708477, -0.019941652193665504, -0.022767316550016403, -0.12918074429035187, -0.23035673797130585, 0.07302159070968628, -0.3877381384372711, -0.23426443338394165, -0.07096315920352936, 0.18666885793209076, 0.26847201585769653, -0.32148808240890503, 0.07062393426895142, 0.36228474974632263, -0.2053527981042862, -0.0401141457259655, 0.3881101608276367, 0.007868051528930664, 0.09180741757154465, -0.019594185054302216, 0.17728720605373383, -0.06718268245458603, -0.07976924628019333, -0.05434468016028404, 0.46199697256088257, 0.14007557928562164, -0.3493223190307617, 0.3237394690513611, -0.10572114586830139, 0.10218820720911026, -0.2573278844356537, -0.3548608720302582, -0.10496174544095993, 0.22014981508255005, 0.5885672569274902, -0.47772347927093506, -0.21918022632598877, 0.14009054005146027, 0.024755200371146202, 0.003798894817009568, 0.3690435588359833, 0.8464450240135193, -0.12578611075878143, -0.05672120675444603, -0.2206314355134964, -0.08467227965593338, 0.5872297286987305, -0.23555439710617065, -0.19414344429969788, 0.04367721080780029, 0.22724491357803345, -0.07927150279283524, -0.37212854623794556, -0.6097919344902039, 0.1408356875181198, 0.2747105062007904, -0.09518015384674072, -0.11698763072490692, 0.44902917742729187, -0.0427568294107914, -0.13329844176769257, 0.11498094350099564, 0.0669763833284378, 0.3785044550895691, -0.3848000168800354, 0.19866879284381866, -0.3128778040409088 ]
https://github.com/huggingface/datasets/issues/2765
BERTScore Error
Hi, The `use_fast_tokenizer` argument has been recently added to the bert-score lib. I've opened a PR with the fix. In the meantime, you can try to downgrade the version of bert-score with the following command to make the code work: ``` pip uninstall bert-score pip install "bert-score<0.3.10" ```
## Describe the bug A clear and concise description of what the bug is. ## Steps to reproduce the bug ```python predictions = ["hello there", "general kenobi"] references = ["hello there", "general kenobi"] bert = load_metric('bertscore') bert.compute(predictions=predictions, references=references,lang='en') ``` # Bug `TypeError: get_hash() missing 1 required positional argument: 'use_fast_tokenizer'` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: - Platform: Colab - Python version: - PyArrow version:
48
BERTScore Error ## Describe the bug A clear and concise description of what the bug is. ## Steps to reproduce the bug ```python predictions = ["hello there", "general kenobi"] references = ["hello there", "general kenobi"] bert = load_metric('bertscore') bert.compute(predictions=predictions, references=references,lang='en') ``` # Bug `TypeError: get_hash() missing 1 required positional argument: 'use_fast_tokenizer'` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: - Platform: Colab - Python version: - PyArrow version: Hi, The `use_fast_tokenizer` argument has been recently added to the bert-score lib. I've opened a PR with the fix. In the meantime, you can try to downgrade the version of bert-score with the following command to make the code work: ``` pip uninstall bert-score pip install "bert-score<0.3.10" ```
[ -0.13576827943325043, 0.1683022826910019, 0.035421520471572876, 0.20929816365242004, 0.347331702709198, 0.011661837808787823, 0.22899214923381805, 0.35304132103919983, -0.11994273960590363, 0.3440088629722595, 0.07694387435913086, 0.4752254784107208, -0.11414738744497299, -0.11627442389726639, -0.08180456608533859, -0.3451917767524719, 0.09187474101781845, 0.3889159560203552, 0.09787362068891525, -0.1766299307346344, -0.2902541756629944, -0.032173193991184235, -0.18905127048492432, 0.1411735862493515, -0.22269690036773682, 0.03216393664479256, -0.22956348955631256, -0.10668355971574783, -0.29445210099220276, -0.47021135687828064, 0.24401678144931793, -0.026259196922183037, -0.04977203160524368, 0.43499377369880676, -0.00011067999730585143, -0.03633035346865654, 0.2661399841308594, -0.04282860457897186, 0.05340354144573212, -0.36809033155441284, -0.584405779838562, -0.2591187655925751, 0.03637579083442688, -0.33732515573501587, 0.020599616691470146, 0.027290739119052887, -0.009157443419098854, -0.2054019421339035, 0.20476117730140686, 0.3369058072566986, 0.23733918368816376, 0.14034847915172577, -0.12280406802892685, -0.32474854588508606, 0.3542505204677582, -0.28804856538772583, 0.035972341895103455, 0.23953421413898468, -0.25173595547676086, -0.19559475779533386, -0.15826687216758728, 0.3248480260372162, -0.05132431536912918, 0.0017431291053071618, 0.2958141267299652, 0.24458011984825134, -0.08563646674156189, 0.02266240492463112, 0.08799895644187927, 0.17748291790485382, 0.015308010391891003, -0.2262357622385025, -0.39052706956863403, 0.27210599184036255, -0.05088089779019356, -0.23268568515777588, 0.008508843369781971, -0.23766158521175385, 0.032926782965660095, -0.20677070319652557, -0.3441343307495117, -0.12785129249095917, -0.19459161162376404, 0.05518025904893875, -0.01312717143446207, 0.39236047863960266, 0.0053676278330385685, 0.039123766124248505, 0.30179479718208313, -0.16332590579986572, -0.08806433528661728, -0.0763620138168335, 0.10499104112386703, 0.20261667668819427, -0.07028228789567947, 0.010894245468080044, 0.2954884171485901, 0.09097068011760712, 0.185487300157547, -0.5502122044563293, 0.022006969898939133, 0.01817556843161583, 0.05335313081741333, 0.20646019279956818, 0.019106203690171242, 0.3505941331386566, -0.1541590839624405, 0.21645420789718628, 0.23250225186347961, -0.0649733692407608, -0.17116039991378784, -0.05479290336370468, -0.03159425035119057, -0.07886846363544464, 0.4890435039997101, 0.1721760630607605, -0.22105620801448822, -0.20104694366455078, -0.23764093220233917, 0.18538275361061096, -0.4741440415382385, -0.045296501368284225, 0.21064238250255585, 0.43730002641677856, -0.19174611568450928, 0.14061927795410156, -0.19002357125282288, 0.04718337580561638, -0.17881256341934204, 0.19521690905094147, -0.2828831970691681, 0.2730630040168762, -0.35465842485427856, -0.09771478921175003, 0.10494992136955261, -0.19916632771492004, 0.3755952715873718, 0.0675269365310669, 0.4369862675666809, 0.17163309454917908, -0.1321008950471878, -0.27425864338874817, 0.1550833284854889, -0.01907542534172535, 0.045855745673179626, -0.058825891464948654, 0.19235824048519135, -0.1388750970363617, -0.23383577167987823, 0.13222159445285797, -0.28978288173675537, -0.32722723484039307, 0.04076003283262253, 0.2200026512145996, -0.18179571628570557, -0.0427132248878479, -0.21427971124649048, 0.0517423115670681, 0.15659883618354797, -0.25178220868110657, -0.19646990299224854, -0.24441127479076385, -0.3549410104751587, -0.228615865111351, 0.37912699580192566, 0.16252785921096802, -0.2698107063770294, -0.047981247305870056, -0.10462438315153122, 0.2611284852027893, 0.2512706518173218, 0.1937282383441925, -0.231717050075531, 0.3143139183521271, -0.110328808426857, 0.08381927758455276, 0.32694515585899353, -0.5421461462974548, -0.4934963583946228, -0.2773629128932953, 0.11786998808383942, -0.170684814453125, 0.03300909698009491, 0.06720491498708725, 0.09501005709171295, 0.03907990828156471, 0.2723299264907837, -0.13521069288253784, 0.0036767213605344296, 0.1628977209329605, -0.2928624451160431, -0.17662455141544342, 0.15689809620380402, -0.042933620512485504, 0.42672231793403625, -0.20147857069969177, -0.1615753471851349, 0.2878133952617645, -0.03856400400400162, -0.14646033942699432, -0.02065712958574295, 0.08098847419023514, 0.570014476776123, -0.28686070442199707, 0.2906683385372162, -0.23171871900558472, 0.018131766468286514, 0.19436544179916382, -0.007765037938952446, 0.26457610726356506, -0.21206727623939514, -0.11550115793943405, -0.46186476945877075, 0.11628062278032303, -0.09276941418647766, 0.10532820969820023, 0.15487782657146454, -0.055734772235155106, 0.27007830142974854, 0.17274121940135956, -0.06295254081487656, -0.2985925078392029, 0.07403658330440521, -0.1582508087158203, 0.07573532313108444, 0.2299349308013916, -0.2951507568359375, -0.20426999032497406, 0.3250260651111603, 0.27694904804229736, 0.3096359074115753, 0.0713861808180809, -0.181941419839859, 0.18813510239124298, -0.04601077735424042, -0.06934258341789246, 0.09172528982162476, 0.2144995480775833, 0.058268994092941284, -0.40493011474609375, 0.08287529647350311, 0.13040634989738464, 0.313761442899704, 0.04756251722574234, -0.17442388832569122, 0.4764540493488312, 0.06484650820493698, 0.12584659457206726, -0.007634794805198908, -0.01762964390218258, 0.26788097620010376, 0.14166449010372162, 0.2068474143743515, -0.328474760055542, 0.1557704210281372, -0.0036577112041413784, 0.16811040043830872, -0.021475104615092278, 0.18559610843658447, -0.1167834997177124, 0.5808286070823669, 0.3723367750644684, 0.08879709988832474, 0.2555125653743744, -0.227700874209404, -0.15909452736377716, -0.13345834612846375, -0.28533482551574707, 0.3417615294456482, 0.23367394506931305, -0.0786181092262268, -0.03364766761660576, -0.15374627709388733, -0.07750623673200607, 0.1249392181634903, 0.15407179296016693, -0.07389659434556961, -0.03803633898496628, 0.331508994102478, -0.059774868190288544, -0.1904030740261078, -0.12014370411634445, -0.020325256511569023, 0.4591872990131378, -0.3168027997016907, 0.29474079608917236, -0.13165400922298431, 0.1890827864408493, -0.04938935488462448, -0.6532366871833801, -0.05919972434639931, -0.37938618659973145, 0.2373262345790863, -0.0883881077170372, -0.04039314389228821, 0.3508843779563904, 0.0579356886446476, 0.17760394513607025, 0.17115069925785065, -0.10744170844554901, -0.2738972008228302, -0.5320509672164917, -0.2634778916835785, 0.062254901975393295, -0.11565938591957092, 0.06578025221824646, 0.25179892778396606, -0.2744706869125366, 0.11204127967357635, -0.1333208680152893, -0.5113039612770081, 0.09967977553606033, -0.3408312499523163, 0.47031277418136597, 0.3321337103843689, -0.17790772020816803, -0.5641240477561951, -0.23291735351085663, 0.46546536684036255, -0.1895074099302292, -0.07044054567813873, 0.2736673355102539, -0.0602833554148674, -0.09715308248996735, 0.002050430281087756, -0.3575296998023987, 0.03412093222141266, 0.00284621212631464, 0.029158148914575577, 0.07969380170106888, 0.16522030532360077, -0.17094340920448303, 0.2613537311553955, 0.29877352714538574, -0.06807810813188553, -0.07118650525808334, -0.21960654854774475, -0.4031372368335724, 0.550020694732666, -0.19090761244297028, -0.2825052738189697, -0.16572771966457367, -0.16925795376300812, 0.19878216087818146, 0.048779722303152084, -0.1322614699602127, -0.5942786931991577, -0.0986286848783493, 0.1793268918991089, -0.07645245641469955, 0.2097880095243454, 0.15287156403064728, 0.3122163712978363, -0.14860959351062775, -0.2454248070716858, -0.16196903586387634, 0.17451010644435883, -0.17106670141220093, 0.1097460612654686, -0.23031549155712128, 0.33251312375068665, 0.10211913287639618, 0.9215056896209717, 0.1928439885377884, -0.2365649938583374, 0.260007381439209, -0.1881909966468811, 0.11398078501224518, -0.17717480659484863, -0.4246751666069031, 0.0952083170413971, -0.04680030047893524, -0.10128537565469742, 0.3070324957370758, -0.05221755802631378, 0.10643913596868515, -0.21771661937236786, -0.07575705647468567, -0.28721368312835693, -0.34654346108436584, 0.10412253439426422, -0.055419210344552994, 0.23127184808254242, 0.24523751437664032, 0.23111532628536224, -0.4509415924549103, -0.2976680397987366, 0.14376090466976166, -0.3137774169445038, 0.009574799798429012, -0.17112602293491364, 0.09739227592945099, -0.3218022286891937, -0.34037768840789795, 0.4270818531513214, 0.4881604313850403, 0.29873937368392944, 0.045780979096889496, 0.13438361883163452, -0.0436956025660038, -0.12908636033535004, 0.40315258502960205, -0.024134071543812752, 0.17420895397663116, 0.009117040783166885, 0.04972647875547409, -0.03846355527639389, 0.1221545934677124, -0.40141555666923523, 0.11896591633558273, 0.02622375823557377, 0.42250001430511475, -0.2948801517486572, 0.11390142142772675, 0.16777390241622925, 0.03419811651110649, -0.17368833720684052, -0.07206521183252335, -0.4913312792778015, -0.10671688616275787, -0.07342152297496796, 0.3320939540863037, 0.013651086017489433, 0.30427461862564087, 0.019964566454291344, -0.06973563134670258, 0.062382590025663376, -0.28046944737434387, 0.2110206037759781, 0.3583398461341858, 0.19562919437885284, -0.009336776100099087, 0.26919025182724, -0.008066468872129917, -0.23225530982017517, 0.5070555210113525, 0.18468426167964935, -0.247304767370224, -0.6065499186515808, -0.19099991023540497, 0.000640100275631994, 0.5480852723121643, 0.07416971027851105, -0.19022023677825928, -0.09977981448173523, -0.07316165417432785, 0.06021872162818909, -0.06790900975465775, 0.3978590965270996, 0.4066798686981201, 0.04347766563296318, -0.3172377943992615, -0.17843720316886902, 0.5495811104774475, 0.28272026777267456, -0.1120697557926178, 0.01967380754649639, 0.5535879135131836, -0.23788850009441376, 0.42796245217323303, 0.3329146206378937, 0.9520225524902344, -0.12164311110973358, -0.036143891513347626, 0.2687772512435913, 0.059181902557611465, 0.5790297389030457, 0.1037803590297699, 0.22352220118045807, -0.4127734899520874, -0.2533383369445801, 0.019741008058190346, -0.11174048483371735, -0.05867382511496544, -0.10412542521953583, -0.3604672849178314, 0.4359687566757202, -0.2815932035446167, 0.25541555881500244, 0.08813922852277756, -0.08588266372680664, 0.15661141276359558, -0.19374974071979523, -0.35088783502578735, 0.17155645787715912, -0.06478321552276611, 0.010442061349749565, -0.17810919880867004, -0.08380085229873657, -0.1293509304523468, -0.35481396317481995, -0.24609580636024475, 0.05186082050204277, -0.04930022358894348, 0.11462818086147308, -0.11722224950790405, -0.3084896504878998, 0.06023648753762245, 0.056689515709877014, 0.4155307412147522, 0.4209895431995392, -0.25822019577026367, 0.26799556612968445, -0.06488200277090073, 0.18117623031139374, 0.10855864733457565, 0.07178115844726562, 0.10419085621833801, -0.05523841828107834, -0.1578826904296875, 0.2358063906431198, -0.08191481232643127, -0.10716966539621353, -0.08343329280614853, 0.015691014006733894, 0.2633226811885834, -0.23502708971500397, 0.04737061262130737, -0.13923504948616028, 0.14518606662750244, -0.32956188917160034, 0.18027548491954803, 0.14523744583129883, -0.15700194239616394, 0.3131345212459564, 0.00188138906378299, -0.15457671880722046, 0.10936068743467331, 0.41377532482147217, 0.1025104969739914, -0.02217870019376278, 0.43742626905441284, -0.14293770492076874, -0.2596268057823181, -0.1375301629304886, -0.16145844757556915, 0.16632312536239624, -0.16703735291957855, 0.18607014417648315, 0.09461554884910583, 0.2306501567363739, 0.05226913467049599, 0.5719161033630371, 0.11777736246585846, -0.1696174144744873, 0.1363871693611145, -0.309287965297699, -0.108282171189785, 0.11928025633096695, -0.08645877987146378, -0.0076830447651445866, 0.0035057696513831615, 0.1689172387123108, -0.15052787959575653, 0.32586389780044556, -0.3601907193660736, 0.01265103928744793, -0.47003698348999023, 0.20612630248069763, -0.24738337099552155, -0.01730842888355255, 0.24520190060138702, -0.02309885434806347, 0.10073505342006683, 0.2630828320980072, -0.17776821553707123, -0.2205411046743393, -0.12873564660549164, 0.0916389748454094, 0.11044811457395554, 0.05460934713482857, -0.006481349468231201, 0.12289972603321075, -0.1365969479084015, -0.21558569371700287, -0.12198040634393692, 0.2991619408130646, -0.007604837417602539, 0.24530252814292908, 0.18210959434509277, 0.10808101296424866, 0.19980593025684357, -0.21484455466270447, 0.11807373911142349, 0.19978775084018707, -0.02937265858054161, 0.22186066210269928, -0.007931034080684185, -0.138214573264122, 0.2635359466075897, 0.029499776661396027, 0.46439918875694275, -0.022497285157442093, 0.24248000979423523, -0.1946604698896408, -0.10036159306764603, 0.14912304282188416, 0.286636084318161, 0.371991902589798, -0.16229577362537384, -0.1772247552871704, 0.34760063886642456, 0.19720453023910522, -0.41307803988456726, -0.18333670496940613, -0.015085111372172832, 0.21775691211223602, 0.04689502343535423, 0.1587258279323578, -0.035380538552999496, -0.054502084851264954, 0.02749498561024666, -0.06823986023664474, 0.18348915874958038, -0.20672538876533508, -0.051126521080732346, 0.013319590128958225, -0.07304697483778, 0.12876510620117188, 0.35443976521492004, 0.08956412225961685, 0.33181923627853394, 0.5564892292022705, -0.26815125346183777, 0.48290324211120605, -0.20444868505001068, 0.08783107995986938, -0.13256947696208954, 0.02852843515574932, -0.107297383248806, 0.1365872472524643, 0.1400080919265747, 0.05896816775202751, 0.015857096761465073, 0.8266774415969849, -0.08034690469503403, 0.10146038979291916, -0.38873594999313354, 0.16838496923446655, -0.011995119974017143, -0.11710886657238007, -0.05477509647607803, -0.2624058425426483, -0.21067310869693756, 0.08111695200204849, 0.015891466289758682, 0.12458217144012451, 0.4215366840362549, 0.20927517116069794, 0.14435184001922607, -0.2554768919944763, -0.17487631738185883, 0.4411930441856384, 0.25747090578079224, -0.2895911633968353, 0.10989218950271606, 0.15922419726848602, -0.11177529394626617, -0.12807223200798035, 0.35117384791374207, 0.2745371460914612, 0.3522094786167145, -0.177616149187088, -0.14803723990917206, -0.2610132098197937, -0.04314471781253815, -0.002683156169950962, 0.3742755055427551, 0.18803362548351288, 0.046406470239162445, 0.14897312223911285, 0.15280860662460327, -0.19901211559772491, 0.25352028012275696, 0.02065030299127102, 0.4681149423122406, -0.06584839522838593, 0.3174077272415161, 0.03983434662222862, 0.03241974487900734, 0.0036228112876415253, -0.20029056072235107, -0.2993038594722748, 0.13302841782569885, 0.051754895597696304, 0.26076480746269226, -0.023701529949903488, -0.2117723822593689, 0.10490044206380844, 0.13954225182533264, 0.4409419000148773, 0.2791270613670349, 0.14694629609584808, -0.6404085159301758, -0.044928763061761856, -0.45181939005851746, 0.16293735802173615, -0.020812399685382843, 0.30083850026130676, -0.15642490983009338, -0.04148309677839279, -0.13594184815883636, 0.26498356461524963, -0.020406903699040413, -0.101761095225811, -0.21036092936992645, 0.07306192815303802, -0.4150726795196533, 0.039668940007686615, -0.39520540833473206, -0.4520670473575592, 0.1354968100786209, -0.19344767928123474, -0.02773345448076725, -0.34009402990341187, 0.12211622297763824, -0.25607913732528687, -0.2969571650028229, 0.12148525565862656, 0.14311569929122925, 0.6734747290611267, 0.27152007818222046, 0.42507943511009216, -0.054611608386039734, 0.05037638545036316, 0.08250269293785095, -0.16548389196395874, -0.02560700848698616, -0.009933955036103725, 0.008709587156772614, 0.14728786051273346, -0.14289352297782898, 0.002855955855920911, -0.30119040608406067, 0.176022008061409, 0.0736621841788292, -0.20878732204437256, -0.3524348735809326, 0.10069888085126877, -0.017918674275279045, -0.09208958595991135, -0.26639324426651, 0.1667679399251938, -0.018793640658259392, 0.3740313649177551, -0.4058200716972351, -0.26538074016571045, 0.5419951677322388, -0.519766628742218, -0.35982224345207214, -0.08074991405010223, 0.2593531906604767, 0.04813579469919205, -0.3689703643321991, -0.7990339398384094, -0.007476608734577894, 0.36574622988700867, 0.24526150524616241, -0.29545408487319946, -0.0031835068948566914, -0.06107230857014656, 0.13613799214363098, -0.12063543498516083, 0.24167677760124207, -0.0414121150970459, -0.11262901872396469, 0.06809765845537186, -0.2633720636367798 ]
https://github.com/huggingface/datasets/issues/2763
English wikipedia datasets is not clean
Hi ! Certain users might need these data (for training or simply to explore/index the dataset). Feel free to implement a map function that gets rid of these paragraphs and process the wikipedia dataset with it before training
## Describe the bug Wikipedia english dumps contain many wikipedia paragraphs like "References", "Category:" and "See Also" that should not be used for training. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import load_dataset w = load_dataset('wikipedia', '20200501.en') print(w['train'][0]['text']) ``` > 'Yangliuqing () is a market town in Xiqing District, in the western suburbs of Tianjin, People\'s Republic of China. Despite its relatively small size, it has been named since 2006 in the "famous historical and cultural market towns in China".\n\nIt is best known in China for creating nianhua or Yangliuqing nianhua. For more than 400 years, Yangliuqing has in effect specialised in the creation of these woodcuts for the New Year. wood block prints using vivid colourschemes to portray traditional scenes of children\'s games often interwoven with auspiciouse objects.\n\n, it had 27 residential communities () and 25 villages under its administration.\n\nShi Family Grand Courtyard\n\nShi Family Grand Courtyard (Tiānjīn Shí Jiā Dà Yuàn, 天津石家大院) is situated in Yangliuqing Town of Xiqing District, which is the former residence of wealthy merchant Shi Yuanshi - the 4th son of Shi Wancheng, one of the eight great masters in Tianjin. First built in 1875, it covers over 6,000 square meters, including large and small yards and over 200 folk houses, a theater and over 275 rooms that served as apartments and places of business and worship for this powerful family. Shifu Garden, which finished its expansion in October 2003, covers 1,200 square meters, incorporates the elegance of imperial garden and delicacy of south garden. Now the courtyard of Shi family covers about 10,000 square meters, which is called the first mansion in North China. Now it serves as the folk custom museum in Yangliuqing, which has a large collection of folk custom museum in Yanliuqing, which has a large collection of folk art pieces like Yanliuqing New Year pictures, brick sculpture.\n\nShi\'s ancestor came from Dong\'e County in Shandong Province, engaged in water transport of grain. As the wealth gradually accumulated, the Shi Family moved to Yangliuqing and bought large tracts of land and set up their residence. Shi Yuanshi came from the fourth generation of the family, who was a successful businessman and a good household manager, and the residence was thus enlarged for several times until it acquired the present scale. It is believed to be the first mansion in the west of Tianjin.\n\nThe residence is symmetric based on the axis formed by a passageway in the middle, on which there are four archways. On the east side of the courtyard, there are traditional single-story houses with rows of rooms around the four sides, which was once the living area for the Shi Family. The rooms on north side were the accountants\' office. On the west are the major constructions including the family hall for worshipping Buddha, theater and the south reception room. On both sides of the residence are side yard rooms for maids and servants.\n\nToday, the Shi mansion, located in the township of Yangliuqing to the west of central Tianjin, stands as a surprisingly well-preserved monument to China\'s pre-revolution mercantile spirit. It also serves as an on-location shoot for many of China\'s popular historical dramas. Many of the rooms feature period furniture, paintings and calligraphy, and the extensive Shifu Garden.\n\nPart of the complex has been turned into the Yangliuqing Museum, which includes displays focused on symbolic aspects of the courtyards\' construction, local folk art and customs, and traditional period furnishings and crafts.\n\n**See also \n\nList of township-level divisions of Tianjin\n\nReferences \n\n http://arts.cultural-china.com/en/65Arts4795.html\n\nCategory:Towns in Tianjin'** ## Expected results I expect no junk in the data. ## Actual results Specify the actual results or traceback. ## Environment info - `datasets` version: 1.10.2 - Platform: macOS-10.15.7-x86_64-i386-64bit - Python version: 3.8.5 - PyArrow version: 3.0.0
38
English wikipedia datasets is not clean ## Describe the bug Wikipedia english dumps contain many wikipedia paragraphs like "References", "Category:" and "See Also" that should not be used for training. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import load_dataset w = load_dataset('wikipedia', '20200501.en') print(w['train'][0]['text']) ``` > 'Yangliuqing () is a market town in Xiqing District, in the western suburbs of Tianjin, People\'s Republic of China. Despite its relatively small size, it has been named since 2006 in the "famous historical and cultural market towns in China".\n\nIt is best known in China for creating nianhua or Yangliuqing nianhua. For more than 400 years, Yangliuqing has in effect specialised in the creation of these woodcuts for the New Year. wood block prints using vivid colourschemes to portray traditional scenes of children\'s games often interwoven with auspiciouse objects.\n\n, it had 27 residential communities () and 25 villages under its administration.\n\nShi Family Grand Courtyard\n\nShi Family Grand Courtyard (Tiānjīn Shí Jiā Dà Yuàn, 天津石家大院) is situated in Yangliuqing Town of Xiqing District, which is the former residence of wealthy merchant Shi Yuanshi - the 4th son of Shi Wancheng, one of the eight great masters in Tianjin. First built in 1875, it covers over 6,000 square meters, including large and small yards and over 200 folk houses, a theater and over 275 rooms that served as apartments and places of business and worship for this powerful family. Shifu Garden, which finished its expansion in October 2003, covers 1,200 square meters, incorporates the elegance of imperial garden and delicacy of south garden. Now the courtyard of Shi family covers about 10,000 square meters, which is called the first mansion in North China. Now it serves as the folk custom museum in Yangliuqing, which has a large collection of folk custom museum in Yanliuqing, which has a large collection of folk art pieces like Yanliuqing New Year pictures, brick sculpture.\n\nShi\'s ancestor came from Dong\'e County in Shandong Province, engaged in water transport of grain. As the wealth gradually accumulated, the Shi Family moved to Yangliuqing and bought large tracts of land and set up their residence. Shi Yuanshi came from the fourth generation of the family, who was a successful businessman and a good household manager, and the residence was thus enlarged for several times until it acquired the present scale. It is believed to be the first mansion in the west of Tianjin.\n\nThe residence is symmetric based on the axis formed by a passageway in the middle, on which there are four archways. On the east side of the courtyard, there are traditional single-story houses with rows of rooms around the four sides, which was once the living area for the Shi Family. The rooms on north side were the accountants\' office. On the west are the major constructions including the family hall for worshipping Buddha, theater and the south reception room. On both sides of the residence are side yard rooms for maids and servants.\n\nToday, the Shi mansion, located in the township of Yangliuqing to the west of central Tianjin, stands as a surprisingly well-preserved monument to China\'s pre-revolution mercantile spirit. It also serves as an on-location shoot for many of China\'s popular historical dramas. Many of the rooms feature period furniture, paintings and calligraphy, and the extensive Shifu Garden.\n\nPart of the complex has been turned into the Yangliuqing Museum, which includes displays focused on symbolic aspects of the courtyards\' construction, local folk art and customs, and traditional period furnishings and crafts.\n\n**See also \n\nList of township-level divisions of Tianjin\n\nReferences \n\n http://arts.cultural-china.com/en/65Arts4795.html\n\nCategory:Towns in Tianjin'** ## Expected results I expect no junk in the data. ## Actual results Specify the actual results or traceback. ## Environment info - `datasets` version: 1.10.2 - Platform: macOS-10.15.7-x86_64-i386-64bit - Python version: 3.8.5 - PyArrow version: 3.0.0 Hi ! Certain users might need these data (for training or simply to explore/index the dataset). Feel free to implement a map function that gets rid of these paragraphs and process the wikipedia dataset with it before training
[ -0.02174973487854004, 0.218051940202713, -0.10638955235481262, 0.4800746440887451, 0.25481581687927246, 0.12689900398254395, 0.3188248872756958, 0.3147779107093811, 0.21053005754947662, 0.0805182084441185, -0.1847253143787384, 0.2396586686372757, 0.3409658670425415, -0.22265587747097015, 0.20596599578857422, -0.35970181226730347, 0.20958922803401947, 0.054064828902482986, -0.35351431369781494, -0.2804774343967438, -0.2011401355266571, -0.0445801317691803, -0.2302432805299759, 0.2511754631996155, -0.39139434695243835, -0.0602717325091362, -0.15132001042366028, 0.04641479253768921, -0.027870969846844673, -0.2779789865016937, 0.05632539466023445, -0.21144483983516693, -0.26335573196411133, 0.3735167980194092, -0.00010485804523341358, -0.03516766428947449, 0.3287270963191986, 0.03193427249789238, -0.1813075989484787, 0.16145436465740204, -0.4102667272090912, -0.24407583475112915, -0.17739084362983704, -0.4298768639564514, 0.014951417222619057, -0.13564972579479218, 0.06098352372646332, 0.1326296180486679, 0.2397332340478897, 0.25250622630119324, 0.26513832807540894, -0.19256475567817688, -0.08548510819673538, -0.1452978402376175, 0.23078100383281708, 0.20068632066249847, -0.13397641479969025, 0.10437663644552231, -0.1793820559978485, -0.08103467524051666, -0.34280863404273987, 0.47426488995552063, -0.18788570165634155, -0.0846632793545723, -0.0016511942958459258, 0.058264438062906265, 0.0034018722362816334, -0.16309945285320282, 0.3464978039264679, 0.407431036233902, 0.3778395652770996, -0.25579833984375, -0.210494726896286, 0.035994529724121094, -0.19384151697158813, -0.019906530156731606, 0.22064071893692017, 0.40317538380622864, -0.1245586946606636, 0.23142795264720917, -0.00013205563300289214, -0.16584870219230652, -0.18036210536956787, 0.3355073928833008, -0.07780197262763977, 0.35130640864372253, 0.07841336727142334, -0.06827190518379211, -0.12366154044866562, -0.28634485602378845, 0.10123863816261292, -0.19753161072731018, 0.0682561844587326, 0.34700658917427063, 0.044678039848804474, 0.05259189009666443, 0.11366436630487442, 0.20809122920036316, 0.2858697772026062, -0.13336347043514252, -0.26520347595214844, -0.08826533704996109, -0.13670673966407776, 0.03731292113661766, 0.11675790697336197, -0.2515016198158264, -0.03222944214940071, 0.1256178617477417, 0.22202585637569427, 0.15602265298366547, -0.10695801675319672, 0.24130764603614807, 0.19842372834682465, -0.21498465538024902, -0.08748865127563477, -0.1044265478849411, 0.08139439672231674, -0.18357449769973755, -0.30461981892585754, 0.5948890447616577, -0.37113460898399353, -0.13187620043754578, -0.2979770600795746, 0.3457997441291809, -0.12816384434700012, -0.04588485136628151, 0.1415422409772873, 0.05135337635874748, -0.2917692959308624, -0.18378742039203644, -0.22168532013893127, 0.2715577781200409, -0.12832076847553253, 0.03290698304772377, -0.004677886608988047, -0.16795814037322998, 0.20804999768733978, 0.3736847937107086, -0.1623069941997528, -0.1798122674226761, -0.33415472507476807, -0.2787852883338928, 0.19353021681308746, 0.18239013850688934, -0.19248656928539276, -0.017530307173728943, 0.14665260910987854, -0.46680936217308044, -0.05286906287074089, 0.21004514396190643, -0.14897824823856354, 0.008156132884323597, -0.3441656529903412, 0.29146623611450195, -0.05299703776836395, -0.03882969915866852, 0.2570791244506836, 0.15823879837989807, 0.3505282998085022, 0.18394717574119568, 0.31428831815719604, 0.31851625442504883, -0.11661797016859055, -0.05577458441257477, 0.15682387351989746, 0.380423367023468, -0.12995681166648865, -0.21049539744853973, -0.06217541918158531, -0.013019369915127754, 0.33330386877059937, 0.3461741805076599, 0.05019382759928703, 0.6008312106132507, -0.0544617585837841, 0.1438075304031372, 0.20689229667186737, -0.015453649684786797, -0.3052201569080353, 0.2074413001537323, 0.03765318915247917, 0.07930716872215271, 0.01976809836924076, 0.017500586807727814, 0.16821761429309845, 0.24184927344322205, 0.3015217185020447, 0.24455979466438293, 0.3042181134223938, 0.16392797231674194, -0.37877699732780457, -0.36027106642723083, 0.3326548933982849, -0.061625201255083084, 0.18654969334602356, -0.03776147589087486, 0.17373937368392944, 0.4814157485961914, 0.3857310712337494, -0.14468958973884583, 0.10190922766923904, 0.3164464831352234, -0.01440381072461605, 0.17530511319637299, 0.211282879114151, -0.1105104386806488, 0.02690191939473152, -0.011826494708657265, 0.13727732002735138, 0.2664980888366699, -0.24428477883338928, -0.3616580069065094, -0.28676435351371765, 0.09223656356334686, -0.30690595507621765, -0.36339616775512695, 0.263248085975647, -0.01788560301065445, -0.10313255339860916, 0.23703241348266602, 0.18502528965473175, -0.04536233842372894, -0.4526403546333313, -0.01653999090194702, -0.20006811618804932, 0.26412245631217957, -0.36939331889152527, 0.11417501419782639, -0.25372087955474854, 0.2936861515045166, -0.010053589008748531, 0.25768929719924927, -0.15807601809501648, 0.0685129314661026, 0.0015484456671401858, 0.3471232056617737, 0.15093861520290375, -0.02688947133719921, 0.24134328961372375, -0.5917640328407288, 0.13138781487941742, 0.3716416358947754, 0.13223695755004883, 0.013170844875276089, -0.28301572799682617, 0.12299003452062607, 0.10553388297557831, -0.06031424552202225, -0.06612106412649155, -0.04097933694720268, 0.1868358850479126, -0.14940518140792847, 0.11047262698411942, -0.3986358344554901, 0.16341103613376617, 0.2137001007795334, 0.04423701390624046, 0.2923954129219055, -0.5543636083602905, -0.07551487535238266, 0.39653074741363525, -0.003993168938905001, 0.4506628215312958, -0.03175510838627815, -0.09553555399179459, -0.17222481966018677, 0.31574782729148865, -0.16683004796504974, -0.0061808424070477486, 0.06694060564041138, 0.1214141771197319, 0.0968189686536789, -0.14362965524196625, -0.38104119896888733, 0.2992762327194214, 0.0703401044011116, 0.12098929286003113, 0.007881835103034973, 0.126498743891716, 0.1745317131280899, -0.4669388234615326, 0.2897343337535858, -0.13021481037139893, 0.2766364812850952, -0.5091984868049622, 0.09747017174959183, -0.1547907590866089, -0.4750177264213562, -0.22191154956817627, -0.08729322254657745, -0.16236814856529236, -0.17156967520713806, 0.04009031131863594, -0.27348461747169495, -0.3408181369304657, 0.29237693548202515, 0.0714331641793251, 0.10967861115932465, 0.15218757092952728, -0.031182317063212395, -0.1206415519118309, -0.32507291436195374, -0.1509709358215332, 0.17254117131233215, 0.13317742943763733, 0.11093749850988388, 0.29944348335266113, -0.2933174669742584, -0.18282784521579742, -0.5233896970748901, -0.4014015793800354, 0.21496331691741943, -0.034192752093076706, 0.1937801092863083, -0.015656301751732826, 0.32460442185401917, -0.1813623011112213, -0.2817065417766571, 0.13342607021331787, 0.13059423863887787, -0.06676627695560455, 0.010415657423436642, -0.20012106001377106, 0.15185892581939697, -0.13068222999572754, -0.48909440636634827, -0.046066105365753174, -0.22386644780635834, 0.09648175537586212, -0.05205310508608818, 0.3584497570991516, 0.4512479305267334, 0.14622479677200317, 0.15251471102237701, 0.1314287781715393, 0.282870352268219, -0.3825255036354065, -0.09086834639310837, 0.2340756207704544, -0.19053258001804352, -0.31378188729286194, -0.10740990191698074, -0.17809940874576569, -0.09167125821113586, 0.05353580042719841, -0.5115400552749634, 0.09905549883842468, -0.06603280454874039, 0.44413304328918457, 0.2005377560853958, 0.08491203188896179, -0.01072761882096529, 0.03982769325375557, -0.08192349225282669, -0.18409420549869537, 0.20961664617061615, -0.04310892894864082, -0.19302316009998322, 0.16795727610588074, -0.016227439045906067, 0.5018717646598816, 0.2536744475364685, 0.5470896363258362, 0.2564655542373657, 0.22090281546115875, 0.16817931830883026, -0.1750084012746811, 0.25363850593566895, -0.0764031931757927, -0.2170146256685257, 0.2947618067264557, -0.020140033215284348, -0.1961783617734909, 0.31558409333229065, -0.19069696962833405, -0.24182681739330292, -0.06455107033252716, 0.08986233174800873, -0.4327477514743805, -0.21506886184215546, 0.06882262229919434, 0.011736997403204441, 0.2894495725631714, 0.03136091306805611, 0.20154131948947906, 0.16569513082504272, -0.25683537125587463, 0.0745147168636322, 0.01531237829476595, -0.08686845749616623, 0.011871020309627056, 0.15803895890712738, -0.21254542469978333, -0.29473209381103516, -0.025816407054662704, 0.13466477394104004, 0.09236608445644379, -0.26486432552337646, -0.12443134188652039, 0.12070813775062561, 0.023864232003688812, 0.24269048869609833, -0.2924232482910156, 0.16279096901416779, 0.10818849503993988, 0.2368686944246292, -0.24579085409641266, 0.09965702146291733, -0.28265002369880676, 0.3831588923931122, 0.4021664559841156, 0.11134029179811478, -0.29513847827911377, -0.0998467206954956, 0.5115591287612915, 0.21869713068008423, -0.17676177620887756, 0.122527576982975, -0.14204584062099457, -0.11680261045694351, -0.2688201367855072, 0.3743787109851837, 0.1339215487241745, 0.17947669327259064, -0.08438366651535034, 0.14171935617923737, 0.1423679143190384, 0.5251238346099854, 0.04777287319302559, 0.18958024680614471, 0.2533741295337677, 0.2911842465400696, -0.09965942800045013, -0.02602425217628479, -0.07818318158388138, 0.07054867595434189, 0.4936419725418091, -0.19756926596164703, -0.2303672581911087, -0.2939320504665375, -0.2943984270095825, 0.06499261409044266, 0.39741209149360657, -0.033126819878816605, -0.088175930082798, 0.17492179572582245, -0.17049959301948547, -0.1304394155740738, -0.09501512348651886, 0.19145439565181732, 0.04887396842241287, -0.14403149485588074, -0.4761124551296234, 0.6198270320892334, -0.126469224691391, 0.027377240359783173, 0.02171390689909458, -0.02695014886558056, -0.4105685353279114, 0.17008312046527863, 0.2546803653240204, 0.9464243054389954, 0.2910657525062561, 0.1372576355934143, 0.3389453887939453, 0.13678307831287384, 0.1745021939277649, 0.13691315054893494, -0.1498890370130539, -0.37857943773269653, 0.14222511649131775, 0.00480971485376358, 0.09867612272500992, 0.07997217774391174, 0.05617411434650421, -0.2926947772502899, 0.09209248423576355, -0.40517640113830566, 0.1487542688846588, 0.2856563925743103, 0.08716858923435211, 0.1106027364730835, -0.2564542889595032, -0.20891864597797394, 0.17175039649009705, -0.06745912879705429, 0.0501563735306263, -0.21724805235862732, -0.047916896641254425, -0.2214338630437851, -0.05939366668462753, -0.42983877658843994, 0.11017420142889023, -0.014606483280658722, 0.43236130475997925, -0.047437459230422974, -0.35898062586784363, -0.16321945190429688, 0.31428825855255127, 0.006821577437222004, 0.23232226073741913, -0.21905115246772766, 0.16388081014156342, 0.055123474448919296, 0.10459080338478088, 0.1837891936302185, 0.2056867927312851, 0.454214483499527, -0.04101675748825073, -0.33032894134521484, 0.07187297940254211, -0.15094242990016937, -0.08435360342264175, -0.1562628597021103, -0.09055723994970322, -0.14869281649589539, -0.12676210701465607, -0.20309311151504517, 0.03746823966503143, -0.14494261145591736, -0.32902246713638306, 0.21002160012722015, 0.026608308777213097, -0.005510769784450531, -0.06271820515394211, 0.10272244364023209, -0.41788747906684875, -0.06735417246818542, 0.12032608687877655, 0.20124423503875732, 0.24645844101905823, 0.30709898471832275, 0.3385809063911438, -0.39489373564720154, -0.34347009658813477, 0.007380195893347263, -0.29249119758605957, -0.25705239176750183, -0.10342633724212646, -0.29365992546081543, -0.015826279297471046, -0.26364612579345703, 0.12822018563747406, 0.015287895686924458, 0.013604466803371906, -0.14665521681308746, -0.42719778418540955, -0.0610136054456234, 0.3576846718788147, 0.15517355501651764, 0.02716922014951706, 0.1670844852924347, 0.08228358626365662, 0.20623484253883362, -0.046548936516046524, -0.4155222475528717, 0.09198381006717682, -0.31354838609695435, 0.13152442872524261, -0.05678749829530716, 0.0673396959900856, -0.2217293083667755, -0.21552184224128723, 0.16089743375778198, -0.2391645759344101, -0.09593619406223297, -0.31259483098983765, -0.15467019379138947, 0.09461823850870132, 0.06969301402568817, -0.09805107861757278, 0.030893215909600258, -0.0046273465268313885, 0.1005859375, -0.27566537261009216, 0.04219021275639534, 0.12220314890146255, -0.009229409508407116, 0.37244248390197754, -0.02678559720516205, 0.19259922206401825, 0.031743645668029785, -0.13912244141101837, -0.05153178796172142, 0.2592618465423584, -0.07168183475732803, 0.27718842029571533, 0.04905560240149498, -0.05672871693968773, 0.01474490761756897, 0.03168611228466034, -0.07323944568634033, 0.03809276595711708, 0.24492649734020233, -0.2375311553478241, -0.041485339403152466, 0.37666094303131104, 0.1083502322435379, 0.31244662404060364, -0.3910881578922272, -0.08670652657747269, -0.1380978524684906, 0.3295799195766449, -0.1939186155796051, 0.06950712949037552, 0.002659910824149847, -0.28764188289642334, 0.054729972034692764, 0.11315394192934036, 0.09398860484361649, -0.24142791330814362, -0.004106125794351101, 0.19157463312149048, 0.07467971742153168, -0.2529515326023102, 0.22698289155960083, 0.3803839087486267, 0.013836586847901344, 0.17786221206188202, -0.06332618743181229, 0.07028204202651978, -0.06161632016301155, 0.3406337797641754, 0.316619336605072, -0.00804967898875475, 0.29813265800476074, 0.217282235622406, 0.04153059050440788, 0.0035940930247306824, 0.39307981729507446, 0.16770629584789276, -0.4628000259399414, 0.010361036285758018, 0.12488414347171783, 0.07465797662734985, 0.31240278482437134, -0.11103218048810959, -0.09875867515802383, 0.12375517189502716, -0.36914291977882385, -0.15217790007591248, -0.11007045209407806, -0.15530170500278473, 0.04937801882624626, 0.043163787573575974, -0.01577860489487648, -0.2311103343963623, 0.029592109844088554, -0.02649238146841526, -0.3002963066101074, -0.4345844089984894, 0.529928982257843, 0.14409421384334564, 0.11757384240627289, -0.47871655225753784, 0.14882220327854156, 0.008193131536245346, -0.09731882810592651, -0.326699435710907, 0.6328182816505432, 0.32838326692581177, 0.20060814917087555, -0.15088406205177307, 0.03936823084950447, -0.157869353890419, -0.13005070388317108, 0.01837448589503765, -0.0011692293919622898, 0.1858091950416565, -0.12091845273971558, 0.40003806352615356, 0.149063840508461, -0.24662117660045624, -0.18110334873199463, 0.5726722478866577, 0.2986348867416382, 0.030012689530849457, -0.31709396839141846, -0.06359568238258362, -0.1525590568780899, 0.06468348205089569, -0.13511164486408234, -0.4166482090950012, 0.01756868325173855, 0.5091846585273743, 0.03153281658887863, 0.2170374095439911, -0.15780390799045563, 0.1260560154914856, 0.12560278177261353, 0.5439801216125488, 0.47715646028518677, 0.3215116262435913, 0.03343469649553299, -0.21028202772140503, -0.5221919417381287, 0.11392197012901306, -0.3307042419910431, 0.06118444725871086, 0.19333015382289886, 0.2705698609352112, -0.04038059711456299, 0.24713410437107086, -0.16484001278877258, -0.08545072376728058, -0.023844711482524872, 0.17174199223518372, -0.2824481129646301, -0.08141705393791199, 0.17194806039333344, 0.14858175814151764, -0.2805482745170593, -0.332279235124588, 0.31704825162887573, -0.275418221950531, 0.14661510288715363, -0.07267175614833832, -0.1809590756893158, 0.18215827643871307, 0.372832715511322, 0.3264460563659668, 0.10737735033035278, 0.21220527589321136, -0.21855400502681732, -0.01222189050167799, -0.08838977664709091, -0.2975090444087982, 0.07032759487628937, 0.6526840925216675, 0.06426579505205154, 0.11923538893461227, 0.15205886960029602, -0.2892923653125763, 0.17415720224380493, 0.5524722337722778, 0.060206666588783264, -0.07462777942419052, -0.29853376746177673, -0.024961678311228752, 0.1073962152004242, -0.0485406368970871, -0.26360031962394714, 0.18225277960300446, -0.1529707908630371, 0.0791882872581482, -0.10504840314388275, -0.6924178004264832, 0.17919354140758514, -0.47436773777008057, -0.34941843152046204, -0.26182031631469727, 0.2053394317626953, 0.17791202664375305, -0.047801367938518524, -0.410475492477417, -0.13513191044330597, 0.3146880865097046, -0.12380371987819672, -0.3916366994380951, -0.02820432558655739, -0.03882422670722008, 0.11898557096719742, -0.168913334608078, 0.21359024941921234, 0.0560978502035141, -0.3986985981464386, 0.042654432356357574, -0.5303529500961304 ]
https://github.com/huggingface/datasets/issues/2761
Error loading C4 realnewslike dataset
Hi @danshirron, `c4` was updated few days back by @lhoestq. The new configs are `['en', 'en.noclean', 'en.realnewslike', 'en.webtextlike'].` You'll need to remove any older version of this dataset you previously downloaded and then run `load_dataset` again with new configuration.
## Describe the bug Error loading C4 realnewslike dataset. Validation part mismatch ## Steps to reproduce the bug ```python raw_datasets = load_dataset('c4', 'realnewslike', cache_dir=model_args.cache_dir) ## Expected results success on data loading ## Actual results Downloading: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 15.3M/15.3M [00:00<00:00, 28.1MB/s]Traceback (most recent call last): File "run_mlm_tf.py", line 794, in <module> main() File "run_mlm_tf.py", line 425, in main raw_datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name, cache_dir=model_args.cache_dir) File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/load.py", line 843, in load_dataset builder_instance.download_and_prepare( File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/builder.py", line 608, in download_and_prepare self._download_and_prepare( File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/builder.py", line 698, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/utils/info_utils.py", line 74, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='validation', num_bytes=38165657946, num_examples=13799838, dataset_name='c4'), 'recorded': SplitInfo(name='validation', num_bytes=37875873, num_examples=13863, dataset_name='c4')}] ## Environment info - `datasets` version: 1.10.2 - Platform: Linux-5.4.0-58-generic-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 4.0.1
39
Error loading C4 realnewslike dataset ## Describe the bug Error loading C4 realnewslike dataset. Validation part mismatch ## Steps to reproduce the bug ```python raw_datasets = load_dataset('c4', 'realnewslike', cache_dir=model_args.cache_dir) ## Expected results success on data loading ## Actual results Downloading: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 15.3M/15.3M [00:00<00:00, 28.1MB/s]Traceback (most recent call last): File "run_mlm_tf.py", line 794, in <module> main() File "run_mlm_tf.py", line 425, in main raw_datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name, cache_dir=model_args.cache_dir) File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/load.py", line 843, in load_dataset builder_instance.download_and_prepare( File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/builder.py", line 608, in download_and_prepare self._download_and_prepare( File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/builder.py", line 698, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/utils/info_utils.py", line 74, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='validation', num_bytes=38165657946, num_examples=13799838, dataset_name='c4'), 'recorded': SplitInfo(name='validation', num_bytes=37875873, num_examples=13863, dataset_name='c4')}] ## Environment info - `datasets` version: 1.10.2 - Platform: Linux-5.4.0-58-generic-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 4.0.1 Hi @danshirron, `c4` was updated few days back by @lhoestq. The new configs are `['en', 'en.noclean', 'en.realnewslike', 'en.webtextlike'].` You'll need to remove any older version of this dataset you previously downloaded and then run `load_dataset` again with new configuration.
[ -0.2315261960029602, 0.024640316143631935, -0.022366024553775787, 0.45745646953582764, 0.17442476749420166, 0.22958147525787354, -0.007371061015874147, 0.5081836581230164, -0.03165271505713463, 0.019125208258628845, -0.18429706990718842, -0.06401257961988449, -0.009163723327219486, 0.3338084816932678, -0.043365444988012314, -0.2194703221321106, -0.11076682806015015, 0.16060680150985718, 0.14076851308345795, 0.059750575572252274, -0.14481385052204132, 0.20090492069721222, -0.21544162929058075, -0.07255726307630539, -0.27071118354797363, -0.013007181696593761, 0.17583732306957245, 0.32055792212486267, 0.0850607380270958, -0.5288671255111694, 0.20255784690380096, -0.17395325005054474, 0.0258217491209507, 0.5030127763748169, -0.00011122843716293573, 0.04866405948996544, 0.42469173669815063, -0.0443260557949543, -0.3031129539012909, 0.08027120679616928, -0.3098667562007904, -0.24285975098609924, 0.14436519145965576, -0.0320095457136631, -0.33135926723480225, -0.19014987349510193, -0.233600452542305, -0.3375594913959503, 0.24932406842708588, 0.6167079210281372, 0.23858049511909485, 0.3121446967124939, 0.060873568058013916, 0.01650743931531906, -0.11098385602235794, -0.14757290482521057, -0.022677309811115265, 0.35120129585266113, -0.021519877016544342, 0.0317063070833683, 0.17848913371562958, 0.2144177407026291, 0.02875494956970215, 0.10949832201004028, 0.12858138978481293, -0.128562331199646, 0.20333616435527802, -0.10635054856538773, 0.1449158489704132, 0.3846839666366577, 0.3563731610774994, -0.24207375943660736, -0.15195120871067047, -0.3080826997756958, -0.19866149127483368, -0.277394562959671, 0.256582647562027, 0.19997434318065643, -0.16248835623264313, 0.16618317365646362, -0.39458170533180237, 0.29876774549484253, 0.05895412340760231, 0.08596674352884293, -0.19323302805423737, 0.24121589958667755, 0.1517072468996048, -0.026546290144324303, 0.02661147713661194, 0.09625973552465439, 0.16327066719532013, -0.19784222543239594, -0.06486035138368607, 0.21365785598754883, -0.6099302172660828, -0.22180725634098053, -0.3099174201488495, 0.49770572781562805, -0.014423301443457603, -0.05148295685648918, -0.11401188373565674, -0.017103910446166992, 0.17121736705303192, -0.1863042116165161, 0.16883258521556854, 0.2142096310853958, -0.19800899922847748, 0.12070978432893753, 0.1434050351381302, -0.10678819566965103, 0.016133442521095276, -0.07917781174182892, 0.16279199719429016, -0.13187533617019653, -0.06376472860574722, 0.2420959621667862, 0.05741459131240845, -0.3179151713848114, -0.6927224397659302, 0.24579980969429016, -0.3038002550601959, -0.0368809811770916, 0.0007452741847373545, 0.34661665558815, -0.3842548131942749, 0.26411503553390503, 0.10011070221662521, -0.17242158949375153, -0.27995312213897705, -0.2688709497451782, -0.20569774508476257, 0.05223008617758751, -0.3685681223869324, 0.0012722312239930034, 0.2524729371070862, -0.2094731330871582, 0.4003704786300659, -0.05119815841317177, 0.17518062889575958, -0.0478971004486084, 0.20912781357765198, -0.3762724697589874, -0.10815282166004181, 0.22559961676597595, -0.3169131278991699, 0.03763292357325554, 0.2689841091632843, -0.09270627796649933, 0.01039514783769846, -0.034260064363479614, 0.15934525430202484, -0.3435828387737274, -0.16379910707473755, 0.28722676634788513, -0.014550121501088142, 0.028838839381933212, 0.06846022605895996, -0.05402447655797005, 0.33956292271614075, -0.11571869254112244, -0.19577762484550476, -0.23940880596637726, 0.033054616302251816, -0.05822986736893654, 0.1889539211988449, 0.4896892309188843, -0.4754011631011963, 0.0806838721036911, -0.34057047963142395, 0.12214120477437973, 0.4467143714427948, 0.2935120761394501, -0.03302863612771034, 0.2765633463859558, -0.20774047076702118, 0.023706384003162384, -0.017436666414141655, -0.36867251992225647, -0.34446197748184204, 0.51756352186203, -0.08223725110292435, 0.3453439772129059, -0.05477109178900719, 0.04316694289445877, 0.1374017298221588, 0.043660592287778854, 0.1547784060239792, 0.20473776757717133, -0.14185091853141785, 0.1543140411376953, -0.5629569292068481, -0.12200009077787399, 0.36357375979423523, 0.013356734067201614, 0.18901488184928894, -0.20692682266235352, 0.12359096109867096, -0.08466190099716187, 0.4912211298942566, -0.008410472422838211, -0.12061981111764908, -0.03217364102602005, 0.2111114263534546, -0.024092847481369972, 0.1006423756480217, -0.2743466794490814, -0.5518815517425537, 0.2668115794658661, -0.023727042600512505, 0.1528528481721878, 0.12861360609531403, -0.04692314192652702, -0.5897586345672607, -0.14676889777183533, -0.1562294065952301, -0.24047516286373138, 0.10611944645643234, 0.1226576492190361, 0.24281413853168488, 0.07963623851537704, -0.054625630378723145, 0.5485525131225586, -0.05779634043574333, 0.14132897555828094, -0.07995511591434479, 0.3413335084915161, -0.15256281197071075, -0.03050936758518219, -0.03024488314986229, 0.13465851545333862, 0.2463359385728836, -0.09839464724063873, -0.35670235753059387, 0.642047107219696, 0.12486392259597778, 0.20668190717697144, -0.4426279067993164, 0.00530838081613183, 0.38274386525154114, -0.3125796318054199, 0.09570196270942688, 0.5969316363334656, 0.23789605498313904, 0.018149668350815773, 0.0953131839632988, 0.42451056838035583, -0.029068470001220703, -0.052503373473882675, 0.10602311789989471, -0.1878119260072708, 0.16333986818790436, -0.14692287147045135, 0.20097802579402924, -0.3520148992538452, 0.44012904167175293, -0.0863153263926506, 0.376046746969223, -0.024364538490772247, -0.14552836120128632, 0.0485069677233696, 0.40092408657073975, -0.07378815859556198, -0.01850026287138462, -0.1634853631258011, -0.18191739916801453, -0.11849120259284973, 0.3020990490913391, 0.32414576411247253, 0.6374417543411255, 0.17455323040485382, -0.21925358474254608, 0.2381291538476944, -0.000430539803346619, -0.25992724299430847, 0.4831359088420868, -0.1653631329536438, 0.012772928923368454, 0.4583311676979065, 0.008977455087006092, 0.10918107628822327, -0.44877201318740845, 0.1450788676738739, 0.12340288609266281, 0.18180130422115326, -0.36079269647598267, 0.07881630212068558, -0.21522194147109985, 0.09686741977930069, -0.3518633246421814, -0.2619575262069702, 0.029402470216155052, -0.31338003277778625, -0.017871558666229248, 0.13682317733764648, -0.050381410866975784, 0.23081143200397491, -0.46726173162460327, 0.08465603739023209, 0.11243440210819244, -0.12309826910495758, -0.20040667057037354, 0.07373271882534027, -0.36125901341438293, 0.09889250248670578, 0.25351351499557495, 0.06784941256046295, 0.2908094525337219, -0.19567938148975372, -0.15118399262428284, 0.02410152181982994, -0.40364813804626465, 0.12782251834869385, 0.11806978285312653, 0.2275422364473343, 0.09695613384246826, 0.07448124140501022, 0.3463866114616394, -0.41219526529312134, -0.07106775045394897, -0.13084158301353455, -0.2183186262845993, 0.1705411821603775, 0.03321192413568497, 0.024735650047659874, -0.11560437083244324, -0.5987547636032104, -0.4374188482761383, -0.3892827332019806, -0.0498276948928833, -0.164516881108284, -0.07285080850124359, 0.19889584183692932, -0.13437846302986145, 0.05142631754279137, 0.1836193948984146, -0.07209804654121399, -0.40095293521881104, 0.2122820019721985, 0.14455871284008026, -0.03927576169371605, -0.22417987883090973, -0.13846513628959656, -0.07727750390768051, -0.05277374014258385, -0.04581707343459129, -0.3023410439491272, 0.25432631373405457, -0.4560001790523529, 0.2435562014579773, -0.19859647750854492, -0.21312379837036133, 0.2872215509414673, 0.03184739500284195, -0.035461246967315674, -0.1347288191318512, -0.03443807363510132, -0.07229173183441162, -0.10716454684734344, 0.16366419196128845, -0.1976880431175232, 0.39424335956573486, 0.1363978236913681, 0.48135870695114136, 0.24167536199092865, -0.5439121127128601, 0.06806619465351105, 0.17057228088378906, 0.20486506819725037, -0.09902818500995636, -0.3353739380836487, 0.3906063437461853, -0.06826766580343246, 0.023958096280694008, 0.2752486765384674, -0.3505271077156067, -0.2781623899936676, -0.03561070188879967, 0.19649140536785126, -0.3761669099330902, -0.025656500831246376, -0.133863165974617, -0.1636420041322708, 0.20585480332374573, 0.32547885179519653, 0.2892023026943207, 0.035488758236169815, -0.16371698677539825, 0.25034627318382263, 0.2493044137954712, 0.01250903494656086, -0.14406415820121765, -0.12907513976097107, -0.1602593958377838, -0.22746926546096802, 0.38325008749961853, 0.34127452969551086, 0.2640645503997803, 0.0742880329489708, -0.11759538948535919, -0.042978767305612564, -0.06874387711286545, 0.6774853467941284, -0.1602199822664261, 0.13942089676856995, -0.0770249217748642, 0.1332768350839615, -0.15247195959091187, -0.22403553128242493, -0.02292918786406517, 0.023780010640621185, 0.294780433177948, 0.5989148020744324, -0.32090383768081665, -0.14464347064495087, 0.34409984946250916, 0.3235155940055847, -0.16147010028362274, -0.31342610716819763, -0.03469471260905266, -0.0641084685921669, -0.04521684721112251, 0.11545001715421677, 0.046288780868053436, 0.27834877371788025, -0.1482948511838913, -0.15314006805419922, 0.035107437521219254, -0.050718288868665695, 0.24413901567459106, 0.3141935467720032, 0.32863757014274597, -0.03860531002283096, 0.3620902895927429, 0.15740109980106354, 0.30236542224884033, 0.3721848726272583, 0.21110641956329346, -0.345464825630188, -0.05831479653716087, -0.1266355812549591, 0.09325715154409409, -0.0013120139483362436, 0.28188857436180115, -0.049035683274269104, -0.1346835345029831, 0.25066351890563965, 0.06841931492090225, -0.15246278047561646, 0.34522512555122375, -0.01778598502278328, 0.0991840660572052, -0.17988084256649017, -0.3432310223579407, 0.23169013857841492, -0.15484963357448578, 0.014570825733244419, 0.11570236831903458, 0.06790082901716232, -0.3640976846218109, -0.08807308226823807, 0.0034846696071326733, 0.799934983253479, 0.3829320967197418, -0.15092770755290985, 0.24419169127941132, -0.35335463285446167, 0.02274543233215809, -0.37820449471473694, 0.17043133080005646, -0.33213213086128235, -0.16701121628284454, -0.05126432701945305, -0.19500936567783356, -0.07095537334680557, 0.07453863322734833, -0.2098713368177414, 0.2186291664838791, -0.12442203611135483, 0.07746802270412445, 0.2048073559999466, 0.23702780902385712, 0.07307718694210052, 0.13322187960147858, -0.1807200014591217, 0.14647874236106873, -0.06122366711497307, 0.15841642022132874, -0.20900247991085052, -0.07801751047372818, 0.04622466862201691, -0.18781988322734833, -0.23432251811027527, 0.20044666528701782, -0.6715443730354309, 0.027444571256637573, 0.030634893104434013, -0.0971902459859848, -0.0029016556218266487, -0.09633244574069977, 0.23918665945529938, 0.2715613543987274, -0.12290839105844498, 0.03584989905357361, 0.1376941055059433, 0.1534956842660904, 0.052968475967645645, -0.03875988349318504, 0.200301393866539, -0.1359013319015503, -0.17902830243110657, 0.08240588754415512, -0.3000933527946472, -0.18088795244693756, 0.23184245824813843, -0.08168813586235046, -0.028823912143707275, -0.31303972005844116, -0.16938507556915283, -0.08667803555727005, 0.10645768791437149, -0.20349273085594177, 0.15350884199142456, -0.21645869314670563, -0.32827338576316833, 0.04801890254020691, 0.05142492055892944, -0.32084420323371887, -0.3036954998970032, 0.26007553935050964, 0.1588466316461563, -0.02626507170498371, 0.37884321808815, 0.011533653363585472, -0.32690373063087463, -0.25259873270988464, -0.1472419798374176, 0.15462633967399597, -0.4197559654712677, 0.09713659435510635, -0.33189231157302856, -0.25624534487724304, 0.15764600038528442, 0.2788512110710144, 0.5067477226257324, 0.03763386979699135, 0.05518640950322151, -0.5445110201835632, -0.10507624596357346, 0.046375617384910583, -0.167886883020401, 0.22103558480739594, -0.05515704303979874, 0.6132636070251465, -0.31471794843673706, 0.18145956099033356, -0.33864402770996094, 0.03922960162162781, -0.12331639975309372, 0.18939705193042755, 0.0008279492030851543, -0.29673272371292114, 0.27964988350868225, 0.09817900508642197, 0.20745190978050232, 0.36252498626708984, -0.1502893567085266, -0.19646038115024567, -0.17003491520881653, 0.10347740352153778, 0.0979660153388977, -0.23080119490623474, 0.06258602440357208, 0.15897412598133087, -0.04345642402768135, -0.008685903623700142, 0.1131301298737526, -0.10680875927209854, -0.043367307633161545, 0.16552236676216125, 0.3677057921886444, -0.07249397039413452, -0.24274559319019318, 0.09125939011573792, -0.1443973183631897, 0.08559226989746094, 0.04841172695159912, 0.12990343570709229, -0.1480562835931778, 0.04758129268884659, 0.15830154716968536, -0.05593356862664223, 0.2772262394428253, 0.20091736316680908, 0.2070956975221634, -0.24992069602012634, -0.294511079788208, 0.2605379521846771, 0.17688526213169098, 0.42841073870658875, 0.011491719633340836, -0.15831033885478973, 0.06980287283658981, 0.26372483372688293, -0.33385995030403137, -0.08000704646110535, -0.08416692912578583, -0.2150551676750183, 0.19192467629909515, 0.0787678137421608, 0.09974542260169983, -0.18593938648700714, -0.04689962416887283, 0.2622561454772949, 0.43328869342803955, -0.08601353317499161, 0.10912353545427322, 0.3987324833869934, -0.07160946726799011, 0.029581578448414803, 0.14997795224189758, -0.25026005506515503, 0.0625840350985527, 0.3447423279285431, -0.047967810183763504, 0.13587258756160736, 0.010184247978031635, 0.17706190049648285, -0.09116177260875702, -0.16177712380886078, 0.2650984227657318, 0.41974860429763794, -0.40402719378471375, 0.2929239571094513, 0.23871871829032898, -0.10232969373464584, -0.3085988163948059, -0.18458782136440277, -0.4084450900554657, -0.19397065043449402, -0.07196410000324249, 0.10643924027681351, 0.01732243038713932, -0.342833548784256, -0.22689762711524963, -0.011369443498551846, -0.033570315688848495, 0.04784863442182541, 0.525911271572113, 0.024520402774214745, -0.23301149904727936, -0.12810863554477692, -0.28379011154174805, 0.20174051821231842, 0.2190142124891281, -0.34135448932647705, 0.34174585342407227, 0.20175138115882874, -0.18790827691555023, -0.23577477037906647, 0.19087564945220947, 0.19290731847286224, 0.42273250222206116, -0.26074159145355225, -0.10731929540634155, 0.1446974277496338, 0.0094173364341259, 0.12351538240909576, 0.41841843724250793, 0.059074416756629944, -0.07220334559679031, 0.22626502811908722, 0.13556337356567383, -0.24584247171878815, 0.14196917414665222, -0.08040449023246765, -0.11368429660797119, -0.6303748488426208, 0.33984076976776123, -0.02703261747956276, -0.005356107838451862, -0.10635598003864288, 0.2040739506483078, -0.3419700860977173, 0.0560278557240963, 0.39370834827423096, -0.10502982139587402, 0.2485334873199463, 0.13549496233463287, 0.09909211099147797, -0.14319688081741333, 0.38790038228034973, 0.15731507539749146, 0.06969863921403885, -0.5092072486877441, -0.13680881261825562, -0.44292137026786804, 0.23156976699829102, -0.1639961153268814, 0.18357375264167786, -0.04636666551232338, 0.04757164046168327, 0.10860411822795868, 0.18673665821552277, 0.14623034000396729, 0.37932059168815613, 0.18092623353004456, -0.04415888339281082, -0.27042949199676514, -0.14950555562973022, -0.1365632861852646, -0.203346848487854, 0.03302814066410065, -0.5399729013442993, 0.07811810076236725, 0.10107985883951187, 0.11846381425857544, -0.09273049235343933, -0.2510058581829071, 0.3491324186325073, 0.2162151336669922, 0.34822577238082886, 0.3603937029838562, 0.5763019323348999, -0.15500006079673767, -0.18057318031787872, 0.0021047533955425024, -0.04622037336230278, -0.18512000143527985, 0.14209114015102386, 0.11947647482156754, 0.3269406855106354, 0.08009349554777145, -0.11356568336486816, -0.23123635351657867, 0.48279765248298645, 0.32637056708335876, -0.2479364424943924, -0.25517430901527405, -0.05624068155884743, -0.3647657334804535, -0.03201168775558472, 0.26554015278816223, 0.39750540256500244, -0.003296018810942769, 0.052043668925762177, 0.007727496325969696, -0.3785649538040161, 0.47975462675094604, -0.5694299936294556, -0.0697973445057869, -0.19357830286026, 0.25039732456207275, -0.04341575875878334, -0.08110954612493515, -0.4199208617210388, 0.06522998958826065, 0.5131905674934387, -0.09612667560577393, -0.050602298229932785, 0.1511283963918686, 0.15451295673847198, -0.18545888364315033, 0.024998150765895844, 0.329007089138031, 0.36337605118751526, -0.29646581411361694, 0.058436520397663116, -0.23157016932964325 ]
https://github.com/huggingface/datasets/issues/2761
Error loading C4 realnewslike dataset
@bhavitvyamalik @lhoestq , just tried the above and got: >>> a=datasets.load_dataset('c4','en.realnewslike') Downloading: 3.29kB [00:00, 1.66MB/s] Downloading: 2.40MB [00:00, 12.6MB/s] Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/load.py", line 819, in load_dataset builder_instance = load_dataset_builder( File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/load.py", line 701, in load_dataset_builder builder_instance: DatasetBuilder = builder_cls( File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/builder.py", line 1049, in __init__ super(GeneratorBasedBuilder, self).__init__(*args, **kwargs) File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/builder.py", line 268, in __init__ self.config, self.config_id = self._create_builder_config( File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/builder.py", line 360, in _create_builder_config raise ValueError( ValueError: BuilderConfig en.realnewslike not found. Available: ['en', 'realnewslike', 'en.noblocklist', 'en.noclean'] >>> datasets version is 1.11.0
## Describe the bug Error loading C4 realnewslike dataset. Validation part mismatch ## Steps to reproduce the bug ```python raw_datasets = load_dataset('c4', 'realnewslike', cache_dir=model_args.cache_dir) ## Expected results success on data loading ## Actual results Downloading: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 15.3M/15.3M [00:00<00:00, 28.1MB/s]Traceback (most recent call last): File "run_mlm_tf.py", line 794, in <module> main() File "run_mlm_tf.py", line 425, in main raw_datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name, cache_dir=model_args.cache_dir) File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/load.py", line 843, in load_dataset builder_instance.download_and_prepare( File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/builder.py", line 608, in download_and_prepare self._download_and_prepare( File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/builder.py", line 698, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/utils/info_utils.py", line 74, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='validation', num_bytes=38165657946, num_examples=13799838, dataset_name='c4'), 'recorded': SplitInfo(name='validation', num_bytes=37875873, num_examples=13863, dataset_name='c4')}] ## Environment info - `datasets` version: 1.10.2 - Platform: Linux-5.4.0-58-generic-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 4.0.1
91
Error loading C4 realnewslike dataset ## Describe the bug Error loading C4 realnewslike dataset. Validation part mismatch ## Steps to reproduce the bug ```python raw_datasets = load_dataset('c4', 'realnewslike', cache_dir=model_args.cache_dir) ## Expected results success on data loading ## Actual results Downloading: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 15.3M/15.3M [00:00<00:00, 28.1MB/s]Traceback (most recent call last): File "run_mlm_tf.py", line 794, in <module> main() File "run_mlm_tf.py", line 425, in main raw_datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name, cache_dir=model_args.cache_dir) File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/load.py", line 843, in load_dataset builder_instance.download_and_prepare( File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/builder.py", line 608, in download_and_prepare self._download_and_prepare( File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/builder.py", line 698, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/utils/info_utils.py", line 74, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='validation', num_bytes=38165657946, num_examples=13799838, dataset_name='c4'), 'recorded': SplitInfo(name='validation', num_bytes=37875873, num_examples=13863, dataset_name='c4')}] ## Environment info - `datasets` version: 1.10.2 - Platform: Linux-5.4.0-58-generic-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 4.0.1 @bhavitvyamalik @lhoestq , just tried the above and got: >>> a=datasets.load_dataset('c4','en.realnewslike') Downloading: 3.29kB [00:00, 1.66MB/s] Downloading: 2.40MB [00:00, 12.6MB/s] Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/load.py", line 819, in load_dataset builder_instance = load_dataset_builder( File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/load.py", line 701, in load_dataset_builder builder_instance: DatasetBuilder = builder_cls( File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/builder.py", line 1049, in __init__ super(GeneratorBasedBuilder, self).__init__(*args, **kwargs) File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/builder.py", line 268, in __init__ self.config, self.config_id = self._create_builder_config( File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/builder.py", line 360, in _create_builder_config raise ValueError( ValueError: BuilderConfig en.realnewslike not found. Available: ['en', 'realnewslike', 'en.noblocklist', 'en.noclean'] >>> datasets version is 1.11.0
[ -0.2315261960029602, 0.024640316143631935, -0.022366024553775787, 0.45745646953582764, 0.17442476749420166, 0.22958147525787354, -0.007371061015874147, 0.5081836581230164, -0.03165271505713463, 0.019125208258628845, -0.18429706990718842, -0.06401257961988449, -0.009163723327219486, 0.3338084816932678, -0.043365444988012314, -0.2194703221321106, -0.11076682806015015, 0.16060680150985718, 0.14076851308345795, 0.059750575572252274, -0.14481385052204132, 0.20090492069721222, -0.21544162929058075, -0.07255726307630539, -0.27071118354797363, -0.013007181696593761, 0.17583732306957245, 0.32055792212486267, 0.0850607380270958, -0.5288671255111694, 0.20255784690380096, -0.17395325005054474, 0.0258217491209507, 0.5030127763748169, -0.00011122843716293573, 0.04866405948996544, 0.42469173669815063, -0.0443260557949543, -0.3031129539012909, 0.08027120679616928, -0.3098667562007904, -0.24285975098609924, 0.14436519145965576, -0.0320095457136631, -0.33135926723480225, -0.19014987349510193, -0.233600452542305, -0.3375594913959503, 0.24932406842708588, 0.6167079210281372, 0.23858049511909485, 0.3121446967124939, 0.060873568058013916, 0.01650743931531906, -0.11098385602235794, -0.14757290482521057, -0.022677309811115265, 0.35120129585266113, -0.021519877016544342, 0.0317063070833683, 0.17848913371562958, 0.2144177407026291, 0.02875494956970215, 0.10949832201004028, 0.12858138978481293, -0.128562331199646, 0.20333616435527802, -0.10635054856538773, 0.1449158489704132, 0.3846839666366577, 0.3563731610774994, -0.24207375943660736, -0.15195120871067047, -0.3080826997756958, -0.19866149127483368, -0.277394562959671, 0.256582647562027, 0.19997434318065643, -0.16248835623264313, 0.16618317365646362, -0.39458170533180237, 0.29876774549484253, 0.05895412340760231, 0.08596674352884293, -0.19323302805423737, 0.24121589958667755, 0.1517072468996048, -0.026546290144324303, 0.02661147713661194, 0.09625973552465439, 0.16327066719532013, -0.19784222543239594, -0.06486035138368607, 0.21365785598754883, -0.6099302172660828, -0.22180725634098053, -0.3099174201488495, 0.49770572781562805, -0.014423301443457603, -0.05148295685648918, -0.11401188373565674, -0.017103910446166992, 0.17121736705303192, -0.1863042116165161, 0.16883258521556854, 0.2142096310853958, -0.19800899922847748, 0.12070978432893753, 0.1434050351381302, -0.10678819566965103, 0.016133442521095276, -0.07917781174182892, 0.16279199719429016, -0.13187533617019653, -0.06376472860574722, 0.2420959621667862, 0.05741459131240845, -0.3179151713848114, -0.6927224397659302, 0.24579980969429016, -0.3038002550601959, -0.0368809811770916, 0.0007452741847373545, 0.34661665558815, -0.3842548131942749, 0.26411503553390503, 0.10011070221662521, -0.17242158949375153, -0.27995312213897705, -0.2688709497451782, -0.20569774508476257, 0.05223008617758751, -0.3685681223869324, 0.0012722312239930034, 0.2524729371070862, -0.2094731330871582, 0.4003704786300659, -0.05119815841317177, 0.17518062889575958, -0.0478971004486084, 0.20912781357765198, -0.3762724697589874, -0.10815282166004181, 0.22559961676597595, -0.3169131278991699, 0.03763292357325554, 0.2689841091632843, -0.09270627796649933, 0.01039514783769846, -0.034260064363479614, 0.15934525430202484, -0.3435828387737274, -0.16379910707473755, 0.28722676634788513, -0.014550121501088142, 0.028838839381933212, 0.06846022605895996, -0.05402447655797005, 0.33956292271614075, -0.11571869254112244, -0.19577762484550476, -0.23940880596637726, 0.033054616302251816, -0.05822986736893654, 0.1889539211988449, 0.4896892309188843, -0.4754011631011963, 0.0806838721036911, -0.34057047963142395, 0.12214120477437973, 0.4467143714427948, 0.2935120761394501, -0.03302863612771034, 0.2765633463859558, -0.20774047076702118, 0.023706384003162384, -0.017436666414141655, -0.36867251992225647, -0.34446197748184204, 0.51756352186203, -0.08223725110292435, 0.3453439772129059, -0.05477109178900719, 0.04316694289445877, 0.1374017298221588, 0.043660592287778854, 0.1547784060239792, 0.20473776757717133, -0.14185091853141785, 0.1543140411376953, -0.5629569292068481, -0.12200009077787399, 0.36357375979423523, 0.013356734067201614, 0.18901488184928894, -0.20692682266235352, 0.12359096109867096, -0.08466190099716187, 0.4912211298942566, -0.008410472422838211, -0.12061981111764908, -0.03217364102602005, 0.2111114263534546, -0.024092847481369972, 0.1006423756480217, -0.2743466794490814, -0.5518815517425537, 0.2668115794658661, -0.023727042600512505, 0.1528528481721878, 0.12861360609531403, -0.04692314192652702, -0.5897586345672607, -0.14676889777183533, -0.1562294065952301, -0.24047516286373138, 0.10611944645643234, 0.1226576492190361, 0.24281413853168488, 0.07963623851537704, -0.054625630378723145, 0.5485525131225586, -0.05779634043574333, 0.14132897555828094, -0.07995511591434479, 0.3413335084915161, -0.15256281197071075, -0.03050936758518219, -0.03024488314986229, 0.13465851545333862, 0.2463359385728836, -0.09839464724063873, -0.35670235753059387, 0.642047107219696, 0.12486392259597778, 0.20668190717697144, -0.4426279067993164, 0.00530838081613183, 0.38274386525154114, -0.3125796318054199, 0.09570196270942688, 0.5969316363334656, 0.23789605498313904, 0.018149668350815773, 0.0953131839632988, 0.42451056838035583, -0.029068470001220703, -0.052503373473882675, 0.10602311789989471, -0.1878119260072708, 0.16333986818790436, -0.14692287147045135, 0.20097802579402924, -0.3520148992538452, 0.44012904167175293, -0.0863153263926506, 0.376046746969223, -0.024364538490772247, -0.14552836120128632, 0.0485069677233696, 0.40092408657073975, -0.07378815859556198, -0.01850026287138462, -0.1634853631258011, -0.18191739916801453, -0.11849120259284973, 0.3020990490913391, 0.32414576411247253, 0.6374417543411255, 0.17455323040485382, -0.21925358474254608, 0.2381291538476944, -0.000430539803346619, -0.25992724299430847, 0.4831359088420868, -0.1653631329536438, 0.012772928923368454, 0.4583311676979065, 0.008977455087006092, 0.10918107628822327, -0.44877201318740845, 0.1450788676738739, 0.12340288609266281, 0.18180130422115326, -0.36079269647598267, 0.07881630212068558, -0.21522194147109985, 0.09686741977930069, -0.3518633246421814, -0.2619575262069702, 0.029402470216155052, -0.31338003277778625, -0.017871558666229248, 0.13682317733764648, -0.050381410866975784, 0.23081143200397491, -0.46726173162460327, 0.08465603739023209, 0.11243440210819244, -0.12309826910495758, -0.20040667057037354, 0.07373271882534027, -0.36125901341438293, 0.09889250248670578, 0.25351351499557495, 0.06784941256046295, 0.2908094525337219, -0.19567938148975372, -0.15118399262428284, 0.02410152181982994, -0.40364813804626465, 0.12782251834869385, 0.11806978285312653, 0.2275422364473343, 0.09695613384246826, 0.07448124140501022, 0.3463866114616394, -0.41219526529312134, -0.07106775045394897, -0.13084158301353455, -0.2183186262845993, 0.1705411821603775, 0.03321192413568497, 0.024735650047659874, -0.11560437083244324, -0.5987547636032104, -0.4374188482761383, -0.3892827332019806, -0.0498276948928833, -0.164516881108284, -0.07285080850124359, 0.19889584183692932, -0.13437846302986145, 0.05142631754279137, 0.1836193948984146, -0.07209804654121399, -0.40095293521881104, 0.2122820019721985, 0.14455871284008026, -0.03927576169371605, -0.22417987883090973, -0.13846513628959656, -0.07727750390768051, -0.05277374014258385, -0.04581707343459129, -0.3023410439491272, 0.25432631373405457, -0.4560001790523529, 0.2435562014579773, -0.19859647750854492, -0.21312379837036133, 0.2872215509414673, 0.03184739500284195, -0.035461246967315674, -0.1347288191318512, -0.03443807363510132, -0.07229173183441162, -0.10716454684734344, 0.16366419196128845, -0.1976880431175232, 0.39424335956573486, 0.1363978236913681, 0.48135870695114136, 0.24167536199092865, -0.5439121127128601, 0.06806619465351105, 0.17057228088378906, 0.20486506819725037, -0.09902818500995636, -0.3353739380836487, 0.3906063437461853, -0.06826766580343246, 0.023958096280694008, 0.2752486765384674, -0.3505271077156067, -0.2781623899936676, -0.03561070188879967, 0.19649140536785126, -0.3761669099330902, -0.025656500831246376, -0.133863165974617, -0.1636420041322708, 0.20585480332374573, 0.32547885179519653, 0.2892023026943207, 0.035488758236169815, -0.16371698677539825, 0.25034627318382263, 0.2493044137954712, 0.01250903494656086, -0.14406415820121765, -0.12907513976097107, -0.1602593958377838, -0.22746926546096802, 0.38325008749961853, 0.34127452969551086, 0.2640645503997803, 0.0742880329489708, -0.11759538948535919, -0.042978767305612564, -0.06874387711286545, 0.6774853467941284, -0.1602199822664261, 0.13942089676856995, -0.0770249217748642, 0.1332768350839615, -0.15247195959091187, -0.22403553128242493, -0.02292918786406517, 0.023780010640621185, 0.294780433177948, 0.5989148020744324, -0.32090383768081665, -0.14464347064495087, 0.34409984946250916, 0.3235155940055847, -0.16147010028362274, -0.31342610716819763, -0.03469471260905266, -0.0641084685921669, -0.04521684721112251, 0.11545001715421677, 0.046288780868053436, 0.27834877371788025, -0.1482948511838913, -0.15314006805419922, 0.035107437521219254, -0.050718288868665695, 0.24413901567459106, 0.3141935467720032, 0.32863757014274597, -0.03860531002283096, 0.3620902895927429, 0.15740109980106354, 0.30236542224884033, 0.3721848726272583, 0.21110641956329346, -0.345464825630188, -0.05831479653716087, -0.1266355812549591, 0.09325715154409409, -0.0013120139483362436, 0.28188857436180115, -0.049035683274269104, -0.1346835345029831, 0.25066351890563965, 0.06841931492090225, -0.15246278047561646, 0.34522512555122375, -0.01778598502278328, 0.0991840660572052, -0.17988084256649017, -0.3432310223579407, 0.23169013857841492, -0.15484963357448578, 0.014570825733244419, 0.11570236831903458, 0.06790082901716232, -0.3640976846218109, -0.08807308226823807, 0.0034846696071326733, 0.799934983253479, 0.3829320967197418, -0.15092770755290985, 0.24419169127941132, -0.35335463285446167, 0.02274543233215809, -0.37820449471473694, 0.17043133080005646, -0.33213213086128235, -0.16701121628284454, -0.05126432701945305, -0.19500936567783356, -0.07095537334680557, 0.07453863322734833, -0.2098713368177414, 0.2186291664838791, -0.12442203611135483, 0.07746802270412445, 0.2048073559999466, 0.23702780902385712, 0.07307718694210052, 0.13322187960147858, -0.1807200014591217, 0.14647874236106873, -0.06122366711497307, 0.15841642022132874, -0.20900247991085052, -0.07801751047372818, 0.04622466862201691, -0.18781988322734833, -0.23432251811027527, 0.20044666528701782, -0.6715443730354309, 0.027444571256637573, 0.030634893104434013, -0.0971902459859848, -0.0029016556218266487, -0.09633244574069977, 0.23918665945529938, 0.2715613543987274, -0.12290839105844498, 0.03584989905357361, 0.1376941055059433, 0.1534956842660904, 0.052968475967645645, -0.03875988349318504, 0.200301393866539, -0.1359013319015503, -0.17902830243110657, 0.08240588754415512, -0.3000933527946472, -0.18088795244693756, 0.23184245824813843, -0.08168813586235046, -0.028823912143707275, -0.31303972005844116, -0.16938507556915283, -0.08667803555727005, 0.10645768791437149, -0.20349273085594177, 0.15350884199142456, -0.21645869314670563, -0.32827338576316833, 0.04801890254020691, 0.05142492055892944, -0.32084420323371887, -0.3036954998970032, 0.26007553935050964, 0.1588466316461563, -0.02626507170498371, 0.37884321808815, 0.011533653363585472, -0.32690373063087463, -0.25259873270988464, -0.1472419798374176, 0.15462633967399597, -0.4197559654712677, 0.09713659435510635, -0.33189231157302856, -0.25624534487724304, 0.15764600038528442, 0.2788512110710144, 0.5067477226257324, 0.03763386979699135, 0.05518640950322151, -0.5445110201835632, -0.10507624596357346, 0.046375617384910583, -0.167886883020401, 0.22103558480739594, -0.05515704303979874, 0.6132636070251465, -0.31471794843673706, 0.18145956099033356, -0.33864402770996094, 0.03922960162162781, -0.12331639975309372, 0.18939705193042755, 0.0008279492030851543, -0.29673272371292114, 0.27964988350868225, 0.09817900508642197, 0.20745190978050232, 0.36252498626708984, -0.1502893567085266, -0.19646038115024567, -0.17003491520881653, 0.10347740352153778, 0.0979660153388977, -0.23080119490623474, 0.06258602440357208, 0.15897412598133087, -0.04345642402768135, -0.008685903623700142, 0.1131301298737526, -0.10680875927209854, -0.043367307633161545, 0.16552236676216125, 0.3677057921886444, -0.07249397039413452, -0.24274559319019318, 0.09125939011573792, -0.1443973183631897, 0.08559226989746094, 0.04841172695159912, 0.12990343570709229, -0.1480562835931778, 0.04758129268884659, 0.15830154716968536, -0.05593356862664223, 0.2772262394428253, 0.20091736316680908, 0.2070956975221634, -0.24992069602012634, -0.294511079788208, 0.2605379521846771, 0.17688526213169098, 0.42841073870658875, 0.011491719633340836, -0.15831033885478973, 0.06980287283658981, 0.26372483372688293, -0.33385995030403137, -0.08000704646110535, -0.08416692912578583, -0.2150551676750183, 0.19192467629909515, 0.0787678137421608, 0.09974542260169983, -0.18593938648700714, -0.04689962416887283, 0.2622561454772949, 0.43328869342803955, -0.08601353317499161, 0.10912353545427322, 0.3987324833869934, -0.07160946726799011, 0.029581578448414803, 0.14997795224189758, -0.25026005506515503, 0.0625840350985527, 0.3447423279285431, -0.047967810183763504, 0.13587258756160736, 0.010184247978031635, 0.17706190049648285, -0.09116177260875702, -0.16177712380886078, 0.2650984227657318, 0.41974860429763794, -0.40402719378471375, 0.2929239571094513, 0.23871871829032898, -0.10232969373464584, -0.3085988163948059, -0.18458782136440277, -0.4084450900554657, -0.19397065043449402, -0.07196410000324249, 0.10643924027681351, 0.01732243038713932, -0.342833548784256, -0.22689762711524963, -0.011369443498551846, -0.033570315688848495, 0.04784863442182541, 0.525911271572113, 0.024520402774214745, -0.23301149904727936, -0.12810863554477692, -0.28379011154174805, 0.20174051821231842, 0.2190142124891281, -0.34135448932647705, 0.34174585342407227, 0.20175138115882874, -0.18790827691555023, -0.23577477037906647, 0.19087564945220947, 0.19290731847286224, 0.42273250222206116, -0.26074159145355225, -0.10731929540634155, 0.1446974277496338, 0.0094173364341259, 0.12351538240909576, 0.41841843724250793, 0.059074416756629944, -0.07220334559679031, 0.22626502811908722, 0.13556337356567383, -0.24584247171878815, 0.14196917414665222, -0.08040449023246765, -0.11368429660797119, -0.6303748488426208, 0.33984076976776123, -0.02703261747956276, -0.005356107838451862, -0.10635598003864288, 0.2040739506483078, -0.3419700860977173, 0.0560278557240963, 0.39370834827423096, -0.10502982139587402, 0.2485334873199463, 0.13549496233463287, 0.09909211099147797, -0.14319688081741333, 0.38790038228034973, 0.15731507539749146, 0.06969863921403885, -0.5092072486877441, -0.13680881261825562, -0.44292137026786804, 0.23156976699829102, -0.1639961153268814, 0.18357375264167786, -0.04636666551232338, 0.04757164046168327, 0.10860411822795868, 0.18673665821552277, 0.14623034000396729, 0.37932059168815613, 0.18092623353004456, -0.04415888339281082, -0.27042949199676514, -0.14950555562973022, -0.1365632861852646, -0.203346848487854, 0.03302814066410065, -0.5399729013442993, 0.07811810076236725, 0.10107985883951187, 0.11846381425857544, -0.09273049235343933, -0.2510058581829071, 0.3491324186325073, 0.2162151336669922, 0.34822577238082886, 0.3603937029838562, 0.5763019323348999, -0.15500006079673767, -0.18057318031787872, 0.0021047533955425024, -0.04622037336230278, -0.18512000143527985, 0.14209114015102386, 0.11947647482156754, 0.3269406855106354, 0.08009349554777145, -0.11356568336486816, -0.23123635351657867, 0.48279765248298645, 0.32637056708335876, -0.2479364424943924, -0.25517430901527405, -0.05624068155884743, -0.3647657334804535, -0.03201168775558472, 0.26554015278816223, 0.39750540256500244, -0.003296018810942769, 0.052043668925762177, 0.007727496325969696, -0.3785649538040161, 0.47975462675094604, -0.5694299936294556, -0.0697973445057869, -0.19357830286026, 0.25039732456207275, -0.04341575875878334, -0.08110954612493515, -0.4199208617210388, 0.06522998958826065, 0.5131905674934387, -0.09612667560577393, -0.050602298229932785, 0.1511283963918686, 0.15451295673847198, -0.18545888364315033, 0.024998150765895844, 0.329007089138031, 0.36337605118751526, -0.29646581411361694, 0.058436520397663116, -0.23157016932964325 ]
https://github.com/huggingface/datasets/issues/2761
Error loading C4 realnewslike dataset
I think I had an older version of datasets installed and that's why I commented the old configurations in my last comment, my bad! I re-checked and updated it to latest version (`datasets==1.11.0`) and it's showing `available configs: ['en', 'realnewslike', 'en.noblocklist', 'en.noclean']`. I tried `raw_datasets = load_dataset('c4', 'realnewslike')` and the download started. Make sure you don't have any old copy of this dataset and you download it fresh using the latest version of datasets. Sorry for the mix up!
## Describe the bug Error loading C4 realnewslike dataset. Validation part mismatch ## Steps to reproduce the bug ```python raw_datasets = load_dataset('c4', 'realnewslike', cache_dir=model_args.cache_dir) ## Expected results success on data loading ## Actual results Downloading: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 15.3M/15.3M [00:00<00:00, 28.1MB/s]Traceback (most recent call last): File "run_mlm_tf.py", line 794, in <module> main() File "run_mlm_tf.py", line 425, in main raw_datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name, cache_dir=model_args.cache_dir) File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/load.py", line 843, in load_dataset builder_instance.download_and_prepare( File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/builder.py", line 608, in download_and_prepare self._download_and_prepare( File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/builder.py", line 698, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/utils/info_utils.py", line 74, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='validation', num_bytes=38165657946, num_examples=13799838, dataset_name='c4'), 'recorded': SplitInfo(name='validation', num_bytes=37875873, num_examples=13863, dataset_name='c4')}] ## Environment info - `datasets` version: 1.10.2 - Platform: Linux-5.4.0-58-generic-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 4.0.1
79
Error loading C4 realnewslike dataset ## Describe the bug Error loading C4 realnewslike dataset. Validation part mismatch ## Steps to reproduce the bug ```python raw_datasets = load_dataset('c4', 'realnewslike', cache_dir=model_args.cache_dir) ## Expected results success on data loading ## Actual results Downloading: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 15.3M/15.3M [00:00<00:00, 28.1MB/s]Traceback (most recent call last): File "run_mlm_tf.py", line 794, in <module> main() File "run_mlm_tf.py", line 425, in main raw_datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name, cache_dir=model_args.cache_dir) File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/load.py", line 843, in load_dataset builder_instance.download_and_prepare( File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/builder.py", line 608, in download_and_prepare self._download_and_prepare( File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/builder.py", line 698, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/utils/info_utils.py", line 74, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='validation', num_bytes=38165657946, num_examples=13799838, dataset_name='c4'), 'recorded': SplitInfo(name='validation', num_bytes=37875873, num_examples=13863, dataset_name='c4')}] ## Environment info - `datasets` version: 1.10.2 - Platform: Linux-5.4.0-58-generic-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 4.0.1 I think I had an older version of datasets installed and that's why I commented the old configurations in my last comment, my bad! I re-checked and updated it to latest version (`datasets==1.11.0`) and it's showing `available configs: ['en', 'realnewslike', 'en.noblocklist', 'en.noclean']`. I tried `raw_datasets = load_dataset('c4', 'realnewslike')` and the download started. Make sure you don't have any old copy of this dataset and you download it fresh using the latest version of datasets. Sorry for the mix up!
[ -0.2315261960029602, 0.024640316143631935, -0.022366024553775787, 0.45745646953582764, 0.17442476749420166, 0.22958147525787354, -0.007371061015874147, 0.5081836581230164, -0.03165271505713463, 0.019125208258628845, -0.18429706990718842, -0.06401257961988449, -0.009163723327219486, 0.3338084816932678, -0.043365444988012314, -0.2194703221321106, -0.11076682806015015, 0.16060680150985718, 0.14076851308345795, 0.059750575572252274, -0.14481385052204132, 0.20090492069721222, -0.21544162929058075, -0.07255726307630539, -0.27071118354797363, -0.013007181696593761, 0.17583732306957245, 0.32055792212486267, 0.0850607380270958, -0.5288671255111694, 0.20255784690380096, -0.17395325005054474, 0.0258217491209507, 0.5030127763748169, -0.00011122843716293573, 0.04866405948996544, 0.42469173669815063, -0.0443260557949543, -0.3031129539012909, 0.08027120679616928, -0.3098667562007904, -0.24285975098609924, 0.14436519145965576, -0.0320095457136631, -0.33135926723480225, -0.19014987349510193, -0.233600452542305, -0.3375594913959503, 0.24932406842708588, 0.6167079210281372, 0.23858049511909485, 0.3121446967124939, 0.060873568058013916, 0.01650743931531906, -0.11098385602235794, -0.14757290482521057, -0.022677309811115265, 0.35120129585266113, -0.021519877016544342, 0.0317063070833683, 0.17848913371562958, 0.2144177407026291, 0.02875494956970215, 0.10949832201004028, 0.12858138978481293, -0.128562331199646, 0.20333616435527802, -0.10635054856538773, 0.1449158489704132, 0.3846839666366577, 0.3563731610774994, -0.24207375943660736, -0.15195120871067047, -0.3080826997756958, -0.19866149127483368, -0.277394562959671, 0.256582647562027, 0.19997434318065643, -0.16248835623264313, 0.16618317365646362, -0.39458170533180237, 0.29876774549484253, 0.05895412340760231, 0.08596674352884293, -0.19323302805423737, 0.24121589958667755, 0.1517072468996048, -0.026546290144324303, 0.02661147713661194, 0.09625973552465439, 0.16327066719532013, -0.19784222543239594, -0.06486035138368607, 0.21365785598754883, -0.6099302172660828, -0.22180725634098053, -0.3099174201488495, 0.49770572781562805, -0.014423301443457603, -0.05148295685648918, -0.11401188373565674, -0.017103910446166992, 0.17121736705303192, -0.1863042116165161, 0.16883258521556854, 0.2142096310853958, -0.19800899922847748, 0.12070978432893753, 0.1434050351381302, -0.10678819566965103, 0.016133442521095276, -0.07917781174182892, 0.16279199719429016, -0.13187533617019653, -0.06376472860574722, 0.2420959621667862, 0.05741459131240845, -0.3179151713848114, -0.6927224397659302, 0.24579980969429016, -0.3038002550601959, -0.0368809811770916, 0.0007452741847373545, 0.34661665558815, -0.3842548131942749, 0.26411503553390503, 0.10011070221662521, -0.17242158949375153, -0.27995312213897705, -0.2688709497451782, -0.20569774508476257, 0.05223008617758751, -0.3685681223869324, 0.0012722312239930034, 0.2524729371070862, -0.2094731330871582, 0.4003704786300659, -0.05119815841317177, 0.17518062889575958, -0.0478971004486084, 0.20912781357765198, -0.3762724697589874, -0.10815282166004181, 0.22559961676597595, -0.3169131278991699, 0.03763292357325554, 0.2689841091632843, -0.09270627796649933, 0.01039514783769846, -0.034260064363479614, 0.15934525430202484, -0.3435828387737274, -0.16379910707473755, 0.28722676634788513, -0.014550121501088142, 0.028838839381933212, 0.06846022605895996, -0.05402447655797005, 0.33956292271614075, -0.11571869254112244, -0.19577762484550476, -0.23940880596637726, 0.033054616302251816, -0.05822986736893654, 0.1889539211988449, 0.4896892309188843, -0.4754011631011963, 0.0806838721036911, -0.34057047963142395, 0.12214120477437973, 0.4467143714427948, 0.2935120761394501, -0.03302863612771034, 0.2765633463859558, -0.20774047076702118, 0.023706384003162384, -0.017436666414141655, -0.36867251992225647, -0.34446197748184204, 0.51756352186203, -0.08223725110292435, 0.3453439772129059, -0.05477109178900719, 0.04316694289445877, 0.1374017298221588, 0.043660592287778854, 0.1547784060239792, 0.20473776757717133, -0.14185091853141785, 0.1543140411376953, -0.5629569292068481, -0.12200009077787399, 0.36357375979423523, 0.013356734067201614, 0.18901488184928894, -0.20692682266235352, 0.12359096109867096, -0.08466190099716187, 0.4912211298942566, -0.008410472422838211, -0.12061981111764908, -0.03217364102602005, 0.2111114263534546, -0.024092847481369972, 0.1006423756480217, -0.2743466794490814, -0.5518815517425537, 0.2668115794658661, -0.023727042600512505, 0.1528528481721878, 0.12861360609531403, -0.04692314192652702, -0.5897586345672607, -0.14676889777183533, -0.1562294065952301, -0.24047516286373138, 0.10611944645643234, 0.1226576492190361, 0.24281413853168488, 0.07963623851537704, -0.054625630378723145, 0.5485525131225586, -0.05779634043574333, 0.14132897555828094, -0.07995511591434479, 0.3413335084915161, -0.15256281197071075, -0.03050936758518219, -0.03024488314986229, 0.13465851545333862, 0.2463359385728836, -0.09839464724063873, -0.35670235753059387, 0.642047107219696, 0.12486392259597778, 0.20668190717697144, -0.4426279067993164, 0.00530838081613183, 0.38274386525154114, -0.3125796318054199, 0.09570196270942688, 0.5969316363334656, 0.23789605498313904, 0.018149668350815773, 0.0953131839632988, 0.42451056838035583, -0.029068470001220703, -0.052503373473882675, 0.10602311789989471, -0.1878119260072708, 0.16333986818790436, -0.14692287147045135, 0.20097802579402924, -0.3520148992538452, 0.44012904167175293, -0.0863153263926506, 0.376046746969223, -0.024364538490772247, -0.14552836120128632, 0.0485069677233696, 0.40092408657073975, -0.07378815859556198, -0.01850026287138462, -0.1634853631258011, -0.18191739916801453, -0.11849120259284973, 0.3020990490913391, 0.32414576411247253, 0.6374417543411255, 0.17455323040485382, -0.21925358474254608, 0.2381291538476944, -0.000430539803346619, -0.25992724299430847, 0.4831359088420868, -0.1653631329536438, 0.012772928923368454, 0.4583311676979065, 0.008977455087006092, 0.10918107628822327, -0.44877201318740845, 0.1450788676738739, 0.12340288609266281, 0.18180130422115326, -0.36079269647598267, 0.07881630212068558, -0.21522194147109985, 0.09686741977930069, -0.3518633246421814, -0.2619575262069702, 0.029402470216155052, -0.31338003277778625, -0.017871558666229248, 0.13682317733764648, -0.050381410866975784, 0.23081143200397491, -0.46726173162460327, 0.08465603739023209, 0.11243440210819244, -0.12309826910495758, -0.20040667057037354, 0.07373271882534027, -0.36125901341438293, 0.09889250248670578, 0.25351351499557495, 0.06784941256046295, 0.2908094525337219, -0.19567938148975372, -0.15118399262428284, 0.02410152181982994, -0.40364813804626465, 0.12782251834869385, 0.11806978285312653, 0.2275422364473343, 0.09695613384246826, 0.07448124140501022, 0.3463866114616394, -0.41219526529312134, -0.07106775045394897, -0.13084158301353455, -0.2183186262845993, 0.1705411821603775, 0.03321192413568497, 0.024735650047659874, -0.11560437083244324, -0.5987547636032104, -0.4374188482761383, -0.3892827332019806, -0.0498276948928833, -0.164516881108284, -0.07285080850124359, 0.19889584183692932, -0.13437846302986145, 0.05142631754279137, 0.1836193948984146, -0.07209804654121399, -0.40095293521881104, 0.2122820019721985, 0.14455871284008026, -0.03927576169371605, -0.22417987883090973, -0.13846513628959656, -0.07727750390768051, -0.05277374014258385, -0.04581707343459129, -0.3023410439491272, 0.25432631373405457, -0.4560001790523529, 0.2435562014579773, -0.19859647750854492, -0.21312379837036133, 0.2872215509414673, 0.03184739500284195, -0.035461246967315674, -0.1347288191318512, -0.03443807363510132, -0.07229173183441162, -0.10716454684734344, 0.16366419196128845, -0.1976880431175232, 0.39424335956573486, 0.1363978236913681, 0.48135870695114136, 0.24167536199092865, -0.5439121127128601, 0.06806619465351105, 0.17057228088378906, 0.20486506819725037, -0.09902818500995636, -0.3353739380836487, 0.3906063437461853, -0.06826766580343246, 0.023958096280694008, 0.2752486765384674, -0.3505271077156067, -0.2781623899936676, -0.03561070188879967, 0.19649140536785126, -0.3761669099330902, -0.025656500831246376, -0.133863165974617, -0.1636420041322708, 0.20585480332374573, 0.32547885179519653, 0.2892023026943207, 0.035488758236169815, -0.16371698677539825, 0.25034627318382263, 0.2493044137954712, 0.01250903494656086, -0.14406415820121765, -0.12907513976097107, -0.1602593958377838, -0.22746926546096802, 0.38325008749961853, 0.34127452969551086, 0.2640645503997803, 0.0742880329489708, -0.11759538948535919, -0.042978767305612564, -0.06874387711286545, 0.6774853467941284, -0.1602199822664261, 0.13942089676856995, -0.0770249217748642, 0.1332768350839615, -0.15247195959091187, -0.22403553128242493, -0.02292918786406517, 0.023780010640621185, 0.294780433177948, 0.5989148020744324, -0.32090383768081665, -0.14464347064495087, 0.34409984946250916, 0.3235155940055847, -0.16147010028362274, -0.31342610716819763, -0.03469471260905266, -0.0641084685921669, -0.04521684721112251, 0.11545001715421677, 0.046288780868053436, 0.27834877371788025, -0.1482948511838913, -0.15314006805419922, 0.035107437521219254, -0.050718288868665695, 0.24413901567459106, 0.3141935467720032, 0.32863757014274597, -0.03860531002283096, 0.3620902895927429, 0.15740109980106354, 0.30236542224884033, 0.3721848726272583, 0.21110641956329346, -0.345464825630188, -0.05831479653716087, -0.1266355812549591, 0.09325715154409409, -0.0013120139483362436, 0.28188857436180115, -0.049035683274269104, -0.1346835345029831, 0.25066351890563965, 0.06841931492090225, -0.15246278047561646, 0.34522512555122375, -0.01778598502278328, 0.0991840660572052, -0.17988084256649017, -0.3432310223579407, 0.23169013857841492, -0.15484963357448578, 0.014570825733244419, 0.11570236831903458, 0.06790082901716232, -0.3640976846218109, -0.08807308226823807, 0.0034846696071326733, 0.799934983253479, 0.3829320967197418, -0.15092770755290985, 0.24419169127941132, -0.35335463285446167, 0.02274543233215809, -0.37820449471473694, 0.17043133080005646, -0.33213213086128235, -0.16701121628284454, -0.05126432701945305, -0.19500936567783356, -0.07095537334680557, 0.07453863322734833, -0.2098713368177414, 0.2186291664838791, -0.12442203611135483, 0.07746802270412445, 0.2048073559999466, 0.23702780902385712, 0.07307718694210052, 0.13322187960147858, -0.1807200014591217, 0.14647874236106873, -0.06122366711497307, 0.15841642022132874, -0.20900247991085052, -0.07801751047372818, 0.04622466862201691, -0.18781988322734833, -0.23432251811027527, 0.20044666528701782, -0.6715443730354309, 0.027444571256637573, 0.030634893104434013, -0.0971902459859848, -0.0029016556218266487, -0.09633244574069977, 0.23918665945529938, 0.2715613543987274, -0.12290839105844498, 0.03584989905357361, 0.1376941055059433, 0.1534956842660904, 0.052968475967645645, -0.03875988349318504, 0.200301393866539, -0.1359013319015503, -0.17902830243110657, 0.08240588754415512, -0.3000933527946472, -0.18088795244693756, 0.23184245824813843, -0.08168813586235046, -0.028823912143707275, -0.31303972005844116, -0.16938507556915283, -0.08667803555727005, 0.10645768791437149, -0.20349273085594177, 0.15350884199142456, -0.21645869314670563, -0.32827338576316833, 0.04801890254020691, 0.05142492055892944, -0.32084420323371887, -0.3036954998970032, 0.26007553935050964, 0.1588466316461563, -0.02626507170498371, 0.37884321808815, 0.011533653363585472, -0.32690373063087463, -0.25259873270988464, -0.1472419798374176, 0.15462633967399597, -0.4197559654712677, 0.09713659435510635, -0.33189231157302856, -0.25624534487724304, 0.15764600038528442, 0.2788512110710144, 0.5067477226257324, 0.03763386979699135, 0.05518640950322151, -0.5445110201835632, -0.10507624596357346, 0.046375617384910583, -0.167886883020401, 0.22103558480739594, -0.05515704303979874, 0.6132636070251465, -0.31471794843673706, 0.18145956099033356, -0.33864402770996094, 0.03922960162162781, -0.12331639975309372, 0.18939705193042755, 0.0008279492030851543, -0.29673272371292114, 0.27964988350868225, 0.09817900508642197, 0.20745190978050232, 0.36252498626708984, -0.1502893567085266, -0.19646038115024567, -0.17003491520881653, 0.10347740352153778, 0.0979660153388977, -0.23080119490623474, 0.06258602440357208, 0.15897412598133087, -0.04345642402768135, -0.008685903623700142, 0.1131301298737526, -0.10680875927209854, -0.043367307633161545, 0.16552236676216125, 0.3677057921886444, -0.07249397039413452, -0.24274559319019318, 0.09125939011573792, -0.1443973183631897, 0.08559226989746094, 0.04841172695159912, 0.12990343570709229, -0.1480562835931778, 0.04758129268884659, 0.15830154716968536, -0.05593356862664223, 0.2772262394428253, 0.20091736316680908, 0.2070956975221634, -0.24992069602012634, -0.294511079788208, 0.2605379521846771, 0.17688526213169098, 0.42841073870658875, 0.011491719633340836, -0.15831033885478973, 0.06980287283658981, 0.26372483372688293, -0.33385995030403137, -0.08000704646110535, -0.08416692912578583, -0.2150551676750183, 0.19192467629909515, 0.0787678137421608, 0.09974542260169983, -0.18593938648700714, -0.04689962416887283, 0.2622561454772949, 0.43328869342803955, -0.08601353317499161, 0.10912353545427322, 0.3987324833869934, -0.07160946726799011, 0.029581578448414803, 0.14997795224189758, -0.25026005506515503, 0.0625840350985527, 0.3447423279285431, -0.047967810183763504, 0.13587258756160736, 0.010184247978031635, 0.17706190049648285, -0.09116177260875702, -0.16177712380886078, 0.2650984227657318, 0.41974860429763794, -0.40402719378471375, 0.2929239571094513, 0.23871871829032898, -0.10232969373464584, -0.3085988163948059, -0.18458782136440277, -0.4084450900554657, -0.19397065043449402, -0.07196410000324249, 0.10643924027681351, 0.01732243038713932, -0.342833548784256, -0.22689762711524963, -0.011369443498551846, -0.033570315688848495, 0.04784863442182541, 0.525911271572113, 0.024520402774214745, -0.23301149904727936, -0.12810863554477692, -0.28379011154174805, 0.20174051821231842, 0.2190142124891281, -0.34135448932647705, 0.34174585342407227, 0.20175138115882874, -0.18790827691555023, -0.23577477037906647, 0.19087564945220947, 0.19290731847286224, 0.42273250222206116, -0.26074159145355225, -0.10731929540634155, 0.1446974277496338, 0.0094173364341259, 0.12351538240909576, 0.41841843724250793, 0.059074416756629944, -0.07220334559679031, 0.22626502811908722, 0.13556337356567383, -0.24584247171878815, 0.14196917414665222, -0.08040449023246765, -0.11368429660797119, -0.6303748488426208, 0.33984076976776123, -0.02703261747956276, -0.005356107838451862, -0.10635598003864288, 0.2040739506483078, -0.3419700860977173, 0.0560278557240963, 0.39370834827423096, -0.10502982139587402, 0.2485334873199463, 0.13549496233463287, 0.09909211099147797, -0.14319688081741333, 0.38790038228034973, 0.15731507539749146, 0.06969863921403885, -0.5092072486877441, -0.13680881261825562, -0.44292137026786804, 0.23156976699829102, -0.1639961153268814, 0.18357375264167786, -0.04636666551232338, 0.04757164046168327, 0.10860411822795868, 0.18673665821552277, 0.14623034000396729, 0.37932059168815613, 0.18092623353004456, -0.04415888339281082, -0.27042949199676514, -0.14950555562973022, -0.1365632861852646, -0.203346848487854, 0.03302814066410065, -0.5399729013442993, 0.07811810076236725, 0.10107985883951187, 0.11846381425857544, -0.09273049235343933, -0.2510058581829071, 0.3491324186325073, 0.2162151336669922, 0.34822577238082886, 0.3603937029838562, 0.5763019323348999, -0.15500006079673767, -0.18057318031787872, 0.0021047533955425024, -0.04622037336230278, -0.18512000143527985, 0.14209114015102386, 0.11947647482156754, 0.3269406855106354, 0.08009349554777145, -0.11356568336486816, -0.23123635351657867, 0.48279765248298645, 0.32637056708335876, -0.2479364424943924, -0.25517430901527405, -0.05624068155884743, -0.3647657334804535, -0.03201168775558472, 0.26554015278816223, 0.39750540256500244, -0.003296018810942769, 0.052043668925762177, 0.007727496325969696, -0.3785649538040161, 0.47975462675094604, -0.5694299936294556, -0.0697973445057869, -0.19357830286026, 0.25039732456207275, -0.04341575875878334, -0.08110954612493515, -0.4199208617210388, 0.06522998958826065, 0.5131905674934387, -0.09612667560577393, -0.050602298229932785, 0.1511283963918686, 0.15451295673847198, -0.18545888364315033, 0.024998150765895844, 0.329007089138031, 0.36337605118751526, -0.29646581411361694, 0.058436520397663116, -0.23157016932964325 ]
https://github.com/huggingface/datasets/issues/2761
Error loading C4 realnewslike dataset
It works. I probably had some issue with the cache. after cleaning it im able to download the dataset. Thanks
## Describe the bug Error loading C4 realnewslike dataset. Validation part mismatch ## Steps to reproduce the bug ```python raw_datasets = load_dataset('c4', 'realnewslike', cache_dir=model_args.cache_dir) ## Expected results success on data loading ## Actual results Downloading: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 15.3M/15.3M [00:00<00:00, 28.1MB/s]Traceback (most recent call last): File "run_mlm_tf.py", line 794, in <module> main() File "run_mlm_tf.py", line 425, in main raw_datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name, cache_dir=model_args.cache_dir) File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/load.py", line 843, in load_dataset builder_instance.download_and_prepare( File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/builder.py", line 608, in download_and_prepare self._download_and_prepare( File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/builder.py", line 698, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/utils/info_utils.py", line 74, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='validation', num_bytes=38165657946, num_examples=13799838, dataset_name='c4'), 'recorded': SplitInfo(name='validation', num_bytes=37875873, num_examples=13863, dataset_name='c4')}] ## Environment info - `datasets` version: 1.10.2 - Platform: Linux-5.4.0-58-generic-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 4.0.1
20
Error loading C4 realnewslike dataset ## Describe the bug Error loading C4 realnewslike dataset. Validation part mismatch ## Steps to reproduce the bug ```python raw_datasets = load_dataset('c4', 'realnewslike', cache_dir=model_args.cache_dir) ## Expected results success on data loading ## Actual results Downloading: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 15.3M/15.3M [00:00<00:00, 28.1MB/s]Traceback (most recent call last): File "run_mlm_tf.py", line 794, in <module> main() File "run_mlm_tf.py", line 425, in main raw_datasets = load_dataset(data_args.dataset_name, data_args.dataset_config_name, cache_dir=model_args.cache_dir) File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/load.py", line 843, in load_dataset builder_instance.download_and_prepare( File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/builder.py", line 608, in download_and_prepare self._download_and_prepare( File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/builder.py", line 698, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/home/dshirron/.local/lib/python3.8/site-packages/datasets/utils/info_utils.py", line 74, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='validation', num_bytes=38165657946, num_examples=13799838, dataset_name='c4'), 'recorded': SplitInfo(name='validation', num_bytes=37875873, num_examples=13863, dataset_name='c4')}] ## Environment info - `datasets` version: 1.10.2 - Platform: Linux-5.4.0-58-generic-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 4.0.1 It works. I probably had some issue with the cache. after cleaning it im able to download the dataset. Thanks
[ -0.2315261960029602, 0.024640316143631935, -0.022366024553775787, 0.45745646953582764, 0.17442476749420166, 0.22958147525787354, -0.007371061015874147, 0.5081836581230164, -0.03165271505713463, 0.019125208258628845, -0.18429706990718842, -0.06401257961988449, -0.009163723327219486, 0.3338084816932678, -0.043365444988012314, -0.2194703221321106, -0.11076682806015015, 0.16060680150985718, 0.14076851308345795, 0.059750575572252274, -0.14481385052204132, 0.20090492069721222, -0.21544162929058075, -0.07255726307630539, -0.27071118354797363, -0.013007181696593761, 0.17583732306957245, 0.32055792212486267, 0.0850607380270958, -0.5288671255111694, 0.20255784690380096, -0.17395325005054474, 0.0258217491209507, 0.5030127763748169, -0.00011122843716293573, 0.04866405948996544, 0.42469173669815063, -0.0443260557949543, -0.3031129539012909, 0.08027120679616928, -0.3098667562007904, -0.24285975098609924, 0.14436519145965576, -0.0320095457136631, -0.33135926723480225, -0.19014987349510193, -0.233600452542305, -0.3375594913959503, 0.24932406842708588, 0.6167079210281372, 0.23858049511909485, 0.3121446967124939, 0.060873568058013916, 0.01650743931531906, -0.11098385602235794, -0.14757290482521057, -0.022677309811115265, 0.35120129585266113, -0.021519877016544342, 0.0317063070833683, 0.17848913371562958, 0.2144177407026291, 0.02875494956970215, 0.10949832201004028, 0.12858138978481293, -0.128562331199646, 0.20333616435527802, -0.10635054856538773, 0.1449158489704132, 0.3846839666366577, 0.3563731610774994, -0.24207375943660736, -0.15195120871067047, -0.3080826997756958, -0.19866149127483368, -0.277394562959671, 0.256582647562027, 0.19997434318065643, -0.16248835623264313, 0.16618317365646362, -0.39458170533180237, 0.29876774549484253, 0.05895412340760231, 0.08596674352884293, -0.19323302805423737, 0.24121589958667755, 0.1517072468996048, -0.026546290144324303, 0.02661147713661194, 0.09625973552465439, 0.16327066719532013, -0.19784222543239594, -0.06486035138368607, 0.21365785598754883, -0.6099302172660828, -0.22180725634098053, -0.3099174201488495, 0.49770572781562805, -0.014423301443457603, -0.05148295685648918, -0.11401188373565674, -0.017103910446166992, 0.17121736705303192, -0.1863042116165161, 0.16883258521556854, 0.2142096310853958, -0.19800899922847748, 0.12070978432893753, 0.1434050351381302, -0.10678819566965103, 0.016133442521095276, -0.07917781174182892, 0.16279199719429016, -0.13187533617019653, -0.06376472860574722, 0.2420959621667862, 0.05741459131240845, -0.3179151713848114, -0.6927224397659302, 0.24579980969429016, -0.3038002550601959, -0.0368809811770916, 0.0007452741847373545, 0.34661665558815, -0.3842548131942749, 0.26411503553390503, 0.10011070221662521, -0.17242158949375153, -0.27995312213897705, -0.2688709497451782, -0.20569774508476257, 0.05223008617758751, -0.3685681223869324, 0.0012722312239930034, 0.2524729371070862, -0.2094731330871582, 0.4003704786300659, -0.05119815841317177, 0.17518062889575958, -0.0478971004486084, 0.20912781357765198, -0.3762724697589874, -0.10815282166004181, 0.22559961676597595, -0.3169131278991699, 0.03763292357325554, 0.2689841091632843, -0.09270627796649933, 0.01039514783769846, -0.034260064363479614, 0.15934525430202484, -0.3435828387737274, -0.16379910707473755, 0.28722676634788513, -0.014550121501088142, 0.028838839381933212, 0.06846022605895996, -0.05402447655797005, 0.33956292271614075, -0.11571869254112244, -0.19577762484550476, -0.23940880596637726, 0.033054616302251816, -0.05822986736893654, 0.1889539211988449, 0.4896892309188843, -0.4754011631011963, 0.0806838721036911, -0.34057047963142395, 0.12214120477437973, 0.4467143714427948, 0.2935120761394501, -0.03302863612771034, 0.2765633463859558, -0.20774047076702118, 0.023706384003162384, -0.017436666414141655, -0.36867251992225647, -0.34446197748184204, 0.51756352186203, -0.08223725110292435, 0.3453439772129059, -0.05477109178900719, 0.04316694289445877, 0.1374017298221588, 0.043660592287778854, 0.1547784060239792, 0.20473776757717133, -0.14185091853141785, 0.1543140411376953, -0.5629569292068481, -0.12200009077787399, 0.36357375979423523, 0.013356734067201614, 0.18901488184928894, -0.20692682266235352, 0.12359096109867096, -0.08466190099716187, 0.4912211298942566, -0.008410472422838211, -0.12061981111764908, -0.03217364102602005, 0.2111114263534546, -0.024092847481369972, 0.1006423756480217, -0.2743466794490814, -0.5518815517425537, 0.2668115794658661, -0.023727042600512505, 0.1528528481721878, 0.12861360609531403, -0.04692314192652702, -0.5897586345672607, -0.14676889777183533, -0.1562294065952301, -0.24047516286373138, 0.10611944645643234, 0.1226576492190361, 0.24281413853168488, 0.07963623851537704, -0.054625630378723145, 0.5485525131225586, -0.05779634043574333, 0.14132897555828094, -0.07995511591434479, 0.3413335084915161, -0.15256281197071075, -0.03050936758518219, -0.03024488314986229, 0.13465851545333862, 0.2463359385728836, -0.09839464724063873, -0.35670235753059387, 0.642047107219696, 0.12486392259597778, 0.20668190717697144, -0.4426279067993164, 0.00530838081613183, 0.38274386525154114, -0.3125796318054199, 0.09570196270942688, 0.5969316363334656, 0.23789605498313904, 0.018149668350815773, 0.0953131839632988, 0.42451056838035583, -0.029068470001220703, -0.052503373473882675, 0.10602311789989471, -0.1878119260072708, 0.16333986818790436, -0.14692287147045135, 0.20097802579402924, -0.3520148992538452, 0.44012904167175293, -0.0863153263926506, 0.376046746969223, -0.024364538490772247, -0.14552836120128632, 0.0485069677233696, 0.40092408657073975, -0.07378815859556198, -0.01850026287138462, -0.1634853631258011, -0.18191739916801453, -0.11849120259284973, 0.3020990490913391, 0.32414576411247253, 0.6374417543411255, 0.17455323040485382, -0.21925358474254608, 0.2381291538476944, -0.000430539803346619, -0.25992724299430847, 0.4831359088420868, -0.1653631329536438, 0.012772928923368454, 0.4583311676979065, 0.008977455087006092, 0.10918107628822327, -0.44877201318740845, 0.1450788676738739, 0.12340288609266281, 0.18180130422115326, -0.36079269647598267, 0.07881630212068558, -0.21522194147109985, 0.09686741977930069, -0.3518633246421814, -0.2619575262069702, 0.029402470216155052, -0.31338003277778625, -0.017871558666229248, 0.13682317733764648, -0.050381410866975784, 0.23081143200397491, -0.46726173162460327, 0.08465603739023209, 0.11243440210819244, -0.12309826910495758, -0.20040667057037354, 0.07373271882534027, -0.36125901341438293, 0.09889250248670578, 0.25351351499557495, 0.06784941256046295, 0.2908094525337219, -0.19567938148975372, -0.15118399262428284, 0.02410152181982994, -0.40364813804626465, 0.12782251834869385, 0.11806978285312653, 0.2275422364473343, 0.09695613384246826, 0.07448124140501022, 0.3463866114616394, -0.41219526529312134, -0.07106775045394897, -0.13084158301353455, -0.2183186262845993, 0.1705411821603775, 0.03321192413568497, 0.024735650047659874, -0.11560437083244324, -0.5987547636032104, -0.4374188482761383, -0.3892827332019806, -0.0498276948928833, -0.164516881108284, -0.07285080850124359, 0.19889584183692932, -0.13437846302986145, 0.05142631754279137, 0.1836193948984146, -0.07209804654121399, -0.40095293521881104, 0.2122820019721985, 0.14455871284008026, -0.03927576169371605, -0.22417987883090973, -0.13846513628959656, -0.07727750390768051, -0.05277374014258385, -0.04581707343459129, -0.3023410439491272, 0.25432631373405457, -0.4560001790523529, 0.2435562014579773, -0.19859647750854492, -0.21312379837036133, 0.2872215509414673, 0.03184739500284195, -0.035461246967315674, -0.1347288191318512, -0.03443807363510132, -0.07229173183441162, -0.10716454684734344, 0.16366419196128845, -0.1976880431175232, 0.39424335956573486, 0.1363978236913681, 0.48135870695114136, 0.24167536199092865, -0.5439121127128601, 0.06806619465351105, 0.17057228088378906, 0.20486506819725037, -0.09902818500995636, -0.3353739380836487, 0.3906063437461853, -0.06826766580343246, 0.023958096280694008, 0.2752486765384674, -0.3505271077156067, -0.2781623899936676, -0.03561070188879967, 0.19649140536785126, -0.3761669099330902, -0.025656500831246376, -0.133863165974617, -0.1636420041322708, 0.20585480332374573, 0.32547885179519653, 0.2892023026943207, 0.035488758236169815, -0.16371698677539825, 0.25034627318382263, 0.2493044137954712, 0.01250903494656086, -0.14406415820121765, -0.12907513976097107, -0.1602593958377838, -0.22746926546096802, 0.38325008749961853, 0.34127452969551086, 0.2640645503997803, 0.0742880329489708, -0.11759538948535919, -0.042978767305612564, -0.06874387711286545, 0.6774853467941284, -0.1602199822664261, 0.13942089676856995, -0.0770249217748642, 0.1332768350839615, -0.15247195959091187, -0.22403553128242493, -0.02292918786406517, 0.023780010640621185, 0.294780433177948, 0.5989148020744324, -0.32090383768081665, -0.14464347064495087, 0.34409984946250916, 0.3235155940055847, -0.16147010028362274, -0.31342610716819763, -0.03469471260905266, -0.0641084685921669, -0.04521684721112251, 0.11545001715421677, 0.046288780868053436, 0.27834877371788025, -0.1482948511838913, -0.15314006805419922, 0.035107437521219254, -0.050718288868665695, 0.24413901567459106, 0.3141935467720032, 0.32863757014274597, -0.03860531002283096, 0.3620902895927429, 0.15740109980106354, 0.30236542224884033, 0.3721848726272583, 0.21110641956329346, -0.345464825630188, -0.05831479653716087, -0.1266355812549591, 0.09325715154409409, -0.0013120139483362436, 0.28188857436180115, -0.049035683274269104, -0.1346835345029831, 0.25066351890563965, 0.06841931492090225, -0.15246278047561646, 0.34522512555122375, -0.01778598502278328, 0.0991840660572052, -0.17988084256649017, -0.3432310223579407, 0.23169013857841492, -0.15484963357448578, 0.014570825733244419, 0.11570236831903458, 0.06790082901716232, -0.3640976846218109, -0.08807308226823807, 0.0034846696071326733, 0.799934983253479, 0.3829320967197418, -0.15092770755290985, 0.24419169127941132, -0.35335463285446167, 0.02274543233215809, -0.37820449471473694, 0.17043133080005646, -0.33213213086128235, -0.16701121628284454, -0.05126432701945305, -0.19500936567783356, -0.07095537334680557, 0.07453863322734833, -0.2098713368177414, 0.2186291664838791, -0.12442203611135483, 0.07746802270412445, 0.2048073559999466, 0.23702780902385712, 0.07307718694210052, 0.13322187960147858, -0.1807200014591217, 0.14647874236106873, -0.06122366711497307, 0.15841642022132874, -0.20900247991085052, -0.07801751047372818, 0.04622466862201691, -0.18781988322734833, -0.23432251811027527, 0.20044666528701782, -0.6715443730354309, 0.027444571256637573, 0.030634893104434013, -0.0971902459859848, -0.0029016556218266487, -0.09633244574069977, 0.23918665945529938, 0.2715613543987274, -0.12290839105844498, 0.03584989905357361, 0.1376941055059433, 0.1534956842660904, 0.052968475967645645, -0.03875988349318504, 0.200301393866539, -0.1359013319015503, -0.17902830243110657, 0.08240588754415512, -0.3000933527946472, -0.18088795244693756, 0.23184245824813843, -0.08168813586235046, -0.028823912143707275, -0.31303972005844116, -0.16938507556915283, -0.08667803555727005, 0.10645768791437149, -0.20349273085594177, 0.15350884199142456, -0.21645869314670563, -0.32827338576316833, 0.04801890254020691, 0.05142492055892944, -0.32084420323371887, -0.3036954998970032, 0.26007553935050964, 0.1588466316461563, -0.02626507170498371, 0.37884321808815, 0.011533653363585472, -0.32690373063087463, -0.25259873270988464, -0.1472419798374176, 0.15462633967399597, -0.4197559654712677, 0.09713659435510635, -0.33189231157302856, -0.25624534487724304, 0.15764600038528442, 0.2788512110710144, 0.5067477226257324, 0.03763386979699135, 0.05518640950322151, -0.5445110201835632, -0.10507624596357346, 0.046375617384910583, -0.167886883020401, 0.22103558480739594, -0.05515704303979874, 0.6132636070251465, -0.31471794843673706, 0.18145956099033356, -0.33864402770996094, 0.03922960162162781, -0.12331639975309372, 0.18939705193042755, 0.0008279492030851543, -0.29673272371292114, 0.27964988350868225, 0.09817900508642197, 0.20745190978050232, 0.36252498626708984, -0.1502893567085266, -0.19646038115024567, -0.17003491520881653, 0.10347740352153778, 0.0979660153388977, -0.23080119490623474, 0.06258602440357208, 0.15897412598133087, -0.04345642402768135, -0.008685903623700142, 0.1131301298737526, -0.10680875927209854, -0.043367307633161545, 0.16552236676216125, 0.3677057921886444, -0.07249397039413452, -0.24274559319019318, 0.09125939011573792, -0.1443973183631897, 0.08559226989746094, 0.04841172695159912, 0.12990343570709229, -0.1480562835931778, 0.04758129268884659, 0.15830154716968536, -0.05593356862664223, 0.2772262394428253, 0.20091736316680908, 0.2070956975221634, -0.24992069602012634, -0.294511079788208, 0.2605379521846771, 0.17688526213169098, 0.42841073870658875, 0.011491719633340836, -0.15831033885478973, 0.06980287283658981, 0.26372483372688293, -0.33385995030403137, -0.08000704646110535, -0.08416692912578583, -0.2150551676750183, 0.19192467629909515, 0.0787678137421608, 0.09974542260169983, -0.18593938648700714, -0.04689962416887283, 0.2622561454772949, 0.43328869342803955, -0.08601353317499161, 0.10912353545427322, 0.3987324833869934, -0.07160946726799011, 0.029581578448414803, 0.14997795224189758, -0.25026005506515503, 0.0625840350985527, 0.3447423279285431, -0.047967810183763504, 0.13587258756160736, 0.010184247978031635, 0.17706190049648285, -0.09116177260875702, -0.16177712380886078, 0.2650984227657318, 0.41974860429763794, -0.40402719378471375, 0.2929239571094513, 0.23871871829032898, -0.10232969373464584, -0.3085988163948059, -0.18458782136440277, -0.4084450900554657, -0.19397065043449402, -0.07196410000324249, 0.10643924027681351, 0.01732243038713932, -0.342833548784256, -0.22689762711524963, -0.011369443498551846, -0.033570315688848495, 0.04784863442182541, 0.525911271572113, 0.024520402774214745, -0.23301149904727936, -0.12810863554477692, -0.28379011154174805, 0.20174051821231842, 0.2190142124891281, -0.34135448932647705, 0.34174585342407227, 0.20175138115882874, -0.18790827691555023, -0.23577477037906647, 0.19087564945220947, 0.19290731847286224, 0.42273250222206116, -0.26074159145355225, -0.10731929540634155, 0.1446974277496338, 0.0094173364341259, 0.12351538240909576, 0.41841843724250793, 0.059074416756629944, -0.07220334559679031, 0.22626502811908722, 0.13556337356567383, -0.24584247171878815, 0.14196917414665222, -0.08040449023246765, -0.11368429660797119, -0.6303748488426208, 0.33984076976776123, -0.02703261747956276, -0.005356107838451862, -0.10635598003864288, 0.2040739506483078, -0.3419700860977173, 0.0560278557240963, 0.39370834827423096, -0.10502982139587402, 0.2485334873199463, 0.13549496233463287, 0.09909211099147797, -0.14319688081741333, 0.38790038228034973, 0.15731507539749146, 0.06969863921403885, -0.5092072486877441, -0.13680881261825562, -0.44292137026786804, 0.23156976699829102, -0.1639961153268814, 0.18357375264167786, -0.04636666551232338, 0.04757164046168327, 0.10860411822795868, 0.18673665821552277, 0.14623034000396729, 0.37932059168815613, 0.18092623353004456, -0.04415888339281082, -0.27042949199676514, -0.14950555562973022, -0.1365632861852646, -0.203346848487854, 0.03302814066410065, -0.5399729013442993, 0.07811810076236725, 0.10107985883951187, 0.11846381425857544, -0.09273049235343933, -0.2510058581829071, 0.3491324186325073, 0.2162151336669922, 0.34822577238082886, 0.3603937029838562, 0.5763019323348999, -0.15500006079673767, -0.18057318031787872, 0.0021047533955425024, -0.04622037336230278, -0.18512000143527985, 0.14209114015102386, 0.11947647482156754, 0.3269406855106354, 0.08009349554777145, -0.11356568336486816, -0.23123635351657867, 0.48279765248298645, 0.32637056708335876, -0.2479364424943924, -0.25517430901527405, -0.05624068155884743, -0.3647657334804535, -0.03201168775558472, 0.26554015278816223, 0.39750540256500244, -0.003296018810942769, 0.052043668925762177, 0.007727496325969696, -0.3785649538040161, 0.47975462675094604, -0.5694299936294556, -0.0697973445057869, -0.19357830286026, 0.25039732456207275, -0.04341575875878334, -0.08110954612493515, -0.4199208617210388, 0.06522998958826065, 0.5131905674934387, -0.09612667560577393, -0.050602298229932785, 0.1511283963918686, 0.15451295673847198, -0.18545888364315033, 0.024998150765895844, 0.329007089138031, 0.36337605118751526, -0.29646581411361694, 0.058436520397663116, -0.23157016932964325 ]
https://github.com/huggingface/datasets/issues/2759
the meteor metric seems not consist with the official version
the issue is caused by the differences between varied meteor versions: meteor1.0 is for https://aclanthology.org/W07-0734.pdf meteor1.5 is for https://aclanthology.org/W14-3348.pdf here is a very similar issue in NLTK https://github.com/nltk/nltk/issues/2655
## Describe the bug The computed meteor score seems strange because the value is very different from the scores computed by other tools. For example, I use the meteor score computed by [NLGeval](https://github.com/Maluuba/nlg-eval) as the reference (which reuses the official jar file for the computation) ## Steps to reproduce the bug ```python from datasets import load_metric from nlgeval import NLGEval, compute_individual_metrics meteor = load_metric('meteor') predictions = ["It is a guide to action which ensures that the military always obeys the commands of the party"] references = ["It is a guide to action that ensures that the military will forever heed Party commands"] results = meteor.compute(predictions=predictions, references=references) # print the actual result print(round(results["meteor"], 4)) metrics_dict = compute_individual_metrics(references, predictions[0]) # print the expected result print(round(metrics_dict["METEOR"], 4)) ``` By the way, you need to install the `nlg-eval` library first. Please check the installation guide [here](https://github.com/Maluuba/nlg-eval#setup), thanks! ## Expected results `0.4474` ## Actual results `0.7398` ## Environment info - `datasets` version: 1.10.2 - Platform: macOS-10.16-x86_64-i386-64bit - Python version: 3.8.5 - PyArrow version: 4.0.1
28
the meteor metric seems not consist with the official version ## Describe the bug The computed meteor score seems strange because the value is very different from the scores computed by other tools. For example, I use the meteor score computed by [NLGeval](https://github.com/Maluuba/nlg-eval) as the reference (which reuses the official jar file for the computation) ## Steps to reproduce the bug ```python from datasets import load_metric from nlgeval import NLGEval, compute_individual_metrics meteor = load_metric('meteor') predictions = ["It is a guide to action which ensures that the military always obeys the commands of the party"] references = ["It is a guide to action that ensures that the military will forever heed Party commands"] results = meteor.compute(predictions=predictions, references=references) # print the actual result print(round(results["meteor"], 4)) metrics_dict = compute_individual_metrics(references, predictions[0]) # print the expected result print(round(metrics_dict["METEOR"], 4)) ``` By the way, you need to install the `nlg-eval` library first. Please check the installation guide [here](https://github.com/Maluuba/nlg-eval#setup), thanks! ## Expected results `0.4474` ## Actual results `0.7398` ## Environment info - `datasets` version: 1.10.2 - Platform: macOS-10.16-x86_64-i386-64bit - Python version: 3.8.5 - PyArrow version: 4.0.1 the issue is caused by the differences between varied meteor versions: meteor1.0 is for https://aclanthology.org/W07-0734.pdf meteor1.5 is for https://aclanthology.org/W14-3348.pdf here is a very similar issue in NLTK https://github.com/nltk/nltk/issues/2655
[ -0.13581611216068268, -0.23497794568538666, -0.005932968575507402, 0.4061324894428253, 0.18514865636825562, -0.22603759169578552, -0.17160923779010773, 0.23573043942451477, -0.04383426159620285, 0.07408564537763596, 0.06682059168815613, 0.38599303364753723, -0.09585417807102203, -0.4473045766353607, -0.03920196369290352, -0.002986137755215168, -0.0017698828596621752, -0.273246169090271, -0.15616834163665771, -0.11422830075025558, -0.0879569724202156, 0.25576329231262207, -0.05864269286394119, 0.09833874553442001, 0.15123385190963745, 0.21464698016643524, 0.23393091559410095, -0.0853133425116539, -0.0735769048333168, -0.2372509092092514, 0.44641777873039246, -0.2547118067741394, 0.10615876317024231, 0.571884274482727, -0.00010922284127445891, -0.1097545474767685, 0.5471619963645935, -0.005744721740484238, -0.16407005488872528, -0.3211086690425873, -0.200969859957695, -0.3649701476097107, 0.3099009096622467, -0.2298341542482376, -0.13326117396354675, 0.0013613172341138124, -0.27348607778549194, -0.09778817743062973, 0.5416396260261536, 0.2425265610218048, 0.24680837988853455, -0.07072967290878296, -0.03294725716114044, -0.07356881350278854, 0.005616252310574055, 0.0035612103529274464, -0.18552471697330475, 0.4780152440071106, -0.27644628286361694, 0.053879689425230026, -0.0193890780210495, 0.1980322003364563, 0.19249989092350006, 0.2882617712020874, 0.30474695563316345, -0.037439849227666855, 0.20566530525684357, 0.18653929233551025, 0.12549133598804474, 0.2122560739517212, 0.27538615465164185, -0.37598153948783875, -0.3653777837753296, 0.1167430654168129, -0.038362372666597366, -0.44209033250808716, 0.10105787217617035, 0.05975240841507912, 0.061723317950963974, -0.2433202862739563, -0.4172963798046112, 0.19595998525619507, -0.12319789826869965, 0.15829850733280182, -0.08854786306619644, 0.41107282042503357, -0.18137525022029877, 0.1683812141418457, -0.17016538977622986, 0.07951414585113525, 0.1006188690662384, -0.13562707602977753, -0.05684563145041466, -0.03344433382153511, -0.1606685221195221, 0.044276297092437744, -0.13649649918079376, -0.15458081662654877, 0.06227342411875725, 0.004040873609483242, 0.2865046262741089, 0.05561287701129913, 0.4499134123325348, -0.06624612957239151, -0.08321898430585861, 0.19529928267002106, 0.4034389555454254, -0.09145985543727875, 0.22290968894958496, 0.2841404378414154, 0.07121018320322037, 0.03193515166640282, 0.19687291979789734, -0.23071758449077606, 0.5221298933029175, 0.173186257481575, -0.07892051339149475, -0.21636483073234558, -0.3225901126861572, 0.012596718966960907, 0.046024344861507416, 0.006102536339312792, 0.06509547680616379, -0.29663729667663574, -0.12631069123744965, -0.19500118494033813, 0.007804159075021744, 0.1437559276819229, -0.2404642552137375, -0.01132506225258112, -0.20119211077690125, 0.10842134803533554, -0.10190649330615997, 0.3199006915092468, -0.06436856836080551, 0.18694090843200684, 0.37790998816490173, -0.028428349643945694, 0.21650433540344238, -0.25930511951446533, -0.14984598755836487, -0.004414077382534742, -0.048435110598802567, 0.07782846689224243, -0.14744047820568085, 0.21683742105960846, 0.22945889830589294, -0.23742884397506714, -0.16641193628311157, -0.07837118953466415, -0.0966552346944809, -0.20847375690937042, 0.15544189512729645, 0.20218874514102936, -0.35521399974823, 0.033093757927417755, -0.02795112505555153, 0.10258904099464417, 0.0691780224442482, -0.024330727756023407, 0.03441412374377251, -0.2691453695297241, -0.21354806423187256, -0.07339134812355042, 0.3713423013687134, -0.00008268142119050026, -0.28378593921661377, -0.04326926916837692, -0.3907485604286194, 0.31135883927345276, 0.10922524333000183, -0.14407925307750702, -0.007412058301270008, 0.01011202298104763, -0.159301295876503, -0.49023696780204773, 0.38316917419433594, -0.2884454131126404, -0.32124456763267517, -0.16351743042469025, 0.2733113765716553, 0.22124435007572174, -0.09178908169269562, 0.05425474792718887, -0.2431737184524536, -0.08118203282356262, 0.3172589838504791, -0.01660020649433136, 0.3480674624443054, -0.13556189835071564, -0.5385571122169495, -0.03938493877649307, 0.11305209249258041, 0.006535116583108902, 0.3192088007926941, -0.42522484064102173, 0.1794971376657486, 0.22942334413528442, 0.015509777702391148, 0.17220906913280487, 0.04217890650033951, 0.06029975786805153, 0.09687386453151703, -0.4579896330833435, 0.029046131297945976, -0.22381378710269928, -0.03047262318432331, 0.26288124918937683, -0.20432737469673157, -0.05933121219277382, 0.19469840824604034, -0.0019940664060413837, -0.548823893070221, -0.05818101763725281, -0.029428698122501373, -0.19899195432662964, 0.1879662275314331, 0.11490550637245178, -0.06264331936836243, -0.04363016411662102, 0.07756800204515457, -0.13384167850017548, -0.3600866496562958, -0.09653741866350174, -0.08053422719240189, -0.028455544263124466, -0.1556737720966339, -0.1163061335682869, 0.39517003297805786, 0.20150113105773926, 0.2209816724061966, -0.08245786279439926, -0.25479650497436523, 0.314240425825119, 0.21356302499771118, 0.07545868307352066, 0.21581394970417023, 0.08599110692739487, -0.11572499573230743, -0.22639313340187073, -0.13106669485569, 0.37756264209747314, 0.1458841860294342, 0.16249379515647888, -0.13098222017288208, 0.3952781558036804, 0.32421740889549255, 0.0939600020647049, -0.09542026370763779, -0.11565977334976196, -0.009239115752279758, -0.014752768911421299, -0.1969423145055771, -0.25681307911872864, 0.15127895772457123, -0.08605802804231644, -0.021663876250386238, -0.16829663515090942, 0.24296168982982635, -0.1447509229183197, 0.35653233528137207, 0.05455809831619263, 0.22963733971118927, 0.19900399446487427, -0.24963738024234772, -0.23579399287700653, -0.21289777755737305, -0.16273432970046997, 0.3426095247268677, 0.03176882863044739, 0.09645115584135056, 0.06941589713096619, -0.2506144344806671, -0.31280234456062317, 0.1340085119009018, 0.2909136712551117, -0.08066973090171814, 0.36338692903518677, 0.3177282512187958, 0.011689156293869019, -0.11741061508655548, 0.25280389189720154, -0.05444338917732239, 0.0673094168305397, -0.06717464327812195, 0.20333868265151978, -0.21433530747890472, 0.2841469347476959, -0.42034244537353516, -0.5077069401741028, -0.6033651232719421, -0.47802937030792236, 0.02463916502892971, -0.033977363258600235, 0.21613910794258118, 0.18093977868556976, 0.3163752853870392, 0.11962882429361343, 0.03071896918118, 0.16646087169647217, -0.0013496732572093606, -0.32628610730171204, -0.4050019085407257, 0.10590991377830505, -0.03009333461523056, -0.02992118149995804, 0.34239017963409424, -0.13757015764713287, 0.10936825722455978, -0.15150250494480133, -0.49554553627967834, 0.025205466896295547, -0.04574688896536827, 0.7252532243728638, 0.1718582659959793, -0.4527873396873474, 0.0372483916580677, 0.34584781527519226, 0.16028110682964325, -0.3668872117996216, 0.17350254952907562, 0.22183753550052643, -0.22502823173999786, -0.20842179656028748, -0.019001560285687447, -0.22030209004878998, 0.14420674741268158, -0.13514132797718048, -0.23159566521644592, 0.3486267924308777, 0.07076197862625122, 0.24680659174919128, -0.15778812766075134, 0.13446003198623657, 0.17482315003871918, 0.34670934081077576, -0.29138776659965515, -0.10063757747411728, 0.2914348542690277, -0.18256467580795288, -0.32942914962768555, -0.0032993312925100327, 0.11109627783298492, 0.4584416449069977, 0.061688777059316635, -0.26356586813926697, -0.6254199743270874, -0.028324540704488754, -0.023047558963298798, -0.06090546026825905, -0.16386157274246216, 0.08169423043727875, -0.2560129463672638, -0.04832334816455841, -0.2598660886287689, -0.2592063248157501, -0.0988844484090805, 0.1421608030796051, 0.3638279139995575, -0.13048113882541656, 0.09402657300233841, 0.16023953258991241, 0.6323766112327576, 0.26965177059173584, -0.12769129872322083, -0.10669727623462677, 0.1169157475233078, 0.10459669679403305, -0.2340124249458313, -0.012203632853925228, 0.1513131707906723, 0.08461437374353409, 0.3354142904281616, 0.3545047640800476, 0.11125912517309189, 0.30035045742988586, -0.21063372492790222, -0.0865531787276268, -0.3757593035697937, -0.24795784056186676, -0.1629181057214737, 0.021529903635382652, 0.045819930732250214, 0.24452784657478333, 0.24552248418331146, -0.17438051104545593, -0.20716550946235657, 0.1453407257795334, 0.42507633566856384, -0.15906405448913574, 0.1113637387752533, 0.2787347137928009, 0.09787370264530182, -0.2737772762775421, 0.3948976993560791, 0.1274561733007431, 0.22674253582954407, 0.11608993262052536, 0.0500301755964756, 0.06983614712953568, -0.1368580311536789, -0.04884881526231766, -0.2523268163204193, 0.321826696395874, 0.135201558470726, -0.1423923820257187, -0.6760872006416321, -0.21813422441482544, -0.2263399213552475, 0.06165534257888794, 0.23197343945503235, 0.4251723289489746, -0.13310863077640533, -0.1836068034172058, -0.18447041511535645, 0.16710689663887024, -0.19297271966934204, -0.17212128639221191, -0.3584488034248352, -0.02969447523355484, 0.19860193133354187, -0.199478417634964, -0.22149820625782013, 0.1997009664773941, -0.20166537165641785, 0.06027313694357872, -0.1834782063961029, -0.26292866468429565, -0.058727189898490906, 0.050373345613479614, 0.25318506360054016, -0.2955344021320343, 0.20338848233222961, -0.3119794428348541, -0.06801708042621613, -0.25778016448020935, 0.06582406908273697, 0.30182603001594543, -0.17683805525302887, -0.09563512355089188, -0.17923466861248016, 0.0770721286535263, 0.13592395186424255, -0.15100666880607605, -0.10226708650588989, -0.4794323742389679, 0.2801920771598816, 0.028341932222247124, -0.08969887346029282, 0.1653413474559784, 0.014091470278799534, -0.15152426064014435, 0.053612399846315384, 0.5751376152038574, 0.3157074749469757, -0.17667904496192932, 0.29003727436065674, -0.03579069674015045, -0.33055081963539124, -0.13642126321792603, 0.28089985251426697, 0.627265989780426, 0.40667060017585754, 0.01193266548216343, 0.04924440383911133, -0.27535897493362427, 0.3018887937068939, 0.3433154225349426, 0.15945889055728912, -0.4138987064361572, -0.21813465654850006, 0.04127180203795433, 0.13945333659648895, 0.042855046689510345, -0.3080529272556305, 0.11330879479646683, 0.5284906625747681, -0.08172513544559479, 0.15836937725543976, -0.007994791492819786, 0.14656390249729156, 0.06541898101568222, 0.14676545560359955, -0.06210220605134964, 0.27102401852607727, -0.16199228167533875, 0.2423304319381714, -0.0018788791494444013, 0.06909888237714767, -0.20227479934692383, -0.029611384496092796, -0.14167316257953644, -0.0009684671531431377, 0.5955713987350464, 0.07650401443243027, 0.20022271573543549, -0.45510897040367126, 0.04860011860728264, -0.11750387400388718, 0.531261682510376, 0.32168665528297424, -0.22998206317424774, 0.26341766119003296, -0.5472123622894287, 0.24416883289813995, -0.13070698082447052, 0.12798382341861725, -0.06975750625133514, -0.11850035190582275, 0.018703510984778404, -0.13690099120140076, -0.03600074350833893, 0.08251641690731049, -0.06209976598620415, -0.1582508236169815, 0.37882792949676514, -0.04118325188755989, 0.448336660861969, -0.36218100786209106, -0.04722731560468674, -0.2663276791572571, 0.213164821267128, -0.2188330888748169, 0.0014463597908616066, 0.2188292145729065, 0.09489269554615021, -0.36359313130378723, 0.04283689707517624, 0.432902455329895, -0.05345559120178223, 0.43486714363098145, -0.009212212637066841, -0.17890013754367828, 0.052265577018260956, -0.10797514021396637, -0.21238619089126587, -0.08462139964103699, -0.10479877144098282, 0.034320417791604996, -0.11246828734874725, 0.27507397532463074, 0.21356816589832306, 0.42393621802330017, 0.27195999026298523, -0.18367594480514526, -0.15556830167770386, -0.5252071619033813, 0.26824939250946045, -0.0328943096101284, -0.10706392675638199, 0.007394255604594946, -0.18679243326187134, -0.11039332300424576, 0.12665307521820068, 0.2420269101858139, -0.33340391516685486, -0.014757312834262848, 0.07075632363557816, 0.05050850287079811, -0.06008676812052727, -0.25261566042900085, -0.08347903937101364, 0.20367348194122314, 0.06707692891359329, 0.18737417459487915, -0.29014256596565247, -0.22917653620243073, -0.28936219215393066, 0.09086829423904419, 0.12429339438676834, 0.007795653771609068, 0.04962944984436035, 0.21317711472511292, -0.18301767110824585, -0.24578210711479187, -0.14809222519397736, 0.11419062316417694, 0.13596047461032867, 0.30245867371559143, -0.060450125485658646, 0.5086020827293396, 0.06532146781682968, -0.08611494302749634, 0.03359710052609444, 0.2548254430294037, -0.08846582472324371, 0.10847145318984985, 0.18752051889896393, -0.029892703518271446, -0.18486438691616058, -0.030839191749691963, -0.1448870152235031, 0.18823067843914032, 0.2696504294872284, 0.12907487154006958, 0.06846056133508682, 0.13035345077514648, 0.29864969849586487, 0.22367730736732483, -0.0637911856174469, -0.4442342519760132, -0.23948875069618225, 0.17336049675941467, -0.2343716323375702, -0.04069780185818672, -0.2714274823665619, 0.3211047649383545, -0.001493455725722015, 0.061379481106996536, 0.15443117916584015, -0.1894702911376953, -0.18971635401248932, -0.098861925303936, 0.7578180432319641, -0.4481825828552246, 0.042120084166526794, -0.14008885622024536, 0.2631901204586029, 0.0463281124830246, 0.42922243475914, -0.22571438550949097, 0.2814006805419922, 0.27956584095954895, -0.20381022989749908, 0.31849101185798645, -0.10769379138946533, 0.08600042760372162, 0.03149622306227684, 0.18290887773036957, 0.16497743129730225, 0.32855090498924255, 0.23270712792873383, -0.05898834019899368, -0.009352466091513634, 0.38338810205459595, -0.20990510284900665, 0.05670672655105591, -0.4581981897354126, -0.13797219097614288, 0.2848411798477173, -0.08779691904783249, -0.4621795117855072, -0.1289702206850052, -0.18184666335582733, -0.025814063847064972, -0.08877205848693848, 0.060094401240348816, 0.015389321371912956, -0.07911613583564758, -0.12183871120214462, -0.30503684282302856, -0.2565438747406006, 0.36418989300727844, 0.1647270917892456, -0.24048137664794922, 0.29067736864089966, 0.4325597882270813, 0.10092981904745102, -0.14961601793766022, 0.07168713957071304, 0.16198201477527618, 0.12053927034139633, -0.25207072496414185, -0.07651590555906296, 0.3310958743095398, -0.08324042707681656, 0.10719957202672958, 0.2756619155406952, -0.05697927996516228, -0.10354425013065338, 0.3694298565387726, 0.2167433351278305, -0.20080222189426422, 0.2692738473415375, 0.005108181852847338, 0.09361395239830017, -0.36050111055374146, 0.5348920226097107, -0.14330486953258514, 0.14281123876571655, 0.014624557457864285, 0.14320610463619232, -0.27389129996299744, -0.37522029876708984, -0.11375164240598679, 0.3000073730945587, 0.2451171875, -0.08012458682060242, 0.11317017674446106, -0.23739387094974518, 0.41214218735694885, -0.12866072356700897, -0.4160785675048828, -0.05169324576854706, -0.11810387670993805, -0.4005628824234009, 0.2340833991765976, 0.16833461821079254, 0.2376130223274231, -0.10821934044361115, -0.05381935089826584, -0.3112967014312744, 0.18348941206932068, -0.0009355779038742185, 0.3528430163860321, -0.08348148316144943, -0.17323319613933563, -0.5152150392532349, -0.05064644291996956, 0.06621731072664261, -0.5063579678535461, 0.011572265066206455, -0.0732126459479332, 0.04042660817503929, -0.5476977229118347, 0.14112883806228638, 0.11177986860275269, -0.30066588521003723, 0.5468629598617554, 0.3646291196346283, 0.4902893304824829, 0.21030831336975098, 0.23372779786586761, -0.10058240592479706, -0.18062269687652588, -0.08302086591720581, 0.1566404551267624, -0.09284888952970505, 0.5090840458869934, -0.40259405970573425, 0.2690127193927765, 0.08039363473653793, 0.08697228878736496, -0.08264769613742828, 0.4936467409133911, 0.09498106688261032, -0.23239269852638245, -0.06887537240982056, -0.17615993320941925, -0.13463011384010315, -0.04267473518848419, -0.007222875487059355, 0.24507376551628113, -0.09611774981021881, 0.30143341422080994, -0.18953317403793335, -0.32760104537010193, 0.3208588659763336, -0.15262293815612793, -0.24648159742355347, -0.13146638870239258, 0.295719712972641, 0.037613395601511, -0.05397236347198486, -0.20761941373348236, 0.078264519572258, 0.4740901291370392, -0.0011419064830988646, 0.24111588299274445, 0.28207698464393616, -0.1557207852602005, 0.02827317640185356, -0.01814253069460392, 0.24101586639881134, 0.25118812918663025, -0.1877971589565277, -0.009986520744860172, -0.0490337535738945 ]
https://github.com/huggingface/datasets/issues/2759
the meteor metric seems not consist with the official version
Hi @jianguda, thanks for reporting. Currently, at 🤗 `datasets` we are using METEOR 1.0 (indeed using NLTK: `from nltk.translate import meteor_score`): See the [citation here](https://github.com/huggingface/datasets/blob/master/metrics/meteor/meteor.py#L23-L35). If there is some open source implementation of METEOR 1.5, that could be an interesting contribution! 😉
## Describe the bug The computed meteor score seems strange because the value is very different from the scores computed by other tools. For example, I use the meteor score computed by [NLGeval](https://github.com/Maluuba/nlg-eval) as the reference (which reuses the official jar file for the computation) ## Steps to reproduce the bug ```python from datasets import load_metric from nlgeval import NLGEval, compute_individual_metrics meteor = load_metric('meteor') predictions = ["It is a guide to action which ensures that the military always obeys the commands of the party"] references = ["It is a guide to action that ensures that the military will forever heed Party commands"] results = meteor.compute(predictions=predictions, references=references) # print the actual result print(round(results["meteor"], 4)) metrics_dict = compute_individual_metrics(references, predictions[0]) # print the expected result print(round(metrics_dict["METEOR"], 4)) ``` By the way, you need to install the `nlg-eval` library first. Please check the installation guide [here](https://github.com/Maluuba/nlg-eval#setup), thanks! ## Expected results `0.4474` ## Actual results `0.7398` ## Environment info - `datasets` version: 1.10.2 - Platform: macOS-10.16-x86_64-i386-64bit - Python version: 3.8.5 - PyArrow version: 4.0.1
42
the meteor metric seems not consist with the official version ## Describe the bug The computed meteor score seems strange because the value is very different from the scores computed by other tools. For example, I use the meteor score computed by [NLGeval](https://github.com/Maluuba/nlg-eval) as the reference (which reuses the official jar file for the computation) ## Steps to reproduce the bug ```python from datasets import load_metric from nlgeval import NLGEval, compute_individual_metrics meteor = load_metric('meteor') predictions = ["It is a guide to action which ensures that the military always obeys the commands of the party"] references = ["It is a guide to action that ensures that the military will forever heed Party commands"] results = meteor.compute(predictions=predictions, references=references) # print the actual result print(round(results["meteor"], 4)) metrics_dict = compute_individual_metrics(references, predictions[0]) # print the expected result print(round(metrics_dict["METEOR"], 4)) ``` By the way, you need to install the `nlg-eval` library first. Please check the installation guide [here](https://github.com/Maluuba/nlg-eval#setup), thanks! ## Expected results `0.4474` ## Actual results `0.7398` ## Environment info - `datasets` version: 1.10.2 - Platform: macOS-10.16-x86_64-i386-64bit - Python version: 3.8.5 - PyArrow version: 4.0.1 Hi @jianguda, thanks for reporting. Currently, at 🤗 `datasets` we are using METEOR 1.0 (indeed using NLTK: `from nltk.translate import meteor_score`): See the [citation here](https://github.com/huggingface/datasets/blob/master/metrics/meteor/meteor.py#L23-L35). If there is some open source implementation of METEOR 1.5, that could be an interesting contribution! 😉
[ -0.14781850576400757, -0.2521868050098419, -0.024656351655721664, 0.3410741686820984, 0.23118148744106293, -0.22514714300632477, -0.13373465836048126, 0.23752985894680023, -0.10296798497438431, 0.10206717997789383, 0.08196137100458145, 0.36355912685394287, -0.1630418300628662, -0.36193856596946716, -0.049654994159936905, 0.04343922436237335, -0.023653633892536163, -0.3071354031562805, -0.15346568822860718, -0.048482127487659454, -0.07702261954545975, 0.21457429230213165, -0.024922531098127365, 0.09251567721366882, 0.16170968115329742, 0.24138608574867249, 0.17075715959072113, -0.04001861810684204, -0.14427603781223297, -0.2580811381340027, 0.37481632828712463, -0.19642579555511475, 0.10105352103710175, 0.5309472680091858, -0.0001044121163431555, -0.1293848752975464, 0.5862189531326294, 0.008137729950249195, -0.17940039932727814, -0.34557756781578064, -0.24906006455421448, -0.3852470815181732, 0.2880987524986267, -0.1919132024049759, -0.09591232985258102, 0.04376848787069321, -0.20663541555404663, -0.10084401071071625, 0.5769689679145813, 0.25300896167755127, 0.2920750677585602, -0.121849425137043, 0.012670059688389301, -0.09977154433727264, 0.04638388752937317, 0.06619136780500412, -0.18009917438030243, 0.41178491711616516, -0.23854181170463562, 0.09821861982345581, -0.04252763092517853, 0.2050885558128357, 0.193848118185997, 0.23165428638458252, 0.26117169857025146, -0.05468890815973282, 0.21560893952846527, 0.17114010453224182, 0.07795900106430054, 0.19119998812675476, 0.32768118381500244, -0.39930176734924316, -0.39312827587127686, 0.1359332650899887, -0.008249345235526562, -0.4920447766780853, 0.0499257817864418, 0.07829154282808304, 0.022534146904945374, -0.21199442446231842, -0.4008948504924774, 0.12894783914089203, -0.12225794047117233, 0.12708929181098938, -0.058568742126226425, 0.39072391390800476, -0.22488266229629517, 0.12033677846193314, -0.1347392201423645, 0.05841904133558273, 0.08314186334609985, -0.03839503228664398, -0.034386493265628815, -0.031081322580575943, -0.13472525775432587, 0.0342392735183239, -0.15663713216781616, -0.15254642069339752, 0.16901162266731262, -0.0029824241064488888, 0.24335557222366333, 0.1008019745349884, 0.45264965295791626, -0.025130609050393105, -0.041113268584012985, 0.19396041333675385, 0.4406631290912628, -0.1113479882478714, 0.2504616975784302, 0.31868448853492737, 0.10441746562719345, 0.06323223561048508, 0.1617821455001831, -0.19168487191200256, 0.5070533156394958, 0.13251683115959167, -0.013789888471364975, -0.17889416217803955, -0.3429355025291443, 0.09186006337404251, 0.06691864132881165, 0.008175279945135117, 0.10299424827098846, -0.17996375262737274, -0.1395750343799591, -0.1464833915233612, -0.015632741153240204, 0.046436797827482224, -0.18462499976158142, -0.06623534858226776, -0.20859338343143463, 0.1549060046672821, -0.20398709177970886, 0.289230078458786, -0.04164425656199455, 0.16772881150245667, 0.340067058801651, -0.03890660032629967, 0.202389195561409, -0.23631948232650757, -0.11128216981887817, 0.01336104515939951, -0.04152734950184822, 0.0646543875336647, -0.11014889925718307, 0.17393025755882263, 0.18428580462932587, -0.2790243625640869, -0.10203155875205994, -0.03916080296039581, -0.11441484093666077, -0.194899320602417, 0.07974106073379517, 0.2515944242477417, -0.3690240979194641, 0.04990721493959427, -0.014007884077727795, 0.18260426819324493, 0.06270359456539154, -0.020493684336543083, 0.05271967127919197, -0.13262048363685608, -0.15797416865825653, -0.09408062696456909, 0.3570549190044403, 0.11149105429649353, -0.28139951825141907, -0.009376483969390392, -0.4308558404445648, 0.31454840302467346, 0.12474290281534195, -0.20655754208564758, 0.0224441047757864, -0.0567491352558136, -0.16156262159347534, -0.5349425077438354, 0.3647162914276123, -0.23569653928279877, -0.3380419909954071, -0.23512257635593414, 0.20339076220989227, 0.1315128058195114, -0.05773080885410309, 0.04213611036539078, -0.24690614640712738, -0.06961730122566223, 0.27856096625328064, -0.02863796055316925, 0.28815746307373047, -0.13208025693893433, -0.535196840763092, -0.051796186715364456, 0.11699455231428146, 0.07782713323831558, 0.30189672112464905, -0.4567936360836029, 0.2465069591999054, 0.21157434582710266, -0.00540753873065114, 0.21379749476909637, 0.04831215739250183, 0.0966467633843422, 0.11473429948091507, -0.4557761549949646, 0.12028186023235321, -0.24317903816699982, -0.04122703894972801, 0.26406964659690857, -0.1666312962770462, -0.12022562325000763, 0.21893927454948425, 0.020522741600871086, -0.537959098815918, 0.03684089332818985, -0.0812162384390831, -0.18206365406513214, 0.21982593834400177, 0.06134926900267601, -0.14015941321849823, -0.09935639053583145, -0.005501998122781515, -0.1313670575618744, -0.3810175955295563, -0.08161339908838272, -0.11457380652427673, -0.053609129041433334, -0.1969020813703537, -0.1277427226305008, 0.3600819408893585, 0.1595160812139511, 0.19437961280345917, -0.053017888218164444, -0.23228971660137177, 0.3451607823371887, 0.2800036370754242, 0.023114824667572975, 0.22303162515163422, 0.11848388612270355, -0.08707985281944275, -0.22622515261173248, -0.15162304043769836, 0.28815028071403503, 0.17532777786254883, 0.17341949045658112, -0.27553579211235046, 0.3950207233428955, 0.22535733878612518, 0.02554045431315899, -0.10975221544504166, -0.023160485550761223, 0.03610314428806305, 0.01091223955154419, -0.2923179268836975, -0.2639077603816986, 0.14072665572166443, -0.11325603723526001, 0.014708646573126316, -0.13239245116710663, 0.1913965493440628, -0.15224689245224, 0.38717490434646606, 0.04314343258738518, 0.30203357338905334, 0.26856768131256104, -0.21798191964626312, -0.2699264883995056, -0.21274921298027039, -0.17493006587028503, 0.2869412899017334, 0.10109002888202667, 0.11030711233615875, 0.0748123750090599, -0.1497456580400467, -0.25462454557418823, 0.14588885009288788, 0.2289120852947235, -0.14677436649799347, 0.2909066677093506, 0.3128199875354767, 0.007273877505213022, -0.11405735462903976, 0.20039504766464233, -0.07693031430244446, 0.07346222549676895, -0.0910370871424675, 0.12090454250574112, -0.19407907128334045, 0.30126434564590454, -0.3821582794189453, -0.50174880027771, -0.6062211394309998, -0.4944029450416565, 0.06554224342107773, -0.08392838388681412, 0.2129886895418167, 0.17576637864112854, 0.3269558846950531, 0.15955285727977753, 0.0667395070195198, 0.20717398822307587, -0.01700683869421482, -0.3314949870109558, -0.2945851981639862, 0.1425487995147705, -0.08027686178684235, -0.044040530920028687, 0.35982176661491394, -0.11869363486766815, 0.14314265549182892, -0.12410810589790344, -0.47094425559043884, 0.045602310448884964, 0.008260464295744896, 0.6918198466300964, 0.23613840341567993, -0.4747568368911743, -0.020639359951019287, 0.40396490693092346, 0.12597598135471344, -0.38746610283851624, 0.13845065236091614, 0.2865399718284607, -0.21436910331249237, -0.20143583416938782, 0.01084358710795641, -0.1430826336145401, 0.11175087094306946, -0.13480600714683533, -0.2115040272474289, 0.39028283953666687, 0.02375626750290394, 0.24105042219161987, -0.12847334146499634, 0.2649897038936615, 0.1560121476650238, 0.32951119542121887, -0.30267417430877686, -0.20360837876796722, 0.3007970154285431, -0.17329800128936768, -0.31399253010749817, 0.029174381867051125, 0.1207086592912674, 0.3786696493625641, -0.014959026128053665, -0.19025260210037231, -0.6665783524513245, -0.03139413520693779, -0.05941497161984444, -0.03608718514442444, -0.12008754909038544, 0.11672937870025635, -0.21649537980556488, -0.08649420738220215, -0.22131329774856567, -0.22613899409770966, -0.1013961210846901, 0.11490928381681442, 0.3508441746234894, -0.1825338900089264, 0.08955580741167068, 0.2299666702747345, 0.71726393699646, 0.2367885708808899, -0.11433354020118713, -0.10299475491046906, 0.06963939219713211, 0.13119490444660187, -0.2151096612215042, -0.0539519265294075, 0.17543615400791168, 0.053729522973299026, 0.26340487599372864, 0.3654419481754303, 0.12694334983825684, 0.313190221786499, -0.23604664206504822, -0.11551101505756378, -0.3265326917171478, -0.1952672153711319, -0.2356278896331787, -0.0070691192522645, -0.050479769706726074, 0.2195650339126587, 0.23277465999126434, -0.08766714483499527, -0.20716223120689392, 0.17319001257419586, 0.42346033453941345, -0.158857524394989, 0.10271530598402023, 0.3724786639213562, 0.11408428102731705, -0.3238574266433716, 0.3314691185951233, 0.09094139188528061, 0.18644189834594727, 0.11267824470996857, 0.055008575320243835, -0.0031143324449658394, -0.19093945622444153, -0.020978551357984543, -0.25311899185180664, 0.3101334869861603, 0.04464211314916611, -0.12252143025398254, -0.5995668768882751, -0.1632293164730072, -0.24278827011585236, 0.021691691130399704, 0.14642158150672913, 0.31015047430992126, -0.08082327246665955, -0.1328073889017105, -0.15134599804878235, 0.12084724009037018, -0.1552973836660385, -0.1163097396492958, -0.37269237637519836, -0.06318315118551254, 0.13535043597221375, -0.12555457651615143, -0.16352389752864838, 0.12129189074039459, -0.11367745697498322, 0.001340338378213346, -0.1744624525308609, -0.291960209608078, -0.035003237426280975, 0.030629489570856094, 0.13904502987861633, -0.34605398774147034, 0.1883101910352707, -0.24142882227897644, -0.047855135053396225, -0.25768691301345825, 0.10251861810684204, 0.31544533371925354, -0.24699696898460388, -0.05895964428782463, -0.17689312994480133, 0.1138710081577301, 0.09748231619596481, -0.21139970421791077, -0.09296655654907227, -0.5180155634880066, 0.282588392496109, 0.00957641564309597, -0.09024220705032349, 0.12237367033958435, 0.06306125968694687, -0.16485637426376343, 0.04119912534952164, 0.5064482688903809, 0.2582513988018036, -0.14600272476673126, 0.38887783885002136, -0.0166428554803133, -0.25259342789649963, -0.12298888713121414, 0.3109762370586395, 0.640304684638977, 0.3419134318828583, -0.03446474298834801, 0.04472855105996132, -0.2284911572933197, 0.2664887607097626, 0.28618520498275757, 0.16473661363124847, -0.41429898142814636, -0.2808920443058014, 0.043098073452711105, 0.135381817817688, 0.07651098072528839, -0.3224917948246002, 0.07153862714767456, 0.49743369221687317, -0.14064157009124756, 0.09871208667755127, 0.01700952835381031, 0.18656036257743835, 0.07757411897182465, 0.04814041778445244, -0.04488599672913551, 0.2939744293689728, -0.19248923659324646, 0.13156618177890778, -0.009663927368819714, 0.12232822179794312, -0.07202822715044022, -0.007626631297171116, -0.1705515831708908, 0.058073241263628006, 0.5772731304168701, 0.053166214376688004, 0.1628952920436859, -0.34323298931121826, 0.0198386088013649, -0.08655910938978195, 0.4654538631439209, 0.33281001448631287, -0.23029635846614838, 0.2989501953125, -0.5688626766204834, 0.26288312673568726, -0.14349991083145142, 0.129923477768898, 0.001341572031378746, -0.09445151686668396, 0.07074697315692902, -0.09558787196874619, 0.054944369941949844, 0.1475526988506317, -0.006272993050515652, -0.1776951402425766, 0.34917113184928894, -0.017259003594517708, 0.4607384204864502, -0.38532206416130066, -0.11815783381462097, -0.24699155986309052, 0.24816003441810608, -0.1255541741847992, -0.0896085575222969, 0.15409699082374573, 0.15581798553466797, -0.32812491059303284, 0.029292024672031403, 0.505462646484375, -0.1028209924697876, 0.428049772977829, -0.07925810664892197, -0.13558831810951233, 0.03739040717482567, -0.13637126982212067, -0.05287708342075348, -0.0011775941820815206, -0.05152652785181999, 0.04716465249657631, -0.14782750606536865, 0.3012149930000305, 0.25519856810569763, 0.4241328835487366, 0.25054067373275757, -0.2228536456823349, -0.13283473253250122, -0.5114207863807678, 0.20831282436847687, -0.04536819830536842, -0.09608545154333115, -0.04171748831868172, -0.16612936556339264, -0.17200422286987305, 0.17350046336650848, 0.2580815255641937, -0.38594621419906616, -0.07521963119506836, 0.03984985873103142, 0.005960856564342976, -0.025820039212703705, -0.2938757836818695, -0.1433076709508896, 0.1278073489665985, 0.11926700174808502, 0.15937072038650513, -0.2800624966621399, -0.2723570764064789, -0.2823256850242615, 0.06565595418214798, 0.07337932288646698, 0.0689808577299118, 0.0012033659731969237, 0.20804183185100555, -0.2676582634449005, -0.22332067787647247, -0.15725219249725342, 0.17030395567417145, 0.1034848541021347, 0.29491302371025085, -0.06439371407032013, 0.40622609853744507, 0.04536211118102074, -0.17086675763130188, 0.05853121355175972, 0.2147115021944046, -0.05319976434111595, 0.11933904886245728, 0.2025175243616104, -0.06298917531967163, -0.12793338298797607, 0.035238202661275864, -0.06751638650894165, 0.17313361167907715, 0.3118724226951599, 0.056235864758491516, 0.08848515897989273, 0.12321460992097855, 0.3532484471797943, 0.1246335580945015, -0.10604839771986008, -0.4063403606414795, -0.2176300436258316, 0.23367401957511902, -0.2540644109249115, -0.12007872760295868, -0.24770788848400116, 0.3661583662033081, 0.0031072290148586035, 0.07881417125463486, 0.07935445755720139, -0.18042150139808655, -0.16134196519851685, -0.07949095964431763, 0.7314051985740662, -0.48851436376571655, 0.021629618480801582, -0.14937624335289001, 0.22656548023223877, 0.03507418558001518, 0.440523236989975, -0.1372162103652954, 0.3410733938217163, 0.37400227785110474, -0.24502456188201904, 0.4250045716762543, -0.04299565777182579, 0.21513685584068298, 0.013903210870921612, 0.15375085175037384, 0.22100073099136353, 0.3062160611152649, 0.2033817321062088, -0.04503463953733444, -0.07491707056760788, 0.3186627924442291, -0.19254568219184875, 0.1538996696472168, -0.4080442190170288, -0.11064404994249344, 0.28303807973861694, -0.10466694831848145, -0.3735601007938385, -0.1484469622373581, -0.2269962579011917, -0.040397439152002335, -0.050725195556879044, 0.06314187496900558, 0.003671924350783229, -0.08684876561164856, -0.07834818214178085, -0.2781255841255188, -0.18268825113773346, 0.35529088973999023, 0.24072705209255219, -0.3074507713317871, 0.25187772512435913, 0.3919895589351654, 0.12223269045352936, -0.20106685161590576, -0.01596561260521412, 0.10126504302024841, 0.13691449165344238, -0.3087233006954193, -0.033908355981111526, 0.2608788013458252, -0.1441623866558075, 0.0951404869556427, 0.288570761680603, -0.07074318081140518, -0.08129103481769562, 0.37150055170059204, 0.2621390223503113, -0.23810048401355743, 0.2789752185344696, 0.03641548007726669, 0.08594240248203278, -0.3769669830799103, 0.45573297142982483, -0.10826718062162399, 0.09149197489023209, -0.013245923444628716, 0.14416664838790894, -0.2951059341430664, -0.4457590579986572, -0.04303079470992088, 0.23531323671340942, 0.17497678101062775, -0.15306279063224792, 0.1383684128522873, -0.161385178565979, 0.37689974904060364, -0.17613916099071503, -0.37822866439819336, -0.012543417513370514, -0.052063629031181335, -0.40721529722213745, 0.16698256134986877, 0.25787267088890076, 0.2493455559015274, -0.011636411771178246, -0.0554787777364254, -0.3329470455646515, 0.2094545215368271, -0.04430825635790825, 0.4313586354255676, -0.10412988811731339, -0.15142038464546204, -0.4020169675350189, -0.033805809915065765, -0.019172662869095802, -0.43305203318595886, -0.015140552073717117, -0.03861766681075096, 0.01904250495135784, -0.5741431713104248, 0.1770799607038498, 0.10415515303611755, -0.3532291352748871, 0.5408803224563599, 0.3004404902458191, 0.42274123430252075, 0.17696905136108398, 0.14797307550907135, -0.1514250487089157, -0.09633786976337433, -0.10344228148460388, 0.10701926052570343, -0.1194014772772789, 0.439603716135025, -0.3794594705104828, 0.1813824325799942, 0.10888499021530151, 0.07695779204368591, -0.13362526893615723, 0.43736183643341064, 0.0923432856798172, -0.1658053696155548, -0.08457436412572861, -0.1421274095773697, -0.09275384992361069, -0.006817844696342945, -0.05104141682386398, 0.19101688265800476, -0.08718692511320114, 0.23749932646751404, -0.14455248415470123, -0.23939336836338043, 0.32376018166542053, -0.12959401309490204, -0.233512282371521, -0.1668451428413391, 0.2707189917564392, 0.04912266880273819, -0.06251262873411179, -0.22273123264312744, 0.04143631085753441, 0.4593602120876312, 0.021377883851528168, 0.13999246060848236, 0.22711633145809174, -0.13912664353847504, 0.05677765980362892, -0.07396069914102554, 0.20573852956295013, 0.22559675574302673, -0.09739481657743454, 0.0037193004973232746, -0.04375039413571358 ]
https://github.com/huggingface/datasets/issues/2757
Unexpected type after `concatenate_datasets`
Hi @JulesBelveze, thanks for your question. Note that 🤗 `datasets` internally store their data in Apache Arrow format. However, when accessing dataset columns, by default they are returned as native Python objects (lists in this case). If you would like their columns to be returned in a more suitable format for your use case (torch arrays), you can use the method `set_format()`: ```python concat_dataset.set_format(type="torch") ``` You have detailed information in our docs: - [Using a Dataset with PyTorch/Tensorflow](https://huggingface.co/docs/datasets/torch_tensorflow.html) - [Dataset.set_format()](https://huggingface.co/docs/datasets/package_reference/main_classes.html#datasets.Dataset.set_format)
## Describe the bug I am trying to concatenate two `Dataset` using `concatenate_datasets` but it turns out that after concatenation the features are casted from `torch.Tensor` to `list`. It then leads to a weird tensors when trying to convert it to a `DataLoader`. However, if I use each `Dataset` separately everything behave as expected. ## Steps to reproduce the bug ```python >>> featurized_teacher Dataset({ features: ['t_labels', 't_input_ids', 't_token_type_ids', 't_attention_mask'], num_rows: 502 }) >>> for f in featurized_teacher.features: print(featurized_teacher[f].shape) torch.Size([502]) torch.Size([502, 300]) torch.Size([502, 300]) torch.Size([502, 300]) >>> featurized_student Dataset({ features: ['s_features', 's_labels'], num_rows: 502 }) >>> for f in featurized_student.features: print(featurized_student[f].shape) torch.Size([502, 64]) torch.Size([502]) ``` The shapes seem alright to me. Then the results after concatenation are as follow: ```python >>> concat_dataset = datasets.concatenate_datasets([featurized_student, featurized_teacher], axis=1) >>> type(concat_dataset["t_labels"]) <class 'list'> ``` One would expect to obtain the same type as the one before concatenation. Am I doing something wrong here? Any idea on how to fix this unexpected behavior? ## Environment info - `datasets` version: 1.9.0 - Platform: macOS-10.14.6-x86_64-i386-64bit - Python version: 3.9.5 - PyArrow version: 3.0.0
80
Unexpected type after `concatenate_datasets` ## Describe the bug I am trying to concatenate two `Dataset` using `concatenate_datasets` but it turns out that after concatenation the features are casted from `torch.Tensor` to `list`. It then leads to a weird tensors when trying to convert it to a `DataLoader`. However, if I use each `Dataset` separately everything behave as expected. ## Steps to reproduce the bug ```python >>> featurized_teacher Dataset({ features: ['t_labels', 't_input_ids', 't_token_type_ids', 't_attention_mask'], num_rows: 502 }) >>> for f in featurized_teacher.features: print(featurized_teacher[f].shape) torch.Size([502]) torch.Size([502, 300]) torch.Size([502, 300]) torch.Size([502, 300]) >>> featurized_student Dataset({ features: ['s_features', 's_labels'], num_rows: 502 }) >>> for f in featurized_student.features: print(featurized_student[f].shape) torch.Size([502, 64]) torch.Size([502]) ``` The shapes seem alright to me. Then the results after concatenation are as follow: ```python >>> concat_dataset = datasets.concatenate_datasets([featurized_student, featurized_teacher], axis=1) >>> type(concat_dataset["t_labels"]) <class 'list'> ``` One would expect to obtain the same type as the one before concatenation. Am I doing something wrong here? Any idea on how to fix this unexpected behavior? ## Environment info - `datasets` version: 1.9.0 - Platform: macOS-10.14.6-x86_64-i386-64bit - Python version: 3.9.5 - PyArrow version: 3.0.0 Hi @JulesBelveze, thanks for your question. Note that 🤗 `datasets` internally store their data in Apache Arrow format. However, when accessing dataset columns, by default they are returned as native Python objects (lists in this case). If you would like their columns to be returned in a more suitable format for your use case (torch arrays), you can use the method `set_format()`: ```python concat_dataset.set_format(type="torch") ``` You have detailed information in our docs: - [Using a Dataset with PyTorch/Tensorflow](https://huggingface.co/docs/datasets/torch_tensorflow.html) - [Dataset.set_format()](https://huggingface.co/docs/datasets/package_reference/main_classes.html#datasets.Dataset.set_format)
[ 0.06590250879526138, -0.2509691119194031, 0.029678741469979286, 0.5075556635856628, 0.40537938475608826, 0.1719072312116623, 0.4817778468132019, 0.13464589416980743, -0.36543023586273193, -0.1315237581729889, -0.15433095395565033, 0.3956089913845062, -0.03830259293317795, -0.019348952919244766, -0.08973278850317001, -0.2919965386390686, 0.28961482644081116, -0.0016611726023256779, -0.20817972719669342, -0.22738246619701385, -0.03819701075553894, 0.158277228474617, -0.28411728143692017, 0.035756614059209824, -0.2161129266023636, 0.031572259962558746, -0.06330510228872299, -0.10395774245262146, 0.006389936897903681, 0.03904847800731659, 0.4256384074687958, 0.00040156295290216804, 0.248008131980896, 0.5711275339126587, -0.00012177471217000857, 0.07000613957643509, 0.11092252284288406, 0.023053081706166267, -0.005458102561533451, -0.0247397068887949, -0.27271413803100586, -0.3866928517818451, 0.10012734681367874, -0.22124093770980835, 0.09554201364517212, -0.2762017548084259, -0.28029003739356995, -0.45635339617729187, -0.09497513622045517, 0.1694532185792923, 0.15141089260578156, 0.22915473580360413, 0.029835639521479607, 0.11349895596504211, 0.17708738148212433, 0.16902975738048553, -0.13627514243125916, -0.11367030441761017, -0.05727941170334816, 0.24495337903499603, 0.4470965266227722, -0.040095821022987366, -0.18465833365917206, -0.19472727179527283, 0.02278587780892849, 0.2623613774776459, -0.3148837685585022, -0.3963643014431, -0.1733083426952362, 0.16748903691768646, 0.5260429978370667, -0.1522035002708435, -0.18257062137126923, -0.13989117741584778, 0.014049646444618702, 0.10071872174739838, 0.14675983786582947, 0.1790628731250763, 0.16746187210083008, -0.06299720704555511, 0.0019768932834267616, 0.2578362226486206, -0.06127369776368141, 0.28072041273117065, -0.26070916652679443, -0.011303803883492947, -0.12052946537733078, 0.27404525876045227, -0.09216567873954773, -0.18204988539218903, 0.18667273223400116, -0.265876442193985, -0.0710548684000969, -0.01626558229327202, -0.5050219297409058, -0.08404440432786942, 0.05900583788752556, -0.5095170140266418, -0.15056352317333221, -0.1426672637462616, 0.12118890136480331, 0.05277899280190468, -0.20762179791927338, 0.13591553270816803, 0.20715579390525818, 0.30627912282943726, -0.06432446837425232, 0.38826537132263184, -0.09041504561901093, -0.010921289213001728, -0.06273320317268372, 0.10546880960464478, -0.030390925705432892, -0.3052833378314972, 0.08188517391681671, 0.025435898452997208, 0.38652801513671875, -0.01478911004960537, -0.372770756483078, 0.010885648429393768, -0.3847964406013489, 0.25739192962646484, 0.08485657721757889, -0.15335233509540558, -0.3881436288356781, 0.5925773978233337, 0.29865115880966187, 0.28116828203201294, 0.0565008781850338, -0.01988421380519867, -0.057124171406030655, -0.27713221311569214, -0.07687300443649292, -0.2397637665271759, 0.03177580609917641, -0.14349934458732605, -0.22574931383132935, 0.4488453269004822, 0.12573117017745972, 0.012526636011898518, -0.05956297367811203, -0.08099161088466644, 0.28911224007606506, -0.043447066098451614, -0.07616591453552246, 0.2290888875722885, 0.18114788830280304, -0.09850644320249557, -0.03626472130417824, 0.23869411647319794, -0.4926404356956482, -0.059033434838056564, -0.38178303837776184, 0.11357004195451736, -0.016453230753540993, 0.01046433299779892, -0.07319039106369019, 0.18364734947681427, 0.5666253566741943, 0.24800723791122437, 0.07040788978338242, -0.2878102958202362, 0.003800789127126336, -0.2995418608188629, -0.0008176600094884634, 0.02091364562511444, -0.21850702166557312, -0.012719562277197838, -0.16500283777713776, 0.09932972490787506, 0.4306170344352722, 0.31593766808509827, -0.10278035700321198, 0.3083854019641876, -0.36317530274391174, 0.06801262497901917, 0.5011173486709595, -0.08262273669242859, -0.05583564192056656, -0.062021415680646896, -0.00760697154328227, 0.4844595491886139, -0.019201694056391716, 0.054057776927948, -0.0028557037003338337, 0.0904538631439209, 0.4210166931152344, 0.2623528242111206, 0.11964067071676254, -0.03852055221796036, -0.17267388105392456, 0.09947335720062256, 0.6978392601013184, -0.09616481512784958, -0.11971170455217361, 0.3986998200416565, -0.028800643980503082, 0.026765014976263046, 0.18386636674404144, -0.201319620013237, 0.0032165125012397766, 0.048734650015830994, -0.10226719826459885, 0.12785764038562775, 0.14343379437923431, 0.0885537639260292, -0.4772808253765106, 0.021808339282870293, -0.10823410004377365, 0.10015961527824402, -0.20138956606388092, -0.18235138058662415, 0.17230722308158875, -0.031214984133839607, -0.08370084315538406, 0.2704256474971771, 0.06326249241828918, 0.07638361304998398, -0.4588811695575714, -0.0922059416770935, 0.14243271946907043, 0.10005629807710648, 0.1427498459815979, 0.025511017069220543, -0.46703293919563293, 0.2207726389169693, 0.05161910504102707, -0.0008801123476587236, -0.33709898591041565, 0.1691162884235382, 0.16272275149822235, -0.012184803374111652, -0.13864083588123322, 0.23625434935092926, -0.24025286734104156, 0.043287236243486404, -0.16629506647586823, 0.06334104388952255, 0.07863664627075195, 0.036260854452848434, -0.1191926822066307, 0.19888587296009064, 0.14997455477714539, -0.2119937539100647, 0.2961153984069824, 0.46910881996154785, 0.2151080071926117, 0.12622913718223572, -0.35416293144226074, 0.10888896882534027, 0.03664757311344147, 0.04666951298713684, -0.15138888359069824, 0.09866978228092194, 0.03323185443878174, 0.1303197741508484, -0.16362148523330688, 0.196262925863266, -0.5942214727401733, 0.20501919090747833, 0.44577834010124207, -0.029396815225481987, 0.18319003283977509, -0.03183034062385559, -0.11524539440870285, 0.1445438116788864, 0.04004278779029846, -0.40031442046165466, 0.598656952381134, -0.07628511637449265, 0.16004891693592072, -0.06239956617355347, 0.031903378665447235, -0.08843662589788437, 0.15788134932518005, 0.16347728669643402, -0.1648809313774109, 0.24227645993232727, 0.5488061904907227, -0.025892307981848717, 0.0026320975739508867, 0.24119879305362701, -0.025866694748401642, -0.06952964514493942, -0.42995765805244446, 0.4089528024196625, -0.4493633210659027, -0.013051915913820267, -0.43378323316574097, -0.4268897771835327, -0.23255674540996552, -0.19145694375038147, -0.3151690661907196, 0.08315325528383255, -0.03080068901181221, 0.14091715216636658, 0.23150219023227692, 0.20885923504829407, 0.4176335632801056, -0.33529090881347656, -0.011618413962423801, 0.2565828859806061, -0.29369020462036133, -0.01942216418683529, 0.10111861675977707, -0.47461411356925964, -0.09270190447568893, -0.014016436412930489, 0.11415617167949677, -0.237197607755661, -0.36893782019615173, -0.04977083206176758, -0.2383906990289688, 0.03737157955765724, 0.21846333146095276, -0.02525099366903305, -0.0695573017001152, -0.3585180938243866, 0.09149616211652756, 0.39103078842163086, 0.04025847092270851, 0.5428993105888367, -0.12060995399951935, -0.1459313929080963, -0.27374187111854553, -0.41425448656082153, -0.15898749232292175, -0.18972954154014587, 0.3760151267051697, 0.055613137781620026, 0.02554510161280632, 0.2554224133491516, 0.10489585995674133, -0.11404509097337723, 0.3653510510921478, 0.17994694411754608, -0.25502607226371765, -0.3012896478176117, 0.5462107062339783, -0.035258013755083084, -0.2991883456707001, -0.191901296377182, -0.18150043487548828, 0.08648025989532471, 0.31255242228507996, -0.33830708265304565, 0.27588963508605957, -0.22691333293914795, 0.5231872797012329, -0.2641231119632721, 0.037150394171476364, 0.03370250388979912, 0.2198939323425293, 0.05256747081875801, -0.194294273853302, 0.20898185670375824, 0.26199808716773987, 0.16838693618774414, 0.41858169436454773, -0.02660307288169861, -0.05172732472419739, 0.05002299323678017, 0.28004932403564453, 0.05539500713348389, -0.5754984021186829, 0.05527674779295921, 0.036958761513233185, 0.21489082276821136, -0.12273447960615158, -0.5823749303817749, -0.0003765539440792054, -0.2560165822505951, 0.06770621240139008, -0.18076397478580475, -0.21004244685173035, -0.22956588864326477, -0.013864729553461075, 0.45337921380996704, 0.039207205176353455, -0.28664475679397583, 0.19870930910110474, -0.2816285192966461, 0.15233741700649261, -0.0028861172031611204, -0.0913681909441948, -0.25538554787635803, -0.24791990220546722, 0.1207725778222084, 0.2488175928592682, -0.1429387927055359, -0.036686938256025314, -0.3327062427997589, -0.3845033049583435, -0.06455159932374954, 0.31666573882102966, 0.22684112191200256, 0.3978821039199829, 0.222839817404747, -0.18832388520240784, -0.15495739877223969, 0.4459352493286133, 0.8358084559440613, 0.13939903676509857, -0.33156636357307434, 0.3097255229949951, 0.15633180737495422, -0.3661012053489685, -0.4271097481250763, -0.21926578879356384, 0.21070531010627747, 0.2837595045566559, 0.250106543302536, -0.28526484966278076, -0.05094040930271149, -0.044864099472761154, 0.36631253361701965, -0.1162712424993515, 0.05559913441538811, -0.19837093353271484, -0.018683474510908127, 0.062012914568185806, -0.29564887285232544, 0.0021544932387769222, 0.3204762041568756, -0.5425035953521729, -0.4796468913555145, -0.25948473811149597, -0.1547107994556427, 0.13538847863674164, -0.14216946065425873, 0.2919120788574219, -0.017959341406822205, 0.08591300249099731, -0.2203521728515625, 0.2265554517507553, 0.2167866975069046, 0.4099764823913574, 0.2381252646446228, -0.6073963642120361, 0.08647733926773071, -0.08167483657598495, 0.15483535826206207, 0.16257253289222717, -0.37224388122558594, 0.18162018060684204, -0.27652662992477417, -0.03113168105483055, -0.04567837715148926, 0.4009888172149658, 0.586768627166748, 0.28097254037857056, -0.5694265365600586, -0.40782591700553894, 0.22109541296958923, 0.24470089375972748, -0.04089735448360443, 0.39866968989372253, -0.5758923292160034, -0.44582173228263855, 0.015168634243309498, -0.13130256533622742, 0.9348537921905518, 0.22744125127792358, 0.33548009395599365, 0.3603382706642151, 0.2283135950565338, 0.25851744413375854, -0.0876077339053154, 0.25971028208732605, -0.21744191646575928, -0.20651014149188995, -0.14600852131843567, -0.34748202562332153, 0.08503597229719162, -0.07124701887369156, -0.44553977251052856, -0.08354270458221436, -0.6744431257247925, 0.26340755820274353, 0.020051032304763794, -0.19676120579242706, 0.21131981909275055, -0.35382068157196045, -0.021571043878793716, 0.007971557788550854, -0.10439841449260712, 0.11086790263652802, -0.1389356255531311, -0.18535129725933075, -0.3907170593738556, -0.041499026119709015, -0.12760914862155914, 0.2642030715942383, -0.16001321375370026, 0.46132245659828186, 0.2610341012477875, -0.3412078320980072, 0.18067814409732819, 0.3065124750137329, 0.26567915081977844, 0.17454518377780914, -0.0411951057612896, -0.09618575125932693, 0.19470059871673584, 0.23463861644268036, 0.2287786453962326, -0.38679468631744385, 0.38237321376800537, 0.32813286781311035, -0.1535712629556656, 0.08136267960071564, 0.13075676560401917, 0.0036409799940884113, -0.29417848587036133, 0.18075443804264069, 0.031039509922266006, -0.6678332686424255, 0.025742314755916595, 0.11442574113607407, 0.2623031735420227, 0.00788522232323885, 0.04556354507803917, 0.03260836377739906, -0.18807360529899597, 0.1570519655942917, -0.09236929565668106, -0.1523030400276184, -0.04860633984208107, 0.25294288992881775, 0.6211350560188293, 0.16480568051338196, 0.2510535418987274, 0.15557986497879028, 0.0163083728402853, -0.010820024646818638, 0.31699705123901367, -0.2276739478111267, -0.32213422656059265, 0.20209291577339172, -0.37630221247673035, -0.16316205263137817, -0.36786019802093506, 0.34811362624168396, -0.22314190864562988, 0.1864340454339981, -0.107450470328331, -0.12794387340545654, -0.16362302005290985, -0.08749035745859146, 0.09848576039075851, 0.13911278545856476, -0.022963441908359528, 0.49376755952835083, 0.009623781777918339, -0.2948608696460724, -0.14243333041667938, 0.026349082589149475, -0.06426343321800232, 0.20005176961421967, -0.1198727935552597, 0.036507003009319305, 0.15255478024482727, -0.112938292324543, 0.03525085374712944, 0.09475049376487732, 0.10687580704689026, -0.13952243328094482, -0.20985476672649384, 0.17253467440605164, 0.15960592031478882, -0.005173568148165941, 0.06087331101298332, -0.022329123690724373, 0.028072776272892952, -0.1015719324350357, 0.07226298004388809, 0.031042905524373055, -0.01599525287747383, 0.1429525464773178, -0.10087837278842926, 0.18798942863941193, 0.1577153205871582, 0.005140718072652817, -0.013895455747842789, -0.025800395756959915, 0.08632843941450119, 0.20601317286491394, -0.21126943826675415, -0.04569771885871887, -0.4530455470085144, 0.10936335474252701, 0.055542245507240295, 0.2954212725162506, 0.28153929114341736, -0.4541042149066925, -0.11306922882795334, -0.24736712872982025, 0.16943976283073425, 0.34950152039527893, -0.33304598927497864, -0.1357991248369217, -0.1574990600347519, 0.07869723439216614, 0.004727971274405718, -0.263482004404068, -0.13797985017299652, 0.12819014489650726, -0.196849524974823, 0.17942583560943604, -0.03435549512505531, -0.029803624376654625, -0.09308204799890518, -0.03167109936475754, 0.10607503354549408, 0.008121776394546032, 0.4864068627357483, 0.23562277853488922, -0.03517838194966316, 0.183152437210083, 0.2757527232170105, 0.029842760413885117, -0.06775417923927307, 0.20691174268722534, 0.379935085773468, 0.07280105352401733, 0.47576433420181274, -0.1776733547449112, 0.4583592116832733, -0.18870367109775543, -0.08974800258874893, 0.09862889349460602, -0.02085566706955433, 0.34397807717323303, 0.24960288405418396, 0.18939819931983948, -0.31672605872154236, -0.4845970571041107, -0.06776715070009232, 0.07440908998250961, -0.30103641748428345, 0.10764297097921371, 0.17446722090244293, 0.011402960866689682, 0.017471903935074806, -0.24522718787193298, 0.048487551510334015, 0.04460345581173897, 0.3473398685455322, 0.06950197368860245, -0.12980057299137115, -0.33238619565963745, 0.27854663133621216, 0.21376673877239227, 0.16858595609664917, -0.08497410267591476, 0.048294875770807266, 0.2870335578918457, -0.21163800358772278, 0.03100527822971344, 0.32841959595680237, 0.4566880762577057, 0.352345734834671, -0.05566917359828949, -0.03478851541876793, 0.07960857450962067, -0.0909845158457756, 0.03797931224107742, 0.22675271332263947, 0.03106318600475788, -0.23125196993350983, 0.18495501577854156, 0.07871027290821075, -0.08961283415555954, 0.22478142380714417, 0.049584612250328064, 0.28550323843955994, -0.573268711566925, 0.4974718689918518, -0.3825764060020447, -0.16534863412380219, -0.23206375539302826, -0.0655602291226387, -0.33009469509124756, -0.0028856880962848663, 0.7613863945007324, 0.1631409078836441, 0.23039448261260986, -0.04560229554772377, 0.05247349292039871, 0.1485670655965805, 0.3819585144519806, -0.026598887518048286, 0.12608292698860168, -0.07587351649999619, 0.1160464882850647, 0.13456940650939941, 0.34286582469940186, 0.37755855917930603, 0.29019442200660706, 0.0708572268486023, 0.3413301706314087, 0.061645910143852234, 0.15839090943336487, -0.026249263435602188, -0.2620297074317932, 0.030572623014450073, 0.12890753149986267, -0.3855929970741272, -0.35656794905662537, -0.08621013909578323, -0.10321906208992004, 0.0023236223496496677, -0.3629138171672821, 0.40416601300239563, -0.04067297279834747, 0.04436027631163597, -0.11566191911697388, -0.21739453077316284, 0.20166365802288055, 0.2793515920639038, 0.3577319383621216, 0.37256163358688354, 0.2503007650375366, -0.11022573709487915, -0.15503816306591034, -0.08875412493944168, -0.508396565914154, -0.22219939529895782, 0.45098692178726196, -0.23604267835617065, 0.1048237606883049, -0.2071295529603958, 0.25309959053993225, -0.13976074755191803, 0.14184154570102692, 0.42456039786338806, -0.17075812816619873, -0.39807355403900146, 0.29904699325561523, -0.3292232155799866, -0.003392433514818549, -0.03996594622731209, 0.503176748752594, -0.001783957239240408, 0.23491127789020538, -0.00363185559399426, -0.455534428358078, 0.44508615136146545, -0.3086920976638794, -0.40810638666152954, 0.004045271314680576, -0.05936297029256821, -0.018501078709959984, 0.14919830858707428, -0.5609917044639587, -0.3100961148738861, 0.43386131525039673, -0.3143925070762634, -0.05310161039233208, 0.029937176033854485, -0.07534821331501007, 0.0506681427359581, -0.25773143768310547, 0.22574132680892944, -0.008087302558124065, -0.2879454493522644, 0.4016745388507843, -0.25446832180023193 ]
https://github.com/huggingface/datasets/issues/2750
Second concatenation of datasets produces errors
Hi @Aktsvigun! We are planning to address this issue before our next release, in a couple of weeks at most. 😅 In the meantime, if you would like to contribute, feel free to open a Pull Request. You are welcome. Here you can find more information: [How to contribute to Datasets?](CONTRIBUTING.md)
Hi, I am need to concatenate my dataset with others several times, and after I concatenate it for the second time, the features of features (e.g. tags names) are collapsed. This hinders, for instance, the usage of tokenize function with `data.map`. ``` from datasets import load_dataset, concatenate_datasets data = load_dataset('trec')['train'] concatenated = concatenate_datasets([data, data]) concatenated_2 = concatenate_datasets([concatenated, concatenated]) print('True features of features:', concatenated.features) print('\nProduced features of features:', concatenated_2.features) ``` outputs ``` True features of features: {'label-coarse': ClassLabel(num_classes=6, names=['DESC', 'ENTY', 'ABBR', 'HUM', 'NUM', 'LOC'], names_file=None, id=None), 'label-fine': ClassLabel(num_classes=47, names=['manner', 'cremat', 'animal', 'exp', 'ind', 'gr', 'title', 'def', 'date', 'reason', 'event', 'state', 'desc', 'count', 'other', 'letter', 'religion', 'food', 'country', 'color', 'termeq', 'city', 'body', 'dismed', 'mount', 'money', 'product', 'period', 'substance', 'sport', 'plant', 'techmeth', 'volsize', 'instru', 'abb', 'speed', 'word', 'lang', 'perc', 'code', 'dist', 'temp', 'symbol', 'ord', 'veh', 'weight', 'currency'], names_file=None, id=None), 'text': Value(dtype='string', id=None)} Produced features of features: {'label-coarse': Value(dtype='int64', id=None), 'label-fine': Value(dtype='int64', id=None), 'text': Value(dtype='string', id=None)} ``` I am using `datasets` v.1.11.0
51
Second concatenation of datasets produces errors Hi, I am need to concatenate my dataset with others several times, and after I concatenate it for the second time, the features of features (e.g. tags names) are collapsed. This hinders, for instance, the usage of tokenize function with `data.map`. ``` from datasets import load_dataset, concatenate_datasets data = load_dataset('trec')['train'] concatenated = concatenate_datasets([data, data]) concatenated_2 = concatenate_datasets([concatenated, concatenated]) print('True features of features:', concatenated.features) print('\nProduced features of features:', concatenated_2.features) ``` outputs ``` True features of features: {'label-coarse': ClassLabel(num_classes=6, names=['DESC', 'ENTY', 'ABBR', 'HUM', 'NUM', 'LOC'], names_file=None, id=None), 'label-fine': ClassLabel(num_classes=47, names=['manner', 'cremat', 'animal', 'exp', 'ind', 'gr', 'title', 'def', 'date', 'reason', 'event', 'state', 'desc', 'count', 'other', 'letter', 'religion', 'food', 'country', 'color', 'termeq', 'city', 'body', 'dismed', 'mount', 'money', 'product', 'period', 'substance', 'sport', 'plant', 'techmeth', 'volsize', 'instru', 'abb', 'speed', 'word', 'lang', 'perc', 'code', 'dist', 'temp', 'symbol', 'ord', 'veh', 'weight', 'currency'], names_file=None, id=None), 'text': Value(dtype='string', id=None)} Produced features of features: {'label-coarse': Value(dtype='int64', id=None), 'label-fine': Value(dtype='int64', id=None), 'text': Value(dtype='string', id=None)} ``` I am using `datasets` v.1.11.0 Hi @Aktsvigun! We are planning to address this issue before our next release, in a couple of weeks at most. 😅 In the meantime, if you would like to contribute, feel free to open a Pull Request. You are welcome. Here you can find more information: [How to contribute to Datasets?](CONTRIBUTING.md)
[ -0.15046551823616028, -0.05916959419846535, -0.05770926922559738, 0.2559516429901123, 0.19305387139320374, 0.09017416089773178, 0.08213312923908234, 0.26227641105651855, -0.2609195411205292, -0.05513985455036163, 0.03583119437098503, 0.12652526795864105, 0.21746206283569336, 0.09019908308982849, -0.2850411534309387, -0.18019279837608337, 0.17883974313735962, 0.05596684664487839, 0.04855803772807121, -0.11890055239200592, -0.12449552118778229, 0.12656539678573608, -0.31517916917800903, 0.07697360217571259, -0.4671199321746826, 0.16254116594791412, -0.32279103994369507, 0.00762091763317585, -0.0032960663083940744, -0.309878408908844, -0.05564487725496292, 0.3040580153465271, -0.045128434896469116, 0.3253474235534668, -0.00011398464266676456, -0.1404050588607788, 0.02038547769188881, -0.05890287831425667, -0.11067758500576019, -0.18048304319381714, -0.10207413882017136, -0.590503990650177, -0.09138049930334091, -0.20028217136859894, 0.14627079665660858, -0.6070089936256409, -0.2705745995044708, -0.2687051296234131, 0.2620135247707367, -0.13850054144859314, 0.15978342294692993, -0.06761546432971954, 0.17478442192077637, -0.18061891198158264, -0.10666228085756302, 0.09651767462491989, 0.03476204350590706, -0.00041065402911044657, -0.14378339052200317, -0.03253363072872162, 0.4414527714252472, 0.3706353008747101, -0.17822639644145966, -0.3017144799232483, -0.15559451282024384, 0.1617708057165146, 0.006311997305601835, -0.381713330745697, -0.053633250296115875, 0.12038639187812805, 0.3290896415710449, -0.34439533948898315, -0.37145864963531494, -0.4346684217453003, 0.1693648099899292, -0.23938247561454773, 0.031274888664484024, -0.0691222995519638, 0.28673046827316284, 0.21797162294387817, -0.030887288972735405, -0.18904972076416016, 0.03951481729745865, 0.1386503279209137, -0.06088124215602875, 0.2488587647676468, 0.005722138099372387, 0.11449151486158371, 0.12440222501754761, -0.5368865728378296, 0.022335754707455635, -0.42835626006126404, -0.019752470776438713, 0.017542045563459396, -0.5440707206726074, -0.04737285524606705, 0.05942988023161888, -0.6148053407669067, 0.22701391577720642, 0.17718619108200073, -0.038397546857595444, 0.023707320913672447, -0.06681495904922485, -0.0024820466060191393, 0.24704553186893463, 0.41886740922927856, 0.23122531175613403, 0.2866077721118927, -0.04706402122974396, -0.2252601981163025, -0.2453390210866928, -0.0734841600060463, -0.12644313275814056, -0.2911261022090912, 0.10004457086324692, 0.011374052613973618, 0.39614337682724, -0.029477544128894806, -0.07939047366380692, 0.1111142635345459, -0.3544272780418396, -0.11337816715240479, 0.102865070104599, 0.008684198372066021, -0.0921810120344162, 0.6188398003578186, -0.11724719405174255, 0.2566659450531006, 0.112000972032547, -0.1708725541830063, -0.157357856631279, -0.19317923486232758, 0.01055595837533474, 0.19084829092025757, -0.009235710836946964, -0.2236088365316391, 0.03661179915070534, 0.2651330828666687, -0.02379702217876911, -0.1290377378463745, 0.02723364159464836, -0.3101314604282379, 0.004560964182019234, 0.02188163250684738, 0.12505759298801422, 0.05207753926515579, 0.08549194782972336, -0.0011943370336666703, 0.024050157517194748, 0.04548421502113342, -0.5595521330833435, -0.15020620822906494, -0.3701136112213135, 0.21362201869487762, 0.08526357263326645, 0.29964056611061096, 0.08012299239635468, 0.3027196526527405, 0.25095823407173157, 0.05060034990310669, -0.18856848776340485, -0.08703622221946716, 0.007649489678442478, -0.18071800470352173, 0.08213138580322266, 0.08985331654548645, 0.06774254143238068, 0.012770901434123516, 0.11038505285978317, 0.1843046098947525, 0.287136435508728, 0.4206843674182892, -0.1703023761510849, 0.33449143171310425, -0.20409783720970154, 0.49716389179229736, 0.5261319875717163, -0.07430565357208252, -0.18107706308364868, 0.2042456716299057, -0.0661211684346199, 0.35500988364219666, 0.14065928757190704, -0.1781974583864212, 0.050342295318841934, 0.0754450112581253, 0.41947078704833984, 0.12382657825946808, 0.03690445050597191, -0.3195022642612457, -0.07281528413295746, 0.024722786620259285, 0.7286319732666016, -0.34166669845581055, -0.28311383724212646, 0.2036885917186737, -0.06167851388454437, -0.09814443439245224, 0.1693050116300583, -0.34459254145622253, -0.05869561806321144, 0.1913805454969406, -0.12597689032554626, 0.18309921026229858, 0.07872878760099411, 0.0552581325173378, -0.3375195860862732, 0.08937595039606094, -0.039932623505592346, -0.24284806847572327, -0.1679302304983139, -0.2065502256155014, 0.02210146002471447, -0.016452839598059654, -0.164725199341774, 0.24436450004577637, 0.17656400799751282, 0.33244267106056213, -0.18916639685630798, -0.05461708456277847, -0.05736566334962845, 0.43796873092651367, 0.061903323978185654, 0.09284204989671707, -0.1567477583885193, 0.3573680520057678, 0.05265268683433533, 0.03332563117146492, -0.05474637821316719, 0.134388729929924, 0.5898090600967407, -0.13813631236553192, -0.09877584129571915, 0.4499066174030304, -0.19397345185279846, -0.11378244310617447, -0.0809100866317749, -0.06672704219818115, 0.10392968356609344, 0.004046447575092316, 0.06801129132509232, -0.12345365434885025, -0.04364296793937683, -0.16801849007606506, 0.07059326022863388, 0.2275555282831192, 0.284964382648468, 0.14256775379180908, 0.035921964794397354, -0.09498800337314606, 0.11461050808429718, -0.10521195828914642, -0.10357791930437088, -0.4422336220741272, 0.20892129838466644, 0.03127872198820114, -0.2695367932319641, 0.0007309078937396407, -0.4664669334888458, 0.2603233754634857, 0.3221491277217865, 0.13307777047157288, 0.07808592170476913, 0.02916136011481285, 0.04049926996231079, 0.06321920454502106, 0.0192058477550745, -0.20667777955532074, 0.4321274161338806, 0.16386377811431885, -0.0032159527763724327, 0.12600480020046234, -0.09431535750627518, 0.04084444046020508, 0.18242058157920837, -0.06830796599388123, 0.08108118921518326, 0.4733746647834778, 0.2709381580352783, 0.09475913643836975, -0.04730948060750961, -0.15751712024211884, 0.06077475845813751, -0.10245662182569504, -0.16581767797470093, 0.12806934118270874, -0.6087808609008789, -0.17152968049049377, -0.23967589437961578, -0.527442991733551, -0.22163993120193481, -0.45873138308525085, -0.18266727030277252, 0.008617006242275238, -0.15290643274784088, 0.17234885692596436, 0.1213836595416069, -0.13091404736042023, 0.16701510548591614, 0.09952756017446518, 0.11638559401035309, 0.15815681219100952, -0.08119563013315201, -0.05272837355732918, -0.15125322341918945, -0.05784676969051361, 0.03549719974398613, -0.088979072868824, -0.01573740690946579, -0.3222574293613434, -0.23926912248134613, 0.13340044021606445, -0.2884918451309204, -0.16306127607822418, -0.022115597501397133, -0.09774191677570343, 0.04354202002286911, -0.45741504430770874, 0.3913761377334595, 0.556797981262207, 0.09282656759023666, 0.21756821870803833, 0.3165222406387329, -0.37590518593788147, -0.2535749673843384, -0.3681761622428894, -0.29746806621551514, -0.017892643809318542, 0.17136012017726898, -0.2565801441669464, 0.16258563101291656, 0.5247508883476257, 0.06954200565814972, -0.2070612758398056, 0.21327805519104004, 0.20211423933506012, -0.19644613564014435, -0.14227703213691711, 0.3517604470252991, -0.2002483606338501, 0.000250712939305231, -0.26206961274147034, -0.027687877416610718, -0.11749275028705597, 0.25626054406166077, -0.25461119413375854, -0.0034957833122462034, 0.029825929552316666, 0.0769764631986618, -0.3703238070011139, 0.09442859888076782, 0.06256130337715149, 0.37555527687072754, -0.14971613883972168, 0.03578512370586395, -0.14287206530570984, 0.04631074517965317, 0.30564191937446594, 0.44194045662879944, -0.18249951303005219, -0.015933789312839508, -0.10229325294494629, -0.03576008975505829, 0.2336682230234146, -0.010066032409667969, 0.27057433128356934, -0.03796985000371933, 0.2105388641357422, -0.01995035633444786, -0.6065671443939209, -0.20092220604419708, -0.20382395386695862, 0.1288238912820816, -0.03885463625192642, -0.15562380850315094, 0.24917230010032654, 0.0688515231013298, 0.14833447337150574, 0.00783455464988947, -0.19013310968875885, -0.009513817727565765, -0.10385069996118546, 0.4142339527606964, -0.030021604150533676, 0.005481078289449215, -0.20455297827720642, 0.2662065029144287, 0.05573923885822296, -0.0655134916305542, 0.10787440836429596, -0.26362547278404236, -0.5134299397468567, -0.23110860586166382, -0.3840081989765167, 0.3098147511482239, 0.1988605558872223, 0.3706657886505127, 0.1436103731393814, 0.05401096120476723, -0.2669857442378998, 0.11355964094400406, 0.7118360996246338, -0.11501310020685196, -0.3851940333843231, 0.4801958501338959, 0.0020541830454021692, -0.0768466368317604, -0.3024657964706421, -0.05491606891155243, 0.27802273631095886, 0.12453271448612213, 0.562625527381897, -0.1685638576745987, -0.12182990461587906, 0.11178481578826904, 0.6294498443603516, -0.10577123612165451, -0.17564745247364044, -0.11250218003988266, -0.000359039957402274, -0.3241673707962036, -0.5116013288497925, -0.21002896130084991, 0.40203893184661865, -0.30056828260421753, -0.14286212623119354, -0.2321522980928421, -0.31578028202056885, 0.30092793703079224, 0.20264534652233124, 0.4664097726345062, 0.1533278375864029, 0.27519890666007996, -0.07244125008583069, 0.2755638062953949, 0.3012101650238037, 0.6378160119056702, 0.1912374049425125, -0.7376354932785034, -0.14467765390872955, -0.02317708544433117, 0.35822853446006775, 0.04961047321557999, -0.2540140450000763, 0.4031374156475067, -0.42956775426864624, 0.32819321751594543, -0.15315978229045868, 0.19664983451366425, 0.5844239592552185, 0.1333208829164505, -0.5558376312255859, -0.19405728578567505, 0.16518177092075348, 0.1863948255777359, -0.0991586446762085, 0.27885201573371887, -0.4781167209148407, -0.38418734073638916, 0.07341398298740387, -0.13418492674827576, 0.8999789953231812, 0.27406272292137146, -0.13335533440113068, -0.09252693504095078, 0.0792020857334137, 0.29880404472351074, -0.27317047119140625, 0.1949479579925537, -0.049931541085243225, -0.23946513235569, -0.051480766385793686, 0.0525456927716732, 0.14686162769794464, 0.05266508460044861, -0.7124882340431213, 0.361989825963974, -0.44845402240753174, 0.09956996142864227, -0.29692742228507996, 0.287898451089859, 0.3922804296016693, -0.31449735164642334, -0.23459134995937347, 0.054648783057928085, 0.046233728528022766, -0.14624765515327454, -0.03372105956077576, -0.07587506622076035, 0.24588094651699066, -0.2128923088312149, -0.14219340682029724, 0.2426852136850357, -0.3409104347229004, 0.4390046000480652, -0.044830720871686935, -0.21519112586975098, 0.15735848248004913, 0.090985968708992, 0.3253345489501953, 0.25733518600463867, 0.09870374947786331, -0.2113582193851471, 0.08518587052822113, 0.0636725053191185, -0.32570090889930725, -0.35079339146614075, 0.10228526592254639, 0.1928030103445053, -0.3504640460014343, 0.14040377736091614, 0.25872570276260376, 0.04853396490216255, -0.23367546498775482, 0.04280202463269234, 0.2895255982875824, -0.5032476186752319, 0.22503867745399475, 0.34530898928642273, 0.11177981644868851, -0.1729832887649536, 0.10538151115179062, 0.11107101291418076, -0.03583198040723801, 0.0005477651138789952, -0.162395641207695, -0.14334511756896973, -0.0809887945652008, 0.24971945583820343, 0.37615641951560974, -0.003994316328316927, 0.20222529768943787, -0.07402489334344864, -0.0276718158274889, -0.11964498460292816, -0.06074083596467972, -0.4044417440891266, 0.06396666914224625, 0.09111087769269943, -0.09031549841165543, 0.00849709939211607, -0.2556840777397156, 0.276419073343277, 0.00675266282632947, 0.22412621974945068, -0.027106737717986107, -0.21800605952739716, -0.1631314754486084, 0.0002040047838818282, 0.18538349866867065, 0.12549063563346863, -0.10214823484420776, 0.41277939081192017, -0.17073626816272736, 0.33813905715942383, -0.2539672255516052, -0.08814051002264023, -0.12017279118299484, 0.19595158100128174, -0.1684364676475525, -0.0022603878751397133, -0.15862815082073212, -0.04495571553707123, 0.19609792530536652, 0.2196849137544632, 0.06852813065052032, -0.19811132550239563, -0.13443711400032043, 0.1306733340024948, 0.11364763975143433, -0.10900484025478363, -0.12144974619150162, -0.16556933522224426, 0.24672533571720123, -0.3233591914176941, 0.10899949818849564, 0.15863671898841858, 0.12930509448051453, 0.25559625029563904, 0.04404262825846672, -0.03267943114042282, 0.00625319080427289, 0.07371684908866882, 0.08630940318107605, 0.2640116512775421, 0.07997776567935944, 0.14829057455062866, -0.20732878148555756, -0.057306986302137375, -0.6292610168457031, -0.11035367101430893, 0.03663205727934837, -0.1719389706850052, 0.11823124438524246, -0.1929190307855606, -0.16580988466739655, -0.05926170200109482, 0.23190224170684814, 0.6020117998123169, -0.3985375165939331, -0.05728088319301605, 0.14491668343544006, 0.18979772925376892, -0.24377430975437164, -0.37107253074645996, 0.0801537036895752, 0.20159590244293213, -0.10898923128843307, 0.25781261920928955, 0.26501965522766113, 0.0011202391469851136, 0.08968988060951233, -0.06916200369596481, 0.018959227949380875, 0.2882750332355499, 0.4360206425189972, 0.2229434996843338, 0.06616668403148651, 0.057367973029613495, 0.04540175944566727, 0.16064926981925964, 0.15769267082214355, 0.10199397057294846, 0.029054073616862297, 0.14789390563964844, 0.3706715703010559, 0.05379075929522514, 0.06606613099575043, -0.12959839403629303, 0.09436894953250885, 0.22209425270557404, -0.35016512870788574, 0.12902241945266724, -0.14127175509929657, 0.018189076334238052, -0.16751275956630707, -0.4559597074985504, -0.07612337917089462, 0.5514984130859375, -0.09139462560415268, -0.219089075922966, 0.308582067489624, -0.04104948788881302, -0.16108231246471405, -0.15482865273952484, 0.20977260172367096, -0.0945969820022583, 0.2522941827774048, -0.1464563012123108, 0.05886266380548477, -0.27066344022750854, 0.08428476005792618, 0.3438919186592102, 0.38191843032836914, -0.33402934670448303, 0.2084650993347168, 0.5395167469978333, 0.01791451871395111, -0.04342952370643616, 0.391059547662735, 0.6031445860862732, 0.29153040051460266, 0.011545696295797825, 0.048736728727817535, -0.1092316284775734, -0.06587065011262894, 0.18371011316776276, -0.010524053126573563, -0.12846621870994568, -0.38601621985435486, 0.302303284406662, 0.10484344512224197, -0.1672859489917755, 0.12646740674972534, 0.24009761214256287, 0.07154034078121185, -0.4240855276584625, 0.22965893149375916, 0.2455330193042755, -0.08629176765680313, -0.020545944571495056, -0.12322784215211868, -0.3437090814113617, -0.3410777747631073, 0.7281006574630737, 0.1575152575969696, 0.13741488754749298, 0.08666671812534332, 0.12868882715702057, -0.04924638196825981, 0.5275992751121521, 0.26564520597457886, 0.06373855471611023, -0.2873803973197937, -0.223657488822937, -0.16511224210262299, 0.08366543799638748, -0.19681842625141144, 0.017067093402147293, 0.29340583086013794, 0.13226136565208435, -0.02373085729777813, 0.20364060997962952, 0.03104471042752266, -0.1009666919708252, -0.06479881703853607, -0.18961051106452942, -0.5950564742088318, -0.14865802228450775, 0.09269357472658157, -0.00807473249733448, 0.05504736304283142, -0.09189524501562119, 0.4462239146232605, -0.16440479457378387, 0.050047725439071655, -0.08005115389823914, 0.1472424864768982, 0.1145496666431427, 0.1729746162891388, 0.6292977333068848, 0.2540770173072815, 0.3092816472053528, -0.11384306848049164, 0.10479386150836945, 0.09064602106809616, -0.34081098437309265, 0.01955254003405571, 0.261453241109848, 0.315395325422287, -0.07830512523651123, -0.27103036642074585, 0.2042885571718216, -0.10408927500247955, 0.10568061470985413, 0.4074398875236511, -0.06613414734601974, -0.11344046890735626, 0.1953425109386444, 0.2116316705942154, 0.05766398832201958, -0.06349484622478485, 0.3801528215408325, -0.014182349666953087, 0.5103456377983093, 0.15682777762413025, -0.5181286334991455, 0.4936010539531708, 0.06602198630571365, -0.46523141860961914, -0.11638663709163666, 0.13499976694583893, 0.12056814134120941, 0.12675736844539642, -0.6108976602554321, -0.24175111949443817, 0.5591216683387756, -0.048003990203142166, -0.33326542377471924, 0.17992016673088074, 0.0029893729370087385, -0.1483450084924698, 0.09583625942468643, 0.20169545710086823, -0.02322404272854328, -0.3746018409729004, 0.18894518911838531, -0.053078968077898026 ]
https://github.com/huggingface/datasets/issues/2749
Raise a proper exception when trying to stream a dataset that requires to manually download files
Hi @severo, thanks for reporting. As discussed, datasets requiring manual download should be: - programmatically identifiable - properly handled with more clear error message when trying to load them with streaming In relation with programmatically identifiability, note that for datasets requiring manual download, their builder have a property `manual_download_instructions` which is not None: ```python # Dataset requiring manual download: builder.manual_download_instructions is not None ```
## Describe the bug At least for 'reclor', 'telugu_books', 'turkish_movie_sentiment', 'ubuntu_dialogs_corpus', 'wikihow', trying to `load_dataset` in streaming mode raises a `TypeError` without any detail about why it fails. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("reclor", streaming=True) ``` ## Expected results Ideally: raise a specific exception, something like `ManualDownloadError`. Or at least give the reason in the message, as when we load in normal mode: ```python from datasets import load_dataset dataset = load_dataset("reclor") ``` ``` AssertionError: The dataset reclor with config default requires manual data. Please follow the manual download instructions: to use ReClor you need to download it manually. Please go to its homepage (http://whyu.me/reclor/) fill the google form and you will receive a download link and a password to extract it.Please extract all files in one folder and use the path folder in datasets.load_dataset('reclor', data_dir='path/to/folder/folder_name') . Manual data can be loaded with `datasets.load_dataset(reclor, data_dir='<path/to/manual/data>') ``` ## Actual results ``` TypeError: expected str, bytes or os.PathLike object, not NoneType ``` ## Environment info - `datasets` version: 1.11.0 - Platform: macOS-11.5-x86_64-i386-64bit - Python version: 3.8.11 - PyArrow version: 4.0.1
64
Raise a proper exception when trying to stream a dataset that requires to manually download files ## Describe the bug At least for 'reclor', 'telugu_books', 'turkish_movie_sentiment', 'ubuntu_dialogs_corpus', 'wikihow', trying to `load_dataset` in streaming mode raises a `TypeError` without any detail about why it fails. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("reclor", streaming=True) ``` ## Expected results Ideally: raise a specific exception, something like `ManualDownloadError`. Or at least give the reason in the message, as when we load in normal mode: ```python from datasets import load_dataset dataset = load_dataset("reclor") ``` ``` AssertionError: The dataset reclor with config default requires manual data. Please follow the manual download instructions: to use ReClor you need to download it manually. Please go to its homepage (http://whyu.me/reclor/) fill the google form and you will receive a download link and a password to extract it.Please extract all files in one folder and use the path folder in datasets.load_dataset('reclor', data_dir='path/to/folder/folder_name') . Manual data can be loaded with `datasets.load_dataset(reclor, data_dir='<path/to/manual/data>') ``` ## Actual results ``` TypeError: expected str, bytes or os.PathLike object, not NoneType ``` ## Environment info - `datasets` version: 1.11.0 - Platform: macOS-11.5-x86_64-i386-64bit - Python version: 3.8.11 - PyArrow version: 4.0.1 Hi @severo, thanks for reporting. As discussed, datasets requiring manual download should be: - programmatically identifiable - properly handled with more clear error message when trying to load them with streaming In relation with programmatically identifiability, note that for datasets requiring manual download, their builder have a property `manual_download_instructions` which is not None: ```python # Dataset requiring manual download: builder.manual_download_instructions is not None ```
[ -0.22404925525188446, 0.07350516319274902, 0.06885521858930588, 0.1454879194498062, 0.34670785069465637, 0.09173484146595001, 0.1795138120651245, 0.03852207958698273, 0.10486293584108353, 0.07325558364391327, 0.07145317643880844, 0.22788524627685547, -0.3061069846153259, 0.16898125410079956, -0.0743807777762413, -0.0853380337357521, -0.09698686748743057, 0.1296142041683197, 0.2995472550392151, 0.12180550396442413, -0.1967429220676422, 0.037302106618881226, -0.21464155614376068, 0.0178640466183424, -0.0018432316137477756, -0.1568494737148285, 0.2580467760562897, 0.23888428509235382, -0.1288105845451355, -0.39029571413993835, 0.3372129201889038, 0.01218420546501875, 0.4855322241783142, 0.516521155834198, -0.00011996342800557613, 0.007031640037894249, 0.38866111636161804, -0.15862444043159485, -0.5747519135475159, -0.1283360868692398, -0.46863797307014465, -0.07776762545108795, 0.09016527980566025, -0.06981346756219864, 0.1049860492348671, -0.17209511995315552, 0.16234152019023895, -0.3645293414592743, 0.20476993918418884, 0.4541601240634918, 0.10668251663446426, 0.2829993665218353, 0.24624231457710266, 0.16370660066604614, 0.13273727893829346, 0.3512677550315857, -0.030218496918678284, 0.37132570147514343, 0.06086895614862442, 0.1510273516178131, 0.16060270369052887, 0.16287736594676971, -0.12288299202919006, 0.03938410431146622, 0.18805326521396637, -0.16610434651374817, -0.22958509624004364, -0.4277888536453247, -0.11032478511333466, 0.4421195983886719, 0.5148941278457642, -0.3407013714313507, -0.4609524607658386, -0.37986990809440613, 0.04588533937931061, -0.14767985045909882, 0.13112644851207733, 0.487836092710495, -0.42169299721717834, 0.35012638568878174, -0.08833319693803787, -0.3158324658870697, -0.30652540922164917, 0.23055961728096008, 0.005904906429350376, -0.15191133320331573, 0.05575824901461601, 0.06112024560570717, -0.0835496336221695, 0.10570962727069855, 0.21807432174682617, -0.3093453645706177, -0.03965634107589722, 0.08888810873031616, -0.20469699800014496, -0.004170457366853952, -0.06578423082828522, -0.04149486497044563, 0.19658847153186798, 0.023862481117248535, 0.3733995854854584, 0.05673360079526901, -0.15298143029212952, 0.24316373467445374, 0.19019557535648346, 0.02645529806613922, 0.09910131990909576, 0.12588387727737427, 0.48117250204086304, 0.39516472816467285, 0.1332433819770813, -0.11775625497102737, -0.02530706115067005, 0.08860672265291214, 0.3152231276035309, 0.20487160980701447, 0.468108206987381, -0.10496421903371811, -0.403918981552124, 0.009666748344898224, -0.6102748513221741, 0.10568327456712723, -0.022907137870788574, 0.1641358584165573, -0.16162066161632538, 0.200736403465271, 0.21628662943840027, 0.36934325098991394, -0.0011652327375486493, -0.28783684968948364, -0.010298658162355423, -0.06436750292778015, 0.12619560956954956, 0.0260480847209692, 0.17953641712665558, -0.5311357378959656, 0.09007122367620468, 0.09394257515668869, -0.32868021726608276, -0.05276014283299446, 0.35029837489128113, -0.054580092430114746, -0.15929533541202545, 0.3757534623146057, 0.140271857380867, 0.02731900103390217, 0.11523635685443878, -0.157632514834404, -0.01643441431224346, 0.26044824719429016, -0.059895433485507965, -0.5316065549850464, 0.10635273903608322, 0.1647612750530243, -0.016745824366807938, -0.07770917564630508, -0.5121462345123291, 0.04118386283516884, 0.0013844248605892062, -0.3260013461112976, -0.018846329301595688, -0.1534196138381958, 0.3346796929836273, -0.29170989990234375, 0.04539109021425247, 0.5106770992279053, -0.3724919259548187, 0.013421140611171722, -0.44810521602630615, -0.2220885008573532, 0.7759039998054504, 0.15121230483055115, -0.23697207868099213, 0.23320968449115753, -0.37999826669692993, 0.04081904515624046, 0.4848950505256653, -0.03534558415412903, -0.3184097409248352, 0.44277510046958923, 0.025445498526096344, 0.4210851788520813, 0.1377786248922348, 0.21825401484966278, -0.04003847390413284, -0.12675942480564117, -0.026164598762989044, 0.5302297472953796, -0.21859872341156006, 0.0431416854262352, -0.20899900794029236, -0.3620253801345825, 0.22538793087005615, 0.2703534960746765, 0.027036936953663826, 0.22803974151611328, 0.33640560507774353, 0.014122751541435719, 0.2515026926994324, -0.1984638124704361, -0.18346525728702545, -0.008744362741708755, 0.4122571647167206, -0.08665315061807632, -0.2348509281873703, -0.11837945878505707, -0.37347865104675293, 0.2647877037525177, 0.04396223649382591, 0.035476602613925934, -0.2135419100522995, -0.3262125253677368, -0.10273060947656631, 0.013982031494379044, -0.2305370271205902, 0.017195232212543488, 0.036064814776182175, 0.3708554804325104, -0.3016514182090759, 0.16909584403038025, -0.10533641278743744, 0.4814933240413666, -0.5749639868736267, 0.25936517119407654, -0.14903123676776886, 0.10259111225605011, 0.03448200598359108, -0.10053697973489761, -0.1384555995464325, -0.329621821641922, 0.05059000849723816, -0.031150126829743385, -0.24664436280727386, 0.45797836780548096, 0.24992038309574127, 0.3413887023925781, -0.2688513398170471, -0.08256113529205322, 0.07796750962734222, -0.1975449025630951, -0.2278675138950348, 0.507719874382019, 0.18951180577278137, -0.036330752074718475, -0.0994236096739769, 0.21321849524974823, 0.24484893679618835, 0.14406831562519073, 0.08622582256793976, 0.21306096017360687, 0.1893789917230606, 0.20609381794929504, -0.1933787614107132, 0.09101544320583344, 0.15677347779273987, -0.12391117960214615, -0.04419321566820145, -0.2678854465484619, -0.713690996170044, -0.20571956038475037, 0.0648711696267128, 0.046432990580797195, 0.4829677939414978, 0.3096091151237488, -0.13821439445018768, 0.09073232114315033, 0.25253915786743164, 0.31691616773605347, 0.42951491475105286, 0.07337446510791779, 0.11609779298305511, 0.08644082397222519, 0.18074828386306763, -0.2610626518726349, 0.25438857078552246, 0.2185363620519638, -0.2846085727214813, 0.16346758604049683, 0.12062998861074448, 0.10415257513523102, -0.2988964915275574, -0.1633278876543045, -0.051693711429834366, 0.18945035338401794, -0.531281054019928, 0.0377005897462368, 0.03764321282505989, -0.18132182955741882, -0.32963573932647705, -0.37087440490722656, -0.1727311909198761, -0.13373814523220062, -0.11672046035528183, 0.38975799083709717, -0.1965971142053604, 0.20700755715370178, -0.034906793385744095, 0.23350828886032104, -0.060741666704416275, -0.44997814297676086, -0.07153459638357162, 0.21722005307674408, -0.2908613383769989, -0.018409952521324158, 0.3773886263370514, -0.1365686058998108, 0.4272458255290985, -0.2955586016178131, 0.062129806727170944, -0.31788453459739685, -0.10429777950048447, -0.05360057204961777, 0.20456907153129578, 0.22868315875530243, 0.3041536211967468, 0.46704456210136414, 0.3198856711387634, -0.30505692958831787, 0.05093664303421974, -0.03956381604075432, -0.0034176690969616175, 0.19776639342308044, -0.04189082607626915, 0.33208706974983215, -0.11863461136817932, -0.28666186332702637, -0.4388066530227661, -0.42541348934173584, -0.04463648796081543, -0.06888990849256516, 0.1023060753941536, 0.34371280670166016, 0.10854674875736237, 0.108060821890831, 0.208924800157547, 0.11630596220493317, 0.07470163702964783, -0.17232541739940643, 0.21362125873565674, 0.07540388405323029, -0.1863211840391159, 0.09571711719036102, -0.07907494902610779, -0.18704648315906525, 0.628879964351654, -0.4854285717010498, -0.07733265310525894, -0.21600016951560974, 0.09343631565570831, -0.13144898414611816, -0.16305479407310486, 0.1723691076040268, 0.04850974306464195, 0.0638696700334549, 0.052118390798568726, -0.009221557527780533, -0.10646527260541916, 0.14194895327091217, 0.3870231807231903, 0.12047383189201355, 0.44401293992996216, -0.005669358652085066, 0.42802706360816956, 0.14856599271297455, 0.027910420671105385, 0.5554195642471313, 0.03795095160603523, 0.2381645292043686, 0.10940854251384735, -0.15819598734378815, -0.039072319865226746, -0.04684324935078621, -0.2562386691570282, 0.07132922857999802, -0.03496885299682617, -0.36948898434638977, -0.2737474739551544, -0.1336817741394043, -0.32861092686653137, -0.3432627022266388, 0.19629806280136108, -0.09094539284706116, 0.3309887647628784, 0.007027408108115196, 0.12193039059638977, 0.004929495044052601, -0.136820450425148, -0.08967731893062592, 0.5962141156196594, 0.20179423689842224, 0.10435795783996582, 0.1359160989522934, -0.08456607162952423, -0.2823645770549774, 0.3272708058357239, 0.1492861956357956, 0.637036919593811, -0.032863859087228775, -0.15405528247356415, -0.056194376200437546, 0.15897798538208008, 0.13351544737815857, -0.45648977160453796, 0.08674885332584381, -0.12129032611846924, 0.3060758411884308, -0.3691341280937195, -0.0652158111333847, -0.2730305790901184, 0.22727014124393463, 0.25259479880332947, 0.1201702281832695, -0.3754139542579651, 0.16279169917106628, -0.10784503072500229, 0.1752258986234665, 0.020925000309944153, -0.2673686146736145, -0.20034578442573547, -0.24745573103427887, -0.2632332742214203, 0.07955721765756607, 0.06578817963600159, 0.012856678105890751, -0.1496168076992035, -0.1036021038889885, -0.27904054522514343, 0.2156241536140442, 0.2718072533607483, -0.022399866953492165, 0.25238439440727234, -0.04588676244020462, -0.010379228740930557, 0.04281684011220932, 0.06142721697688103, 0.4101088047027588, 0.5562979578971863, -0.02170582115650177, -0.6266164779663086, -0.05086769536137581, 0.056051600724458694, 0.07538284361362457, 0.3416001796722412, -0.2250458300113678, -0.0010808272054418921, 0.25161832571029663, -0.013312466442584991, -0.07119427621364594, 0.4304778277873993, 0.22177432477474213, -0.16221623122692108, -0.501306414604187, -0.7254968881607056, 0.19476181268692017, 0.02928134799003601, -0.0819612443447113, 0.3846813142299652, -0.008730713278055191, -0.4788636863231659, 0.23722940683364868, -0.10701802372932434, 0.9966678619384766, 0.19523172080516815, 0.09466902166604996, 0.293412983417511, -0.3080475926399231, 0.2921261787414551, -0.20877894759178162, 0.07802266627550125, -0.1851160079240799, -0.043530408293008804, -0.2048891931772232, -0.1267678290605545, 0.276189386844635, -0.11228496581315994, -0.3511959910392761, 0.33052873611450195, -0.3107740581035614, 0.21300183236598969, 0.26176273822784424, 0.3083791434764862, -0.5707207322120667, -0.2149680256843567, -0.3299861550331116, 0.022823259234428406, -0.24223610758781433, 0.22416952252388, -0.04683138057589531, -0.16326779127120972, 0.1981521099805832, -0.2673216164112091, -0.3233049511909485, 0.017947901040315628, -0.46789973974227905, -0.013951065018773079, -0.3990938663482666, -0.3702668249607086, 0.35624101758003235, 0.40062206983566284, 0.061632491648197174, 0.04649129509925842, -0.23730751872062683, 0.09846120327711105, -0.007197887636721134, 0.18468914926052094, 0.2170574963092804, -0.06413046270608902, 0.29548221826553345, 0.06998509913682938, -0.06357043981552124, 0.18464729189872742, -0.28233182430267334, -0.1665865182876587, -0.006239036098122597, -0.1703844666481018, 0.19364000856876373, -0.18833579123020172, -0.18694758415222168, -0.3215475082397461, -0.13505631685256958, -0.08952973783016205, 0.07989222556352615, -0.08243633061647415, -0.028402579948306084, 0.17659296095371246, -0.11957406252622604, -0.1898989975452423, -0.21208971738815308, 0.38948026299476624, -0.1033366248011589, 0.26769644021987915, 0.4218553602695465, -0.004792647901922464, -0.0913330689072609, -0.1607123166322708, 0.24875931441783905, -0.059364307671785355, -0.2879112958908081, -0.058178771287202835, -0.14852896332740784, 0.12457787245512009, -0.05603273957967758, 0.1912635862827301, 0.2498515099287033, -0.143152117729187, -0.1989724487066269, -0.5332925915718079, -0.24734379351139069, -0.04583728313446045, 0.16446097195148468, 0.24069339036941528, -0.10213251411914825, 0.053451843559741974, 0.03859899193048477, -0.3022890090942383, -0.20692843198776245, 0.06865863502025604, -0.07652174681425095, -0.04981933906674385, -0.029495403170585632, 0.3428829312324524, 0.4114541709423065, -0.126153826713562, 0.011074915528297424, 0.07956607639789581, -0.02424027770757675, -0.05274444445967674, -0.025712694972753525, 0.20721977949142456, 0.09613868594169617, -0.09743638336658478, -0.05605547875165939, -0.4067098796367645, -0.08442399650812149, -0.043415989726781845, 0.05892421305179596, -0.007855445146560669, -0.16946932673454285, 0.1477716714143753, 0.16352525353431702, 0.3355444371700287, -0.40462079644203186, 0.22511810064315796, -0.4388323724269867, 0.17514625191688538, 0.06615994870662689, 0.12576226890087128, 0.004737833980470896, -0.028268584981560707, 0.023932190611958504, 0.011266408488154411, 0.33921369910240173, 0.19786402583122253, 0.24489139020442963, -0.4220341742038727, 0.0937911868095398, 0.0007047740509733558, 0.3157903254032135, 0.4360060393810272, -0.31393468379974365, -0.06778908520936966, 0.1305147111415863, 0.1659676730632782, -0.17218497395515442, 0.0850878655910492, 0.019272537901997566, -0.07232166826725006, -0.023933328688144684, 0.23429805040359497, -0.010533927008509636, -0.09235312789678574, -0.35121047496795654, 0.1030644103884697, 0.43620073795318604, 0.2195509970188141, 0.10786054283380508, 0.3562319874763489, -0.09634317457675934, 0.10726054757833481, -0.10428188741207123, 0.15744207799434662, 0.12614504992961884, 0.02633962407708168, -0.29182669520378113, 0.0915236845612526, 0.07165466994047165, -0.09334757924079895, -0.05829714611172676, -0.5852044820785522, 0.032785747200250626, 0.40075746178627014, -0.14218418300151825, 0.0789686068892479, 0.27359893918037415, 0.38979366421699524, -0.3853033781051636, -0.04432637244462967, -0.3138194978237152, -0.3281130790710449, -0.0007674414664506912, 0.26059749722480774, -0.11081062257289886, -0.187574103474617, 0.0702337697148323, -0.21168041229248047, 0.05641985684633255, 0.057841088622808456, -0.25248122215270996, 0.0885448306798935, -0.033150091767311096, -0.5446572303771973, -0.1316632479429245, 0.2515081763267517, 0.2410065233707428, -0.4297248125076294, -0.04105211794376373, 0.29980558156967163, -0.051803745329380035, 0.1709398478269577, 0.16057367622852325, 0.48065879940986633, 0.2976827025413513, -0.03747951239347458, 0.1335156410932541, -0.03548315539956093, 0.04988248273730278, 0.043947748839855194, 0.04918163642287254, 0.08912862837314606, 0.19281084835529327, 0.29507747292518616, 0.1464642584323883, -0.14429020881652832, 0.15222227573394775, -0.09117769449949265, 0.08429229259490967, -0.4881495237350464, 0.3297728896141052, -0.1628800481557846, 0.03710964694619179, -0.2197924107313156, -0.2133105993270874, -0.10950331389904022, 0.035030268132686615, 0.4889463186264038, 0.07465147972106934, 0.09251778572797775, 0.07534117996692657, 0.005863485857844353, -0.0019572777673602104, 0.2779942452907562, 0.4232470393180847, 0.043239861726760864, -0.2326323688030243, -0.15024103224277496, -0.6847050786018372, 0.08380061388015747, -0.038199104368686676, -0.10716242343187332, 0.28418776392936707, 0.0338023342192173, -0.0358227863907814, 0.24766835570335388, -0.12777863442897797, 0.32614320516586304, -0.2290099710226059, 0.2403310239315033, -0.185777947306633, -0.5727884769439697, 0.04073715955018997, -0.17493489384651184, -0.20275674760341644, -0.45630860328674316, 0.27279096841812134, -0.2935863137245178, 0.02657928876578808, -0.01004604808986187, 0.021319154649972916, 0.2098410576581955, 0.20456591248512268, 0.5075958371162415, 0.10374002158641815, 0.3434556722640991, -0.057945139706134796, -0.3387696444988251, 0.11081196367740631, -0.052334804087877274, -0.21221067011356354, 0.028286220505833626, -0.1680828332901001, 0.5850576758384705, -0.13105487823486328, 0.10790257155895233, -0.5024099349975586, 0.4316817820072174, 0.222895547747612, -0.1745653599500656, -0.49107950925827026, 0.14365877211093903, -0.24820759892463684, 0.14823408424854279, -0.07059255987405777, 0.048302628099918365, -0.01611693762242794, 0.1445303112268448, -0.2441432625055313, -0.44624075293540955, 0.5733363628387451, -0.16505391895771027, -0.07749658823013306, 0.06213345378637314, 0.22394758462905884, 0.06541374325752258, 0.17321816086769104, -0.45056086778640747, 0.17121589183807373, 0.3813615143299103, -0.21769064664840698, -0.06242785602807999, -0.06394962221384048, -0.040464550256729126, 0.3741625249385834, 0.08523819595575333, 0.0944986417889595, -0.09475211054086685, -0.1604733169078827, 0.19038350880146027, -0.11424858123064041 ]
https://github.com/huggingface/datasets/issues/2746
Cannot load `few-nerd` dataset
Hi @Mehrad0711, I'm afraid there is no "canonical" Hugging Face dataset named "few-nerd". There are 2 kinds of datasets hosted at the Hugging Face Hub: - canonical datasets (their identifier contains no slash "/"): we, the Hugging Face team, supervise their implementation and we make sure they work correctly by means of our test suite - community datasets (their identifier contains a slash "/", where before the slash it is the username or the organization name): those datasets are uploaded to the Hub by the community, and we, the Hugging Face team, do not supervise them; it is the responsibility of the user/organization implementing them properly if they want them to be used by other users. In this specific case, there is no "canonical" dataset named "few-nerd". On the other hand, there are two "community" datasets named "few-nerd": - ["nbroad/few-nerd"](https://huggingface.co/datasets/nbroad/few-nerd) - ["dfki-nlp/few-nerd"](https://huggingface.co/datasets/dfki-nlp/few-nerd) If they were properly implemented, you should be able to load them this way: ```python # "nbroad/few-nerd" community dataset ds = load_dataset("nbroad/few-nerd", "supervised") # "dfki-nlp/few-nerd" community dataset ds = load_dataset("dfki-nlp/few-nerd", "supervised") ``` However, they are not correctly implemented and both of them give errors: - "nbroad/few-nerd": ``` TypeError: expected str, bytes or os.PathLike object, not dict ``` - "dfki-nlp/few-nerd": ``` ConnectionError: Couldn't reach https://cloud.tsinghua.edu.cn/f/09265750ae6340429827/?dl=1 ``` You could try to contact their users/organizations to inform them about their bugs and ask them if they are planning to fix them. Alternatively you could try to implement your own script for this dataset.
## Describe the bug Cannot load `few-nerd` dataset. ## Steps to reproduce the bug ```python from datasets import load_dataset load_dataset('few-nerd', 'supervised') ``` ## Actual results Executing above code will give the following error: ``` Using the latest cached version of the module from /Users/Mehrad/.cache/huggingface/modules/datasets_modules/datasets/few-nerd/62464ace912a40a0f33a11a8310f9041c9dc3590ff2b3c77c14d83ca53cfec53 (last modified on Wed Jun 2 11:34:25 2021) since it couldn't be found locally at /Users/Mehrad/Documents/GitHub/genienlp/few-nerd/few-nerd.py, or remotely (FileNotFoundError). Downloading and preparing dataset few_nerd/supervised (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /Users/Mehrad/.cache/huggingface/datasets/few_nerd/supervised/0.0.0/62464ace912a40a0f33a11a8310f9041c9dc3590ff2b3c77c14d83ca53cfec53... Traceback (most recent call last): File "/Users/Mehrad/opt/anaconda3/lib/python3.7/site-packages/datasets/builder.py", line 693, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/Users/Mehrad/opt/anaconda3/lib/python3.7/site-packages/datasets/builder.py", line 1107, in _prepare_split disable=bool(logging.get_verbosity() == logging.NOTSET), File "/Users/Mehrad/opt/anaconda3/lib/python3.7/site-packages/tqdm/std.py", line 1133, in __iter__ for obj in iterable: File "/Users/Mehrad/.cache/huggingface/modules/datasets_modules/datasets/few-nerd/62464ace912a40a0f33a11a8310f9041c9dc3590ff2b3c77c14d83ca53cfec53/few-nerd.py", line 196, in _generate_examples with open(filepath, encoding="utf-8") as f: FileNotFoundError: [Errno 2] No such file or directory: '/Users/Mehrad/.cache/huggingface/datasets/downloads/supervised/train.json' ``` The bug is probably in identifying and downloading the dataset. If I download the json splits directly from [link](https://github.com/nbroad1881/few-nerd/tree/main/uncompressed) and put them under the downloads directory, they will be processed into arrow format correctly. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Python version: 3.8 - PyArrow version: 1.0.1
242
Cannot load `few-nerd` dataset ## Describe the bug Cannot load `few-nerd` dataset. ## Steps to reproduce the bug ```python from datasets import load_dataset load_dataset('few-nerd', 'supervised') ``` ## Actual results Executing above code will give the following error: ``` Using the latest cached version of the module from /Users/Mehrad/.cache/huggingface/modules/datasets_modules/datasets/few-nerd/62464ace912a40a0f33a11a8310f9041c9dc3590ff2b3c77c14d83ca53cfec53 (last modified on Wed Jun 2 11:34:25 2021) since it couldn't be found locally at /Users/Mehrad/Documents/GitHub/genienlp/few-nerd/few-nerd.py, or remotely (FileNotFoundError). Downloading and preparing dataset few_nerd/supervised (download: Unknown size, generated: Unknown size, post-processed: Unknown size, total: Unknown size) to /Users/Mehrad/.cache/huggingface/datasets/few_nerd/supervised/0.0.0/62464ace912a40a0f33a11a8310f9041c9dc3590ff2b3c77c14d83ca53cfec53... Traceback (most recent call last): File "/Users/Mehrad/opt/anaconda3/lib/python3.7/site-packages/datasets/builder.py", line 693, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/Users/Mehrad/opt/anaconda3/lib/python3.7/site-packages/datasets/builder.py", line 1107, in _prepare_split disable=bool(logging.get_verbosity() == logging.NOTSET), File "/Users/Mehrad/opt/anaconda3/lib/python3.7/site-packages/tqdm/std.py", line 1133, in __iter__ for obj in iterable: File "/Users/Mehrad/.cache/huggingface/modules/datasets_modules/datasets/few-nerd/62464ace912a40a0f33a11a8310f9041c9dc3590ff2b3c77c14d83ca53cfec53/few-nerd.py", line 196, in _generate_examples with open(filepath, encoding="utf-8") as f: FileNotFoundError: [Errno 2] No such file or directory: '/Users/Mehrad/.cache/huggingface/datasets/downloads/supervised/train.json' ``` The bug is probably in identifying and downloading the dataset. If I download the json splits directly from [link](https://github.com/nbroad1881/few-nerd/tree/main/uncompressed) and put them under the downloads directory, they will be processed into arrow format correctly. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Python version: 3.8 - PyArrow version: 1.0.1 Hi @Mehrad0711, I'm afraid there is no "canonical" Hugging Face dataset named "few-nerd". There are 2 kinds of datasets hosted at the Hugging Face Hub: - canonical datasets (their identifier contains no slash "/"): we, the Hugging Face team, supervise their implementation and we make sure they work correctly by means of our test suite - community datasets (their identifier contains a slash "/", where before the slash it is the username or the organization name): those datasets are uploaded to the Hub by the community, and we, the Hugging Face team, do not supervise them; it is the responsibility of the user/organization implementing them properly if they want them to be used by other users. In this specific case, there is no "canonical" dataset named "few-nerd". On the other hand, there are two "community" datasets named "few-nerd": - ["nbroad/few-nerd"](https://huggingface.co/datasets/nbroad/few-nerd) - ["dfki-nlp/few-nerd"](https://huggingface.co/datasets/dfki-nlp/few-nerd) If they were properly implemented, you should be able to load them this way: ```python # "nbroad/few-nerd" community dataset ds = load_dataset("nbroad/few-nerd", "supervised") # "dfki-nlp/few-nerd" community dataset ds = load_dataset("dfki-nlp/few-nerd", "supervised") ``` However, they are not correctly implemented and both of them give errors: - "nbroad/few-nerd": ``` TypeError: expected str, bytes or os.PathLike object, not dict ``` - "dfki-nlp/few-nerd": ``` ConnectionError: Couldn't reach https://cloud.tsinghua.edu.cn/f/09265750ae6340429827/?dl=1 ``` You could try to contact their users/organizations to inform them about their bugs and ask them if they are planning to fix them. Alternatively you could try to implement your own script for this dataset.
[ -0.3042272925376892, -0.09856263548135757, 0.007841447368264198, 0.5131354331970215, 0.3285459578037262, -0.05764246731996536, 0.5201519727706909, 0.25530096888542175, 0.1991577297449112, 0.168108731508255, -0.4604775607585907, -0.09104837477207184, -0.28777584433555603, -0.2970750033855438, 0.43478021025657654, 0.03200215846300125, -0.025188090279698372, -0.03495549038052559, 0.1119614988565445, 0.00843876414000988, -0.2257290780544281, 0.23624105751514435, -0.24531403183937073, 0.07277621328830719, -0.4190009534358978, -0.054956577718257904, 0.08892101794481277, 0.48927396535873413, -0.0719757080078125, -0.6296030879020691, 0.460472971200943, 0.014389453455805779, 0.2181515246629715, 0.42350175976753235, -0.00010919939813902602, 0.14418481290340424, 0.41899269819259644, -0.019265886396169662, -0.28842464089393616, -0.360110342502594, 0.09408415853977203, -0.514433741569519, 0.12333302199840546, -0.26080232858657837, -0.406347393989563, 0.02361922338604927, 0.12173689901828766, -0.27093377709388733, 0.4901702105998993, 0.4886862635612488, 0.2884906828403473, 0.13091371953487396, -0.016008304432034492, -0.31645700335502625, 0.4296737313270569, 0.06754808127880096, -0.16129513084888458, 0.2777443826198578, 0.3432973325252533, -0.004307388328015804, -0.03633606806397438, 0.030621083453297615, -0.04575828090310097, -0.12311671674251556, 0.39013200998306274, 0.0024617817252874374, -0.12567293643951416, -0.2126002311706543, 0.1296325922012329, 0.43814700841903687, 0.2064514011144638, -0.2134827822446823, -0.23281855881214142, -0.192979633808136, 0.07387800514698029, -0.1819782555103302, 0.16543450951576233, 0.03191954270005226, -0.1912628412246704, 0.07417863607406616, -0.026206670328974724, -0.06306826323270798, -0.17226172983646393, 0.14239777624607086, -0.11044047772884369, 0.15471553802490234, -0.15064968168735504, 0.03145625442266464, -0.14833365380764008, -0.09897679835557938, -0.22030265629291534, 0.15393278002738953, -0.033130042254924774, 0.2842569351196289, -0.35298019647598267, 0.1692640334367752, 0.09687545895576477, 0.30167362093925476, 0.24641528725624084, 0.34680140018463135, -0.08599338680505753, -0.011231020092964172, -0.03136663883924484, 0.10548645257949829, 0.053956542164087296, 0.15501347184181213, 0.31060999631881714, 0.17096859216690063, 0.2803746461868286, 0.4544360935688019, -0.09400609880685806, 0.024950459599494934, -0.2067873775959015, -0.1653551608324051, 0.044397443532943726, 0.035935766994953156, 0.3279304504394531, -0.23393988609313965, -0.4098479747772217, 0.1534152626991272, 0.220921590924263, 0.08878638595342636, 0.2583984434604645, 0.48303237557411194, -0.23615141212940216, -0.001351372804492712, -0.006440808530896902, 0.025530628859996796, -0.15113556385040283, -0.17565660178661346, -0.339207261800766, 0.1940043568611145, -0.08081433922052383, 0.012704097665846348, 0.3254750669002533, -0.12321902066469193, 0.3092913329601288, -0.15285229682922363, -0.0015989067032933235, -0.12322036176919937, -0.11052703857421875, -0.18697461485862732, -0.09991474449634552, 0.2051268219947815, -0.07003467530012131, 0.08784256875514984, 0.11722779273986816, -0.31992921233177185, -0.2411324679851532, -0.11245356500148773, -0.12702779471874237, -0.3474445641040802, -0.09379012882709503, 0.22819793224334717, -0.2979830503463745, 0.13214261829853058, -0.0671055018901825, 0.04367849603295326, 0.07646824419498444, -0.25375378131866455, -0.12407733500003815, -0.14020906388759613, -0.4273741841316223, -0.37671762704849243, 0.6006535291671753, 0.6969177722930908, -0.20075280964374542, -0.15088962018489838, -0.5498253107070923, -0.3447907567024231, 0.10598716139793396, 0.3750483989715576, -0.274000346660614, 0.1505952924489975, -0.28501105308532715, 0.31596556305885315, 0.3138704001903534, -0.4321829080581665, -0.43400654196739197, 0.2631574869155884, -0.22920948266983032, 0.4060315489768982, -0.08423306047916412, 0.08582834899425507, 0.12121891230344772, -0.10925255715847015, 0.399824857711792, 0.47770196199417114, 0.02038097381591797, -0.1821039915084839, -0.2581338882446289, -0.14233502745628357, 0.1062365397810936, 0.17859046161174774, 0.26338765025138855, 0.07876640558242798, 0.15481914579868317, 0.06599201261997223, 0.23266692459583282, 0.20802567899227142, 0.062400951981544495, 0.15952105820178986, 0.2724163830280304, 0.20573976635932922, 0.03339933604001999, -0.48205435276031494, -0.6707291007041931, 0.4395003914833069, -0.1612321138381958, -0.04765580967068672, -0.16906549036502838, -0.15814214944839478, -0.41998055577278137, 0.02988358773291111, -0.09874045103788376, -0.2591835856437683, 0.1797642856836319, 0.2151271402835846, 0.2117392122745514, 0.0778769701719284, -0.25018155574798584, 0.5149943232536316, 0.05651399865746498, 0.062997005879879, -0.38229241967201233, 0.13057106733322144, -0.12412822246551514, -0.11037499457597733, -0.11856506019830704, 0.350554883480072, 0.23129680752754211, -0.18512502312660217, 0.06761994957923889, 0.5000380873680115, 0.004435929469764233, -0.1740291565656662, -0.09065039455890656, -0.430968701839447, 0.039616622030735016, -0.10435609519481659, 0.1348259299993515, 0.2153395712375641, 0.10756121575832367, -0.05112476274371147, 0.10821906477212906, 0.3727988600730896, 0.03549817577004433, 0.22966155409812927, 0.028825726360082626, -0.0013953036395832896, 0.18316052854061127, 0.0764852985739708, 0.15747486054897308, -0.23018166422843933, 0.48928263783454895, 0.2627512216567993, 0.17263107001781464, 0.20779092609882355, -0.20140159130096436, -0.011708348989486694, 0.08584628254175186, -0.04872902110219002, 0.054436489939689636, 0.2945667505264282, -0.15104879438877106, -0.04727300629019737, 0.05687877535820007, 0.3697469234466553, 0.3691948354244232, 0.17099355161190033, -0.02617441676557064, 0.09651453793048859, -0.031437911093235016, -0.06916855275630951, 0.12804166972637177, 0.05166032537817955, 0.08107016235589981, 0.21165484189987183, 0.06955720484256744, 0.19703134894371033, -0.26701003313064575, -0.2561355233192444, -0.051768720149993896, 0.32508546113967896, -0.39322251081466675, 0.17412205040454865, -0.2071424275636673, -0.12513889372348785, -0.04952637478709221, 0.005379738286137581, -0.46053487062454224, -0.07695714384317398, 0.050338033586740494, 0.11067934334278107, 0.2267702966928482, 0.18335041403770447, -0.12672008574008942, 0.18520569801330566, -0.3189343810081482, 0.05702022463083267, -0.2792578339576721, 0.0003339800168760121, -0.32923513650894165, 0.07639429718255997, 0.39805108308792114, -0.03899122774600983, 0.3228530287742615, -0.2194557785987854, -0.25693827867507935, -0.19214153289794922, -0.04632623866200447, -0.18390671908855438, 0.08179261535406113, 0.6579146981239319, 0.18810993432998657, 0.24808037281036377, -0.05740755796432495, -0.12801359593868256, 0.3673245906829834, -0.3022806942462921, -0.18456952273845673, 0.02973305806517601, -0.10683857649564743, 0.08714979141950607, -0.12820428609848022, -0.34325534105300903, -0.6057449579238892, -0.4530198276042938, 0.30964064598083496, 0.14875026047229767, 0.18592925369739532, 0.36760053038597107, -0.1163640022277832, 0.09203857183456421, -0.048556532710790634, 0.20060890913009644, -0.14842990040779114, -0.27463892102241516, 0.2829447090625763, -0.42005860805511475, -0.37371528148651123, -0.11029693484306335, 0.058763280510902405, 0.03547881916165352, 0.0825505405664444, -0.45354869961738586, 0.36046266555786133, -0.13241173326969147, 0.07977122068405151, -0.13276228308677673, -0.06034015864133835, 0.06864629685878754, -0.12212464213371277, -0.05329625681042671, 0.04173834249377251, -0.11695756763219833, 0.013384941034018993, -0.2853541374206543, 0.056164003908634186, -0.0636482834815979, 0.307223916053772, -0.0019500200869515538, 0.49644941091537476, 0.058082953095436096, -0.10582057386636734, 0.2891731262207031, -0.08743126690387726, 0.46046462655067444, -0.18769465386867523, -0.4373454749584198, 0.2259438931941986, 0.07920976728200912, 0.10210058093070984, 0.17295250296592712, 0.03608856722712517, -0.04746083542704582, -0.19868458807468414, -0.13814492523670197, -0.17180922627449036, -0.19610951840877533, 0.14201314747333527, -0.1423952430486679, -0.014282392337918282, 0.08184009790420532, 0.07586248219013214, -0.14042021334171295, -0.2760425806045532, -0.13736049830913544, 0.2724563479423523, 0.11311361938714981, 0.15117435157299042, -0.3932623863220215, 0.10200276970863342, -0.37293243408203125, 0.3129013776779175, 0.04801357537508011, 0.2415395826101303, -0.16636590659618378, -0.011400536634027958, 0.14935646951198578, -0.06880304217338562, 0.5504927635192871, -0.1515316218137741, 0.25418031215667725, 0.3367014229297638, 0.12862300872802734, -0.7504610419273376, -0.06628065556287766, 0.023367855697870255, 0.329496294260025, 0.24641801416873932, 0.45439794659614563, -0.25052663683891296, -0.13690558075904846, 0.23378442227840424, 0.29592251777648926, -0.1432936191558838, -0.22812025249004364, -0.21883875131607056, -0.18058274686336517, -0.22029070556163788, -0.18291987478733063, -0.018292738124728203, 0.2696564197540283, -0.06754419952630997, -0.029205894097685814, -0.1527409553527832, 0.13802284002304077, 0.17423827946186066, -0.10388719290494919, 0.37986791133880615, -0.06276675313711166, 0.3176010549068451, 0.16412007808685303, 0.15559598803520203, 0.08964525908231735, 0.3713902235031128, -0.13479021191596985, -0.18647396564483643, -0.04336219280958176, 0.3078991174697876, -0.018206637352705002, 0.29447197914123535, -0.18343867361545563, 0.05593928322196007, 0.23392032086849213, 0.08784133195877075, -0.008850719779729843, 0.1489187479019165, 0.1992049515247345, -0.16555769741535187, -0.17039351165294647, -0.35705408453941345, 0.4624353051185608, 0.1836012750864029, 0.16305337846279144, 0.08637699484825134, 0.14695659279823303, -0.14348065853118896, 0.06092808395624161, -0.06722075492143631, 0.8010347485542297, -0.192280113697052, 0.21928901970386505, 0.08599106967449188, -0.017742598429322243, 0.7876712679862976, -0.2983110547065735, 0.03267500922083855, -0.47884705662727356, -0.19750453531742096, 0.07007720321416855, -0.054548271000385284, 0.03878840431571007, 0.1448957771062851, -0.09474677592515945, 0.19317975640296936, -0.2254081666469574, -0.1533670723438263, -0.004276840481907129, 0.11447847634553909, 0.0007140947855077684, -0.19735154509544373, -0.15701107680797577, 0.1364554762840271, -0.1990412026643753, 0.2564728856086731, -0.05314956605434418, 0.1679503619670868, -0.17424629628658295, -0.1574966013431549, -0.35622963309288025, 0.09926333278417587, -0.2688148021697998, 0.4265548288822174, 0.3584544360637665, -0.42343729734420776, 0.07140995562076569, 0.2643074095249176, 0.08982069045305252, 0.15718799829483032, -0.12246523052453995, 0.23398713767528534, -0.03810414671897888, -0.13986758887767792, 0.15868008136749268, 0.08001192659139633, 0.4458075165748596, -0.04808210954070091, -0.25896987318992615, -0.09488055109977722, -0.18924184143543243, -0.16251163184642792, 0.04113886132836342, 0.12506860494613647, -0.00688896095380187, -0.14189842343330383, -0.22206930816173553, -0.1977452039718628, 0.24855229258537292, -0.27181529998779297, 0.16379983723163605, 0.3282659351825714, -0.29380807280540466, -0.052412986755371094, -0.03415832668542862, -0.19177685678005219, 0.0028739667031913996, 0.4908806085586548, 0.011454770341515541, -0.06321350485086441, 0.27236801385879517, 0.28202083706855774, -0.18264782428741455, -0.19065845012664795, -0.040247511118650436, 0.3351083993911743, -0.43867892026901245, 0.06292542815208435, 0.0017521699192002416, 0.10898474603891373, -0.08319608867168427, 0.08663847297430038, 0.18548940122127533, -0.33161672949790955, -0.04971463605761528, -0.5123910903930664, -0.4241814911365509, 0.06170633062720299, -0.18542742729187012, 0.09276650846004486, 0.18523989617824554, -0.09049070626497269, -0.07506173104047775, 0.14243635535240173, -0.3271411061286926, 0.1679147332906723, -0.4357073903083801, 0.09707028418779373, 0.08670105785131454, -0.09133114665746689, 0.026114149019122124, 0.005610825959593058, 0.21337801218032837, 0.15860749781131744, -0.17165981233119965, -0.234390527009964, -0.20156772434711456, 0.1274099051952362, -0.1638602912425995, 0.002335165860131383, 0.015064639039337635, 0.039161764085292816, -0.15149880945682526, -0.20102174580097198, 0.10950637608766556, 0.15156787633895874, 0.02977703884243965, -0.08934370428323746, -0.1283663660287857, 0.0794052854180336, -0.2303028255701065, 0.28079259395599365, -0.029716281220316887, 0.08507535606622696, 0.07383815199136734, 0.1805201917886734, -0.08656139671802521, -0.07372762262821198, -0.29524528980255127, -0.03132786974310875, -0.08088615536689758, 0.12756869196891785, 0.27368980646133423, -0.2907218635082245, -0.17488323152065277, 0.27191054821014404, 0.2462233006954193, 0.39508071541786194, -0.12022364884614944, 0.12723717093467712, 0.27537739276885986, 0.1972283124923706, -0.3205423057079315, -0.15851184725761414, 0.24820572137832642, -0.16053922474384308, 0.0703759714961052, 0.25886523723602295, -0.005353412590920925, -0.16161996126174927, 0.041675083339214325, 0.10956157743930817, 0.3554964065551758, -0.12862728536128998, 0.11503545939922333, -0.10558222979307175, -0.0038981360848993063, -0.15380968153476715, 0.06623411178588867, 0.041853807866573334, 0.23283147811889648, 0.7362143397331238, -0.12579600512981415, 0.10409814119338989, -0.40563294291496277, 0.16324374079704285, -0.04871200770139694, -0.6907133460044861, 0.16365404427051544, 0.3751072287559509, -0.20041842758655548, 0.037664879113435745, -0.2002519816160202, 0.43593722581863403, -0.4588370621204376, -0.030442317947745323, -0.18290798366069794, 0.12195245921611786, -0.20527304708957672, -0.014439433813095093, 0.14588211476802826, -0.12422728538513184, -0.27284833788871765, -0.048120878636837006, -0.028761129826307297, -0.19886334240436554, 0.37890344858169556, 0.10701118409633636, -0.26303038001060486, -0.20155763626098633, 0.13570666313171387, 0.16990938782691956, 0.2180936336517334, -0.35746726393699646, 0.24788732826709747, -0.07798764109611511, -0.08207844197750092, 0.12990336120128632, 0.17357085645198822, 0.501397967338562, 0.2809211015701294, 0.07079800218343735, 0.21742334961891174, 0.02298189513385296, -0.1285044401884079, -0.2220831960439682, 0.25000518560409546, 0.015539111569523811, 0.3395388424396515, 0.20718427002429962, 0.16226394474506378, -0.14378519356250763, -0.08357363194227219, 0.16110602021217346, 0.23019792139530182, -0.22403712570667267, 0.5022637844085693, -0.3898710310459137, -0.2849798798561096, -0.21817782521247864, 0.1364946812391281, -0.5349040031433105, 0.064926378428936, 0.08667958527803421, 0.19922935962677002, 0.29093021154403687, -0.2516126334667206, 0.11084896326065063, -0.04592990130186081, 0.356253057718277, 0.16580215096473694, 0.06480489671230316, -0.24559436738491058, -0.24771849811077118, -0.7577751278877258, 0.24651379883289337, -0.07879956811666489, -0.08164077252149582, 0.18725398182868958, 0.19780614972114563, -0.2379467934370041, -0.05198252573609352, -0.0008517153328284621, 0.025633636862039566, 0.3602202236652374, 0.11298618465662003, -0.38244494795799255, -0.13873256742954254, 0.07827480882406235, -0.049295760691165924, 0.05449134111404419, -0.3725678026676178, 0.12635840475559235, -0.5079923272132874, 0.035100724548101425, 0.0988071858882904, -0.16418571770191193, 0.19691357016563416, 0.07053296267986298, 0.4982849657535553, -0.03769218921661377, 0.30457359552383423, 0.017374875023961067, -0.15676170587539673, -0.673280656337738, -0.06736414134502411, -0.1394057720899582, 0.3545385003089905, 0.13442440330982208, 0.3404393792152405, -0.2917603552341461, -0.05949205160140991, -0.2812419831752777, 0.2554519772529602, 0.14459973573684692, 0.07352349162101746, -0.007847738452255726, 0.012682280503213406, -0.12046175450086594, 0.16743753850460052, 0.2154097855091095, 0.08348153531551361, -0.01274996530264616, -0.04370500519871712, -0.3620731830596924, -0.480934202671051, 0.7215984463691711, -0.04050906002521515, -0.16851374506950378, -0.21625608205795288, 0.4100281894207001, 0.16133922338485718, -0.2120659351348877, -0.39837685227394104, 0.16473519802093506, 0.5024664402008057, 0.13838189840316772, -0.2245301604270935, 0.09063230454921722, -0.23532025516033173, -0.008367511443793774, -0.09517902135848999, 0.039505135267972946, -0.02666207030415535, -0.11842911690473557, 0.33328941464424133, -0.15597999095916748 ]
https://github.com/huggingface/datasets/issues/2743
Dataset JSON is incorrect
As discussed, the metadata JSON files must be regenerated because the keys were nor properly generated and they will not be read by the builder: > Indeed there is some problem/bug while reading the datasets_info.json file: there is a mismatch with the config.name keys in the file... In the meanwhile, in order to be able to use the datasets_info.json file content, you can create the builder without passing the name : ``` In [25]: builder = datasets.load_dataset_builder("journalists_questions") In [26]: builder.info.splits Out[26]: {'train': SplitInfo(name='train', num_bytes=342296, num_examples=10077, dataset_name='journalists_questions')} ``` After regenerating the metadata JSON file for this dataset, I get the right key: ``` {"plain_text": {"description": "The journalists_questions corpus ( ```
## Describe the bug The JSON file generated for https://github.com/huggingface/datasets/blob/573f3d35081cee239d1b962878206e9abe6cde91/datasets/journalists_questions/journalists_questions.py is https://github.com/huggingface/datasets/blob/573f3d35081cee239d1b962878206e9abe6cde91/datasets/journalists_questions/dataset_infos.json. The only config should be `plain_text`, but the first key in the JSON is `journalists_questions` (the dataset id) instead. ```json { "journalists_questions": { "description": "The journalists_questions corpus (version 1.0) is a collection of 10K human-written Arabic\ntweets manually labeled for question identification over Arabic tweets posted by journalists.\n", ... ``` ## Steps to reproduce the bug Look at the files. ## Expected results The first key should be `plain_text`: ```json { "plain_text": { "description": "The journalists_questions corpus (version 1.0) is a collection of 10K human-written Arabic\ntweets manually labeled for question identification over Arabic tweets posted by journalists.\n", ... ``` ## Actual results ```json { "journalists_questions": { "description": "The journalists_questions corpus (version 1.0) is a collection of 10K human-written Arabic\ntweets manually labeled for question identification over Arabic tweets posted by journalists.\n", ... ```
109
Dataset JSON is incorrect ## Describe the bug The JSON file generated for https://github.com/huggingface/datasets/blob/573f3d35081cee239d1b962878206e9abe6cde91/datasets/journalists_questions/journalists_questions.py is https://github.com/huggingface/datasets/blob/573f3d35081cee239d1b962878206e9abe6cde91/datasets/journalists_questions/dataset_infos.json. The only config should be `plain_text`, but the first key in the JSON is `journalists_questions` (the dataset id) instead. ```json { "journalists_questions": { "description": "The journalists_questions corpus (version 1.0) is a collection of 10K human-written Arabic\ntweets manually labeled for question identification over Arabic tweets posted by journalists.\n", ... ``` ## Steps to reproduce the bug Look at the files. ## Expected results The first key should be `plain_text`: ```json { "plain_text": { "description": "The journalists_questions corpus (version 1.0) is a collection of 10K human-written Arabic\ntweets manually labeled for question identification over Arabic tweets posted by journalists.\n", ... ``` ## Actual results ```json { "journalists_questions": { "description": "The journalists_questions corpus (version 1.0) is a collection of 10K human-written Arabic\ntweets manually labeled for question identification over Arabic tweets posted by journalists.\n", ... ``` As discussed, the metadata JSON files must be regenerated because the keys were nor properly generated and they will not be read by the builder: > Indeed there is some problem/bug while reading the datasets_info.json file: there is a mismatch with the config.name keys in the file... In the meanwhile, in order to be able to use the datasets_info.json file content, you can create the builder without passing the name : ``` In [25]: builder = datasets.load_dataset_builder("journalists_questions") In [26]: builder.info.splits Out[26]: {'train': SplitInfo(name='train', num_bytes=342296, num_examples=10077, dataset_name='journalists_questions')} ``` After regenerating the metadata JSON file for this dataset, I get the right key: ``` {"plain_text": {"description": "The journalists_questions corpus ( ```
[ 0.14578770101070404, 0.040142688900232315, -0.05298922583460808, 0.4768226742744446, 0.10634199529886246, 0.22297251224517822, 0.15502484142780304, 0.34000906348228455, -0.2390943467617035, 0.008226651698350906, 0.03579394519329071, 0.43213143944740295, 0.09956907480955124, 0.13827429711818695, -0.0019155864138156176, -0.19086432456970215, 0.0582643486559391, -0.040095362812280655, 0.05146854370832443, 0.013578458689153194, -0.22605378925800323, 0.4534674286842346, -0.008611641824245453, -0.003544496139511466, -0.241265207529068, -0.08201415091753006, -0.06301315128803253, 0.19751296937465668, -0.1947796642780304, -0.298623263835907, 0.22381862998008728, -0.0007780445157550275, -0.2992437183856964, 0.4079231917858124, -0.00010577696230029687, 0.11152440309524536, 0.3177172541618347, -0.05469168350100517, -0.2763530910015106, -0.31266674399375916, -0.11799778789281845, -0.19957950711250305, -0.1801234781742096, -0.3108088970184326, -0.22448864579200745, -0.4072844684123993, -0.03591926768422127, -0.19768135249614716, 0.4339141547679901, 0.22547143697738647, 0.2889288067817688, 0.09397701919078827, 0.3655746877193451, 0.013863490894436836, 0.12348321080207825, 0.3481936454772949, -0.09908599406480789, 0.14987055957317352, -0.0261068195104599, 0.24287058413028717, 0.061862751841545105, 0.5340321660041809, 0.012138458900153637, -0.1359424889087677, 0.3161492645740509, -0.08813374489545822, -0.13431096076965332, -0.23458069562911987, 0.36659616231918335, 0.2039397805929184, 0.5051336884498596, -0.3382623791694641, -0.2950499951839447, -0.358228474855423, -0.05403626337647438, 0.0441969595849514, 0.31745797395706177, 0.1573789119720459, -0.08500329405069351, 0.2246190309524536, -0.1565224677324295, -0.12831920385360718, -0.05858559161424637, 0.1186567172408104, 0.08487044274806976, 0.17726640403270721, -0.16701702773571014, 0.11654108762741089, -0.18105721473693848, -0.2725032866001129, -0.0729672759771347, -0.3031313717365265, -0.24345183372497559, 0.10572917759418488, -0.14988450706005096, -0.17405128479003906, 0.18403643369674683, -0.12262324243783951, 0.35612043738365173, 0.01993471384048462, -0.08341371268033981, 0.03025994636118412, -0.1282668560743332, 0.0784091204404831, 0.2941550612449646, 0.06646707653999329, 0.28652918338775635, 0.10059108585119247, 0.043285343796014786, 0.305436372756958, -0.09574740380048752, -0.015302488580346107, 0.23611237108707428, -0.202971413731575, -0.015888068825006485, -0.04552474990487099, 0.39079737663269043, -0.1099100336432457, -0.13034050166606903, 0.31612229347229004, -0.31222015619277954, -0.13779136538505554, -0.08873790502548218, 0.3365526795387268, -0.10416402667760849, -0.17375178635120392, 0.05795542150735855, 0.15008778870105743, -0.0759790688753128, -0.10403695702552795, -0.23834972083568573, -0.06558182090520859, -0.010632956400513649, 0.07400035858154297, 0.04879767447710037, -0.31565579771995544, 0.5672345161437988, 0.1093740314245224, -0.05475141853094101, -0.40715083479881287, 0.08904676139354706, 0.07033752650022507, 0.018115133047103882, 0.20341362059116364, -0.1953362375497818, 0.212166428565979, 0.0029757567681372166, -0.2547074556350708, -0.13805721700191498, 0.02248801290988922, -0.3546997010707855, -0.23756295442581177, -0.18672287464141846, 0.2677465081214905, -0.0865124836564064, 0.10172491520643234, -0.1889076828956604, 0.2865264415740967, 0.2674294114112854, -0.026644064113497734, 0.011200351640582085, 0.13251343369483948, 0.030642172321677208, -0.2472923994064331, 0.11749861389398575, 0.3622022569179535, -0.20752255618572235, -0.14082488417625427, 0.1055186316370964, 0.13869014382362366, -0.021892016753554344, 0.016603544354438782, -0.13780270516872406, 0.26209595799446106, -0.20631064474582672, 0.15659457445144653, -0.017367955297231674, -0.3505876660346985, -0.2432555854320526, 0.23920656740665436, 0.004756132140755653, 0.2748711109161377, 0.19122111797332764, -0.051798880100250244, -0.09623559564352036, 0.11350132524967194, 0.3098188042640686, 0.07919996976852417, 0.16094590723514557, 0.2221570760011673, -0.2047821283340454, -0.40194541215896606, -0.08861871808767319, 0.09511838108301163, -0.14133158326148987, 0.051356200128793716, 0.14748536050319672, -0.04337187111377716, 0.36241063475608826, -0.03456111624836922, 0.062100861221551895, 0.37073737382888794, -0.04925147071480751, -0.08979107439517975, 0.27455446124076843, -0.024421224370598793, -0.5704760551452637, 0.11887702345848083, 0.012451289221644402, 0.24953146278858185, -0.2598681151866913, -0.20709991455078125, -0.33311930298805237, -0.11661631613969803, -0.3170589208602905, -0.27109259366989136, 0.2438494861125946, 0.19824941456317902, 0.05826893076300621, -0.002913144649937749, -0.11190395057201385, -0.06828649342060089, 0.13458453118801117, 0.14858119189739227, -0.8418688178062439, 0.049839481711387634, -0.2129894644021988, 0.08041813969612122, 0.23501454293727875, 0.1320938766002655, 0.17853404581546783, -0.15460611879825592, -0.09376245737075806, 0.33804142475128174, 0.04302333667874336, 0.21343261003494263, -0.027698621153831482, 0.2834199368953705, 0.11906883865594864, -0.12721659243106842, 0.002694310387596488, 0.3282434046268463, 0.006199122406542301, -0.07700418680906296, -0.1966429352760315, 0.5660511255264282, 0.15562602877616882, 0.14878016710281372, -0.11135537922382355, -0.08272378146648407, 0.3291032612323761, 0.01968972384929657, -0.1956838220357895, -0.3322226405143738, 0.10079251974821091, -0.028754400089383125, 0.045618608593940735, 0.04676583409309387, -0.32511335611343384, 0.1408965289592743, 0.6347140669822693, 0.026139678433537483, 0.00738515192642808, 0.073249951004982, -0.20734713971614838, -0.08693239837884903, 0.0815153568983078, 0.203451007604599, 0.3029954433441162, 0.20477335155010223, -0.24010981619358063, 0.16507048904895782, 0.15053370594978333, -0.27913373708724976, 0.2635055482387543, -0.03941929340362549, 0.16400235891342163, 0.2611386179924011, 0.28494730591773987, -0.06388776749372482, -0.3041079640388489, 0.11524199694395065, -0.03727465867996216, 0.1826796680688858, -0.3774653673171997, 0.22385476529598236, -0.14758627116680145, -0.12298456579446793, -0.2147878259420395, -0.24319149553775787, -0.32697057723999023, -0.2343285232782364, 0.11493787169456482, -0.033460259437561035, -0.20416921377182007, 0.13906511664390564, 0.281051903963089, 0.029861900955438614, -0.027999477460980415, -0.019329886883497238, -0.41723164916038513, -0.20086370408535004, -0.11766700446605682, 0.0509742796421051, 0.15501762926578522, -0.10960649698972702, 0.21302634477615356, -0.3792504668235779, -0.14588190615177155, -0.31543660163879395, -0.49992725253105164, 0.2528180480003357, -0.15504594147205353, 0.5203312039375305, 0.20812563598155975, 0.2512640357017517, -0.017575770616531372, -0.2799645960330963, 0.3669068515300751, 0.2514347732067108, -0.34876757860183716, 0.1275801807641983, -0.13831691443920135, -0.06407313793897629, -0.06297625601291656, -0.4735099971294403, -0.10072466731071472, -0.23388594388961792, 0.3656717836856842, 0.14244405925273895, 0.26322194933891296, 0.6181697249412537, 0.02861947752535343, -0.1326427459716797, -0.3063797354698181, 0.4378253221511841, -0.3224541246891022, -0.6928201913833618, 0.1458532065153122, -0.27173811197280884, -0.30992189049720764, -0.08696249127388, 0.11605671793222427, 0.20112207531929016, -0.3413429260253906, -0.5350948572158813, -0.22004558145999908, -0.006096871569752693, 0.17686407268047333, 0.0011521315900608897, 0.21913479268550873, 0.11078828573226929, 0.101479172706604, -0.08683718740940094, -0.2585105001926422, -0.30384448170661926, 0.030726760625839233, -0.04614865779876709, 0.4130178689956665, -0.003114331979304552, 0.23602329194545746, -0.06754278391599655, 0.280798077583313, 0.41915300488471985, -0.10383188724517822, 0.1003282442688942, -0.14495939016342163, 0.19231268763542175, -0.20883910357952118, -0.3092525601387024, 0.12375205755233765, 0.00461610360071063, 0.06784743815660477, 0.3873576819896698, 0.14943420886993408, 0.09625520557165146, -0.16945113241672516, -0.09930934756994247, -0.6170861721038818, -0.33134883642196655, -0.010550434701144695, 0.02821001596748829, 0.015698444098234177, 0.22968384623527527, 0.18604840338230133, -0.19812600314617157, -0.08757416158914566, 0.16777466237545013, 0.3574496805667877, 0.011513940989971161, 0.05065961554646492, -0.35716262459754944, -0.20853830873966217, -0.34963446855545044, 0.2500418722629547, -0.12601493299007416, 0.07388404756784439, -0.005829412490129471, 0.14906488358974457, 0.058605797588825226, -0.15957577526569366, 0.6097592711448669, -0.15285377204418182, 0.15682077407836914, 0.010171142406761646, 0.20569849014282227, -0.027919163927435875, -0.04608514532446861, 0.038849253207445145, 0.4127780497074127, 0.16798242926597595, 0.736384391784668, -0.4434213638305664, -0.14991754293441772, 0.10743511468172073, 0.03993532806634903, -0.22905327379703522, -0.32282689213752747, -0.2562299072742462, -0.4385029673576355, -0.3784904479980469, -0.24621228873729706, -0.150431826710701, 0.3239046335220337, 0.12870749831199646, -0.13801893591880798, 0.20281116664409637, 0.14790531992912292, -0.02790198288857937, 0.3254075348377228, 0.24951112270355225, 0.15077656507492065, 0.20056429505348206, 0.08839453756809235, 0.3398105204105377, 0.45309779047966003, 0.6804468631744385, 0.16024214029312134, -0.30588671565055847, -0.1854252815246582, -0.17784497141838074, -0.0007924310048110783, 0.1976078450679779, -0.11648114770650864, 0.18746009469032288, 0.2400573343038559, 0.1372126191854477, -0.10135535895824432, -0.274701327085495, 0.39780670404434204, 0.08946521580219269, -0.3039073944091797, -0.33796313405036926, 0.4962552487850189, -0.1628100872039795, -0.09845336526632309, -0.05440003424882889, 0.18101200461387634, -0.38938841223716736, 0.4970276653766632, -0.01967812329530716, 0.9072645902633667, 0.17171934247016907, -0.03631173446774483, 0.16720740497112274, -0.23767900466918945, 0.6262362599372864, -0.2435286045074463, 0.027706408873200417, -0.43593156337738037, -0.015937142074108124, 0.09638883173465729, 0.0022769528441131115, 0.12779600918293, 0.2750011384487152, -0.1994231790304184, 0.10439982265233994, -0.15375342965126038, 0.07442586123943329, -0.21344918012619019, 0.15277408063411713, -0.1339103877544403, -0.10015062242746353, -0.6485546231269836, 0.21626703441143036, -0.13407760858535767, 0.2843233644962311, -0.033745672553777695, -0.1659708023071289, -0.1597033143043518, -0.35662928223609924, -0.21647770702838898, 0.027552956715226173, -0.2082718014717102, -0.11446045339107513, 0.4093918800354004, -0.12630996108055115, 0.08956759423017502, -0.002325509674847126, 0.4025224447250366, 0.2011944055557251, -0.23761005699634552, 0.1958993524312973, 0.026019087061285973, -0.06143106147646904, 0.10793556272983551, 0.0391656756401062, 0.30966803431510925, -0.07691026479005814, -0.18658684194087982, -0.04488199204206467, -0.14776486158370972, -0.14056678116321564, -0.16477441787719727, -0.1890876442193985, -0.3345380127429962, -0.23399008810520172, -0.13777051866054535, -0.09669135510921478, 0.021870270371437073, -0.32507702708244324, 0.20275497436523438, 0.005144977942109108, -0.2541187107563019, 0.09213562309741974, -0.04585623741149902, -0.19873689115047455, -0.07214309275150299, 0.35320407152175903, 0.20084945857524872, 0.021639002487063408, 0.39135703444480896, 0.30411145091056824, -0.11934736371040344, -0.21218957006931305, 0.10431558638811111, 0.3070048391819, -0.3281635642051697, 0.010546679608523846, 0.09830891340970993, 0.02140776254236698, -0.07976321130990982, 0.39659178256988525, 0.2284853458404541, 0.09512536972761154, 0.11382555216550827, -0.5196158289909363, -0.18728606402873993, 0.2986900806427002, 0.11297818273305893, -0.017112357541918755, 0.14568215608596802, 0.07901238650083542, -0.13569393754005432, 0.20354925096035004, -0.40751349925994873, -0.066666379570961, -0.1816496104001999, 0.1701081097126007, 0.16037413477897644, 0.07998007535934448, 0.13206888735294342, -0.06013685092329979, 0.186991348862648, -0.08302519470453262, -0.2394559532403946, -0.27347490191459656, -0.14846967160701752, 0.10395127534866333, 0.07082526385784149, -0.03485913947224617, -0.0737835094332695, -0.20200014114379883, -0.12099599838256836, -0.05047093704342842, 0.19538238644599915, 0.0575227327644825, 0.17822715640068054, 0.22182728350162506, -0.14424727857112885, 0.041896600276231766, 0.03159349039196968, -0.13388578593730927, 0.10663390159606934, 0.24107223749160767, -0.0715847834944725, 0.10545185208320618, -0.42673078179359436, 0.050070855766534805, -0.07839874178171158, 0.20253171026706696, -0.17330613732337952, 0.42814043164253235, 0.39769619703292847, -0.3567112982273102, 0.05612419918179512, 0.3893377184867859, 0.33766528964042664, 0.3005213141441345, -0.25155067443847656, 0.15344087779521942, -0.023508599027991295, 0.2705778479576111, -0.3498670160770416, -0.2758154273033142, 0.20641490817070007, -0.11859969049692154, 0.042419109493494034, 0.023266853764653206, 0.09840153902769089, 0.10951552540063858, -0.21967919170856476, 0.022361131384968758, 0.48109108209609985, -0.12231408804655075, 0.04502451792359352, 0.35522493720054626, -0.09367197006940842, 0.04413954168558121, 0.44392046332359314, 0.2615417242050171, 0.12195026129484177, 0.335299551486969, -0.03036358766257763, 0.23820091784000397, 0.24251532554626465, 0.14730985462665558, -0.003946820739656687, -0.1024480015039444, 0.4072241485118866, 0.30744919180870056, 0.06947214156389236, 0.08729042112827301, 0.10845667123794556, 0.2912018895149231, -0.015010669827461243, -0.06786816567182541, -0.205928772687912, 0.151376411318779, -0.03578321635723114, -0.2045346051454544, -0.4539467394351959, -0.2694565951824188, -0.07611158490180969, -0.15810434520244598, -0.3115895390510559, -0.20528671145439148, 0.08533331751823425, -0.12237808853387833, -0.2242930829524994, -0.37592577934265137, -0.028493626043200493, -0.03377583622932434, 0.30455464124679565, -0.2974301874637604, 0.4509522318840027, 0.23339501023292542, -0.15008988976478577, 0.1736546903848648, 0.497361958026886, 0.4691581726074219, 0.1394219994544983, 0.16191385686397552, 0.0425574891269207, -0.16118836402893066, -0.17747394740581512, -0.08312609046697617, 0.3151032328605652, 0.20662309229373932, -0.34178322553634644, 0.23895347118377686, 0.19192929565906525, -0.22525610029697418, -0.06308221071958542, 0.36518847942352295, 0.21243880689144135, -0.010209881700575352, -0.13329772651195526, -0.5007305145263672, -0.19733446836471558, -0.09784547239542007, -0.15437377989292145, -0.4194018542766571, -0.262198269367218, 0.37038007378578186, 0.16303984820842743, 0.2637905180454254, -0.11002116650342941, 0.16054870188236237, -0.082290880382061, 0.45843109488487244, 0.29438772797584534, -0.13196605443954468, -0.11455534398555756, -0.10089702159166336, -0.3746997117996216, 0.15587583184242249, 0.14840656518936157, -0.030901379883289337, 0.06633619219064713, 0.17822475731372833, 0.19880108535289764, 0.004579569213092327, -0.0795111134648323, 0.0059815081767737865, 0.0064127021469175816, 0.2736482620239258, -0.29594534635543823, -0.11680210381746292, 0.017642950639128685, 0.03513306751847267, 0.09993811696767807, -0.024299273267388344, 0.27868813276290894, -0.07032269984483719, 0.023839838802814484, -0.2231590449810028, 0.1699507087469101, 0.15135236084461212, -0.14645622670650482, 0.1923557072877884, 0.09872499108314514, 0.16064786911010742, -0.2993290424346924, -0.38213711977005005, -0.1772749274969101, -0.2946634292602539, -0.24356088042259216, 0.4900180995464325, 0.012585100717842579, 0.5237452387809753, 0.14544367790222168, -0.08204476535320282, -0.19658486545085907, 0.018769247457385063, -0.0781196802854538, -0.31655123829841614, -0.4513058066368103, 0.21731799840927124, -0.110530786216259, 0.025076963007450104, 0.028221018612384796, 0.39565226435661316, -0.007539085112512112, 0.20201130211353302, -0.2546001076698303, -0.451233446598053, 0.5660299062728882, -0.30797240138053894, -0.18307603895664215, 0.19657616317272186, 0.14488214254379272, -0.17551128566265106, -0.3089016079902649, -0.4869860112667084, 0.20629416406154633, 0.3145412802696228, -0.1656985729932785, -0.0797584056854248, 0.0009093783446587622, -0.21061299741268158, 0.05021213740110397, 0.003750719828531146, 0.03100649267435074, 0.2694348692893982, -0.2553672790527344, 0.05712467432022095, -0.09748553484678268 ]
https://github.com/huggingface/datasets/issues/2742
Improve detection of streamable file types
maybe we should rather attempt to download a `Range` from the server and see if it works?
**Is your feature request related to a problem? Please describe.** ```python from datasets import load_dataset_builder from datasets.utils.streaming_download_manager import StreamingDownloadManager builder = load_dataset_builder("journalists_questions", name="plain_text") builder._split_generators(StreamingDownloadManager(base_path=builder.base_path)) ``` raises ``` NotImplementedError: Extraction protocol for file at https://drive.google.com/uc?export=download&id=1CBrh-9OrSpKmPQBxTK_ji6mq6WTN_U9U is not implemented yet ``` But the file at https://drive.google.com/uc?export=download&id=1CBrh-9OrSpKmPQBxTK_ji6mq6WTN_U9U is a text file and it can be streamed: ```bash curl --header "Range: bytes=0-100" -L https://drive.google.com/uc\?export\=download\&id\=1CBrh-9OrSpKmPQBxTK_ji6mq6WTN_U9U 506938088174940160 yes 1 302221719412830209 yes 1 289761704907268096 yes 1 513820885032378369 yes % ``` Yet, it's wrongly categorized as a file type that cannot be streamed because the test is currently based on 1. the presence of a file extension at the end of the URL (here: no extension), and 2. the inclusion of this extension in a list of supported formats. **Describe the solution you'd like** In the case of an URL (instead of a local path), ask for the MIME type, and decide on that value? Note that it would not work in that case, because the value of `content_type` is `text/html; charset=UTF-8`. **Describe alternatives you've considered** Add a variable in the dataset script to set the data format by hand.
17
Improve detection of streamable file types **Is your feature request related to a problem? Please describe.** ```python from datasets import load_dataset_builder from datasets.utils.streaming_download_manager import StreamingDownloadManager builder = load_dataset_builder("journalists_questions", name="plain_text") builder._split_generators(StreamingDownloadManager(base_path=builder.base_path)) ``` raises ``` NotImplementedError: Extraction protocol for file at https://drive.google.com/uc?export=download&id=1CBrh-9OrSpKmPQBxTK_ji6mq6WTN_U9U is not implemented yet ``` But the file at https://drive.google.com/uc?export=download&id=1CBrh-9OrSpKmPQBxTK_ji6mq6WTN_U9U is a text file and it can be streamed: ```bash curl --header "Range: bytes=0-100" -L https://drive.google.com/uc\?export\=download\&id\=1CBrh-9OrSpKmPQBxTK_ji6mq6WTN_U9U 506938088174940160 yes 1 302221719412830209 yes 1 289761704907268096 yes 1 513820885032378369 yes % ``` Yet, it's wrongly categorized as a file type that cannot be streamed because the test is currently based on 1. the presence of a file extension at the end of the URL (here: no extension), and 2. the inclusion of this extension in a list of supported formats. **Describe the solution you'd like** In the case of an URL (instead of a local path), ask for the MIME type, and decide on that value? Note that it would not work in that case, because the value of `content_type` is `text/html; charset=UTF-8`. **Describe alternatives you've considered** Add a variable in the dataset script to set the data format by hand. maybe we should rather attempt to download a `Range` from the server and see if it works?
[ -0.4683196246623993, -0.0467548593878746, -0.09795743972063065, 0.13755293190479279, 0.16639603674411774, -0.22397536039352417, 0.1926615983247757, 0.46749624609947205, 0.06285356730222702, 0.23624685406684875, -0.006769182626157999, -0.04707866534590721, -0.4149930775165558, 0.25549328327178955, 0.06666172295808792, -0.15031488239765167, 0.000977064948529005, 0.05380537360906601, 0.2009107619524002, 0.05400237813591957, -0.2041478306055069, -0.06040966138243675, -0.03227967023849487, -0.38672399520874023, 0.1372656673192978, 0.12128540873527527, 0.12373669445514679, -0.10052142292261124, -0.5439123511314392, -0.4741577208042145, -0.099794402718544, 0.36559391021728516, 0.3324325382709503, 0.4450812339782715, -0.00010906666284427047, -0.1867186278104782, 0.32613226771354675, -0.2225366234779358, -0.3541293144226074, -0.3582729399204254, -0.3125937879085541, -0.08202479779720306, 0.11807926744222641, -0.05864829942584038, -0.08329766988754272, -0.052916668355464935, 0.005199915263801813, -0.4320715367794037, 0.25913527607917786, 0.48350590467453003, 0.14804306626319885, 0.22587254643440247, -0.06290056556463242, 0.3467935025691986, 0.3124319612979889, 0.39245426654815674, -0.16395562887191772, 0.0028927994426339865, 0.25941145420074463, 0.19117587804794312, -0.05812561511993408, 0.13834607601165771, -0.16981856524944305, 0.10331042110919952, -0.05663295462727547, 0.027962584048509598, -0.22060605883598328, -0.507323145866394, -0.01617458462715149, 0.5063698887825012, 0.41997137665748596, 0.06519260257482529, -0.47605812549591064, -0.2841736674308777, 0.15233370661735535, 0.0003061935130972415, 0.25110962986946106, 0.11820763349533081, -0.36537232995033264, 0.1618276834487915, -0.3606189489364624, -0.08200756460428238, -0.22269438207149506, 0.12486375868320465, -0.12033115327358246, 0.24596363306045532, -0.04340242221951485, -0.06800609081983566, 0.06552993506193161, 0.14976511895656586, 0.40567493438720703, -0.24798628687858582, 0.30873796343803406, 0.034831006079912186, -0.03932898864150047, -0.2037236988544464, -0.16065289080142975, 0.023213736712932587, 0.1399274319410324, 0.25667712092399597, 0.3086075782775879, 0.210272878408432, -0.14919818937778473, 0.21350163221359253, 0.03055429644882679, -0.038374584168195724, -0.0746152475476265, -0.06970098614692688, 0.21746738255023956, 0.5407653450965881, -0.003260174300521612, -0.06872545927762985, -0.07206423580646515, -0.06311178207397461, 0.18538911640644073, 0.12237729877233505, 0.40666961669921875, -0.09158816933631897, -0.34267547726631165, -0.15057061612606049, -0.33638039231300354, -0.2536008358001709, 0.16487640142440796, 0.25616899132728577, -0.1719851791858673, 0.4266878068447113, -0.03194675222039223, 0.3137052059173584, 0.03810487315058708, -0.2230694591999054, 0.11807043105363846, 0.06570366024971008, 0.20289701223373413, -0.011482643894851208, 0.3926183581352234, -0.28178778290748596, -0.2386939376592636, -0.08951587229967117, -0.020391441881656647, 0.07041748613119125, 0.14707647264003754, -0.07293391972780228, 0.44205769896507263, -0.025323567911982536, -0.13596408069133759, -0.006347459275275469, 0.028475049883127213, -0.193666011095047, -0.2635312080383301, 0.022302599623799324, -0.20170536637306213, -0.03643989935517311, 0.0798289105296135, 0.2122865468263626, -0.1962711215019226, -0.11372115463018417, -0.2630351185798645, 0.3361707329750061, -0.32214856147766113, 0.012491070665419102, 0.033613648265600204, -0.06832864135503769, -0.041917987167835236, -0.08470158278942108, 0.2602456510066986, 0.5462824106216431, -0.09806106239557266, -0.04334982857108116, -0.24052123725414276, -0.17073509097099304, 0.5798386931419373, -0.043797362595796585, -0.008325230330228806, -0.0659559965133667, -0.18388451635837555, 0.13957393169403076, 0.48091334104537964, -0.14807705581188202, -0.12791942059993744, 0.4295482933521271, -0.021710041910409927, 0.4528401792049408, 0.6081660985946655, -0.16760563850402832, 0.20236636698246002, -0.12795713543891907, -0.017040742561221123, 0.517978310585022, -0.16118326783180237, -0.01072577852755785, -0.3075854182243347, -0.3225666284561157, 0.23326019942760468, 0.10892883688211441, 0.20636515319347382, 0.11645054817199707, 0.3067205846309662, -0.19119250774383545, 0.17451928555965424, -0.18075157701969147, 0.0947830006480217, -0.28805530071258545, 0.5135550498962402, -0.14544938504695892, -0.15163500607013702, -0.29697272181510925, -0.22352540493011475, -0.034531280398368835, -0.005361027084290981, 0.10678721964359283, -0.5588927268981934, -0.34482574462890625, -0.12066557258367538, -0.10462228953838348, -0.12494142353534698, 0.059387777000665665, 0.1944294422864914, 0.2214222550392151, -0.23660777509212494, 0.0891408771276474, -0.20996640622615814, -0.00002021847467403859, -0.11563573032617569, 0.17926453053951263, 0.1091582253575325, 0.25315043330192566, 0.1588611751794815, 0.06511607021093369, 0.40460824966430664, -0.08791143447160721, 0.22084563970565796, -0.0490315817296505, -0.22884058952331543, 0.1611863523721695, 0.14990274608135223, 0.4502602219581604, 0.13429565727710724, 0.1967621147632599, 0.3344069719314575, -0.21080514788627625, -0.19911246001720428, 0.5702888369560242, 0.18384532630443573, 0.13858063519001007, -0.13385693728923798, 0.2535957098007202, 0.07267389446496964, 0.009919284842908382, 0.22948795557022095, -0.07211241871118546, 0.16888150572776794, 0.009914540685713291, -0.12885890901088715, -0.28197774291038513, 0.10586116462945938, -0.012520493008196354, -0.1538640558719635, 0.031394220888614655, -0.13937832415103912, 0.05545523762702942, 0.34484317898750305, -0.1956208050251007, 0.07267637550830841, 0.3713412284851074, -0.02367449179291725, -0.23755982518196106, 0.05987914279103279, 0.4811076819896698, 0.28806307911872864, 0.059503596276044846, 0.3818355202674866, -0.12750455737113953, 0.14427928626537323, -0.23730719089508057, 0.29234054684638977, 0.00024011220375541598, -0.27344459295272827, 0.11322610825300217, 0.08854278922080994, -0.06587900221347809, -0.37680783867836, 0.017805203795433044, -0.0038292536046355963, -0.036552172154188156, -0.41864219307899475, 0.02906772680580616, -0.5251240730285645, -0.03602892532944679, -0.24801957607269287, -0.13895411789417267, -0.058940157294273376, -0.12794357538223267, 0.291963666677475, 0.28402021527290344, -0.1698158234357834, -0.01766679808497429, -0.27729302644729614, 0.43880197405815125, 0.041490502655506134, -0.2065507471561432, -0.09672624617815018, 0.12882183492183685, 0.004322796128690243, 0.186098113656044, 0.6305446028709412, 0.10738272219896317, 0.4484094977378845, -0.3081643283367157, 0.09628217667341232, -0.6249535083770752, -0.21721144020557404, 0.03355617821216583, 0.05870598927140236, 0.4059969484806061, 0.08108151704072952, 0.23089902102947235, 0.12879592180252075, -0.39058300852775574, -0.06687495857477188, -0.15409962832927704, -0.0005739276530221105, 0.2530423402786255, -0.018212715163826942, 0.08284056931734085, -0.10116232931613922, -0.6140939593315125, -0.19345174729824066, -0.3065444827079773, 0.167713463306427, 0.08520893007516861, 0.14086468517780304, 0.06463770568370819, -0.06525866687297821, -0.11104201525449753, 0.0727032721042633, 0.29450833797454834, -0.012677405960857868, -0.3376014232635498, 0.41866564750671387, -0.1411741077899933, -0.2259034663438797, 0.08139584958553314, -0.07941760122776031, -0.1551603376865387, 0.7107822895050049, -0.05938868224620819, -0.12762443721294403, -0.017989663407206535, -0.04295329004526138, 0.1628357321023941, -0.2291652262210846, 0.15788446366786957, 0.04005114734172821, -0.09616268426179886, -0.1579543948173523, 0.40254902839660645, -0.18996761739253998, 0.15455947816371918, 0.3249194025993347, 0.184712216258049, 0.06636371463537216, 0.10596931725740433, 0.22196459770202637, -0.03383298218250275, -0.06873484700918198, 0.6299160122871399, 0.10366389155387878, -0.05454123020172119, 0.10487660020589828, 0.015189504250884056, 0.31040534377098083, -0.20584239065647125, -0.194858118891716, 0.34423428773880005, 0.18038922548294067, -0.15391549468040466, -0.30769866704940796, 0.23310743272304535, -0.4765741229057312, -0.13738423585891724, 0.363008588552475, 0.1020594984292984, 0.3724050223827362, 0.002302583074197173, 0.07610330730676651, 0.11071702092885971, -0.2261272668838501, 0.17465737462043762, 0.5635553002357483, 0.4419568181037903, -0.0829792320728302, -0.12352064251899719, 0.09879756718873978, -0.3718414902687073, 0.36341002583503723, 0.39450517296791077, 0.1895541399717331, -0.10862982273101807, -0.17347891628742218, 0.11403204500675201, 0.04208137467503548, -0.0726904422044754, -0.6443424224853516, -0.20662464201450348, -0.11552837491035461, 0.20947973430156708, 0.19310212135314941, -0.030515171587467194, -0.3284289836883545, -0.12265606224536896, -0.024966787546873093, 0.13001568615436554, -0.28441131114959717, -0.0322236642241478, -0.03063472919166088, 0.23181086778640747, 0.1423323005437851, -0.050939083099365234, -0.11797960102558136, -0.11147437244653702, -0.22149784862995148, -0.08739765733480453, 0.10174691677093506, -0.06700538843870163, -0.5361406207084656, -0.2599616050720215, -0.024661721661686897, 0.22754184901714325, 0.4380740225315094, 0.23458221554756165, 0.17425169050693512, -0.10074415802955627, 0.036285098642110825, -0.012256461195647717, 0.1975366473197937, 0.4364742338657379, 0.36142364144325256, 0.05743427947163582, -0.46785253286361694, 0.0148498909547925, -0.07642397284507751, -0.03805956989526749, 0.23953716456890106, -0.20618733763694763, 0.34834662079811096, 0.4832247793674469, 0.3337836265563965, -0.493982195854187, 0.13970747590065002, 0.40163668990135193, -0.24342229962348938, -0.4077295660972595, -0.7770465016365051, 0.35615837574005127, -0.05971789360046387, -0.04686189442873001, 0.25633150339126587, -0.017340239137411118, -0.22182317078113556, 0.08598648756742477, 0.16448542475700378, 0.945691704750061, 0.009185372851788998, -0.2788422703742981, 0.16336244344711304, -0.41438809037208557, 0.034519925713539124, -0.39653104543685913, -0.020967556163668633, 0.08108213543891907, -0.12247642129659653, -0.3990934491157532, -0.06085997447371483, 0.45788562297821045, 0.06640675663948059, -0.534229576587677, 0.052847545593976974, -0.013135919347405434, 0.27746638655662537, 0.16872060298919678, 0.4378340244293213, -0.6074438095092773, -0.0628858357667923, -0.3596732020378113, 0.14766420423984528, -0.14313945174217224, 0.12276812642812729, 0.09364273399114609, -0.1085798591375351, 0.08979116380214691, -0.08388356864452362, -0.20900475978851318, -0.19652092456817627, -0.4427069425582886, -0.032545194029808044, -0.28609344363212585, -0.5322915315628052, 0.26567062735557556, 0.08087261021137238, 0.0613880529999733, -0.14520415663719177, -0.233086496591568, 0.22941556572914124, -0.03097829967737198, 0.23845912516117096, 0.04208415001630783, -0.3452257812023163, 0.46732470393180847, -0.10696227848529816, -0.023437589406967163, 0.020480049774050713, 0.09646700322628021, -0.22999225556850433, 0.26415711641311646, -0.21565651893615723, 0.266936331987381, -0.14312012493610382, -0.13734841346740723, -0.40701133012771606, -0.2420138716697693, -0.18716874718666077, 0.12473411113023758, -0.07110264897346497, -0.07582913339138031, -0.09599411487579346, 0.2370155304670334, -0.13773037493228912, -0.23424768447875977, 0.15253184735774994, -0.01623864285647869, -0.010840059258043766, 0.10606428980827332, -0.10141150653362274, -0.37786322832107544, -0.30851563811302185, 0.02133072353899479, -0.029563171789050102, -0.04535188525915146, -0.087554931640625, 0.15617254376411438, 0.02672731503844261, -0.12572510540485382, 0.24063000082969666, -0.17477530241012573, 0.1003924161195755, -0.2013084441423416, -0.378013014793396, 0.05621254816651344, 0.04384689778089523, -0.30113109946250916, 0.14589300751686096, -0.19549863040447235, -0.0969647541642189, 0.229051411151886, -0.13365711271762848, -0.3066674768924713, -0.04596303775906563, 0.02958696521818638, -0.029414663091301918, -0.14914195239543915, 0.258175253868103, 0.28739017248153687, -0.13125313818454742, 0.11695189774036407, 0.03741798922419548, -0.16227567195892334, -0.14008405804634094, -0.13392029702663422, 0.19990582764148712, 0.1338277906179428, -0.12159024178981781, -0.015066536143422127, 0.04496458172798157, -0.11106139421463013, -0.1542440503835678, -0.048955515027046204, 0.02208559587597847, -0.05851493030786514, -0.049231503158807755, -0.01651170291006565, -0.2595726549625397, -0.30697721242904663, -0.010421806946396828, -0.28389596939086914, 0.42727676033973694, 0.14955119788646698, 0.011561327613890171, -0.02130558155477047, 0.018067285418510437, -0.04279393330216408, 0.20234693586826324, 0.28986048698425293, 0.20967096090316772, 0.36974993348121643, 0.09678769111633301, -0.0352620966732502, 0.05523598566651344, 0.18893824517726898, 0.46063488721847534, -0.09551981091499329, -0.023852482438087463, 0.2567823827266693, 0.20216605067253113, -0.09940227121114731, 0.20950204133987427, -0.10953499376773834, -0.3000880479812622, 0.18355965614318848, 0.18349653482437134, 0.2072509527206421, -0.11954197287559509, -0.010423567146062851, 0.02244206890463829, 0.037319812923669815, -0.028917860239744186, 0.4075635075569153, 0.3415364921092987, 0.17754292488098145, 0.277835488319397, -0.1512514054775238, -0.3581094741821289, -0.03713519498705864, -0.22717724740505219, -0.2344065010547638, 0.40207529067993164, -0.060252074152231216, 0.20891056954860687, 0.047534503042697906, -0.10201758146286011, -0.0308525487780571, 0.014524701051414013, -0.26614922285079956, 0.5484510064125061, 0.4545842409133911, 0.5620855093002319, -0.2000775933265686, 0.00561838923022151, -0.24800777435302734, -0.024438058957457542, 0.13755886256694794, 0.004595280159264803, -0.12061648070812225, -0.2380753457546234, -0.44027945399284363, 0.01001353096216917, 0.12847629189491272, 0.07747676968574524, -0.18249468505382538, 0.44700533151626587, 0.11953284591436386, -0.12718728184700012, -0.09818343073129654, -0.21568498015403748, 0.5371822118759155, -0.4945753514766693, -0.008991912938654423, 0.2984815835952759, 0.1518823355436325, 0.4640016257762909, 0.06312912702560425, 0.2702629268169403, 0.22010108828544617, -0.11324653774499893, -0.06478012353181839, -0.08530846983194351, -0.10176651179790497, 0.040163539350032806, 0.14599645137786865, 0.153742715716362, 0.14279131591320038, 0.3194054067134857, 0.21118251979351044, -0.07777626812458038, 0.2214154452085495, -0.09335966408252716, -0.20381835103034973, -0.38827598094940186, 0.10063716769218445, 0.11475817859172821, 0.2198566347360611, -0.39254921674728394, -0.44921645522117615, -0.2825177013874054, 0.127581387758255, 0.040208715945482254, -0.09204978495836258, 0.1196235716342926, 0.0007097531924955547, 0.06610552221536636, 0.24049736559391022, -0.012843706645071507, 0.06006292253732681, 0.06896913051605225, -0.0999469980597496, -0.2770579159259796, -0.7179276347160339, -0.21234817802906036, 0.09530149400234222, -0.05217843875288963, -0.07232964783906937, -0.09597683697938919, -0.0011963214492425323, 0.3992810547351837, -0.09459162503480911, -0.04384405538439751, 0.25930121541023254, 0.26743313670158386, -0.2682596445083618, -0.3017500340938568, 0.2872590720653534, 0.1833755522966385, -0.4226427972316742, -0.30866190791130066, 0.2992701828479767, -0.19953161478042603, 0.07485000789165497, 0.02983015403151512, 0.006179522257298231, -0.02734535187482834, -0.06713929027318954, 0.4175609052181244, 0.2814016044139862, 0.5260300636291504, -0.35789358615875244, -0.07841260731220245, -0.08580256253480911, 0.18324661254882812, -0.049006782472133636, 0.04987913370132446, -0.07774906605482101, 0.6659363508224487, 0.24268953502178192, -0.022900374606251717, -0.2919479310512543, 0.5941691994667053, -0.04655947536230087, -0.17767110466957092, -0.43885114789009094, -0.09210921823978424, -0.11072336882352829, 0.09229020774364471, 0.17541129887104034, -0.013387459330260754, -0.06669173389673233, -0.2000311017036438, -0.13378819823265076, -0.4501069188117981, 0.24989621341228485, -0.3008943498134613, -0.21219098567962646, -0.028234926983714104, 0.14920006692409515, 0.13421793282032013, 0.46603453159332275, -0.599712073802948, 0.046144288033246994, 0.20941103994846344, -0.20472662150859833, 0.3059101998806, 0.16974931955337524, 0.25190845131874084, 0.07302858680486679, -0.13790567219257355, 0.0984828844666481, 0.09265247732400894, 0.008411744609475136, -0.02979080192744732, -0.21048769354820251 ]
https://github.com/huggingface/datasets/issues/2737
SacreBLEU update
Hi @devrimcavusoglu, I tried your code with latest version of `datasets`and `sacrebleu==1.5.1` and it's running fine after changing one small thing: ``` sacrebleu = datasets.load_metric('sacrebleu') predictions = ["It is a guide to action which ensures that the military always obeys the commands of the party"] references = [["It is a guide to action that ensures that the military will forever heed Party commands"]] # double brackets here should do the work results = sacrebleu.compute(predictions=predictions, references=references) print(results) output: {'score': 41.180376356915765, 'counts': [11, 8, 6, 4], 'totals': [18, 17, 16, 15], 'precisions': [61.111111111111114, 47.05882352941177, 37.5, 26.666666666666668], 'bp': 1.0, 'sys_len': 18, 'ref_len': 16} ```
With the latest release of [sacrebleu](https://github.com/mjpost/sacrebleu), `datasets.metrics.sacrebleu` is broken, and getting error. AttributeError: module 'sacrebleu' has no attribute 'DEFAULT_TOKENIZER' this happens since in new version of sacrebleu there is no `DEFAULT_TOKENIZER`, but sacrebleu.py tries to import it anyways. This can be fixed currently with fixing `sacrebleu==1.5.0` ## Steps to reproduce the bug ```python sacrebleu= datasets.load_metric('sacrebleu') predictions = ["It is a guide to action which ensures that the military always obeys the commands of the party"] references = ["It is a guide to action that ensures that the military will forever heed Party commands"] results = sacrebleu.compute(predictions=predictions, references=references) print(results) ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: Windows-10-10.0.19041-SP0 - Python version: Python 3.8.0 - PyArrow version: 5.0.0
101
SacreBLEU update With the latest release of [sacrebleu](https://github.com/mjpost/sacrebleu), `datasets.metrics.sacrebleu` is broken, and getting error. AttributeError: module 'sacrebleu' has no attribute 'DEFAULT_TOKENIZER' this happens since in new version of sacrebleu there is no `DEFAULT_TOKENIZER`, but sacrebleu.py tries to import it anyways. This can be fixed currently with fixing `sacrebleu==1.5.0` ## Steps to reproduce the bug ```python sacrebleu= datasets.load_metric('sacrebleu') predictions = ["It is a guide to action which ensures that the military always obeys the commands of the party"] references = ["It is a guide to action that ensures that the military will forever heed Party commands"] results = sacrebleu.compute(predictions=predictions, references=references) print(results) ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: Windows-10-10.0.19041-SP0 - Python version: Python 3.8.0 - PyArrow version: 5.0.0 Hi @devrimcavusoglu, I tried your code with latest version of `datasets`and `sacrebleu==1.5.1` and it's running fine after changing one small thing: ``` sacrebleu = datasets.load_metric('sacrebleu') predictions = ["It is a guide to action which ensures that the military always obeys the commands of the party"] references = [["It is a guide to action that ensures that the military will forever heed Party commands"]] # double brackets here should do the work results = sacrebleu.compute(predictions=predictions, references=references) print(results) output: {'score': 41.180376356915765, 'counts': [11, 8, 6, 4], 'totals': [18, 17, 16, 15], 'precisions': [61.111111111111114, 47.05882352941177, 37.5, 26.666666666666668], 'bp': 1.0, 'sys_len': 18, 'ref_len': 16} ```
[ -0.38511109352111816, 0.180214986205101, -0.0012567656813189387, -0.06791020184755325, 0.5497627854347229, -0.21898436546325684, 0.06270229071378708, 0.34801074862480164, -0.210194930434227, 0.12432299554347992, 0.008656425401568413, 0.33388417959213257, -0.044022295624017715, -0.02464004047214985, -0.1152011975646019, -0.008981933817267418, 0.10464686900377274, 0.059853751212358475, 0.34362655878067017, 0.007587629836052656, -0.3184526562690735, 0.11741404235363007, -0.18068556487560272, -0.002726361621171236, -0.2734520733356476, 0.09279850870370865, -0.057544004172086716, -0.06643233448266983, -0.4653162360191345, -0.7149307727813721, 0.17311079800128937, 0.07096292078495026, -0.0604935921728611, 0.4433313310146332, -0.00010906603711191565, -0.1288360059261322, 0.26362815499305725, -0.22081279754638672, -0.4332728385925293, -0.45292210578918457, -0.15553797781467438, -0.2812546193599701, 0.010191203095018864, -0.1026843786239624, -0.09187006205320358, -0.37854236364364624, -0.04298431798815727, -0.002167490776628256, 0.24215172231197357, 0.39166778326034546, 0.25630298256874084, 0.2788759768009186, 0.08785838633775711, -0.3278108537197113, -0.04748006537556648, 0.07175374031066895, -0.04166305065155029, 0.2062654346227646, -0.15644784271717072, 0.0919186919927597, 0.06975410133600235, 0.13965249061584473, -0.21968044340610504, 0.1190989688038826, 0.025157419964671135, -0.07757974416017532, -0.11149264127016068, -0.06017636880278587, 0.11229610443115234, -0.04778795689344406, 0.3497332036495209, -0.4587008059024811, -0.3827284574508667, 0.19701005518436432, 0.01735740713775158, -0.4542078673839569, -0.02549832873046398, -0.10063957422971725, 0.01678421162068844, -0.16700074076652527, 0.03441707789897919, 0.00629400322213769, -0.044595979154109955, 0.11557221412658691, -0.15962056815624237, 0.3486793637275696, -0.2516731917858124, 0.0796111524105072, 0.03948487341403961, -0.054256733506917953, -0.49697157740592957, 0.10736840218305588, -0.23830564320087433, 0.023043852299451828, -0.3772971034049988, -0.0650167241692543, -0.08285374194383621, -0.3516818583011627, 0.09699583053588867, 0.3739202618598938, 0.02106836810708046, 0.2644360661506653, 0.13772431015968323, 0.11893423646688461, -0.0622321180999279, 0.5510033369064331, 0.3230525255203247, 0.19678895175457, 0.07076916098594666, 0.26540476083755493, -0.041296545416116714, -0.045392636209726334, 0.004282416310161352, -0.2698686420917511, 0.24632740020751953, 0.10671108961105347, 0.25573021173477173, -0.13536164164543152, -0.3971829414367676, 0.14744329452514648, 0.2378198802471161, -0.04476461559534073, -0.13193386793136597, 0.43079686164855957, -0.23772047460079193, 0.17256827652454376, -0.09585592895746231, 0.2664753794670105, -0.23895572125911713, -0.3424353003501892, -0.241578608751297, 0.0390884205698967, -0.3046322762966156, -0.10791629552841187, 0.18163244426250458, 0.2411850392818451, 0.13052529096603394, -0.04140598699450493, 0.46605509519577026, -0.22269856929779053, 0.2804110646247864, -0.23020538687705994, 0.06032208725810051, -0.018826799467206, -0.1199188232421875, 0.023839425295591354, 0.5161586999893188, -0.6103891134262085, 0.015124925412237644, -0.11231863498687744, -0.2561798691749573, -0.2588275969028473, 0.3433964252471924, 0.28798359632492065, -0.2528563141822815, -0.3133333921432495, -0.4201456606388092, 0.20511634647846222, 0.060307640582323074, 0.05215209722518921, -0.0012080565793439746, -0.04622635245323181, -0.19703303277492523, -0.2614489495754242, 0.37412407994270325, 0.32026413083076477, -0.10777237266302109, -0.10515973716974258, 0.13582831621170044, -0.17130199074745178, 0.08587541431188583, -0.2513415813446045, 0.08049006760120392, 0.28047335147857666, 0.10206003487110138, -0.06132578104734421, 0.2927130460739136, -0.3579612374305725, -0.5469437837600708, -0.08624982088804245, 0.05794553831219673, -0.2599138021469116, 0.006202250253409147, -0.11060526967048645, 0.5220212340354919, 0.01582353003323078, -0.015436333604156971, -0.031289633363485336, 0.1183200553059578, -0.13746033608913422, -0.23333287239074707, -0.45429059863090515, -0.03327799215912819, 0.0685945451259613, 0.5740550756454468, -0.018763400614261627, 0.23645900189876556, 0.3137112557888031, 0.2896055579185486, 0.007505378220230341, 0.03063366562128067, 0.13107649981975555, 0.5953806638717651, -0.178810715675354, 0.2888141870498657, -0.4382771849632263, 0.09409782290458679, 0.1595151275396347, 0.08323193341493607, 0.07360588014125824, 0.0023775543086230755, -0.20658652484416962, -0.5189368724822998, 0.012810884043574333, -0.2269902229309082, 0.024094369262456894, 0.23674114048480988, 0.14326149225234985, -0.07485968619585037, 0.17021211981773376, -0.27732837200164795, -0.06760139763355255, -0.19730857014656067, 0.2919341027736664, 0.11748315393924713, 0.24138648808002472, -0.015709027647972107, -0.3451884388923645, 0.2164435088634491, 0.3111027777194977, 0.2949579954147339, -0.0879628136754036, -0.1517489105463028, 0.4523438513278961, 0.3043164014816284, 0.11054524779319763, -0.006671494338661432, 0.2907356917858124, 0.07792745530605316, -0.2848578989505768, -0.08227439224720001, 0.4827958047389984, 0.012369462288916111, -0.07329925894737244, 0.07585342228412628, 0.3865857720375061, 0.03240695968270302, 0.16095563769340515, 0.056623201817274094, 0.20907330513000488, 0.014533019624650478, -0.04453427344560623, -0.11158879101276398, -0.281225323677063, -0.10297244787216187, -0.29053226113319397, -0.14138366281986237, -0.24485540390014648, 0.08985241502523422, 0.07048528641462326, 0.22967588901519775, 0.19715091586112976, 0.1057659462094307, 0.008490738458931446, -0.1468926966190338, 0.0489097535610199, -0.18741020560264587, 0.25570589303970337, 0.2897590100765228, 0.13843153417110443, 0.044440075755119324, 0.07407792657613754, 0.06201391667127609, 0.01231182087212801, 0.18361522257328033, 0.14696478843688965, -0.340675950050354, 0.26356232166290283, 0.07565931230783463, 0.08846540749073029, -0.19977277517318726, 0.02752148173749447, -0.03636365383863449, 0.3163968324661255, -0.07552455365657806, 0.12377049028873444, -0.09361061453819275, 0.1945950835943222, -0.07556632906198502, -0.22896821796894073, -0.03972022235393524, -0.20197270810604095, -0.00941066537052393, -0.10073401778936386, 0.1501653492450714, 0.41060924530029297, 0.023231808096170425, 0.21867607533931732, 0.02326013334095478, -0.1518404483795166, 0.15621882677078247, -0.13698507845401764, 0.02951720915734768, 0.061360668390989304, -0.09982531517744064, -0.23530569672584534, 0.3304954171180725, -0.17207738757133484, -0.09266900271177292, -0.19073231518268585, -0.3452546298503876, 0.09452696144580841, 0.05519532784819603, 0.30438557267189026, 0.17259633541107178, -0.19307933747768402, -0.050105273723602295, -0.03403951972723007, 0.32877036929130554, -0.237561896443367, 0.06336493790149689, 0.32747042179107666, -0.11115455627441406, -0.1580803245306015, -0.0383770726621151, -0.5256824493408203, -0.03424213454127312, -0.35559266805648804, -0.04012325406074524, 0.32844600081443787, -0.022082991898059845, 0.11650818586349487, 0.3360469937324524, 0.1921483725309372, 0.14376941323280334, 0.10190540552139282, -0.21567896008491516, -0.0004948250134475529, 0.4178360402584076, -0.23972924053668976, -0.4076490104198456, 0.2128310650587082, -0.0815080776810646, 0.26792392134666443, -0.009195327758789062, -0.3185969591140747, -0.44069311022758484, 0.053226154297590256, -0.09696761518716812, -0.07054527848958969, 0.14207448065280914, 0.03844942897558212, 0.07098230719566345, -0.24448241293430328, -0.15771153569221497, -0.1952129453420639, 0.023967573419213295, -0.15255539119243622, 0.28817495703697205, -0.22311297059059143, -0.0932207852602005, 0.5048218965530396, 0.8064699769020081, 0.3794752061367035, -0.19793011248111725, -0.05222146585583687, 0.06025681644678116, 0.3590924143791199, 0.14883671700954437, -0.384260356426239, 0.15940870344638824, -0.39682719111442566, 0.11375498026609421, 0.3308049738407135, -0.04077514261007309, 0.08538550138473511, -0.07701440155506134, 0.033092912286520004, 0.06468594074249268, -0.20491062104701996, -0.18932980298995972, -0.006521641276776791, 0.1907670944929123, -0.005782634951174259, 0.15850801765918732, -0.2624436318874359, -0.06777321547269821, 0.26873400807380676, 0.3583221137523651, -0.39966556429862976, 0.09755121171474457, -0.3530917763710022, 0.22763186693191528, -0.2536464035511017, 0.3831908404827118, -0.3001423478126526, 0.20829637348651886, 0.15801574289798737, 0.04682595282793045, -0.0848773866891861, -0.2429383546113968, 0.16237793862819672, -0.0915287509560585, 0.01839568465948105, 0.18374305963516235, 0.041608717292547226, -0.16949065029621124, -0.008794347755610943, -0.19149768352508545, 0.17589130997657776, 0.2852979898452759, 0.2649521231651306, -0.3108687102794647, 0.07978284358978271, 0.1394040286540985, 0.25563111901283264, -0.2582018971443176, 0.08319107443094254, -0.49894729256629944, -0.07269253581762314, -0.21274960041046143, 0.14501212537288666, -0.1498374044895172, 0.057531893253326416, -0.04106684774160385, 0.1880611777305603, -0.4498632252216339, -0.2235032469034195, 0.34547409415245056, -0.12852990627288818, 0.2572484612464905, -0.15350931882858276, 0.1203257143497467, -0.008211127482354641, -0.014812949113547802, 0.4275593161582947, 0.28114452958106995, -0.04101385176181793, -0.4183306396007538, -0.18000532686710358, -0.06024397164583206, 0.39758768677711487, 0.204388827085495, -0.2897369861602783, 0.14139364659786224, -0.05713064596056938, 0.28444525599479675, -0.31184178590774536, 0.23581714928150177, 0.1697670817375183, 0.1153324693441391, -0.04600144922733307, -0.2965560257434845, 0.08507426083087921, -0.1428479552268982, -0.06981021910905838, 0.16901732981204987, 0.1838867962360382, -0.024466460570693016, 0.41240665316581726, 0.12496206909418106, 1.0602535009384155, 0.24604180455207825, -0.15159045159816742, 0.30197426676750183, -0.12898364663124084, 0.1023872047662735, -0.3847406208515167, 0.1739915907382965, -0.28576990962028503, -0.2945438027381897, 0.06448030471801758, -0.05435236170887947, 0.15695072710514069, 0.014512102119624615, -0.4472406506538391, 0.12256067991256714, -0.12595267593860626, 0.08083236217498779, 0.18309076130390167, 0.20076045393943787, 0.09731406718492508, -0.055793724954128265, 0.12913210690021515, 0.257162868976593, -0.1327042132616043, -0.09203130751848221, -0.12395159155130386, 0.13301979005336761, 0.1029101237654686, -0.12032807618379593, -0.1604497879743576, 0.06953728944063187, -0.24809610843658447, 0.11792053282260895, 0.1963866651058197, -0.10513868927955627, 0.07731680572032928, 0.33698680996894836, 0.6103703379631042, 0.29233214259147644, -0.11907415837049484, 0.11351151019334793, -0.06680980324745178, -0.04866384342312813, -0.025817638263106346, -0.08114457130432129, 0.35673603415489197, -0.07245253026485443, -0.1762508898973465, 0.15840700268745422, 0.13121704757213593, 0.002197468653321266, 0.04201928898692131, -0.05976765602827072, 0.3281686305999756, -0.2919076979160309, 0.13864943385124207, 0.014304930344223976, -0.11365960538387299, -0.3486384153366089, 0.1937873810529709, 0.025978462770581245, -0.3033919632434845, 0.3734670579433441, 0.008206992410123348, -0.21211090683937073, -0.04400501772761345, 0.5273149013519287, 0.04812800884246826, -0.30483996868133545, 0.3915405571460724, -0.26562899351119995, -0.16930800676345825, -0.2985631227493286, -0.17533200979232788, -0.15141363441944122, -0.2239668220281601, 0.15471667051315308, -0.1720937192440033, 0.14069658517837524, 0.2833084762096405, 0.34599247574806213, 0.3237285315990448, -0.06174255162477493, -0.08364551514387131, -0.19934877753257751, -0.3199274241924286, 0.027767816558480263, 0.19790908694267273, 0.01056613028049469, -0.2704561948776245, 0.07055819034576416, 0.006448013242334127, 0.316436767578125, -0.39360857009887695, 0.20271550118923187, -0.2121349722146988, 0.0717591941356659, 0.052845049649477005, -0.2563828229904175, 0.02031012251973152, -0.04357204586267471, 0.07275532186031342, 0.018846947699785233, -0.37670180201530457, -0.19129329919815063, -0.3634169399738312, 0.14283844828605652, 0.17306369543075562, 0.16460295021533966, -0.0813722088932991, 0.13509775698184967, -0.16786378622055054, -0.16531462967395782, 0.06406305730342865, 0.3893420398235321, -0.1728256493806839, 0.28321927785873413, -0.06231912225484848, 0.34970328211784363, 0.05646755173802376, -0.18076053261756897, 0.26969507336616516, 0.26931193470954895, 0.146321639418602, 0.09004497528076172, -0.1290738731622696, -0.03161228820681572, -0.06151125580072403, 0.14197708666324615, 0.2718563377857208, 0.052501242607831955, 0.3330375552177429, -0.37865447998046875, -0.021335693076252937, -0.019541673362255096, 0.32271257042884827, 0.20839938521385193, -0.19750560820102692, -0.13913743197917938, 0.05947517976164818, 0.2730632424354553, -0.372234582901001, -0.06298566609621048, -0.17465756833553314, 0.1714310497045517, 0.11592559516429901, 0.23201894760131836, 0.32397207617759705, -0.3307375907897949, 0.21261487901210785, 0.13820576667785645, 0.2896263599395752, -0.2799563705921173, 0.5085774064064026, -0.3556700348854065, 0.07549735903739929, 0.03311697766184807, 0.2941719889640808, 0.09561020880937576, 0.2405015230178833, 0.23980379104614258, -0.16977189481258392, 0.6393952369689941, 0.18154841661453247, 0.031028002500534058, -0.15324755012989044, 0.032986897975206375, 0.21802382171154022, 0.013199389912188053, -0.06505738198757172, -0.11886181682348251, -0.08879029005765915, 0.4944627285003662, -0.1701447069644928, -0.02506977505981922, -0.1897779107093811, -0.337012380361557, 0.034633465111255646, -0.012855395674705505, 0.0006821738788858056, -0.24974662065505981, -0.28082725405693054, -0.2134658545255661, 0.22740036249160767, -0.028344077989459038, 0.1051589623093605, -0.04211321100592613, -0.022169500589370728, -0.16503223776817322, -0.021646104753017426, 0.2968192398548126, 0.21251672506332397, -0.35414832830429077, -0.12426374107599258, 0.13710267841815948, 0.15133199095726013, -0.017259959131479263, 0.3668436110019684, 0.4245292842388153, 0.3550613522529602, -0.15838763117790222, 0.0007661744602955878, -0.09756413847208023, -0.006191029213368893, 0.01733613759279251, 0.2649988830089569, 0.04913773015141487, -0.42257174849510193, 0.23882156610488892, 0.23249779641628265, -0.23022259771823883, -0.1320456862449646, 0.1067541092634201, -0.1956958919763565, -0.36769700050354004, 0.630599319934845, 0.19423937797546387, -0.020505812019109726, -0.16048122942447662, -0.06362614780664444, -0.5861014127731323, -0.013174163177609444, 0.3944792151451111, -0.03467017784714699, 0.15714378654956818, -0.22075645625591278, 0.12605328857898712, 0.05168357118964195, 0.10067875683307648, 0.12102513015270233, -0.035340167582035065, -0.33217406272888184, -0.05455249920487404, -0.6144711971282959, 0.27790477871894836, 0.2257881462574005, 0.067552350461483, 0.039728451520204544, 0.20720933377742767, -0.17896218597888947, 0.19788649678230286, 0.0010366846108809114, 0.021848231554031372, -0.09587454050779343, -0.21366305649280548, -0.6087864637374878, 0.08250272274017334, -0.2039692997932434, 0.11713409423828125, 0.029540346935391426, -0.2681426703929901, -0.2384239286184311, -0.3822876214981079, 0.11508245766162872, 0.010573385283350945, -0.3834081292152405, 0.2427312433719635, 0.07758540660142899, 0.46921780705451965, -0.04351622983813286, 0.18496893346309662, 0.06061926484107971, -0.13339851796627045, -0.10148444771766663, -0.00004700443605543114, -0.26211684942245483, 0.3020837604999542, -0.09054263681173325, 0.4197929799556732, -0.2192395180463791, 0.04980552941560745, -0.287678599357605, 0.17096160352230072, 0.32088369131088257, -0.5431159138679504, -0.2115829586982727, 0.3529495596885681, -0.013521849177777767, 0.19224531948566437, 0.01654094085097313, 0.33205556869506836, -0.0361466147005558, 0.5384607911109924, -0.30940866470336914, -0.3373984694480896, 0.5012772083282471, -0.27836430072784424, -0.32948848605155945, -0.2559569776058197, 0.6030338406562805, 0.21517200767993927, -0.07888533920049667, -0.5270065069198608, 0.06312745064496994, 0.3534006178379059, 0.05241728201508522, -0.23064114153385162, 0.10975325852632523, -0.36949414014816284, 0.12115047872066498, -0.09205509722232819, 0.33629581332206726, -0.0609118789434433, 0.01657181978225708, 0.08527078479528427, -0.13533639907836914 ]
https://github.com/huggingface/datasets/issues/2737
SacreBLEU update
@bhavitvyamalik hmm. I forgot double brackets, but still didn't work when used it with double brackets. It may be an isseu with platform (using win-10 currently), or versions. What is your platform and your version info for datasets, python, and sacrebleu ?
With the latest release of [sacrebleu](https://github.com/mjpost/sacrebleu), `datasets.metrics.sacrebleu` is broken, and getting error. AttributeError: module 'sacrebleu' has no attribute 'DEFAULT_TOKENIZER' this happens since in new version of sacrebleu there is no `DEFAULT_TOKENIZER`, but sacrebleu.py tries to import it anyways. This can be fixed currently with fixing `sacrebleu==1.5.0` ## Steps to reproduce the bug ```python sacrebleu= datasets.load_metric('sacrebleu') predictions = ["It is a guide to action which ensures that the military always obeys the commands of the party"] references = ["It is a guide to action that ensures that the military will forever heed Party commands"] results = sacrebleu.compute(predictions=predictions, references=references) print(results) ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: Windows-10-10.0.19041-SP0 - Python version: Python 3.8.0 - PyArrow version: 5.0.0
42
SacreBLEU update With the latest release of [sacrebleu](https://github.com/mjpost/sacrebleu), `datasets.metrics.sacrebleu` is broken, and getting error. AttributeError: module 'sacrebleu' has no attribute 'DEFAULT_TOKENIZER' this happens since in new version of sacrebleu there is no `DEFAULT_TOKENIZER`, but sacrebleu.py tries to import it anyways. This can be fixed currently with fixing `sacrebleu==1.5.0` ## Steps to reproduce the bug ```python sacrebleu= datasets.load_metric('sacrebleu') predictions = ["It is a guide to action which ensures that the military always obeys the commands of the party"] references = ["It is a guide to action that ensures that the military will forever heed Party commands"] results = sacrebleu.compute(predictions=predictions, references=references) print(results) ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: Windows-10-10.0.19041-SP0 - Python version: Python 3.8.0 - PyArrow version: 5.0.0 @bhavitvyamalik hmm. I forgot double brackets, but still didn't work when used it with double brackets. It may be an isseu with platform (using win-10 currently), or versions. What is your platform and your version info for datasets, python, and sacrebleu ?
[ -0.3610985279083252, 0.13120940327644348, -0.005659789778292179, -0.1026851087808609, 0.4761410653591156, -0.155743807554245, 0.13352198898792267, 0.33508551120758057, -0.061467453837394714, 0.1180700957775116, 0.06350405514240265, 0.4146682620048523, -0.08603686094284058, -0.11108016967773438, -0.08109565079212189, -0.06220753490924835, 0.132536843419075, 0.0672767385840416, 0.320829302072525, -0.025173936039209366, -0.299712598323822, 0.10967691242694855, -0.21053245663642883, 0.06954042613506317, -0.24694901704788208, 0.027508847415447235, -0.03394756466150284, -0.04669468104839325, -0.45272311568260193, -0.6465780138969421, 0.2405427247285843, 0.13840651512145996, -0.03766576573252678, 0.42375612258911133, -0.00011065916623920202, -0.10289347916841507, 0.30357304215431213, -0.1960429698228836, -0.43538597226142883, -0.4215501546859741, -0.15199485421180725, -0.36280885338783264, 0.01742306724190712, -0.10628161579370499, -0.036834023892879486, -0.3589271306991577, -0.021784674376249313, -0.048008594661951065, 0.2329917699098587, 0.4084697365760803, 0.24754168093204498, 0.3381180167198181, 0.051173899322748184, -0.34787800908088684, -0.13334329426288605, 0.0854819267988205, -0.04586520418524742, 0.2032528668642044, -0.06251022964715958, 0.08330626785755157, 0.09176219254732132, 0.057600297033786774, -0.2753888964653015, 0.11876107007265091, 0.13332603871822357, -0.1312289535999298, -0.1327500194311142, -0.011835471726953983, 0.08341269195079803, 0.015153092332184315, 0.3650403618812561, -0.3823315501213074, -0.37355783581733704, 0.21271708607673645, 0.036606598645448685, -0.3824593424797058, 0.009145163930952549, -0.11232268065214157, -0.009332000277936459, -0.17003276944160461, 0.06643561273813248, -0.12014733254909515, -0.020598355680704117, 0.07037412375211716, -0.24727456271648407, 0.40811580419540405, -0.2506111264228821, 0.04697146639227867, 0.07983098179101944, -0.08483031392097473, -0.4981861412525177, 0.08689423650503159, -0.19842490553855896, 0.033559150993824005, -0.3400897681713104, -0.02502358704805374, -0.07630252093076706, -0.3464219570159912, 0.08133696019649506, 0.3945920765399933, 0.04874347522854805, 0.2591860294342041, 0.1699690818786621, 0.20894207060337067, -0.13018053770065308, 0.4959835112094879, 0.242079496383667, 0.22003702819347382, 0.16572627425193787, 0.2019772082567215, -0.06615417450666428, -0.0687892884016037, -0.12876589596271515, -0.22975341975688934, 0.26028192043304443, 0.08043482154607773, 0.3282782733440399, -0.07557248324155807, -0.5133694410324097, 0.17524221539497375, 0.24009042978286743, -0.060788147151470184, -0.044092897325754166, 0.3927015960216522, -0.23990662395954132, 0.15003277361392975, -0.153526172041893, 0.263598769903183, -0.23595298826694489, -0.36674630641937256, -0.24689844250679016, 0.017870118841528893, -0.2878109812736511, -0.12780970335006714, 0.1567811369895935, 0.19842003285884857, 0.13187263906002045, -0.05939532071352005, 0.34522950649261475, -0.17178143560886383, 0.2690589129924774, -0.2084931880235672, -0.03403623402118683, -0.000956509611569345, -0.19240035116672516, 0.07492709159851074, 0.44893473386764526, -0.7316139340400696, -0.10491647571325302, -0.12897394597530365, -0.3792106807231903, -0.2902468740940094, 0.2612978518009186, 0.27401286363601685, -0.2312811017036438, -0.3622230589389801, -0.41790762543678284, 0.2116142362356186, -0.012301252223551273, 0.05433359369635582, -0.024652725085616112, -0.0373276025056839, -0.2178056687116623, -0.2653992176055908, 0.36074814200401306, 0.31204432249069214, -0.1571211963891983, -0.1470867097377777, 0.046997737139463425, -0.14524692296981812, 0.04655620455741882, -0.14183443784713745, 0.08976633101701736, 0.3025016784667969, 0.003987014759331942, -0.037852201610803604, 0.3772496283054352, -0.33983874320983887, -0.4797555208206177, -0.07320929318666458, 0.015363810583949089, -0.23946839570999146, 0.02647777646780014, -0.09476659446954727, 0.5503352284431458, -0.011440969072282314, 0.0148313008248806, 0.05216686800122261, 0.11854007095098495, -0.24585451185703278, -0.19199077785015106, -0.3879251480102539, 0.0008233580738306046, 0.06642504781484604, 0.599195122718811, 0.06908926367759705, 0.23367516696453094, 0.3648745119571686, 0.21550622582435608, 0.033559754490852356, -0.03523081913590431, 0.20002414286136627, 0.6257209181785583, -0.1667003333568573, 0.2624935805797577, -0.5427994728088379, 0.08942526578903198, 0.13996511697769165, 0.139351949095726, 0.0019270798657089472, 0.0035258023999631405, -0.14695444703102112, -0.5078862309455872, 0.06686664372682571, -0.145801842212677, 0.06264086067676544, 0.1951812207698822, 0.18135303258895874, -0.10515100508928299, 0.23513522744178772, -0.2970178425312042, -0.026200341060757637, -0.1130387932062149, 0.27307549118995667, 0.11143473535776138, 0.2101031094789505, -0.015811391174793243, -0.28501173853874207, 0.22381693124771118, 0.2779828608036041, 0.24042092263698578, -0.09665711224079132, -0.13345153629779816, 0.40794089436531067, 0.28513267636299133, 0.19623032212257385, 0.006025522947311401, 0.3215174078941345, 0.057276468724012375, -0.3230304718017578, -0.13350290060043335, 0.4925210475921631, 0.029726965352892876, -0.07443291693925858, 0.06897922605276108, 0.34355098009109497, 0.11004957556724548, 0.10874108225107193, 0.04345649853348732, 0.27133700251579285, 0.04514211788773537, -0.05106206238269806, -0.07424154132604599, -0.2531875669956207, -0.08793286979198456, -0.22563019394874573, -0.08661441504955292, -0.18094445765018463, 0.0871172696352005, 0.0022352272644639015, 0.30217444896698, 0.16484062373638153, 0.17356368899345398, 0.03657598793506622, -0.24399884045124054, 0.04063638299703598, -0.2193615585565567, 0.25144392251968384, 0.34480780363082886, 0.12039139121770859, 0.06287677586078644, 0.08483267575502396, -0.04020291566848755, -0.024376770481467247, 0.22612760961055756, 0.10479151457548141, -0.4793454706668854, 0.22927117347717285, 0.03511592373251915, 0.12524636089801788, -0.189626544713974, 0.021619435399770737, 0.002316053956747055, 0.30324676632881165, -0.11193383485078812, 0.14870049059391022, -0.18410716950893402, 0.2805728018283844, -0.035286977887153625, -0.1682986468076706, -0.036731600761413574, -0.17683137953281403, 0.031673017889261246, 0.009489243850111961, 0.17567652463912964, 0.4028095304965973, -0.015124624595046043, 0.3465370237827301, 0.051964715123176575, -0.21313795447349548, 0.1350441426038742, -0.08750899881124496, -0.03911401703953743, 0.021433455869555473, 0.009357108734548092, -0.2057679444551468, 0.2946454882621765, -0.1813661754131317, 0.01538426335901022, -0.3245868384838104, -0.3740167021751404, 0.07284405827522278, 0.07975981384515762, 0.4360913038253784, 0.18093295395374298, -0.16628897190093994, -0.024908874183893204, -0.055283110588788986, 0.33019062876701355, -0.2599100172519684, 0.0595741793513298, 0.3426206409931183, -0.08489950001239777, -0.20888064801692963, 0.011193646118044853, -0.43637633323669434, -0.013547202572226524, -0.3943406641483307, -0.05776732787489891, 0.23025040328502655, -0.11760979145765305, 0.06398846209049225, 0.22327499091625214, 0.1488090455532074, 0.16535374522209167, 0.14982599020004272, -0.18319906294345856, -0.10055527091026306, 0.5080994367599487, -0.19295194745063782, -0.40197843313217163, 0.1647426038980484, -0.1132766455411911, 0.23341165482997894, 0.05976057052612305, -0.2861008644104004, -0.3820085823535919, 0.0010041912319138646, -0.005481922999024391, -0.05731642246246338, 0.14563477039337158, 0.07587508112192154, 0.029179520905017853, -0.20263060927391052, -0.17023299634456635, -0.27369725704193115, -0.004637169186025858, -0.1380312442779541, 0.2538142800331116, -0.17685213685035706, -0.14412455260753632, 0.46494174003601074, 0.8005056381225586, 0.33428511023521423, -0.28825119137763977, 0.0038185687735676765, 0.04076023027300835, 0.3907128870487213, 0.22858759760856628, -0.42757004499435425, 0.09831015765666962, -0.33242177963256836, 0.10178501904010773, 0.3215205669403076, -0.013699495233595371, 0.04279199242591858, -0.10926090180873871, -0.03660505264997482, 0.07214853912591934, -0.18942275643348694, -0.1876775622367859, -0.06595355272293091, 0.1959962397813797, 0.020411193370819092, 0.13924875855445862, -0.2542547881603241, -0.10778361558914185, 0.3225863575935364, 0.439741313457489, -0.3692907392978668, 0.12878014147281647, -0.42562538385391235, 0.21703733503818512, -0.13802331686019897, 0.33671486377716064, -0.31822019815444946, 0.2477908432483673, 0.09714221954345703, 0.060660697519779205, -0.1070527583360672, -0.24161653220653534, 0.2020464986562729, -0.12696132063865662, -0.009118583984673023, 0.15363547205924988, 0.08839184790849686, -0.19973500072956085, 0.014282094314694405, -0.18396233022212982, 0.19717562198638916, 0.21832163631916046, 0.25642895698547363, -0.2091740518808365, 0.04937997832894325, 0.0505620501935482, 0.2396543174982071, -0.2843269407749176, 0.11723075062036514, -0.47968411445617676, -0.08155982196331024, -0.0956762507557869, 0.17436881363391876, -0.2040809839963913, 0.03130820393562317, 0.07082736492156982, 0.12795771658420563, -0.570189893245697, -0.2751619219779968, 0.3760760426521301, -0.1228816956281662, 0.20803828537464142, -0.2716875672340393, 0.14118634164333344, 0.025574883446097374, 0.029520753771066666, 0.4906155467033386, 0.27614206075668335, -0.06850315630435944, -0.45345914363861084, -0.1442544162273407, -0.05795072764158249, 0.38267821073532104, 0.18690115213394165, -0.31897082924842834, 0.149417445063591, -0.026344461366534233, 0.27320560812950134, -0.4339580833911896, 0.2760278582572937, 0.2799220681190491, 0.15385520458221436, -0.08942905068397522, -0.2863088846206665, 0.040482789278030396, -0.04278392344713211, -0.11774396151304245, 0.13305942714214325, 0.1954038143157959, -0.04732319340109825, 0.32978227734565735, 0.12523120641708374, 1.0295543670654297, 0.24977663159370422, -0.14507344365119934, 0.20489494502544403, -0.12255547195672989, 0.1770913451910019, -0.38899174332618713, 0.14919956028461456, -0.2145759016275406, -0.34976139664649963, -0.002797771245241165, -0.078614242374897, 0.24612586200237274, -0.08120567351579666, -0.5005115866661072, 0.14827848970890045, -0.10568609833717346, 0.12299514561891556, 0.20176781713962555, 0.19522662460803986, -0.019381575286388397, -0.021412774920463562, 0.14405959844589233, 0.22382844984531403, -0.08574298024177551, -0.0018104976043105125, -0.1456819474697113, 0.13496707379817963, 0.16078202426433563, -0.12899082899093628, -0.2532971501350403, -0.020207228139042854, -0.22260500490665436, 0.15603721141815186, 0.1556517481803894, -0.05481122434139252, 0.053881797939538956, 0.3182269036769867, 0.6783843040466309, 0.26795393228530884, -0.15293163061141968, 0.17432135343551636, -0.16084270179271698, -0.01773475669324398, -0.059067606925964355, -0.13272613286972046, 0.4723624289035797, -0.04320263862609863, -0.14075033366680145, 0.11975216865539551, 0.15256986021995544, 0.005870806518942118, -0.060047000646591187, -0.04638813063502312, 0.22359327971935272, -0.20586010813713074, 0.12115740031003952, -0.05589372292160988, -0.04078345745801926, -0.34754422307014465, 0.17860417068004608, 0.058885738253593445, -0.23608185350894928, 0.41134849190711975, 0.006655257195234299, -0.2602078318595886, -0.04359591752290726, 0.5117906928062439, -0.010094597004354, -0.375085711479187, 0.36480513215065, -0.3749401569366455, -0.17878101766109467, -0.3353441655635834, -0.1208830177783966, -0.1823655217885971, -0.17810605466365814, 0.20703409612178802, -0.20563644170761108, 0.1281834840774536, 0.2462082803249359, 0.3060656189918518, 0.35645222663879395, -0.18280825018882751, -0.08652257174253464, -0.2616470456123352, -0.28051549196243286, 0.07183918356895447, 0.07431897521018982, -0.03328776732087135, -0.31515857577323914, 0.07527346909046173, 0.0031480309553444386, 0.3176882565021515, -0.3684152066707611, 0.300901859998703, -0.20325681567192078, -0.004992190282791853, 0.04389322176575661, -0.1541394591331482, 0.015481006354093552, -0.08658961951732635, 0.049666400998830795, -0.05690453574061394, -0.40740978717803955, -0.16010026633739471, -0.3775687515735626, 0.1592617630958557, 0.12506254017353058, 0.19321373105049133, 0.026591286063194275, 0.06965005397796631, -0.10822451859712601, -0.1402435302734375, 0.053124357014894485, 0.4404628872871399, -0.18073464930057526, 0.2637675702571869, -0.07325032353401184, 0.3241835832595825, 0.007224278058856726, -0.160069540143013, 0.2754858434200287, 0.2447517216205597, 0.13876739144325256, 0.157249316573143, -0.14301855862140656, -0.020298326388001442, -0.08029273897409439, 0.20102421939373016, 0.30112338066101074, -0.04880188778042793, 0.38229918479919434, -0.3700410723686218, -0.013949223794043064, -0.07115322351455688, 0.2680603861808777, 0.3289753198623657, -0.1407838761806488, -0.07688947767019272, 0.2062949389219284, 0.25114402174949646, -0.34843575954437256, -0.08367696404457092, -0.09777078777551651, 0.1452627331018448, 0.11646478623151779, 0.19484062492847443, 0.377534419298172, -0.26658526062965393, 0.18535591661930084, 0.05414330214262009, 0.3624928295612335, -0.23156943917274475, 0.5102033019065857, -0.29281777143478394, 0.11826355755329132, 0.06212407350540161, 0.2977145314216614, 0.14619816839694977, 0.2570769488811493, 0.37357115745544434, -0.11513210088014603, 0.7012068033218384, 0.2368115335702896, 0.04976074397563934, -0.09399436414241791, -0.024763982743024826, 0.3053645193576813, -0.03349201753735542, -0.05133963003754616, -0.10468199104070663, -0.08023320138454437, 0.4766087234020233, -0.194539874792099, -0.04363080486655235, -0.19617897272109985, -0.2771187424659729, 0.010091755539178848, -0.10296914726495743, -0.03239598870277405, -0.2655654847621918, -0.2995891869068146, -0.20101149380207062, 0.2587383985519409, -0.006711896043270826, 0.08454055339097977, -0.05832057446241379, 0.049016669392585754, -0.19658254086971283, -0.016912493854761124, 0.29033347964286804, 0.1799900084733963, -0.3022834062576294, -0.12077779322862625, 0.06233196705579758, 0.06678710877895355, 0.04978542774915695, 0.41400688886642456, 0.4629575312137604, 0.3816128969192505, -0.20345661044120789, -0.004830541554838419, -0.1843123883008957, -0.034266844391822815, -0.019111890345811844, 0.31449607014656067, -0.005015585571527481, -0.4414653480052948, 0.20364029705524445, 0.20731590688228607, -0.19201679527759552, 0.07665834575891495, 0.016565049067139626, -0.21337001025676727, -0.46648454666137695, 0.6189286112785339, 0.19905656576156616, -0.005928603932261467, -0.16932016611099243, -0.13641779124736786, -0.5505837202072144, 0.0358370803296566, 0.4961479902267456, -0.04124213010072708, 0.1906966120004654, -0.21883392333984375, 0.11292368918657303, 0.16640354692935944, 0.07370894402265549, 0.23213529586791992, -0.00004240846828906797, -0.18019512295722961, -0.023599378764629364, -0.6460703611373901, 0.31645017862319946, 0.17337243258953094, 0.09061937779188156, 0.07225742191076279, 0.10771967470645905, -0.13061216473579407, 0.16960734128952026, 0.0667058601975441, 0.06262178719043732, -0.09574197977781296, -0.2245659977197647, -0.6295441389083862, 0.04244618117809296, -0.22469639778137207, 0.08606283366680145, -0.010043786838650703, -0.31562501192092896, -0.22485755383968353, -0.47366705536842346, 0.08679578453302383, 0.03833356872200966, -0.2752350866794586, 0.19720864295959473, 0.09625189006328583, 0.5623535513877869, -0.013149424456059933, 0.25777962803840637, 0.10924258083105087, -0.10065040737390518, -0.12692312896251678, 0.008061460219323635, -0.276925265789032, 0.2525501549243927, -0.04737091436982155, 0.3885968029499054, -0.32379183173179626, -0.019034532830119133, -0.26227062940597534, 0.21907728910446167, 0.3211137056350708, -0.5104788541793823, -0.2979593276977539, 0.3339652419090271, -0.07160523533821106, 0.16417431831359863, 0.09362614899873734, 0.40345340967178345, -0.08306203037500381, 0.5707307457923889, -0.3010047972202301, -0.3583701252937317, 0.4811253249645233, -0.2347840517759323, -0.35359832644462585, -0.26435211300849915, 0.6121698021888733, 0.21601490676403046, -0.0946953147649765, -0.5384447574615479, 0.0012244037352502346, 0.4085339903831482, -0.019513161852955818, -0.23717060685157776, 0.1611611247062683, -0.2878207564353943, 0.10454518347978592, -0.10341572016477585, 0.3256402909755707, -0.04826192185282707, -0.06709393113851547, 0.15018396079540253, -0.1195790022611618 ]
https://github.com/huggingface/datasets/issues/2737
SacreBLEU update
You can check that here, I've reproduced your code in [Google colab](https://colab.research.google.com/drive/1X90fHRgMLKczOVgVk7NDEw_ciZFDjaCM?usp=sharing). Looks like there was some issue in `sacrebleu` which was fixed later from what I've found [here](https://github.com/pytorch/fairseq/issues/2049#issuecomment-622367967). Upgrading `sacrebleu` to latest version should work.
With the latest release of [sacrebleu](https://github.com/mjpost/sacrebleu), `datasets.metrics.sacrebleu` is broken, and getting error. AttributeError: module 'sacrebleu' has no attribute 'DEFAULT_TOKENIZER' this happens since in new version of sacrebleu there is no `DEFAULT_TOKENIZER`, but sacrebleu.py tries to import it anyways. This can be fixed currently with fixing `sacrebleu==1.5.0` ## Steps to reproduce the bug ```python sacrebleu= datasets.load_metric('sacrebleu') predictions = ["It is a guide to action which ensures that the military always obeys the commands of the party"] references = ["It is a guide to action that ensures that the military will forever heed Party commands"] results = sacrebleu.compute(predictions=predictions, references=references) print(results) ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: Windows-10-10.0.19041-SP0 - Python version: Python 3.8.0 - PyArrow version: 5.0.0
36
SacreBLEU update With the latest release of [sacrebleu](https://github.com/mjpost/sacrebleu), `datasets.metrics.sacrebleu` is broken, and getting error. AttributeError: module 'sacrebleu' has no attribute 'DEFAULT_TOKENIZER' this happens since in new version of sacrebleu there is no `DEFAULT_TOKENIZER`, but sacrebleu.py tries to import it anyways. This can be fixed currently with fixing `sacrebleu==1.5.0` ## Steps to reproduce the bug ```python sacrebleu= datasets.load_metric('sacrebleu') predictions = ["It is a guide to action which ensures that the military always obeys the commands of the party"] references = ["It is a guide to action that ensures that the military will forever heed Party commands"] results = sacrebleu.compute(predictions=predictions, references=references) print(results) ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: Windows-10-10.0.19041-SP0 - Python version: Python 3.8.0 - PyArrow version: 5.0.0 You can check that here, I've reproduced your code in [Google colab](https://colab.research.google.com/drive/1X90fHRgMLKczOVgVk7NDEw_ciZFDjaCM?usp=sharing). Looks like there was some issue in `sacrebleu` which was fixed later from what I've found [here](https://github.com/pytorch/fairseq/issues/2049#issuecomment-622367967). Upgrading `sacrebleu` to latest version should work.
[ -0.357820600271225, 0.19118228554725647, -0.013056405819952488, -0.12196698039770126, 0.45912227034568787, -0.25873255729675293, 0.10235545039176941, 0.3462674617767334, -0.10472648590803146, 0.1702917516231537, 0.029268454760313034, 0.3873143792152405, -0.028606869280338287, -0.12960320711135864, -0.08967190235853195, -0.08184076100587845, 0.02233673632144928, 0.11037172377109528, 0.21084381639957428, -0.06507376581430435, -0.2887299954891205, 0.08739185333251953, -0.1631983518600464, 0.08526662737131119, -0.24923814833164215, -0.0023167026229202747, -0.07602604478597641, -0.07797536998987198, -0.4405122995376587, -0.6061068177223206, 0.11860191076993942, 0.12102720886468887, -0.04798737168312073, 0.37434524297714233, -0.0001058454581652768, -0.11074850708246231, 0.30514398217201233, -0.19885335862636566, -0.4026469886302948, -0.3009616732597351, -0.12766969203948975, -0.23649725317955017, 0.10637599229812622, -0.14558090269565582, -0.1818397343158722, -0.3046252429485321, 0.025275081396102905, 0.09403180330991745, 0.2512165606021881, 0.4529436230659485, 0.3059907853603363, 0.40626227855682373, 0.023012800142169, -0.35246598720550537, -0.019998136907815933, -0.024233072996139526, -0.013146139681339264, 0.2505609691143036, -0.06467308104038239, -0.020218372344970703, -0.052027296274900436, 0.06277719140052795, -0.1706923544406891, 0.16239678859710693, -0.023708803579211235, -0.0873841941356659, -0.11774405092000961, -0.06951960921287537, 0.04949573427438736, -0.08126417547464371, 0.28044503927230835, -0.3829117715358734, -0.43051689863204956, 0.20862340927124023, 0.07185161113739014, -0.29175159335136414, -0.008119601756334305, -0.11823733896017075, -0.011707163415849209, -0.16717641055583954, 0.07973181456327438, -0.030903348699212074, -0.046965353190898895, 0.021847020834684372, -0.27764707803726196, 0.3991085886955261, -0.21678811311721802, 0.029543466866016388, 0.10194496810436249, -0.07985851168632507, -0.5395295023918152, 0.1725982427597046, -0.16304858028888702, -0.04727775231003761, -0.3372489809989929, -0.052096884697675705, -0.035220514982938766, -0.30399665236473083, 0.07972461730241776, 0.2673196494579315, 0.07893367856740952, 0.3234217166900635, 0.17259761691093445, 0.20881123840808868, -0.107454314827919, 0.5174099206924438, 0.156987264752388, 0.21095594763755798, 0.148188054561615, 0.20847511291503906, -0.15824459493160248, 0.013210454024374485, -0.0868135467171669, -0.2773755192756653, 0.18113791942596436, 0.05041087418794632, 0.29890549182891846, -0.1296226978302002, -0.5161450505256653, 0.12122667580842972, 0.3249453902244568, 0.007468143478035927, -0.07844146341085434, 0.4600086212158203, -0.27590709924697876, 0.08376262336969376, -0.11504847556352615, 0.23349203169345856, -0.33879491686820984, -0.3230009973049164, -0.27665233612060547, 0.040822308510541916, -0.3742506206035614, -0.08810174465179443, 0.20876744389533997, 0.2642616331577301, 0.18019655346870422, -0.08654752373695374, 0.3493548333644867, -0.13168400526046753, 0.25866132974624634, -0.2561267912387848, -0.05172538757324219, -0.0069769094698131084, -0.14306898415088654, -0.03151628002524376, 0.4688059091567993, -0.6108636260032654, -0.056698307394981384, -0.12541502714157104, -0.3261384963989258, -0.23629996180534363, 0.2884625196456909, 0.3258454203605652, -0.237155020236969, -0.2956567108631134, -0.33179032802581787, 0.2374335378408432, 0.07263362407684326, 0.02776467800140381, -0.017604373395442963, -0.12263679504394531, -0.20254115760326385, -0.24388279020786285, 0.3008953630924225, 0.3525294363498688, -0.1587592363357544, -0.16210901737213135, 0.15849310159683228, -0.1695161908864975, 0.062483590096235275, -0.07631482928991318, 0.011552845127880573, 0.3146713674068451, 0.03824084997177124, -0.023780740797519684, 0.2955039143562317, -0.2857784926891327, -0.5236395001411438, -0.08199755847454071, -0.015497294254601002, -0.25002574920654297, -0.053006529808044434, -0.06276457756757736, 0.6092694401741028, 0.06004967540502548, -0.0038256384432315826, -0.011536992155015469, 0.15576624870300293, -0.042796891182661057, -0.2675360143184662, -0.37505123019218445, -0.007950802333652973, 0.07907668501138687, 0.5792469382286072, 0.0346505269408226, 0.22446280717849731, 0.15795490145683289, 0.18562361598014832, 0.02338757924735546, 0.01896601729094982, 0.2308950275182724, 0.6588175296783447, -0.16638602316379547, 0.2470439076423645, -0.41249558329582214, 0.09872805327177048, 0.14146855473518372, -0.01131509616971016, 0.09376902878284454, 0.05194247141480446, -0.19477063417434692, -0.46919217705726624, -0.018341906368732452, -0.22689756751060486, 0.011952398344874382, 0.27151724696159363, 0.13782356679439545, -0.07973774522542953, 0.2032042294740677, -0.22750785946846008, 0.03118755854666233, -0.10758329182863235, 0.24390235543251038, 0.11141379922628403, 0.2018917053937912, -0.1064896509051323, -0.3009127974510193, 0.3025527894496918, 0.22519759833812714, 0.25522634387016296, -0.026972008869051933, -0.11873574554920197, 0.4040307104587555, 0.2718549072742462, 0.1211065873503685, 0.11039639264345169, 0.2345684915781021, 0.04704517126083374, -0.3110348582267761, -0.14868949353694916, 0.4316518306732178, 0.04844840243458748, -0.05148918554186821, 0.0397670678794384, 0.4062992334365845, 0.1410161703824997, 0.046095870435237885, 0.06791164726018906, 0.16835594177246094, 0.03603803738951683, -0.11957283318042755, -0.08891280740499496, -0.19636490941047668, -0.07993686199188232, -0.15916581451892853, -0.06233973056077957, -0.1417456865310669, 0.07800058275461197, 0.08795803040266037, 0.32705384492874146, 0.2486625611782074, 0.20668376982212067, 0.07692071050405502, -0.17981773614883423, -0.0212409608066082, -0.17702072858810425, 0.2161443680524826, 0.364759624004364, 0.17005634307861328, 0.043845247477293015, 0.07632939517498016, -0.04632239416241646, -0.037808727473020554, 0.17917610704898834, 0.0653138980269432, -0.4200982451438904, 0.1537056863307953, 0.1766032874584198, 0.08900440484285355, -0.19636042416095734, 0.05855017527937889, 0.06220496818423271, 0.2806885838508606, -0.09121561795473099, 0.1762315034866333, -0.12895917892456055, 0.3334774076938629, 0.01589927449822426, -0.21815600991249084, -0.04604510962963104, -0.1709313690662384, 0.17343412339687347, 0.00258094840683043, 0.07366177439689636, 0.3721657395362854, 0.010924095287919044, 0.3784331679344177, 0.2001803070306778, -0.21120266616344452, 0.10666876286268234, -0.21197375655174255, -0.01808737963438034, 0.07605674862861633, -0.11974086612462997, -0.04212643951177597, 0.3133828639984131, -0.15654075145721436, -0.012821648269891739, -0.3236805498600006, -0.32694295048713684, 0.1113746389746666, 0.014259019866585732, 0.4556114077568054, 0.1397293210029602, -0.17087338864803314, -0.1437092423439026, -0.057782646268606186, 0.33582603931427, -0.23410408198833466, -0.004756392445415258, 0.3123628795146942, -0.1245187297463417, -0.17324545979499817, -0.12783880531787872, -0.4561174809932709, 0.0026661213487386703, -0.38195186853408813, -0.0850624218583107, 0.1646662950515747, -0.036907266825437546, 0.04803726077079773, 0.24759045243263245, 0.11481714993715286, 0.09564535319805145, 0.058798663318157196, -0.2714681327342987, -0.13220040500164032, 0.5068072080612183, -0.3097520172595978, -0.4754902124404907, 0.15184693038463593, -0.12263288348913193, 0.2845419645309448, 0.037284307181835175, -0.28219327330589294, -0.5299500226974487, 0.01951240934431553, 0.02802463434636593, -0.060957033187150955, 0.08011946827173233, 0.11693263053894043, 0.02318621799349785, -0.2826244533061981, -0.17941410839557648, -0.20123477280139923, 0.1383204311132431, -0.06383570283651352, 0.2962294816970825, -0.28820663690567017, -0.14921551942825317, 0.34206104278564453, 0.8126736879348755, 0.2221951186656952, -0.2842615246772766, 0.028703339397907257, -0.004636862315237522, 0.3649333417415619, 0.15451085567474365, -0.3445686101913452, 0.18045857548713684, -0.2892845869064331, 0.14496086537837982, 0.3699702322483063, -0.09956896305084229, 0.025792935863137245, -0.07075325399637222, 0.09047077596187592, 0.010962560772895813, -0.27550646662712097, -0.18292929232120514, 0.07041078805923462, 0.17368139326572418, 0.026889050379395485, 0.1381925642490387, -0.2520947754383087, -0.0163272637873888, 0.28435975313186646, 0.3995742201805115, -0.2782473564147949, 0.07102175056934357, -0.27094998955726624, 0.18757905066013336, -0.1672022044658661, 0.2655045688152313, -0.3068065643310547, 0.20812532305717468, 0.10713855922222137, 0.06995529681444168, -0.06485217809677124, -0.2380272001028061, 0.23086215555667877, 0.015437059104442596, 0.0458042249083519, 0.12922990322113037, 0.015940945595502853, -0.1366558074951172, 0.0047394633293151855, -0.2175615429878235, 0.15861031413078308, 0.21813251078128815, 0.20169229805469513, -0.3195238709449768, 0.09645990282297134, 0.061757974326610565, 0.1553492397069931, -0.34209245443344116, 0.09231431037187576, -0.5545899271965027, -0.14465351402759552, -0.14314831793308258, 0.2754792273044586, -0.21475450694561005, 0.02875068224966526, -0.07320576906204224, 0.14910568296909332, -0.47613051533699036, -0.21240843832492828, 0.2964620590209961, -0.00509763415902853, 0.23992560803890228, -0.2561047077178955, 0.13372409343719482, -0.034792210906744, 0.03154429420828819, 0.4541693925857544, 0.3160788416862488, 0.036100685596466064, -0.37910303473472595, -0.0587964802980423, -0.006606133654713631, 0.2954757511615753, 0.1132597103714943, -0.21934328973293304, 0.1262146234512329, -0.09737333655357361, 0.3588210940361023, -0.288573294878006, 0.31995946168899536, 0.2117464542388916, 0.09734466671943665, -0.022351911291480064, -0.14765681326389313, 0.059477731585502625, -0.2094186246395111, -0.09820359200239182, 0.0274583138525486, 0.18052266538143158, -0.026730168610811234, 0.34371107816696167, 0.12847952544689178, 0.9728664755821228, 0.15453460812568665, -0.16980066895484924, 0.3814636468887329, -0.029946591705083847, 0.1575748324394226, -0.3214426338672638, 0.18221086263656616, -0.2842507064342499, -0.2830300033092499, 0.05903412029147148, -0.046011023223400116, 0.18157216906547546, -0.05531155318021774, -0.579115629196167, 0.17619213461875916, -0.054664742201566696, 0.0002063292049570009, 0.21852348744869232, 0.15349434316158295, 0.05433182045817375, -0.03984764590859413, 0.06791228801012039, 0.2623177766799927, -0.18888115882873535, 0.03542692959308624, -0.1071687564253807, 0.051759619265794754, 0.08319028466939926, -0.12944363057613373, -0.07457900792360306, 0.07369952648878098, -0.2968595027923584, 0.13417068123817444, 0.09890978783369064, -0.0511455200612545, 0.014360539615154266, 0.2612827718257904, 0.5497259497642517, 0.30409905314445496, -0.12758482992649078, 0.20803160965442657, -0.10199323296546936, -0.09718486666679382, -0.07605928927659988, -0.1031067967414856, 0.4004956781864166, -0.055642999708652496, -0.22462822496891022, 0.13415706157684326, 0.10706930607557297, -0.03165706619620323, -0.043744854629039764, -0.010952775366604328, 0.22065851092338562, -0.23735448718070984, 0.06712896376848221, -0.09112749248743057, -0.16623802483081818, -0.3255869746208191, 0.20398110151290894, 0.0799046978354454, -0.23088783025741577, 0.4265974462032318, 0.12054126709699631, -0.2824659049510956, -0.05496832728385925, 0.47083625197410583, -0.022267185151576996, -0.27825039625167847, 0.35411882400512695, -0.3069103956222534, -0.18814459443092346, -0.37047117948532104, -0.3024502694606781, -0.15844427049160004, -0.2403985559940338, 0.12944667041301727, -0.10998303443193436, 0.07563766837120056, 0.3476690351963043, 0.2972690761089325, 0.2949797809123993, -0.20069509744644165, -0.07644291967153549, -0.19641369581222534, -0.33162587881088257, 0.05944954231381416, 0.1357140839099884, -0.017300445586442947, -0.19003820419311523, 0.152774378657341, 0.0276925228536129, 0.37716951966285706, -0.4310583770275116, 0.23933976888656616, -0.3082425892353058, 0.13501454889774323, 0.05077813193202019, -0.26731839776039124, 0.01640365831553936, 0.0019292597426101565, 0.08461444824934006, 0.06955575942993164, -0.3597664535045624, -0.24047324061393738, -0.318688303232193, 0.11501196026802063, 0.11843977868556976, 0.29526254534721375, -0.08025828003883362, 0.13467523455619812, -0.10082527250051498, -0.14178155362606049, 0.07329276204109192, 0.3997761905193329, -0.18486616015434265, 0.26001212000846863, -0.04335246980190277, 0.294304221868515, 0.13778221607208252, -0.0841609463095665, 0.22185635566711426, 0.19799837470054626, 0.13520687818527222, 0.1358504593372345, -0.25213363766670227, -0.03493243455886841, 0.008018821477890015, 0.163923442363739, 0.2954919934272766, 0.045042093843221664, 0.32620880007743835, -0.3317495882511139, -0.04728294163942337, -0.11570612341165543, 0.23770417273044586, 0.15944169461727142, -0.1561022400856018, -0.1854163259267807, 0.16043397784233093, 0.3080505430698395, -0.37716612219810486, -0.07326031476259232, -0.1698320060968399, 0.10696900635957718, 0.21182076632976532, 0.2212182730436325, 0.24980707466602325, -0.29545241594314575, 0.23899739980697632, 0.1047464907169342, 0.3551609218120575, -0.11473368853330612, 0.31962624192237854, -0.4188712239265442, 0.048144321888685226, 0.03398660942912102, 0.32003915309906006, 0.13829421997070312, 0.24130919575691223, 0.2761482298374176, -0.13085544109344482, 0.7322459816932678, 0.20128804445266724, 0.028384258970618248, -0.10493165999650955, -0.019227774813771248, 0.1928396075963974, 0.034016918390989304, 0.015568515285849571, -0.10411936789751053, -0.1250295639038086, 0.4388265311717987, -0.20569421350955963, -0.04821367561817169, -0.21447435021400452, -0.21026159822940826, 0.016707561910152435, -0.0024714753963053226, -0.04328623041510582, -0.23297205567359924, -0.20160526037216187, -0.1873740553855896, 0.26551613211631775, -0.003235072595998645, 0.13056300580501556, -0.06825423985719681, 0.02900552935898304, -0.14517953991889954, -0.09511157870292664, 0.2740389406681061, 0.10354448854923248, -0.2165934145450592, -0.015715500339865685, 0.05460570752620697, 0.10203796625137329, 0.025749968364834785, 0.35047081112861633, 0.3399101197719574, 0.40870240330696106, -0.20742633938789368, 0.031667519360780716, -0.17504115402698517, 0.003870118875056505, -0.04999208450317383, 0.1995205134153366, 0.07984332740306854, -0.48127856850624084, 0.29946303367614746, 0.2601361572742462, -0.2384611964225769, -0.0848103016614914, 0.021951990202069283, -0.18372711539268494, -0.3299478590488434, 0.43435072898864746, 0.26888278126716614, 0.005752409342676401, -0.17434722185134888, -0.11973880231380463, -0.6330944895744324, 0.011094114743173122, 0.3685871362686157, -0.07538869976997375, 0.18844066560268402, -0.28978490829467773, 0.14854547381401062, 0.05456199869513512, 0.14471597969532013, 0.1944023221731186, 0.059114739298820496, -0.26368191838264465, -0.02690333127975464, -0.7193471789360046, 0.3840249180793762, 0.21254020929336548, 0.08737203478813171, 0.03873394802212715, 0.2004411667585373, -0.1806335598230362, 0.14413776993751526, 0.05892098695039749, 0.02601420134305954, -0.057050883769989014, -0.2295217365026474, -0.6657168865203857, 0.11367081850767136, -0.35408446192741394, 0.09681355953216553, 0.05873440206050873, -0.3082035183906555, -0.18850867450237274, -0.3494608402252197, 0.16559754312038422, 0.041864797472953796, -0.26237544417381287, 0.16702662408351898, 0.051426809281110764, 0.5180999636650085, -0.010691692121326923, 0.22910475730895996, 0.03990883007645607, -0.0865098387002945, -0.13308842480182648, -0.03279720991849899, -0.19950665533542633, 0.16765256226062775, -0.02121802605688572, 0.37105146050453186, -0.13064266741275787, 0.0637277141213417, -0.26649585366249084, 0.227019801735878, 0.3711465299129486, -0.46134307980537415, -0.16485343873500824, 0.32452645897865295, 0.04072289913892746, 0.1466798633337021, 0.05967358499765396, 0.37354251742362976, -0.005375740118324757, 0.5238207578659058, -0.33296144008636475, -0.3023940920829773, 0.5458354353904724, -0.3192129135131836, -0.32094019651412964, -0.2270156741142273, 0.6169535517692566, 0.20414131879806519, -0.17601121962070465, -0.5343707799911499, 0.04165360704064369, 0.3197528123855591, 0.0008441717363893986, -0.16479751467704773, 0.11021887511014938, -0.34023359417915344, 0.09092635661363602, -0.1789981722831726, 0.4063367545604706, -0.04388358071446419, 0.03164813667535782, 0.0902722179889679, -0.15809588134288788 ]
https://github.com/huggingface/datasets/issues/2737
SacreBLEU update
It seems that next release of `sacrebleu` (v2.0.0) will break our `datasets` implementation to compute it. See my Google Colab: https://colab.research.google.com/drive/1SKmvvjQi6k_3OHsX5NPkZdiaJIfXyv9X?usp=sharing I'm reopening this Issue and making a Pull Request to fix it.
With the latest release of [sacrebleu](https://github.com/mjpost/sacrebleu), `datasets.metrics.sacrebleu` is broken, and getting error. AttributeError: module 'sacrebleu' has no attribute 'DEFAULT_TOKENIZER' this happens since in new version of sacrebleu there is no `DEFAULT_TOKENIZER`, but sacrebleu.py tries to import it anyways. This can be fixed currently with fixing `sacrebleu==1.5.0` ## Steps to reproduce the bug ```python sacrebleu= datasets.load_metric('sacrebleu') predictions = ["It is a guide to action which ensures that the military always obeys the commands of the party"] references = ["It is a guide to action that ensures that the military will forever heed Party commands"] results = sacrebleu.compute(predictions=predictions, references=references) print(results) ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: Windows-10-10.0.19041-SP0 - Python version: Python 3.8.0 - PyArrow version: 5.0.0
33
SacreBLEU update With the latest release of [sacrebleu](https://github.com/mjpost/sacrebleu), `datasets.metrics.sacrebleu` is broken, and getting error. AttributeError: module 'sacrebleu' has no attribute 'DEFAULT_TOKENIZER' this happens since in new version of sacrebleu there is no `DEFAULT_TOKENIZER`, but sacrebleu.py tries to import it anyways. This can be fixed currently with fixing `sacrebleu==1.5.0` ## Steps to reproduce the bug ```python sacrebleu= datasets.load_metric('sacrebleu') predictions = ["It is a guide to action which ensures that the military always obeys the commands of the party"] references = ["It is a guide to action that ensures that the military will forever heed Party commands"] results = sacrebleu.compute(predictions=predictions, references=references) print(results) ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.11.0 - Platform: Windows-10-10.0.19041-SP0 - Python version: Python 3.8.0 - PyArrow version: 5.0.0 It seems that next release of `sacrebleu` (v2.0.0) will break our `datasets` implementation to compute it. See my Google Colab: https://colab.research.google.com/drive/1SKmvvjQi6k_3OHsX5NPkZdiaJIfXyv9X?usp=sharing I'm reopening this Issue and making a Pull Request to fix it.
[ -0.37390294671058655, 0.23291566967964172, 0.016678743064403534, -0.15293705463409424, 0.3844798803329468, -0.22800198197364807, 0.14111751317977905, 0.3971858322620392, -0.14342188835144043, 0.11723589152097702, 0.0634811595082283, 0.36753150820732117, -0.07474128156900406, -0.04313008114695549, -0.040088359266519547, 0.01820782758295536, 0.1286734938621521, 0.05681523680686951, 0.2899596691131592, 0.04796192795038223, -0.30014726519584656, 0.1294306516647339, -0.17817065119743347, -0.013769153505563736, -0.2298809289932251, 0.042828116565942764, -0.04314708709716797, -0.025548528879880905, -0.43519800901412964, -0.6946924924850464, 0.25925585627555847, 0.15049172937870026, -0.13314272463321686, 0.40437760949134827, -0.00011066939623560756, -0.06492411345243454, 0.29880520701408386, -0.17157723009586334, -0.4254035949707031, -0.409758061170578, -0.1907389760017395, -0.3609960377216339, 0.01385265588760376, -0.06211065128445625, 0.025858573615550995, -0.3896160423755646, -0.04137900471687317, 0.015013379044830799, 0.2358204573392868, 0.38323771953582764, 0.23949839174747467, 0.43028509616851807, -0.0015960363671183586, -0.33627572655677795, -0.11227192729711533, 0.06170298904180527, -0.04736248776316643, 0.15497905015945435, -0.09622425585985184, 0.06006721034646034, -0.01940235123038292, 0.03923649713397026, -0.18681377172470093, 0.11695060133934021, 0.08505060523748398, -0.19440336525440216, -0.2114238291978836, -0.02393302321434021, 0.08878175914287567, 0.01428795326501131, 0.3667896091938019, -0.3311086893081665, -0.47136351466178894, 0.22334294021129608, 0.01248815469443798, -0.3764418065547943, 0.07646730542182922, -0.10403885692358017, -0.042524851858615875, -0.13208630681037903, 0.02993742749094963, -0.09797801077365875, -0.045469220727682114, 0.014378347434103489, -0.2644267976284027, 0.30456310510635376, -0.24605818092823029, 0.03189399093389511, 0.04659220948815346, -0.046027157455682755, -0.4297216832637787, 0.1479370892047882, -0.2655234634876251, -0.008169794455170631, -0.41879239678382874, -0.08020680397748947, -0.027651561424136162, -0.27852970361709595, 0.1515285074710846, 0.46404191851615906, 0.07942815870046616, 0.2926972508430481, 0.12315621227025986, 0.1603953242301941, -0.09036910533905029, 0.5370445251464844, 0.1759423017501831, 0.19392596185207367, 0.20644748210906982, 0.20965953171253204, -0.010240849107503891, -0.021915914490818977, 0.0056204525753855705, -0.25018200278282166, 0.19660575687885284, 0.03811304271221161, 0.2866577208042145, -0.1028289645910263, -0.467641681432724, 0.15778449177742004, 0.22956351935863495, -0.03844144567847252, -0.07252441346645355, 0.33647283911705017, -0.24984627962112427, 0.21195852756500244, -0.19204142689704895, 0.21455253660678864, -0.20499983429908752, -0.376591295003891, -0.2550671398639679, -0.06664460152387619, -0.3085424602031708, -0.040744077414274216, 0.17037732899188995, 0.19109980762004852, 0.17259390652179718, -0.05404725298285484, 0.39291632175445557, -0.16103404760360718, 0.2505151033401489, -0.17407093942165375, 0.03728780150413513, 0.07197293639183044, -0.14833159744739532, -0.024700891226530075, 0.3736085593700409, -0.6256070733070374, -0.04046446830034256, -0.20145560801029205, -0.3299647271633148, -0.27987992763519287, 0.2722163796424866, 0.27419623732566833, -0.2737765312194824, -0.27943912148475647, -0.43841901421546936, 0.23551474511623383, -0.03627677261829376, 0.0633842870593071, -0.05323487147688866, -0.06616881489753723, -0.2227804809808731, -0.27176204323768616, 0.3008931279182434, 0.31672292947769165, -0.16383561491966248, -0.16712911427021027, 0.10636413097381592, -0.11237602680921555, 0.0829697847366333, -0.11654507368803024, 0.0046933614648878574, 0.23914571106433868, 0.006091169081628323, -0.020558303222060204, 0.27372175455093384, -0.2885119318962097, -0.5547581911087036, -0.04088437184691429, 0.06887025386095047, -0.2400222271680832, -0.026847712695598602, -0.11889774352312088, 0.6205394268035889, -0.07055944949388504, -0.02009861171245575, 0.01952379383146763, 0.06320562958717346, -0.24615877866744995, -0.17658132314682007, -0.4268583655357361, 0.014904607087373734, 0.007715907879173756, 0.6241722106933594, 0.05168985202908516, 0.2833349406719208, 0.3863052725791931, 0.1588708609342575, 0.04762342572212219, -0.0055341278202831745, 0.2308056801557541, 0.5782596468925476, -0.17438945174217224, 0.3671567440032959, -0.522891640663147, 0.0775708556175232, 0.21169276535511017, 0.12295611947774887, 0.00560404546558857, 0.0311192087829113, -0.15647271275520325, -0.42887070775032043, 0.05947186425328255, -0.14728021621704102, 0.042211923748254776, 0.20352348685264587, 0.1826677918434143, -0.11905794590711594, 0.22783179581165314, -0.28306514024734497, -0.005943681579083204, -0.18571598827838898, 0.2656485140323639, 0.1051390990614891, 0.2024465650320053, 0.0008291099802590907, -0.23617956042289734, 0.2215004861354828, 0.26951611042022705, 0.20521727204322815, -0.14915625751018524, -0.14762090146541595, 0.4282349944114685, 0.35341325402259827, 0.16934119164943695, 0.014657248742878437, 0.31675460934638977, 0.09624278545379639, -0.346317321062088, -0.1519583910703659, 0.48388537764549255, -0.035793084651231766, -0.08053858578205109, 0.08865208923816681, 0.30730798840522766, 0.1158766895532608, 0.06535685807466507, 0.09128362685441971, 0.2688134014606476, 0.06638006865978241, -0.04551851376891136, -0.19144558906555176, -0.25905540585517883, -0.13443207740783691, -0.24357406795024872, -0.028817446902394295, -0.22159452736377716, 0.09342591464519501, 0.0021052337251603603, 0.26942870020866394, 0.14489801228046417, 0.12678366899490356, 0.05667654424905777, -0.17790083587169647, -0.06772367656230927, -0.20787018537521362, 0.34148624539375305, 0.2781052887439728, 0.10377467423677444, 0.10547590255737305, 0.024011360481381416, -0.04262411594390869, -0.013424851931631565, 0.18055783212184906, 0.1803593933582306, -0.3909815549850464, 0.2518910765647888, 0.1336866021156311, 0.1309974193572998, -0.22399894893169403, 0.020626528188586235, 0.04299330338835716, 0.28130438923835754, -0.0507083460688591, 0.1824108362197876, -0.20472462475299835, 0.29968252778053284, -0.04625329747796059, -0.15843118727207184, -0.043679993599653244, -0.21146215498447418, 0.009243638254702091, -0.07662467658519745, 0.14956192672252655, 0.40882599353790283, -0.07326199859380722, 0.376926451921463, 0.055398277938365936, -0.06428619474172592, 0.18479669094085693, -0.06771286576986313, 0.01178217027336359, 0.026519199833273888, -0.021112753078341484, -0.24004222452640533, 0.28692251443862915, -0.1938944011926651, -0.09860017150640488, -0.3416164219379425, -0.4383988678455353, 0.16064615547657013, 0.061447903513908386, 0.4100450575351715, 0.24106381833553314, -0.2603682279586792, -0.022394707426428795, 0.041186340153217316, 0.18840980529785156, -0.2412293553352356, -0.03023422695696354, 0.3084079623222351, -0.1350417137145996, -0.18410147726535797, -0.04380691424012184, -0.4547433853149414, 0.021229516714811325, -0.3150005638599396, -0.03274978697299957, 0.24244748055934906, -0.07398290187120438, 0.09717981517314911, 0.19060756266117096, 0.13459855318069458, 0.13415728509426117, 0.048578519374132156, -0.20818385481834412, -0.10738515853881836, 0.41989031434059143, -0.18745675683021545, -0.4146061837673187, 0.1693682223558426, -0.09417027235031128, 0.30236706137657166, 0.12078199535608292, -0.2617175281047821, -0.3486176133155823, 0.022356465458869934, 0.08418318629264832, -0.11616207659244537, 0.0005432845209725201, 0.05138864740729332, 0.061598293483257294, -0.1983552724123001, -0.2202177792787552, -0.1936362087726593, -0.01198216900229454, -0.12114200741052628, 0.19301237165927887, -0.16967278718948364, -0.18349771201610565, 0.5552967190742493, 0.8563187718391418, 0.3107655942440033, -0.2941721975803375, -0.019801924005150795, 0.08782210946083069, 0.387137770652771, 0.22705067694187164, -0.3990764319896698, 0.1633845418691635, -0.41350340843200684, 0.1365126222372055, 0.3416534960269928, -0.006613792851567268, -0.04420483484864235, -0.044478509575128555, 0.05162184312939644, 0.09120190143585205, -0.16978955268859863, -0.2644241452217102, -0.02834647335112095, 0.2278471291065216, 0.0533500611782074, 0.20369774103164673, -0.24151557683944702, -0.08095856010913849, 0.3237984776496887, 0.36133673787117004, -0.32458630204200745, 0.1194319874048233, -0.3851373791694641, 0.29871925711631775, -0.2720153331756592, 0.25522565841674805, -0.3151363730430603, 0.3091469407081604, 0.1574489027261734, 0.09313690662384033, -0.17664818465709686, -0.2636002004146576, 0.23349550366401672, -0.09274642914533615, 0.04699781537055969, 0.16765150427818298, 0.07686018943786621, -0.17891338467597961, 0.029407797381281853, -0.20392663776874542, 0.1848766803741455, 0.3138543367385864, 0.3291065990924835, -0.16196973621845245, 0.02845391444861889, 0.09725524485111237, 0.2815678119659424, -0.23456424474716187, 0.11914235353469849, -0.42785587906837463, -0.07475889474153519, -0.013067730702459812, 0.07158488780260086, -0.2045692801475525, -0.022799838334321976, -0.027772240340709686, 0.1181156262755394, -0.5347540974617004, -0.21618403494358063, 0.3146810531616211, -0.12977449595928192, 0.1752554029226303, -0.2964361011981964, 0.16688744723796844, 0.05450737476348877, 0.04777368903160095, 0.5340456962585449, 0.2614957392215729, -0.014795802533626556, -0.4740158021450043, -0.07516879588365555, 0.010357728227972984, 0.2893355190753937, 0.18118707835674286, -0.35564935207366943, 0.1588560938835144, -0.025661788880825043, 0.191188246011734, -0.3821749985218048, 0.304013192653656, 0.26791805028915405, 0.12594382464885712, -0.07865729182958603, -0.2530212700366974, 0.07033112645149231, -0.07846318185329437, -0.10017094016075134, 0.12683850526809692, 0.17226849496364594, -0.05302713066339493, 0.37450534105300903, 0.18050841987133026, 0.93382328748703, 0.30483511090278625, -0.1176401674747467, 0.31127846240997314, -0.0014499661047011614, 0.14938980340957642, -0.338581919670105, 0.16848067939281464, -0.183923602104187, -0.3425353169441223, -0.015901224687695503, -0.07496916502714157, 0.2120801955461502, -0.14065229892730713, -0.4320197105407715, 0.19742055237293243, -0.03370589390397072, 0.1461147516965866, 0.21029570698738098, 0.14581117033958435, -0.0190560445189476, -0.06464739143848419, 0.2706266939640045, 0.22793184220790863, -0.09376576542854309, -0.04168505221605301, -0.1503833532333374, 0.12883177399635315, 0.1888366937637329, -0.04891550913453102, -0.32873597741127014, 0.03327346220612526, -0.2181818038225174, 0.14218632876873016, 0.1775965541601181, -0.028591355308890343, 0.08033992350101471, 0.29124078154563904, 0.6542515158653259, 0.2708210349082947, -0.20001816749572754, 0.18030591309070587, -0.15438835322856903, -0.0423726961016655, 0.007091664709150791, -0.09034842997789383, 0.44477835297584534, -0.04963889345526695, -0.10261155664920807, 0.03867364674806595, 0.10571027547121048, 0.05189378187060356, -0.02284824103116989, -0.03385598585009575, 0.23439651727676392, -0.21213273704051971, 0.15458564460277557, -0.04286883771419525, -0.033376652747392654, -0.4309326708316803, 0.16955001652240753, 0.017225705087184906, -0.20081143081188202, 0.3604370355606079, -0.028337880969047546, -0.2871696352958679, -0.02289465069770813, 0.5290213227272034, 0.03313262760639191, -0.3315863013267517, 0.36709529161453247, -0.3462989628314972, -0.17926909029483795, -0.30738529562950134, -0.12290013581514359, -0.19243313372135162, -0.22156637907028198, 0.19326896965503693, -0.32496407628059387, 0.16019009053707123, 0.24085533618927002, 0.32784533500671387, 0.35616961121559143, -0.20408959686756134, -0.13938148319721222, -0.23085416853427887, -0.27930349111557007, 0.07688772678375244, 0.0703209713101387, -0.039870452135801315, -0.31343984603881836, 0.028352422639727592, -0.09361688792705536, 0.3216766119003296, -0.3566920757293701, 0.29442352056503296, -0.2056773453950882, 0.005675900261849165, -0.015022293664515018, -0.18548794090747833, 0.07324869930744171, -0.10464828461408615, 0.02439694106578827, -0.040468327701091766, -0.41053247451782227, -0.14623533189296722, -0.3995324969291687, 0.1405792087316513, 0.137889102101326, 0.15816561877727509, 0.012812181375920773, 0.14629729092121124, -0.14912763237953186, -0.1367698311805725, 0.14554043114185333, 0.4514710307121277, -0.13997776806354523, 0.2465094029903412, -0.04638863354921341, 0.3047938644886017, 0.10065404325723648, -0.11715562641620636, 0.33085110783576965, 0.2518535554409027, 0.1103932112455368, 0.23837624490261078, -0.10554318875074387, -0.035417694598436356, -0.1213153526186943, 0.2168016880750656, 0.23681187629699707, -0.005042783450335264, 0.3941176235675812, -0.40781843662261963, -0.016747841611504555, -0.11769890040159225, 0.27646344900131226, 0.2374686598777771, -0.10019071400165558, -0.13474392890930176, 0.22281338274478912, 0.2545299530029297, -0.350598007440567, -0.14776086807250977, -0.12717197835445404, 0.2385992407798767, 0.15531565248966217, 0.15614499151706696, 0.4248194992542267, -0.3391852080821991, 0.19033701717853546, 0.07159854471683502, 0.30792370438575745, -0.21162199974060059, 0.5018631815910339, -0.27499228715896606, 0.14147427678108215, 0.08512496203184128, 0.3391650915145874, 0.10292809456586838, 0.32652533054351807, 0.34864601492881775, -0.08190061897039413, 0.7880045771598816, 0.24949347972869873, 0.04957950860261917, -0.10536376386880875, -0.11261025071144104, 0.29254400730133057, -0.034558117389678955, -0.0738915503025055, -0.022115230560302734, -0.0717444121837616, 0.4817577600479126, -0.1989733725786209, -0.09670717269182205, -0.23077961802482605, -0.2808464467525482, -0.024112006649374962, -0.12834487855434418, -0.0772293210029602, -0.28527283668518066, -0.21199102699756622, -0.13457007706165314, 0.21325407922267914, 0.011575834825634956, 0.0826343223452568, -0.08196011185646057, -0.01661676913499832, -0.13657596707344055, -0.048681337386369705, 0.2407117635011673, 0.12570065259933472, -0.2841624915599823, -0.13575972616672516, 0.03128557279706001, 0.03440633788704872, -0.004451788030564785, 0.4487251937389374, 0.4019376039505005, 0.3772942125797272, -0.1418691873550415, -0.0686006024479866, -0.08890963345766068, -0.0059411064721643925, -0.03372318297624588, 0.3227181136608124, -0.02998298592865467, -0.49649691581726074, 0.27227941155433655, 0.17689336836338043, -0.17944127321243286, -0.007889362052083015, 0.019650183618068695, -0.20826910436153412, -0.47139304876327515, 0.6122553944587708, 0.18008719384670258, -0.010726429522037506, -0.12044469267129898, -0.03489698842167854, -0.49720966815948486, 0.03671609237790108, 0.460799902677536, 0.003861584234982729, 0.1777041256427765, -0.191317617893219, 0.11931504309177399, 0.10589609295129776, 0.1353342980146408, 0.2601879835128784, -0.10213696956634521, -0.14430904388427734, -0.05439455434679985, -0.5523704886436462, 0.31121110916137695, 0.14016686379909515, 0.1420585960149765, 0.1100061684846878, 0.212339848279953, -0.15312626957893372, 0.13219401240348816, 0.01414864044636488, 0.023229146376252174, -0.038347210735082626, -0.3030208945274353, -0.6422166228294373, 0.12119295448064804, -0.24295012652873993, 0.04416241869330406, -0.05084612965583801, -0.34192174673080444, -0.21085980534553528, -0.4179999828338623, 0.06304539740085602, 0.06828337162733078, -0.28586345911026, 0.20873108506202698, -0.03728383034467697, 0.528123676776886, 0.037762731313705444, 0.13170120120048523, 0.06726253777742386, -0.1974608600139618, -0.20576460659503937, -0.09055624157190323, -0.2562338709831238, 0.19572460651397705, -0.1716298758983612, 0.3562580347061157, -0.2618243992328644, 0.03029876947402954, -0.25577878952026367, 0.2457086145877838, 0.35736361145973206, -0.44696447253227234, -0.3357784152030945, 0.3720015585422516, -0.08473996073007584, 0.13952064514160156, 0.11678626388311386, 0.39231348037719727, -0.12374494969844818, 0.5088219046592712, -0.26503366231918335, -0.2870718538761139, 0.5064149498939514, -0.30365392565727234, -0.31157737970352173, -0.3253054916858673, 0.6123327016830444, 0.2777467668056488, -0.1361265778541565, -0.5220629572868347, -0.0217417161911726, 0.3835979104042053, -0.01261548325419426, -0.20130199193954468, 0.11898939311504364, -0.34840309619903564, 0.12072724103927612, -0.08717814087867737, 0.3735610544681549, -0.061613235622644424, -0.10872965306043625, 0.18980519473552704, -0.07804830372333527 ]
https://github.com/huggingface/datasets/issues/2736
Add Microsoft Building Footprints dataset
Motivation: this can be a useful dataset for researchers working on climate change adaptation, urban studies, geography, etc. I'll see if I can figure out how to add it!
## Adding a Dataset - **Name:** Microsoft Building Footprints - **Description:** With the goal to increase the coverage of building footprint data available as open data for OpenStreetMap and humanitarian efforts, we have released millions of building footprints as open data available to download free of charge. - **Paper:** *link to the dataset paper if available* - **Data:** https://www.microsoft.com/en-us/maps/building-footprints - **Motivation:** this can be a useful dataset for researchers working on climate change adaptation, urban studies, geography, etc. Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). Reported by: @sashavor
29
Add Microsoft Building Footprints dataset ## Adding a Dataset - **Name:** Microsoft Building Footprints - **Description:** With the goal to increase the coverage of building footprint data available as open data for OpenStreetMap and humanitarian efforts, we have released millions of building footprints as open data available to download free of charge. - **Paper:** *link to the dataset paper if available* - **Data:** https://www.microsoft.com/en-us/maps/building-footprints - **Motivation:** this can be a useful dataset for researchers working on climate change adaptation, urban studies, geography, etc. Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). Reported by: @sashavor Motivation: this can be a useful dataset for researchers working on climate change adaptation, urban studies, geography, etc. I'll see if I can figure out how to add it!
[ -0.6230251789093018, 0.06842023134231567, -0.22410692274570465, -0.0011126779718324542, -0.06539216637611389, -0.06257518380880356, 0.10251719504594803, 0.2215956598520279, 0.11898241192102432, 0.3236287236213684, 0.22696058452129364, 0.2179020643234253, -0.23825138807296753, 0.40095993876457214, 0.08673715591430664, -0.0855378806591034, -0.003910629078745842, 0.025760412216186523, -0.3132505714893341, -0.059319350868463516, -0.2509876489639282, -0.006576283369213343, 0.0509936586022377, -0.10665285587310791, -0.17335684597492218, -0.2124452441930771, -0.2157185822725296, 0.04952039569616318, -0.19376248121261597, -0.1133073940873146, -0.14847499132156372, 0.09854742139577866, -0.03103344887495041, 0.17623910307884216, -0.00009505890193395317, 0.030341753736138344, 0.08736931532621384, -0.017328431829810143, -0.14955897629261017, 0.032293424010276794, -0.1998692750930786, -0.23572702705860138, -0.19138377904891968, -0.09952250123023987, -0.24828772246837616, -0.30550339818000793, 0.175394207239151, -0.16043031215667725, 0.16012701392173767, 0.1716117411851883, 0.42179086804389954, 0.09717892110347748, -0.005738422274589539, -0.08854177594184875, 0.14353428781032562, 0.3612351417541504, -0.17926082015037537, -0.11173233389854431, 0.2214246243238449, 0.05676531046628952, -0.11900801956653595, 0.3845180869102478, -0.13061782717704773, -0.06696394085884094, 0.15378399193286896, -0.0036900111008435488, 0.45314884185791016, -0.06923751533031464, 0.050234902650117874, 0.29140806198120117, 0.36967501044273376, -0.029720980674028397, 0.04310326650738716, -0.24197949469089508, -0.056937288492918015, -0.16335831582546234, 0.07827208936214447, 0.3049124777317047, 0.019215118139982224, 0.06707029044628143, -0.3540784418582916, -0.2523002326488495, -0.14280380308628082, 0.2731841206550598, 0.009957309812307358, 0.10908304154872894, -0.26368600130081177, -0.13679857552051544, -0.057241395115852356, -0.011547491885721684, -0.0016432373085990548, -0.04196797311306, -0.040361929684877396, -0.10713841021060944, 0.15893538296222687, -0.2846084237098694, 0.26757925748825073, 0.3740531802177429, 0.24397966265678406, 0.0790722668170929, 0.21713611483573914, -0.015632247552275658, 0.1460668444633484, 0.09362311661243439, 0.030221737921237946, -0.005209523253142834, -0.2541324198246002, -0.06912387162446976, 0.08506511151790619, 0.0107920216396451, -0.036097005009651184, -0.01566440612077713, 0.08075803518295288, -0.061335545033216476, -0.3894498646259308, 0.03956644609570503, 0.1997944861650467, -0.14499960839748383, -0.23508848249912262, -0.16581158339977264, -0.09544400870800018, 0.06733284145593643, 0.21278053522109985, 0.19052451848983765, 0.15026433765888214, -0.2285732626914978, -0.06287676841020584, 0.1328580677509308, 0.08770814538002014, 0.00780487759038806, -0.17721976339817047, -0.02245798334479332, -0.19228951632976532, 0.27822402119636536, 0.17238596081733704, 0.10652734339237213, 0.3462498188018799, -0.2274959832429886, 0.12220192700624466, 0.10394857078790665, 0.2224634736776352, 0.2691272795200348, 0.3936697542667389, 0.0028165250550955534, -0.1251039355993271, -0.3085378408432007, -0.005026666447520256, 0.07256388664245605, -0.30817511677742004, -0.1603621542453766, -0.1034092977643013, -0.1174108162522316, -0.6414912343025208, 0.3258069157600403, 0.016704412177205086, -0.13063333928585052, 0.3455614745616913, 0.4194294214248657, -0.08072437345981598, 0.10153623670339584, 0.10991477221250534, 0.5468340516090393, -0.2805463373661041, -0.18694435060024261, 0.07105455547571182, 0.3174802362918854, 0.21712902188301086, -0.17847751080989838, -0.0948304682970047, 0.05875733122229576, -0.13998201489448547, -0.21577341854572296, -0.02450547367334366, 0.3536583483219147, -0.21405217051506042, -0.1769830733537674, 0.025172073394060135, -0.09918522834777832, -0.1977202147245407, 0.024936651811003685, -0.48239895701408386, -0.3185202181339264, 0.1451166272163391, 0.0448160246014595, 0.21960441768169403, -0.02345496229827404, -0.1469697207212448, 0.29883888363838196, -0.17106081545352936, 0.09042748808860779, -0.2635374367237091, -0.38525301218032837, -0.07476747035980225, 0.2344444841146469, -0.011259759776294231, 0.06741432845592499, 0.22076985239982605, 0.1787237972021103, 0.023979760706424713, -0.1878061145544052, 0.22587960958480835, 0.2710597813129425, 0.19628222286701202, -0.06875531375408173, -0.35884714126586914, -0.18369336426258087, -0.21544209122657776, -0.269671767950058, -0.32073062658309937, -0.1458590030670166, 0.09782709926366806, -0.17330141365528107, 0.011949852108955383, -0.14368318021297455, -0.1488267183303833, -0.034343115985393524, 0.4483796954154968, 0.12323509156703949, 0.12593954801559448, 0.012179412879049778, 0.1993553191423416, -0.14707857370376587, -0.0002670667599886656, -0.07556784898042679, 0.11664888262748718, 0.28086793422698975, -0.13940726220607758, -0.022954942658543587, 0.12396645545959473, 0.30527329444885254, 0.054375432431697845, -0.07557611912488937, 0.25109896063804626, 0.24712234735488892, -0.4497467279434204, 0.13956542313098907, 0.2692776918411255, 0.6203433275222778, 0.06878946721553802, -0.2716166079044342, 0.28169548511505127, 0.08529318869113922, -0.17504966259002686, 0.0361088402569294, -0.3376237154006958, 0.18358878791332245, 0.22950921952724457, 0.02097010612487793, -0.17513374984264374, 0.31012725830078125, -0.07075414806604385, -0.2436031550168991, -0.12676846981048584, -0.38938623666763306, 0.08520451933145523, 0.1160212904214859, 0.02404412068426609, -0.0940999686717987, 0.06169351935386658, 0.20429357886314392, 0.16076628863811493, 0.041861169040203094, 0.3469270169734955, 0.07884280383586884, -0.3081943392753601, 0.03826499730348587, 0.14875240623950958, -0.09597089141607285, 0.08080341666936874, 0.34390223026275635, 0.22792555391788483, 0.00972305703908205, 0.09241577982902527, -0.07741673290729523, 0.1614508032798767, 0.170250803232193, -0.08187928795814514, 0.1255161613225937, 0.09866891801357269, 0.07064786553382874, -0.6637937426567078, 0.03666062280535698, 0.09854050725698471, -0.051181647926568985, 0.08997572958469391, -0.17141111195087433, -0.034753311425447464, -0.4059111177921295, -0.09672145545482635, -0.08047250658273697, -0.017809603363275528, -0.23739826679229736, 0.27164629101753235, 0.021604036912322044, -0.23880018293857574, 0.22448888421058655, 0.15549443662166595, 0.31487759947776794, -0.1643856316804886, 0.023154418915510178, -0.06392887979745865, -0.3015562891960144, 0.03909488022327423, 0.3722413182258606, 0.15927937626838684, 0.07966560870409012, 0.5405752658843994, -0.2245626598596573, 0.5198448896408081, -0.5102853178977966, -0.611265242099762, 0.09571124613285065, 0.15149159729480743, -0.2901204824447632, 0.22866803407669067, 0.14497922360897064, 0.11102510243654251, -0.19334180653095245, 0.03160301223397255, -0.03013058565557003, -0.04878564924001694, -0.24932187795639038, -0.22771495580673218, -0.18052458763122559, -0.24563781917095184, 0.11132016777992249, -0.01207833830267191, -0.5066965222358704, 0.2648170590400696, 0.24031643569469452, 0.03549211472272873, 0.10746845602989197, 0.11581790447235107, 0.2038118541240692, -0.6048652529716492, 0.22346989810466766, -0.11039559543132782, -0.37301552295684814, 0.04821592941880226, -0.39680272340774536, -0.09386520832777023, -0.15087346732616425, -0.15971645712852478, -0.02154693566262722, -0.0643768161535263, -0.36613035202026367, -0.257931649684906, -0.18498212099075317, 0.25952890515327454, 0.319180965423584, 0.0671483501791954, 0.4511183202266693, 0.3124196231365204, -0.2581287920475006, -0.03135240823030472, -0.015291260555386543, -0.015202454291284084, 0.31276828050613403, 0.3218161165714264, -0.11031994968652725, -0.10758929699659348, -0.03127967193722725, 0.24476832151412964, 0.2708536982536316, -0.2615630030632019, 0.3958714008331299, -0.09305956959724426, 0.5226427316665649, -0.008900816552340984, -0.18385088443756104, 0.3940802812576294, 0.030067672953009605, 0.09975674003362656, 0.46938735246658325, 0.28890249133110046, -0.05971899628639221, -0.062360841780900955, 0.025097733363509178, -0.3260587453842163, -0.20323048532009125, -0.056526243686676025, 0.00137922796420753, 0.19068464636802673, -0.07347989827394485, -0.18453086912631989, -0.3187710642814636, -0.12138144671916962, 0.48136383295059204, 0.14176629483699799, 0.11071296781301498, -0.19067810475826263, 0.0330682173371315, 0.28598490357398987, -0.4778061509132385, 0.1688166707754135, -0.03840824216604233, -0.6828499436378479, -0.5322360396385193, -0.023267650976777077, -0.1445317268371582, 0.045076463371515274, 0.18625891208648682, -0.15287479758262634, -0.08856838941574097, -0.143815279006958, 0.16355890035629272, 0.08436904847621918, 0.15853579342365265, -0.0749700665473938, 0.0854644700884819, 0.21126624941825867, 0.47354960441589355, -0.27382439374923706, 0.005297760013490915, 0.2657744288444519, 0.2148848921060562, -0.07576611638069153, 0.28711339831352234, 0.1648852527141571, -0.3182857632637024, -0.2095271646976471, 0.22213993966579437, -0.015563692897558212, 0.1223190575838089, 0.4529215395450592, -0.18209382891654968, 0.11764145642518997, 0.0006024156464263797, -0.07115916162729263, -0.07669731974601746, 0.3309122920036316, 0.2759960889816284, 0.06826972216367722, 0.1407667100429535, 0.3495260775089264, 0.12464970350265503, 0.41008055210113525, -0.3319397568702698, 0.08672773838043213, 0.15389703214168549, -0.306965172290802, 0.22428302466869354, 0.2957187294960022, 0.16073906421661377, 0.007513863034546375, -0.04885976016521454, 0.07380817085504532, -0.5192338824272156, 0.1320585310459137, 0.060136742889881134, 0.2293597161769867, 0.08017729967832565, 0.15532580018043518, 0.30706390738487244, 0.05838615447282791, -0.22211939096450806, 0.2683372497558594, -0.027529971674084663, -0.2147565335035324, 0.20575520396232605, 0.21472805738449097, 0.7943813800811768, -0.027902523055672646, 0.05859893932938576, 0.35630032420158386, -0.18251828849315643, -0.1278187483549118, 0.05486195906996727, -0.14305676519870758, 0.028426850214600563, -0.28345584869384766, -0.02551204152405262, 0.010905185714364052, -0.01591123454272747, 0.24915717542171478, -0.3056860566139221, -0.19125010073184967, -0.02281705103814602, 0.16673870384693146, -0.08222604542970657, 0.11994203180074692, 0.1780029833316803, -0.25805822014808655, 0.041980668902397156, 0.31083789467811584, 0.1387300193309784, 0.26889023184776306, -0.0310555137693882, -0.1904047727584839, 0.3126850128173828, -0.14185963571071625, -0.2654380202293396, -0.08259091526269913, -0.029753882437944412, -0.2243078052997589, -0.11229774355888367, 0.014910600148141384, -0.07593246549367905, 0.0886697843670845, 0.3624706566333771, -0.08031807839870453, -0.3157358765602112, 0.20204749703407288, 0.10630325227975845, 0.005107839126139879, -0.13764455914497375, 0.0983407199382782, -0.13805146515369415, -0.1262560784816742, 0.1630842089653015, 0.007468142546713352, -0.046204809099435806, -0.12495201826095581, -0.4165939688682556, -0.11330629140138626, 0.22883759438991547, -0.005354067776352167, 0.525333046913147, 0.053220126777887344, -0.06984200328588486, -0.270727276802063, 0.284309983253479, 0.16143926978111267, 0.13584494590759277, 0.04913683608174324, 0.28378039598464966, -0.12204527109861374, -0.16720764338970184, 0.10385635495185852, 0.025980938225984573, 0.14190009236335754, -0.18991528451442719, -0.0006591000710614026, -0.21388843655586243, -0.4174344837665558, 0.033238932490348816, -0.06085161492228508, -0.045749809592962265, 0.11621595174074173, 0.1164601668715477, -0.22965691983699799, 0.15698722004890442, 0.3926699757575989, 0.14788083732128143, -0.029228124767541885, -0.0863291323184967, -0.18770860135555267, -0.3688640892505646, 0.2121437042951584, -0.12604182958602905, 0.4057598412036896, 0.006009774748235941, 0.018743112683296204, 0.13539426028728485, 0.03412701189517975, -0.5436127781867981, -0.025735175237059593, -0.22125540673732758, 0.09510533511638641, 0.13140816986560822, -0.2149345427751541, 0.23415759205818176, 0.030850596725940704, 0.20144514739513397, -0.2828035056591034, -0.27027207612991333, -0.3398700952529907, -0.1597588062286377, 0.06962180137634277, -0.10337288677692413, 0.17810767889022827, 0.32612717151641846, 0.06301309168338776, -0.14805938303470612, -0.12497060000896454, 0.01296940352767706, -0.13507027924060822, 0.008386174216866493, -0.1960858255624771, 0.0350237712264061, -0.02642541006207466, -0.0611906498670578, -0.017374921590089798, -0.023532146587967873, 0.04242175444960594, -0.11376427114009857, 0.17664985358715057, -0.13867799937725067, -0.12076195329427719, 0.18937979638576508, 0.21292583644390106, 0.35057976841926575, -0.2509460151195526, 0.27591344714164734, 0.27760595083236694, -0.1396074891090393, 0.3650396764278412, 0.007303574588149786, -0.40455302596092224, -0.07957721501588821, 0.17723987996578217, 0.03237377852201462, 0.427722692489624, -0.408665269613266, 0.011717681773006916, 0.1282573640346527, -0.1319141536951065, 0.41781485080718994, 0.16233092546463013, 0.2632782459259033, -0.19112955033779144, 0.08693761378526688, -0.01088848989456892, -0.08888603746891022, 0.0302266888320446, -0.004423133097589016, 0.27147749066352844, -0.007616148795932531, -0.14239586889743805, 0.37763556838035583, 0.18214760720729828, 0.12866437435150146, 0.08054747432470322, 0.0678061991930008, 0.37053942680358887, -0.13802647590637207, 0.02759573794901371, 0.1527683287858963, 0.0977482721209526, 0.5251346230506897, 0.05188535153865814, 0.21397848427295685, 0.06605831533670425, 0.0854439064860344, 0.20816244184970856, -0.08041954785585403, -0.052851613610982895, -0.33781641721725464, 0.4252864718437195, -0.008062402717769146, -0.12043004482984543, -0.17327162623405457, -0.12806768715381622, -0.015262220054864883, -0.12007627636194229, 0.24464406073093414, -0.2435305416584015, 0.19860786199569702, -0.23776374757289886, 0.23745375871658325, -0.023641251027584076, -0.04735923931002617, 0.0158293005079031, 0.23979689180850983, -0.1980520784854889, 0.2210668921470642, -0.25602221488952637, -0.13757409155368805, 0.0605703741312027, 0.4935970604419708, 0.1389361023902893, -0.11531579494476318, -0.1423373818397522, 0.026999562978744507, -0.10330967605113983, -0.12550579011440277, -0.32972103357315063, 0.02404223196208477, 0.021496856585144997, -0.1325966715812683, 0.4272671341896057, 0.268767386674881, -0.30662935972213745, -0.03208298981189728, -0.15068522095680237, -0.024407273158431053, 0.2835615575313568, -0.25379976630210876, -0.0056198472157120705, -0.05254001542925835, -0.2152954339981079, -0.09217410534620285, -0.2154504656791687, -0.2862650454044342, -0.04554859176278114, -0.20453204214572906, 0.06575869023799896, -0.03758138045668602, 0.17877687513828278, -0.009369698353111744, 0.2979603707790375, 0.24899916350841522, -0.02596360631287098, 0.0779222622513771, -0.4312405586242676, -0.24811550974845886, 0.20716850459575653, -0.2502093017101288, 0.03657912090420723, 0.05019162595272064, -0.054002318531274796, 0.20509374141693115, 0.1456218659877777, -0.07173656672239304, 0.04596041887998581, 0.03195181488990784, -0.11868932843208313, -0.4050329923629761, 0.0898735299706459, 0.15612725913524628, 0.13250435888767242, 0.19255459308624268, -0.15781362354755402, 0.015129374340176582, 0.049785710871219635, 0.28832370042800903, -0.36313197016716003, 0.04060836508870125, -0.514116644859314, -0.16008201241493225, 0.16615448892116547, -0.22040198743343353, -0.045540422201156616, -0.3230525255203247, -0.32448989152908325, -0.0422532856464386, -0.07649839669466019, -0.09236528724431992, -0.02775917761027813, 0.2801039516925812, -0.03296921029686928, -0.1189933493733406, 0.06499938666820526, 0.07127156853675842, 0.13534919917583466, 0.2421405017375946, 0.11405617743730545, -0.0565740205347538, 0.2857166826725006, -0.10978531837463379, 0.18792124092578888, 0.08291447162628174, 0.08980104327201843, -0.03435613960027695, -0.2090671956539154, 0.18673425912857056, -0.29172033071517944, 0.3974740207195282, -0.32621777057647705, 0.006265270058065653, 0.07561536133289337, 0.08509872108697891, -0.13855308294296265, -0.06762856245040894, -0.12202395498752594, 0.022750619798898697, 0.1825365126132965, -0.010760310105979443, 0.08173466473817825, 0.13836073875427246, -0.14363142848014832, -0.12322443723678589, 0.007433210499584675, 0.2546881139278412, 0.04749114066362381, -0.1564384251832962, -0.14127646386623383, -0.30025503039360046 ]
https://github.com/huggingface/datasets/issues/2730
Update CommonVoice with new release
Does anybody know if there is a bundled link, which would allow direct data download instead of manual? Something similar to: `https://voice-prod-bundler-ee1969a6ce8178826482b88e843c335139bd3fb4.s3.amazonaws.com/cv-corpus-6.1-2020-12-11/ab.tar.gz` ? cc @patil-suraj
## Adding a Dataset - **Name:** CommonVoice mid-2021 release - **Description:** more data in CommonVoice: Languages that have increased the most by percentage are Thai (almost 20x growth, from 12 hours to 250 hours), Luganda (almost 9x growth, from 8 to 80), Esperanto (7x growth, from 100 to 840), and Tamil (almost 8x, from 24 to 220). - **Paper:** https://discourse.mozilla.org/t/common-voice-2021-mid-year-dataset-release/83812 - **Data:** https://commonvoice.mozilla.org/en/datasets - **Motivation:** More data and more varied. I think we just need to add configs in the existing dataset script. Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md).
25
Update CommonVoice with new release ## Adding a Dataset - **Name:** CommonVoice mid-2021 release - **Description:** more data in CommonVoice: Languages that have increased the most by percentage are Thai (almost 20x growth, from 12 hours to 250 hours), Luganda (almost 9x growth, from 8 to 80), Esperanto (7x growth, from 100 to 840), and Tamil (almost 8x, from 24 to 220). - **Paper:** https://discourse.mozilla.org/t/common-voice-2021-mid-year-dataset-release/83812 - **Data:** https://commonvoice.mozilla.org/en/datasets - **Motivation:** More data and more varied. I think we just need to add configs in the existing dataset script. Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). Does anybody know if there is a bundled link, which would allow direct data download instead of manual? Something similar to: `https://voice-prod-bundler-ee1969a6ce8178826482b88e843c335139bd3fb4.s3.amazonaws.com/cv-corpus-6.1-2020-12-11/ab.tar.gz` ? cc @patil-suraj
[ -0.38971200585365295, 0.06890030950307846, -0.0436253659427166, -0.1407744437456131, -0.007545230910181999, 0.23610416054725647, -0.08662787079811096, 0.4099913239479065, -0.033252350986003876, 0.05526592209935188, -0.22682106494903564, 0.12674452364444733, -0.13749602437019348, 0.375757098197937, 0.31536534428596497, -0.10255123674869537, -0.02217964455485344, 0.011623289436101913, 0.3541308641433716, -0.20094990730285645, -0.15251290798187256, 0.15630793571472168, 0.034892503172159195, -0.07085136324167252, -0.06756290793418884, 0.08458436280488968, -0.10823008418083191, 0.05259976163506508, -0.12770359218120575, -0.3679586350917816, 0.1854725182056427, 0.31870827078819275, 0.25171351432800293, 0.24694429337978363, -0.0001240131532540545, -0.41641873121261597, 0.1370139718055725, -0.1946641355752945, -0.5836832523345947, -0.1107829362154007, -0.2506597936153412, 0.03729752451181412, -0.1177457794547081, 0.1902163326740265, 0.13054248690605164, -0.019920624792575836, 0.04736470431089401, -0.38058000802993774, 0.03969009593129158, 0.1962829828262329, 0.060404352843761444, -0.1646222472190857, 0.1000421866774559, -0.23729710280895233, 0.035266678780317307, 0.16346333920955658, -0.0934528186917305, 0.3102361261844635, 0.6635541915893555, 0.22577489912509918, 0.24867820739746094, 0.044547609984874725, 0.15101255476474762, -0.3072904348373413, -0.00048212267574854195, 0.1340317577123642, -0.25014445185661316, -0.4530814588069916, 0.1524716019630432, 0.5523592233657837, 0.691402018070221, -0.18171490728855133, -0.3851208984851837, -0.11646337807178497, 0.13343779742717743, -0.5129930377006531, -0.11194933205842972, 0.06477737426757812, -0.046077121049165726, 0.1696074903011322, 0.22098292410373688, -0.4564380347728729, -0.008320745080709457, 0.4535563290119171, 0.20181936025619507, 0.1871568262577057, 0.05459170043468475, -0.13760438561439514, 0.36189696192741394, -0.09422983229160309, -0.07137762010097504, 0.05588848516345024, 0.02562800608575344, 0.4348694980144501, 0.07622532546520233, -0.3975178897380829, -0.011452649720013142, -0.5160592794418335, 0.4938575327396393, -0.2566070854663849, 0.08373434096574783, 0.15182660520076752, -0.6276648640632629, -0.12404073029756546, 0.3796099126338959, -0.2602550685405731, -0.14621147513389587, 0.07010472565889359, 0.3797551989555359, 0.17783524096012115, 0.8164598345756531, 0.14960193634033203, -0.26812514662742615, 0.06601555645465851, -0.20713241398334503, 0.1514519453048706, -0.015298106707632542, -0.3966105580329895, -0.11770755797624588, -0.07707618921995163, 0.0033966228365898132, 0.07959103584289551, -0.31442829966545105, 0.044423285871744156, 0.09496356546878815, 0.12160468101501465, -0.02402508817613125, 0.15725375711917877, 0.11449519544839859, -0.26412665843963623, 0.1021915003657341, 0.14616383612155914, 0.044449832290410995, 0.16309289634227753, 0.07741173356771469, -0.6380669474601746, 0.05432863533496857, 0.07337561249732971, 0.30851951241493225, -0.11258573830127716, -0.3097590208053589, 0.2996522784233093, -0.3038824200630188, -0.14780153334140778, 0.03841409087181091, 0.15206003189086914, -0.2544488310813904, 0.3241442143917084, -0.3895079791545868, 0.12453657388687134, -0.06252147257328033, -0.4871846139431, -0.1174953356385231, 0.053168367594480515, 0.15202896296977997, -0.3868255317211151, 0.3178744614124298, 0.2663358151912689, -0.21619178354740143, -0.30905210971832275, -0.0580611377954483, 0.22289790213108063, -0.39560896158218384, 0.029081018641591072, 0.068804070353508, 0.5167530179023743, -0.6113048791885376, -0.09702294319868088, -0.39221546053886414, 0.13420557975769043, -0.2091185301542282, 0.12524963915348053, -0.028499504551291466, 0.05807330086827278, -0.43657851219177246, 0.05880367383360863, 0.5816565155982971, -0.5174857378005981, -0.27999499440193176, 0.2649063766002655, -0.22131963074207306, -0.20881283283233643, 0.19403600692749023, 0.12734860181808472, 0.4670025110244751, -0.01272444799542427, 0.17670011520385742, 0.17522728443145752, -0.25566166639328003, 0.017500802874565125, -0.0913149043917656, -0.4835681617259979, -0.26573824882507324, 0.16387926042079926, 0.14795862138271332, -0.12753480672836304, 0.12755702435970306, -0.020959990099072456, 0.47389793395996094, -0.05392659083008766, 0.29503190517425537, 0.20588292181491852, 0.3243654668331146, 0.03204377740621567, -0.02171485871076584, 0.10407758504152298, -0.3587939143180847, 0.08177381008863449, 0.03269696608185768, 0.16760139167308807, 0.07037679105997086, -0.3706408143043518, -0.26487383246421814, -0.3648483157157898, -0.04551338404417038, -0.11067579686641693, -0.07405835390090942, 0.2317182868719101, 0.2323177456855774, -0.19913704693317413, -0.21433626115322113, 0.20449350774288177, 0.2810826003551483, 0.11021493375301361, 0.05403894931077957, 0.013870768249034882, -0.03842794522643089, 0.11226959526538849, 0.23210380971431732, 0.16266284883022308, 0.2238749861717224, -0.2100113332271576, -0.1075393557548523, 0.27781859040260315, -0.004099336918443441, 0.6636210083961487, 0.22375190258026123, 0.21092869341373444, 0.20584172010421753, 0.07632142305374146, 0.21379487216472626, 0.24491901695728302, -0.15731897950172424, 0.0034840600565075874, -0.2436186969280243, 0.282846063375473, 0.30075228214263916, 0.0037647117860615253, 0.15462230145931244, 0.23079949617385864, 0.13048823177814484, 0.07463173568248749, 0.03621400520205498, -0.12235748767852783, -0.15988141298294067, 0.05850610136985779, 0.35951894521713257, -0.14867423474788666, -0.5801505446434021, 0.37501680850982666, 0.4067930281162262, -0.13008815050125122, 0.15982134640216827, 0.24389521777629852, -0.3069537281990051, -0.15934690833091736, -0.012757347896695137, 0.1984671801328659, 0.15147341787815094, 0.2299785315990448, 0.09104911983013153, 0.1847022920846939, 0.2917861044406891, -0.0427493117749691, 0.2333383858203888, -0.07797654718160629, -0.09760590642690659, 0.4231739938259125, -0.18699778616428375, 0.13008899986743927, -0.34336960315704346, -0.17469705641269684, -0.015360301360487938, -0.054922979325056076, 0.0351477675139904, -0.4609864354133606, 0.020064543932676315, 0.1403174102306366, -0.4364107549190521, -0.040547601878643036, -0.06315109133720398, -0.3243236243724823, 0.21860374510288239, 0.3028697669506073, -0.03496425598859787, 0.0587984099984169, -0.36072343587875366, 0.29805436730384827, -0.3364136517047882, -0.4129265248775482, -0.09405121207237244, -0.012242703698575497, -0.24890337884426117, 0.02775256521999836, 0.044979047030210495, -0.2859223783016205, 0.23504744470119476, -0.22726306319236755, 0.19476662576198578, -0.4353836178779602, -0.4220513105392456, 0.16088296473026276, 0.016744984313845634, -0.42778831720352173, 0.13131366670131683, -0.2983762323856354, 0.2825028896331787, 0.015757540240883827, -0.3078209161758423, -0.12292905151844025, -0.18847139179706573, -0.4340612292289734, -0.13743609189987183, 0.22213095426559448, 0.19265371561050415, -0.732844889163971, -0.3953498303890228, -0.45879775285720825, 0.11818190664052963, -0.2502518892288208, 0.07050133496522903, 0.006602458655834198, -0.07580292969942093, -0.12328694015741348, -0.21714429557323456, 0.24143029749393463, -0.279049813747406, 0.21036286652088165, 0.29446980357170105, -0.1946479231119156, -0.3588213324546814, 0.0477152094244957, -0.21695591509342194, 0.26036977767944336, 0.05205357447266579, -0.3211285471916199, 0.4290323257446289, 0.15371735394001007, 0.2312142252922058, -0.041788872331380844, -0.036240264773368835, 0.5302616357803345, 0.2607542872428894, -0.10301157832145691, 0.03799740597605705, -0.05042250454425812, -0.23901362717151642, 0.2745099663734436, 0.2551524043083191, 0.04668130353093147, 0.2509111762046814, 0.10008670389652252, 0.7929115891456604, 0.06994203478097916, 0.09173238277435303, 0.01136774942278862, -0.13234810531139374, 0.36991748213768005, 0.08806917816400528, -0.16677075624465942, -0.07132761180400848, -0.10056141763925552, 0.17869950830936432, 0.33591917157173157, 0.2163040041923523, -0.062399525195360184, -0.19441485404968262, -0.1485820859670639, -0.12404543906450272, -0.050799738615751266, 0.08704984933137894, -0.12798258662223816, 0.39724352955818176, 0.2608758211135864, -0.026205727830529213, -0.11852234601974487, -0.004402244929224253, 0.2155894637107849, 0.15494494140148163, 0.09861837327480316, -0.010255410335958004, 0.3189978301525116, 0.45215848088264465, -0.34677043557167053, 0.1879073828458786, 0.32920753955841064, 0.17281700670719147, -0.39322933554649353, 0.014985230751335621, -0.007026993203908205, 0.13476496934890747, 0.2318742871284485, -0.21940496563911438, -0.10797474533319473, -0.05506189540028572, -0.008059004321694374, -0.07177108526229858, 0.1767873466014862, -0.27481886744499207, 0.027945762500166893, 0.48731687664985657, -0.10699307918548584, -0.30117523670196533, -0.08605390787124634, 0.50953209400177, 0.18477317690849304, -0.07679188996553421, 0.13221366703510284, 0.2080124318599701, -0.13583649694919586, -0.35488593578338623, 0.056572284549474716, -0.15957117080688477, 0.05382250249385834, -0.1640256941318512, -0.10181194543838501, 0.40331757068634033, -0.03671760484576225, 0.05232870206236839, -0.31070712208747864, 0.1715807467699051, 0.3582841455936432, 0.25560295581817627, 0.18654870986938477, 0.04458913579583168, 0.43223655223846436, 0.4311975836753845, 0.022035637870430946, -0.22291623055934906, 0.03723495826125145, -0.5398788452148438, 0.391156941652298, 0.4940473139286041, 0.12063060700893402, -0.12655602395534515, -0.03288557007908821, -0.2956705093383789, 0.10371091216802597, -0.036550071090459824, 0.35443630814552307, 0.21914757788181305, -0.5651628971099854, -0.4353218078613281, 0.16286467015743256, 0.1665746420621872, -0.2549287974834442, 0.2579559087753296, -0.11418484151363373, -0.15823543071746826, -0.03158578649163246, -0.28023964166641235, 1.1013669967651367, 0.2786722183227539, 0.3372335433959961, -0.009383263066411018, -0.34185218811035156, 0.19729433953762054, -0.24263761937618256, -0.09238574653863907, -0.14861039817333221, 0.21554818749427795, -0.20856137573719025, 0.06378031522035599, -0.2620517909526825, 0.031401440501213074, -0.2880210280418396, 0.4694891571998596, 0.06652037054300308, -0.021671826019883156, 0.26361456513404846, 0.46059364080429077, -0.22471269965171814, -0.343502402305603, 0.22733621299266815, -0.008492651395499706, 0.12544827163219452, 0.6293452978134155, 0.040924280881881714, -0.39165768027305603, -0.29454588890075684, -0.36581531167030334, -0.40831926465034485, 0.22427856922149658, 0.03149440884590149, -0.06023712083697319, -0.13369737565517426, -0.04980593919754028, 0.3182791769504547, -0.1848175823688507, 0.3094368577003479, -0.0069451346062123775, -0.2686251997947693, 0.03552225977182388, 0.17789816856384277, -0.12503618001937866, 0.31061655282974243, 0.03637132793664932, 0.08620646595954895, -0.09547608345746994, -0.2484399676322937, 0.16626986861228943, -0.054573267698287964, -0.27928248047828674, -0.11991379410028458, -0.18250516057014465, 0.03520664572715759, -0.2328575700521469, -0.26512637734413147, 0.3359256088733673, -0.2981412708759308, -0.2906298339366913, 0.03176983818411827, 0.16753089427947998, -0.1748848557472229, -0.07929624617099762, 0.3043960928916931, 0.05758064240217209, -0.1693573296070099, 0.6294351816177368, 0.07926393300294876, -0.2609728276729584, 0.42556867003440857, 0.013098787516355515, -0.09967858344316483, -0.16571088135242462, 0.07356439530849457, 0.2148168832063675, -0.5074222683906555, -0.08700185269117355, -0.20995008945465088, -0.02436286024749279, -0.23539705574512482, 0.3598628044128418, 0.005256349220871925, 0.316945880651474, -0.32628685235977173, -0.23828242719173431, -0.39974474906921387, 0.13710494339466095, 0.013098525814712048, 0.39534226059913635, -0.05263226851820946, 0.002427041530609131, 0.2174752950668335, -0.174949049949646, -0.19948765635490417, 0.12334880232810974, 0.36942586302757263, -0.1273794025182724, 0.6541805267333984, 0.2961564362049103, 0.2610889673233032, -0.008646553382277489, -0.0815131738781929, -0.13222208619117737, -0.298631876707077, 0.008753172121942043, -0.07575666159391403, 0.18695884943008423, 0.03912597522139549, -0.09721542149782181, -0.0929517149925232, -0.08464647084474564, -0.24652908742427826, 0.29096412658691406, 0.021285513415932655, 0.07341524213552475, 0.12273532897233963, 0.03133414313197136, -0.07140063494443893, -0.07640323787927628, 0.03403628244996071, 0.28602418303489685, 0.058628976345062256, 0.4684441387653351, 0.13774093985557556, 0.4391714632511139, -0.13405869901180267, -0.2675175070762634, 0.19808608293533325, 0.21032379567623138, 0.375309020280838, -0.21281860768795013, 0.3068583607673645, -0.025408906862139702, -0.06459247320890427, 0.18638403713703156, 0.2407655417919159, 0.3072824478149414, -0.20762628316879272, 0.009256212040781975, -0.03530513867735863, 0.06914986670017242, -0.4054577052593231, -0.084705650806427, -0.29824885725975037, -0.0039071026258170605, 0.0256106648594141, 0.11834192276000977, 0.3522498309612274, -0.035069383680820465, 0.5823603868484497, -0.032514143735170364, 0.07203671336174011, -0.07604969292879105, 0.39500680565834045, 0.4880948066711426, -0.004431873094290495, 0.258320152759552, 0.08362452685832977, 0.06844843178987503, -0.058956265449523926, -0.04426005482673645, -0.55135577917099, -0.19056233763694763, 0.15943141281604767, 0.007904471829533577, 0.4129475951194763, -0.3530227839946747, 0.29652270674705505, 0.4625870883464813, 0.10824847221374512, -0.11316678673028946, 0.3864280581474304, 0.5600408911705017, 0.1485455185174942, -0.03647517040371895, 0.1294243186712265, 0.17287136614322662, 0.11899064481258392, -0.1233241856098175, -0.06675422936677933, -0.24813583493232727, -0.5411577820777893, 0.21191106736660004, 0.06814343482255936, -0.12623395025730133, 0.11505381017923355, 0.057723820209503174, 0.10664921253919601, -0.2904767096042633, -0.2527490556240082, 0.08125294744968414, -0.018354954198002815, -0.17428839206695557, 0.08599027991294861, -0.11355571448802948, -0.11345961689949036, 0.29427456855773926, 0.5817174315452576, 0.14210326969623566, -0.13891646265983582, 0.29138073325157166, 0.35789406299591064, -0.0027551385574042797, 0.11831159144639969, 0.17874088883399963, -0.18419556319713593, 0.18344613909721375, 0.18330618739128113, 0.12761305272579193, 0.009517287835478783, 0.03366176411509514, 0.09101755917072296, 0.1196569874882698, -0.2098662108182907, -0.0627056211233139, 0.46580076217651367, 0.2066522240638733, -0.025202270597219467, -0.33660954236984253, 0.03856348991394043, -0.2646125257015228, -0.1521441787481308, 0.45776501297950745, -0.02106224186718464, 0.011557787656784058, -0.12628448009490967, 0.0023985770530998707, 0.25068989396095276, 0.029912136495113373, 0.36881929636001587, -0.05408428609371185, -0.07067517191171646, -0.16392582654953003, -0.3195560872554779, 0.07792112231254578, 0.073377825319767, -0.01437950599938631, -0.36604222655296326, -0.011692576110363007, 0.2468601018190384, 0.2482651323080063, 0.40474969148635864, 0.11052130162715912, -0.27609384059906006, -0.08180631697177887, 0.1156419888138771, -0.12082947045564651, 0.22382698953151703, 0.47522032260894775, -0.01724947616457939, -0.14767581224441528, 0.006656575482338667, -0.11455926299095154, -0.15477555990219116, -0.1602436751127243, -0.15225915610790253, -0.2332668900489807, -0.2176438271999359, 0.3434559106826782, -0.2784249782562256, 0.3796606659889221, -0.2898496389389038, -0.2737596929073334, -0.15349110960960388, 0.0320381335914135, -0.19749213755130768, 0.2600562870502472, 0.07005022466182709, -0.04451560229063034, -0.2142019420862198, -0.2674904763698578, -0.27698570489883423, 0.1053992509841919, -0.06681833416223526, -0.17464379966259003, -0.12796704471111298, 0.08516475558280945, -0.174134761095047, -0.07236727327108383, 0.1871168464422226, 0.22774247825145721, -0.2829016149044037, -0.10326827317476273, -0.44521477818489075, -0.21985536813735962, 0.2667156755924225, 0.15839315950870514, 0.1945142298936844, -0.2978357672691345, 0.2802816331386566, 0.2864379584789276, -0.11366597563028336, -0.14497631788253784, 0.24759720265865326, 0.10350093245506287, 0.12117516249418259, 0.06648693233728409, 0.007277100346982479, -0.10209328681230545, 0.049135252833366394, -0.2674432098865509, 0.5598206520080566, 0.39309370517730713, -0.180313378572464, -0.22552800178527832, -0.4063810706138611 ]
https://github.com/huggingface/datasets/issues/2728
Concurrent use of same dataset (already downloaded)
Launching simultaneous job relying on the same datasets try some writing issue. I guess it is unexpected since I only need to load some already downloaded file.
## Describe the bug When launching several jobs at the same time loading the same dataset trigger some errors see (last comments). ## Steps to reproduce the bug export HF_DATASETS_CACHE=/gpfswork/rech/toto/datasets for MODEL in "bert-base-uncased" "roberta-base" "distilbert-base-cased"; do # "bert-base-uncased" "bert-large-cased" "roberta-large" "albert-base-v1" "albert-large-v1"; do for TASK_NAME in "mrpc" "rte" 'imdb' "paws" "mnli"; do export OUTPUT_DIR=${MODEL}_${TASK_NAME} sbatch --job-name=${OUTPUT_DIR} \ --gres=gpu:1 \ --no-requeue \ --cpus-per-task=10 \ --hint=nomultithread \ --time=1:00:00 \ --output=jobinfo/${OUTPUT_DIR}_%j.out \ --error=jobinfo/${OUTPUT_DIR}_%j.err \ --qos=qos_gpu-t4 \ --wrap="module purge; module load pytorch-gpu/py3/1.7.0 ; export HF_DATASETS_OFFLINE=1; export HF_DATASETS_CACHE=/gpfswork/rech/toto/datasets; python compute_measures.py --seed=$SEED --saving_path=results --batch_size=$BATCH_SIZE --task_name=$TASK_NAME --model_name=/gpfswork/rech/toto/transformers_models/$MODEL" done done ```python # Sample code to reproduce the bug dataset_train = load_dataset('imdb', split='train', download_mode="reuse_cache_if_exists") dataset_train = dataset_train.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'), batched=True).select(list(range(args.filter))) dataset_val = load_dataset('imdb', split='train', download_mode="reuse_cache_if_exists") dataset_val = dataset_val.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'), batched=True).select(list(range(args.filter, args.filter + 5000))) dataset_test = load_dataset('imdb', split='test', download_mode="reuse_cache_if_exists") dataset_test = dataset_test.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'), batched=True) ``` ## Expected results I believe I am doing something wrong with the objects. ## Actual results Traceback (most recent call last): File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 652, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 983, in _prepare_split check_duplicates=True, File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/arrow_writer.py", line 192, in __init__ self.stream = pa.OSFile(self._path, "wb") File "pyarrow/io.pxi", line 829, in pyarrow.lib.OSFile.__cinit__ File "pyarrow/io.pxi", line 844, in pyarrow.lib.OSFile._open_writable File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 97, in pyarrow.lib.check_status FileNotFoundError: [Errno 2] Failed to open local file '/gpfswork/rech/tts/unm25jp/datasets/paws/labeled_final/1.1.0/09d8fae989bb569009a8f5b879ccf2924d3e5cd55bfe2e89e6dab1c0b50ecd34.incomplete/paws-test.arrow'. Detail: [errno 2] No such file or directory During handling of the above exception, another exception occurred: Traceback (most recent call last): File "compute_measures.py", line 181, in <module> train_loader, val_loader, test_loader = get_dataloader(args) File "/gpfsdswork/projects/rech/toto/intRAOcular/dataset_utils.py", line 69, in get_dataloader dataset_train = load_dataset('paws', "labeled_final", split='train', download_mode="reuse_cache_if_exists") File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/load.py", line 748, in load_dataset use_auth_token=use_auth_token, File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 575, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 658, in _download_and_prepare + str(e) OSError: Cannot find data file. Original error: [Errno 2] Failed to open local file '/gpfswork/rech/toto/datasets/paws/labeled_final/1.1.0/09d8fae989bb569009a8f5b879ccf2924d3e5cd55bfe2e89e6dab1c0b50ecd34.incomplete/paws-test.arrow'. Detail: [errno 2] No such file or directory ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: datasets==1.8.0 - Platform: linux (jeanzay) - Python version: pyarrow==2.0.0 - PyArrow version: 3.7.8
27
Concurrent use of same dataset (already downloaded) ## Describe the bug When launching several jobs at the same time loading the same dataset trigger some errors see (last comments). ## Steps to reproduce the bug export HF_DATASETS_CACHE=/gpfswork/rech/toto/datasets for MODEL in "bert-base-uncased" "roberta-base" "distilbert-base-cased"; do # "bert-base-uncased" "bert-large-cased" "roberta-large" "albert-base-v1" "albert-large-v1"; do for TASK_NAME in "mrpc" "rte" 'imdb' "paws" "mnli"; do export OUTPUT_DIR=${MODEL}_${TASK_NAME} sbatch --job-name=${OUTPUT_DIR} \ --gres=gpu:1 \ --no-requeue \ --cpus-per-task=10 \ --hint=nomultithread \ --time=1:00:00 \ --output=jobinfo/${OUTPUT_DIR}_%j.out \ --error=jobinfo/${OUTPUT_DIR}_%j.err \ --qos=qos_gpu-t4 \ --wrap="module purge; module load pytorch-gpu/py3/1.7.0 ; export HF_DATASETS_OFFLINE=1; export HF_DATASETS_CACHE=/gpfswork/rech/toto/datasets; python compute_measures.py --seed=$SEED --saving_path=results --batch_size=$BATCH_SIZE --task_name=$TASK_NAME --model_name=/gpfswork/rech/toto/transformers_models/$MODEL" done done ```python # Sample code to reproduce the bug dataset_train = load_dataset('imdb', split='train', download_mode="reuse_cache_if_exists") dataset_train = dataset_train.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'), batched=True).select(list(range(args.filter))) dataset_val = load_dataset('imdb', split='train', download_mode="reuse_cache_if_exists") dataset_val = dataset_val.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'), batched=True).select(list(range(args.filter, args.filter + 5000))) dataset_test = load_dataset('imdb', split='test', download_mode="reuse_cache_if_exists") dataset_test = dataset_test.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'), batched=True) ``` ## Expected results I believe I am doing something wrong with the objects. ## Actual results Traceback (most recent call last): File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 652, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 983, in _prepare_split check_duplicates=True, File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/arrow_writer.py", line 192, in __init__ self.stream = pa.OSFile(self._path, "wb") File "pyarrow/io.pxi", line 829, in pyarrow.lib.OSFile.__cinit__ File "pyarrow/io.pxi", line 844, in pyarrow.lib.OSFile._open_writable File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 97, in pyarrow.lib.check_status FileNotFoundError: [Errno 2] Failed to open local file '/gpfswork/rech/tts/unm25jp/datasets/paws/labeled_final/1.1.0/09d8fae989bb569009a8f5b879ccf2924d3e5cd55bfe2e89e6dab1c0b50ecd34.incomplete/paws-test.arrow'. Detail: [errno 2] No such file or directory During handling of the above exception, another exception occurred: Traceback (most recent call last): File "compute_measures.py", line 181, in <module> train_loader, val_loader, test_loader = get_dataloader(args) File "/gpfsdswork/projects/rech/toto/intRAOcular/dataset_utils.py", line 69, in get_dataloader dataset_train = load_dataset('paws', "labeled_final", split='train', download_mode="reuse_cache_if_exists") File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/load.py", line 748, in load_dataset use_auth_token=use_auth_token, File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 575, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 658, in _download_and_prepare + str(e) OSError: Cannot find data file. Original error: [Errno 2] Failed to open local file '/gpfswork/rech/toto/datasets/paws/labeled_final/1.1.0/09d8fae989bb569009a8f5b879ccf2924d3e5cd55bfe2e89e6dab1c0b50ecd34.incomplete/paws-test.arrow'. Detail: [errno 2] No such file or directory ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: datasets==1.8.0 - Platform: linux (jeanzay) - Python version: pyarrow==2.0.0 - PyArrow version: 3.7.8 Launching simultaneous job relying on the same datasets try some writing issue. I guess it is unexpected since I only need to load some already downloaded file.
[ -0.5779123902320862, -0.08099978417158127, -0.0453643873333931, 0.4501565992832184, 0.24596263468265533, 0.013975231908261776, 0.5565329194068909, 0.272381454706192, 0.184371218085289, 0.19074305891990662, -0.031177762895822525, 0.14643564820289612, 0.02124251425266266, 0.14418794214725494, -0.08855093270540237, 0.023560045287013054, 0.1309165358543396, -0.225741446018219, -0.3968795835971832, -0.02036309987306595, -0.24068200588226318, 0.1446244865655899, 0.08555006980895996, 0.19327080249786377, -0.5113248229026794, -0.34338560700416565, -0.05417598783969879, 0.05579312890768051, 0.25900357961654663, -0.06713283061981201, 0.16646352410316467, 0.28593865036964417, -0.011624091304838657, 0.8678808212280273, -0.00010900417692027986, 0.1391356885433197, 0.12896789610385895, 0.11097251623868942, -0.06344693899154663, -0.2272721379995346, 0.03308170661330223, -0.10797516256570816, 0.1186952069401741, -0.31377798318862915, 0.11895107477903366, 0.0584995374083519, -0.030055416747927666, -0.2093537300825119, 0.5382678508758545, 0.07361012697219849, 0.2384028434753418, 0.3819693922996521, -0.3065968155860901, -0.2297079861164093, 0.18424536287784576, 0.05697964131832123, 0.08603598922491074, 0.07030656188726425, 0.10061503946781158, -0.16042841970920563, -0.024354195222258568, 0.4298267066478729, -0.1288745403289795, 0.20597021281719208, -0.02313431352376938, 0.0869603157043457, 0.1051388680934906, -0.5513932704925537, 0.07672452181577682, 0.06888933479785919, -0.0115327974781394, -0.31230297684669495, -0.3542196750640869, -0.3473508059978485, -0.06392675638198853, -0.25516507029533386, 0.0928213968873024, 0.3452659249305725, -0.2033957540988922, -0.1923074722290039, -0.09205156564712524, 0.18674926459789276, -0.07550418376922607, -0.13499562442302704, 0.24153637886047363, 0.3306526243686676, 0.08305171877145767, 0.23875266313552856, 0.06923217326402664, 0.09273317456245422, 0.3280491828918457, -0.16129527986049652, -0.1014358177781105, -0.07755306363105774, -0.6200729608535767, 0.04574606195092201, -0.016056988388299942, -0.46522319316864014, 0.18437418341636658, -0.18587316572666168, -0.18850846588611603, 0.049986615777015686, 0.17170880734920502, 0.10315100103616714, 0.2989788353443146, 0.09600113332271576, -0.3177451491355896, 0.27054837346076965, 0.34386226534843445, 0.13319788873195648, -0.5029963850975037, 0.06527422368526459, -0.015613920986652374, -0.25675222277641296, 0.21760934591293335, 0.1873345822095871, 0.2414577454328537, -0.08298888802528381, -0.35721924901008606, -0.052314188331365585, -0.05111769959330559, -0.05585254356265068, -0.10141479223966599, 0.4524841904640198, 0.17779040336608887, 0.15677405893802643, 0.09131286293268204, 0.19694416224956512, -0.18229225277900696, 0.062487274408340454, -0.30123040080070496, -0.029075367376208305, -0.014692489057779312, 0.21433311700820923, 0.1157393753528595, -0.06431407481431961, 0.22488488256931305, 0.33794447779655457, 0.049888741225004196, -0.4685380458831787, 0.2624683380126953, -0.36572569608688354, -0.24716591835021973, 0.1961343139410019, 0.18517854809761047, 0.13720662891864777, -0.10516063868999481, 0.3842988908290863, 0.013487235642969608, 0.25873279571533203, -0.32880455255508423, -0.13939470052719116, 0.08096802234649658, 0.27273881435394287, 0.013745478354394436, 0.11527714133262634, -0.35549792647361755, 0.11369147151708603, 0.31862854957580566, -0.04166976362466812, 0.10863825678825378, -0.37206482887268066, -0.31641262769699097, -0.1393730640411377, -0.02054436132311821, 0.5279050469398499, 0.07681235671043396, 0.026820790022611618, 0.17709174752235413, -0.10901078581809998, 0.09156663715839386, 0.35109782218933105, -0.34232404828071594, 0.49661684036254883, -0.34933143854141235, 0.12881793081760406, 0.24404999613761902, -0.37196385860443115, -0.151671901345253, 0.33838462829589844, -0.16466578841209412, 0.12522073090076447, 0.21128757297992706, -0.056855376809835434, 0.21223397552967072, -0.13592176139354706, -0.008483022451400757, 0.1491885632276535, -0.10798624157905579, 0.4015439450740814, -0.19186070561408997, -0.2839154303073883, 0.0489501915872097, 0.16889359056949615, 0.32238075137138367, -0.09399767220020294, 0.02698216214776039, -0.287477970123291, 0.3875815272331238, -0.3304336667060852, -0.07319336384534836, 0.21585258841514587, -0.010300586931407452, 0.07953563332557678, 0.08106482774019241, -0.10964708775281906, -0.516921877861023, 0.19788147509098053, -0.3624860644340515, 0.04324986785650253, 0.03422991558909416, -0.19916096329689026, 0.10673750191926956, -0.04177068546414375, -0.24885325133800507, -0.18883027136325836, 0.17062747478485107, 0.23171366751194, -0.15026786923408508, -0.11813762784004211, -0.14736022055149078, 0.35990506410598755, -0.15828092396259308, 0.02346181496977806, -0.002393687143921852, 0.17053630948066711, -0.19518950581550598, -0.21852800250053406, 0.11620977520942688, -0.06034854054450989, 0.4591345489025116, -0.18166108429431915, -0.16463841497898102, 0.2344813197851181, 0.19793593883514404, 0.3151446580886841, -0.06082993000745773, 0.016890956088900566, 0.18742115795612335, 0.15569081902503967, -0.001790467882528901, 0.14251738786697388, 0.2640644311904907, -0.14529012143611908, 0.09745524823665619, 0.3178671598434448, 0.0033609059173613787, 0.13837000727653503, 0.05906008556485176, -0.2233060747385025, 0.19342415034770966, -0.12333821505308151, 0.18917913734912872, 0.12245818972587585, 0.2253105789422989, 0.12555545568466187, 0.016756219789385796, -0.0816582515835762, -0.5741454362869263, 0.08364418148994446, 0.3775578439235687, 0.16694168746471405, 0.07349452376365662, 0.07330919057130814, -0.04748997837305069, 0.022788891568779945, -0.16829320788383484, 0.2998524606227875, 0.5353221893310547, 0.13491131365299225, 0.045724205672740936, 0.08820877969264984, -0.14512702822685242, -0.0892191231250763, 0.06667671352624893, 0.15460556745529175, 0.1948830932378769, 0.5548340082168579, 0.1994924694299698, -0.06998042017221451, -0.28036192059516907, -0.1119270771741867, 0.26719316840171814, 0.09417521953582764, -0.37482377886772156, 0.18501527607440948, 0.1274145096540451, -0.17477929592132568, -0.42136287689208984, 0.005404334980994463, -0.03352367505431175, -0.1470949649810791, -0.03985291346907616, 0.45684051513671875, -0.19973596930503845, 0.36714521050453186, -0.02992917038500309, 0.15714819729328156, -0.18679825961589813, 0.2361011803150177, -0.1471162885427475, -0.07119865715503693, -0.11414828896522522, -0.011395532637834549, 0.2849562168121338, 0.0669403150677681, 0.31874993443489075, 0.07194451242685318, -0.31695228815078735, -0.35995522141456604, -0.0033947904594242573, 0.07836989313364029, 0.001777535886503756, 0.423190176486969, -0.08440498262643814, -0.19659386575222015, 0.0808483213186264, -0.4469999670982361, 0.20245452225208282, -0.35917648673057556, -0.0702027902007103, -0.1327766478061676, -0.2264380156993866, -0.06717550754547119, -0.17661428451538086, -0.3789283335208893, -0.2513655126094818, -0.2676904797554016, -0.0906180813908577, -0.17275170981884003, 0.21168868243694305, 0.07636548578739166, -0.14113710820674896, -0.0400552861392498, 0.15371277928352356, -0.004670093767344952, -0.3079811930656433, -0.3230580687522888, 0.06932705640792847, -0.1893557608127594, -0.32066023349761963, -0.08726827800273895, -0.14780887961387634, 0.06826910376548767, 0.22674456238746643, -0.4916568696498871, -0.3557167053222656, -0.10712824761867523, 0.05779502913355827, -0.1461232602596283, -0.03710469976067543, 0.05069755017757416, 0.06102216616272926, -0.13800612092018127, -0.11718849092721939, -0.17283916473388672, 0.20160578191280365, -0.03128283470869064, 0.005255679599940777, -0.16598066687583923, 0.2671521008014679, -0.1580262929201126, 0.6628258228302002, 0.24492675065994263, -0.06110280007123947, 0.32978805899620056, -0.1419709026813507, 0.07865588366985321, -0.01828025095164776, -0.44076424837112427, -0.06863146275281906, -0.43008941411972046, -0.23295366764068604, 0.14238102734088898, -0.3390008509159088, -0.16552861034870148, -0.08836284279823303, 0.020786365494132042, -0.3483385145664215, -0.3111567199230194, 0.10517880320549011, -0.15689629316329956, 0.332001268863678, 0.047319334000349045, 0.16082365810871124, 0.0032933170441538095, 0.0731305181980133, 0.28529462218284607, 0.03721876069903374, 0.20852936804294586, -0.18799670040607452, -0.032074935734272, 0.07562915980815887, -0.19160208106040955, 0.32076600193977356, 0.09924571216106415, 0.18817654252052307, -0.09984832257032394, 0.2111589014530182, 0.017397155985236168, -0.11549406498670578, 0.8625527024269104, -0.1944369673728943, 0.32594946026802063, 0.19437763094902039, -0.3524225354194641, -0.08486980944871902, -0.19156908988952637, -0.3549928367137909, -0.21128618717193604, 0.2583167254924774, 0.6643009185791016, -0.3218052387237549, -0.123782679438591, 0.14336378872394562, -0.02083759382367134, -0.28243735432624817, -0.3151058554649353, -0.16054219007492065, -0.3001241087913513, -0.28057724237442017, 0.17587687075138092, -0.09049971401691437, 0.12028753757476807, -0.5292028784751892, -0.08387154340744019, -0.18149131536483765, 0.20682556927204132, -0.010572141036391258, 0.058843404054641724, 0.28042080998420715, -0.06041638180613518, 0.40394243597984314, 0.12626111507415771, -0.03015824966132641, 0.27479735016822815, 0.4463309645652771, 0.020108981058001518, -0.27702596783638, 0.0019540595822036266, 0.04634165018796921, 0.08977249264717102, 0.4556979537010193, 0.027261408045887947, 0.13520915806293488, 0.06710048764944077, 0.268085241317749, -0.06722414493560791, 0.17809057235717773, 0.3836326599121094, 0.21999971568584442, -0.19891133904457092, -0.34773167967796326, 0.09311103820800781, 0.2356353998184204, -0.13195574283599854, 0.2889438569545746, -0.5127382278442383, -0.20680725574493408, 0.3026009500026703, -0.004667896777391434, 0.6622441411018372, 0.014262789860367775, 0.09115384519100189, 0.3084227442741394, -0.3028063476085663, 0.28654590249061584, -0.21504844725131989, 0.3221714496612549, -0.5821489691734314, -0.26835107803344727, 0.11587274819612503, -0.12703241407871246, -0.0752490684390068, 0.052676957100629807, -0.11407038569450378, 0.3120548129081726, -0.0008433390175923705, 0.032436635345220566, -0.24797198176383972, 0.2446671575307846, 0.006566015537828207, -0.3198530673980713, 0.05312325432896614, 0.11875617504119873, -0.2992704510688782, 0.25692683458328247, -0.1400964856147766, -0.10824563354253769, 0.2545025646686554, -0.23585978150367737, -0.29385995864868164, 0.23255454003810883, -0.34849458932876587, 0.28062641620635986, -0.14337541162967682, -0.19273066520690918, 0.04639912396669388, -0.08668247610330582, 0.15603475272655487, -0.2287229299545288, 0.07313434779644012, 0.09576299786567688, 0.0568755604326725, 0.13810387253761292, -0.23188330233097076, -0.15370063483715057, 0.427776575088501, 0.021163105964660645, -0.36206793785095215, -0.08203351497650146, -0.03733687102794647, -0.014833035878837109, -0.12812699377536774, 0.04811539128422737, -0.1951635479927063, -0.19833289086818695, -0.11310986429452896, 0.2236151248216629, -0.074234239757061, -0.31547170877456665, 0.15182627737522125, -0.2507011294364929, -0.2737051248550415, 0.3905717432498932, -0.12386585026979446, -0.37392646074295044, -0.07747818529605865, 0.22042568027973175, 0.1755114644765854, 0.07899513840675354, 0.41065242886543274, 0.3367050290107727, -0.06407320499420166, -0.31330406665802, -0.23844781517982483, 0.159805029630661, -0.4164748191833496, 0.17728570103645325, -0.14357814192771912, 0.15152212977409363, -0.027345724403858185, 0.3164762854576111, 0.06300118565559387, 0.12059438228607178, 0.020655622705817223, -0.29400163888931274, -0.21536673605442047, -0.017784465104341507, -0.06378436088562012, 0.21608154475688934, 0.20124709606170654, 0.26182785630226135, 0.02820488065481186, 0.32445040345191956, -0.3282783329486847, 0.23353953659534454, -0.20574621856212616, 0.13083943724632263, 0.05137183889746666, -0.13134920597076416, 0.08273912221193314, 0.23978212475776672, 0.09755837917327881, 0.21972641348838806, -0.16471827030181885, -0.26122215390205383, -0.22638390958309174, 0.09875482320785522, -0.02084227092564106, 0.020225156098604202, -0.14770355820655823, -0.133464053273201, 0.1280260682106018, -0.018377017229795456, 0.4289836883544922, 0.2284488081932068, -0.16439765691757202, 0.10616188496351242, 0.13675528764724731, 0.164822056889534, -0.08187931776046753, 0.1702709197998047, 0.0002730499836616218, -0.09964210540056229, 0.18882642686367035, 0.18288221955299377, -0.0026518928352743387, 0.039651524275541306, -0.29793068766593933, -0.18287692964076996, 0.4134559631347656, 0.1560274362564087, 0.0929485335946083, -0.3851541578769684, -0.22395502030849457, 0.03145121410489082, 0.45000889897346497, 0.3133752644062042, -0.31149715185165405, -0.05748783424496651, -0.03705020621418953, 0.2802082896232605, -0.18614499270915985, -0.02526070550084114, -0.00044337366125546396, -0.19825348258018494, 0.017028208822011948, 0.3708455264568329, 0.3222137689590454, 0.049197718501091, -0.025716811418533325, 0.15775178372859955, 0.3708708882331848, -0.3861028552055359, 0.24043022096157074, -0.004391720052808523, -0.12606969475746155, 0.1273740977048874, 0.40780526399612427, 0.22648711502552032, 0.07974500954151154, 0.17885339260101318, 0.09110397100448608, 0.18546290695667267, -0.03016713261604309, -0.14113056659698486, 0.11168406903743744, -0.30865997076034546, -0.038112279027700424, 0.20166835188865662, -0.22635489702224731, -0.12448645383119583, -0.21199674904346466, -0.06880088895559311, -0.18714122474193573, -0.228764608502388, -0.36810746788978577, 0.2676642835140228, -0.39746928215026855, -0.04810570180416107, 0.10963159054517746, -0.14428089559078217, 0.12780068814754486, 0.20107099413871765, 0.11405659466981888, 0.13477283716201782, 0.44946417212486267, 0.13311398029327393, -0.2817562222480774, -0.11044775694608688, -0.31635671854019165, 0.2716571092605591, 0.15504169464111328, -0.3163851201534271, 0.2832717299461365, 0.3418692648410797, -0.050497811287641525, -0.23707401752471924, 0.5526759028434753, 0.652224600315094, 0.3537188470363617, -0.14521898329257965, 0.007220395840704441, 0.03287327289581299, 0.13185755908489227, -0.08332985639572144, 0.09240247309207916, 0.13208042085170746, 0.27384188771247864, 0.3750735819339752, 0.162776380777359, -0.1621028333902359, 0.15090122818946838, 0.21575966477394104, 0.173751562833786, -0.26355376839637756, 0.291787326335907, -0.04756531864404678, -0.0709342360496521, -0.06877816468477249, 0.010969321243464947, -0.3325085937976837, 0.11672413349151611, 0.4725085496902466, -0.09931309521198273, 0.22564828395843506, 0.00025793586974032223, 0.12229227274656296, 0.01169999223202467, 0.38316091895103455, 0.12131239473819733, 0.10068784654140472, -0.6743168830871582, 0.06177964061498642, -0.45722681283950806, 0.2957104742527008, -0.14188794791698456, 0.1963329166173935, -0.04305543750524521, 0.10472258925437927, -0.2969473600387573, -0.06525225192308426, 0.29556652903556824, -0.040778748691082, 0.07654082030057907, 0.46357235312461853, -0.5969394445419312, 0.049504783004522324, -0.33520767092704773, -0.12624181807041168, 0.3455520570278168, -0.4687044024467468, 0.2194332629442215, -0.152248814702034, 0.09160998463630676, 0.1163390651345253, -0.0036384938284754753, 0.30936118960380554, 0.12445300817489624, 0.5834570527076721, 0.1750374287366867, 0.6061421632766724, -0.12605129182338715, 0.1312723010778427, -0.11316049844026566, -0.4133680760860443, -0.3300968110561371, -0.006951154675334692, 0.14930009841918945, 0.10661004483699799, -0.07569320499897003, -0.09274786710739136, -0.3385123014450073, -0.15237374603748322, 0.026059282943606377, -0.1396058350801468, -0.04959645867347717, 0.04006503149867058, 0.0016710415948182344, 0.04849930852651596, 0.13143287599086761, 0.2882745563983917, 0.25443968176841736, 0.23279593884944916, -0.434808611869812, -0.3158877491950989, 0.5066921710968018, -0.20326006412506104, -0.5028809309005737, -0.36840763688087463, 0.3902990520000458, -0.026088697835803032, 0.08401511609554291, -0.625706136226654, 0.13618555665016174, 0.3196179270744324, -0.07806576043367386, -0.19408385455608368, 0.16662828624248505, 0.0340074747800827, -0.1527428776025772, 0.10099761188030243, -0.04395321384072304, 0.04539431259036064, -0.3636942207813263, 0.027707930654287338, -0.06068055331707001 ]
https://github.com/huggingface/datasets/issues/2728
Concurrent use of same dataset (already downloaded)
If i have two jobs that use the same dataset. I got : File "compute_measures.py", line 181, in <module> train_loader, val_loader, test_loader = get_dataloader(args) File "/gpfsdswork/projects/rech/toto/intRAOcular/dataset_utils.py", line 69, in get_dataloader dataset_train = load_dataset('paws', "labeled_final", split='train', download_mode="reuse_cache_if_exists") File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/load.py", line 748, in load_dataset use_auth_token=use_auth_token, File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 582, in download_and_prepare self._save_info() File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 690, in _save_info self.info.write_to_directory(self._cache_dir) File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/info.py", line 195, in write_to_directory with open(os.path.join(dataset_info_dir, config.LICENSE_FILENAME), "wb") as f: FileNotFoundError: [Errno 2] No such file or directory: '/gpfswork/rech/toto/datasets/paws/labeled_final/1.1.0/09d8fae989bb569009a8f5b879ccf2924d3e5cd55bfe2e89e6dab1c0b50ecd34.incomplete/LICENSE'
## Describe the bug When launching several jobs at the same time loading the same dataset trigger some errors see (last comments). ## Steps to reproduce the bug export HF_DATASETS_CACHE=/gpfswork/rech/toto/datasets for MODEL in "bert-base-uncased" "roberta-base" "distilbert-base-cased"; do # "bert-base-uncased" "bert-large-cased" "roberta-large" "albert-base-v1" "albert-large-v1"; do for TASK_NAME in "mrpc" "rte" 'imdb' "paws" "mnli"; do export OUTPUT_DIR=${MODEL}_${TASK_NAME} sbatch --job-name=${OUTPUT_DIR} \ --gres=gpu:1 \ --no-requeue \ --cpus-per-task=10 \ --hint=nomultithread \ --time=1:00:00 \ --output=jobinfo/${OUTPUT_DIR}_%j.out \ --error=jobinfo/${OUTPUT_DIR}_%j.err \ --qos=qos_gpu-t4 \ --wrap="module purge; module load pytorch-gpu/py3/1.7.0 ; export HF_DATASETS_OFFLINE=1; export HF_DATASETS_CACHE=/gpfswork/rech/toto/datasets; python compute_measures.py --seed=$SEED --saving_path=results --batch_size=$BATCH_SIZE --task_name=$TASK_NAME --model_name=/gpfswork/rech/toto/transformers_models/$MODEL" done done ```python # Sample code to reproduce the bug dataset_train = load_dataset('imdb', split='train', download_mode="reuse_cache_if_exists") dataset_train = dataset_train.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'), batched=True).select(list(range(args.filter))) dataset_val = load_dataset('imdb', split='train', download_mode="reuse_cache_if_exists") dataset_val = dataset_val.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'), batched=True).select(list(range(args.filter, args.filter + 5000))) dataset_test = load_dataset('imdb', split='test', download_mode="reuse_cache_if_exists") dataset_test = dataset_test.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'), batched=True) ``` ## Expected results I believe I am doing something wrong with the objects. ## Actual results Traceback (most recent call last): File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 652, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 983, in _prepare_split check_duplicates=True, File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/arrow_writer.py", line 192, in __init__ self.stream = pa.OSFile(self._path, "wb") File "pyarrow/io.pxi", line 829, in pyarrow.lib.OSFile.__cinit__ File "pyarrow/io.pxi", line 844, in pyarrow.lib.OSFile._open_writable File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 97, in pyarrow.lib.check_status FileNotFoundError: [Errno 2] Failed to open local file '/gpfswork/rech/tts/unm25jp/datasets/paws/labeled_final/1.1.0/09d8fae989bb569009a8f5b879ccf2924d3e5cd55bfe2e89e6dab1c0b50ecd34.incomplete/paws-test.arrow'. Detail: [errno 2] No such file or directory During handling of the above exception, another exception occurred: Traceback (most recent call last): File "compute_measures.py", line 181, in <module> train_loader, val_loader, test_loader = get_dataloader(args) File "/gpfsdswork/projects/rech/toto/intRAOcular/dataset_utils.py", line 69, in get_dataloader dataset_train = load_dataset('paws', "labeled_final", split='train', download_mode="reuse_cache_if_exists") File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/load.py", line 748, in load_dataset use_auth_token=use_auth_token, File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 575, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 658, in _download_and_prepare + str(e) OSError: Cannot find data file. Original error: [Errno 2] Failed to open local file '/gpfswork/rech/toto/datasets/paws/labeled_final/1.1.0/09d8fae989bb569009a8f5b879ccf2924d3e5cd55bfe2e89e6dab1c0b50ecd34.incomplete/paws-test.arrow'. Detail: [errno 2] No such file or directory ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: datasets==1.8.0 - Platform: linux (jeanzay) - Python version: pyarrow==2.0.0 - PyArrow version: 3.7.8
78
Concurrent use of same dataset (already downloaded) ## Describe the bug When launching several jobs at the same time loading the same dataset trigger some errors see (last comments). ## Steps to reproduce the bug export HF_DATASETS_CACHE=/gpfswork/rech/toto/datasets for MODEL in "bert-base-uncased" "roberta-base" "distilbert-base-cased"; do # "bert-base-uncased" "bert-large-cased" "roberta-large" "albert-base-v1" "albert-large-v1"; do for TASK_NAME in "mrpc" "rte" 'imdb' "paws" "mnli"; do export OUTPUT_DIR=${MODEL}_${TASK_NAME} sbatch --job-name=${OUTPUT_DIR} \ --gres=gpu:1 \ --no-requeue \ --cpus-per-task=10 \ --hint=nomultithread \ --time=1:00:00 \ --output=jobinfo/${OUTPUT_DIR}_%j.out \ --error=jobinfo/${OUTPUT_DIR}_%j.err \ --qos=qos_gpu-t4 \ --wrap="module purge; module load pytorch-gpu/py3/1.7.0 ; export HF_DATASETS_OFFLINE=1; export HF_DATASETS_CACHE=/gpfswork/rech/toto/datasets; python compute_measures.py --seed=$SEED --saving_path=results --batch_size=$BATCH_SIZE --task_name=$TASK_NAME --model_name=/gpfswork/rech/toto/transformers_models/$MODEL" done done ```python # Sample code to reproduce the bug dataset_train = load_dataset('imdb', split='train', download_mode="reuse_cache_if_exists") dataset_train = dataset_train.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'), batched=True).select(list(range(args.filter))) dataset_val = load_dataset('imdb', split='train', download_mode="reuse_cache_if_exists") dataset_val = dataset_val.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'), batched=True).select(list(range(args.filter, args.filter + 5000))) dataset_test = load_dataset('imdb', split='test', download_mode="reuse_cache_if_exists") dataset_test = dataset_test.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'), batched=True) ``` ## Expected results I believe I am doing something wrong with the objects. ## Actual results Traceback (most recent call last): File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 652, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 983, in _prepare_split check_duplicates=True, File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/arrow_writer.py", line 192, in __init__ self.stream = pa.OSFile(self._path, "wb") File "pyarrow/io.pxi", line 829, in pyarrow.lib.OSFile.__cinit__ File "pyarrow/io.pxi", line 844, in pyarrow.lib.OSFile._open_writable File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 97, in pyarrow.lib.check_status FileNotFoundError: [Errno 2] Failed to open local file '/gpfswork/rech/tts/unm25jp/datasets/paws/labeled_final/1.1.0/09d8fae989bb569009a8f5b879ccf2924d3e5cd55bfe2e89e6dab1c0b50ecd34.incomplete/paws-test.arrow'. Detail: [errno 2] No such file or directory During handling of the above exception, another exception occurred: Traceback (most recent call last): File "compute_measures.py", line 181, in <module> train_loader, val_loader, test_loader = get_dataloader(args) File "/gpfsdswork/projects/rech/toto/intRAOcular/dataset_utils.py", line 69, in get_dataloader dataset_train = load_dataset('paws', "labeled_final", split='train', download_mode="reuse_cache_if_exists") File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/load.py", line 748, in load_dataset use_auth_token=use_auth_token, File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 575, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 658, in _download_and_prepare + str(e) OSError: Cannot find data file. Original error: [Errno 2] Failed to open local file '/gpfswork/rech/toto/datasets/paws/labeled_final/1.1.0/09d8fae989bb569009a8f5b879ccf2924d3e5cd55bfe2e89e6dab1c0b50ecd34.incomplete/paws-test.arrow'. Detail: [errno 2] No such file or directory ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: datasets==1.8.0 - Platform: linux (jeanzay) - Python version: pyarrow==2.0.0 - PyArrow version: 3.7.8 If i have two jobs that use the same dataset. I got : File "compute_measures.py", line 181, in <module> train_loader, val_loader, test_loader = get_dataloader(args) File "/gpfsdswork/projects/rech/toto/intRAOcular/dataset_utils.py", line 69, in get_dataloader dataset_train = load_dataset('paws', "labeled_final", split='train', download_mode="reuse_cache_if_exists") File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/load.py", line 748, in load_dataset use_auth_token=use_auth_token, File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 582, in download_and_prepare self._save_info() File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 690, in _save_info self.info.write_to_directory(self._cache_dir) File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/info.py", line 195, in write_to_directory with open(os.path.join(dataset_info_dir, config.LICENSE_FILENAME), "wb") as f: FileNotFoundError: [Errno 2] No such file or directory: '/gpfswork/rech/toto/datasets/paws/labeled_final/1.1.0/09d8fae989bb569009a8f5b879ccf2924d3e5cd55bfe2e89e6dab1c0b50ecd34.incomplete/LICENSE'
[ -0.5779123902320862, -0.08099978417158127, -0.0453643873333931, 0.4501565992832184, 0.24596263468265533, 0.013975231908261776, 0.5565329194068909, 0.272381454706192, 0.184371218085289, 0.19074305891990662, -0.031177762895822525, 0.14643564820289612, 0.02124251425266266, 0.14418794214725494, -0.08855093270540237, 0.023560045287013054, 0.1309165358543396, -0.225741446018219, -0.3968795835971832, -0.02036309987306595, -0.24068200588226318, 0.1446244865655899, 0.08555006980895996, 0.19327080249786377, -0.5113248229026794, -0.34338560700416565, -0.05417598783969879, 0.05579312890768051, 0.25900357961654663, -0.06713283061981201, 0.16646352410316467, 0.28593865036964417, -0.011624091304838657, 0.8678808212280273, -0.00010900417692027986, 0.1391356885433197, 0.12896789610385895, 0.11097251623868942, -0.06344693899154663, -0.2272721379995346, 0.03308170661330223, -0.10797516256570816, 0.1186952069401741, -0.31377798318862915, 0.11895107477903366, 0.0584995374083519, -0.030055416747927666, -0.2093537300825119, 0.5382678508758545, 0.07361012697219849, 0.2384028434753418, 0.3819693922996521, -0.3065968155860901, -0.2297079861164093, 0.18424536287784576, 0.05697964131832123, 0.08603598922491074, 0.07030656188726425, 0.10061503946781158, -0.16042841970920563, -0.024354195222258568, 0.4298267066478729, -0.1288745403289795, 0.20597021281719208, -0.02313431352376938, 0.0869603157043457, 0.1051388680934906, -0.5513932704925537, 0.07672452181577682, 0.06888933479785919, -0.0115327974781394, -0.31230297684669495, -0.3542196750640869, -0.3473508059978485, -0.06392675638198853, -0.25516507029533386, 0.0928213968873024, 0.3452659249305725, -0.2033957540988922, -0.1923074722290039, -0.09205156564712524, 0.18674926459789276, -0.07550418376922607, -0.13499562442302704, 0.24153637886047363, 0.3306526243686676, 0.08305171877145767, 0.23875266313552856, 0.06923217326402664, 0.09273317456245422, 0.3280491828918457, -0.16129527986049652, -0.1014358177781105, -0.07755306363105774, -0.6200729608535767, 0.04574606195092201, -0.016056988388299942, -0.46522319316864014, 0.18437418341636658, -0.18587316572666168, -0.18850846588611603, 0.049986615777015686, 0.17170880734920502, 0.10315100103616714, 0.2989788353443146, 0.09600113332271576, -0.3177451491355896, 0.27054837346076965, 0.34386226534843445, 0.13319788873195648, -0.5029963850975037, 0.06527422368526459, -0.015613920986652374, -0.25675222277641296, 0.21760934591293335, 0.1873345822095871, 0.2414577454328537, -0.08298888802528381, -0.35721924901008606, -0.052314188331365585, -0.05111769959330559, -0.05585254356265068, -0.10141479223966599, 0.4524841904640198, 0.17779040336608887, 0.15677405893802643, 0.09131286293268204, 0.19694416224956512, -0.18229225277900696, 0.062487274408340454, -0.30123040080070496, -0.029075367376208305, -0.014692489057779312, 0.21433311700820923, 0.1157393753528595, -0.06431407481431961, 0.22488488256931305, 0.33794447779655457, 0.049888741225004196, -0.4685380458831787, 0.2624683380126953, -0.36572569608688354, -0.24716591835021973, 0.1961343139410019, 0.18517854809761047, 0.13720662891864777, -0.10516063868999481, 0.3842988908290863, 0.013487235642969608, 0.25873279571533203, -0.32880455255508423, -0.13939470052719116, 0.08096802234649658, 0.27273881435394287, 0.013745478354394436, 0.11527714133262634, -0.35549792647361755, 0.11369147151708603, 0.31862854957580566, -0.04166976362466812, 0.10863825678825378, -0.37206482887268066, -0.31641262769699097, -0.1393730640411377, -0.02054436132311821, 0.5279050469398499, 0.07681235671043396, 0.026820790022611618, 0.17709174752235413, -0.10901078581809998, 0.09156663715839386, 0.35109782218933105, -0.34232404828071594, 0.49661684036254883, -0.34933143854141235, 0.12881793081760406, 0.24404999613761902, -0.37196385860443115, -0.151671901345253, 0.33838462829589844, -0.16466578841209412, 0.12522073090076447, 0.21128757297992706, -0.056855376809835434, 0.21223397552967072, -0.13592176139354706, -0.008483022451400757, 0.1491885632276535, -0.10798624157905579, 0.4015439450740814, -0.19186070561408997, -0.2839154303073883, 0.0489501915872097, 0.16889359056949615, 0.32238075137138367, -0.09399767220020294, 0.02698216214776039, -0.287477970123291, 0.3875815272331238, -0.3304336667060852, -0.07319336384534836, 0.21585258841514587, -0.010300586931407452, 0.07953563332557678, 0.08106482774019241, -0.10964708775281906, -0.516921877861023, 0.19788147509098053, -0.3624860644340515, 0.04324986785650253, 0.03422991558909416, -0.19916096329689026, 0.10673750191926956, -0.04177068546414375, -0.24885325133800507, -0.18883027136325836, 0.17062747478485107, 0.23171366751194, -0.15026786923408508, -0.11813762784004211, -0.14736022055149078, 0.35990506410598755, -0.15828092396259308, 0.02346181496977806, -0.002393687143921852, 0.17053630948066711, -0.19518950581550598, -0.21852800250053406, 0.11620977520942688, -0.06034854054450989, 0.4591345489025116, -0.18166108429431915, -0.16463841497898102, 0.2344813197851181, 0.19793593883514404, 0.3151446580886841, -0.06082993000745773, 0.016890956088900566, 0.18742115795612335, 0.15569081902503967, -0.001790467882528901, 0.14251738786697388, 0.2640644311904907, -0.14529012143611908, 0.09745524823665619, 0.3178671598434448, 0.0033609059173613787, 0.13837000727653503, 0.05906008556485176, -0.2233060747385025, 0.19342415034770966, -0.12333821505308151, 0.18917913734912872, 0.12245818972587585, 0.2253105789422989, 0.12555545568466187, 0.016756219789385796, -0.0816582515835762, -0.5741454362869263, 0.08364418148994446, 0.3775578439235687, 0.16694168746471405, 0.07349452376365662, 0.07330919057130814, -0.04748997837305069, 0.022788891568779945, -0.16829320788383484, 0.2998524606227875, 0.5353221893310547, 0.13491131365299225, 0.045724205672740936, 0.08820877969264984, -0.14512702822685242, -0.0892191231250763, 0.06667671352624893, 0.15460556745529175, 0.1948830932378769, 0.5548340082168579, 0.1994924694299698, -0.06998042017221451, -0.28036192059516907, -0.1119270771741867, 0.26719316840171814, 0.09417521953582764, -0.37482377886772156, 0.18501527607440948, 0.1274145096540451, -0.17477929592132568, -0.42136287689208984, 0.005404334980994463, -0.03352367505431175, -0.1470949649810791, -0.03985291346907616, 0.45684051513671875, -0.19973596930503845, 0.36714521050453186, -0.02992917038500309, 0.15714819729328156, -0.18679825961589813, 0.2361011803150177, -0.1471162885427475, -0.07119865715503693, -0.11414828896522522, -0.011395532637834549, 0.2849562168121338, 0.0669403150677681, 0.31874993443489075, 0.07194451242685318, -0.31695228815078735, -0.35995522141456604, -0.0033947904594242573, 0.07836989313364029, 0.001777535886503756, 0.423190176486969, -0.08440498262643814, -0.19659386575222015, 0.0808483213186264, -0.4469999670982361, 0.20245452225208282, -0.35917648673057556, -0.0702027902007103, -0.1327766478061676, -0.2264380156993866, -0.06717550754547119, -0.17661428451538086, -0.3789283335208893, -0.2513655126094818, -0.2676904797554016, -0.0906180813908577, -0.17275170981884003, 0.21168868243694305, 0.07636548578739166, -0.14113710820674896, -0.0400552861392498, 0.15371277928352356, -0.004670093767344952, -0.3079811930656433, -0.3230580687522888, 0.06932705640792847, -0.1893557608127594, -0.32066023349761963, -0.08726827800273895, -0.14780887961387634, 0.06826910376548767, 0.22674456238746643, -0.4916568696498871, -0.3557167053222656, -0.10712824761867523, 0.05779502913355827, -0.1461232602596283, -0.03710469976067543, 0.05069755017757416, 0.06102216616272926, -0.13800612092018127, -0.11718849092721939, -0.17283916473388672, 0.20160578191280365, -0.03128283470869064, 0.005255679599940777, -0.16598066687583923, 0.2671521008014679, -0.1580262929201126, 0.6628258228302002, 0.24492675065994263, -0.06110280007123947, 0.32978805899620056, -0.1419709026813507, 0.07865588366985321, -0.01828025095164776, -0.44076424837112427, -0.06863146275281906, -0.43008941411972046, -0.23295366764068604, 0.14238102734088898, -0.3390008509159088, -0.16552861034870148, -0.08836284279823303, 0.020786365494132042, -0.3483385145664215, -0.3111567199230194, 0.10517880320549011, -0.15689629316329956, 0.332001268863678, 0.047319334000349045, 0.16082365810871124, 0.0032933170441538095, 0.0731305181980133, 0.28529462218284607, 0.03721876069903374, 0.20852936804294586, -0.18799670040607452, -0.032074935734272, 0.07562915980815887, -0.19160208106040955, 0.32076600193977356, 0.09924571216106415, 0.18817654252052307, -0.09984832257032394, 0.2111589014530182, 0.017397155985236168, -0.11549406498670578, 0.8625527024269104, -0.1944369673728943, 0.32594946026802063, 0.19437763094902039, -0.3524225354194641, -0.08486980944871902, -0.19156908988952637, -0.3549928367137909, -0.21128618717193604, 0.2583167254924774, 0.6643009185791016, -0.3218052387237549, -0.123782679438591, 0.14336378872394562, -0.02083759382367134, -0.28243735432624817, -0.3151058554649353, -0.16054219007492065, -0.3001241087913513, -0.28057724237442017, 0.17587687075138092, -0.09049971401691437, 0.12028753757476807, -0.5292028784751892, -0.08387154340744019, -0.18149131536483765, 0.20682556927204132, -0.010572141036391258, 0.058843404054641724, 0.28042080998420715, -0.06041638180613518, 0.40394243597984314, 0.12626111507415771, -0.03015824966132641, 0.27479735016822815, 0.4463309645652771, 0.020108981058001518, -0.27702596783638, 0.0019540595822036266, 0.04634165018796921, 0.08977249264717102, 0.4556979537010193, 0.027261408045887947, 0.13520915806293488, 0.06710048764944077, 0.268085241317749, -0.06722414493560791, 0.17809057235717773, 0.3836326599121094, 0.21999971568584442, -0.19891133904457092, -0.34773167967796326, 0.09311103820800781, 0.2356353998184204, -0.13195574283599854, 0.2889438569545746, -0.5127382278442383, -0.20680725574493408, 0.3026009500026703, -0.004667896777391434, 0.6622441411018372, 0.014262789860367775, 0.09115384519100189, 0.3084227442741394, -0.3028063476085663, 0.28654590249061584, -0.21504844725131989, 0.3221714496612549, -0.5821489691734314, -0.26835107803344727, 0.11587274819612503, -0.12703241407871246, -0.0752490684390068, 0.052676957100629807, -0.11407038569450378, 0.3120548129081726, -0.0008433390175923705, 0.032436635345220566, -0.24797198176383972, 0.2446671575307846, 0.006566015537828207, -0.3198530673980713, 0.05312325432896614, 0.11875617504119873, -0.2992704510688782, 0.25692683458328247, -0.1400964856147766, -0.10824563354253769, 0.2545025646686554, -0.23585978150367737, -0.29385995864868164, 0.23255454003810883, -0.34849458932876587, 0.28062641620635986, -0.14337541162967682, -0.19273066520690918, 0.04639912396669388, -0.08668247610330582, 0.15603475272655487, -0.2287229299545288, 0.07313434779644012, 0.09576299786567688, 0.0568755604326725, 0.13810387253761292, -0.23188330233097076, -0.15370063483715057, 0.427776575088501, 0.021163105964660645, -0.36206793785095215, -0.08203351497650146, -0.03733687102794647, -0.014833035878837109, -0.12812699377536774, 0.04811539128422737, -0.1951635479927063, -0.19833289086818695, -0.11310986429452896, 0.2236151248216629, -0.074234239757061, -0.31547170877456665, 0.15182627737522125, -0.2507011294364929, -0.2737051248550415, 0.3905717432498932, -0.12386585026979446, -0.37392646074295044, -0.07747818529605865, 0.22042568027973175, 0.1755114644765854, 0.07899513840675354, 0.41065242886543274, 0.3367050290107727, -0.06407320499420166, -0.31330406665802, -0.23844781517982483, 0.159805029630661, -0.4164748191833496, 0.17728570103645325, -0.14357814192771912, 0.15152212977409363, -0.027345724403858185, 0.3164762854576111, 0.06300118565559387, 0.12059438228607178, 0.020655622705817223, -0.29400163888931274, -0.21536673605442047, -0.017784465104341507, -0.06378436088562012, 0.21608154475688934, 0.20124709606170654, 0.26182785630226135, 0.02820488065481186, 0.32445040345191956, -0.3282783329486847, 0.23353953659534454, -0.20574621856212616, 0.13083943724632263, 0.05137183889746666, -0.13134920597076416, 0.08273912221193314, 0.23978212475776672, 0.09755837917327881, 0.21972641348838806, -0.16471827030181885, -0.26122215390205383, -0.22638390958309174, 0.09875482320785522, -0.02084227092564106, 0.020225156098604202, -0.14770355820655823, -0.133464053273201, 0.1280260682106018, -0.018377017229795456, 0.4289836883544922, 0.2284488081932068, -0.16439765691757202, 0.10616188496351242, 0.13675528764724731, 0.164822056889534, -0.08187931776046753, 0.1702709197998047, 0.0002730499836616218, -0.09964210540056229, 0.18882642686367035, 0.18288221955299377, -0.0026518928352743387, 0.039651524275541306, -0.29793068766593933, -0.18287692964076996, 0.4134559631347656, 0.1560274362564087, 0.0929485335946083, -0.3851541578769684, -0.22395502030849457, 0.03145121410489082, 0.45000889897346497, 0.3133752644062042, -0.31149715185165405, -0.05748783424496651, -0.03705020621418953, 0.2802082896232605, -0.18614499270915985, -0.02526070550084114, -0.00044337366125546396, -0.19825348258018494, 0.017028208822011948, 0.3708455264568329, 0.3222137689590454, 0.049197718501091, -0.025716811418533325, 0.15775178372859955, 0.3708708882331848, -0.3861028552055359, 0.24043022096157074, -0.004391720052808523, -0.12606969475746155, 0.1273740977048874, 0.40780526399612427, 0.22648711502552032, 0.07974500954151154, 0.17885339260101318, 0.09110397100448608, 0.18546290695667267, -0.03016713261604309, -0.14113056659698486, 0.11168406903743744, -0.30865997076034546, -0.038112279027700424, 0.20166835188865662, -0.22635489702224731, -0.12448645383119583, -0.21199674904346466, -0.06880088895559311, -0.18714122474193573, -0.228764608502388, -0.36810746788978577, 0.2676642835140228, -0.39746928215026855, -0.04810570180416107, 0.10963159054517746, -0.14428089559078217, 0.12780068814754486, 0.20107099413871765, 0.11405659466981888, 0.13477283716201782, 0.44946417212486267, 0.13311398029327393, -0.2817562222480774, -0.11044775694608688, -0.31635671854019165, 0.2716571092605591, 0.15504169464111328, -0.3163851201534271, 0.2832717299461365, 0.3418692648410797, -0.050497811287641525, -0.23707401752471924, 0.5526759028434753, 0.652224600315094, 0.3537188470363617, -0.14521898329257965, 0.007220395840704441, 0.03287327289581299, 0.13185755908489227, -0.08332985639572144, 0.09240247309207916, 0.13208042085170746, 0.27384188771247864, 0.3750735819339752, 0.162776380777359, -0.1621028333902359, 0.15090122818946838, 0.21575966477394104, 0.173751562833786, -0.26355376839637756, 0.291787326335907, -0.04756531864404678, -0.0709342360496521, -0.06877816468477249, 0.010969321243464947, -0.3325085937976837, 0.11672413349151611, 0.4725085496902466, -0.09931309521198273, 0.22564828395843506, 0.00025793586974032223, 0.12229227274656296, 0.01169999223202467, 0.38316091895103455, 0.12131239473819733, 0.10068784654140472, -0.6743168830871582, 0.06177964061498642, -0.45722681283950806, 0.2957104742527008, -0.14188794791698456, 0.1963329166173935, -0.04305543750524521, 0.10472258925437927, -0.2969473600387573, -0.06525225192308426, 0.29556652903556824, -0.040778748691082, 0.07654082030057907, 0.46357235312461853, -0.5969394445419312, 0.049504783004522324, -0.33520767092704773, -0.12624181807041168, 0.3455520570278168, -0.4687044024467468, 0.2194332629442215, -0.152248814702034, 0.09160998463630676, 0.1163390651345253, -0.0036384938284754753, 0.30936118960380554, 0.12445300817489624, 0.5834570527076721, 0.1750374287366867, 0.6061421632766724, -0.12605129182338715, 0.1312723010778427, -0.11316049844026566, -0.4133680760860443, -0.3300968110561371, -0.006951154675334692, 0.14930009841918945, 0.10661004483699799, -0.07569320499897003, -0.09274786710739136, -0.3385123014450073, -0.15237374603748322, 0.026059282943606377, -0.1396058350801468, -0.04959645867347717, 0.04006503149867058, 0.0016710415948182344, 0.04849930852651596, 0.13143287599086761, 0.2882745563983917, 0.25443968176841736, 0.23279593884944916, -0.434808611869812, -0.3158877491950989, 0.5066921710968018, -0.20326006412506104, -0.5028809309005737, -0.36840763688087463, 0.3902990520000458, -0.026088697835803032, 0.08401511609554291, -0.625706136226654, 0.13618555665016174, 0.3196179270744324, -0.07806576043367386, -0.19408385455608368, 0.16662828624248505, 0.0340074747800827, -0.1527428776025772, 0.10099761188030243, -0.04395321384072304, 0.04539431259036064, -0.3636942207813263, 0.027707930654287338, -0.06068055331707001 ]
https://github.com/huggingface/datasets/issues/2728
Concurrent use of same dataset (already downloaded)
You can probably have a solution much faster than me (first time I use the library). But I suspect some write function are used when loading the dataset from cache.
## Describe the bug When launching several jobs at the same time loading the same dataset trigger some errors see (last comments). ## Steps to reproduce the bug export HF_DATASETS_CACHE=/gpfswork/rech/toto/datasets for MODEL in "bert-base-uncased" "roberta-base" "distilbert-base-cased"; do # "bert-base-uncased" "bert-large-cased" "roberta-large" "albert-base-v1" "albert-large-v1"; do for TASK_NAME in "mrpc" "rte" 'imdb' "paws" "mnli"; do export OUTPUT_DIR=${MODEL}_${TASK_NAME} sbatch --job-name=${OUTPUT_DIR} \ --gres=gpu:1 \ --no-requeue \ --cpus-per-task=10 \ --hint=nomultithread \ --time=1:00:00 \ --output=jobinfo/${OUTPUT_DIR}_%j.out \ --error=jobinfo/${OUTPUT_DIR}_%j.err \ --qos=qos_gpu-t4 \ --wrap="module purge; module load pytorch-gpu/py3/1.7.0 ; export HF_DATASETS_OFFLINE=1; export HF_DATASETS_CACHE=/gpfswork/rech/toto/datasets; python compute_measures.py --seed=$SEED --saving_path=results --batch_size=$BATCH_SIZE --task_name=$TASK_NAME --model_name=/gpfswork/rech/toto/transformers_models/$MODEL" done done ```python # Sample code to reproduce the bug dataset_train = load_dataset('imdb', split='train', download_mode="reuse_cache_if_exists") dataset_train = dataset_train.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'), batched=True).select(list(range(args.filter))) dataset_val = load_dataset('imdb', split='train', download_mode="reuse_cache_if_exists") dataset_val = dataset_val.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'), batched=True).select(list(range(args.filter, args.filter + 5000))) dataset_test = load_dataset('imdb', split='test', download_mode="reuse_cache_if_exists") dataset_test = dataset_test.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'), batched=True) ``` ## Expected results I believe I am doing something wrong with the objects. ## Actual results Traceback (most recent call last): File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 652, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 983, in _prepare_split check_duplicates=True, File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/arrow_writer.py", line 192, in __init__ self.stream = pa.OSFile(self._path, "wb") File "pyarrow/io.pxi", line 829, in pyarrow.lib.OSFile.__cinit__ File "pyarrow/io.pxi", line 844, in pyarrow.lib.OSFile._open_writable File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 97, in pyarrow.lib.check_status FileNotFoundError: [Errno 2] Failed to open local file '/gpfswork/rech/tts/unm25jp/datasets/paws/labeled_final/1.1.0/09d8fae989bb569009a8f5b879ccf2924d3e5cd55bfe2e89e6dab1c0b50ecd34.incomplete/paws-test.arrow'. Detail: [errno 2] No such file or directory During handling of the above exception, another exception occurred: Traceback (most recent call last): File "compute_measures.py", line 181, in <module> train_loader, val_loader, test_loader = get_dataloader(args) File "/gpfsdswork/projects/rech/toto/intRAOcular/dataset_utils.py", line 69, in get_dataloader dataset_train = load_dataset('paws', "labeled_final", split='train', download_mode="reuse_cache_if_exists") File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/load.py", line 748, in load_dataset use_auth_token=use_auth_token, File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 575, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 658, in _download_and_prepare + str(e) OSError: Cannot find data file. Original error: [Errno 2] Failed to open local file '/gpfswork/rech/toto/datasets/paws/labeled_final/1.1.0/09d8fae989bb569009a8f5b879ccf2924d3e5cd55bfe2e89e6dab1c0b50ecd34.incomplete/paws-test.arrow'. Detail: [errno 2] No such file or directory ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: datasets==1.8.0 - Platform: linux (jeanzay) - Python version: pyarrow==2.0.0 - PyArrow version: 3.7.8
30
Concurrent use of same dataset (already downloaded) ## Describe the bug When launching several jobs at the same time loading the same dataset trigger some errors see (last comments). ## Steps to reproduce the bug export HF_DATASETS_CACHE=/gpfswork/rech/toto/datasets for MODEL in "bert-base-uncased" "roberta-base" "distilbert-base-cased"; do # "bert-base-uncased" "bert-large-cased" "roberta-large" "albert-base-v1" "albert-large-v1"; do for TASK_NAME in "mrpc" "rte" 'imdb' "paws" "mnli"; do export OUTPUT_DIR=${MODEL}_${TASK_NAME} sbatch --job-name=${OUTPUT_DIR} \ --gres=gpu:1 \ --no-requeue \ --cpus-per-task=10 \ --hint=nomultithread \ --time=1:00:00 \ --output=jobinfo/${OUTPUT_DIR}_%j.out \ --error=jobinfo/${OUTPUT_DIR}_%j.err \ --qos=qos_gpu-t4 \ --wrap="module purge; module load pytorch-gpu/py3/1.7.0 ; export HF_DATASETS_OFFLINE=1; export HF_DATASETS_CACHE=/gpfswork/rech/toto/datasets; python compute_measures.py --seed=$SEED --saving_path=results --batch_size=$BATCH_SIZE --task_name=$TASK_NAME --model_name=/gpfswork/rech/toto/transformers_models/$MODEL" done done ```python # Sample code to reproduce the bug dataset_train = load_dataset('imdb', split='train', download_mode="reuse_cache_if_exists") dataset_train = dataset_train.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'), batched=True).select(list(range(args.filter))) dataset_val = load_dataset('imdb', split='train', download_mode="reuse_cache_if_exists") dataset_val = dataset_val.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'), batched=True).select(list(range(args.filter, args.filter + 5000))) dataset_test = load_dataset('imdb', split='test', download_mode="reuse_cache_if_exists") dataset_test = dataset_test.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'), batched=True) ``` ## Expected results I believe I am doing something wrong with the objects. ## Actual results Traceback (most recent call last): File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 652, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 983, in _prepare_split check_duplicates=True, File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/arrow_writer.py", line 192, in __init__ self.stream = pa.OSFile(self._path, "wb") File "pyarrow/io.pxi", line 829, in pyarrow.lib.OSFile.__cinit__ File "pyarrow/io.pxi", line 844, in pyarrow.lib.OSFile._open_writable File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 97, in pyarrow.lib.check_status FileNotFoundError: [Errno 2] Failed to open local file '/gpfswork/rech/tts/unm25jp/datasets/paws/labeled_final/1.1.0/09d8fae989bb569009a8f5b879ccf2924d3e5cd55bfe2e89e6dab1c0b50ecd34.incomplete/paws-test.arrow'. Detail: [errno 2] No such file or directory During handling of the above exception, another exception occurred: Traceback (most recent call last): File "compute_measures.py", line 181, in <module> train_loader, val_loader, test_loader = get_dataloader(args) File "/gpfsdswork/projects/rech/toto/intRAOcular/dataset_utils.py", line 69, in get_dataloader dataset_train = load_dataset('paws', "labeled_final", split='train', download_mode="reuse_cache_if_exists") File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/load.py", line 748, in load_dataset use_auth_token=use_auth_token, File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 575, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 658, in _download_and_prepare + str(e) OSError: Cannot find data file. Original error: [Errno 2] Failed to open local file '/gpfswork/rech/toto/datasets/paws/labeled_final/1.1.0/09d8fae989bb569009a8f5b879ccf2924d3e5cd55bfe2e89e6dab1c0b50ecd34.incomplete/paws-test.arrow'. Detail: [errno 2] No such file or directory ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: datasets==1.8.0 - Platform: linux (jeanzay) - Python version: pyarrow==2.0.0 - PyArrow version: 3.7.8 You can probably have a solution much faster than me (first time I use the library). But I suspect some write function are used when loading the dataset from cache.
[ -0.5779123902320862, -0.08099978417158127, -0.0453643873333931, 0.4501565992832184, 0.24596263468265533, 0.013975231908261776, 0.5565329194068909, 0.272381454706192, 0.184371218085289, 0.19074305891990662, -0.031177762895822525, 0.14643564820289612, 0.02124251425266266, 0.14418794214725494, -0.08855093270540237, 0.023560045287013054, 0.1309165358543396, -0.225741446018219, -0.3968795835971832, -0.02036309987306595, -0.24068200588226318, 0.1446244865655899, 0.08555006980895996, 0.19327080249786377, -0.5113248229026794, -0.34338560700416565, -0.05417598783969879, 0.05579312890768051, 0.25900357961654663, -0.06713283061981201, 0.16646352410316467, 0.28593865036964417, -0.011624091304838657, 0.8678808212280273, -0.00010900417692027986, 0.1391356885433197, 0.12896789610385895, 0.11097251623868942, -0.06344693899154663, -0.2272721379995346, 0.03308170661330223, -0.10797516256570816, 0.1186952069401741, -0.31377798318862915, 0.11895107477903366, 0.0584995374083519, -0.030055416747927666, -0.2093537300825119, 0.5382678508758545, 0.07361012697219849, 0.2384028434753418, 0.3819693922996521, -0.3065968155860901, -0.2297079861164093, 0.18424536287784576, 0.05697964131832123, 0.08603598922491074, 0.07030656188726425, 0.10061503946781158, -0.16042841970920563, -0.024354195222258568, 0.4298267066478729, -0.1288745403289795, 0.20597021281719208, -0.02313431352376938, 0.0869603157043457, 0.1051388680934906, -0.5513932704925537, 0.07672452181577682, 0.06888933479785919, -0.0115327974781394, -0.31230297684669495, -0.3542196750640869, -0.3473508059978485, -0.06392675638198853, -0.25516507029533386, 0.0928213968873024, 0.3452659249305725, -0.2033957540988922, -0.1923074722290039, -0.09205156564712524, 0.18674926459789276, -0.07550418376922607, -0.13499562442302704, 0.24153637886047363, 0.3306526243686676, 0.08305171877145767, 0.23875266313552856, 0.06923217326402664, 0.09273317456245422, 0.3280491828918457, -0.16129527986049652, -0.1014358177781105, -0.07755306363105774, -0.6200729608535767, 0.04574606195092201, -0.016056988388299942, -0.46522319316864014, 0.18437418341636658, -0.18587316572666168, -0.18850846588611603, 0.049986615777015686, 0.17170880734920502, 0.10315100103616714, 0.2989788353443146, 0.09600113332271576, -0.3177451491355896, 0.27054837346076965, 0.34386226534843445, 0.13319788873195648, -0.5029963850975037, 0.06527422368526459, -0.015613920986652374, -0.25675222277641296, 0.21760934591293335, 0.1873345822095871, 0.2414577454328537, -0.08298888802528381, -0.35721924901008606, -0.052314188331365585, -0.05111769959330559, -0.05585254356265068, -0.10141479223966599, 0.4524841904640198, 0.17779040336608887, 0.15677405893802643, 0.09131286293268204, 0.19694416224956512, -0.18229225277900696, 0.062487274408340454, -0.30123040080070496, -0.029075367376208305, -0.014692489057779312, 0.21433311700820923, 0.1157393753528595, -0.06431407481431961, 0.22488488256931305, 0.33794447779655457, 0.049888741225004196, -0.4685380458831787, 0.2624683380126953, -0.36572569608688354, -0.24716591835021973, 0.1961343139410019, 0.18517854809761047, 0.13720662891864777, -0.10516063868999481, 0.3842988908290863, 0.013487235642969608, 0.25873279571533203, -0.32880455255508423, -0.13939470052719116, 0.08096802234649658, 0.27273881435394287, 0.013745478354394436, 0.11527714133262634, -0.35549792647361755, 0.11369147151708603, 0.31862854957580566, -0.04166976362466812, 0.10863825678825378, -0.37206482887268066, -0.31641262769699097, -0.1393730640411377, -0.02054436132311821, 0.5279050469398499, 0.07681235671043396, 0.026820790022611618, 0.17709174752235413, -0.10901078581809998, 0.09156663715839386, 0.35109782218933105, -0.34232404828071594, 0.49661684036254883, -0.34933143854141235, 0.12881793081760406, 0.24404999613761902, -0.37196385860443115, -0.151671901345253, 0.33838462829589844, -0.16466578841209412, 0.12522073090076447, 0.21128757297992706, -0.056855376809835434, 0.21223397552967072, -0.13592176139354706, -0.008483022451400757, 0.1491885632276535, -0.10798624157905579, 0.4015439450740814, -0.19186070561408997, -0.2839154303073883, 0.0489501915872097, 0.16889359056949615, 0.32238075137138367, -0.09399767220020294, 0.02698216214776039, -0.287477970123291, 0.3875815272331238, -0.3304336667060852, -0.07319336384534836, 0.21585258841514587, -0.010300586931407452, 0.07953563332557678, 0.08106482774019241, -0.10964708775281906, -0.516921877861023, 0.19788147509098053, -0.3624860644340515, 0.04324986785650253, 0.03422991558909416, -0.19916096329689026, 0.10673750191926956, -0.04177068546414375, -0.24885325133800507, -0.18883027136325836, 0.17062747478485107, 0.23171366751194, -0.15026786923408508, -0.11813762784004211, -0.14736022055149078, 0.35990506410598755, -0.15828092396259308, 0.02346181496977806, -0.002393687143921852, 0.17053630948066711, -0.19518950581550598, -0.21852800250053406, 0.11620977520942688, -0.06034854054450989, 0.4591345489025116, -0.18166108429431915, -0.16463841497898102, 0.2344813197851181, 0.19793593883514404, 0.3151446580886841, -0.06082993000745773, 0.016890956088900566, 0.18742115795612335, 0.15569081902503967, -0.001790467882528901, 0.14251738786697388, 0.2640644311904907, -0.14529012143611908, 0.09745524823665619, 0.3178671598434448, 0.0033609059173613787, 0.13837000727653503, 0.05906008556485176, -0.2233060747385025, 0.19342415034770966, -0.12333821505308151, 0.18917913734912872, 0.12245818972587585, 0.2253105789422989, 0.12555545568466187, 0.016756219789385796, -0.0816582515835762, -0.5741454362869263, 0.08364418148994446, 0.3775578439235687, 0.16694168746471405, 0.07349452376365662, 0.07330919057130814, -0.04748997837305069, 0.022788891568779945, -0.16829320788383484, 0.2998524606227875, 0.5353221893310547, 0.13491131365299225, 0.045724205672740936, 0.08820877969264984, -0.14512702822685242, -0.0892191231250763, 0.06667671352624893, 0.15460556745529175, 0.1948830932378769, 0.5548340082168579, 0.1994924694299698, -0.06998042017221451, -0.28036192059516907, -0.1119270771741867, 0.26719316840171814, 0.09417521953582764, -0.37482377886772156, 0.18501527607440948, 0.1274145096540451, -0.17477929592132568, -0.42136287689208984, 0.005404334980994463, -0.03352367505431175, -0.1470949649810791, -0.03985291346907616, 0.45684051513671875, -0.19973596930503845, 0.36714521050453186, -0.02992917038500309, 0.15714819729328156, -0.18679825961589813, 0.2361011803150177, -0.1471162885427475, -0.07119865715503693, -0.11414828896522522, -0.011395532637834549, 0.2849562168121338, 0.0669403150677681, 0.31874993443489075, 0.07194451242685318, -0.31695228815078735, -0.35995522141456604, -0.0033947904594242573, 0.07836989313364029, 0.001777535886503756, 0.423190176486969, -0.08440498262643814, -0.19659386575222015, 0.0808483213186264, -0.4469999670982361, 0.20245452225208282, -0.35917648673057556, -0.0702027902007103, -0.1327766478061676, -0.2264380156993866, -0.06717550754547119, -0.17661428451538086, -0.3789283335208893, -0.2513655126094818, -0.2676904797554016, -0.0906180813908577, -0.17275170981884003, 0.21168868243694305, 0.07636548578739166, -0.14113710820674896, -0.0400552861392498, 0.15371277928352356, -0.004670093767344952, -0.3079811930656433, -0.3230580687522888, 0.06932705640792847, -0.1893557608127594, -0.32066023349761963, -0.08726827800273895, -0.14780887961387634, 0.06826910376548767, 0.22674456238746643, -0.4916568696498871, -0.3557167053222656, -0.10712824761867523, 0.05779502913355827, -0.1461232602596283, -0.03710469976067543, 0.05069755017757416, 0.06102216616272926, -0.13800612092018127, -0.11718849092721939, -0.17283916473388672, 0.20160578191280365, -0.03128283470869064, 0.005255679599940777, -0.16598066687583923, 0.2671521008014679, -0.1580262929201126, 0.6628258228302002, 0.24492675065994263, -0.06110280007123947, 0.32978805899620056, -0.1419709026813507, 0.07865588366985321, -0.01828025095164776, -0.44076424837112427, -0.06863146275281906, -0.43008941411972046, -0.23295366764068604, 0.14238102734088898, -0.3390008509159088, -0.16552861034870148, -0.08836284279823303, 0.020786365494132042, -0.3483385145664215, -0.3111567199230194, 0.10517880320549011, -0.15689629316329956, 0.332001268863678, 0.047319334000349045, 0.16082365810871124, 0.0032933170441538095, 0.0731305181980133, 0.28529462218284607, 0.03721876069903374, 0.20852936804294586, -0.18799670040607452, -0.032074935734272, 0.07562915980815887, -0.19160208106040955, 0.32076600193977356, 0.09924571216106415, 0.18817654252052307, -0.09984832257032394, 0.2111589014530182, 0.017397155985236168, -0.11549406498670578, 0.8625527024269104, -0.1944369673728943, 0.32594946026802063, 0.19437763094902039, -0.3524225354194641, -0.08486980944871902, -0.19156908988952637, -0.3549928367137909, -0.21128618717193604, 0.2583167254924774, 0.6643009185791016, -0.3218052387237549, -0.123782679438591, 0.14336378872394562, -0.02083759382367134, -0.28243735432624817, -0.3151058554649353, -0.16054219007492065, -0.3001241087913513, -0.28057724237442017, 0.17587687075138092, -0.09049971401691437, 0.12028753757476807, -0.5292028784751892, -0.08387154340744019, -0.18149131536483765, 0.20682556927204132, -0.010572141036391258, 0.058843404054641724, 0.28042080998420715, -0.06041638180613518, 0.40394243597984314, 0.12626111507415771, -0.03015824966132641, 0.27479735016822815, 0.4463309645652771, 0.020108981058001518, -0.27702596783638, 0.0019540595822036266, 0.04634165018796921, 0.08977249264717102, 0.4556979537010193, 0.027261408045887947, 0.13520915806293488, 0.06710048764944077, 0.268085241317749, -0.06722414493560791, 0.17809057235717773, 0.3836326599121094, 0.21999971568584442, -0.19891133904457092, -0.34773167967796326, 0.09311103820800781, 0.2356353998184204, -0.13195574283599854, 0.2889438569545746, -0.5127382278442383, -0.20680725574493408, 0.3026009500026703, -0.004667896777391434, 0.6622441411018372, 0.014262789860367775, 0.09115384519100189, 0.3084227442741394, -0.3028063476085663, 0.28654590249061584, -0.21504844725131989, 0.3221714496612549, -0.5821489691734314, -0.26835107803344727, 0.11587274819612503, -0.12703241407871246, -0.0752490684390068, 0.052676957100629807, -0.11407038569450378, 0.3120548129081726, -0.0008433390175923705, 0.032436635345220566, -0.24797198176383972, 0.2446671575307846, 0.006566015537828207, -0.3198530673980713, 0.05312325432896614, 0.11875617504119873, -0.2992704510688782, 0.25692683458328247, -0.1400964856147766, -0.10824563354253769, 0.2545025646686554, -0.23585978150367737, -0.29385995864868164, 0.23255454003810883, -0.34849458932876587, 0.28062641620635986, -0.14337541162967682, -0.19273066520690918, 0.04639912396669388, -0.08668247610330582, 0.15603475272655487, -0.2287229299545288, 0.07313434779644012, 0.09576299786567688, 0.0568755604326725, 0.13810387253761292, -0.23188330233097076, -0.15370063483715057, 0.427776575088501, 0.021163105964660645, -0.36206793785095215, -0.08203351497650146, -0.03733687102794647, -0.014833035878837109, -0.12812699377536774, 0.04811539128422737, -0.1951635479927063, -0.19833289086818695, -0.11310986429452896, 0.2236151248216629, -0.074234239757061, -0.31547170877456665, 0.15182627737522125, -0.2507011294364929, -0.2737051248550415, 0.3905717432498932, -0.12386585026979446, -0.37392646074295044, -0.07747818529605865, 0.22042568027973175, 0.1755114644765854, 0.07899513840675354, 0.41065242886543274, 0.3367050290107727, -0.06407320499420166, -0.31330406665802, -0.23844781517982483, 0.159805029630661, -0.4164748191833496, 0.17728570103645325, -0.14357814192771912, 0.15152212977409363, -0.027345724403858185, 0.3164762854576111, 0.06300118565559387, 0.12059438228607178, 0.020655622705817223, -0.29400163888931274, -0.21536673605442047, -0.017784465104341507, -0.06378436088562012, 0.21608154475688934, 0.20124709606170654, 0.26182785630226135, 0.02820488065481186, 0.32445040345191956, -0.3282783329486847, 0.23353953659534454, -0.20574621856212616, 0.13083943724632263, 0.05137183889746666, -0.13134920597076416, 0.08273912221193314, 0.23978212475776672, 0.09755837917327881, 0.21972641348838806, -0.16471827030181885, -0.26122215390205383, -0.22638390958309174, 0.09875482320785522, -0.02084227092564106, 0.020225156098604202, -0.14770355820655823, -0.133464053273201, 0.1280260682106018, -0.018377017229795456, 0.4289836883544922, 0.2284488081932068, -0.16439765691757202, 0.10616188496351242, 0.13675528764724731, 0.164822056889534, -0.08187931776046753, 0.1702709197998047, 0.0002730499836616218, -0.09964210540056229, 0.18882642686367035, 0.18288221955299377, -0.0026518928352743387, 0.039651524275541306, -0.29793068766593933, -0.18287692964076996, 0.4134559631347656, 0.1560274362564087, 0.0929485335946083, -0.3851541578769684, -0.22395502030849457, 0.03145121410489082, 0.45000889897346497, 0.3133752644062042, -0.31149715185165405, -0.05748783424496651, -0.03705020621418953, 0.2802082896232605, -0.18614499270915985, -0.02526070550084114, -0.00044337366125546396, -0.19825348258018494, 0.017028208822011948, 0.3708455264568329, 0.3222137689590454, 0.049197718501091, -0.025716811418533325, 0.15775178372859955, 0.3708708882331848, -0.3861028552055359, 0.24043022096157074, -0.004391720052808523, -0.12606969475746155, 0.1273740977048874, 0.40780526399612427, 0.22648711502552032, 0.07974500954151154, 0.17885339260101318, 0.09110397100448608, 0.18546290695667267, -0.03016713261604309, -0.14113056659698486, 0.11168406903743744, -0.30865997076034546, -0.038112279027700424, 0.20166835188865662, -0.22635489702224731, -0.12448645383119583, -0.21199674904346466, -0.06880088895559311, -0.18714122474193573, -0.228764608502388, -0.36810746788978577, 0.2676642835140228, -0.39746928215026855, -0.04810570180416107, 0.10963159054517746, -0.14428089559078217, 0.12780068814754486, 0.20107099413871765, 0.11405659466981888, 0.13477283716201782, 0.44946417212486267, 0.13311398029327393, -0.2817562222480774, -0.11044775694608688, -0.31635671854019165, 0.2716571092605591, 0.15504169464111328, -0.3163851201534271, 0.2832717299461365, 0.3418692648410797, -0.050497811287641525, -0.23707401752471924, 0.5526759028434753, 0.652224600315094, 0.3537188470363617, -0.14521898329257965, 0.007220395840704441, 0.03287327289581299, 0.13185755908489227, -0.08332985639572144, 0.09240247309207916, 0.13208042085170746, 0.27384188771247864, 0.3750735819339752, 0.162776380777359, -0.1621028333902359, 0.15090122818946838, 0.21575966477394104, 0.173751562833786, -0.26355376839637756, 0.291787326335907, -0.04756531864404678, -0.0709342360496521, -0.06877816468477249, 0.010969321243464947, -0.3325085937976837, 0.11672413349151611, 0.4725085496902466, -0.09931309521198273, 0.22564828395843506, 0.00025793586974032223, 0.12229227274656296, 0.01169999223202467, 0.38316091895103455, 0.12131239473819733, 0.10068784654140472, -0.6743168830871582, 0.06177964061498642, -0.45722681283950806, 0.2957104742527008, -0.14188794791698456, 0.1963329166173935, -0.04305543750524521, 0.10472258925437927, -0.2969473600387573, -0.06525225192308426, 0.29556652903556824, -0.040778748691082, 0.07654082030057907, 0.46357235312461853, -0.5969394445419312, 0.049504783004522324, -0.33520767092704773, -0.12624181807041168, 0.3455520570278168, -0.4687044024467468, 0.2194332629442215, -0.152248814702034, 0.09160998463630676, 0.1163390651345253, -0.0036384938284754753, 0.30936118960380554, 0.12445300817489624, 0.5834570527076721, 0.1750374287366867, 0.6061421632766724, -0.12605129182338715, 0.1312723010778427, -0.11316049844026566, -0.4133680760860443, -0.3300968110561371, -0.006951154675334692, 0.14930009841918945, 0.10661004483699799, -0.07569320499897003, -0.09274786710739136, -0.3385123014450073, -0.15237374603748322, 0.026059282943606377, -0.1396058350801468, -0.04959645867347717, 0.04006503149867058, 0.0016710415948182344, 0.04849930852651596, 0.13143287599086761, 0.2882745563983917, 0.25443968176841736, 0.23279593884944916, -0.434808611869812, -0.3158877491950989, 0.5066921710968018, -0.20326006412506104, -0.5028809309005737, -0.36840763688087463, 0.3902990520000458, -0.026088697835803032, 0.08401511609554291, -0.625706136226654, 0.13618555665016174, 0.3196179270744324, -0.07806576043367386, -0.19408385455608368, 0.16662828624248505, 0.0340074747800827, -0.1527428776025772, 0.10099761188030243, -0.04395321384072304, 0.04539431259036064, -0.3636942207813263, 0.027707930654287338, -0.06068055331707001 ]
https://github.com/huggingface/datasets/issues/2728
Concurrent use of same dataset (already downloaded)
I have the same issue: ``` Traceback (most recent call last): File "/dccstor/tslm/envs/anaconda3/envs/trf-a100/lib/python3.9/site-packages/datasets/builder.py", line 652, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/dccstor/tslm/envs/anaconda3/envs/trf-a100/lib/python3.9/site-packages/datasets/builder.py", line 1040, in _prepare_split with ArrowWriter(features=self.info.features, path=fpath) as writer: File "/dccstor/tslm/envs/anaconda3/envs/trf-a100/lib/python3.9/site-packages/datasets/arrow_writer.py", line 192, in __init__ self.stream = pa.OSFile(self._path, "wb") File "pyarrow/io.pxi", line 829, in pyarrow.lib.OSFile.__cinit__ File "pyarrow/io.pxi", line 844, in pyarrow.lib.OSFile._open_writable File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 97, in pyarrow.lib.check_status FileNotFoundError: [Errno 2] Failed to open local file '/dccstor/tslm-gen/.cache/csv/default-387f1f95c084d4df/0.0.0/2dc6629a9ff6b5697d82c25b73731dd440507a69cbce8b425db50b751e8fcfd0.incomplete/csv-validation.arrow'. Detail: [errno 2] No such file or directory During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/dccstor/tslm/elron/tslm-gen/train.py", line 510, in <module> main() File "/dccstor/tslm/elron/tslm-gen/train.py", line 246, in main datasets = prepare_dataset(dataset_args, logger) File "/dccstor/tslm/elron/tslm-gen/data.py", line 157, in prepare_dataset datasets = load_dataset(extension, data_files=data_files, split=dataset_split, cache_dir=dataset_args.dataset_cache_dir, na_filter=False, download_mode=dataset_args.dataset_generate_mode) File "/dccstor/tslm/envs/anaconda3/envs/trf-a100/lib/python3.9/site-packages/datasets/load.py", line 742, in load_dataset builder_instance.download_and_prepare( File "/dccstor/tslm/envs/anaconda3/envs/trf-a100/lib/python3.9/site-packages/datasets/builder.py", line 574, in download_and_prepare self._download_and_prepare( File "/dccstor/tslm/envs/anaconda3/envs/trf-a100/lib/python3.9/site-packages/datasets/builder.py", line 654, in _download_and_prepare raise OSError( OSError: Cannot find data file. Original error: [Errno 2] Failed to open local file '/dccstor/tslm-gen/.cache/csv/default-387f1f95c084d4df/0.0.0/2dc6629a9ff6b5697d82c25b73731dd440507a69cbce8b425db50b751e8fcfd0.incomplete/csv-validation.arrow'. Detail: [errno 2] No such file or directory ```
## Describe the bug When launching several jobs at the same time loading the same dataset trigger some errors see (last comments). ## Steps to reproduce the bug export HF_DATASETS_CACHE=/gpfswork/rech/toto/datasets for MODEL in "bert-base-uncased" "roberta-base" "distilbert-base-cased"; do # "bert-base-uncased" "bert-large-cased" "roberta-large" "albert-base-v1" "albert-large-v1"; do for TASK_NAME in "mrpc" "rte" 'imdb' "paws" "mnli"; do export OUTPUT_DIR=${MODEL}_${TASK_NAME} sbatch --job-name=${OUTPUT_DIR} \ --gres=gpu:1 \ --no-requeue \ --cpus-per-task=10 \ --hint=nomultithread \ --time=1:00:00 \ --output=jobinfo/${OUTPUT_DIR}_%j.out \ --error=jobinfo/${OUTPUT_DIR}_%j.err \ --qos=qos_gpu-t4 \ --wrap="module purge; module load pytorch-gpu/py3/1.7.0 ; export HF_DATASETS_OFFLINE=1; export HF_DATASETS_CACHE=/gpfswork/rech/toto/datasets; python compute_measures.py --seed=$SEED --saving_path=results --batch_size=$BATCH_SIZE --task_name=$TASK_NAME --model_name=/gpfswork/rech/toto/transformers_models/$MODEL" done done ```python # Sample code to reproduce the bug dataset_train = load_dataset('imdb', split='train', download_mode="reuse_cache_if_exists") dataset_train = dataset_train.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'), batched=True).select(list(range(args.filter))) dataset_val = load_dataset('imdb', split='train', download_mode="reuse_cache_if_exists") dataset_val = dataset_val.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'), batched=True).select(list(range(args.filter, args.filter + 5000))) dataset_test = load_dataset('imdb', split='test', download_mode="reuse_cache_if_exists") dataset_test = dataset_test.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'), batched=True) ``` ## Expected results I believe I am doing something wrong with the objects. ## Actual results Traceback (most recent call last): File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 652, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 983, in _prepare_split check_duplicates=True, File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/arrow_writer.py", line 192, in __init__ self.stream = pa.OSFile(self._path, "wb") File "pyarrow/io.pxi", line 829, in pyarrow.lib.OSFile.__cinit__ File "pyarrow/io.pxi", line 844, in pyarrow.lib.OSFile._open_writable File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 97, in pyarrow.lib.check_status FileNotFoundError: [Errno 2] Failed to open local file '/gpfswork/rech/tts/unm25jp/datasets/paws/labeled_final/1.1.0/09d8fae989bb569009a8f5b879ccf2924d3e5cd55bfe2e89e6dab1c0b50ecd34.incomplete/paws-test.arrow'. Detail: [errno 2] No such file or directory During handling of the above exception, another exception occurred: Traceback (most recent call last): File "compute_measures.py", line 181, in <module> train_loader, val_loader, test_loader = get_dataloader(args) File "/gpfsdswork/projects/rech/toto/intRAOcular/dataset_utils.py", line 69, in get_dataloader dataset_train = load_dataset('paws', "labeled_final", split='train', download_mode="reuse_cache_if_exists") File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/load.py", line 748, in load_dataset use_auth_token=use_auth_token, File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 575, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 658, in _download_and_prepare + str(e) OSError: Cannot find data file. Original error: [Errno 2] Failed to open local file '/gpfswork/rech/toto/datasets/paws/labeled_final/1.1.0/09d8fae989bb569009a8f5b879ccf2924d3e5cd55bfe2e89e6dab1c0b50ecd34.incomplete/paws-test.arrow'. Detail: [errno 2] No such file or directory ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: datasets==1.8.0 - Platform: linux (jeanzay) - Python version: pyarrow==2.0.0 - PyArrow version: 3.7.8
172
Concurrent use of same dataset (already downloaded) ## Describe the bug When launching several jobs at the same time loading the same dataset trigger some errors see (last comments). ## Steps to reproduce the bug export HF_DATASETS_CACHE=/gpfswork/rech/toto/datasets for MODEL in "bert-base-uncased" "roberta-base" "distilbert-base-cased"; do # "bert-base-uncased" "bert-large-cased" "roberta-large" "albert-base-v1" "albert-large-v1"; do for TASK_NAME in "mrpc" "rte" 'imdb' "paws" "mnli"; do export OUTPUT_DIR=${MODEL}_${TASK_NAME} sbatch --job-name=${OUTPUT_DIR} \ --gres=gpu:1 \ --no-requeue \ --cpus-per-task=10 \ --hint=nomultithread \ --time=1:00:00 \ --output=jobinfo/${OUTPUT_DIR}_%j.out \ --error=jobinfo/${OUTPUT_DIR}_%j.err \ --qos=qos_gpu-t4 \ --wrap="module purge; module load pytorch-gpu/py3/1.7.0 ; export HF_DATASETS_OFFLINE=1; export HF_DATASETS_CACHE=/gpfswork/rech/toto/datasets; python compute_measures.py --seed=$SEED --saving_path=results --batch_size=$BATCH_SIZE --task_name=$TASK_NAME --model_name=/gpfswork/rech/toto/transformers_models/$MODEL" done done ```python # Sample code to reproduce the bug dataset_train = load_dataset('imdb', split='train', download_mode="reuse_cache_if_exists") dataset_train = dataset_train.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'), batched=True).select(list(range(args.filter))) dataset_val = load_dataset('imdb', split='train', download_mode="reuse_cache_if_exists") dataset_val = dataset_val.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'), batched=True).select(list(range(args.filter, args.filter + 5000))) dataset_test = load_dataset('imdb', split='test', download_mode="reuse_cache_if_exists") dataset_test = dataset_test.map(lambda e: tokenizer(e['text'], truncation=True, padding='max_length'), batched=True) ``` ## Expected results I believe I am doing something wrong with the objects. ## Actual results Traceback (most recent call last): File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 652, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 983, in _prepare_split check_duplicates=True, File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/arrow_writer.py", line 192, in __init__ self.stream = pa.OSFile(self._path, "wb") File "pyarrow/io.pxi", line 829, in pyarrow.lib.OSFile.__cinit__ File "pyarrow/io.pxi", line 844, in pyarrow.lib.OSFile._open_writable File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 97, in pyarrow.lib.check_status FileNotFoundError: [Errno 2] Failed to open local file '/gpfswork/rech/tts/unm25jp/datasets/paws/labeled_final/1.1.0/09d8fae989bb569009a8f5b879ccf2924d3e5cd55bfe2e89e6dab1c0b50ecd34.incomplete/paws-test.arrow'. Detail: [errno 2] No such file or directory During handling of the above exception, another exception occurred: Traceback (most recent call last): File "compute_measures.py", line 181, in <module> train_loader, val_loader, test_loader = get_dataloader(args) File "/gpfsdswork/projects/rech/toto/intRAOcular/dataset_utils.py", line 69, in get_dataloader dataset_train = load_dataset('paws', "labeled_final", split='train', download_mode="reuse_cache_if_exists") File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/load.py", line 748, in load_dataset use_auth_token=use_auth_token, File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 575, in download_and_prepare dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/gpfslocalsup/pub/anaconda-py3/2020.02/envs/pytorch-gpu-1.7.0/lib/python3.7/site-packages/datasets/builder.py", line 658, in _download_and_prepare + str(e) OSError: Cannot find data file. Original error: [Errno 2] Failed to open local file '/gpfswork/rech/toto/datasets/paws/labeled_final/1.1.0/09d8fae989bb569009a8f5b879ccf2924d3e5cd55bfe2e89e6dab1c0b50ecd34.incomplete/paws-test.arrow'. Detail: [errno 2] No such file or directory ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: datasets==1.8.0 - Platform: linux (jeanzay) - Python version: pyarrow==2.0.0 - PyArrow version: 3.7.8 I have the same issue: ``` Traceback (most recent call last): File "/dccstor/tslm/envs/anaconda3/envs/trf-a100/lib/python3.9/site-packages/datasets/builder.py", line 652, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/dccstor/tslm/envs/anaconda3/envs/trf-a100/lib/python3.9/site-packages/datasets/builder.py", line 1040, in _prepare_split with ArrowWriter(features=self.info.features, path=fpath) as writer: File "/dccstor/tslm/envs/anaconda3/envs/trf-a100/lib/python3.9/site-packages/datasets/arrow_writer.py", line 192, in __init__ self.stream = pa.OSFile(self._path, "wb") File "pyarrow/io.pxi", line 829, in pyarrow.lib.OSFile.__cinit__ File "pyarrow/io.pxi", line 844, in pyarrow.lib.OSFile._open_writable File "pyarrow/error.pxi", line 122, in pyarrow.lib.pyarrow_internal_check_status File "pyarrow/error.pxi", line 97, in pyarrow.lib.check_status FileNotFoundError: [Errno 2] Failed to open local file '/dccstor/tslm-gen/.cache/csv/default-387f1f95c084d4df/0.0.0/2dc6629a9ff6b5697d82c25b73731dd440507a69cbce8b425db50b751e8fcfd0.incomplete/csv-validation.arrow'. Detail: [errno 2] No such file or directory During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/dccstor/tslm/elron/tslm-gen/train.py", line 510, in <module> main() File "/dccstor/tslm/elron/tslm-gen/train.py", line 246, in main datasets = prepare_dataset(dataset_args, logger) File "/dccstor/tslm/elron/tslm-gen/data.py", line 157, in prepare_dataset datasets = load_dataset(extension, data_files=data_files, split=dataset_split, cache_dir=dataset_args.dataset_cache_dir, na_filter=False, download_mode=dataset_args.dataset_generate_mode) File "/dccstor/tslm/envs/anaconda3/envs/trf-a100/lib/python3.9/site-packages/datasets/load.py", line 742, in load_dataset builder_instance.download_and_prepare( File "/dccstor/tslm/envs/anaconda3/envs/trf-a100/lib/python3.9/site-packages/datasets/builder.py", line 574, in download_and_prepare self._download_and_prepare( File "/dccstor/tslm/envs/anaconda3/envs/trf-a100/lib/python3.9/site-packages/datasets/builder.py", line 654, in _download_and_prepare raise OSError( OSError: Cannot find data file. Original error: [Errno 2] Failed to open local file '/dccstor/tslm-gen/.cache/csv/default-387f1f95c084d4df/0.0.0/2dc6629a9ff6b5697d82c25b73731dd440507a69cbce8b425db50b751e8fcfd0.incomplete/csv-validation.arrow'. Detail: [errno 2] No such file or directory ```
[ -0.5779123902320862, -0.08099978417158127, -0.0453643873333931, 0.4501565992832184, 0.24596263468265533, 0.013975231908261776, 0.5565329194068909, 0.272381454706192, 0.184371218085289, 0.19074305891990662, -0.031177762895822525, 0.14643564820289612, 0.02124251425266266, 0.14418794214725494, -0.08855093270540237, 0.023560045287013054, 0.1309165358543396, -0.225741446018219, -0.3968795835971832, -0.02036309987306595, -0.24068200588226318, 0.1446244865655899, 0.08555006980895996, 0.19327080249786377, -0.5113248229026794, -0.34338560700416565, -0.05417598783969879, 0.05579312890768051, 0.25900357961654663, -0.06713283061981201, 0.16646352410316467, 0.28593865036964417, -0.011624091304838657, 0.8678808212280273, -0.00010900417692027986, 0.1391356885433197, 0.12896789610385895, 0.11097251623868942, -0.06344693899154663, -0.2272721379995346, 0.03308170661330223, -0.10797516256570816, 0.1186952069401741, -0.31377798318862915, 0.11895107477903366, 0.0584995374083519, -0.030055416747927666, -0.2093537300825119, 0.5382678508758545, 0.07361012697219849, 0.2384028434753418, 0.3819693922996521, -0.3065968155860901, -0.2297079861164093, 0.18424536287784576, 0.05697964131832123, 0.08603598922491074, 0.07030656188726425, 0.10061503946781158, -0.16042841970920563, -0.024354195222258568, 0.4298267066478729, -0.1288745403289795, 0.20597021281719208, -0.02313431352376938, 0.0869603157043457, 0.1051388680934906, -0.5513932704925537, 0.07672452181577682, 0.06888933479785919, -0.0115327974781394, -0.31230297684669495, -0.3542196750640869, -0.3473508059978485, -0.06392675638198853, -0.25516507029533386, 0.0928213968873024, 0.3452659249305725, -0.2033957540988922, -0.1923074722290039, -0.09205156564712524, 0.18674926459789276, -0.07550418376922607, -0.13499562442302704, 0.24153637886047363, 0.3306526243686676, 0.08305171877145767, 0.23875266313552856, 0.06923217326402664, 0.09273317456245422, 0.3280491828918457, -0.16129527986049652, -0.1014358177781105, -0.07755306363105774, -0.6200729608535767, 0.04574606195092201, -0.016056988388299942, -0.46522319316864014, 0.18437418341636658, -0.18587316572666168, -0.18850846588611603, 0.049986615777015686, 0.17170880734920502, 0.10315100103616714, 0.2989788353443146, 0.09600113332271576, -0.3177451491355896, 0.27054837346076965, 0.34386226534843445, 0.13319788873195648, -0.5029963850975037, 0.06527422368526459, -0.015613920986652374, -0.25675222277641296, 0.21760934591293335, 0.1873345822095871, 0.2414577454328537, -0.08298888802528381, -0.35721924901008606, -0.052314188331365585, -0.05111769959330559, -0.05585254356265068, -0.10141479223966599, 0.4524841904640198, 0.17779040336608887, 0.15677405893802643, 0.09131286293268204, 0.19694416224956512, -0.18229225277900696, 0.062487274408340454, -0.30123040080070496, -0.029075367376208305, -0.014692489057779312, 0.21433311700820923, 0.1157393753528595, -0.06431407481431961, 0.22488488256931305, 0.33794447779655457, 0.049888741225004196, -0.4685380458831787, 0.2624683380126953, -0.36572569608688354, -0.24716591835021973, 0.1961343139410019, 0.18517854809761047, 0.13720662891864777, -0.10516063868999481, 0.3842988908290863, 0.013487235642969608, 0.25873279571533203, -0.32880455255508423, -0.13939470052719116, 0.08096802234649658, 0.27273881435394287, 0.013745478354394436, 0.11527714133262634, -0.35549792647361755, 0.11369147151708603, 0.31862854957580566, -0.04166976362466812, 0.10863825678825378, -0.37206482887268066, -0.31641262769699097, -0.1393730640411377, -0.02054436132311821, 0.5279050469398499, 0.07681235671043396, 0.026820790022611618, 0.17709174752235413, -0.10901078581809998, 0.09156663715839386, 0.35109782218933105, -0.34232404828071594, 0.49661684036254883, -0.34933143854141235, 0.12881793081760406, 0.24404999613761902, -0.37196385860443115, -0.151671901345253, 0.33838462829589844, -0.16466578841209412, 0.12522073090076447, 0.21128757297992706, -0.056855376809835434, 0.21223397552967072, -0.13592176139354706, -0.008483022451400757, 0.1491885632276535, -0.10798624157905579, 0.4015439450740814, -0.19186070561408997, -0.2839154303073883, 0.0489501915872097, 0.16889359056949615, 0.32238075137138367, -0.09399767220020294, 0.02698216214776039, -0.287477970123291, 0.3875815272331238, -0.3304336667060852, -0.07319336384534836, 0.21585258841514587, -0.010300586931407452, 0.07953563332557678, 0.08106482774019241, -0.10964708775281906, -0.516921877861023, 0.19788147509098053, -0.3624860644340515, 0.04324986785650253, 0.03422991558909416, -0.19916096329689026, 0.10673750191926956, -0.04177068546414375, -0.24885325133800507, -0.18883027136325836, 0.17062747478485107, 0.23171366751194, -0.15026786923408508, -0.11813762784004211, -0.14736022055149078, 0.35990506410598755, -0.15828092396259308, 0.02346181496977806, -0.002393687143921852, 0.17053630948066711, -0.19518950581550598, -0.21852800250053406, 0.11620977520942688, -0.06034854054450989, 0.4591345489025116, -0.18166108429431915, -0.16463841497898102, 0.2344813197851181, 0.19793593883514404, 0.3151446580886841, -0.06082993000745773, 0.016890956088900566, 0.18742115795612335, 0.15569081902503967, -0.001790467882528901, 0.14251738786697388, 0.2640644311904907, -0.14529012143611908, 0.09745524823665619, 0.3178671598434448, 0.0033609059173613787, 0.13837000727653503, 0.05906008556485176, -0.2233060747385025, 0.19342415034770966, -0.12333821505308151, 0.18917913734912872, 0.12245818972587585, 0.2253105789422989, 0.12555545568466187, 0.016756219789385796, -0.0816582515835762, -0.5741454362869263, 0.08364418148994446, 0.3775578439235687, 0.16694168746471405, 0.07349452376365662, 0.07330919057130814, -0.04748997837305069, 0.022788891568779945, -0.16829320788383484, 0.2998524606227875, 0.5353221893310547, 0.13491131365299225, 0.045724205672740936, 0.08820877969264984, -0.14512702822685242, -0.0892191231250763, 0.06667671352624893, 0.15460556745529175, 0.1948830932378769, 0.5548340082168579, 0.1994924694299698, -0.06998042017221451, -0.28036192059516907, -0.1119270771741867, 0.26719316840171814, 0.09417521953582764, -0.37482377886772156, 0.18501527607440948, 0.1274145096540451, -0.17477929592132568, -0.42136287689208984, 0.005404334980994463, -0.03352367505431175, -0.1470949649810791, -0.03985291346907616, 0.45684051513671875, -0.19973596930503845, 0.36714521050453186, -0.02992917038500309, 0.15714819729328156, -0.18679825961589813, 0.2361011803150177, -0.1471162885427475, -0.07119865715503693, -0.11414828896522522, -0.011395532637834549, 0.2849562168121338, 0.0669403150677681, 0.31874993443489075, 0.07194451242685318, -0.31695228815078735, -0.35995522141456604, -0.0033947904594242573, 0.07836989313364029, 0.001777535886503756, 0.423190176486969, -0.08440498262643814, -0.19659386575222015, 0.0808483213186264, -0.4469999670982361, 0.20245452225208282, -0.35917648673057556, -0.0702027902007103, -0.1327766478061676, -0.2264380156993866, -0.06717550754547119, -0.17661428451538086, -0.3789283335208893, -0.2513655126094818, -0.2676904797554016, -0.0906180813908577, -0.17275170981884003, 0.21168868243694305, 0.07636548578739166, -0.14113710820674896, -0.0400552861392498, 0.15371277928352356, -0.004670093767344952, -0.3079811930656433, -0.3230580687522888, 0.06932705640792847, -0.1893557608127594, -0.32066023349761963, -0.08726827800273895, -0.14780887961387634, 0.06826910376548767, 0.22674456238746643, -0.4916568696498871, -0.3557167053222656, -0.10712824761867523, 0.05779502913355827, -0.1461232602596283, -0.03710469976067543, 0.05069755017757416, 0.06102216616272926, -0.13800612092018127, -0.11718849092721939, -0.17283916473388672, 0.20160578191280365, -0.03128283470869064, 0.005255679599940777, -0.16598066687583923, 0.2671521008014679, -0.1580262929201126, 0.6628258228302002, 0.24492675065994263, -0.06110280007123947, 0.32978805899620056, -0.1419709026813507, 0.07865588366985321, -0.01828025095164776, -0.44076424837112427, -0.06863146275281906, -0.43008941411972046, -0.23295366764068604, 0.14238102734088898, -0.3390008509159088, -0.16552861034870148, -0.08836284279823303, 0.020786365494132042, -0.3483385145664215, -0.3111567199230194, 0.10517880320549011, -0.15689629316329956, 0.332001268863678, 0.047319334000349045, 0.16082365810871124, 0.0032933170441538095, 0.0731305181980133, 0.28529462218284607, 0.03721876069903374, 0.20852936804294586, -0.18799670040607452, -0.032074935734272, 0.07562915980815887, -0.19160208106040955, 0.32076600193977356, 0.09924571216106415, 0.18817654252052307, -0.09984832257032394, 0.2111589014530182, 0.017397155985236168, -0.11549406498670578, 0.8625527024269104, -0.1944369673728943, 0.32594946026802063, 0.19437763094902039, -0.3524225354194641, -0.08486980944871902, -0.19156908988952637, -0.3549928367137909, -0.21128618717193604, 0.2583167254924774, 0.6643009185791016, -0.3218052387237549, -0.123782679438591, 0.14336378872394562, -0.02083759382367134, -0.28243735432624817, -0.3151058554649353, -0.16054219007492065, -0.3001241087913513, -0.28057724237442017, 0.17587687075138092, -0.09049971401691437, 0.12028753757476807, -0.5292028784751892, -0.08387154340744019, -0.18149131536483765, 0.20682556927204132, -0.010572141036391258, 0.058843404054641724, 0.28042080998420715, -0.06041638180613518, 0.40394243597984314, 0.12626111507415771, -0.03015824966132641, 0.27479735016822815, 0.4463309645652771, 0.020108981058001518, -0.27702596783638, 0.0019540595822036266, 0.04634165018796921, 0.08977249264717102, 0.4556979537010193, 0.027261408045887947, 0.13520915806293488, 0.06710048764944077, 0.268085241317749, -0.06722414493560791, 0.17809057235717773, 0.3836326599121094, 0.21999971568584442, -0.19891133904457092, -0.34773167967796326, 0.09311103820800781, 0.2356353998184204, -0.13195574283599854, 0.2889438569545746, -0.5127382278442383, -0.20680725574493408, 0.3026009500026703, -0.004667896777391434, 0.6622441411018372, 0.014262789860367775, 0.09115384519100189, 0.3084227442741394, -0.3028063476085663, 0.28654590249061584, -0.21504844725131989, 0.3221714496612549, -0.5821489691734314, -0.26835107803344727, 0.11587274819612503, -0.12703241407871246, -0.0752490684390068, 0.052676957100629807, -0.11407038569450378, 0.3120548129081726, -0.0008433390175923705, 0.032436635345220566, -0.24797198176383972, 0.2446671575307846, 0.006566015537828207, -0.3198530673980713, 0.05312325432896614, 0.11875617504119873, -0.2992704510688782, 0.25692683458328247, -0.1400964856147766, -0.10824563354253769, 0.2545025646686554, -0.23585978150367737, -0.29385995864868164, 0.23255454003810883, -0.34849458932876587, 0.28062641620635986, -0.14337541162967682, -0.19273066520690918, 0.04639912396669388, -0.08668247610330582, 0.15603475272655487, -0.2287229299545288, 0.07313434779644012, 0.09576299786567688, 0.0568755604326725, 0.13810387253761292, -0.23188330233097076, -0.15370063483715057, 0.427776575088501, 0.021163105964660645, -0.36206793785095215, -0.08203351497650146, -0.03733687102794647, -0.014833035878837109, -0.12812699377536774, 0.04811539128422737, -0.1951635479927063, -0.19833289086818695, -0.11310986429452896, 0.2236151248216629, -0.074234239757061, -0.31547170877456665, 0.15182627737522125, -0.2507011294364929, -0.2737051248550415, 0.3905717432498932, -0.12386585026979446, -0.37392646074295044, -0.07747818529605865, 0.22042568027973175, 0.1755114644765854, 0.07899513840675354, 0.41065242886543274, 0.3367050290107727, -0.06407320499420166, -0.31330406665802, -0.23844781517982483, 0.159805029630661, -0.4164748191833496, 0.17728570103645325, -0.14357814192771912, 0.15152212977409363, -0.027345724403858185, 0.3164762854576111, 0.06300118565559387, 0.12059438228607178, 0.020655622705817223, -0.29400163888931274, -0.21536673605442047, -0.017784465104341507, -0.06378436088562012, 0.21608154475688934, 0.20124709606170654, 0.26182785630226135, 0.02820488065481186, 0.32445040345191956, -0.3282783329486847, 0.23353953659534454, -0.20574621856212616, 0.13083943724632263, 0.05137183889746666, -0.13134920597076416, 0.08273912221193314, 0.23978212475776672, 0.09755837917327881, 0.21972641348838806, -0.16471827030181885, -0.26122215390205383, -0.22638390958309174, 0.09875482320785522, -0.02084227092564106, 0.020225156098604202, -0.14770355820655823, -0.133464053273201, 0.1280260682106018, -0.018377017229795456, 0.4289836883544922, 0.2284488081932068, -0.16439765691757202, 0.10616188496351242, 0.13675528764724731, 0.164822056889534, -0.08187931776046753, 0.1702709197998047, 0.0002730499836616218, -0.09964210540056229, 0.18882642686367035, 0.18288221955299377, -0.0026518928352743387, 0.039651524275541306, -0.29793068766593933, -0.18287692964076996, 0.4134559631347656, 0.1560274362564087, 0.0929485335946083, -0.3851541578769684, -0.22395502030849457, 0.03145121410489082, 0.45000889897346497, 0.3133752644062042, -0.31149715185165405, -0.05748783424496651, -0.03705020621418953, 0.2802082896232605, -0.18614499270915985, -0.02526070550084114, -0.00044337366125546396, -0.19825348258018494, 0.017028208822011948, 0.3708455264568329, 0.3222137689590454, 0.049197718501091, -0.025716811418533325, 0.15775178372859955, 0.3708708882331848, -0.3861028552055359, 0.24043022096157074, -0.004391720052808523, -0.12606969475746155, 0.1273740977048874, 0.40780526399612427, 0.22648711502552032, 0.07974500954151154, 0.17885339260101318, 0.09110397100448608, 0.18546290695667267, -0.03016713261604309, -0.14113056659698486, 0.11168406903743744, -0.30865997076034546, -0.038112279027700424, 0.20166835188865662, -0.22635489702224731, -0.12448645383119583, -0.21199674904346466, -0.06880088895559311, -0.18714122474193573, -0.228764608502388, -0.36810746788978577, 0.2676642835140228, -0.39746928215026855, -0.04810570180416107, 0.10963159054517746, -0.14428089559078217, 0.12780068814754486, 0.20107099413871765, 0.11405659466981888, 0.13477283716201782, 0.44946417212486267, 0.13311398029327393, -0.2817562222480774, -0.11044775694608688, -0.31635671854019165, 0.2716571092605591, 0.15504169464111328, -0.3163851201534271, 0.2832717299461365, 0.3418692648410797, -0.050497811287641525, -0.23707401752471924, 0.5526759028434753, 0.652224600315094, 0.3537188470363617, -0.14521898329257965, 0.007220395840704441, 0.03287327289581299, 0.13185755908489227, -0.08332985639572144, 0.09240247309207916, 0.13208042085170746, 0.27384188771247864, 0.3750735819339752, 0.162776380777359, -0.1621028333902359, 0.15090122818946838, 0.21575966477394104, 0.173751562833786, -0.26355376839637756, 0.291787326335907, -0.04756531864404678, -0.0709342360496521, -0.06877816468477249, 0.010969321243464947, -0.3325085937976837, 0.11672413349151611, 0.4725085496902466, -0.09931309521198273, 0.22564828395843506, 0.00025793586974032223, 0.12229227274656296, 0.01169999223202467, 0.38316091895103455, 0.12131239473819733, 0.10068784654140472, -0.6743168830871582, 0.06177964061498642, -0.45722681283950806, 0.2957104742527008, -0.14188794791698456, 0.1963329166173935, -0.04305543750524521, 0.10472258925437927, -0.2969473600387573, -0.06525225192308426, 0.29556652903556824, -0.040778748691082, 0.07654082030057907, 0.46357235312461853, -0.5969394445419312, 0.049504783004522324, -0.33520767092704773, -0.12624181807041168, 0.3455520570278168, -0.4687044024467468, 0.2194332629442215, -0.152248814702034, 0.09160998463630676, 0.1163390651345253, -0.0036384938284754753, 0.30936118960380554, 0.12445300817489624, 0.5834570527076721, 0.1750374287366867, 0.6061421632766724, -0.12605129182338715, 0.1312723010778427, -0.11316049844026566, -0.4133680760860443, -0.3300968110561371, -0.006951154675334692, 0.14930009841918945, 0.10661004483699799, -0.07569320499897003, -0.09274786710739136, -0.3385123014450073, -0.15237374603748322, 0.026059282943606377, -0.1396058350801468, -0.04959645867347717, 0.04006503149867058, 0.0016710415948182344, 0.04849930852651596, 0.13143287599086761, 0.2882745563983917, 0.25443968176841736, 0.23279593884944916, -0.434808611869812, -0.3158877491950989, 0.5066921710968018, -0.20326006412506104, -0.5028809309005737, -0.36840763688087463, 0.3902990520000458, -0.026088697835803032, 0.08401511609554291, -0.625706136226654, 0.13618555665016174, 0.3196179270744324, -0.07806576043367386, -0.19408385455608368, 0.16662828624248505, 0.0340074747800827, -0.1527428776025772, 0.10099761188030243, -0.04395321384072304, 0.04539431259036064, -0.3636942207813263, 0.027707930654287338, -0.06068055331707001 ]
https://github.com/huggingface/datasets/issues/2727
Error in loading the Arabic Billion Words Corpus
I modified the dataset loading script to catch the `IndexError` and inspect the records at which the error is happening, and I found this: For the `Techreen` config, the error happens in 36 records when trying to find the `Text` or `Dateline` tags. All these 36 records look something like: ``` <Techreen> <ID>TRN_ARB_0248167</ID> <URL>http://tishreen.news.sy/tishreen/public/read/248240</URL> <Headline>Removed, because the original articles was in English</Headline> </Techreen> ``` and all the 288 faulty records in the `Almustaqbal` config look like: ``` <Almustaqbal> <ID>MTL_ARB_0028398</ID> <URL>http://www.almustaqbal.com/v4/article.aspx?type=NP&ArticleID=179015</URL> <Headline> Removed because it is not available in the original site</Headline> </Almustaqbal> ``` so the error is happening because the articles were removed and so the associated records lack the `Text` tag. In this case, I think we just need to catch the `IndexError` and ignore (pass) it.
## Describe the bug I get `IndexError: list index out of range` when trying to load the `Techreen` and `Almustaqbal` configs of the dataset. ## Steps to reproduce the bug ```python load_dataset("arabic_billion_words", "Techreen") load_dataset("arabic_billion_words", "Almustaqbal") ``` ## Expected results The datasets load succefully. ## Actual results ```python _extract_tags(self, sample, tag) 139 if len(out) > 0: 140 break --> 141 return out[0] 142 143 def _clean_text(self, text): IndexError: list index out of range ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.10.2 - Platform: Ubuntu 18.04.5 LTS - Python version: 3.7.11 - PyArrow version: 3.0.0
128
Error in loading the Arabic Billion Words Corpus ## Describe the bug I get `IndexError: list index out of range` when trying to load the `Techreen` and `Almustaqbal` configs of the dataset. ## Steps to reproduce the bug ```python load_dataset("arabic_billion_words", "Techreen") load_dataset("arabic_billion_words", "Almustaqbal") ``` ## Expected results The datasets load succefully. ## Actual results ```python _extract_tags(self, sample, tag) 139 if len(out) > 0: 140 break --> 141 return out[0] 142 143 def _clean_text(self, text): IndexError: list index out of range ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.10.2 - Platform: Ubuntu 18.04.5 LTS - Python version: 3.7.11 - PyArrow version: 3.0.0 I modified the dataset loading script to catch the `IndexError` and inspect the records at which the error is happening, and I found this: For the `Techreen` config, the error happens in 36 records when trying to find the `Text` or `Dateline` tags. All these 36 records look something like: ``` <Techreen> <ID>TRN_ARB_0248167</ID> <URL>http://tishreen.news.sy/tishreen/public/read/248240</URL> <Headline>Removed, because the original articles was in English</Headline> </Techreen> ``` and all the 288 faulty records in the `Almustaqbal` config look like: ``` <Almustaqbal> <ID>MTL_ARB_0028398</ID> <URL>http://www.almustaqbal.com/v4/article.aspx?type=NP&ArticleID=179015</URL> <Headline> Removed because it is not available in the original site</Headline> </Almustaqbal> ``` so the error is happening because the articles were removed and so the associated records lack the `Text` tag. In this case, I think we just need to catch the `IndexError` and ignore (pass) it.
[ -0.17554055154323578, 0.10675014555454254, -0.11840007454156876, 0.4231290817260742, -0.14884284138679504, 0.26181888580322266, 0.23233532905578613, 0.3904682695865631, 0.36190056800842285, -0.0010759482393041253, -0.23314633965492249, -0.011689351871609688, 0.05897391587495804, 0.01110642310231924, -0.0046203467063605785, -0.20259875059127808, -0.03089013695716858, -0.1021868959069252, 0.2275918424129486, 0.1421487182378769, -0.17253801226615906, 0.08829805254936218, -0.23013082146644592, -0.08973302692174911, 0.12763725221157074, -0.05968785285949707, 0.07231057435274124, 0.04431088641285896, 0.20431458950042725, -0.5446290969848633, -0.0048860120587050915, -0.4125087261199951, 0.4355435371398926, 0.4883059859275818, -0.00011382165394024923, 0.054682500660419464, 0.34376946091651917, -0.027287481352686882, -0.39309629797935486, -0.43402376770973206, -0.33526545763015747, -0.20027171075344086, 0.059797946363687515, -0.22323530912399292, -0.08489876240491867, -0.25533032417297363, -0.1447218954563141, -0.33478087186813354, 0.16642683744430542, 0.5260614156723022, 0.1590859591960907, 0.17151789367198944, 0.13335952162742615, 0.10606016218662262, 0.38382142782211304, -0.22924399375915527, -0.09833268076181412, 0.20208331942558289, 0.5291867852210999, 0.1876038759946823, -0.08444387465715408, 0.29456761479377747, -0.10385499894618988, -0.016901860013604164, 0.11823488771915436, -0.049526333808898926, 0.16961508989334106, -0.48212775588035583, 0.06597115099430084, 0.21157954633235931, 0.3448188602924347, -0.3105711042881012, -0.45238953828811646, -0.23777003586292267, -0.1179611086845398, -0.3698241114616394, 0.2565724551677704, 0.21975094079971313, -0.19592392444610596, 0.12954334914684296, 0.11456508189439774, -0.08989661186933517, -0.03488868102431297, 0.3676125705242157, -0.3026764392852783, 0.3926456868648529, -0.07724960893392563, -0.02989664487540722, 0.11111906915903091, -0.1466868370771408, 0.08160268515348434, 0.002760740928351879, 0.05974643677473068, 0.21469111740589142, -0.34441545605659485, 0.20842739939689636, 0.07368059456348419, -0.14332865178585052, 0.014461844228208065, 0.08270671963691711, 0.2570382058620453, -0.034107111394405365, -0.05855783447623253, 0.06535401940345764, 0.35052725672721863, 0.1814715713262558, -0.10952690243721008, 0.09252025932073593, -0.010669308714568615, 0.3030141592025757, 0.0932593122124672, 0.0778529942035675, 0.16830720007419586, -0.24323149025440216, 0.053086500614881516, -0.037057649344205856, 0.2929571866989136, -0.35235288739204407, -0.2658054828643799, 0.22610129415988922, -0.3138168454170227, -0.18328368663787842, 0.0655587911605835, 0.18176983296871185, -0.23921844363212585, -0.1005864068865776, 0.225346639752388, 0.0679832473397255, -0.2773728370666504, -0.063398078083992, -0.15481065213680267, 0.09354330599308014, -0.04211338981986046, 0.1769760102033615, 0.44185805320739746, -0.5744711756706238, 0.1978178769350052, 0.043781667947769165, 0.26527276635169983, -0.03621499612927437, 0.018835389986634254, -0.4248972535133362, 0.26510000228881836, 0.43772509694099426, 0.009678413160145283, 0.07185281813144684, 0.045810550451278687, 0.031329501420259476, -0.12997210025787354, 0.309679239988327, -0.2886218726634979, -0.19688856601715088, -0.04325047507882118, 0.1264827996492386, 0.03784317895770073, 0.13400280475616455, -0.16358959674835205, 0.37658825516700745, 0.5087184309959412, -0.11007003486156464, 0.050290532410144806, -0.14117193222045898, -0.27989208698272705, -0.003595014102756977, 0.1736457794904709, 0.40150001645088196, -0.39678603410720825, -0.10556023567914963, 0.018491944298148155, 0.5653258562088013, -0.05604273080825806, 0.19853369891643524, -0.23158931732177734, 0.4627303183078766, -0.1715320199728012, 0.2583894431591034, 0.2030450403690338, -0.12431211024522781, -0.19497284293174744, 0.1152665913105011, 0.2389269322156906, -0.014375356025993824, -0.057881273329257965, -0.17600731551647186, 0.4688827097415924, -0.13682164251804352, 0.6135960221290588, 0.34494075179100037, -0.04243898391723633, -0.0966619923710823, -0.347730815410614, -0.11415113508701324, 0.1973973661661148, 0.16277667880058289, 0.03138388320803642, -0.04848597198724747, -0.009703043848276138, -0.2665252089500427, 0.07886871695518494, 0.13922184705734253, 0.02312595769762993, 0.3674274981021881, -0.6418523788452148, 0.09165728092193604, 0.28575244545936584, -0.2323867231607437, -0.13393235206604004, 0.12718068063259125, -0.12873850762844086, 0.2774345874786377, -0.3100447356700897, 0.1869029998779297, -0.48678192496299744, 0.015706101432442665, -0.1359556019306183, 0.14843738079071045, 0.06373383849859238, 0.010574349202215672, -0.13964605331420898, 0.228097066283226, -0.2554454803466797, -0.14383628964424133, 0.06838427484035492, -0.03345451131463051, -0.6968353986740112, 0.2373877763748169, -0.22813276946544647, -0.1361776441335678, 0.15777187049388885, 0.10200861096382141, 0.1404304802417755, -0.11010420322418213, -0.18078510463237762, -0.020391976460814476, -0.12284062802791595, -0.17080339789390564, -0.3455617129802704, 0.3240131735801697, 0.31317242980003357, -0.31272247433662415, 0.2518368065357208, 0.4056275486946106, 0.27089372277259827, -0.08362361043691635, 0.3261789381504059, 0.21316663920879364, -0.16096435487270355, 0.34452351927757263, -0.021799050271511078, -0.23698987066745758, 0.24636368453502655, 0.021088095381855965, -0.009829424321651459, -0.2796858847141266, 0.21908898651599884, -0.10459764301776886, 0.3646547496318817, 0.06167110428214073, -0.04770973324775696, -0.058134160935878754, 0.12344501912593842, -0.01614793948829174, 0.1691761165857315, 0.20426708459854126, -0.07382717728614807, -0.16804622113704681, -0.17174868285655975, -0.3292055130004883, 0.17327992618083954, 0.10771775245666504, -0.008946028538048267, -0.08340185135602951, 0.11579739302396774, -0.10582929104566574, 0.34238824248313904, 0.255276620388031, 0.27361345291137695, 0.27628058195114136, 0.07832090556621552, 0.131588876247406, -0.30824002623558044, -0.4225616157054901, 0.014244957827031612, 0.2152879387140274, -0.4495740532875061, 0.41537240147590637, 0.1764906942844391, -0.3796941041946411, 0.039381805807352066, -0.6723877787590027, -0.20697541534900665, -0.2337341010570526, 0.02066735550761223, -0.14684779942035675, -0.24737298488616943, 0.07214631885290146, -0.11904032528400421, 0.09507199376821518, 0.21568678319454193, 0.0018520804587751627, -0.014782847836613655, 0.09734369814395905, -0.38299885392189026, -0.03833213821053505, 0.2576623558998108, -0.03273998573422432, 0.09543968737125397, -0.09600542485713959, -0.15352675318717957, -0.18555445969104767, -0.003609225619584322, 0.1915372908115387, 0.002950492314994335, 0.4744868278503418, 0.021451160311698914, 0.3548191487789154, -0.0678446963429451, -0.31089523434638977, 0.14281059801578522, 0.2841092646121979, -0.0027109228540211916, 0.08354105055332184, 0.005192341282963753, 0.3517221510410309, 0.08209310472011566, -0.6314833760261536, -0.2765563726425171, -0.36638176441192627, -0.28673285245895386, -0.054587703198194504, 0.28388041257858276, 0.31873804330825806, -0.07340388745069504, -0.10463865846395493, 0.22472263872623444, 0.3155888020992279, -0.21777833998203278, -0.07066961377859116, 0.24448776245117188, -0.07770385593175888, -0.2715017795562744, -0.10348591208457947, -0.008860914967954159, 0.02298654243350029, 0.02250613458454609, -0.4185807704925537, 0.37417298555374146, -0.21163354814052582, -0.1099836602807045, -0.2799408435821533, 0.14279773831367493, 0.11958225071430206, -0.10572849214076996, -0.08640096336603165, 0.21751375496387482, -0.14573396742343903, -0.008348425850272179, -0.07016763091087341, 0.15886862576007843, 0.24553559720516205, 0.30194899439811707, -0.15066826343536377, 0.291990727186203, -0.05869279429316521, -0.040083665400743484, 0.6439817547798157, 0.21758824586868286, 0.15140406787395477, -0.2557826340198517, -0.38731467723846436, -0.18647591769695282, 0.04466022923588753, -0.32282841205596924, 0.36793696880340576, 0.0021882641594856977, -0.48975542187690735, -0.20308278501033783, -0.33997297286987305, -0.42671287059783936, -0.19138199090957642, 0.2030261904001236, -0.15935879945755005, 0.2108830362558365, 0.023751340806484222, 0.04210824519395828, -0.06332432478666306, -0.1329180747270584, 0.10052932053804398, 0.031108958646655083, -0.07263962179422379, -0.0021497495472431183, 0.26563769578933716, -0.203982874751091, -0.34775611758232117, 0.16208207607269287, 0.2984672784805298, 0.4872821569442749, -0.05551818385720253, -0.062275465577840805, 0.004818313755095005, 0.12489350140094757, 0.6233372092247009, 0.01147997286170721, 0.21889826655387878, 0.3644365966320038, 0.1261974424123764, -0.12526953220367432, -0.24629239737987518, -0.16772371530532837, 0.2955401539802551, 0.12968355417251587, 0.04694071039557457, -0.25808650255203247, 0.0334392748773098, 0.03490861505270004, 0.5183109045028687, -0.15026040375232697, -0.15030884742736816, -0.2134929895401001, -0.27028441429138184, -0.1576330065727234, 0.04899093136191368, 0.27623453736305237, 0.2790072560310364, 0.11639031767845154, 0.056557103991508484, 0.14498353004455566, -0.008267880417406559, 0.11823493242263794, 0.03025287203490734, 0.2791368067264557, -0.035412903875112534, 0.23166123032569885, -0.05052409693598747, 0.10223270207643509, 0.1699858009815216, 0.4633556008338928, -0.054102737456560135, -0.20497024059295654, 0.0626579076051712, 0.043911952525377274, -0.000796811596956104, 0.2750031650066376, 0.023081541061401367, -0.07598966360092163, 0.10498087853193283, 0.07030876725912094, 0.05604001134634018, -0.2724578082561493, -0.09220638871192932, -0.02258376218378544, -0.5431328415870667, -0.4410669803619385, 0.4706728458404541, -0.007925169542431831, -0.10150830447673798, 0.3908187747001648, -0.0670432448387146, -0.3913848400115967, 0.8489493131637573, -0.08483617007732391, 0.9151947498321533, -0.10683658719062805, 0.09122935682535172, -0.07293082028627396, 0.3846328854560852, 0.20642176270484924, 0.01152809802442789, 0.14567579329013824, -0.2525366246700287, -0.2984532117843628, -0.14544661343097687, -0.01225630659610033, -0.023269999772310257, 0.032877497375011444, -0.19933027029037476, 0.3208721876144409, -0.2007216215133667, -0.1426830291748047, 0.08737661689519882, -0.00670955004170537, -0.14240089058876038, -0.32569754123687744, -0.7548497915267944, 0.006100688129663467, -0.09250327199697495, 0.017758211120963097, -0.12836706638336182, -0.06477854400873184, -0.05227811262011528, 0.07199383527040482, -0.32335329055786133, 0.08261959254741669, -0.29264456033706665, 0.1916070133447647, -0.038314174860715866, 0.07863757759332657, 0.19294168055057526, -0.14051948487758636, 0.24496296048164368, 0.03902051970362663, -0.14847739040851593, -0.11007045209407806, 0.030247356742620468, -0.14441156387329102, 0.14833977818489075, -0.18722669780254364, 0.5013314485549927, -0.04426659643650055, -0.28432950377464294, 0.1605214625597, -0.007737325504422188, -0.17099255323410034, -0.11635459214448929, 0.3395332098007202, 0.1112184152007103, -0.37391799688339233, -0.2430126965045929, -0.16582554578781128, 0.1200295090675354, -0.11545073240995407, 0.1192825436592102, 0.1934640258550644, -0.18436144292354584, 0.11242149770259857, 0.19269174337387085, -0.41892415285110474, -0.122324138879776, 0.4717423915863037, 0.24635468423366547, 0.11721146106719971, 0.39034879207611084, 0.6143894791603088, -0.1637529879808426, -0.06989961117506027, -0.1813170313835144, 0.1079721748828888, -0.42792630195617676, 0.1673281192779541, -0.059500593692064285, 0.02566974051296711, 0.0052670324221253395, 0.5612252950668335, 0.23779049515724182, -0.022939175367355347, -0.1789640635251999, -0.6683351993560791, 0.17778009176254272, 0.3081205189228058, 0.07974649220705032, -0.030909065157175064, 0.19086432456970215, -0.1966799646615982, -0.05987169221043587, -0.17270711064338684, -0.27279195189476013, 0.13524003326892853, -0.3521440327167511, 0.38079798221588135, -0.5048595666885376, -0.021078992635011673, 0.1642596572637558, -0.07960798591375351, 0.05167938768863678, -0.04983847960829735, -0.11130335181951523, -0.23041388392448425, 0.05149178206920624, 0.11930028349161148, -0.13289085030555725, -0.21331389248371124, -0.3685186207294464, -0.24799171090126038, 0.05591569468379021, -0.1663181185722351, 0.09652648121118546, 0.2537267804145813, 0.08251012116670609, -0.06665589660406113, 0.1753319650888443, -0.20938235521316528, -0.06409608572721481, 0.23928244411945343, -0.10720657557249069, 0.26932474970817566, 0.18282374739646912, 0.2660243511199951, -0.14830246567726135, -0.0021980912424623966, -0.3165094554424286, 0.16724810004234314, -0.19713908433914185, 0.1155368834733963, 0.20803844928741455, -0.3303748667240143, -0.05882477015256882, 0.47468501329421997, 0.26394280791282654, 0.28562748432159424, -0.3358512818813324, -0.2472342699766159, -0.22025692462921143, 0.1564176082611084, -0.22762371599674225, -0.27073752880096436, -0.08069365471601486, -0.2140190601348877, 0.022240297868847847, 0.3439474105834961, 0.37281325459480286, -0.3177207112312317, -0.26515576243400574, 0.030420957133173943, 0.34699374437332153, 0.02933693490922451, -0.05819879099726677, 0.3112131953239441, 0.19393056631088257, 0.07351846247911453, 0.05546582490205765, -0.0581340454518795, 0.2517092525959015, 0.3587358891963959, -0.042722705751657486, 0.4240317940711975, 0.5910565853118896, 0.2392541617155075, -0.20862559974193573, -0.5564651489257812, 0.45467522740364075, 0.36783367395401, 0.1437537521123886, 0.024315088987350464, 0.19148823618888855, -0.32310035824775696, 0.19075752794742584, -0.09237667918205261, -0.02315783128142357, -0.03026268258690834, -0.018319861963391304, 0.03499197959899902, 0.09322303533554077, -0.20885922014713287, 0.14147961139678955, -0.28006505966186523, -0.020846577361226082, -0.07355814427137375, 0.02537880465388298, 0.13347339630126953, -0.25143182277679443, -0.0405886173248291, 0.03363494202494621, 0.0703931674361229, 0.12455268204212189, -0.15987247228622437, 0.3140043616294861, 0.2583771347999573, -0.17218716442584991, 0.030277729034423828, 0.4492287039756775, 0.4798881411552429, 0.40270107984542847, -0.08909746259450912, 0.16456235945224762, -0.09222178906202316, -0.17258945107460022, -0.17573726177215576, 0.0987887978553772, 0.02998003549873829, 0.1102685034275055, 0.2625528573989868, 0.08695248514413834, -0.07296627014875412, 0.15259172022342682, 0.30580729246139526, 0.11938748508691788, 0.040831245481967926, -0.0341428741812706, -0.1013064756989479, -0.06674613803625107, -0.25744694471359253, 0.040912073105573654, -0.4404967725276947, -0.06170089915394783, 0.5526074171066284, -0.46456804871559143, 0.1704440712928772, 0.18231584131717682, 0.06221860647201538, -0.04599229246377945, 0.47097262740135193, 0.596746027469635, 0.18783794343471527, -0.40818139910697937, 0.16419997811317444, -0.33844706416130066, 0.12578989565372467, -0.1452893614768982, 0.15234650671482086, 0.5619260668754578, 0.28913629055023193, 0.029885035008192062, 0.21999675035476685, 0.1524374932050705, 0.3632757365703583, -0.00706965709105134, 0.08905539661645889, -0.5017116665840149, -0.3325832784175873, -0.052597466856241226, 0.3393875062465668, -0.33511874079704285, -0.17678384482860565, 0.19476447999477386, -0.5119805932044983, 0.027240613475441933, -0.23435568809509277, -0.3554561734199524, 0.13961027562618256, 0.48287251591682434, 0.26949670910835266, 0.09992286562919617, -0.04982456937432289, -0.12823177874088287, -0.053084179759025574, -0.16933687031269073, -0.0467170812189579, 0.04696102440357208, 0.5258585810661316, 0.09276340156793594, 0.15170295536518097, -0.13403886556625366, -0.1395256072282791, -0.10574550926685333, 0.3818729519844055, -0.14352257549762726, -0.010467193089425564, -0.27309247851371765, 0.026189854368567467, -0.178625226020813, 0.11725977063179016, -0.1119973435997963, 0.20921063423156738, 0.12639382481575012, 0.3173689842224121, -0.00043204761459492147, -0.4568520188331604, 0.5289969444274902, -0.4251689016819, -0.2309640645980835, -0.35997527837753296, 0.22264981269836426, 0.3706860840320587, -0.008414112962782383, -0.56568843126297, 0.011493605561554432, 0.305468887090683, 0.07361812889575958, -0.5129504203796387, 0.0012238953495398164, -0.18197013437747955, 0.2164081484079361, -0.08135230839252472, 0.22381263971328735, 0.16767193377017975, -0.29629960656166077, -0.26434385776519775, -0.10331768542528152 ]
https://github.com/huggingface/datasets/issues/2727
Error in loading the Arabic Billion Words Corpus
Thanks @M-Salti for reporting this issue and for your investigation. Indeed, those `IndexError` should be catched and the corresponding record should be ignored. I'm opening a Pull Request to fix it.
## Describe the bug I get `IndexError: list index out of range` when trying to load the `Techreen` and `Almustaqbal` configs of the dataset. ## Steps to reproduce the bug ```python load_dataset("arabic_billion_words", "Techreen") load_dataset("arabic_billion_words", "Almustaqbal") ``` ## Expected results The datasets load succefully. ## Actual results ```python _extract_tags(self, sample, tag) 139 if len(out) > 0: 140 break --> 141 return out[0] 142 143 def _clean_text(self, text): IndexError: list index out of range ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.10.2 - Platform: Ubuntu 18.04.5 LTS - Python version: 3.7.11 - PyArrow version: 3.0.0
31
Error in loading the Arabic Billion Words Corpus ## Describe the bug I get `IndexError: list index out of range` when trying to load the `Techreen` and `Almustaqbal` configs of the dataset. ## Steps to reproduce the bug ```python load_dataset("arabic_billion_words", "Techreen") load_dataset("arabic_billion_words", "Almustaqbal") ``` ## Expected results The datasets load succefully. ## Actual results ```python _extract_tags(self, sample, tag) 139 if len(out) > 0: 140 break --> 141 return out[0] 142 143 def _clean_text(self, text): IndexError: list index out of range ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.10.2 - Platform: Ubuntu 18.04.5 LTS - Python version: 3.7.11 - PyArrow version: 3.0.0 Thanks @M-Salti for reporting this issue and for your investigation. Indeed, those `IndexError` should be catched and the corresponding record should be ignored. I'm opening a Pull Request to fix it.
[ -0.1877754181623459, -0.046450335532426834, -0.08867678791284561, 0.45709097385406494, -0.13610109686851501, 0.2721575200557709, 0.22418779134750366, 0.3228882849216461, 0.4278389513492584, -0.013256346806883812, -0.25016725063323975, -0.013816332444548607, 0.12148920446634293, 0.07008279114961624, -0.04008251428604126, -0.298004686832428, 0.04832855239510536, -0.09838804602622986, 0.2569688856601715, 0.09443151950836182, -0.2235393524169922, 0.04937080666422844, -0.3123704791069031, -0.07714483886957169, 0.1526147872209549, -0.07720517367124557, 0.015780121088027954, -0.05895136296749115, 0.20904138684272766, -0.48961085081100464, 0.08610054850578308, -0.34837305545806885, 0.5297796726226807, 0.561843752861023, -0.00011741116759367287, -0.013077422976493835, 0.41751420497894287, 0.0011641221353784204, -0.2492550015449524, -0.5517652630805969, -0.1917782723903656, -0.13885270059108734, 0.14267441630363464, -0.19076715409755707, -0.10936625301837921, -0.2686261236667633, -0.14553704857826233, -0.2430964708328247, 0.16462859511375427, 0.3619321286678314, 0.14982882142066956, 0.15069104731082916, 0.17921409010887146, 0.07619477063417435, 0.2918259799480438, -0.2640067934989929, -0.030977195128798485, 0.1672477126121521, 0.5540945529937744, 0.08456537127494812, 0.020655015483498573, 0.17734208703041077, -0.14206352829933167, 0.01951991394162178, 0.15092693269252777, -0.025450870394706726, 0.18600843846797943, -0.6007178425788879, 0.04817286878824234, 0.23756515979766846, 0.4379049241542816, -0.29436561465263367, -0.4859938621520996, -0.20323890447616577, -0.03064071759581566, -0.3684285283088684, 0.23409582674503326, 0.31697994470596313, -0.18750986456871033, 0.12183958292007446, 0.13653719425201416, -0.1637621372938156, -0.11905044317245483, 0.39560022950172424, -0.2622688114643097, 0.3255660831928253, -0.03356652706861496, 0.009180834516882896, 0.14432185888290405, -0.13565987348556519, 0.05914722755551338, -0.06277637928724289, 0.00898229330778122, 0.22370988130569458, -0.3714160621166229, 0.24262936413288116, 0.04627951234579086, -0.15126243233680725, 0.04642349109053612, 0.12704923748970032, 0.17808663845062256, -0.04316961392760277, -0.08669953048229218, 0.18703755736351013, 0.37739381194114685, 0.14151723682880402, -0.04748532921075821, 0.1577920913696289, 0.059043724089860916, 0.25843092799186707, -0.03647434711456299, 0.06882122159004211, 0.12272027879953384, -0.16323433816432953, 0.03824492171406746, -0.16302521526813507, 0.2272498458623886, -0.38555988669395447, -0.21665215492248535, 0.2503851056098938, -0.4001908600330353, -0.21649353206157684, 0.017568908631801605, 0.19119155406951904, -0.21759730577468872, -0.11300183087587357, 0.1756853610277176, 0.23766431212425232, -0.1939765363931656, -0.025384001433849335, -0.1380523145198822, 0.08882301300764084, -0.09094979614019394, 0.0913553535938263, 0.4032440185546875, -0.6046216487884521, 0.23574723303318024, -0.0026581459678709507, 0.3509509563446045, -0.013708693906664848, 0.11421523243188858, -0.38255709409713745, 0.19438694417476654, 0.40717554092407227, 0.1387539803981781, 0.0799131914973259, 0.1162824034690857, 0.023389281705021858, -0.1573425531387329, 0.40129733085632324, -0.39115628600120544, -0.17101749777793884, -0.06746917963027954, 0.10263839364051819, 0.0009662482189014554, 0.08785197883844376, -0.22760099172592163, 0.34032049775123596, 0.5037466287612915, -0.06292354315519333, 0.00321184191852808, -0.1481616497039795, -0.3219297230243683, -0.07330478727817535, 0.12355246394872665, 0.34312009811401367, -0.3512628376483917, -0.05840148776769638, 0.04509831592440605, 0.4893801808357239, -0.03766491264104843, 0.21928054094314575, -0.2559594511985779, 0.43041226267814636, -0.17746885120868683, 0.3240615427494049, 0.2467714548110962, -0.12771330773830414, -0.24213957786560059, 0.1979268491268158, 0.265741765499115, -0.07585525512695312, -0.10307309776544571, -0.20826560258865356, 0.45173734426498413, -0.05463933199644089, 0.6274053454399109, 0.493913859128952, -0.051197391003370285, -0.09005221724510193, -0.31758689880371094, -0.11952223628759384, 0.3496677577495575, 0.12580636143684387, 0.1293509304523468, -0.016682704910635948, 0.0039982544258236885, -0.26334238052368164, 0.14194026589393616, 0.11738540232181549, -0.01737131178379059, 0.38589349389076233, -0.475905179977417, 0.09652203321456909, 0.30087557435035706, -0.2243797779083252, 0.042848363518714905, 0.17231982946395874, -0.14134983718395233, 0.24800780415534973, -0.22735269367694855, 0.2863010764122009, -0.416807621717453, 0.04020775854587555, -0.20542101562023163, 0.09085338562726974, 0.014636592008173466, -0.07751881331205368, -0.08726371824741364, 0.2759566903114319, -0.28650662302970886, -0.1691032350063324, 0.06412999331951141, 0.015077684074640274, -0.6049725413322449, 0.3342185616493225, -0.17630866169929504, -0.23573820292949677, 0.09988324344158173, -0.01239454373717308, 0.14103344082832336, -0.16800718009471893, -0.2132783681154251, 0.006099183112382889, -0.12266033887863159, -0.2166847437620163, -0.3014379143714905, 0.28527525067329407, 0.2956889867782593, -0.37311825156211853, 0.3329126834869385, 0.40220606327056885, 0.16398395597934723, -0.08091316372156143, 0.3661569654941559, 0.20401208102703094, -0.10863540321588516, 0.378481388092041, -0.10513155907392502, -0.21542368829250336, 0.22661124169826508, 0.030755044892430305, 0.01709042675793171, -0.10328292846679688, 0.2849922180175781, -0.10509558767080307, 0.3401999771595001, -0.023168304935097694, -0.13133221864700317, -0.11969704926013947, 0.009950176812708378, 0.00593770295381546, 0.2142350822687149, 0.276523232460022, -0.07543613761663437, -0.12804344296455383, -0.1962985396385193, -0.4573316276073456, 0.2315342128276825, 0.1442406177520752, -0.08548475056886673, -0.08952389657497406, 0.12449049204587936, -0.06306543946266174, 0.31201890110969543, 0.1077941358089447, 0.29439374804496765, 0.2502007484436035, 0.1347867250442505, 0.1014077290892601, -0.31717169284820557, -0.324918270111084, 0.040547244250774384, 0.17298108339309692, -0.3517560660839081, 0.4300263524055481, 0.2592788338661194, -0.35553881525993347, 0.0915018618106842, -0.6388458013534546, -0.2775254249572754, -0.13061508536338806, -0.036021701991558075, 0.006387793458998203, -0.11503536254167557, 0.16809231042861938, -0.16827420890331268, -0.08646336942911148, 0.23602600395679474, -0.12640124559402466, 0.022393906489014626, 0.09201286733150482, -0.3701222836971283, -0.07700274139642715, 0.255044162273407, -0.07468009740114212, 0.15760381519794464, 0.07278050482273102, -0.1214018315076828, -0.10431499779224396, -0.02921471558511257, 0.1853598803281784, -0.018318306654691696, 0.4640194773674011, -0.11496802419424057, 0.3587627410888672, -0.14035488665103912, -0.24216264486312866, 0.2271585762500763, 0.1857070028781891, -0.021874668076634407, 0.1637767106294632, 0.010099227540194988, 0.23913420736789703, 0.09441093355417252, -0.46810054779052734, -0.3149428069591522, -0.3170126676559448, -0.2879399061203003, -0.02660604752600193, 0.16786085069179535, 0.3233620822429657, -0.003990026656538248, -0.2117663472890854, 0.21407173573970795, 0.22399689257144928, -0.1747622936964035, -0.16606028378009796, 0.2782447040081024, -0.03949889540672302, -0.32390138506889343, -0.08203496783971786, 0.013038825243711472, -0.05266588553786278, 0.0465412400662899, -0.4170081615447998, 0.33139297366142273, -0.20461077988147736, -0.03899385407567024, -0.23115570843219757, 0.17427323758602142, 0.09141304343938828, -0.14488880336284637, -0.01608097180724144, 0.16820339858531952, -0.04293660447001457, -0.02912481315433979, 0.0024892890360206366, 0.1942386031150818, 0.32451438903808594, 0.21260426938533783, -0.18899878859519958, 0.2093217521905899, -0.03824503719806671, 0.03879548981785774, 0.6535491347312927, 0.2737875282764435, 0.07669559866189957, -0.23769883811473846, -0.46398454904556274, -0.15011657774448395, 0.11254071444272995, -0.41235387325286865, 0.3311191201210022, -0.04980309680104256, -0.47649917006492615, -0.25013110041618347, -0.38513755798339844, -0.3440400958061218, -0.13096731901168823, 0.13904504477977753, -0.1468765288591385, 0.20066320896148682, -0.004783450625836849, 0.00293494900688529, -0.037997711449861526, -0.1806616485118866, 0.09352029114961624, -0.05347312614321709, -0.06550590693950653, 0.026960190385580063, 0.3056279122829437, -0.2745112478733063, -0.3386610150337219, 0.10358348488807678, 0.22888658940792084, 0.4502708315849304, -0.00638245977461338, 0.010023841634392738, 0.05196266621351242, 0.15295220911502838, 0.6871080994606018, 0.024899369105696678, 0.20733407139778137, 0.33129268884658813, 0.13082247972488403, -0.13477496802806854, -0.34190452098846436, -0.17348037660121918, 0.3713223338127136, 0.03457392379641533, 0.11244169622659683, -0.2644976079463959, 0.0738709568977356, -0.023219358175992966, 0.5086474418640137, -0.1613168567419052, -0.2682158946990967, -0.33350878953933716, -0.28446468710899353, -0.26677045226097107, 0.08987421542406082, 0.18212692439556122, 0.3325808346271515, 0.05219247192144394, 0.06861323863267899, 0.16275876760482788, -0.014758558012545109, 0.17839321494102478, 0.04483390226960182, 0.2641831338405609, -0.0901438444852829, 0.21046151220798492, -0.10745353996753693, 0.06339170783758163, 0.19047649204730988, 0.4232783615589142, -0.05214134231209755, -0.2642839550971985, 0.013603586703538895, -0.02581891231238842, 0.1289604753255844, 0.1327115148305893, 0.03369329497218132, 0.03725731000304222, -0.04191839322447777, 0.09327331185340881, 0.0550294928252697, -0.32992273569107056, -0.0015832833014428616, 0.035029347985982895, -0.5425876379013062, -0.4569781422615051, 0.5198668837547302, -0.04494588077068329, -0.08349066227674484, 0.4464789927005768, -0.1348855048418045, -0.3541567325592041, 0.8186009526252747, -0.11642086505889893, 0.9402411580085754, -0.15750175714492798, 0.09028918296098709, -0.09866243600845337, 0.431851863861084, 0.22948616743087769, 0.01706264540553093, 0.13140030205249786, -0.35108453035354614, -0.3513862192630768, -0.12832215428352356, -0.06531058251857758, -0.017675405368208885, -0.054025232791900635, -0.19741007685661316, 0.28237664699554443, -0.2762393057346344, -0.16379618644714355, 0.10327720642089844, 0.00368510908447206, -0.03839642181992531, -0.3015960454940796, -0.7697241306304932, -0.004494264256209135, -0.1211739182472229, 0.06400181353092194, -0.1528097242116928, -0.04468030855059624, -0.056931450963020325, 0.062365368008613586, -0.30208858847618103, 0.17866545915603638, -0.1697913259267807, 0.25994789600372314, -0.024567874148488045, -0.07330573350191116, 0.22968274354934692, 0.037451550364494324, 0.14896954596042633, 0.07331408560276031, -0.1680748462677002, -0.15426373481750488, 0.01811470463871956, -0.2912919819355011, 0.08071302622556686, -0.12777671217918396, 0.4687167704105377, -0.024742532521486282, -0.43877333402633667, 0.253071129322052, 0.040891457349061966, -0.09343792498111725, -0.17689043283462524, 0.31721052527427673, 0.1629776954650879, -0.3863541781902313, -0.3148019313812256, -0.22519521415233612, 0.17602641880512238, -0.08602285385131836, 0.10349464416503906, 0.2724948227405548, -0.2727384865283966, 0.13004332780838013, 0.22124820947647095, -0.39959579706192017, -0.0710093304514885, 0.48821377754211426, 0.2661290764808655, 0.10508961230516434, 0.43448737263679504, 0.690944254398346, -0.11683225631713867, -0.06212564557790756, -0.09257517009973526, -0.026029860600829124, -0.29543423652648926, 0.19919626414775848, 0.03610216826200485, 0.11395498365163803, -0.016301680356264114, 0.5044162273406982, 0.23668083548545837, -0.07160062342882156, -0.10141033679246902, -0.6054028272628784, 0.11774154752492905, 0.22982937097549438, -0.008950837887823582, -0.12087731808423996, 0.1899375170469284, -0.24741072952747345, -0.009036381728947163, -0.2172664850950241, -0.25366008281707764, 0.1492655724287033, -0.3593364655971527, 0.33571815490722656, -0.47842761874198914, 0.02975604496896267, 0.1237492635846138, -0.12056905776262283, 0.01532316580414772, -0.05983353033661842, -0.06523359566926956, -0.22060346603393555, -0.02533380128443241, 0.13809354603290558, -0.06563479453325272, -0.1423896998167038, -0.2752310633659363, -0.3211158812046051, 0.04484030604362488, -0.1300244927406311, 0.03925330936908722, 0.23859937489032745, 0.07158325612545013, -0.008784156292676926, 0.25966334342956543, -0.16934724152088165, -0.17357514798641205, 0.32151833176612854, -0.1807611733675003, 0.2754141688346863, 0.10878085345029831, 0.17672975361347198, -0.014015416614711285, -0.006127455271780491, -0.41254866123199463, 0.09684241563081741, -0.13666211068630219, 0.09565964341163635, 0.21848158538341522, -0.42707958817481995, 0.042860910296440125, 0.39789679646492004, 0.3022240996360779, 0.2615047097206116, -0.35761550068855286, -0.12942597270011902, -0.10067422688007355, 0.15081146359443665, -0.2962695062160492, -0.2760990858078003, 0.09819499403238297, -0.1901114284992218, -0.10046112537384033, 0.3018141984939575, 0.31056782603263855, -0.28316232562065125, -0.39162471890449524, 0.054189443588256836, 0.3112679123878479, 0.0897265300154686, -0.020646940916776657, 0.3724786341190338, 0.2655082643032074, 0.11199098825454712, 0.12678930163383484, 0.033131666481494904, 0.21988552808761597, 0.3703359067440033, 0.019616546109318733, 0.38314563035964966, 0.523291289806366, 0.16565610468387604, -0.2105608880519867, -0.598714292049408, 0.4757798910140991, 0.3198191821575165, 0.23724184930324554, -0.027561327442526817, 0.0966654121875763, -0.1578449308872223, 0.16749544441699982, -0.1574898660182953, -0.0907716229557991, 0.004277045372873545, -0.002695300616323948, 0.04632006958127022, 0.10552211850881577, -0.20071551203727722, 0.1826440840959549, -0.21552598476409912, -0.02518150769174099, -0.08627583086490631, -0.045274846255779266, 0.19512121379375458, -0.22312217950820923, -0.14297103881835938, 0.05169251561164856, 0.17075705528259277, 0.11685745418071747, -0.22422538697719574, 0.26161208748817444, 0.206166073679924, -0.22288359701633453, 0.025996806100010872, 0.4006107747554779, 0.5047862529754639, 0.4441467225551605, -0.18017706274986267, 0.17048600316047668, -0.07073312997817993, -0.15703082084655762, -0.11129391938447952, 0.10800383239984512, 0.06837770342826843, 0.24206309020519257, 0.24768969416618347, 0.07881323248147964, -0.06334814429283142, 0.2042131870985031, 0.29191985726356506, 0.10181611031293869, -0.01995178498327732, -0.010359162464737892, -0.08660672605037689, -0.13673362135887146, -0.323342502117157, -0.07314429432153702, -0.47088947892189026, 0.0395665280520916, 0.652606189250946, -0.34891942143440247, 0.0747135579586029, 0.17004390060901642, 0.03570957109332085, -0.0809754952788353, 0.44160225987434387, 0.6995095014572144, 0.2822186350822449, -0.44217604398727417, 0.20090655982494354, -0.3303510546684265, 0.2510177791118622, -0.18690034747123718, 0.2030411809682846, 0.5098547339439392, 0.22634117305278778, 0.011725182645022869, 0.26364803314208984, 0.13233564794063568, 0.30151209235191345, -0.05144091695547104, 0.2220502346754074, -0.47664448618888855, -0.3353194296360016, -0.11409107595682144, 0.3805038630962372, -0.3412328064441681, -0.1062498465180397, 0.1164388582110405, -0.5912810564041138, 0.009065581485629082, -0.32359999418258667, -0.29780662059783936, 0.146621972322464, 0.3390181362628937, 0.3214834928512573, 0.11210810393095016, 0.0966382771730423, -0.04561914503574371, 0.023985451087355614, -0.08314675092697144, -0.13934510946273804, 0.008372566662728786, 0.41473984718322754, 0.064286008477211, 0.19149048626422882, -0.19462978839874268, -0.20107439160346985, -0.1859123557806015, 0.37374231219291687, -0.10762877762317657, -0.07781057804822922, -0.2968202531337738, -0.03628607466816902, -0.14007899165153503, 0.0614996999502182, -0.11882053315639496, 0.17981062829494476, 0.10993432253599167, 0.33849647641181946, 0.02743595652282238, -0.3561401069164276, 0.5066056251525879, -0.5102152228355408, -0.3376927375793457, -0.374717116355896, 0.13542495667934418, 0.28170424699783325, -0.02340761572122574, -0.5694021582603455, 0.03188413009047508, 0.32646846771240234, 0.11371947079896927, -0.47191837430000305, 0.03957163915038109, -0.12444987893104553, 0.2546505630016327, -0.04203367978334427, 0.19640757143497467, 0.09507791697978973, -0.23247689008712769, -0.2083829641342163, -0.041943199932575226 ]
https://github.com/huggingface/datasets/issues/2724
404 Error when loading remote data files from private repo
I guess the issue is when computing the ETags of the remote files. Indeed `use_auth_token` must be passed to `request_etags` here: https://github.com/huggingface/datasets/blob/35b5e4bc0cb2ed896e40f3eb2a4aa3de1cb1a6c5/src/datasets/builder.py#L160-L160
## Describe the bug When loading remote data files from a private repo, a 404 error is raised. ## Steps to reproduce the bug ```python url = hf_hub_url("lewtun/asr-preds-test", "preds.jsonl", repo_type="dataset") dset = load_dataset("json", data_files=url, use_auth_token=True) # HTTPError: 404 Client Error: Not Found for url: https://huggingface.co/datasets/lewtun/asr-preds-test/resolve/main/preds.jsonl ``` ## Expected results Load dataset. ## Actual results 404 Error.
22
404 Error when loading remote data files from private repo ## Describe the bug When loading remote data files from a private repo, a 404 error is raised. ## Steps to reproduce the bug ```python url = hf_hub_url("lewtun/asr-preds-test", "preds.jsonl", repo_type="dataset") dset = load_dataset("json", data_files=url, use_auth_token=True) # HTTPError: 404 Client Error: Not Found for url: https://huggingface.co/datasets/lewtun/asr-preds-test/resolve/main/preds.jsonl ``` ## Expected results Load dataset. ## Actual results 404 Error. I guess the issue is when computing the ETags of the remote files. Indeed `use_auth_token` must be passed to `request_etags` here: https://github.com/huggingface/datasets/blob/35b5e4bc0cb2ed896e40f3eb2a4aa3de1cb1a6c5/src/datasets/builder.py#L160-L160
[ 0.08716316521167755, 0.025846078991889954, 0.027406740933656693, 0.6045910120010376, -0.17846840620040894, -0.08985543251037598, 0.2882223427295685, 0.3268500566482544, 0.018490569666028023, 0.16752344369888306, -0.36939990520477295, -0.08398586511611938, 0.22415471076965332, -0.04085671529173851, 0.08882203698158264, -0.04227934777736664, 0.03764231503009796, 0.12004952877759933, 0.32785651087760925, -0.24067340791225433, -0.17161807417869568, 0.1605943888425827, -0.028253069147467613, 0.2701842784881592, 0.0697425901889801, 0.12595979869365692, 0.042159147560596466, 0.5915511250495911, -0.12429498881101608, -0.16657055914402008, 0.2873156666755676, -0.017306368798017502, 0.5707441568374634, 0.8942393064498901, -0.00011840259685413912, 0.16816271841526031, 0.25953614711761475, 0.010358206927776337, -0.23485130071640015, -0.11426831036806107, -0.40384441614151, 0.13020437955856323, 0.0836363360285759, -0.1607077419757843, -0.18077366054058075, -0.09381324052810669, -0.3060295879840851, 0.08644179254770279, 0.44089382886886597, 0.39260298013687134, 0.16618017852306366, 0.4484369456768036, 0.09070853143930435, -0.1656460464000702, 0.4235147535800934, 0.034857962280511856, 0.005340236704796553, 0.29008492827415466, -0.07083811610937119, 0.08676256984472275, 0.013296974822878838, -0.006878636311739683, 0.014134535565972328, 0.08429370075464249, 0.20927725732326508, 0.01345750316977501, -0.042386673390865326, -0.0992744117975235, -0.10021736472845078, 0.06586241722106934, 0.41295409202575684, 0.0002569216303527355, -0.26692983508110046, 0.02668301947414875, -0.036754533648490906, -0.13648557662963867, 0.1582321673631668, 0.25694042444229126, -0.13410702347755432, 0.12089534103870392, -0.1735553741455078, -0.3134869635105133, -0.40482503175735474, 0.3338386118412018, 0.11144722998142242, -0.055139102041721344, 0.009700269438326359, 0.025280719622969627, -0.25263574719429016, -0.20699407160282135, -0.09649015218019485, -0.17500516772270203, 0.021321933716535568, 0.16974756121635437, -0.028792796656489372, -0.09079533815383911, 0.08586613833904266, -0.03166341781616211, 0.2942894399166107, 0.3939572274684906, -0.2702390253543854, -0.0663876011967659, -0.4752778112888336, 0.19549092650413513, -0.017345910891890526, 0.34399551153182983, 0.01939702220261097, 0.27927759289741516, 0.4515995383262634, 0.4925678074359894, 0.024925237521529198, 0.09163004904985428, -0.33785346150398254, -0.0051900832913815975, -0.16792835295200348, -0.19273295998573303, 0.46461987495422363, -0.4979289770126343, -0.0039770761504769325, 0.184706911444664, -0.23573869466781616, 0.027758441865444183, -0.026083681732416153, 0.3406422734260559, -0.07194072008132935, -0.13381469249725342, 0.06868559867143631, 0.0375017374753952, -0.2768375277519226, -0.09239909797906876, -0.17043720185756683, -0.163203626871109, 0.021363770589232445, 0.2591722905635834, 0.13167908787727356, -0.02675066702067852, 0.20241567492485046, -0.036949772387742996, 0.3569190204143524, -0.2349613755941391, 0.00012275626068003476, 0.19251035153865814, -0.18512041866779327, 0.2597726285457611, 0.16594494879245758, -0.025374028831720352, 0.11905241012573242, -0.39256295561790466, -0.05470753833651543, -0.13965708017349243, -0.6864684224128723, -0.43079474568367004, -0.08433151245117188, 0.10729390382766724, -0.19420699775218964, 0.040002673864364624, -0.5282009840011597, -0.3732127845287323, -0.11128907650709152, -0.09952861070632935, 0.03762486204504967, 0.028247641399502754, -0.04839649796485901, -0.11583224684000015, 0.15852779150009155, 0.5856996774673462, 0.35858404636383057, -0.007159429136663675, 0.32949596643447876, -0.18860018253326416, 0.20193438231945038, 0.3431800603866577, -0.18510054051876068, 0.08392021059989929, -0.28782540559768677, 0.3110013008117676, 0.15975826978683472, -0.4815155267715454, -0.41125592589378357, 0.6456840634346008, -0.2698858976364136, 0.0339968279004097, 0.09822963178157806, -0.10844162851572037, 0.11725179105997086, -0.20856742560863495, 0.5326526761054993, 0.4657271206378937, 0.21078936755657196, -0.1300879567861557, -0.2885695695877075, -0.21363969147205353, -0.362942099571228, 0.39985939860343933, -0.0017962177516892552, 0.21093030273914337, 0.36255377531051636, -0.2569054365158081, 0.2932193875312805, -0.04581828415393829, -0.1872210055589676, 0.3072161078453064, 0.3584534823894501, 0.019274424761533737, 0.2242029756307602, 0.0763050988316536, -0.2873438596725464, 0.1927691251039505, -0.358560711145401, 0.14916016161441803, -0.04197969660162926, -0.0627901554107666, -0.31006351113319397, -0.0910806804895401, -0.45454859733581543, 0.18637250363826752, 0.042548876255750656, -0.03727038949728012, -0.17018960416316986, 0.16517451405525208, 0.020100945606827736, 0.27203765511512756, -0.12226282060146332, 0.2718657851219177, -0.2868470847606659, 0.6367557048797607, 0.026766300201416016, 0.07505425810813904, 0.18609891831874847, 0.21778716146945953, 0.38067537546157837, -0.06307928264141083, -0.1942438781261444, 0.31248319149017334, 0.19504427909851074, 0.13240276277065277, 0.7725486159324646, -0.06868309527635574, 0.22053943574428558, -0.08822744339704514, 0.02878478541970253, 0.4030070900917053, 0.0595475472509861, 0.21509990096092224, 0.18245792388916016, 0.19517968595027924, 0.044159602373838425, 0.3703368306159973, 0.09918808192014694, -0.10814210027456284, 0.17922063171863556, -0.12749458849430084, -0.10717355459928513, -0.03834616392850876, 0.37414923310279846, 0.0318131223320961, -0.2007787823677063, -0.06032238528132439, -0.11721888929605484, 0.027873028069734573, 0.20259690284729004, -0.3027198314666748, -0.041504133492708206, 0.33030757308006287, -0.1391052007675171, -0.01671873778104782, 0.2410385012626648, 0.4205012023448944, 0.29792600870132446, -0.017052512615919113, -0.18175721168518066, 0.06567958742380142, -0.08967839181423187, -0.08312106132507324, -0.06388930976390839, 0.022054316475987434, 0.03407655283808708, 0.16878584027290344, 0.1015620231628418, -0.037696924060583115, -0.05694599449634552, -0.4256902039051056, -0.0824863463640213, 0.27190378308296204, -0.4516472816467285, -0.0140940947458148, -0.37280967831611633, -0.13232369720935822, -0.07672765851020813, -0.261500746011734, -0.5702648162841797, -0.07631087303161621, 0.028902733698487282, -0.08092775195837021, -0.10595501959323883, -0.15909217298030853, 0.03471023216843605, 0.28102293610572815, 0.11680296063423157, -0.35476428270339966, -0.1858556866645813, -0.012185164727270603, -0.29401594400405884, -0.0945231094956398, 0.29223230481147766, 0.02048591338098049, 0.3175249993801117, -0.4767369031906128, -0.09028398990631104, -0.40700992941856384, -0.11128444969654083, 0.03564515709877014, 0.15650686621665955, 0.3482764959335327, -0.039822451770305634, 0.0723160058259964, 0.2941640019416809, 0.09164884686470032, 0.25703516602516174, -0.1088714450597763, -0.2068011462688446, 0.24579951167106628, -0.18318796157836914, -0.09091963618993759, -0.13208702206611633, -0.029461026191711426, -0.25507333874702454, -0.18537211418151855, 0.23713912069797516, 0.3771704137325287, 0.09536395967006683, -0.2680516839027405, 0.07060573250055313, 0.22627320885658264, -0.1531767100095749, -0.14682282507419586, -0.1719808727502823, -0.5023720264434814, 0.27431148290634155, -0.40320950746536255, -0.23066005110740662, 0.2652859687805176, 0.22562748193740845, 0.043405573815107346, -0.12375876307487488, -0.6602148413658142, -0.5772989392280579, -0.08363709598779678, 0.2650003433227539, -0.272884339094162, 0.047268096357584, 0.04385223984718323, -0.1540028154850006, 0.07781767845153809, 0.045803919434547424, -0.2724546194076538, 0.1395339071750641, 0.04778987169265747, 0.14115378260612488, 0.012935816310346127, 0.19846200942993164, -0.06428207457065582, 0.5992154479026794, 0.17629198729991913, 0.19723375141620636, 0.27015671133995056, 0.035049255937337875, 0.21592330932617188, -0.027147090062499046, 0.04164593294262886, -0.05252125859260559, -0.0180696789175272, -0.16071556508541107, 0.21095699071884155, 0.41178539395332336, -0.027006985619664192, -0.2943616807460785, -0.7045915126800537, -0.1905459463596344, -0.27299535274505615, -0.41703343391418457, 0.34699973464012146, 0.0805545449256897, 0.1777724325656891, -0.03540247306227684, -0.11524320393800735, -0.19524845480918884, 0.249660462141037, 0.4584130048751831, 0.20801128447055817, 0.22462736070156097, 0.05449747294187546, 0.012665938585996628, -0.4743281304836273, 0.3333803415298462, 0.03144129738211632, 0.28292813897132874, 0.025477631017565727, 0.20008651912212372, 0.13832108676433563, -0.17131246626377106, 0.010133463889360428, 0.10000938922166824, 0.49798962473869324, -0.01856376975774765, -0.16390658915042877, -0.08585089445114136, -0.05355561524629593, 0.007816653698682785, 0.0035868848208338022, -0.11755967885255814, 0.8319279551506042, -0.2911429703235626, -0.21074073016643524, 0.002134449314326048, -0.13268356025218964, -0.12457475066184998, -0.411031037569046, -0.30063870549201965, -0.39913666248321533, -0.300153911113739, -0.036025844514369965, -0.17558839917182922, 0.1223568469285965, -0.16136819124221802, 0.12082663178443909, 0.3628306984901428, 0.26041385531425476, 0.06928098201751709, -0.056780554354190826, 0.3072287142276764, -0.19988586008548737, -0.07384175807237625, 0.30688977241516113, 0.2507612109184265, 0.42061400413513184, 0.6409816741943359, 0.013059157878160477, -0.41182079911231995, 0.033869873732328415, -0.17218860983848572, 0.0882985070347786, 0.4270454943180084, -0.09032069146633148, 0.05497513338923454, 0.27326759696006775, 0.40283137559890747, -0.10747269541025162, 0.10769066959619522, 0.07535091042518616, -0.25765252113342285, -0.11007560044527054, -0.14170171320438385, 0.44264471530914307, -0.29455024003982544, 0.04820305109024048, 0.030648047104477882, 0.5616438388824463, -0.16131757199764252, 0.4553392231464386, -0.2532241642475128, 0.8656355142593384, 0.03188043087720871, 0.3191574811935425, 0.4125311076641083, -0.21757784485816956, 0.15343426167964935, -0.6794506311416626, -0.032702311873435974, -0.12118691205978394, 0.23535685241222382, -0.17376774549484253, -0.06292280554771423, -0.03268588334321976, -0.22243058681488037, 0.06971117109060287, 0.34404176473617554, -0.10734441876411438, 0.5143915414810181, 0.22667498886585236, 0.048246659338474274, 0.14297930896282196, -0.07098762691020966, -0.3608294129371643, 0.08680468797683716, -0.0884208157658577, 0.09741721302270889, -0.08139113336801529, -0.3059491515159607, -0.35817721486091614, -0.1596125364303589, 0.01686115376651287, 0.19650031626224518, 0.10908722132444382, -0.057544853538274765, 0.05662276968359947, -0.2959422171115875, 0.021162839606404305, -0.01253535971045494, 0.1347130388021469, 0.003047175472602248, -0.5207502841949463, 0.1371697038412094, -0.17261025309562683, -0.029373107478022575, -0.05644248053431511, -0.09330935031175613, 0.10724775493144989, -0.26751089096069336, -0.1880781054496765, -0.029824066907167435, -0.1000048890709877, -0.45312395691871643, -0.2585156261920929, 0.18609486520290375, -0.008169634267687798, -0.15586985647678375, 0.07143860310316086, -0.016119305044412613, -0.03413750231266022, -0.10822229832410812, 0.08674442768096924, 0.18004189431667328, -0.3045521676540375, -0.317341685295105, 0.16464871168136597, -0.27640610933303833, -0.027520760893821716, 0.40222105383872986, -0.09577000141143799, -0.11389091610908508, 0.34967851638793945, 0.10881281644105911, -0.08042529970407486, -0.13513171672821045, -0.05548563227057457, 0.3459489643573761, -0.7139824032783508, -0.009598873555660248, -0.037118036299943924, 0.23630565404891968, -0.07314317673444748, -0.016662005335092545, 0.10228583216667175, -0.40737226605415344, 0.2560971677303314, -0.5434623956680298, -0.053838830441236496, 0.0893288180232048, -0.31750428676605225, -0.14622341096401215, 0.10508298873901367, 0.10625670105218887, -0.13187439739704132, -0.3294653594493866, -0.24216797947883606, 0.3742590546607971, -0.399037629365921, -0.08872806280851364, -0.08793579787015915, 0.0046875555999577045, 0.255655974149704, 0.10628867894411087, 0.04721461609005928, 0.07301255315542221, -0.20928709208965302, -0.0989166796207428, -0.3098871111869812, 0.21218854188919067, 0.07141498476266861, -0.1748320460319519, 0.03209836781024933, -0.19382746517658234, -0.21383041143417358, 0.08982805907726288, 0.009390144608914852, 0.1445704698562622, 0.04042576998472214, -0.15556904673576355, 0.2398989349603653, 0.03252478688955307, -0.3132787048816681, 0.4965498149394989, 0.19678619503974915, 0.5202298760414124, -0.17442238330841064, 0.049426186829805374, -0.6694005727767944, 0.02766072005033493, 0.12311971932649612, 0.06874281913042068, 0.29773765802383423, 0.31160596013069153, 0.6110660433769226, -0.510162353515625, 0.12764382362365723, -0.09019733220338821, 0.14471718668937683, 0.11532943695783615, -0.2795446813106537, 0.034390997141599655, 0.13569797575473785, 0.09083431214094162, -0.018594546243548393, -0.2194553017616272, 0.5809530019760132, -0.019375372678041458, -0.21607756614685059, 0.11845721304416656, 0.2108076959848404, 0.07177580893039703, 0.06186116859316826, 0.11580396443605423, 0.3747923970222473, 0.13988114893436432, -0.21010571718215942, 0.04968501627445221, -0.10487344861030579, 0.2838539779186249, -0.083925761282444, 0.056089602410793304, -0.03170669823884964, 0.3715338706970215, -0.11075551062822342, 0.1075451597571373, 0.08344098925590515, 0.25269171595573425, 0.06964586675167084, -0.5230895280838013, -0.25321999192237854, -0.023605691269040108, 0.3299838602542877, 0.011329405009746552, -0.2905014157295227, 0.266254723072052, -0.1612526774406433, 0.27388063073158264, -0.35287103056907654, -0.043730150908231735, 0.05426546186208725, 0.15025357902050018, -0.04973634332418442, -0.22339412569999695, -0.096286840736866, -0.03709384426474571, -0.10773853957653046, -0.13209256529808044, -0.32770898938179016, 0.104140505194664, -0.14856170117855072, -0.2872103452682495, -0.24182921648025513, 0.20788918435573578, 0.000650241447146982, -0.11098670214414597, 0.21594761312007904, 0.16307523846626282, -0.03788084164261818, 0.15163074433803558, -0.28272971510887146, 0.3619367480278015, 0.15720681846141815, -0.0038279760628938675, 0.0017604718450456858, 0.15951330959796906, 0.04882127419114113, 0.2324170619249344, 0.2722708582878113, 0.1974623203277588, 0.07931049913167953, 0.29436343908309937, 0.07264148443937302, -0.11642983555793762, -0.044659484177827835, -0.24035735428333282, 0.2847380042076111, -0.16609901189804077, 0.5623672008514404, -0.5071779489517212, -0.04393497109413147, -0.34369903802871704, -0.18986839056015015, -0.3341604173183441, 0.1306706815958023, 0.29806819558143616, 0.2615305781364441, -0.022522587329149246, -0.1373254358768463, 0.017990125343203545, -0.3996056616306305, 0.4213401973247528, 0.49004197120666504, 0.40013977885246277, -0.34164872765541077, -0.14886705577373505, -0.43808186054229736, 0.46924006938934326, -0.0023399561177939177, -0.11446746438741684, 0.14303067326545715, 0.20809035003185272, -0.12226662784814835, -0.01495117787271738, 0.2360367476940155, -0.29137513041496277, 0.22217142581939697, -0.09080053120851517, -0.08496243506669998, -0.08829160034656525, -0.07929442822933197, 0.02599955163896084, -0.02537517063319683, -0.29102644324302673, 0.15609315037727356, -0.3079156279563904, -0.021579181775450706, 0.16688528656959534, -0.060808487236499786, 0.13425391912460327, -0.27019572257995605, 0.4539768695831299, 0.12280776351690292, 0.19147267937660217, 0.16910919547080994, -0.3373647928237915, -0.1320323646068573, -0.15177735686302185, -0.20587506890296936, -0.4226779639720917, -0.3909520208835602, 0.12357939779758453, -0.12298534065485, 0.08950269222259521, -0.3886905610561371, 0.28310340642929077, -0.036289069801568985, 0.20376765727996826, -0.10125484317541122, 0.15504367649555206, -0.23339056968688965, -0.12165646255016327, 0.1989431083202362, 0.06161561980843544, 0.058145154267549515, 0.09676141291856766, -0.08364235609769821, 0.040730588138103485, 0.6753649711608887, -0.44637608528137207, -0.09666462242603302, 0.09116670489311218, 0.3124553859233856, 0.26039355993270874, -0.35807597637176514, -0.16400563716888428, 0.14705100655555725, 0.2772578299045563, 0.27741289138793945, -0.24097485840320587, 0.18420301377773285, -0.26663073897361755, 0.1258789747953415, 0.04753424599766731, 0.09526029229164124, 0.04320576414465904, -0.18912291526794434, 0.33355721831321716, -0.05264486372470856 ]
https://github.com/huggingface/datasets/issues/2724
404 Error when loading remote data files from private repo
Yes, I remember having properly implemented that: - https://github.com/huggingface/datasets/commit/7a9c62f7cef9ecc293f629f859d4375a6bd26dc8#diff-f933ce41f71c6c0d1ce658e27de62cbe0b45d777e9e68056dd012ac3eb9324f7R160 - https://github.com/huggingface/datasets/pull/2628/commits/6350a03b4b830339a745f7b1da46ece784ca734c But a subsequent refactoring accidentally removed it...
## Describe the bug When loading remote data files from a private repo, a 404 error is raised. ## Steps to reproduce the bug ```python url = hf_hub_url("lewtun/asr-preds-test", "preds.jsonl", repo_type="dataset") dset = load_dataset("json", data_files=url, use_auth_token=True) # HTTPError: 404 Client Error: Not Found for url: https://huggingface.co/datasets/lewtun/asr-preds-test/resolve/main/preds.jsonl ``` ## Expected results Load dataset. ## Actual results 404 Error.
18
404 Error when loading remote data files from private repo ## Describe the bug When loading remote data files from a private repo, a 404 error is raised. ## Steps to reproduce the bug ```python url = hf_hub_url("lewtun/asr-preds-test", "preds.jsonl", repo_type="dataset") dset = load_dataset("json", data_files=url, use_auth_token=True) # HTTPError: 404 Client Error: Not Found for url: https://huggingface.co/datasets/lewtun/asr-preds-test/resolve/main/preds.jsonl ``` ## Expected results Load dataset. ## Actual results 404 Error. Yes, I remember having properly implemented that: - https://github.com/huggingface/datasets/commit/7a9c62f7cef9ecc293f629f859d4375a6bd26dc8#diff-f933ce41f71c6c0d1ce658e27de62cbe0b45d777e9e68056dd012ac3eb9324f7R160 - https://github.com/huggingface/datasets/pull/2628/commits/6350a03b4b830339a745f7b1da46ece784ca734c But a subsequent refactoring accidentally removed it...
[ 0.1519908607006073, 0.021742871031165123, 0.04215240851044655, 0.468988299369812, -0.1487775295972824, -0.08374578505754471, 0.18702194094657898, 0.3314779996871948, 0.025100991129875183, 0.13213108479976654, -0.4147609770298004, -0.038175445050001144, 0.11771728843450546, -0.08457133173942566, 0.22746598720550537, -0.09395395964384079, 0.06437589228153229, 0.2031136006116867, 0.1788402646780014, -0.19641543924808502, -0.14163586497306824, 0.1891838014125824, -0.026706380769610405, 0.21358074247837067, 0.08846256136894226, 0.16262578964233398, -0.016953442245721817, 0.5753357410430908, -0.13345883786678314, -0.25307974219322205, 0.426484078168869, 0.057515647262334824, 0.49013975262641907, 0.8685286641120911, -0.00011990922939730808, 0.21894365549087524, 0.2850865423679352, 0.06304044276475906, -0.2731935381889343, -0.17700138688087463, -0.4306527376174927, 0.16966508328914642, 0.19023051857948303, -0.057768382132053375, -0.1480032205581665, -0.08566324412822723, -0.22312092781066895, 0.1030694991350174, 0.3863915801048279, 0.2849092185497284, 0.17129847407341003, 0.37988972663879395, 0.05668947845697403, -0.14312374591827393, 0.2864226698875427, 0.06625209748744965, -0.04733243212103844, 0.4522378742694855, -0.09436701983213425, 0.10323752462863922, -0.0649590715765953, -0.0003477032878436148, -0.0010123830288648605, 0.02699948288500309, 0.22685594856739044, -0.006047229748219252, -0.11014962941408157, -0.05667021870613098, -0.16331236064434052, 0.1307189166545868, 0.3496461808681488, -0.11198918521404266, -0.26373597979545593, -0.07688018679618835, -0.007029262371361256, -0.23805099725723267, 0.21041539311408997, 0.18955446779727936, -0.11701544374227524, 0.24972335994243622, -0.2861325144767761, -0.41807690262794495, -0.29749178886413574, 0.3176786005496979, 0.06410981714725494, 0.048451121896505356, -0.031871698796749115, -0.05228882655501366, -0.301205575466156, -0.057660236954689026, -0.1049259752035141, -0.12570253014564514, -0.03579506278038025, 0.1374063342809677, 0.010150150395929813, -0.06494679301977158, 0.26228633522987366, -0.07379982620477676, 0.38918575644493103, 0.2772267758846283, -0.0017995438538491726, -0.034976206719875336, -0.4886954724788666, 0.13276363909244537, 0.02805314026772976, 0.3387029767036438, -0.09827468544244766, 0.22229157388210297, 0.5048390030860901, 0.5479642748832703, 0.06486354023218155, 0.12374155968427658, -0.18652120232582092, 0.1162768304347992, -0.19829702377319336, -0.20187383890151978, 0.5696328282356262, -0.44190406799316406, -0.025523941963911057, 0.3089800477027893, -0.3250637352466583, 0.025451749563217163, -0.05431655794382095, 0.2940501570701599, -0.06401857733726501, -0.005387685261666775, 0.11053812503814697, 0.0006802150164730847, -0.2913879156112671, 0.03788776323199272, -0.18087108433246613, -0.12633801996707916, -0.06103240326046944, 0.17199937999248505, 0.14999867975711823, -0.07614339143037796, 0.1993521749973297, -0.046853817999362946, 0.3632749915122986, -0.20244883000850677, -0.1399957835674286, 0.24485529959201813, -0.16609296202659607, 0.2702890634536743, 0.11247356235980988, -0.04821936413645744, 0.031276408582925797, -0.3952690660953522, -0.06081688404083252, -0.15336939692497253, -0.633165717124939, -0.44670239090919495, -0.10268272459506989, 0.07899637520313263, -0.24542850255966187, 0.048447947949171066, -0.5156439542770386, -0.24825724959373474, -0.2269541472196579, -0.11614562571048737, 0.10250452905893326, 0.07317155599594116, -0.21550269424915314, -0.17253823578357697, 0.2357490360736847, 0.6003873348236084, 0.21605275571346283, -0.016952184960246086, 0.3043438494205475, -0.22470763325691223, 0.15362250804901123, 0.16470232605934143, -0.14236576855182648, 0.22901852428913116, -0.3856137692928314, 0.19022293388843536, 0.2130475789308548, -0.4618353247642517, -0.4828759729862213, 0.6060367226600647, -0.32022586464881897, 0.24633480608463287, 0.01875474490225315, -0.21136951446533203, -0.03745673596858978, -0.13877691328525543, 0.539817214012146, 0.44391122460365295, 0.22864742577075958, -0.1108342856168747, -0.30198413133621216, -0.24865631759166718, -0.40801432728767395, 0.34689322113990784, 0.04905189573764801, 0.27888718247413635, 0.3681972324848175, -0.16494837403297424, 0.41396409273147583, -0.06997267156839371, -0.12638729810714722, 0.36685681343078613, 0.4195958375930786, 0.06254210323095322, 0.1435607373714447, -0.07973731309175491, -0.37446996569633484, 0.20661865174770355, -0.3822331726551056, 0.11964508891105652, 0.02386561408638954, -0.03689407557249069, -0.30128079652786255, -0.15244123339653015, -0.502971351146698, 0.10532302409410477, 0.05480145663022995, 0.05661141872406006, -0.17418773472309113, 0.16568095982074738, -0.11462593078613281, 0.4241328239440918, -0.00976351834833622, 0.2932831943035126, -0.345937579870224, 0.6859853863716125, 0.052066925913095474, 0.021230805665254593, 0.07523077726364136, 0.3377070426940918, 0.2700015902519226, -0.1151408851146698, -0.15380297601222992, 0.44897139072418213, 0.05734221637248993, 0.12543368339538574, 0.6857697367668152, -0.19216015934944153, 0.3496062755584717, -0.12841127812862396, 0.031871892511844635, 0.34694334864616394, -0.0006148553220555186, 0.2657708525657654, 0.18787482380867004, 0.13337399065494537, -0.03801015391945839, 0.25067275762557983, 0.09259648621082306, -0.1911725401878357, 0.21223193407058716, -0.15564240515232086, -0.17209169268608093, -0.12357626855373383, 0.41049036383628845, -0.006213814485818148, -0.19080205261707306, -0.07352037727832794, -0.19876666367053986, -0.037657562643289566, 0.11918546259403229, -0.2879224419593811, 0.05729757621884346, 0.33489635586738586, -0.08594522625207901, -0.017396733164787292, 0.19621016085147858, 0.4637833833694458, 0.3661138117313385, -0.027938883751630783, -0.1758413016796112, 0.20772171020507812, -0.030725546181201935, -0.047853805124759674, -0.06401482224464417, 0.06216089054942131, 0.0942826196551323, 0.2740385830402374, 0.1305273026227951, 0.02535867691040039, -0.09310497343540192, -0.3885851204395294, -0.1760837286710739, 0.20466409623622894, -0.49243003129959106, -0.08462276309728622, -0.4646686017513275, 0.0009309937595389783, -0.08484157174825668, -0.2139749526977539, -0.46509850025177, -0.059336282312870026, -0.006465931888669729, -0.0798761397600174, -0.18460334837436676, -0.1233488917350769, -0.13192957639694214, 0.20603148639202118, -0.010157727636396885, -0.3751417398452759, -0.20108535885810852, 0.09160143882036209, -0.22657150030136108, -0.1003582626581192, 0.12561295926570892, -0.01874280348420143, 0.31928208470344543, -0.4008623957633972, -0.1340947151184082, -0.3375825881958008, -0.15688291192054749, 0.11969859898090363, 0.1543843001127243, 0.2986592650413513, 0.10028238594532013, -0.03881130367517471, 0.21307098865509033, 0.027554839849472046, 0.24902509152889252, -0.11150193214416504, -0.2384190708398819, 0.21736489236354828, -0.12694577872753143, 0.020602384582161903, -0.16850416362285614, -0.023513518273830414, -0.29681599140167236, -0.34729325771331787, 0.1988019496202469, 0.284771203994751, 0.07364655286073685, -0.24364377558231354, 0.045204877853393555, 0.2794007360935211, -0.2056296318769455, -0.03065396286547184, -0.09978599846363068, -0.4469517469406128, 0.1976715475320816, -0.39989250898361206, -0.18469460308551788, 0.2627224326133728, 0.16231699287891388, 0.04972667619585991, -0.09553886204957962, -0.7413297891616821, -0.5427151918411255, 0.007241022773087025, 0.282599538564682, -0.27678245306015015, 0.023946572095155716, 0.11211728304624557, -0.07217105478048325, 0.08613025397062302, -0.0010128718568012118, -0.2558850347995758, -0.02241276018321514, 0.040469855070114136, 0.2527863681316376, 0.10340733081102371, 0.2775857448577881, -0.0809154361486435, 0.5106101036071777, 0.1753753423690796, 0.290090948343277, 0.39526402950286865, 0.06233447417616844, 0.34868577122688293, -0.12345585227012634, 0.02799742855131626, -0.058881085366010666, -0.10171554237604141, -0.16725759208202362, 0.1642967015504837, 0.40033477544784546, 0.0011570996139198542, -0.39444318413734436, -0.7023412585258484, -0.23990125954151154, -0.2511533200740814, -0.3958388864994049, 0.23581644892692566, 0.03891948238015175, 0.15246866643428802, -0.10119645297527313, 0.06480097770690918, -0.09498518705368042, 0.24101616442203522, 0.39891159534454346, 0.22971926629543304, 0.1988517940044403, 0.08657635003328323, 0.022150343284010887, -0.6100177764892578, 0.19955313205718994, 0.03080560825765133, 0.20613864064216614, 0.03166783228516579, 0.14793021976947784, 0.03302927687764168, -0.16074305772781372, 0.11662804335355759, 0.135409414768219, 0.5210430026054382, -0.07745576649904251, -0.20373709499835968, -0.048521917313337326, -0.056595880538225174, 0.07154396176338196, 0.0715448409318924, -0.07392635941505432, 0.7497161030769348, -0.2757319509983063, -0.18430942296981812, 0.1453225016593933, -0.22945399582386017, -0.07225257903337479, -0.4218309223651886, -0.3218512237071991, -0.4020780026912689, -0.23741114139556885, -0.08456357568502426, -0.16327117383480072, 0.13292931020259857, -0.08230429142713547, 0.0034865422639995813, 0.39894288778305054, 0.14489208161830902, 0.03885553777217865, -0.09217759966850281, 0.3415282666683197, -0.20109476149082184, -0.020129768177866936, 0.3490425944328308, 0.35593706369400024, 0.37214362621307373, 0.6303962469100952, -0.07400821149349213, -0.26294687390327454, 0.09121521562337875, -0.09164457023143768, 0.19384782016277313, 0.45228004455566406, -0.0198250450193882, 0.03251086547970772, 0.2730737030506134, 0.349452942609787, -0.2121819108724594, 0.019735481590032578, 0.06299339234828949, -0.3600479066371918, -0.14448152482509613, -0.09171555936336517, 0.5425670146942139, -0.24238771200180054, 0.02030239813029766, 0.032404232770204544, 0.6648785471916199, -0.2799304723739624, 0.39757147431373596, -0.2922760844230652, 0.8610059022903442, 0.1289738565683365, 0.3152337968349457, 0.4537094235420227, -0.3615627884864807, 0.2927815318107605, -0.6476737856864929, 0.01164796482771635, -0.07091273367404938, 0.2144022285938263, -0.1924668401479721, -0.08449986577033997, -0.039707593619823456, -0.3045715093612671, 0.04993382841348648, 0.3462190330028534, -0.058028578758239746, 0.43517616391181946, 0.20923928916454315, -0.047481972724199295, 0.11755653470754623, -0.044576533138751984, -0.4515308439731598, 0.055913180112838745, -0.13007056713104248, 0.11493487656116486, -0.14494295418262482, -0.19521352648735046, -0.33241480588912964, -0.14631272852420807, 0.02146821841597557, 0.23029205203056335, 0.2007448971271515, -0.12353518605232239, 0.11451070755720139, -0.4036963880062103, 0.03246597573161125, 0.004657537676393986, 0.015303961001336575, 0.07964196801185608, -0.48804670572280884, 0.1559610515832901, -0.21708296239376068, 0.09574194252490997, -0.013812927529215813, -0.052320729941129684, 0.1070040613412857, -0.1990107148885727, -0.2001742571592331, -0.07361198961734772, -0.17673978209495544, -0.46833786368370056, -0.20650413632392883, 0.2000974863767624, 0.0447465218603611, -0.13831156492233276, 0.07860376685857773, 0.06339914351701736, 0.11480790376663208, -0.18825024366378784, 0.07614438980817795, 0.2264971137046814, -0.36609184741973877, -0.3395538628101349, 0.1169341430068016, -0.2562222182750702, -0.08167126029729843, 0.4282541573047638, -0.06584878265857697, -0.13986556231975555, 0.2938951849937439, 0.0974348783493042, -0.09408494085073471, -0.10204675048589706, -0.07969889789819717, 0.48896023631095886, -0.578471839427948, 0.06193438544869423, -0.09595296531915665, 0.09818081557750702, -0.09859257191419601, -0.03321753069758415, 0.13364462554454803, -0.3805675804615021, 0.12734189629554749, -0.5043215155601501, -0.11311323195695877, 0.1486772894859314, -0.30342140793800354, -0.056126970797777176, 0.11875336617231369, 0.10086385905742645, -0.07907617837190628, -0.35727089643478394, -0.2249251902103424, 0.2928539514541626, -0.3823474049568176, -0.1863856315612793, -0.12350942939519882, 0.05164021998643875, 0.25171878933906555, 0.09055214375257492, 0.044312361627817154, 0.1776966005563736, -0.1890118271112442, -0.06398304551839828, -0.3440084159374237, 0.20224308967590332, 0.07723463326692581, -0.16176284849643707, 0.10213968902826309, -0.13557833433151245, -0.1508629024028778, 0.0877780020236969, 0.07124660164117813, 0.1543184220790863, 0.09472565352916718, -0.23691417276859283, 0.2930661141872406, -0.11635235697031021, -0.20115654170513153, 0.4889202415943146, 0.24833254516124725, 0.5059657096862793, -0.04932265728712082, 0.0667499378323555, -0.6707579493522644, 0.03137478977441788, 0.16655224561691284, 0.05572322756052017, 0.27887800335884094, 0.3210636079311371, 0.6118311882019043, -0.5756320953369141, 0.03299116715788841, 0.006039910018444061, 0.31092435121536255, 0.13473232090473175, -0.29455795884132385, 0.01919267699122429, 0.04291461035609245, 0.0752071738243103, -0.0013584861299023032, -0.263073593378067, 0.5856039524078369, 0.049042802304029465, -0.18890582025051117, 0.08209255337715149, 0.12292016297578812, 0.05097205936908722, 0.0173321720212698, 0.1745792031288147, 0.47024545073509216, 0.14202746748924255, -0.17214030027389526, 0.12955708801746368, -0.12668688595294952, 0.2827388644218445, -0.08449701219797134, 0.046894825994968414, -0.06921882182359695, 0.49684277176856995, -0.03352414071559906, 0.13903774321079254, -0.009480626322329044, 0.3376968204975128, 0.11957474052906036, -0.5196660757064819, -0.15519027411937714, 0.03633836656808853, 0.19796419143676758, 0.05864526331424713, -0.2508135437965393, 0.17381423711776733, -0.18209953606128693, 0.2708265483379364, -0.30558377504348755, -0.0988202914595604, -0.01199523825198412, 0.10819899290800095, -0.09616826474666595, -0.23484466969966888, -0.02370004542171955, 0.018740154802799225, -0.08669034391641617, -0.1623457372188568, -0.22828751802444458, 0.07809138298034668, -0.11806586384773254, -0.3563404083251953, -0.1524612456560135, 0.12795349955558777, 0.015266443602740765, -0.06568149477243423, 0.23949287831783295, 0.2469673901796341, -0.10232201963663101, 0.070675328373909, -0.16406278312206268, 0.2949666976928711, 0.11479111760854721, 0.052733756601810455, -0.055349044501781464, 0.15844053030014038, 0.0689917579293251, 0.14549274742603302, 0.23919831216335297, 0.2414407879114151, 0.07334226369857788, 0.19124822318553925, 0.08541803061962128, -0.10164209455251694, 0.15102733671665192, -0.14520573616027832, 0.39081457257270813, -0.24086907505989075, 0.580754816532135, -0.4651973247528076, -0.010185007005929947, -0.21760964393615723, -0.15640319883823395, -0.3127637803554535, 0.1948426365852356, 0.33658769726753235, 0.19358745217323303, -0.04486243799328804, -0.08106876164674759, 0.019935110583901405, -0.18684345483779907, 0.30005350708961487, 0.5435922741889954, 0.34297117590904236, -0.2879972755908966, -0.1429525464773178, -0.4444923996925354, 0.5230222940444946, 0.028518177568912506, -0.03382804989814758, 0.16455794870853424, 0.21040594577789307, -0.2261791229248047, -0.019459974020719528, 0.23046529293060303, -0.22297051548957825, 0.2771524488925934, -0.13849636912345886, -0.04355839267373085, -0.12609568238258362, -0.09669744223356247, 0.07465039938688278, -0.044110801070928574, -0.23333509266376495, 0.188886359333992, -0.16806231439113617, -0.050056032836437225, 0.13126033544540405, -0.06503524631261826, 0.09329640120267868, -0.29727309942245483, 0.45254331827163696, 0.15800435841083527, 0.06680294126272202, 0.09579549729824066, -0.44873324036598206, -0.2434641420841217, -0.18337230384349823, -0.13895124197006226, -0.4815647006034851, -0.35146069526672363, 0.17299802601337433, -0.19229549169540405, 0.03250046819448471, -0.3576338291168213, 0.2487707883119583, -0.06882768124341965, 0.15178616344928741, -0.15571294724941254, 0.1815238893032074, -0.22592096030712128, -0.13009712100028992, 0.2394525110721588, 0.11176034063100815, 0.004915091209113598, 0.10795368254184723, -0.10288316756486893, -0.019818324595689774, 0.6600611209869385, -0.42095640301704407, -0.04056386649608612, 0.05026526004076004, 0.33035004138946533, 0.14359985291957855, -0.4629880487918854, -0.21837207674980164, 0.07783849537372589, 0.23848092555999756, 0.2662734389305115, -0.20905224978923798, 0.2086627185344696, -0.305816113948822, 0.01866321451961994, 0.04856560379266739, 0.16297605633735657, 0.13903024792671204, -0.2202225625514984, 0.42235857248306274, -0.02166576497256756 ]
https://github.com/huggingface/datasets/issues/2722
Missing cache file
This could be solved by going to the glue/ directory and delete sst2 directory, then load the dataset again will help you redownload the dataset.
Strangely missing cache file after I restart my program again. `glue_dataset = datasets.load_dataset('glue', 'sst2')` `FileNotFoundError: [Errno 2] No such file or directory: /Users/chris/.cache/huggingface/datasets/glue/sst2/1.0.0/dacbe3125aa31d7f70367a07a8a9e72a5a0bfeb5fc42e75c9db75b96d6053ad/dataset_info.json'`
25
Missing cache file Strangely missing cache file after I restart my program again. `glue_dataset = datasets.load_dataset('glue', 'sst2')` `FileNotFoundError: [Errno 2] No such file or directory: /Users/chris/.cache/huggingface/datasets/glue/sst2/1.0.0/dacbe3125aa31d7f70367a07a8a9e72a5a0bfeb5fc42e75c9db75b96d6053ad/dataset_info.json'` This could be solved by going to the glue/ directory and delete sst2 directory, then load the dataset again will help you redownload the dataset.
[ -0.14894962310791016, -0.2841116189956665, -0.090394988656044, 0.14607074856758118, 0.27517756819725037, 0.04932720959186554, 0.07703205198049545, 0.2098800390958786, 0.2618970572948456, 0.05946491286158562, -0.08569717407226562, 0.09699945896863937, 0.09862168878316879, 0.2517305016517639, 0.11678987741470337, -0.14294473826885223, -0.11884097754955292, 0.2136436104774475, -0.3757644295692444, 0.10285970568656921, -0.03009469248354435, 0.49926063418388367, 0.0187853891402483, -0.030171779915690422, -0.3194895088672638, 0.015822935849428177, -0.07254374772310257, 0.37143704295158386, -0.06256786733865738, -0.2505570352077484, 0.20426854491233826, -0.008187340572476387, 0.17536836862564087, 0.23657527565956116, -0.00010006788215832785, -0.008588920347392559, 0.1501077115535736, -0.04430938884615898, -0.1311837136745453, 0.1888657957315445, -0.12325805425643921, -0.18027657270431519, -0.004272898659110069, -0.07909754663705826, -0.44315218925476074, 0.12933054566383362, 0.1493920236825943, -0.2958284318447113, 0.5744665861129761, -0.02616756036877632, 0.370799720287323, 0.2814990282058716, 0.19907836616039276, -0.2768566310405731, 0.12077634781599045, -0.1539124995470047, -0.06568587571382523, 0.1609664112329483, 0.09189002960920334, -0.15300890803337097, 0.13427944481372833, 0.46995508670806885, 0.08480440080165863, 0.11882232129573822, 0.285153865814209, -0.014772593043744564, -0.21648435294628143, -0.15982553362846375, 0.38037586212158203, -0.0023825133685022593, 0.38972195982933044, -0.21391315758228302, -0.1837676614522934, -0.10251549631357193, -0.005080540664494038, -0.009725578129291534, 0.10555800795555115, -0.011737565509974957, 0.16465269029140472, 0.31028568744659424, 0.07971116155385971, -0.3766745328903198, 0.13409405946731567, -0.15355801582336426, 0.12377221882343292, 0.024871034547686577, -0.2039150893688202, 0.025179855525493622, 0.21086780726909637, -0.08172522485256195, -0.3896349370479584, 0.23016245663166046, -0.4329809248447418, 0.10807197540998459, -0.2919597625732422, 0.054004039615392685, 0.27276861667633057, 0.059748273342847824, -0.01131609920412302, 0.18614491820335388, 0.01205676794052124, 0.08818070590496063, 0.24704869091510773, 0.09374845772981644, 0.12670601904392242, 0.25510427355766296, 0.277736097574234, -0.09263572096824646, 0.2941240966320038, -0.000599375634919852, -0.13509288430213928, -0.14421996474266052, 0.010552657768130302, -0.057952880859375, 0.14860934019088745, -0.023618463426828384, 0.06878168880939484, -0.1440521478652954, -0.08591825515031815, -0.00942460261285305, 0.021077731624245644, 0.043870486319065094, -0.06761989742517471, 0.29888489842414856, -0.12510859966278076, -0.04401561617851257, 0.12227949500083923, -0.0032420544885098934, -0.10495658218860626, -0.12094787508249283, -0.4230039119720459, 0.017348116263747215, -0.15100638568401337, 0.14464282989501953, 0.26985740661621094, -0.28264182806015015, 0.4717917740345001, -0.09085574746131897, -0.14310184121131897, -0.00546129047870636, 0.1562080681324005, 0.11936517059803009, -0.11497572064399719, 0.3126595914363861, 0.07207806408405304, 0.20439593493938446, 0.19717009365558624, -0.22557395696640015, 0.09353035688400269, -0.06224969029426575, -0.3156174123287201, -0.39069291949272156, -0.24787133932113647, 0.27469953894615173, -0.2598506212234497, 0.0476590059697628, -0.17600245773792267, -0.06734859198331833, 0.02205471508204937, -0.1317918747663498, -0.05097338184714317, -0.008843629620969296, -0.10574915260076523, -0.3027728796005249, 0.3504107892513275, 0.45630061626434326, -0.38411661982536316, -0.31240522861480713, 0.07431071251630783, -0.3012653589248657, -0.28679633140563965, 0.2582089304924011, -0.06908788532018661, 0.09036245942115784, -0.3982504904270172, 0.3396100699901581, 0.08690076321363449, -0.24574053287506104, -0.4413239061832428, 0.14087750017642975, -0.1561099886894226, -0.016853109002113342, 0.00046501620090566576, 0.08462253957986832, 0.041056446731090546, 0.16092146933078766, -0.011092834174633026, 0.0727052316069603, 0.12956982851028442, 0.11984610557556152, -0.29339203238487244, -0.2234238237142563, -0.10686898976564407, 0.17819149792194366, -0.01843520626425743, 0.0480174757540226, 0.08942993730306625, -0.0532664954662323, -0.072411447763443, -0.03469567745923996, 0.14210866391658783, 0.5428279042243958, 0.32406842708587646, 0.1759871542453766, 0.07108280062675476, -0.11121999472379684, -0.42366477847099304, 0.24059830605983734, 0.011083068326115608, 0.19942760467529297, -0.07274093478918076, -0.1040806919336319, -0.18065914511680603, -0.12004528939723969, -0.10434514284133911, -0.3273670971393585, 0.2714443504810333, 0.2450680136680603, 0.2367119938135147, 0.11927946656942368, -0.10004082322120667, 0.5312881469726562, 0.22796191275119781, 0.10427258163690567, -0.5642829537391663, 0.23931965231895447, -0.13725975155830383, -0.30614423751831055, 0.074714794754982, 0.03971496596932411, 0.03659271448850632, -0.20777209103107452, -0.08093790709972382, 0.5030692219734192, -0.25095269083976746, 0.15252546966075897, 0.2653540074825287, 0.10400377959012985, -0.0787997618317604, -0.20128116011619568, 0.04437385872006416, -0.13536247611045837, 0.07379786670207977, 0.02076237089931965, 0.12078245729207993, 0.0742134302854538, 0.04061756283044815, -0.05256009101867676, 0.007951192557811737, 0.027190592139959335, 0.1815287470817566, -0.18845680356025696, -0.10013549029827118, -0.14881688356399536, 0.1305885761976242, -0.2202731817960739, 0.23376473784446716, -0.01286255568265915, -0.15995748341083527, 0.4027630090713501, 0.5056481957435608, 0.15148381888866425, 0.17035852372646332, -0.007786700502038002, -0.34673529863357544, -0.09445483237504959, 0.04240599274635315, 0.3587122857570648, 0.5050245523452759, 0.2802165150642395, -0.002178267342969775, -0.018723268061876297, 0.08872128278017044, -0.0561167411506176, 0.10066413879394531, -0.2698323130607605, -0.05910247191786766, 0.05737112835049629, 0.15008671581745148, -0.11432860791683197, -0.36185625195503235, 0.16923624277114868, -0.18631048500537872, 0.20129652321338654, -0.14933079481124878, -0.11433003097772598, -0.224716916680336, -0.2197960466146469, 0.1550287902355194, 0.07930368185043335, -0.2900715172290802, -0.147125706076622, 0.09794417768716812, 0.07803811877965927, 0.0648430660367012, 0.17272131145000458, 0.1401343047618866, 0.11947178095579147, 0.023244857788085938, 0.04207765683531761, -0.2549951672554016, -0.19496920704841614, -0.16108566522598267, 0.13967977464199066, -0.11145736277103424, 0.05981115624308586, 0.3552449345588684, -0.24903713166713715, 0.21423722803592682, -0.40082308650016785, -0.31548166275024414, 0.0011929053580388427, -0.10156615823507309, 0.27720907330513, 0.34343644976615906, 0.48049396276474, -0.13628655672073364, -0.24632947146892548, 0.4448930323123932, -0.3510623574256897, -0.17933820188045502, -0.08744662255048752, 0.034121256321668625, -0.18518288433551788, -0.3269740045070648, -0.17200960218906403, -0.16259464621543884, -0.3666307330131531, 0.4123755097389221, -0.0911133661866188, -0.07027716934680939, -0.0009885113686323166, -0.025826938450336456, 0.1959027796983719, -0.26625511050224304, 0.018840176984667778, -0.4876942038536072, -0.5863963961601257, 0.23092065751552582, -0.3134087026119232, -0.3265422284603119, 0.16146962344646454, 0.17822419106960297, 0.23236119747161865, -0.3869134187698364, -0.616665244102478, -0.5167446136474609, -0.26178765296936035, 0.20290088653564453, -0.20047283172607422, 0.1902623474597931, 0.391396164894104, -0.03829071298241615, -0.17959825694561005, -0.1816890984773636, -0.4716686010360718, 0.23143047094345093, 0.011442047543823719, 0.21683543920516968, -0.23398122191429138, 0.39324840903282166, 0.046590324491262436, 0.44329845905303955, 0.01312513742595911, -0.04163758456707001, 0.32199835777282715, -0.08245906978845596, 0.456437349319458, -0.2917788624763489, -0.38312244415283203, 0.18578174710273743, -0.006061145104467869, 0.22609743475914001, 0.26813024282455444, 0.14435483515262604, 0.14058297872543335, -0.2879011631011963, 0.12220259010791779, -0.2376619428396225, -0.16557155549526215, -0.10878816246986389, 0.1454121172428131, -0.010436035692691803, 0.10996220260858536, 0.011975105851888657, -0.25767260789871216, -0.04264622554183006, 0.32685232162475586, 0.2962163984775543, 0.15990287065505981, 0.19038879871368408, -0.4206807315349579, -0.1156720519065857, -0.43706098198890686, 0.26579952239990234, -0.16007620096206665, -0.016081100329756737, -0.32908955216407776, -0.06535235047340393, 0.016333265230059624, -0.0760553628206253, 0.7218397259712219, -0.2210390567779541, -0.035433635115623474, -0.0009090334642678499, 0.028582124039530754, -0.30478185415267944, -0.12136025726795197, -0.02974105253815651, 0.06299517303705215, 0.4729384183883667, 0.37696152925491333, -0.3789207339286804, -0.1535688042640686, 0.11344801634550095, -0.052930861711502075, -0.16449116170406342, -0.14240753650665283, -0.3487764596939087, -0.19713422656059265, -0.2680313289165497, -0.13038375973701477, -0.0994105413556099, 0.03016849048435688, 0.21412724256515503, 0.07131937891244888, -0.07482890784740448, -0.24385154247283936, 0.00586328050121665, 0.20637986063957214, 0.43618494272232056, 0.07888548076152802, 0.20692336559295654, 0.21029357612133026, 0.33995717763900757, -0.12386298924684525, 0.4497172236442566, -0.18482406437397003, -0.055516574531793594, 0.21162021160125732, -0.07914010435342789, 0.05301918089389801, 0.10414575040340424, -0.08769098669290543, 0.14497144520282745, -0.03047138638794422, 0.41504016518592834, -0.08473711460828781, 0.11732129007577896, 0.2567462623119354, 0.13635815680027008, 0.09789609909057617, -0.05755792558193207, 0.17505386471748352, 0.001388485194183886, 0.04335138201713562, 0.16932019591331482, 0.264557421207428, -0.13970445096492767, 0.08990847319364548, -0.3566858768463135, 0.794888436794281, 0.007272146642208099, -0.05959168076515198, 0.16836173832416534, -0.2669600248336792, 0.48443278670310974, 0.030315466225147247, 0.038285426795482635, -0.22180424630641937, -0.3330695331096649, 0.10393237322568893, -0.007571007590740919, 0.07180777937173843, -0.001367699820548296, -0.2892474830150604, 0.1556921750307083, 0.09436488151550293, 0.1527905911207199, -0.23765422403812408, 0.2912341058254242, -0.0004338595608714968, -0.06802075356245041, -0.05179663375020027, 0.33986037969589233, -0.2662391662597656, 0.38848793506622314, -0.16270998120307922, -0.11618087440729141, 0.13284052908420563, -0.10301700234413147, -0.28311848640441895, -0.00237486744299531, -0.3912833034992218, 0.16747403144836426, 0.21331892907619476, 0.014537639915943146, -0.17102763056755066, 0.005038497503846884, 0.31811216473579407, 0.1806618571281433, -0.3579663634300232, 0.1715010553598404, 0.09421396255493164, -0.1630604863166809, -0.17370913922786713, 0.11599946767091751, 0.19633901119232178, -0.11181116849184036, -0.27261316776275635, 0.037825893610715866, -0.18864312767982483, -0.25167331099510193, -0.20216543972492218, -0.007931690663099289, -0.14178109169006348, -0.1820686012506485, -0.20654447376728058, 0.1918257176876068, 0.07828191667795181, -0.15520253777503967, 0.21925035119056702, 0.2732064127922058, -0.02002369426190853, -0.0007664443110115826, 0.0992552638053894, -0.23416243493556976, -0.1573440432548523, 0.5235732197761536, -0.29108819365501404, -0.09910804033279419, 0.32895565032958984, 0.055047452449798584, -0.17448729276657104, -0.23695239424705505, -0.14595910906791687, 0.07694247364997864, -0.3101460039615631, 0.01910429820418358, 0.07290695607662201, -0.2128572165966034, 0.24150098860263824, -0.06433090567588806, 0.21720270812511444, -0.1466229408979416, 0.019026553258299828, -0.2803138196468353, -0.293901652097702, 0.17897938191890717, 0.018782692030072212, 0.21109840273857117, -0.011530499905347824, 0.07736603170633316, 0.03629373759031296, 0.20264217257499695, -0.4853777289390564, 0.18177461624145508, -0.14829078316688538, 0.01332058571279049, 0.42206433415412903, -0.28945282101631165, 0.182763934135437, -0.15726500749588013, 0.26357510685920715, 0.10097655653953552, -0.5141136646270752, -0.3665655851364136, -0.013536907732486725, 0.0669628232717514, -0.21059103310108185, 0.01882646419107914, -0.06436268985271454, -0.0037205019034445286, -0.05213622748851776, -0.04270939156413078, 0.244648277759552, 0.0344352126121521, 0.014183283783495426, 0.15152747929096222, 0.08938650786876678, -0.031103892251849174, 0.2417570799589157, 0.0825498104095459, 0.05484166741371155, 0.08445563912391663, -0.08326093852519989, -0.035124942660331726, -0.22913743555545807, 0.03786449134349823, 0.049103256314992905, 0.11351121962070465, 0.029933737590909004, 0.2438948154449463, 0.042887330055236816, -0.272418737411499, -0.2917989194393158, -0.05453934893012047, 0.3474993407726288, 0.0014478800585493445, -0.08829713612794876, 0.04740312322974205, 0.08239921927452087, 0.3787726163864136, -0.26252809166908264, 0.06941273808479309, 0.26507410407066345, 0.013172473758459091, 0.18297745287418365, 0.10564892739057541, 0.09618866443634033, 0.02418707124888897, 0.15396742522716522, 0.2842825651168823, 0.5918828845024109, -0.24184207618236542, -0.06851357966661453, -0.0554468110203743, -0.16248469054698944, -0.2928982377052307, 0.24251173436641693, -0.0054920995607972145, 0.06630702316761017, 0.17245078086853027, -0.0895998477935791, 0.17817212641239166, 0.11484069377183914, 0.25519299507141113, 0.0139946099370718, -0.21927720308303833, -0.037960004061460495, 0.18454807996749878, -0.10687576234340668, 0.04477529600262642, -0.06146622449159622, 0.6470044255256653, -0.4179856479167938, -0.36418837308883667, -0.21130652725696564, 0.28030598163604736, -0.2529313266277313, -0.11899571865797043, 0.199002206325531, -0.06411674618721008, -0.02936222217977047, 0.060433562844991684, 0.13640493154525757, -0.07471837848424911, 0.3099993169307709, -0.005131872836500406, 0.014546708203852177, -0.18431855738162994, -0.2600735127925873, 0.12810905277729034, 0.09534496814012527, -0.02132045291364193, 0.32332488894462585, 0.05608271062374115, -0.2279420793056488, -0.01288298424333334, 0.5119287371635437, 0.34392088651657104, 0.10319109261035919, -0.00479450449347496, 0.27666226029396057, 0.04995381087064743, -0.1356281340122223, -0.24103312194347382, 0.21707803010940552, 0.01725550927221775, -0.26787713170051575, 0.11446061730384827, 0.29142603278160095, -0.2709864377975464, -0.031478866934776306, -0.2785281836986542, 0.24577021598815918, -0.03695215657353401, 0.1055263802409172, -0.29384320974349976, -0.17374183237552643, -0.1535029411315918, 0.016271943226456642, -0.4971679151058197, -0.09212911874055862, 0.1305258572101593, -0.06435523927211761, 0.08725953102111816, -0.3384013772010803, 0.17064453661441803, -0.12498283386230469, 0.5146690607070923, 0.40269747376441956, 0.0658305436372757, -0.04377441108226776, -0.27276280522346497, -0.6360181570053101, 0.19229000806808472, -0.002703897887840867, -0.02236967906355858, -0.25652357935905457, 0.28796687722206116, 0.02659652754664421, -0.045313410460948944, 0.2262430638074875, 0.23405064642429352, 0.05070413649082184, -0.14863428473472595, -0.4697647988796234, 0.09556569904088974, 0.0967521145939827, 0.01691429316997528, 0.34383803606033325, -0.20059089362621307, 0.05095934867858887, 0.011902954429388046, 0.2370920330286026, 0.037029072642326355, 0.06645490974187851, -0.10404351353645325, -0.1123717725276947, 0.5082690715789795, 0.10789599269628525, 0.06724898517131805, -0.039784908294677734, -0.10350213199853897, -0.13269081711769104, -0.39737996459007263, -0.04321200028061867, 0.04391920939087868, 0.1358220875263214, 0.4293409287929535, -0.029446404427289963, -0.137738898396492, -0.24687664210796356, 0.15714000165462494, 0.16994568705558777, 0.24346202611923218, -0.2193082571029663, 0.06721919775009155, 0.08227192610502243, 0.07176387310028076, 0.1030416265130043, 0.22210265696048737, -0.01755639724433422, 0.10068164020776749, -0.20252181589603424, -0.15911580622196198, 0.6115164756774902, -0.17844074964523315, -0.05534971505403519, 0.06102219223976135, 0.27732053399086, 0.2382975071668625, -0.3452547490596771, -0.5500257015228271, 0.09080877155065536, 0.19098539650440216, 0.12308856099843979, -0.19961708784103394, 0.3635503053665161, -0.3064097464084625, 0.1511595994234085, 0.08295445144176483, 0.09983956813812256, 0.27835914492607117, -0.13046114146709442, 0.19295522570610046, -0.053024377673864365 ]
https://github.com/huggingface/datasets/issues/2722
Missing cache file
Hi ! Not sure why this file was missing, but yes the way to fix this is to delete the sst2 directory and to reload the dataset
Strangely missing cache file after I restart my program again. `glue_dataset = datasets.load_dataset('glue', 'sst2')` `FileNotFoundError: [Errno 2] No such file or directory: /Users/chris/.cache/huggingface/datasets/glue/sst2/1.0.0/dacbe3125aa31d7f70367a07a8a9e72a5a0bfeb5fc42e75c9db75b96d6053ad/dataset_info.json'`
27
Missing cache file Strangely missing cache file after I restart my program again. `glue_dataset = datasets.load_dataset('glue', 'sst2')` `FileNotFoundError: [Errno 2] No such file or directory: /Users/chris/.cache/huggingface/datasets/glue/sst2/1.0.0/dacbe3125aa31d7f70367a07a8a9e72a5a0bfeb5fc42e75c9db75b96d6053ad/dataset_info.json'` Hi ! Not sure why this file was missing, but yes the way to fix this is to delete the sst2 directory and to reload the dataset
[ -0.09679493308067322, -0.21156682074069977, -0.0807494968175888, 0.19621092081069946, 0.3262525498867035, 0.23698396980762482, 0.014585924334824085, 0.2186020463705063, 0.3042122423648834, 0.024730361998081207, 0.035960711538791656, 0.032418254762887955, 0.06950760632753372, 0.025483403354883194, 0.1852317750453949, -0.18397094309329987, -0.051998965442180634, 0.24471351504325867, -0.25264260172843933, 0.11344904452562332, 0.026239827275276184, 0.5897666215896606, -0.016213959082961082, -0.05348435789346695, -0.40702947974205017, 0.06377952545881271, -0.10672595351934433, 0.38643863797187805, 0.08373858034610748, -0.3092552721500397, 0.30945926904678345, -0.12232442945241928, 0.16652502119541168, 0.23787368834018707, -0.00010695545643102378, -0.017267189919948578, 0.1097329631447792, -0.07381394505500793, -0.200308158993721, 0.19364076852798462, -0.17556236684322357, -0.21217696368694305, -0.04314923286437988, -0.16831424832344055, -0.3127230703830719, 0.20771372318267822, 0.20801769196987152, -0.3602096438407898, 0.46698278188705444, -0.07798521965742111, 0.3034726083278656, 0.0734519511461258, 0.18703879415988922, -0.22531750798225403, 0.09968412667512894, -0.06471702456474304, 0.01799984648823738, 0.1627907156944275, 0.028018629178404808, -0.08813352882862091, 0.22781161963939667, 0.5137568712234497, 0.01912684552371502, 0.06689469516277313, 0.32527557015419006, 0.0058025480248034, -0.214866504073143, -0.11751469224691391, 0.4294658303260803, 0.02524636685848236, 0.5012627840042114, -0.2845914959907532, -0.2556747496128082, -0.14776021242141724, 0.060787368565797806, -0.037620604038238525, 0.13062703609466553, 0.03820505365729332, 0.2402045875787735, 0.3680466413497925, 0.15736506879329681, -0.49636250734329224, 0.17827659845352173, -0.16717275977134705, 0.24006377160549164, -0.025219175964593887, -0.20897263288497925, 0.025738278403878212, -0.05234913527965546, 0.06021839752793312, -0.4202081263065338, 0.09361790865659714, -0.4452362358570099, 0.22937633097171783, -0.3384401500225067, 0.01771283708512783, 0.1564030647277832, 0.05866952985525131, -0.067271389067173, 0.1756926029920578, -0.009615848772227764, -0.017815139144659042, 0.18466204404830933, 0.00505178514868021, 0.11658044159412384, 0.34755828976631165, 0.3002183437347412, -0.060856323689222336, 0.2772582173347473, -0.03443178907036781, -0.11260537058115005, -0.21169322729110718, -0.02676696516573429, -0.04452024772763252, 0.3394462466239929, 0.07092508673667908, 0.04714680835604668, -0.1273616999387741, -0.07488276064395905, 0.005247003864496946, 0.009482181631028652, 0.04625727981328964, -0.017361614853143692, 0.22797109186649323, -0.1619676798582077, 0.06697351485490799, 0.07527479529380798, -0.11207703500986099, -0.1022968590259552, -0.2396530956029892, -0.4385360777378082, 0.08573781698942184, -0.14162981510162354, 0.26058703660964966, 0.2251192331314087, -0.35293471813201904, 0.519439697265625, -0.1544637233018875, -0.13394571840763092, -0.06719186156988144, 0.17338846623897552, 0.016441771760582924, -0.11129467934370041, 0.3600178062915802, -0.007032245397567749, 0.2911079227924347, 0.24139177799224854, -0.20934414863586426, 0.03292836248874664, 0.0017528746975585818, -0.4485355019569397, -0.48719531297683716, -0.2713921368122101, 0.20584727823734283, -0.3041183054447174, 0.11930744349956512, -0.2237885445356369, -0.13245178759098053, 0.11007247120141983, -0.3623005747795105, 0.06652826070785522, -0.03160805627703667, -0.18146279454231262, -0.39800724387168884, 0.3187706768512726, 0.5888072848320007, -0.4055526852607727, -0.3779483139514923, -0.0020709706004709005, -0.2126721292734146, -0.3125273287296295, 0.2282433807849884, -0.0836510881781578, 0.1937859058380127, -0.5655229091644287, 0.32826900482177734, 0.24218244850635529, -0.4067055583000183, -0.5046396255493164, 0.17634516954421997, -0.0761454850435257, 0.024231690913438797, 0.038875143975019455, 0.18627476692199707, -0.04853934794664383, 0.09085129201412201, -0.00686414772644639, -0.0596248023211956, 0.09114376455545425, 0.07389016449451447, -0.21609871089458466, -0.1852942556142807, -0.019468063488602638, 0.17196105420589447, 0.10141386836767197, 0.06008555740118027, 0.1387094110250473, -0.08658869564533234, -0.105998694896698, 0.03133756294846535, 0.16042441129684448, 0.6651592254638672, 0.2728140354156494, 0.1942806839942932, 0.12406159192323685, -0.15081866085529327, -0.48160508275032043, 0.3217642605304718, 0.01861070841550827, -0.05824264511466026, -0.1431978940963745, -0.12471075356006622, -0.021040411666035652, -0.20055019855499268, -0.1294279843568802, -0.4022963345050812, 0.17124691605567932, 0.14583255350589752, 0.2671714425086975, 0.16897058486938477, -0.0652439147233963, 0.642288327217102, 0.18650490045547485, 0.07551506161689758, -0.5425466299057007, 0.24785912036895752, -0.003078807843849063, -0.2368045151233673, -0.03969406709074974, 0.1197550967335701, 0.09181876480579376, -0.16839703917503357, -0.12286309897899628, 0.4949468970298767, -0.22939643263816833, 0.049852751195430756, 0.36630362272262573, 0.10164351016283035, -0.1042599231004715, -0.1374369114637375, 0.03605612739920616, -0.15738774836063385, 0.12170335650444031, -0.014661413617432117, 0.11883482336997986, -0.020611027255654335, 0.05812535434961319, -0.10986902564764023, -0.0893905758857727, 0.014416241087019444, 0.2158408910036087, -0.19676530361175537, -0.1474703848361969, -0.1328488141298294, 0.21661671996116638, -0.2527228593826294, 0.2928241193294525, 0.027248671278357506, -0.06466429680585861, 0.3660411238670349, 0.5254279375076294, 0.10125964134931564, 0.15091191232204437, -0.041498832404613495, -0.3780706226825714, -0.05768534541130066, 0.01970617286860943, 0.37175872921943665, 0.6975573301315308, 0.2514446973800659, -0.03569793701171875, -0.12420278787612915, 0.17769229412078857, 0.011953095905482769, 0.06130988523364067, -0.2530560791492462, -0.036947671324014664, 0.1276063472032547, 0.12229101359844208, 0.031881459057331085, -0.20214544236660004, 0.08581765741109848, -0.11579872667789459, 0.15629513561725616, -0.08688525855541229, -0.04789462313055992, -0.24927367269992828, -0.27354440093040466, 0.1308378130197525, 0.1976599395275116, -0.22532328963279724, -0.10981953889131546, 0.03443953022360802, -0.05061224102973938, 0.23515665531158447, 0.12277770042419434, 0.03378380835056305, 0.13835759460926056, 0.055419713258743286, -0.09622151404619217, -0.2523565888404846, -0.16699738800525665, -0.18826618790626526, 0.03505520150065422, -0.13206157088279724, -0.05662526190280914, 0.33501631021499634, -0.32258298993110657, 0.20252104103565216, -0.5201033353805542, -0.2556636333465576, 0.015361713245511055, -0.005426821764558554, 0.19948889315128326, 0.38507702946662903, 0.3450615406036377, -0.1408618986606598, -0.1468839794397354, 0.40200474858283997, -0.3022860288619995, -0.14556407928466797, -0.03853139281272888, 0.0002110732748406008, -0.21065527200698853, -0.2796364724636078, -0.1135791540145874, -0.23546156287193298, -0.2539643943309784, 0.29463785886764526, -0.17743681371212006, -0.13458028435707092, -0.09570255130529404, -0.15386538207530975, 0.16463178396224976, -0.2699984014034271, -0.026416320353746414, -0.4716522991657257, -0.6318149566650391, 0.29395779967308044, -0.22952473163604736, -0.22315160930156708, 0.2445828765630722, 0.05899510160088539, 0.3146016001701355, -0.3103458285331726, -0.6782832741737366, -0.4436456561088562, -0.22282658517360687, 0.2856236696243286, -0.4130554497241974, 0.1635395586490631, 0.48083871603012085, -0.14880383014678955, -0.10701567679643631, -0.14147286117076874, -0.4869026243686676, 0.08948911726474762, 0.0037860418669879436, 0.3139517605304718, -0.2787528336048126, 0.47861286997795105, 0.0733763724565506, 0.572989284992218, 0.05306070297956467, 0.029859744012355804, 0.27969303727149963, 0.017131973057985306, 0.5509272217750549, -0.26490461826324463, -0.302659809589386, 0.25238627195358276, -0.06244256719946861, 0.16339197754859924, 0.21036981046199799, 0.18107418715953827, 0.14414657652378082, -0.2752344012260437, 0.040038496255874634, -0.3271702826023102, -0.08457137644290924, -0.10914797335863113, 0.03892984986305237, 0.03675975650548935, 0.1565859168767929, -0.044706471264362335, -0.3745787441730499, -0.1370154470205307, 0.32296016812324524, 0.45884057879447937, 0.2946391701698303, 0.26856955885887146, -0.4339432418346405, -0.2006480097770691, -0.3611644208431244, 0.23750649392604828, -0.03766826167702675, -0.032162491232156754, -0.24625521898269653, 0.04612398520112038, -0.05428990721702576, 0.07071089744567871, 0.8077049255371094, -0.21465861797332764, -0.05514336749911308, 0.014453248120844364, 0.0718352273106575, -0.21788528561592102, -0.19470790028572083, 0.17276768386363983, 0.292132169008255, 0.4602988660335541, 0.3915627896785736, -0.26785314083099365, -0.21936482191085815, 0.16354483366012573, -0.01715724542737007, -0.2304360419511795, -0.2725434899330139, -0.3794240653514862, -0.03904661536216736, -0.07978096604347229, -0.25829118490219116, -0.053567610681056976, -0.04324903339147568, 0.2502157688140869, 0.09689567983150482, -0.09235254675149918, -0.200929656624794, -0.10868652909994125, 0.026712296530604362, 0.4955199360847473, 0.02526790089905262, 0.1935303658246994, 0.1733485907316208, 0.3421192467212677, -0.11405353993177414, 0.35779905319213867, -0.2585393190383911, -0.11328104138374329, 0.3245093822479248, -0.15983349084854126, 0.0741029605269432, 0.08618348091840744, -0.19930367171764374, 0.16364532709121704, 0.02182803675532341, 0.3937488794326782, -0.0986723005771637, -0.04385403171181679, 0.19097678363323212, 0.17915411293506622, -0.029738271608948708, -0.14867191016674042, 0.13551530241966248, 0.11216609179973602, 0.09184706211090088, 0.29191601276397705, 0.127893328666687, -0.17803190648555756, -0.002083592116832733, -0.41146212816238403, 0.730328381061554, 0.06027757748961449, 0.023478535935282707, 0.047157708555459976, -0.24163681268692017, 0.6816246509552002, -0.11252798140048981, 0.1529458910226822, -0.15826138854026794, -0.40883371233940125, 0.06093110516667366, -0.06391595304012299, 0.1055733785033226, 0.033670440316200256, -0.24753813445568085, 0.3832395374774933, 0.1345040202140808, 0.14397753775119781, -0.16518408060073853, 0.21332192420959473, 0.04268362373113632, -0.009613229893147945, 0.05589492246508598, 0.23825830221176147, -0.34722447395324707, 0.42958778142929077, -0.21567821502685547, -0.00958587508648634, 0.16748405992984772, -0.08256661891937256, -0.3599322438240051, -0.046516209840774536, -0.42651262879371643, 0.24851012229919434, 0.2785872220993042, -0.06686435639858246, -0.1309327632188797, 0.08683784306049347, 0.35560935735702515, 0.1657102257013321, -0.32901066541671753, 0.22401276230812073, 0.08498647809028625, -0.06575464457273483, -0.21965844929218292, 0.031746022403240204, 0.2520679831504822, -0.05530965328216553, -0.15715891122817993, 0.09816896915435791, -0.3675019145011902, -0.3502759635448456, -0.14981594681739807, -0.003848746884614229, -0.11485708504915237, -0.16446883976459503, -0.2608119547367096, 0.16858325898647308, 0.2005792260169983, -0.13293230533599854, 0.1327246129512787, 0.3589593470096588, -0.00837178435176611, -0.07440917938947678, -0.031070543453097343, -0.2876269221305847, -0.13632658123970032, 0.5017422437667847, -0.2428726702928543, -0.23379647731781006, 0.37614813446998596, -0.048000507056713104, -0.20095744729042053, -0.16556327044963837, -0.09986673295497894, 0.008130405098199844, -0.33451923727989197, -0.05080271512269974, 0.03337608650326729, -0.0201607383787632, 0.23242972791194916, -0.3288286626338959, 0.23378929495811462, -0.14228126406669617, 0.040584746748209, -0.4315919280052185, -0.22890180349349976, 0.15644584596157074, -0.014113623648881912, 0.12375670671463013, 0.01886652410030365, -0.02200279012322426, 0.043559614568948746, 0.18356122076511383, -0.3920586407184601, 0.24033556878566742, -0.15127260982990265, 0.016413407400250435, 0.37805911898612976, -0.1453932225704193, 0.1978181004524231, -0.20911988615989685, 0.18783366680145264, -0.007013821974396706, -0.41655799746513367, -0.2812809646129608, 0.039988208562135696, 0.10889740288257599, -0.3066790997982025, 0.11901029944419861, -0.10237015038728714, -0.01673666574060917, 0.04880225658416748, -0.04143723472952843, 0.2671300768852234, 0.08534491807222366, 0.06661105901002884, 0.17310971021652222, 0.05592918395996094, -0.05336780473589897, 0.05540965870022774, 0.17052271962165833, -0.06029287725687027, 0.07763524353504181, 0.008526799269020557, 0.03909311071038246, -0.12149293720722198, 0.13477256894111633, -0.05027749761939049, -0.013681658543646336, -0.13897302746772766, 0.11482566595077515, 0.06751254945993423, -0.41565677523612976, -0.295952707529068, 0.022116295993328094, 0.22578656673431396, -0.1327262967824936, -0.19992032647132874, 0.10937085002660751, 0.12445853650569916, 0.2931167483329773, -0.23060990869998932, 0.05545814707875252, 0.4106411337852478, 0.14736272394657135, 0.07640103995800018, 0.05399482697248459, 0.09772814810276031, -0.013367364183068275, 0.30589744448661804, 0.28997090458869934, 0.6977531909942627, -0.310609370470047, 0.0015329777961596847, -0.09254052489995956, 0.03393011540174484, -0.20715917646884918, 0.22906294465065002, 0.04742904007434845, -0.0009529925300739706, 0.2722172141075134, 0.015616272576153278, 0.17892864346504211, 0.20548716187477112, 0.3731604814529419, -0.11007267236709595, -0.4000130593776703, -0.13722087442874908, 0.20102818310260773, -0.24704736471176147, -0.009015210904181004, -0.07382694631814957, 0.6431601047515869, -0.379841685295105, -0.2961474061012268, -0.1248713955283165, 0.18609081208705902, -0.29126670956611633, -0.015075367875397205, 0.3056093752384186, 0.000054181662562768906, 0.11097901314496994, 0.04606950655579567, 0.1823924481868744, 0.03231639787554741, 0.25380170345306396, 0.052085064351558685, -0.07659711688756943, -0.09458284825086594, -0.20463813841342926, 0.2194264680147171, 0.1017228364944458, -0.03813781961798668, 0.24791428446769714, 0.06056743487715721, -0.309112012386322, -0.0519675612449646, 0.5426909327507019, 0.2848139703273773, 0.07306797802448273, 0.007485229521989822, 0.12655487656593323, 0.1710323691368103, -0.12928442656993866, -0.18717467784881592, 0.21795012056827545, 0.06744656711816788, -0.30112573504447937, -0.05857177823781967, 0.25547757744789124, -0.16151191294193268, 0.15055181086063385, -0.2555469870567322, 0.25177472829818726, -0.14359624683856964, 0.060067351907491684, -0.37529200315475464, -0.1392558515071869, -0.17222368717193604, 0.21595174074172974, -0.47291693091392517, -0.09143034368753433, 0.23566414415836334, -0.01407594420015812, -0.013921222649514675, -0.27241992950439453, 0.1286889910697937, -0.15067674219608307, 0.32116782665252686, 0.5002918839454651, 0.03378324583172798, -0.1693238466978073, -0.219538152217865, -0.5923277139663696, 0.24283085763454437, 0.027228187769651413, 0.093119777739048, -0.19424082338809967, 0.2648684084415436, -0.029921196401119232, -0.08640413731336594, 0.2662324011325836, 0.1924622803926468, 0.08036859333515167, -0.09203959256410599, -0.4781438112258911, -0.056629762053489685, 0.11737333983182907, 0.029378898441791534, 0.2845117747783661, -0.23942728340625763, 0.05625765770673752, 0.1328882873058319, 0.15100887417793274, 0.008560714311897755, 0.020263729616999626, -0.08011851459741592, 0.025763629004359245, 0.5730304718017578, 0.118707574903965, 0.06001025065779686, 0.04952544718980789, -0.12369806319475174, -0.033217500895261765, -0.3297729194164276, 0.1130044236779213, 0.07611044496297836, 0.09475068747997284, 0.3451063632965088, -0.24469131231307983, -0.11194700002670288, -0.273761510848999, 0.1665123999118805, 0.13546748459339142, 0.28404560685157776, -0.32471197843551636, 0.07680903375148773, -0.020788094028830528, 0.19274964928627014, 0.19934777915477753, 0.18234510719776154, -0.0981680378317833, 0.10807887464761734, -0.13855479657649994, 0.062051814049482346, 0.5860342383384705, -0.2508490979671478, 0.04632042348384857, -0.05261443555355072, 0.33190828561782837, 0.27831149101257324, -0.2728857696056366, -0.36916616559028625, 0.010499747470021248, 0.3397524058818817, 0.1677309274673462, -0.23063133656978607, 0.31440600752830505, -0.31401750445365906, 0.23891939222812653, 0.14132891595363617, 0.04553661867976189, 0.16196009516716003, -0.11549808084964752, 0.14303050935268402, -0.1168242022395134 ]
https://github.com/huggingface/datasets/issues/2716
Calling shuffle on IterableDataset will disable batching in case any functions were mapped
Hi :) Good catch ! Feel free to open a PR if you want to contribute, this would be very welcome ;)
When using dataset in streaming mode, if one applies `shuffle` method on the dataset and `map` method for which `batched=True` than the batching operation will not happen, instead `batched` will be set to `False` I did RCA on the dataset codebase, the problem is emerging from [this line of code](https://github.com/huggingface/datasets/blob/d25a0bf94d9f9a9aa6cabdf5b450b9c327d19729/src/datasets/iterable_dataset.py#L197) here as it is `self.ex_iterable.shuffle_data_sources(seed), function=self.function, batch_size=self.batch_size`, as one can see it is missing batched argument, which means that the iterator fallsback to default constructor value, which in this case is `False`. To remedy the problem we can change this line to `self.ex_iterable.shuffle_data_sources(seed), function=self.function, batched=self.batched, batch_size=self.batch_size`
22
Calling shuffle on IterableDataset will disable batching in case any functions were mapped When using dataset in streaming mode, if one applies `shuffle` method on the dataset and `map` method for which `batched=True` than the batching operation will not happen, instead `batched` will be set to `False` I did RCA on the dataset codebase, the problem is emerging from [this line of code](https://github.com/huggingface/datasets/blob/d25a0bf94d9f9a9aa6cabdf5b450b9c327d19729/src/datasets/iterable_dataset.py#L197) here as it is `self.ex_iterable.shuffle_data_sources(seed), function=self.function, batch_size=self.batch_size`, as one can see it is missing batched argument, which means that the iterator fallsback to default constructor value, which in this case is `False`. To remedy the problem we can change this line to `self.ex_iterable.shuffle_data_sources(seed), function=self.function, batched=self.batched, batch_size=self.batch_size` Hi :) Good catch ! Feel free to open a PR if you want to contribute, this would be very welcome ;)
[ -0.40982192754745483, -0.2538073658943176, 0.016455499455332756, -0.031161433085799217, 0.3398855924606323, -0.057971563190221786, 0.302308052778244, 0.06744381785392761, -0.21752527356147766, 0.3773573935031891, -0.23105016350746155, 0.2912558913230896, -0.1922607272863388, 0.2657683193683624, -0.09424518793821335, 0.1088109239935875, 0.07740228623151779, 0.08244466036558151, -0.4071669578552246, -0.025976428762078285, -0.22573477029800415, -0.09344636648893356, -0.5538960099220276, -0.24943047761917114, -0.03874240815639496, -0.12912926077842712, 0.08400117605924606, 0.06907317042350769, -0.24990873038768768, -0.10485874861478806, 0.11572207510471344, 0.546690046787262, -0.06661651283502579, 0.4911215007305145, -0.00010466053936397657, -0.04668639227747917, 0.2209417223930359, -0.14789539575576782, -0.1971087008714676, -0.016234982758760452, -0.22870174050331116, 0.3616315424442291, -0.1729200780391693, -0.047090377658605576, -0.11057844758033752, -0.33269450068473816, 0.017909331247210503, -0.3529170751571655, 0.10909862816333771, -0.06073784455657005, 0.25048211216926575, 0.15205197036266327, -0.18338513374328613, -0.011095904745161533, 0.3300374746322632, 0.1602013260126114, -0.18874017894268036, 0.2795748710632324, 0.30212050676345825, 0.12140034884214401, -0.02153097465634346, 0.33969584107398987, -0.04575887694954872, 0.09730740636587143, 0.2876345217227936, -0.12215486913919449, -0.07569077610969543, -0.405592679977417, 0.1629074215888977, 0.1327943354845047, 0.4041191339492798, -0.3270386755466461, -0.23384498059749603, -0.37282732129096985, 0.0683642104268074, -0.24945402145385742, 0.12981577217578888, -0.08261609822511673, -0.12513922154903412, -0.11274474114179611, -0.42950960993766785, 0.127516508102417, -0.01358423475176096, -0.03393286466598511, 0.5006253123283386, 0.42253395915031433, -0.1381254941225052, 0.1263805329799652, 0.2588517963886261, -0.20663130283355713, 0.4659806489944458, -0.08024714887142181, -0.21356070041656494, 0.33685627579689026, -0.40753185749053955, -0.1301375776529312, 0.17357954382896423, 0.23875170946121216, 0.34608519077301025, 0.04461769759654999, 0.21715699136257172, 0.22946199774742126, 0.15715010464191437, 0.0546242892742157, 0.4331029951572418, 0.06278789788484573, -0.06883638352155685, 0.04540472477674484, 0.15749619901180267, 0.30581438541412354, 0.023727890104055405, -0.02492496185004711, 0.2888554334640503, -0.08608558028936386, 0.0023556260857731104, -0.056730180978775024, 0.1077042743563652, -0.16698050498962402, -0.09526278078556061, -0.3858788013458252, -0.176787868142128, -0.15378759801387787, 0.2711009085178375, 0.388503760099411, 0.05948429927229881, 0.015489490702748299, -0.3158889412879944, 0.2343374341726303, 0.0019726818427443504, 0.13454245030879974, -0.26322996616363525, -0.24805517494678497, -0.23270227015018463, 0.09058185666799545, 0.23690690100193024, -0.4453912675380707, 0.34949207305908203, 0.32585111260414124, 0.07712164521217346, 0.09185806661844254, 0.10895098745822906, -0.1570499688386917, 0.287288099527359, 0.09947797656059265, 0.0974389985203743, 0.05698303133249283, 0.12129992991685867, 0.1756841093301773, 0.07623846083879471, 0.08800662308931351, -0.05089700222015381, -0.07897583395242691, 0.40252524614334106, 0.2578459084033966, -0.18700283765792847, -0.09086290001869202, -0.5048838257789612, 0.11811191588640213, 0.03824307769536972, -0.3109929859638214, 0.14446347951889038, -0.2712101638317108, 0.0033718727063387632, -0.2548607289791107, 0.15076370537281036, 0.1824270635843277, 0.0524110421538353, -0.09079892188310623, 0.03473493456840515, -0.25879228115081787, 0.6150112748146057, 0.4008065462112427, -0.21168795228004456, 0.04171435907483101, -0.2732912302017212, 0.07794066518545151, 0.131303608417511, 0.11648903787136078, -0.3975089192390442, 0.1741446852684021, -0.12211598455905914, 0.4353640377521515, 0.0598929189145565, 0.042874448001384735, 0.3480427861213684, -0.1915024220943451, 0.2754982113838196, 0.26480236649513245, -0.25412020087242126, 0.29648709297180176, -0.19502907991409302, -0.07633275538682938, -0.03204481676220894, 0.09391365200281143, -0.20649519562721252, 0.34019735455513, 0.12303750962018967, -0.18032744526863098, 0.31682685017585754, -0.26744815707206726, 0.13477671146392822, -0.02287139929831028, 0.28250834345817566, 0.09613481163978577, -0.01718098856508732, -0.17783327400684357, -0.24382886290550232, 0.09893402457237244, 0.16356855630874634, -0.06199502944946289, -0.003112147096544504, -0.31480076909065247, 0.16152526438236237, -0.11590171605348587, -0.48904940485954285, -0.2133389562368393, 0.2111131250858307, 0.22683918476104736, 0.044798169285058975, -0.15611600875854492, -0.1767096370458603, 0.07186058908700943, -0.292474627494812, -0.19436249136924744, -0.37701675295829773, -0.0943283960223198, 0.11367511004209518, -0.22657249867916107, 0.15984143316745758, 0.13840006291866302, 0.12026361376047134, -0.18165874481201172, -0.08545271307229996, 0.4552501440048218, -0.02041013166308403, 0.022480037063360214, -0.04716142266988754, 0.24538540840148926, -0.10958820581436157, 0.0012364648282527924, -0.12778979539871216, -0.07038240879774094, 0.22009973227977753, -0.18373461067676544, -0.05832405015826225, 0.4448705315589905, -0.45442742109298706, 0.24878083169460297, 0.23268470168113708, -0.275116890668869, 0.4183250367641449, 0.2991344928741455, -0.20195919275283813, -0.10131172835826874, 0.06431850790977478, -0.1856445074081421, 0.19164860248565674, 0.022536473348736763, -0.38275474309921265, 0.07535725831985474, 0.4850608706474304, 0.1322098821401596, -0.10927161574363708, -0.083076611161232, -0.11397253721952438, -0.2782622277736664, -0.01910397969186306, 0.33516308665275574, 0.40679407119750977, 0.23896323144435883, 0.20843106508255005, 0.10732928663492203, 0.19761675596237183, -0.18797485530376434, 0.12293277680873871, 0.011179645545780659, 0.17232757806777954, 0.23125958442687988, 0.18283037841320038, -0.12189171463251114, -0.4867268204689026, -0.35578322410583496, 0.08856938779354095, 0.3144856095314026, -0.21189109981060028, -0.2529521584510803, -0.16681887209415436, -0.21224963665008545, -0.1276167780160904, -0.21033544838428497, -0.08317675441503525, -0.220365971326828, 0.13692301511764526, 0.7543538808822632, -0.1674433946609497, 0.2527230978012085, 0.31510934233665466, 0.14116226136684418, -0.05606595054268837, -0.09979818761348724, -0.14668656885623932, -0.02365182712674141, -0.008536376990377903, 0.19708767533302307, 0.15754257142543793, -0.14271071553230286, 0.3563770353794098, -0.00003448152347118594, -0.3080058693885803, -0.30346232652664185, 0.13079163432121277, 0.08780030161142349, -0.19110676646232605, 0.015884658321738243, 0.046646226197481155, 0.18439526855945587, -0.010060363449156284, -0.25694623589515686, 0.20348818600177765, -0.4171118140220642, -0.05132784694433212, 0.06851330399513245, -0.1702583134174347, -0.08840387314558029, -0.2802341878414154, -0.0983252227306366, -0.14165125787258148, -0.3688465654850006, 0.2363343983888626, -0.11345618218183517, 0.03889951854944229, 0.25806179642677307, -0.004246665630489588, -0.11644154042005539, -0.19471904635429382, -0.2532932758331299, -0.3594522476196289, -0.6516538858413696, 0.010426481254398823, -0.20069541037082672, -0.25272583961486816, 0.03174437955021858, 0.1986941397190094, 0.17801795899868011, 0.6395936608314514, -0.03225596994161606, 0.1754576414823532, -0.10564950108528137, 0.07817932963371277, -0.0048311990685760975, 0.11123224347829819, 0.4022187292575836, 0.016164470463991165, -0.10084455460309982, -0.20056317746639252, -0.03008224256336689, 0.11220072954893112, 0.03114733286201954, 0.2318636029958725, 0.18799428641796112, 0.45610570907592773, -0.05501709505915642, 0.9363189935684204, 0.14279133081436157, 0.12082701921463013, 0.3089771568775177, -0.04061305150389671, 0.29493677616119385, -0.3398705720901489, -0.1727132797241211, 0.4189912974834442, 0.15892310440540314, -0.25301262736320496, 0.2699562609195709, -0.17851750552654266, -0.3480796217918396, -0.1428566426038742, 0.14365676045417786, -0.00006332635530270636, -0.07042568922042847, 0.20394355058670044, 0.15252742171287537, 0.21581944823265076, 0.01934392936527729, 0.18846642971038818, -0.12127090245485306, -0.050808556377887726, -0.21817679703235626, -0.03501061350107193, 0.3387905955314636, -0.09035129100084305, -0.4391954243183136, -0.38929787278175354, -0.4123508334159851, 0.06676652282476425, 0.06230170652270317, 0.5975313186645508, -0.14786091446876526, -0.1179700493812561, 0.21015633642673492, 0.182025745511055, 0.5711487531661987, -0.4470503330230713, -0.10754424333572388, 0.12747877836227417, 0.062272366136312485, -0.09501548856496811, -0.15384028851985931, -0.273807555437088, 0.2109864205121994, 0.09701701253652573, 0.29016557335853577, -0.22997045516967773, 0.0009556083823554218, -0.05706704407930374, -0.08180598169565201, 0.15138284862041473, -0.0959707573056221, -0.26889169216156006, -0.2532072067260742, -0.23671334981918335, 0.18790841102600098, 0.0725013017654419, 0.01141846552491188, -0.2773069739341736, -0.03871215879917145, 0.018390657380223274, 0.26907724142074585, -0.12162522971630096, 0.34072718024253845, 0.17266887426376343, 0.2733710706233978, 0.16915646195411682, 0.38521304726600647, -0.0037226455751806498, 0.35988086462020874, 0.1930723637342453, 0.2869403064250946, -0.14820413291454315, 0.17003768682479858, -0.06553226709365845, 0.1006540060043335, 0.2456890493631363, -0.15611577033996582, 0.15349096059799194, 0.14782854914665222, 0.286606103181839, -0.10289288312196732, -0.266645222902298, 0.3975701332092285, -0.0696270763874054, -0.4378697872161865, -0.8425218462944031, 0.14842653274536133, 0.046896565705537796, -0.13860584795475006, 0.5356470942497253, -0.30406251549720764, -0.1331491619348526, 0.37504181265830994, -0.14865945279598236, 0.621842622756958, -0.014362321235239506, -0.11625251919031143, 0.36537185311317444, 0.2237398326396942, 0.1280854344367981, -0.010589833371341228, 0.33867505192756653, -0.09619469195604324, -0.5596518516540527, 0.1815624088048935, -0.10514847934246063, 0.027003571391105652, 0.0661650151014328, -0.22950085997581482, 0.2785797715187073, -0.06914758682250977, 0.16584543883800507, -0.16832290589809418, -0.1908368170261383, -0.2544880509376526, -0.3233904540538788, -0.30236852169036865, 0.22152721881866455, -0.026074618101119995, 0.0651986300945282, 0.07856620848178864, -0.08549682050943375, 0.060756076127290726, 0.09819457679986954, -0.1658928394317627, 0.19183465838432312, -0.29442694783210754, -0.17836344242095947, -0.31935641169548035, 0.16196194291114807, 0.07044757157564163, 0.012355644255876541, 0.056157395243644714, 0.04769090563058853, -0.09444441646337509, 0.15502452850341797, 0.3336309790611267, 0.2662811279296875, -0.10049274563789368, 0.09578704833984375, 0.10777688771486282, -0.07018176466226578, -0.0577213317155838, 0.054372046142816544, 0.13066169619560242, -0.375749796628952, -0.34505051374435425, -0.18220195174217224, 0.20622518658638, -0.14294913411140442, -0.1285930573940277, 0.06688134372234344, -0.032393548637628555, -0.21686586737632751, 0.16906024515628815, -0.08591273427009583, -0.19332586228847504, 0.4004819095134735, -0.27560219168663025, -0.09686178714036942, -0.22721034288406372, 0.38416531682014465, 0.20004594326019287, 0.18024314939975739, 0.3196735680103302, -0.06274382025003433, -0.17527887225151062, -0.28856414556503296, -0.1654690057039261, -0.12286541610956192, -0.1576547622680664, 0.1163402870297432, 0.1648496836423874, 0.0324891172349453, 0.04596754536032677, 0.2720930576324463, -0.2012595236301422, 0.1393442004919052, -0.3060131371021271, -0.17475980520248413, -0.3050634264945984, 0.008987504988908768, 0.0825863629579544, 0.13150620460510254, -0.08717957884073257, 0.22746825218200684, 0.08972449600696564, -0.10206299275159836, -0.41252318024635315, -0.32364141941070557, -0.09591690450906754, 0.19104145467281342, 0.005848460830748081, 0.029075132682919502, 0.2106626033782959, -0.02810942940413952, 0.18360468745231628, 0.11740153282880783, -0.22972097992897034, -0.275811105966568, 0.15358959138393402, 0.0850452184677124, 0.1756463646888733, -0.09352301806211472, -0.0710831731557846, -0.21771612763404846, -0.5254060626029968, -0.2647675573825836, 0.42508432269096375, 0.18220792710781097, 0.016789941117167473, -0.17175981402397156, 0.46559253334999084, 0.009039835073053837, 0.06405595690011978, 0.04699676111340523, -0.16779035329818726, -0.48192787170410156, -0.09414705634117126, -0.15038752555847168, -0.18860171735286713, -0.2323780357837677, -0.10757585614919662, -0.017949867993593216, 0.24784910678863525, 0.3136833608150482, 0.19015486538410187, -0.26063036918640137, 0.08994139730930328, 0.2874259948730469, 0.4517199993133545, 0.509765088558197, 0.09002923220396042, -0.4366598427295685, 0.23209203779697418, 0.2794463038444519, -0.15223285555839539, -0.1554151326417923, -0.02172347716987133, 0.08458957076072693, 0.20068201422691345, 0.0954715833067894, -0.14061427116394043, -0.26238083839416504, 0.0018220202764496207, 0.06674676388502121, 0.2619026005268097, -0.49572575092315674, 0.23484888672828674, 0.07080355286598206, 0.02095944806933403, -0.08102276176214218, 0.2266284078359604, 0.09625149518251419, -0.006023218389600515, 0.36719179153442383, -0.08139099925756454, 0.23923476040363312, 0.24574068188667297, -0.015190381556749344, -0.051816266030073166, -0.5209726691246033, -0.11953780800104141, 0.5239409804344177, -0.13210748136043549, 0.4228525459766388, 0.12531152367591858, 0.0202692411839962, -0.205075204372406, 0.0062796869315207005, -0.03978688642382622, 0.03535323962569237, -0.18454690277576447, -0.03271342068910599, -0.06929201632738113, -0.2562203109264374, -0.03857981413602829, 0.019498005509376526, -0.07973472774028778, 0.24708229303359985, 0.29567408561706543, -0.17617957293987274, -0.0751432403922081, -0.4886922836303711, -0.013266406022012234, 0.15510819852352142, 0.4034702181816101, -0.10906260460615158, 0.06983335316181183, -0.11696788668632507, 0.058861322700977325, 0.2569009065628052, 0.31911319494247437, 0.16532793641090393, 0.382747620344162, 0.18819527328014374, 0.1194787472486496, -0.13577674329280853, -0.16338583827018738, -0.1559184491634369, 0.23633085191249847, 0.18901118636131287, -0.0869610533118248, 0.2447090744972229, 0.21430721879005432, -0.17173318564891815, 0.041557975113391876, 0.09316329658031464, 0.20780043303966522, 0.0550418458878994, -0.012998475693166256, -0.1015724465250969, 0.006440930068492889, 0.008636933751404285, -0.04515410587191582, -0.31469643115997314, -0.021476110443472862, -0.03406111150979996, -0.1987437605857849, 0.1235639750957489, -0.22025777399539948, 0.12457209825515747, 0.024396488443017006, 0.41302773356437683, 0.16067305207252502, -0.31460514664649963, -0.10011115670204163, -0.33078137040138245, -0.5856947898864746, -0.0620807521045208, -0.03646769002079964, 0.11419793963432312, 0.06432221829891205, 0.3521094024181366, 0.07632492482662201, -0.040760528296232224, -0.006029176525771618, -0.007385648787021637, -0.18092766404151917, 0.5266047716140747, -0.2156371921300888, -0.04582764580845833, -0.38056355714797974, 0.12041973322629929, 0.1375429630279541, -0.2747381925582886, 0.27847516536712646, -0.09803429245948792, 0.1694282442331314, 0.12343242019414902, 0.26863646507263184, -0.06718631088733673, -0.36706024408340454, 0.06549636274576187, 0.195461243391037, 0.05842680111527443, -0.15467865765094757, 0.17120175063610077, -0.2905959188938141, -0.21371978521347046, -0.31747087836265564, -0.025992361828684807, 0.19413553178310394, 0.40240564942359924, 0.17548225820064545, -0.08575354516506195, -0.3212850093841553, 0.17494377493858337, 0.11125293374061584, 0.14036299288272858, -0.2917775809764862, 0.37528976798057556, 0.07990825921297073, 0.2514567971229553, -0.1469300091266632, 0.06904809921979904, -0.09655152261257172, 0.018827583640813828, -0.36192357540130615, -0.3267613649368286, 0.6507821083068848, -0.3065682351589203, -0.30873188376426697, -0.19299688935279846, 0.31111690402030945, 0.15104791522026062, -0.1815505027770996, -0.16169977188110352, 0.305767297744751, 0.17141497135162354, -0.07744406163692474, 0.05394554138183594, 0.2937752306461334, -0.21064479649066925, 0.08784280717372894, -0.10300663113594055, 0.04751209914684296, 0.1259876936674118, -0.3081815540790558, 0.3053465187549591, -0.21042224764823914 ]
https://github.com/huggingface/datasets/issues/2714
add more precise information for size
We already have this information in the dataset_infos.json files of each dataset. Maybe we can parse these files in the backend to return their content with the endpoint at huggingface.co/api/datasets For now if you want to access this info you have to load the json for each dataset. For example: - for a dataset on github like `squad` - https://raw.githubusercontent.com/huggingface/datasets/master/datasets/squad/dataset_infos.json - for a community dataset on the hub like `lhoestq/squad`: https://huggingface.co/datasets/lhoestq/squad/resolve/main/dataset_infos.json
For the import into ELG, we would like a more precise description of the size of the dataset, instead of the current size categories. The size can be expressed in bytes, or any other preferred size unit. As suggested in the slack channel, perhaps this could be computed with a regex for existing datasets.
71
add more precise information for size For the import into ELG, we would like a more precise description of the size of the dataset, instead of the current size categories. The size can be expressed in bytes, or any other preferred size unit. As suggested in the slack channel, perhaps this could be computed with a regex for existing datasets. We already have this information in the dataset_infos.json files of each dataset. Maybe we can parse these files in the backend to return their content with the endpoint at huggingface.co/api/datasets For now if you want to access this info you have to load the json for each dataset. For example: - for a dataset on github like `squad` - https://raw.githubusercontent.com/huggingface/datasets/master/datasets/squad/dataset_infos.json - for a community dataset on the hub like `lhoestq/squad`: https://huggingface.co/datasets/lhoestq/squad/resolve/main/dataset_infos.json
[ -0.0413544625043869, -0.557772159576416, -0.15896722674369812, 0.3919741213321686, 0.20537500083446503, -0.06392474472522736, -0.07375918328762054, 0.05036452040076256, 0.10644849389791489, 0.07986823469400406, -0.4394705593585968, 0.08817821741104126, -0.06569725275039673, 0.45486533641815186, 0.06093825772404671, 0.038858745247125626, -0.22952081263065338, -0.112666055560112, -0.14924298226833344, -0.21980242431163788, 0.023450417444109917, 0.27985572814941406, 0.25340157747268677, -0.02959090657532215, -0.0154502522200346, 0.12148227542638779, -0.2544068396091461, 0.29460060596466064, -0.5448061227798462, -0.21685512363910675, 0.16250625252723694, -0.05755842477083206, 0.15924102067947388, -0.021005848422646523, -0.0001038512637023814, -0.06477747857570648, 0.1080956757068634, -0.22959542274475098, -0.3205728232860565, -0.03833509236574173, 0.0025479800533503294, -0.3959295153617859, 0.10426650196313858, -0.08504422754049301, -0.14127442240715027, -0.1166362389922142, 0.03357096388936043, -0.12619492411613464, 0.45414432883262634, 0.09185482561588287, 0.2733738422393799, 0.45008784532546997, 0.1584031730890274, -0.1389547735452652, 0.033832889050245285, 0.4866323173046112, 0.014397088438272476, 0.2679380476474762, 0.38407281041145325, 0.30030250549316406, -0.09223083406686783, 0.4050796329975128, 0.25233086943626404, -0.02592928148806095, 0.2601453959941864, 0.03143664076924324, -0.3214992880821228, -0.13708780705928802, 0.10250464826822281, 0.4285009205341339, 0.1674051284790039, -0.3730250597000122, -0.5177251100540161, -0.45340847969055176, 0.15884961187839508, -0.25472721457481384, 0.049300119280815125, 0.23190359771251678, 0.030197544023394585, 0.17674724757671356, -0.2547951340675354, -0.1507338434457779, -0.23824425041675568, -0.024006620049476624, -0.1776672601699829, 0.07896986603736877, -0.2915142774581909, -0.1185305044054985, 0.002672001253813505, -0.4049319326877594, -0.629515528678894, 0.03170483931899071, -0.11207666993141174, 0.20418097078800201, -0.14582587778568268, -0.38229236006736755, 0.3146910071372986, 0.24058032035827637, 0.5023841261863708, 0.15784087777137756, 0.007503735367208719, 0.15249496698379517, 0.0011087743332609534, 0.19479385018348694, 0.1977788805961609, 0.3022003173828125, 0.36611872911453247, -0.07798000425100327, 0.10311983525753021, 0.03168570622801781, 0.14990700781345367, -0.13568486273288727, -0.213738352060318, 0.08167552947998047, -0.36361831426620483, -0.2070542871952057, 0.022601258009672165, -0.11125027388334274, -0.07278405129909515, -0.009966496378183365, 0.17642842233181, 0.0235272366553545, 0.07943341881036758, 0.43991807103157043, 0.028525246307253838, 0.011436354368925095, -0.09482692927122116, 0.2278681993484497, 0.16592800617218018, -0.25803253054618835, -0.1681974232196808, 0.010056770406663418, -0.057711947709321976, 0.13958509266376495, 0.012805938720703125, -0.3011854588985443, 0.393486887216568, -0.11033357679843903, 0.17219391465187073, -0.04999653622508049, -0.07833833992481232, 0.049604229629039764, 0.18665947020053864, 0.04051153361797333, 0.0921570435166359, -0.21698890626430511, 0.027859395369887352, -0.14549560844898224, -0.37673521041870117, -0.20538266003131866, -0.1997886598110199, -0.2601394057273865, -0.4404105246067047, 0.2663023769855499, -0.2347162663936615, -0.06464830040931702, -0.4436703324317932, 0.32973846793174744, -0.14819063246250153, 0.1381039023399353, 0.004347403533756733, 0.08985786885023117, -0.029387928545475006, -0.1064033955335617, 0.00488896993920207, 0.23059456050395966, -0.0331626795232296, -0.2757419943809509, -0.036105696111917496, -0.2553452253341675, -0.24731600284576416, 0.4085281789302826, -0.0546538308262825, -0.2784495949745178, -0.10996697843074799, 0.28476402163505554, 0.34496161341667175, -0.40752163529396057, -0.06387770920991898, 0.2323252111673355, 0.04206977039575577, 0.09201082587242126, 0.04418561980128288, 0.005190688651055098, 0.22959034144878387, 0.16459457576274872, 0.017502659931778908, 0.3218153417110443, -0.18433412909507751, 0.12283913046121597, -0.10666877776384354, -0.40866178274154663, -0.17580442130565643, 0.17053477466106415, 0.0425584614276886, -0.33535632491111755, 0.20834718644618988, 0.08446180075407028, 0.2212420254945755, -0.15256990492343903, 0.06526099890470505, 0.22491319477558136, -0.016242017969489098, -0.048572391271591187, 0.0501229390501976, -0.11235158145427704, -0.6196359992027283, 0.13108983635902405, -0.019653087481856346, 0.23720884323120117, -0.03996222838759422, -0.41779935359954834, -0.31429123878479004, 0.15523886680603027, 0.059692222625017166, -0.09161053597927094, 0.21395710110664368, -0.033505912870168686, 0.2626999318599701, -0.053879301995038986, -0.1323900818824768, -0.015396281145513058, -0.12488960474729538, 0.2994821071624756, -0.684080183506012, 0.0677035003900528, -0.018763478845357895, 0.03172263875603676, 0.1639620065689087, 0.14347098767757416, -0.2023175209760666, -0.047474492341279984, 0.028176648542284966, 0.07564747333526611, -0.17491023242473602, 0.45653051137924194, 0.26037976145744324, 0.4778716564178467, 0.24017541110515594, -0.003362227464094758, 0.2902505397796631, -0.1425657719373703, 0.022238224744796753, 0.12729312479496002, -0.5045998692512512, 0.5015558004379272, 0.3156275451183319, -0.03891392797231674, 0.07486225664615631, -0.05898908153176308, 0.019047914072871208, -0.013313761912286282, -0.23056529462337494, -0.35464149713516235, 0.02512531168758869, -0.040418367832899094, 0.2994694709777832, 0.06176350638270378, -0.34385669231414795, 0.06254791468381882, 0.5101701617240906, 0.013295892626047134, -0.00463772052899003, 0.3452257812023163, -0.31604424118995667, -0.22522249817848206, 0.20957763493061066, 0.05568132922053337, 0.18306078016757965, 0.3736015856266022, 0.10899944603443146, 0.12924829125404358, 0.2113347202539444, -0.02861178293824196, 0.10022830218076706, 0.11778151243925095, -0.057876043021678925, 0.04376943036913872, 0.3493603765964508, -0.06456642597913742, -0.40007466077804565, -0.11726249009370804, -0.28997325897216797, 0.08528361469507217, -0.22829890251159668, -0.017570627853274345, -0.13474997878074646, -0.36447951197624207, -0.1586054265499115, -0.09908200055360794, -0.5645574927330017, -0.2226262390613556, 0.1855560541152954, -0.24787184596061707, -0.3137245774269104, -0.21819210052490234, 0.10119841992855072, 0.24532240629196167, -0.06831993907690048, 0.008962771855294704, -0.09081006050109863, -0.08565786480903625, -0.010182816535234451, 0.17825371026992798, 0.17768003046512604, 0.0589757077395916, 0.39298713207244873, -0.2609722316265106, 0.10445031523704529, 0.006272622849792242, -0.5086254477500916, 0.27177244424819946, -0.18404029309749603, 0.1842019408941269, 0.07716725021600723, 0.11175855249166489, 0.08953852206468582, 0.03495566546916962, 0.17227406799793243, -0.0007508021662943065, -0.3836701810359955, -0.09394171833992004, -0.008097365498542786, 0.13944466412067413, -0.1613653153181076, -0.18604370951652527, -0.3122626841068268, -0.329683780670166, 0.301592081785202, 0.07866935431957245, 0.21225321292877197, 0.21127882599830627, -0.01068106759339571, 0.1425531804561615, -0.14246031641960144, 0.009721176698803902, -0.30361026525497437, -0.4350677728652954, 0.2735944986343384, -0.4120611548423767, -0.1951003074645996, -0.057308051735162735, 0.09150921553373337, 0.20120444893836975, -0.2210042029619217, -0.15973791480064392, -0.5394007563591003, -0.1228954941034317, -0.027983035892248154, 0.11735820770263672, 0.035788070410490036, 0.25578755140304565, -0.12905004620552063, -0.14567020535469055, 0.022804390639066696, -0.27357423305511475, -0.05567348375916481, 0.2504132390022278, 0.0304260291159153, -0.2115628570318222, 0.27642369270324707, 0.16652923822402954, 0.2871810495853424, 0.227359339594841, -0.21231235563755035, 0.12033344060182571, -0.13589990139007568, 0.21259379386901855, 0.007170487195253372, -0.033948324620723724, 0.24978668987751007, 0.11921684443950653, 0.07559499144554138, 0.48315319418907166, 0.39565256237983704, 0.2829975187778473, 0.023086968809366226, -0.09263411164283752, -0.16538146138191223, -0.1985621154308319, 0.3444508910179138, 0.20882092416286469, -0.12780429422855377, -0.03476026654243469, -0.08615747839212418, -0.16282963752746582, -0.13966506719589233, -0.18851637840270996, 0.31373947858810425, 0.0045148879289627075, 0.13771982491016388, -0.5218560695648193, -0.10159908980131149, -0.24486523866653442, 0.5750687122344971, -0.038252923637628555, -0.3285718858242035, -0.04305946081876755, -0.27004027366638184, 0.1268564909696579, 0.06761644780635834, 0.022902563214302063, -0.08566887676715851, -0.33627867698669434, -0.18218614161014557, -0.25995272397994995, -0.3137335777282715, 0.24169915914535522, 0.00953428540378809, -0.11772626638412476, 0.4289167523384094, 0.4547972083091736, -0.5648525953292847, -0.24241238832473755, 0.12744350731372833, 0.21621906757354736, -0.15282274782657623, -0.03606458753347397, -0.14624248445034027, -0.0884629637002945, -0.4926462471485138, 0.04059021174907684, 0.055172037333250046, 0.16146117448806763, 0.029425442218780518, 0.000925315311178565, 0.058543216437101364, 0.06069302186369896, 0.40500032901763916, 0.6058877110481262, 0.12537546455860138, 0.13702800869941711, -0.13994988799095154, 0.14958782494068146, 0.4613378047943115, 0.2738898992538452, 0.6469155550003052, 0.10128607600927353, -0.1358736753463745, 0.02033962309360504, 0.04022173210978508, 0.23844315111637115, 0.36052361130714417, 0.18153898417949677, -0.008894002065062523, 0.03152472898364067, 0.16551652550697327, -0.3032902181148529, 0.10035974532365799, -0.048551108688116074, 0.0017778381006792188, -0.14446184039115906, 0.05086565762758255, 0.4109843969345093, -0.049149639904499054, 0.098271444439888, 0.12952829897403717, 0.3705093264579773, -0.20693455636501312, 0.21418313682079315, 0.06725790351629257, 1.0640894174575806, -0.21761305630207062, 0.1019982323050499, 0.058885347098112106, -0.19377058744430542, 0.42190104722976685, -0.059873033314943314, -0.02648822031915188, -0.20776432752609253, 0.256903737783432, 0.15744860470294952, 0.1491711139678955, 0.14587344229221344, 0.09924306720495224, -0.16685305535793304, 0.05744900926947594, 0.06236638128757477, 0.11759743839502335, -0.3965121805667877, 0.5909298062324524, -0.4135974645614624, -0.529529869556427, -0.5926876664161682, 0.2633857727050781, -0.0887998715043068, 0.35993069410324097, 0.04624895006418228, -0.27812644839286804, -0.18703870475292206, -0.23176634311676025, -0.3549022376537323, -0.15365618467330933, -0.03243309259414673, -0.24250757694244385, 0.1593877375125885, -0.31849244236946106, 0.01226121187210083, 0.32865869998931885, 0.08202604204416275, 0.19056448340415955, -0.22805218398571014, 0.1592797040939331, -0.502618134021759, 0.11743588000535965, 0.12815703451633453, -0.0831606537103653, 0.09588456898927689, -0.17829211056232452, 0.01701384410262108, 0.05721915140748024, 0.31508442759513855, 0.012074334546923637, -0.0044422154314816, -0.0037434156984090805, -0.2274232804775238, -0.2892988622188568, -0.015189486555755138, -0.007886971347033978, 0.05821498855948448, -0.09111180156469345, 0.1713140308856964, 0.19772087037563324, 0.0618446059525013, -0.0394437238574028, 0.3849599063396454, -0.09771682322025299, -0.23960533738136292, 0.2264368087053299, -0.0940747931599617, -0.3045300245285034, 0.030496999621391296, 0.14478403329849243, -0.007471094839274883, -0.16588540375232697, 0.2489943653345108, 0.3029518723487854, -0.3718907833099365, -0.09938184916973114, 0.034803375601768494, -0.22846846282482147, -0.09840325266122818, 0.10121729969978333, 0.2532755136489868, 0.07875345647335052, 0.2638925313949585, -0.18403615057468414, -0.37712717056274414, 0.4878150224685669, -0.013802620582282543, 0.1850368082523346, -0.21889953315258026, 0.05069106072187424, 0.04825509712100029, 0.403939813375473, -0.4329450726509094, 0.09221892803907394, -0.2767197787761688, -0.028818214312195778, 0.32233044505119324, 0.02949468605220318, 0.39683815836906433, -0.17653824388980865, 0.0903923511505127, 0.01576196402311325, -0.29694607853889465, -0.2389741986989975, -0.1329907476902008, 0.09426628798246384, -0.09506576508283615, 0.24893532693386078, 0.06630944460630417, 0.11626236140727997, -0.004064227920025587, -0.27084580063819885, 0.31660640239715576, 0.10424896329641342, 0.15912353992462158, 0.07672318071126938, -0.06984325498342514, 0.07232401520013809, 0.13010068237781525, -0.08578361570835114, 0.3456183075904846, 0.30201396346092224, 0.036283284425735474, 0.09662065654993057, -0.21389320492744446, -0.11117572337388992, 0.10312378406524658, 0.2083466649055481, 0.23052436113357544, 0.07274607568979263, 0.09219469875097275, 0.24231216311454773, -0.22502784430980682, 0.25630608201026917, 0.3816104829311371, 0.07090726494789124, -0.12181143462657928, 0.27183011174201965, -0.018346015363931656, 0.27613621950149536, -0.12249836325645447, 0.1581382304430008, 0.18339034914970398, -0.0879191905260086, 0.10317247360944748, 0.34025976061820984, 0.19694669544696808, 0.478089839220047, 0.255649596452713, 0.015926508232951164, 0.3624539077281952, 0.043025486171245575, -0.01200750470161438, -0.0018359627574682236, -0.1979350447654724, -0.06428581476211548, 0.4485362768173218, 0.20687994360923767, 0.55656498670578, -0.18060676753520966, -0.32295873761177063, 0.20262707769870758, -0.144753560423851, 0.17461471259593964, 0.34174811840057373, -0.20678119361400604, -0.28725895285606384, 0.18733777105808258, 0.3389521837234497, 0.20001529157161713, 0.10486819595098495, 0.4568774998188019, 0.1618058830499649, -0.314147412776947, -0.2933789789676666, 0.45856085419654846, -0.0922621563076973, -0.08357784152030945, 0.06675839424133301, -0.21804438531398773, -0.3744449019432068, 0.03840554133057594, -0.06295443326234818, -0.47468531131744385, 0.14435695111751556, -0.07602271437644958, 0.11673789471387863, -0.2503049969673157, -0.08757606893777847, 0.0984768196940422, 0.06288433074951172, -0.28302034735679626, 0.17781560122966766, 0.27926918864250183, 0.05243387818336487, 0.15252166986465454, 0.295832097530365, 0.30387067794799805, -0.16405075788497925, 0.1301807463169098, 0.35552090406417847, -0.03747733682394028, -0.09910431504249573, -0.24289952218532562, -0.010976490564644337, 0.08004973083734512, -0.05624337121844292, 0.31062963604927063, 0.2558508813381195, -0.24115701019763947, -0.19957134127616882, -0.3234943151473999, 0.07947447896003723, 0.01397313829511404, 0.3263384997844696, -0.04678609222173691, -0.04232984036207199, -0.3483896553516388, -0.24708276987075806, -0.494418740272522, 0.09922665357589722, -0.023644115775823593, 0.13147780299186707, 0.0442095622420311, -0.24575401842594147, 0.11702198535203934, 0.19647733867168427, 0.24383868277072906, 0.5422878265380859, 0.003423879388719797, -0.011232271790504456, -0.22328954935073853, -0.4496415853500366, 0.06868860125541687, 0.04924926534295082, -0.14422489702701569, 0.006549143698066473, 0.38218143582344055, 0.27541449666023254, 0.14550787210464478, -0.10403434187173843, -0.29305756092071533, -0.011829977855086327, 0.011832114309072495, -0.3173426687717438, 0.1339319348335266, -0.06577606499195099, -0.14267419278621674, 0.28590619564056396, 0.023438449949026108, 0.08739404380321503, -0.26677489280700684, 0.061236556619405746, -0.3607886731624603, 0.29227930307388306, -0.17899441719055176, -0.12328853458166122, 0.2861504554748535, 0.07520642131567001, 0.16302134096622467, -0.25969696044921875, -0.14248502254486084, -0.19440174102783203, -0.29547521471977234, -0.25705718994140625, 0.423703134059906, -0.018125487491488457, 0.3955463171005249, -0.04504507780075073, -0.2638508081436157, -0.11382853984832764, 0.010052474215626717, -0.08705580234527588, -0.21365538239479065, 0.014052183367311954, 0.10948667675256729, -0.025668609887361526, -0.10503504425287247, -0.005402322392910719, 0.27249544858932495, 0.03597116842865944, -0.06809341162443161, -0.0653141662478447, -0.30722811818122864, 0.5054531097412109, -0.025778086856007576, -0.05801645293831825, 0.08781334012746811, 0.26064884662628174, 0.47098109126091003, -0.1615629345178604, -0.647904634475708, 0.4406294822692871, 0.25770604610443115, 0.15934312343597412, 0.026774326339364052, 0.19524931907653809, 0.026560891419649124, -0.13626641035079956, -0.2946959435939789, -0.10925548523664474, 0.10154427587985992, -0.2585722506046295, -0.019203731790184975, -0.18782036006450653 ]
https://github.com/huggingface/datasets/issues/2709
Missing documentation for wnut_17 (ner_tags)
Hi @maxpel, thanks for reporting this issue. Indeed, the documentation in the dataset card is not complete. I’m opening a Pull Request to fix it. As the paper explains, there are 6 entity types and we have ordered them alphabetically: `corporation`, `creative-work`, `group`, `location`, `person` and `product`. Each of these entity types has 2 possible IOB2 format tags: - `B-`: to indicate that the token is the beginning of an entity name, and the - `I-`: to indicate that the token is inside an entity name. Additionally, there is the standalone IOB2 tag - `O`: that indicates that the token belongs to no named entity. In total there are 13 possible tags, which correspond to the following integer numbers: 0. `O` 1. `B-corporation` 2. `I-corporation` 3. `B-creative-work` 4. `I-creative-work` 5. `B-group` 6. `I-group` 7. `B-location` 8. `I-location` 9. `B-person` 10. `I-person` 11. `B-product` 12. `I-product`
On the info page of the wnut_17 data set (https://huggingface.co/datasets/wnut_17), the model output of ner-tags is only documented for these 5 cases: `ner_tags: a list of classification labels, with possible values including O (0), B-corporation (1), I-corporation (2), B-creative-work (3), I-creative-work (4).` I trained a model with the data and it gives me 13 classes: ``` "id2label": { "0": 0, "1": 1, "2": 2, "3": 3, "4": 4, "5": 5, "6": 6, "7": 7, "8": 8, "9": 9, "10": 10, "11": 11, "12": 12 } "label2id": { "0": 0, "1": 1, "10": 10, "11": 11, "12": 12, "2": 2, "3": 3, "4": 4, "5": 5, "6": 6, "7": 7, "8": 8, "9": 9 } ``` The paper (https://www.aclweb.org/anthology/W17-4418.pdf) explains those 6 categories, but the ordering does not match: ``` 1. person 2. location (including GPE, facility) 3. corporation 4. product (tangible goods, or well-defined services) 5. creative-work (song, movie, book and so on) 6. group (subsuming music band, sports team, and non-corporate organisations) ``` I would be very helpful for me, if somebody could clarify the model ouputs and explain the "B-" and "I-" prefixes to me. Really great work with that and the other packages, I couldn't believe that training the model with that data was basically a one-liner!
145
Missing documentation for wnut_17 (ner_tags) On the info page of the wnut_17 data set (https://huggingface.co/datasets/wnut_17), the model output of ner-tags is only documented for these 5 cases: `ner_tags: a list of classification labels, with possible values including O (0), B-corporation (1), I-corporation (2), B-creative-work (3), I-creative-work (4).` I trained a model with the data and it gives me 13 classes: ``` "id2label": { "0": 0, "1": 1, "2": 2, "3": 3, "4": 4, "5": 5, "6": 6, "7": 7, "8": 8, "9": 9, "10": 10, "11": 11, "12": 12 } "label2id": { "0": 0, "1": 1, "10": 10, "11": 11, "12": 12, "2": 2, "3": 3, "4": 4, "5": 5, "6": 6, "7": 7, "8": 8, "9": 9 } ``` The paper (https://www.aclweb.org/anthology/W17-4418.pdf) explains those 6 categories, but the ordering does not match: ``` 1. person 2. location (including GPE, facility) 3. corporation 4. product (tangible goods, or well-defined services) 5. creative-work (song, movie, book and so on) 6. group (subsuming music band, sports team, and non-corporate organisations) ``` I would be very helpful for me, if somebody could clarify the model ouputs and explain the "B-" and "I-" prefixes to me. Really great work with that and the other packages, I couldn't believe that training the model with that data was basically a one-liner! Hi @maxpel, thanks for reporting this issue. Indeed, the documentation in the dataset card is not complete. I’m opening a Pull Request to fix it. As the paper explains, there are 6 entity types and we have ordered them alphabetically: `corporation`, `creative-work`, `group`, `location`, `person` and `product`. Each of these entity types has 2 possible IOB2 format tags: - `B-`: to indicate that the token is the beginning of an entity name, and the - `I-`: to indicate that the token is inside an entity name. Additionally, there is the standalone IOB2 tag - `O`: that indicates that the token belongs to no named entity. In total there are 13 possible tags, which correspond to the following integer numbers: 0. `O` 1. `B-corporation` 2. `I-corporation` 3. `B-creative-work` 4. `I-creative-work` 5. `B-group` 6. `I-group` 7. `B-location` 8. `I-location` 9. `B-person` 10. `I-person` 11. `B-product` 12. `I-product`
[ 0.27512404322624207, -0.2970442771911621, 0.020810967311263084, 0.4673907458782196, -0.05594487860798836, 0.05201506242156029, -0.011735675856471062, -0.29913243651390076, -0.25691038370132446, -0.21867311000823975, 0.09837982803583145, 0.3813357353210449, -0.10718181729316711, 0.2050386220216751, 0.1961681842803955, -0.07216848433017731, 0.1684129685163498, -0.18871624767780304, 0.3061254918575287, -0.11009608954191208, -0.3069913685321808, 0.34379979968070984, -0.2482837289571762, 0.4954277276992798, -0.3762371242046356, -0.08591834455728531, -0.18694062530994415, -0.15397343039512634, -0.4046437740325928, -0.5950918793678284, 0.2896219789981842, 0.15563955903053284, 0.07238999754190445, -0.05791008472442627, -0.0001202806452056393, -0.2460780143737793, 0.02851944789290428, -0.1889369785785675, -0.12240472435951233, -0.1234157383441925, -0.09263000637292862, -0.20607350766658783, 0.28356626629829407, -0.009431188926100731, -0.14294764399528503, -0.18680666387081146, 0.27511584758758545, 0.5176037549972534, -0.25080129504203796, 0.11971709877252579, 0.04976335167884827, -0.16216284036636353, 0.26890894770622253, 0.028813432902097702, 0.35195228457450867, 0.09083577245473862, -0.12326022982597351, 0.3104263246059418, 0.4276798665523529, -0.05340605601668358, -0.2571893632411957, 0.4627600610256195, 0.0963761955499649, -0.2820252478122711, 0.2589056193828583, 0.22859956324100494, 0.33586594462394714, -0.4192577600479126, -0.13016749918460846, 0.3817868232727051, 0.25169309973716736, 0.1147545725107193, -0.21541063487529755, -0.015739737078547478, -0.05260167643427849, -0.6351479887962341, 0.0023945639841258526, 0.43932485580444336, 0.03301318362355232, 0.04142497479915619, -0.00360878580249846, 0.17081527411937714, -0.216302752494812, 0.03604476526379585, -0.09499050676822662, 0.6974462866783142, -0.14299286901950836, -0.11016617715358734, -0.020367365330457687, -0.06452439725399017, -0.31365343928337097, 0.053263142704963684, 0.0026731565594673157, 0.04854092746973038, -0.35271579027175903, 0.08211448043584824, 0.11130036413669586, 0.6752998232841492, 0.10347216576337814, 0.12954971194267273, -0.10830868035554886, -0.16193236410617828, -0.12468501180410385, 0.019132159650325775, 0.012668021954596043, 0.06710971146821976, 0.19440524280071259, 0.20111306011676788, -0.04463740065693855, 0.34695562720298767, 0.03237217664718628, -0.07408251613378525, -0.10442251712083817, 0.0455813854932785, -0.2820936143398285, 0.09278109669685364, 0.0680844634771347, -0.01837589219212532, -0.29603111743927, 0.2254844605922699, -0.32309335470199585, -0.08890602737665176, 0.14402303099632263, -0.07520700991153717, -0.07315105944871902, 0.03571092337369919, 0.18765772879123688, -0.050486981868743896, -0.037934888154268265, -0.4821266531944275, -0.14820422232151031, 0.03864835947751999, -0.46392691135406494, 0.252336323261261, 0.17138458788394928, 0.012634653598070145, 0.20624622702598572, -0.11117077618837357, -0.40546342730522156, 0.035456448793411255, -0.06583265215158463, -0.031302083283662796, 0.0889698714017868, 0.17950212955474854, -0.45257002115249634, 0.3838881850242615, 0.09299395233392715, -0.16427995264530182, -0.26717206835746765, 0.011926275677978992, -0.4921444356441498, -0.308055579662323, 0.06903038173913956, 0.1287892907857895, -0.13658806681632996, 0.06095738336443901, 0.1897367238998413, 0.3318854570388794, -0.11531787365674973, 0.19909146428108215, -0.10074052959680557, -0.09831204265356064, -0.42691975831985474, -0.2644011676311493, 0.007203797809779644, 0.040969543159008026, -0.3341090679168701, -0.16238141059875488, 0.13737764954566956, 0.18717217445373535, 0.3112607002258301, -0.022741593420505524, -0.024128282442688942, 0.42472168803215027, -0.10909361392259598, 0.1467435657978058, 0.24993295967578888, -0.3465860188007355, -0.008753594011068344, -0.1740073412656784, -0.025898974388837814, 0.13298597931861877, -0.08956435322761536, 0.16642598807811737, -0.17449676990509033, -0.0926978588104248, 0.016025980934500694, -0.08409697562456131, -0.09572665393352509, -0.19901210069656372, 0.05023603141307831, -0.140676349401474, 0.6332861185073853, 0.11183568835258484, -0.15727035701274872, -0.1110161691904068, -0.3735496997833252, 0.16740208864212036, 0.3539597690105438, -0.007133872248232365, 0.04491347447037697, 0.3623036742210388, 0.08719803392887115, 0.3109554946422577, 0.32685840129852295, 0.05157734826207161, -0.12532620131969452, -0.01667812652885914, 0.12321371585130692, 0.7216902375221252, 0.16100087761878967, -0.16097669303417206, -0.05989479646086693, -0.029703378677368164, -0.04210180416703224, -0.5228352546691895, 0.16383925080299377, -0.03548054397106171, -0.092769093811512, -0.015690945088863373, -0.2345711886882782, 0.30033111572265625, -0.7553536891937256, 0.12536640465259552, -0.5494096875190735, -0.2719167172908783, -0.3093496263027191, 0.17231698334217072, 0.26043984293937683, 0.1606014370918274, 0.32123711705207825, 0.2714568078517914, 0.09247156232595444, -0.04615741968154907, 0.14885936677455902, -0.6642782688140869, 0.09114348143339157, 0.6776847243309021, 0.08837339282035828, -0.5249881744384766, -0.09680084139108658, 0.09264342486858368, -0.13769254088401794, -0.08231166750192642, -0.18299664556980133, 0.04478277266025543, -0.08425220847129822, 0.29331472516059875, 0.11412909626960754, 0.008959476836025715, 0.062317658215761185, 0.06310577690601349, -0.3090406656265259, 0.0669121965765953, 0.10345069319009781, -0.13608959317207336, 0.02113000676035881, 0.11993904411792755, -0.038746077567338943, 0.4414962828159332, 0.5638062953948975, -0.18636468052864075, -0.0692087709903717, 0.25216737389564514, -0.18298478424549103, -0.057711534202098846, -0.27078112959861755, 0.18219202756881714, 0.24229291081428528, 0.07314711809158325, 0.2016146034002304, -0.14233168959617615, -0.2664194405078888, -0.21012896299362183, 0.14799514412879944, 0.07135722786188126, -0.36753836274147034, 0.13229118287563324, -0.014125730842351913, 0.028321523219347, -0.10011782497167587, -0.23693634569644928, -0.05266857519745827, 0.15793615579605103, -0.2895199954509735, -0.04862571135163307, -0.08477021753787994, -0.04149775207042694, 0.04939179867506027, -0.1332647204399109, -0.3768910765647888, -0.46188440918922424, 0.06041230261325836, -0.20657780766487122, 0.10461409389972687, 0.09165725111961365, 0.026790345087647438, 0.25777825713157654, 0.007820665836334229, 0.496867299079895, -0.01992225833237171, -0.3135144114494324, -0.418705552816391, 0.0002777782501652837, -0.19323159754276276, -0.06894685328006744, -0.27939438819885254, -0.4715571403503418, -0.19620384275913239, 0.18918272852897644, -0.6522643566131592, 0.19920657575130463, -0.030792521312832832, 0.04235545173287392, 0.36195001006126404, 0.03848956525325775, -0.23725199699401855, 0.11657845973968506, 0.012894459068775177, -0.04827530309557915, -0.23773491382598877, -0.0630054771900177, -0.10789720714092255, 0.04758816584944725, -0.2777671217918396, -0.3997900187969208, -0.41372212767601013, -0.036072567105293274, 0.14719140529632568, -0.05640589818358421, 0.07939735800027847, 0.5000623464584351, -0.31877386569976807, 0.05422959104180336, -0.040277983993291855, 0.42917177081108093, -0.05793827399611473, -0.03629545494914055, 0.3741430938243866, -0.1225992739200592, -0.28759443759918213, 0.28604042530059814, -0.2776123285293579, -0.0642169788479805, -0.21677708625793457, -0.16597047448158264, 0.01286240667104721, 0.12474878877401352, -0.2548127770423889, 0.1925061196088791, 0.1471301019191742, 0.1604902744293213, -0.05104771628975868, 0.182612344622612, -0.18101879954338074, -0.13596993684768677, 0.14857541024684906, -0.17386551201343536, 0.16256485879421234, -0.11205838620662689, -0.2352702021598816, 0.15339189767837524, -0.09810581803321838, 0.09581077098846436, -0.15613023936748505, -0.19584400951862335, 0.18173493444919586, 0.12042160332202911, 0.12857256829738617, 0.09146788716316223, -0.12080004811286926, 0.06562905758619308, 0.06713774800300598, 0.16727589070796967, 0.1578971892595291, 0.4212940037250519, 0.24852707982063293, 0.4521142244338989, -0.23041094839572906, -0.1518731415271759, 0.06167029216885567, 0.529996931552887, 0.36668655276298523, -0.13157637417316437, -0.13184857368469238, -0.004167495295405388, -0.29182082414627075, 0.03207271918654442, 0.398660272359848, 0.2485455721616745, 0.12701813876628876, -0.18018439412117004, -0.10870540142059326, -0.319987952709198, -0.3875414729118347, -0.018018493428826332, -0.094242624938488, -0.10322843492031097, 0.07345354557037354, -0.06816715002059937, 0.0887589380145073, 0.21131369471549988, -0.4619133174419403, 0.30382463335990906, 0.3779917359352112, 0.10604744404554367, 0.04582126438617706, -0.2179715633392334, -0.4066912829875946, -0.32081666588783264, 0.25441035628318787, 0.3007872998714447, -0.2096460610628128, -0.31572628021240234, 0.6650325059890747, -0.16230103373527527, -0.21462854743003845, 0.02311616577208042, -0.07982335984706879, -0.18865640461444855, 0.20492972433567047, -0.32439446449279785, 0.2717306315898895, 0.1194404736161232, -0.5196068286895752, 0.3327740728855133, 0.2235523760318756, 0.4568701684474945, 0.2948155403137207, -0.008476476185023785, 0.17131014168262482, 0.019742852076888084, -0.12699173390865326, 0.0451139435172081, 0.33078357577323914, -0.0008962122374214232, 0.3283192217350006, 0.2983850836753845, -0.5064975619316101, 0.3612934350967407, -0.2267690896987915, 0.2376774102449417, 0.10060237348079681, -0.01750648207962513, 0.32847869396209717, -0.22983838617801666, 0.0035496968775987625, -0.34673693776130676, 0.14709743857383728, 0.4200782775878906, -0.1543993353843689, -0.07772938907146454, -0.13057290017604828, 0.35639336705207825, 0.2603345513343811, -0.30482202768325806, 0.004071430303156376, 0.25731760263442993, -0.24015234410762787, 0.06442400813102722, 0.4713020920753479, 1.037802815437317, 0.30313146114349365, 0.18855313956737518, 0.12191756069660187, -0.35903477668762207, 0.6271588802337646, -0.4413633346557617, 0.29392287135124207, -0.4917212128639221, -0.25976622104644775, -0.07985556125640869, -0.05324750766158104, -0.32303211092948914, 0.485115110874176, -0.013381517492234707, 0.27995333075523376, 0.07956817001104355, 0.15331366658210754, 0.07628165185451508, 0.03820011764764786, 0.4392773509025574, -0.13556112349033356, 0.144944965839386, 0.01588156446814537, -0.09430607408285141, 0.05065138638019562, -0.21553337574005127, -0.030918117612600327, -0.058516860008239746, 0.14974592626094818, -0.4512605369091034, -0.0009579795878380537, 0.07393873482942581, -0.19807927310466766, 0.25279441475868225, 0.25648412108421326, 0.2726525366306305, 0.3124992847442627, 0.4582827687263489, -0.11848791688680649, -0.1011568233370781, -0.02884593792259693, -0.3781507611274719, -0.04519474506378174, 0.022875647991895676, 0.02396927960216999, 0.18928532302379608, 0.1026286631822586, -0.055661026388406754, -0.218827024102211, 0.11235067993402481, 0.2670867443084717, -0.3358883261680603, -0.030406063422560692, -0.027648935094475746, -0.10194654017686844, 0.35796624422073364, 0.22160235047340393, -0.015674373134970665, -0.07147158682346344, 0.06776129454374313, 0.2044014036655426, -0.39643821120262146, -0.036834150552749634, -0.13983403146266937, 0.001334360335022211, 0.09315036237239838, -0.05396151915192604, 0.25005361437797546, -0.05737527832388878, -0.0314921997487545, 0.16727957129478455, -0.13086669147014618, -0.13194265961647034, 0.007825386710464954, 0.36669793725013733, -0.48889949917793274, 0.01168229803442955, 0.17349353432655334, 0.05623403936624527, 0.14636151492595673, 0.514526903629303, 0.1278766542673111, 0.2062712162733078, 0.02741103246808052, -0.2807462811470032, -0.11724260449409485, 0.3828390836715698, -0.16859735548496246, -0.03384467214345932, -0.4350360631942749, -0.44973281025886536, 0.11957379430532455, 0.2847348749637604, -0.2097821980714798, -0.08335860818624496, -0.21612410247325897, 0.2336941808462143, 0.1275094598531723, -0.03612346202135086, 0.062365368008613586, 0.37260702252388, -0.08863835781812668, -0.06032882630825043, 0.007493191864341497, -0.06037767603993416, -0.23134900629520416, 0.16880948841571808, 0.26450806856155396, 0.2135520577430725, -0.06094050407409668, 0.04409860074520111, 0.031655263155698776, 0.013330223970115185, -0.07199027389287949, -0.09964533150196075, 0.2574821710586548, 0.5117641687393188, -0.1896258145570755, 0.46775972843170166, -0.051345985382795334, -0.059940747916698456, 0.2764771282672882, 0.5056191086769104, 0.4498588442802429, -0.20504552125930786, 0.12724870443344116, -0.04221483692526817, -0.018022051081061363, 0.33356773853302, -0.10503846406936646, -0.11606133729219437, 0.40811580419540405, -0.21387524902820587, 0.0616920180618763, -0.29449620842933655, 0.25233978033065796, -0.051959067583084106, 0.09030613303184509, -0.17367437481880188, 0.09293781220912933, 0.10154544562101364, -0.20903374254703522, -0.17550425231456757, 0.7825027108192444, 0.060479361563920975, -0.04007840156555176, 0.10151834785938263, 0.24061809480190277, 0.15571744740009308, 0.050711460411548615, -0.17258207499980927, 0.3301270008087158, 0.13724516332149506, 0.11137434840202332, -0.10510125756263733, -0.0463513620197773, 0.2719036936759949, 0.40978020429611206, 0.025589926168322563, 0.12060890346765518, 0.10585124790668488, 0.5922994613647461, 0.1977979987859726, 0.16488727927207947, 0.06664963811635971, 0.20302486419677734, -0.06973499804735184, -0.3384661376476288, 0.26764115691185, 0.22469572722911835, -0.045501917600631714, -0.25870582461357117, -0.5041486024856567, 0.16587279736995697, -0.3136124908924103, -0.11848680675029755, -0.12743479013442993, -0.10701635479927063, -0.07399940490722656, -0.6019306778907776, -0.1222601979970932, -0.24033299088478088, 0.0025608271826058626, 0.06185845285654068, -0.3346044719219208, 0.22315570712089539, -0.09027322381734848, 0.15597011148929596, -0.1328749656677246, -0.3667319118976593, 0.39208388328552246, 0.30548787117004395, -0.0074456860311329365, 0.06917519867420197, 0.0800209790468216, 0.02804342843592167, 0.013377266936004162, 0.4532528817653656, 0.1409289687871933, 0.2674159109592438, -0.048288051038980484, -0.1304043084383011, 0.09244389086961746, -0.0631447359919548, 0.13921068608760834, 0.14441914856433868, 0.13119295239448547, -0.21763016283512115, 0.11929255723953247, -0.04705765098333359, 0.06233075261116028, 0.17834073305130005, 0.17828400433063507, 0.18701840937137604, 0.21969206631183624, -0.16628234088420868, 0.024408459663391113, -0.2889585793018341, 0.05896656960248947, 0.1931680589914322, -0.10106854885816574, 0.031213248148560524, 0.5167574286460876, 0.5962797999382019, 0.16361625492572784, -0.08932874351739883, 0.05741690471768379, 0.1213994100689888, 0.32256385684013367, 0.504045307636261, -0.09578415751457214, -0.5049681663513184, -0.43854042887687683, -0.22838029265403748, 0.13540154695510864, -0.15391744673252106, -0.15483605861663818, 0.049773719161748886, 0.031538330018520355, 0.14695343375205994, -0.045476481318473816, -0.25318652391433716, 0.10341843217611313, 0.17060992121696472, 0.4527876675128937, -0.247996985912323, -0.26412975788116455, 0.17567762732505798, 0.14816246926784515, -0.33624330163002014, 0.2616693377494812, -0.21283981204032898, -0.3010275661945343, -0.07571221888065338, 0.1897958517074585, 0.0888679176568985, -0.019039932638406754, 0.6010875105857849, -0.04558395966887474, 0.3202250301837921, 0.24284109473228455, -0.021292395889759064, -0.29037854075431824, -0.2750292718410492, 0.20240990817546844, -0.07441293448209763, 0.44212546944618225, -0.38460278511047363, 0.241886168718338, 0.03471027687191963, 0.06267912685871124, -0.2775331735610962, -0.27866142988204956, 0.027765020728111267, -0.21431319415569305, -0.3709551692008972, 0.2795895040035248, -0.09794583916664124, 0.028737083077430725, 0.45051613450050354, 0.11070242524147034, 0.09135366231203079, -0.12944552302360535, -0.1693638563156128, -0.23964954912662506, 0.21203668415546417, -0.37560003995895386, -0.054066505283117294, -0.04676707461476326, 0.1419932246208191, 0.5354364514350891, 0.47856801748275757, -0.3146364390850067, -0.20530681312084198, 0.3774159848690033, -0.11494413763284683, -0.2709686756134033, 0.10972657799720764, 0.2885727286338806, -0.1728777438402176, -0.06768900156021118, -0.47643762826919556, 0.20645514130592346, -0.13441380858421326, -0.23892639577388763, -0.3001999258995056 ]
https://github.com/huggingface/datasets/issues/2708
QASC: incomplete training set
Hi @danyaljj, thanks for reporting. Unfortunately, I have not been able to reproduce your problem. My train split has 8134 examples: ```ipython In [10]: ds["train"] Out[10]: Dataset({ features: ['id', 'question', 'choices', 'answerKey', 'fact1', 'fact2', 'combinedfact', 'formatted_question'], num_rows: 8134 }) In [11]: ds["train"].shape Out[11]: (8134, 8) ``` and the content of the last 5 examples is: ```ipython In [12]: for i in range(8129, 8134): ...: print(json.dumps(ds["train"][i])) ...: {"id": "3KAKFY4PGU1LGXM77JAK2700NGCI3X", "question": "Chitin can be used for protection by whom?", "choices": {"text": ["Fungi", "People", "Man", "Fish", "trees", "Dogs", "animal", "Birds"], "label": ["A", "B", "C", "D", "E", "F", "G", "H"]}, "answerKey": "D", "fact1": "scales are used for protection by scaled animals", "fact2": "Fish scales are also composed of chitin.", "combinedfact": "Chitin can be used for prote ction by fish.", "formatted_question": "Chitin can be used for protection by whom? (A) Fungi (B) People (C) Man (D) Fish (E) trees (F) Dogs (G) animal (H) Birds"} {"id": "336YQZE83VDAQVZ26HW59X51JZ9M5M", "question": "Which type of animal uses plates for protection?", "choices": {"text": ["squids", "reptiles", "sea urchins", "fish", "amphibians", "Frogs", "mammals", "salm on"], "label": ["A", "B", "C", "D", "E", "F", "G", "H"]}, "answerKey": "B", "fact1": "scales are used for protection by scaled animals", "fact2": "Reptiles have scales or plates.", "combinedfact": "Reptiles use their plates for protection.", "formatted_question": "Which type of animal uses plates for protection? (A) squids (B) reptiles (C) sea urchins (D) fish (E) amphibians (F) Frogs (G) mammals (H) salmon"} {"id": "3WZ36BJEV3FGS66VGOOUYX0LN8GTBU", "question": "What are used for protection by fish?", "choices": {"text": ["scales", "fins", "streams.", "coral", "gills", "Collagen", "mussels", "whiskers"], "label": [" A", "B", "C", "D", "E", "F", "G", "H"]}, "answerKey": "A", "fact1": "scales are used for protection by scaled animals", "fact2": "Fish are backboned aquatic animals.", "combinedfact": "scales are used for prote ction by fish ", "formatted_question": "What are used for protection by fish? (A) scales (B) fins (C) streams. (D) coral (E) gills (F) Collagen (G) mussels (H) whiskers"} {"id": "3Z2R0DQ0JHDKFAO2706OYIXGNA4E28", "question": "What are pangolins covered in?", "choices": {"text": ["tunicates", "Echinoids", "shells", "exoskeleton", "blastoids", "barrel-shaped", "protection", "white" ], "label": ["A", "B", "C", "D", "E", "F", "G", "H"]}, "answerKey": "G", "fact1": "scales are used for protection by scaled animals", "fact2": "Pangolins have an elongate and tapering body covered above with ov erlapping scales.", "combinedfact": "Pangolins are covered in overlapping protection.", "formatted_question": "What are pangolins covered in? (A) tunicates (B) Echinoids (C) shells (D) exoskeleton (E) blastoids (F) barrel-shaped (G) protection (H) white"} {"id": "3PMBY0YE272GIWPNWIF8IH5RBHVC9S", "question": "What are covered with protection?", "choices": {"text": ["apples", "trees", "coral", "clams", "roses", "wings", "hats", "fish"], "label": ["A", "B", "C", "D ", "E", "F", "G", "H"]}, "answerKey": "H", "fact1": "scales are used for protection by scaled animals", "fact2": "Fish are covered with scales.", "combinedfact": "Fish are covered with protection", "formatted_q uestion": "What are covered with protection? (A) apples (B) trees (C) coral (D) clams (E) roses (F) wings (G) hats (H) fish"} ``` Could you please load again your dataset and print its shape, like this: ```python ds = load_dataset("qasc", split="train) print(ds.shape) ``` and confirm which is your output?
## Describe the bug The training instances are not loaded properly. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("qasc", script_version='1.10.2') def load_instances(split): instances = dataset[split] print(f"split: {split} - size: {len(instances)}") for x in instances: print(json.dumps(x)) load_instances('test') load_instances('validation') load_instances('train') ``` ## results For test and validation, we can see the examples in the output (which is good!): ``` split: test - size: 920 {"answerKey": "", "choices": {"label": ["A", "B", "C", "D", "E", "F", "G", "H"], "text": ["Anthax", "under water", "uterus", "wombs", "two", "moles", "live", "embryo"]}, "combinedfact": "", "fact1": "", "fact2": "", "formatted_question": "What type of birth do therian mammals have? (A) Anthax (B) under water (C) uterus (D) wombs (E) two (F) moles (G) live (H) embryo", "id": "3C44YUNSI1OBFBB8D36GODNOZN9DPA", "question": "What type of birth do therian mammals have?"} {"answerKey": "", "choices": {"label": ["A", "B", "C", "D", "E", "F", "G", "H"], "text": ["Corvidae", "arthropods", "birds", "backbones", "keratin", "Jurassic", "front paws", "Parakeets."]}, "combinedfact": "", "fact1": "", "fact2": "", "formatted_question": "By what time had mouse-sized viviparous mammals evolved? (A) Corvidae (B) arthropods (C) birds (D) backbones (E) keratin (F) Jurassic (G) front paws (H) Parakeets.", "id": "3B1NLC6UGZVERVLZFT7OUYQLD1SGPZ", "question": "By what time had mouse-sized viviparous mammals evolved?"} {"answerKey": "", "choices": {"label": ["A", "B", "C", "D", "E", "F", "G", "H"], "text": ["Reduced friction", "causes infection", "vital to a good life", "prevents water loss", "camouflage from consumers", "Protection against predators", "spur the growth of the plant", "a smooth surface"]}, "combinedfact": "", "fact1": "", "fact2": "", "formatted_question": "What does a plant's skin do? (A) Reduced friction (B) causes infection (C) vital to a good life (D) prevents water loss (E) camouflage from consumers (F) Protection against predators (G) spur the growth of the plant (H) a smooth surface", "id": "3QRYMNZ7FYGITFVSJET3PS0F4S0NT9", "question": "What does a plant's skin do?"} ... ``` However, only a few instances are loaded for the training split, which is not correct. ## Environment info - `datasets` version: '1.10.2' - Platform: MaxOS - Python version:3.7 - PyArrow version: 3.0.0
496
QASC: incomplete training set ## Describe the bug The training instances are not loaded properly. ## Steps to reproduce the bug ```python from datasets import load_dataset dataset = load_dataset("qasc", script_version='1.10.2') def load_instances(split): instances = dataset[split] print(f"split: {split} - size: {len(instances)}") for x in instances: print(json.dumps(x)) load_instances('test') load_instances('validation') load_instances('train') ``` ## results For test and validation, we can see the examples in the output (which is good!): ``` split: test - size: 920 {"answerKey": "", "choices": {"label": ["A", "B", "C", "D", "E", "F", "G", "H"], "text": ["Anthax", "under water", "uterus", "wombs", "two", "moles", "live", "embryo"]}, "combinedfact": "", "fact1": "", "fact2": "", "formatted_question": "What type of birth do therian mammals have? (A) Anthax (B) under water (C) uterus (D) wombs (E) two (F) moles (G) live (H) embryo", "id": "3C44YUNSI1OBFBB8D36GODNOZN9DPA", "question": "What type of birth do therian mammals have?"} {"answerKey": "", "choices": {"label": ["A", "B", "C", "D", "E", "F", "G", "H"], "text": ["Corvidae", "arthropods", "birds", "backbones", "keratin", "Jurassic", "front paws", "Parakeets."]}, "combinedfact": "", "fact1": "", "fact2": "", "formatted_question": "By what time had mouse-sized viviparous mammals evolved? (A) Corvidae (B) arthropods (C) birds (D) backbones (E) keratin (F) Jurassic (G) front paws (H) Parakeets.", "id": "3B1NLC6UGZVERVLZFT7OUYQLD1SGPZ", "question": "By what time had mouse-sized viviparous mammals evolved?"} {"answerKey": "", "choices": {"label": ["A", "B", "C", "D", "E", "F", "G", "H"], "text": ["Reduced friction", "causes infection", "vital to a good life", "prevents water loss", "camouflage from consumers", "Protection against predators", "spur the growth of the plant", "a smooth surface"]}, "combinedfact": "", "fact1": "", "fact2": "", "formatted_question": "What does a plant's skin do? (A) Reduced friction (B) causes infection (C) vital to a good life (D) prevents water loss (E) camouflage from consumers (F) Protection against predators (G) spur the growth of the plant (H) a smooth surface", "id": "3QRYMNZ7FYGITFVSJET3PS0F4S0NT9", "question": "What does a plant's skin do?"} ... ``` However, only a few instances are loaded for the training split, which is not correct. ## Environment info - `datasets` version: '1.10.2' - Platform: MaxOS - Python version:3.7 - PyArrow version: 3.0.0 Hi @danyaljj, thanks for reporting. Unfortunately, I have not been able to reproduce your problem. My train split has 8134 examples: ```ipython In [10]: ds["train"] Out[10]: Dataset({ features: ['id', 'question', 'choices', 'answerKey', 'fact1', 'fact2', 'combinedfact', 'formatted_question'], num_rows: 8134 }) In [11]: ds["train"].shape Out[11]: (8134, 8) ``` and the content of the last 5 examples is: ```ipython In [12]: for i in range(8129, 8134): ...: print(json.dumps(ds["train"][i])) ...: {"id": "3KAKFY4PGU1LGXM77JAK2700NGCI3X", "question": "Chitin can be used for protection by whom?", "choices": {"text": ["Fungi", "People", "Man", "Fish", "trees", "Dogs", "animal", "Birds"], "label": ["A", "B", "C", "D", "E", "F", "G", "H"]}, "answerKey": "D", "fact1": "scales are used for protection by scaled animals", "fact2": "Fish scales are also composed of chitin.", "combinedfact": "Chitin can be used for prote ction by fish.", "formatted_question": "Chitin can be used for protection by whom? (A) Fungi (B) People (C) Man (D) Fish (E) trees (F) Dogs (G) animal (H) Birds"} {"id": "336YQZE83VDAQVZ26HW59X51JZ9M5M", "question": "Which type of animal uses plates for protection?", "choices": {"text": ["squids", "reptiles", "sea urchins", "fish", "amphibians", "Frogs", "mammals", "salm on"], "label": ["A", "B", "C", "D", "E", "F", "G", "H"]}, "answerKey": "B", "fact1": "scales are used for protection by scaled animals", "fact2": "Reptiles have scales or plates.", "combinedfact": "Reptiles use their plates for protection.", "formatted_question": "Which type of animal uses plates for protection? (A) squids (B) reptiles (C) sea urchins (D) fish (E) amphibians (F) Frogs (G) mammals (H) salmon"} {"id": "3WZ36BJEV3FGS66VGOOUYX0LN8GTBU", "question": "What are used for protection by fish?", "choices": {"text": ["scales", "fins", "streams.", "coral", "gills", "Collagen", "mussels", "whiskers"], "label": [" A", "B", "C", "D", "E", "F", "G", "H"]}, "answerKey": "A", "fact1": "scales are used for protection by scaled animals", "fact2": "Fish are backboned aquatic animals.", "combinedfact": "scales are used for prote ction by fish ", "formatted_question": "What are used for protection by fish? (A) scales (B) fins (C) streams. (D) coral (E) gills (F) Collagen (G) mussels (H) whiskers"} {"id": "3Z2R0DQ0JHDKFAO2706OYIXGNA4E28", "question": "What are pangolins covered in?", "choices": {"text": ["tunicates", "Echinoids", "shells", "exoskeleton", "blastoids", "barrel-shaped", "protection", "white" ], "label": ["A", "B", "C", "D", "E", "F", "G", "H"]}, "answerKey": "G", "fact1": "scales are used for protection by scaled animals", "fact2": "Pangolins have an elongate and tapering body covered above with ov erlapping scales.", "combinedfact": "Pangolins are covered in overlapping protection.", "formatted_question": "What are pangolins covered in? (A) tunicates (B) Echinoids (C) shells (D) exoskeleton (E) blastoids (F) barrel-shaped (G) protection (H) white"} {"id": "3PMBY0YE272GIWPNWIF8IH5RBHVC9S", "question": "What are covered with protection?", "choices": {"text": ["apples", "trees", "coral", "clams", "roses", "wings", "hats", "fish"], "label": ["A", "B", "C", "D ", "E", "F", "G", "H"]}, "answerKey": "H", "fact1": "scales are used for protection by scaled animals", "fact2": "Fish are covered with scales.", "combinedfact": "Fish are covered with protection", "formatted_q uestion": "What are covered with protection? (A) apples (B) trees (C) coral (D) clams (E) roses (F) wings (G) hats (H) fish"} ``` Could you please load again your dataset and print its shape, like this: ```python ds = load_dataset("qasc", split="train) print(ds.shape) ``` and confirm which is your output?
[ -0.24501794576644897, -0.36150068044662476, -0.16716916859149933, 0.37236136198043823, 0.12369546294212341, 0.14514657855033875, 0.01643916219472885, 0.43802034854888916, -0.12132073193788528, 0.09349317848682404, 0.16326025128364563, 0.12497185170650482, 0.04304645583033562, 0.24713659286499023, -0.09437526762485504, -0.16472697257995605, -0.006986677646636963, 0.29663318395614624, -0.23057590425014496, -0.07449186593294144, -0.2418486624956131, 0.3023810088634491, -0.2500705420970917, -0.07362431287765503, -0.16497822105884552, -0.28729379177093506, -0.049175821244716644, 0.013311174698174, 0.045869097113609314, -0.32006409764289856, -0.048026252537965775, -0.3247573971748352, -0.10144583880901337, 0.4697219133377075, -0.0001062213268596679, 0.07821325212717056, 0.12709732353687286, -0.14088588953018188, -0.33008474111557007, 0.10743044316768646, -0.2933758795261383, -0.17282827198505402, 0.03268083930015564, -0.09739110618829727, -0.2557198107242584, -0.27290743589401245, -0.04965367913246155, -0.08545055240392685, 0.5871785283088684, 0.2898498475551605, 0.25290679931640625, 0.36333268880844116, 0.033647775650024414, -0.08324990421533585, -0.22133485972881317, -0.5049695372581482, -0.04054061323404312, 0.032814476639032364, 0.22645144164562225, 0.0457121916115284, 0.24681779742240906, 0.23078906536102295, 0.27607461810112, -0.10078443586826324, 0.14792530238628387, -0.21711744368076324, 0.11462070792913437, -0.1962149292230606, 0.026363322511315346, 0.19727540016174316, 0.3719685971736908, 0.19366103410720825, -0.3621878921985626, -0.15385715663433075, -0.03195556625723839, -0.4144755005836487, -0.03721605986356735, 0.2690792679786682, -0.06167777255177498, 0.2073269635438919, -0.18613335490226746, 0.2345629334449768, -0.1997884064912796, 0.14426422119140625, -0.14621125161647797, 0.22440776228904724, -0.06547000259160995, -0.0954148918390274, -0.24957889318466187, 0.18124587833881378, -0.07055831700563431, 0.12609311938285828, -0.008440889418125153, 0.18627676367759705, -0.5876225829124451, -0.1518307328224182, 0.17353016138076782, -0.2187473028898239, 0.0536678284406662, -0.02769722230732441, 0.4717942476272583, -0.14120323956012726, 0.07026398181915283, 0.09774038195610046, 0.27454766631126404, 0.5109508633613586, 0.20128440856933594, 0.10085755586624146, -0.14834193885326385, 0.22572511434555054, -0.18090921640396118, 0.11723136901855469, -0.11040046811103821, -0.12200313806533813, 0.10848397016525269, 0.2392062395811081, -0.1832304149866104, -0.16618874669075012, -0.4356071949005127, 0.46699008345603943, -0.45179039239883423, 0.11107894778251648, -0.20339566469192505, 0.323964387178421, -0.23417435586452484, 0.26619258522987366, 0.09681930392980576, 0.24211353063583374, -0.4497467279434204, -0.1726887971162796, -0.3069637715816498, -0.005371665582060814, -0.1520240604877472, -0.14489935338497162, 0.0667961984872818, -0.019887877628207207, 0.6864049434661865, -0.19058409333229065, 0.2406970113515854, -0.14949828386306763, 0.1166919693350792, -0.16772368550300598, -0.1573779582977295, 0.2168617993593216, 0.09333493560552597, -0.15152676403522491, 0.09868405014276505, 0.1273583620786667, 0.07355397939682007, -0.012329239398241043, -0.19337810575962067, -0.0778050571680069, 0.07314908504486084, 0.33071231842041016, 0.0673329085111618, 0.14819416403770447, -0.08009017258882523, 0.3283023536205292, 0.31319108605384827, 0.20750519633293152, -0.16546691954135895, -0.12911246716976166, -0.06724964827299118, -0.0664217472076416, 0.2284732162952423, 0.10686808079481125, -0.38796377182006836, -0.283128023147583, 0.21118980646133423, 0.15231375396251678, -0.1277308464050293, 0.1663794070482254, -0.06378434598445892, 0.44638413190841675, -0.05747625231742859, 0.12282446771860123, -0.16067099571228027, -0.027835959568619728, -0.07585100829601288, -0.0808560699224472, -0.03595653548836708, 0.06373882293701172, 0.07715388387441635, -0.37818172574043274, 0.3808513581752777, 0.17212410271167755, 0.2533082365989685, 0.2878330945968628, -0.04543633013963699, -0.053101226687431335, -0.36928150057792664, -0.33304932713508606, -0.13223011791706085, 0.03039512410759926, 0.13761083781719208, -0.06593659520149231, -0.01965157873928547, -0.21230857074260712, 0.43869659304618835, 0.07534383237361908, -0.12689490616321564, 0.24750758707523346, 0.20165590941905975, -0.17555323243141174, 0.1349404901266098, -0.0882638692855835, -0.4648677110671997, 0.38561609387397766, -0.21369919180870056, 0.18052491545677185, 0.1455845683813095, 0.07521568238735199, -0.5313088297843933, -0.0354602113366127, -0.0576036237180233, -0.39800989627838135, 0.20891840755939484, -0.048274341970682144, 0.15215817093849182, -0.04162193462252617, -0.1192983016371727, 0.07171491533517838, -0.2015973925590515, -0.005151194985955954, -0.24553987383842468, 0.2948981821537018, -0.10221903771162033, -0.033815693110227585, 0.2529662251472473, 0.17136552929878235, 0.08386847376823425, -0.22522398829460144, -0.053543299436569214, 0.3246362805366516, 0.1384628266096115, -0.09933964163064957, -0.17156313359737396, -0.12261413037776947, 0.11806372553110123, -0.13192327320575714, -0.2020103633403778, 0.20575305819511414, 0.1158742606639862, -0.02330552041530609, -0.19404025375843048, 0.39195385575294495, 0.1703975796699524, 0.24489134550094604, 0.2319549024105072, 0.05292291194200516, 0.14485973119735718, -0.09168068319559097, 0.09757380187511444, -0.06388503313064575, 0.18959961831569672, -0.04972817748785019, -0.08440696448087692, -0.08688610792160034, -0.2769925892353058, 0.12966738641262054, 0.13368745148181915, 0.03488845378160477, -0.07926242053508759, -0.16267091035842896, -0.15375129878520966, 0.16446883976459503, 0.15907004475593567, 0.11744587123394012, 0.15109144151210785, 0.3079983592033386, -0.2536088526248932, -0.19983455538749695, 0.035686664283275604, 0.0004941838560625911, 0.16264952719211578, 0.04262396693229675, 0.2464946061372757, 0.28478556871414185, 0.19369496405124664, -0.09436898678541183, -0.10659632086753845, 0.12310563772916794, 0.1845836192369461, 0.21532081067562103, -0.3730054199695587, 0.14320962131023407, -0.10245350748300552, 0.29503652453422546, -0.12795336544513702, 0.23551632463932037, 0.15933428704738617, -0.25504153966903687, 0.22766552865505219, 0.03674875944852829, -0.053009066730737686, 0.26497477293014526, -0.25477394461631775, 0.27451568841934204, 0.1846228986978531, -0.15319745242595673, 0.19781702756881714, 0.19690819084644318, -0.31219369173049927, 0.2985314130783081, -0.08765903860330582, 0.12445193529129028, 0.25596338510513306, -0.07411057502031326, -0.29835405945777893, 0.19359564781188965, -0.23935717344284058, 0.17809483408927917, -0.1836474984884262, 0.48361456394195557, -0.14166516065597534, 0.19091859459877014, -0.34667572379112244, -0.381073921918869, 0.19487503170967102, -0.05812712013721466, -0.25776779651641846, 0.150485560297966, 0.04106569290161133, -0.20137299597263336, -0.1593969762325287, -0.757530927658081, 0.03543828800320625, -0.16354086995124817, 0.19720523059368134, 0.15635770559310913, 0.27698493003845215, 0.030858131125569344, 0.2668565809726715, -0.03541676700115204, -0.12603572010993958, -0.165128692984581, -0.17090913653373718, -0.19464237987995148, 0.3205128610134125, -0.15303809940814972, -0.30156365036964417, -0.14507094025611877, -0.1393868774175644, 0.583477795124054, -0.034668006002902985, -0.3780318796634674, -0.2207750380039215, -0.009999816305935383, 0.10903552919626236, -0.041204240173101425, -0.18902096152305603, 0.3572489619255066, -0.09905196726322174, -0.2029394954442978, -0.09182041883468628, -0.07755453884601593, 0.30887842178344727, 0.19105954468250275, 0.2585722804069519, -0.4090474545955658, 0.2854521870613098, -0.008006002753973007, 1.0584619045257568, 0.37234213948249817, 0.0747852474451065, 0.04012589901685715, -0.0044043054804205894, -0.1289396435022354, -0.19658975303173065, -0.14872291684150696, 0.1607518047094345, -0.05931112542748451, -0.28408417105674744, 0.2656475901603699, 0.13444404304027557, -0.019717996940016747, -0.13557375967502594, 0.2519262433052063, -0.6226940155029297, -0.14675486087799072, -0.04413935914635658, -0.06796223670244217, 0.5081371665000916, 0.02614463120698929, 0.25752580165863037, 0.18022023141384125, 0.09821081906557083, 0.018910367041826248, -0.022158540785312653, 0.1799108237028122, -0.048081643879413605, -0.3849961757659912, -0.0720154419541359, -0.06307336688041687, 0.1918584257364273, -0.13689136505126953, 0.2850540280342102, -0.033640895038843155, -0.03151953965425491, -0.015502197667956352, 0.019306503236293793, 0.49165016412734985, 0.10303519666194916, 0.07596361637115479, 0.21372760832309723, 0.09836091101169586, -0.08789952099323273, -0.15574748814105988, -0.12499899417161942, -0.30201950669288635, -0.10051921010017395, 0.3204064667224884, -0.37749648094177246, 0.030183855444192886, -0.05008635297417641, 0.021307386457920074, -0.3617132306098938, 0.015999725088477135, -0.3647140860557556, 0.023644980043172836, -0.11307739466428757, 0.1736127883195877, 0.25345155596733093, 0.2392740100622177, -0.08757337927818298, -0.08668447285890579, 0.03843417391180992, -0.3197672665119171, 0.2297399640083313, 0.3085210919380188, 0.38501206040382385, 0.07585364580154419, 0.5038483738899231, 0.10594804584980011, -0.2602710425853729, 0.2349550873041153, 0.5228105187416077, -0.14997544884681702, -0.3038349747657776, 0.11173056066036224, -0.1718558371067047, 0.403338223695755, 0.24303586781024933, -0.19719198346138, 0.0012439313577488065, -0.07558297365903854, 0.2412465661764145, 0.21512936055660248, 0.08252006024122238, 0.07904673367738724, -0.02391090989112854, 0.20277000963687897, -0.3584734797477722, 0.056003957986831665, -0.16657741367816925, -0.03225000575184822, -0.0816432535648346, 0.12989673018455505, -0.17476090788841248, 0.3338713049888611, 0.11272680759429932, 0.6330315470695496, 0.13059405982494354, -0.03830341249704361, 0.4832283854484558, 0.049009423702955246, 0.12288252264261246, -0.35979628562927246, 0.2030261904001236, -0.21738383173942566, -0.11080874502658844, 0.08873897045850754, -0.06483026593923569, 0.18832114338874817, 0.3287273645401001, -0.14395055174827576, 0.4234224259853363, -0.4484821557998657, -0.04069272428750992, 0.07384320348501205, -0.051088858395814896, 0.03146514296531677, -0.025164475664496422, -0.2900233566761017, 0.2359439879655838, -0.0015878279227763414, -0.040608588606119156, -0.10339261591434479, -0.07316362857818604, -0.12275680899620056, -0.12740319967269897, -0.00922930147498846, 0.2474856823682785, -0.3118835389614105, -0.10061132162809372, 0.31167683005332947, -0.16100257635116577, 0.07622498273849487, 0.31967097520828247, -0.12019806355237961, 0.27096760272979736, -0.09747053682804108, 0.24680405855178833, -0.04635569453239441, 0.05797211453318596, 0.004804985132068396, -0.09126739203929901, 0.4631347954273224, -0.1395934671163559, -0.07123115658760071, 0.4149796962738037, -0.2818175256252289, 0.01761142909526825, 0.051092274487018585, 0.06486339867115021, 0.008034882135689259, -0.35855820775032043, -0.11048105359077454, 0.13763634860515594, 0.0029343555215746164, -0.33818739652633667, 0.23000584542751312, 0.05722854658961296, -0.18927505612373352, 0.16708756983280182, 0.08654441684484482, -0.14631204307079315, 0.042708318680524826, 0.13614961504936218, 0.35704725980758667, -0.13059648871421814, 0.7882822155952454, 0.15287654101848602, -0.03984722122550011, -0.39387327432632446, -0.07261832058429718, 0.29451730847358704, -0.43571943044662476, 0.30196547508239746, -0.013656705617904663, -0.024652473628520966, -0.05216106399893761, 0.4134019911289215, 0.18873485922813416, 0.03993662819266319, 0.21849291026592255, -0.4894672632217407, -0.19310951232910156, 0.2399049997329712, -0.014509663917124271, 0.030234292149543762, -0.13226336240768433, 0.29031187295913696, -0.12786772847175598, 0.20974694192409515, -0.4214288592338562, -0.1433733105659485, -0.3985898196697235, 0.1878069043159485, -0.5181497931480408, -0.1457369476556778, 0.2272176444530487, -0.10953813791275024, 0.24738538265228271, 0.037555720657110214, -0.2567579746246338, -0.320095956325531, -0.28613486886024475, 0.06176493316888809, 0.19273285567760468, 0.11274086683988571, 0.2889396846294403, 0.041668813675642014, -0.2834428548812866, 0.01782442070543766, 0.10131730139255524, -0.1948024332523346, 0.04676729813218117, 0.08719664067029953, 0.3864265978336334, 0.02197781763970852, -0.1919877827167511, -0.1358882337808609, -0.08825578540563583, 0.09046056121587753, 0.06016797199845314, -0.20230284333229065, 0.05235053598880768, -0.012818368151783943, -0.15071086585521698, 0.22151900827884674, -0.12311772257089615, 0.27379506826400757, 0.2905275523662567, -0.19267603754997253, -0.01842636615037918, -0.11681243777275085, 0.16187714040279388, 0.16859157383441925, -0.1445004642009735, 0.13150201737880707, 0.013578834943473339, 0.3528313934803009, -0.38441216945648193, 0.0049669272266328335, -0.3526671826839447, -0.018404370173811913, 0.08932101726531982, 0.16734366118907928, 0.04376858472824097, -0.3547252118587494, -0.08603233844041824, 0.28110605478286743, -0.2622292935848236, -0.10819883644580841, 0.28026628494262695, 0.5731698870658875, 0.027564894407987595, -0.00029235557303763926, 0.18192894756793976, -0.3897889256477356, -0.05266398563981056, -0.09915950894355774, 0.07343339174985886, 0.13528847694396973, 0.2290855348110199, 0.02008485049009323, -0.06619009375572205, -0.1742316484451294, 0.011692725121974945, 0.04695795476436615, -0.08975786715745926, 0.3786460757255554, -0.013822807930409908, 0.2987893521785736, -0.0638648271560669, -0.14970287680625916, -0.36682477593421936, -0.1680528223514557, -0.0015943440375849605, 0.06458888947963715, 0.008598863147199154, -0.15139161050319672, -0.1663932055234909, -0.08183345198631287, 0.07922101020812988, -0.32834264636039734, 0.1542554646730423, -0.1284559816122055, -0.4417526125907898, -0.23238489031791687, -0.3880308270454407, 0.485745370388031, 0.25828444957733154, -0.279548704624176, 0.2843215763568878, 0.1506461352109909, -0.18257497251033783, -0.11769083142280579, 0.4338412582874298, 0.1280682384967804, 0.08454251289367676, -0.046307653188705444, -0.08711708337068558, 0.08225701004266739, -0.10404368489980698, 0.11179757118225098, 0.2822863757610321, 0.16424791514873505, -0.07677623629570007, 0.25743815302848816, 0.17530013620853424, -0.27625057101249695, 0.1733466535806656, 0.08105391263961792, 0.2326994091272354, -0.25334200263023376, 0.13048861920833588, -0.11444893479347229, -0.0447533093392849, -0.05532405525445938, 0.1883159726858139, -0.40113553404808044, 0.0053416104055941105, 0.1108730286359787, 0.11024187505245209, 0.12415487319231033, -0.084306500852108, 0.1275138556957245, -0.30499911308288574, 0.5124532580375671, 0.010311776772141457, 0.02291545271873474, -0.4916670620441437, -0.06471653282642365, -0.28292974829673767, -0.05012928694486618, -0.21303486824035645, 0.2104373276233673, 0.034697167575359344, 0.20908312499523163, 0.12620393931865692, 0.1017698347568512, -0.014117286540567875, 0.025088245049118996, -0.25717031955718994, 0.31890419125556946, -0.7061991691589355, -0.13506831228733063, -0.20198264718055725, 0.3497310280799866, 0.1605275273323059, -0.3106668293476105, 0.015564989298582077, -0.12397588789463043, 0.11428538709878922, 0.19485148787498474, -0.1609451323747635, 0.31587380170822144, -0.08579686284065247, 0.2146511971950531, 0.12741908431053162, 0.1434754729270935, -0.07196835428476334, -0.16336822509765625, -0.14011956751346588, -0.3524003028869629, -0.2526796758174896, 0.22536073625087738, 0.2688835859298706, 0.4694865942001343, 0.10293509066104889, -0.10613858699798584, 0.033746156841516495, 0.04451480507850647, 0.2115573137998581, -0.4895722568035126, -0.37587887048721313, 0.23327301442623138, 0.012719834223389626, 0.22322888672351837, 0.11946538090705872, 0.2636309564113617, -0.1482475996017456, -0.24762900173664093, -0.35349997878074646, -0.4347565770149231, 0.4308348000049591, -0.0701337531208992, -0.09341923147439957, -0.14455243945121765, 0.21891486644744873, 0.01585976593196392, -0.06313717365264893, -0.6744796633720398, -0.06597799807786942, 0.4094995856285095, -0.11327238380908966, -0.2585163712501526, 0.18066926300525665, 0.12449535727500916, -0.12710431218147278, -0.056431736797094345, 0.2745736539363861, 0.027827318757772446, -0.23108285665512085, 0.0818096399307251, -0.09666519612073898 ]
https://github.com/huggingface/datasets/issues/2707
404 Not Found Error when loading LAMA dataset
Hi @dwil2444! I was able to reproduce your error when I downgraded to v1.1.2. Updating to the latest version of Datasets fixed the error for me :)
The [LAMA](https://huggingface.co/datasets/viewer/?dataset=lama) probing dataset is not available for download: Steps to Reproduce: 1. `from datasets import load_dataset` 2. `dataset = load_dataset('lama', 'trex')`. Results: `FileNotFoundError: Couldn't find file locally at lama/lama.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/lama/lama.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/lama/lama.py`
27
404 Not Found Error when loading LAMA dataset The [LAMA](https://huggingface.co/datasets/viewer/?dataset=lama) probing dataset is not available for download: Steps to Reproduce: 1. `from datasets import load_dataset` 2. `dataset = load_dataset('lama', 'trex')`. Results: `FileNotFoundError: Couldn't find file locally at lama/lama.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/lama/lama.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/lama/lama.py` Hi @dwil2444! I was able to reproduce your error when I downgraded to v1.1.2. Updating to the latest version of Datasets fixed the error for me :)
[ 0.027576081454753876, -0.17989495396614075, -0.041617635637521744, 0.5950449109077454, 0.41887167096138, 0.12768866121768951, -0.10213369131088257, 0.4045758843421936, -0.4222148060798645, 0.2916165590286255, -0.3122205138206482, 0.16415171325206757, -0.15944558382034302, -0.2467198520898819, 0.00844429899007082, -0.38672831654548645, -0.10027230530977249, -0.023483647033572197, -0.21415048837661743, 0.17033778131008148, -0.05522826313972473, 0.35647666454315186, -0.14585717022418976, 0.19389775395393372, 0.04134725406765938, 0.12182942777872086, -0.15613877773284912, 0.32318222522735596, -0.21325862407684326, -0.31375211477279663, 0.3761616051197052, -0.1966380476951599, 0.26369524002075195, 0.7458995580673218, -0.00011316105519654229, 0.17093375325202942, 0.25604841113090515, -0.1524575799703598, -0.2275671809911728, -0.3300158381462097, -0.2031930387020111, 0.020837457850575447, 0.026060134172439575, 0.06207724288105965, -0.32797908782958984, -0.054118942469358444, 0.02965696156024933, -0.10687137395143509, 0.07269889116287231, 0.24270261824131012, 0.2222917377948761, 0.5647497177124023, 0.18627148866653442, -0.3274781107902527, 0.15546727180480957, -0.18181301653385162, -0.14007830619812012, 0.6799876689910889, 0.1498621255159378, 0.44472736120224, 0.11700419336557388, 0.47278934717178345, 0.008193572983145714, -0.020734522491693497, 0.21938371658325195, -0.16060367226600647, 0.3265088200569153, -0.37266701459884644, 0.23641210794448853, 0.31053468585014343, 0.3984401822090149, -0.11253958195447922, -0.30030661821365356, -0.18801602721214294, 0.06316544115543365, -0.12065551429986954, 0.28560006618499756, 0.17267882823944092, -0.2515365779399872, 0.2372482866048813, 0.06468468904495239, -0.37741371989250183, -0.030924884602427483, 0.23972159624099731, -0.05254319682717323, -0.32830703258514404, -0.19415506720542908, -0.04403325542807579, -0.04289121925830841, -0.1177547425031662, -0.12237341701984406, -0.10222460329532623, -0.06049961969256401, 0.40734586119651794, -0.18012000620365143, -0.022283285856246948, 0.13104143738746643, 0.16329237818717957, 0.09161104261875153, 0.2455809861421585, -0.060087841004133224, 0.10734980553388596, -0.42935675382614136, 0.10836144536733627, 0.23061025142669678, 0.019392531365156174, 0.03872084617614746, 0.006425891071557999, 0.10225339233875275, 0.5596544146537781, 0.1537626087665558, -0.06698685884475708, -0.34945374727249146, -0.3994409143924713, -0.43014654517173767, 0.045364659279584885, 0.36191481351852417, -0.274593710899353, -0.19267721474170685, -0.22559964656829834, -0.17612947523593903, -0.11796453595161438, 0.3284713625907898, 0.48182961344718933, -0.013561547733843327, 0.15182222425937653, -0.22316600382328033, 0.10770853608846664, -0.08430805057287216, -0.1456599235534668, -0.24824479222297668, 0.07948371022939682, -0.23873452842235565, 0.17901626229286194, 0.11338535696268082, -0.6890283823013306, 0.300125390291214, -0.3057083487510681, -0.11379401385784149, 0.008293073624372482, 0.036353666335344315, -0.07377813756465912, -0.11099199950695038, 0.2830495834350586, 0.012699156999588013, -0.024833371862769127, -0.05026794224977493, -0.12376273423433304, -0.13511992990970612, 0.01235343050211668, -0.22923019528388977, -0.2775951623916626, -0.013928997330367565, 0.1285252571105957, -0.016810940578579903, 0.20330528914928436, 0.11596225202083588, 0.1687006950378418, -0.2712263762950897, -0.1288262903690338, -0.027989275753498077, 0.13941727578639984, -0.08796914666891098, -0.16762804985046387, 0.4258755147457123, 0.5617594718933105, -0.18788346648216248, -0.011663462035357952, -0.06527325510978699, -0.4448721706867218, 0.021888084709644318, 0.2667710483074188, -0.10077368468046188, 0.27995073795318604, -0.5007405877113342, 0.0761447623372078, 0.36978673934936523, -0.38229596614837646, -0.242464080452919, -0.017971031367778778, -0.14580689370632172, -0.03624029457569122, 0.04559876024723053, -0.19905738532543182, -0.07116103172302246, -0.11173899471759796, 0.4304513931274414, -0.03965478017926216, 0.10824064165353775, -0.28273850679397583, -0.15614765882492065, -0.1705927550792694, -0.04027320072054863, 0.02820729836821556, 0.08693501353263855, 0.06497399508953094, 0.18903201818466187, -0.16411946713924408, 0.15053634345531464, 0.017725231125950813, 0.0044511668384075165, 0.33847731351852417, 0.33359387516975403, 0.2531711757183075, 0.04346806928515434, -0.17014062404632568, -0.09063564985990524, 0.16041934490203857, -0.17632469534873962, 0.26045066118240356, -0.3216404318809509, -0.05868247151374817, -0.39830055832862854, -0.06218966469168663, -0.24305963516235352, -0.11298671364784241, 0.13864801824092865, 0.02771102264523506, 0.15545934438705444, 0.39966362714767456, -0.10363242775201797, 0.08665608614683151, 0.04136350378394127, 0.38689491152763367, -0.5217025876045227, 0.2882938086986542, -0.16211950778961182, -0.05699777975678444, 0.04473520442843437, 0.16505441069602966, 0.08897611498832703, -0.22642044723033905, 0.08791503310203552, 0.3215091824531555, 0.14806868135929108, 0.02542133815586567, 0.6113664507865906, -0.22602958977222443, 0.12113013863563538, -0.2721596658229828, 0.09006969630718231, -0.011643967591226101, 0.1313452124595642, 0.12880690395832062, 0.06316030025482178, 0.1652715504169464, 0.1123041883111, 0.07629319280385971, 0.14833462238311768, 0.027767272666096687, 0.3416910171508789, -0.032431796193122864, -0.07262764871120453, -0.2988245189189911, 0.2953145205974579, 0.15610003471374512, 0.22114597260951996, -0.08733825385570526, -0.2797178328037262, -0.24180570244789124, -0.22709134221076965, -0.10548268258571625, -0.009752482175827026, 0.11810128390789032, -0.30578625202178955, 0.20411333441734314, 0.21844787895679474, 0.35602086782455444, 0.19932782649993896, 0.1325496882200241, 0.16368992626667023, 0.16327132284641266, 0.12155142426490784, -0.12846313416957855, 0.09213774651288986, 0.16995947062969208, 0.0739591047167778, 0.18714818358421326, -0.14971478283405304, 0.04575800150632858, -0.3276001811027527, -0.09893391281366348, -0.1598585844039917, 0.21086393296718597, -0.13682515919208527, -0.1308038830757141, -0.36505362391471863, -0.5920039415359497, -0.24788250029087067, -0.05494983121752739, -0.46401819586753845, -0.2258249819278717, -0.12924028933048248, -0.014691965654492378, -0.04870748892426491, 0.03846314176917076, -0.3173116445541382, 0.14358419179916382, -0.08266300708055496, -0.07947047799825668, -0.20915935933589935, 0.047494594007730484, -0.048066798597574234, 0.06190800666809082, 0.3312283456325531, -0.006772863212972879, 0.33889949321746826, -0.34618112444877625, 0.11025498807430267, -0.2857082784175873, -0.3271126449108124, 0.17541787028312683, 0.12566787004470825, 0.20207253098487854, 0.17227903008460999, 0.1957675814628601, 0.07499663531780243, -0.12311677634716034, 0.3749614655971527, 0.08856619894504547, -0.10426288843154907, 0.014484054408967495, -0.022988522425293922, 0.2079499214887619, 0.0007506358087994158, -0.20677447319030762, -0.11179563403129578, -0.2796298563480377, -0.06001747027039528, 0.07530360668897629, -0.013635489158332348, 0.03799627721309662, 0.20160935819149017, 0.38526007533073425, -0.508894145488739, -0.05190477520227432, -0.08486088365316391, -0.3770298957824707, 0.31147444248199463, -0.2667351961135864, -0.29005298018455505, 0.32003462314605713, -0.23562924563884735, 0.53313809633255, -0.16575469076633453, -0.47655704617500305, 0.08593884855508804, 0.05238480120897293, 0.16051311790943146, 0.2272050678730011, -0.13700801134109497, 0.04980352148413658, 0.03149588406085968, -0.11339174956083298, 0.0020011800806969404, -0.07477317750453949, -0.33009734749794006, -0.053095873445272446, 0.49509766697883606, -0.11386456340551376, 0.050314925611019135, 0.07333679497241974, 0.4199269115924835, 0.37260374426841736, 0.15347690880298615, 0.46522057056427, 0.11670812219381332, 0.598304808139801, -0.09072577208280563, -0.19260331988334656, -0.11692243814468384, 0.01171861495822668, 0.1279616355895996, 0.07446997612714767, 0.5465226173400879, 0.19827215373516083, -0.5745588541030884, -0.39142921566963196, -0.28495198488235474, -0.32507967948913574, -0.30527547001838684, -0.19116877019405365, 0.13386107981204987, 0.08208391815423965, 0.013069876469671726, 0.08364982157945633, -0.0033112880773842335, 0.2214975208044052, 0.6827546954154968, 0.031397026032209396, 0.009650809690356255, 0.021812420338392258, 0.4009023904800415, -0.7738463282585144, 0.20678715407848358, -0.2102188915014267, 0.006306164897978306, 0.02551315352320671, 0.09632084518671036, 0.20565426349639893, -0.018410515040159225, 0.6278700232505798, 0.09966621547937393, 0.08079253137111664, -0.024640526622533798, -0.049430347979068756, -0.252708375453949, 0.08706877380609512, 0.0038772039115428925, -0.002545800991356373, 0.13381846249103546, 0.6096512079238892, -0.26296180486679077, -0.19459573924541473, 0.14874804019927979, 0.09003978222608566, -0.14678095281124115, -0.20161987841129303, -0.28165262937545776, -0.2833282947540283, -0.14636504650115967, -0.3225826621055603, -0.19489063322544098, 0.3163634240627289, 0.41109853982925415, -0.12065499275922775, 0.12044993042945862, 0.1290363073348999, 0.13255050778388977, 0.07312436401844025, 0.253537654876709, 0.14238615334033966, 0.1947266161441803, 0.41897547245025635, 0.2729948163032532, 0.2054227739572525, 0.6228638887405396, -0.22859324514865875, -0.5557929277420044, -0.137827530503273, -0.010248152539134026, 0.06610382348299026, 0.2842220962047577, -0.17861516773700714, 0.10758134722709656, 0.20942053198814392, 0.24472202360630035, -0.31892549991607666, 0.23772455751895905, 0.416623055934906, -0.04205668345093727, -0.22951503098011017, -0.2105560004711151, 0.17515435814857483, -0.10906704515218735, 0.014288755133748055, 0.5919671654701233, 0.2655678391456604, -0.030893199145793915, -0.05332529917359352, -0.07624489814043045, 0.8943359851837158, -0.305203914642334, -0.13551144301891327, 0.4126400947570801, -0.14292049407958984, 0.3268466889858246, 0.1835484653711319, 0.15979909896850586, -0.03327132761478424, 0.1485079675912857, -0.03398291766643524, 0.006211288273334503, 0.15092918276786804, -0.06660016626119614, -0.07233044505119324, 0.3700767457485199, 0.11855155974626541, -0.19964690506458282, -0.11468286067247391, 0.029846876859664917, -0.08640507608652115, 0.15772919356822968, -0.14492620527744293, 0.14607757329940796, 0.0016573378816246986, 0.6845749020576477, -0.16133596003055573, -0.18023140728473663, -0.22834055125713348, -0.11844474822282791, -0.07327661663293839, 0.011694364249706268, -0.17958079278469086, 0.010882134549319744, 0.03590860962867737, -0.4694717526435852, 0.07185477763414383, 0.11272264271974564, -0.07392983138561249, -0.10578214377164841, -0.4312482178211212, 0.23659096658229828, -0.2660600543022156, -0.40370649099349976, -0.02575678564608097, 0.09019799530506134, 0.24511462450027466, -0.025860652327537537, -0.1520773470401764, 0.06720345467329025, 0.027140434831380844, 0.005666835233569145, 0.28131428360939026, -0.08333186060190201, -0.15449173748493195, -0.03508797660470009, -0.18705521523952484, 0.07246299088001251, 0.15147987008094788, -0.19146861135959625, 0.15329007804393768, 0.26336950063705444, -0.15947692096233368, -0.41866829991340637, 0.17830537259578705, -0.09892638772726059, 0.0503908134996891, 0.39246228337287903, -0.23457470536231995, -0.3326854407787323, 0.17193126678466797, 0.3241139352321625, -0.18727539479732513, -0.12083737552165985, 0.17900562286376953, 0.11105413734912872, -0.5132269263267517, 0.06200984865427017, 0.16030561923980713, 0.42989876866340637, -0.001727826427668333, 0.0022818869911134243, 0.2556886076927185, -0.6776072382926941, -0.10107804834842682, -0.36751753091812134, -0.29239633679389954, 0.26849016547203064, -0.16591188311576843, 0.07735735177993774, -0.19279277324676514, 0.026706060394644737, 0.24028238654136658, -0.10255986452102661, -0.27446937561035156, 0.17550510168075562, -0.22481229901313782, 0.013747106306254864, 0.1955939084291458, 0.17041078209877014, 0.13594289124011993, 0.062315139919519424, 0.12038906663656235, -0.1133149117231369, -0.39008745551109314, -0.15296320617198944, 0.005296062212437391, 0.087056465446949, -0.017516620457172394, -0.1752782166004181, 0.07977141439914703, -0.15812599658966064, -0.015274638310074806, -0.160356804728508, -0.12779569625854492, 0.22341276705265045, 0.10350333154201508, -0.14178058505058289, 0.12940284609794617, -0.012022815644741058, -0.2700367271900177, 0.315338134765625, 0.1504020392894745, 0.2719040513038635, 0.26040682196617126, -0.1854819357395172, -0.2581334114074707, -0.05906753987073898, -0.09931478649377823, 0.029140597209334373, -0.04276936501264572, -0.15330499410629272, 0.26131486892700195, -0.006747700739651918, 0.03750770166516304, -0.021028263494372368, 0.23820896446704865, 0.05594035983085632, -0.16830360889434814, 0.2652595043182373, 0.44115889072418213, 0.11089833825826645, -0.32625919580459595, 0.10491691529750824, 0.1623983383178711, 0.035920411348342896, -0.04400625824928284, -0.15891937911510468, -0.25835156440734863, 0.22088555991649628, -0.014928685501217842, 0.07926516234874725, 0.1950490027666092, 0.15079757571220398, 0.3202226459980011, 0.4101892411708832, 0.21013617515563965, -0.029063411056995392, 0.30335748195648193, 0.1490907073020935, 0.0973711833357811, 0.4854162335395813, -0.14227555692195892, 0.34987926483154297, -0.6094709634780884, 0.2992950677871704, -0.01946311816573143, -0.4472797214984894, -0.04818064719438553, 0.1635998636484146, -0.05227049067616463, -0.16317102313041687, -0.1516120731830597, 0.3918916881084442, -0.1910349726676941, 0.12939463555812836, -0.14711540937423706, 0.07285583019256592, 0.006705756299197674, 0.051813822239637375, 0.12348882108926773, -0.3167690336704254, 0.06023699417710304, -0.029231412336230278, 0.28909245133399963, -0.31821057200431824, -0.12025909870862961, 0.07526847720146179, -0.09156464040279388, -0.14280717074871063, -0.2174869328737259, 0.09187177568674088, -0.020228590816259384, -0.011862760409712791, 0.15452829003334045, 0.20117433369159698, 0.04293857514858246, 0.021825887262821198, 0.19035571813583374, 0.40089261531829834, 0.04334628954529762, 0.05380949378013611, -0.12926575541496277, -0.15214803814888, -0.05239749699831009, 0.05507904291152954, 0.20609918236732483, 0.03997959941625595, 0.10836951434612274, 0.38215476274490356, 0.14202174544334412, -0.18379749357700348, -0.2758413851261139, 0.06751138716936111, 0.24999985098838806, -0.27831462025642395, 0.4672817289829254, -0.5629259347915649, 0.009647922590374947, -0.17254632711410522, -0.06416862457990646, -0.5021949410438538, 0.5542035102844238, 0.22443421185016632, -0.3633371889591217, -0.1388113647699356, -0.16076938807964325, 0.0650710016489029, 0.017087973654270172, 0.4634779095649719, 0.3883378505706787, 0.4095771610736847, -0.2445138841867447, -0.5597169399261475, -0.7324652671813965, 0.2157924771308899, -0.16816850006580353, 0.003850860521197319, -0.016579315066337585, 0.06825053691864014, -0.11442884057760239, 0.323978990316391, 0.2871301770210266, 0.08536719530820847, 0.33439552783966064, -0.10839744657278061, -0.0686182826757431, -0.16217738389968872, -0.21010345220565796, -0.026909368112683296, -0.10260009765625, -0.18482260406017303, 0.06553635001182556, -0.430375337600708, -0.010382594540715218, 0.11705862730741501, 0.13537508249282837, -0.14362572133541107, -0.09440699219703674, 0.45965754985809326, -0.03793884813785553, 0.22859492897987366, 0.047929104417562485, -0.06741756200790405, -0.1437528133392334, -0.24102593958377838, 0.21547211706638336, -0.04308607801795006, -0.03164340928196907, 0.03730815276503563, -0.2298004925251007, -0.24773618578910828, -0.20151418447494507, 0.5169577598571777, 0.1491546630859375, 0.32146868109703064, -0.056717950850725174, 0.10792695730924606, -0.04208460450172424, -0.10294582694768906, 0.25587642192840576, -0.06126770004630089, -0.1464361846446991, -0.060865554958581924, -0.13904345035552979, -0.17543378472328186, 0.6612130403518677, -0.36373424530029297, 0.16299128532409668, -0.15414638817310333, 0.03480437397956848, 0.06580108404159546, -0.24089325964450836, -0.7541182041168213, 0.28832361102104187, 0.2903975248336792, 0.3903474509716034, -0.17270508408546448, 0.15979152917861938, -0.26160138845443726, -0.09701251983642578, 0.14242786169052124, 0.046623267233371735, -0.051611270755529404, -0.05189924314618111, 0.14433541893959045, -0.024850893765687943 ]
https://github.com/huggingface/datasets/issues/2707
404 Not Found Error when loading LAMA dataset
Hi @dwil2444, thanks for reporting. Could you please confirm which `datasets` version you were using and if the problem persists after you update it to the latest version: `pip install -U datasets`? Thanks @stevhliu for the hint to fix this! ;)
The [LAMA](https://huggingface.co/datasets/viewer/?dataset=lama) probing dataset is not available for download: Steps to Reproduce: 1. `from datasets import load_dataset` 2. `dataset = load_dataset('lama', 'trex')`. Results: `FileNotFoundError: Couldn't find file locally at lama/lama.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/lama/lama.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/lama/lama.py`
41
404 Not Found Error when loading LAMA dataset The [LAMA](https://huggingface.co/datasets/viewer/?dataset=lama) probing dataset is not available for download: Steps to Reproduce: 1. `from datasets import load_dataset` 2. `dataset = load_dataset('lama', 'trex')`. Results: `FileNotFoundError: Couldn't find file locally at lama/lama.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/lama/lama.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/lama/lama.py` Hi @dwil2444, thanks for reporting. Could you please confirm which `datasets` version you were using and if the problem persists after you update it to the latest version: `pip install -U datasets`? Thanks @stevhliu for the hint to fix this! ;)
[ 0.037623386830091476, -0.24428041279315948, -0.03867753967642784, 0.6305748820304871, 0.407224178314209, 0.08833067119121552, -0.0716986358165741, 0.34890490770339966, -0.3947159945964813, 0.2646036446094513, -0.2870088815689087, 0.22050422430038452, -0.15739884972572327, -0.29622501134872437, 0.010872101411223412, -0.3568079471588135, -0.11493407189846039, -0.016995349898934364, -0.18155831098556519, 0.14895321428775787, -0.06250464171171188, 0.3521648943424225, -0.12652350962162018, 0.14866922795772552, 0.07350349426269531, 0.15039561688899994, -0.12595540285110474, 0.2814261317253113, -0.19054140150547028, -0.32471367716789246, 0.4116792380809784, -0.1972881704568863, 0.24718287587165833, 0.7875105738639832, -0.00011716943845385686, 0.14737431704998016, 0.29832372069358826, -0.16497327387332916, -0.2821422219276428, -0.3706020712852478, -0.23040169477462769, -0.0749066174030304, 0.025426050648093224, 0.04819444566965103, -0.3216996192932129, -0.012168052606284618, 0.0023314696736633778, -0.07699524611234665, 0.10064568370580673, 0.24734055995941162, 0.18179886043071747, 0.5502543449401855, 0.17999430000782013, -0.2549858093261719, 0.12390510737895966, -0.15642668306827545, -0.143259659409523, 0.6937093734741211, 0.21211682260036469, 0.49133241176605225, 0.16552823781967163, 0.4662216007709503, -0.0164645966142416, -0.00039912041393108666, 0.17522366344928741, -0.14699998497962952, 0.3066895604133606, -0.3588719964027405, 0.20230984687805176, 0.33248910307884216, 0.41279616951942444, -0.10821075737476349, -0.3176201283931732, -0.2034643590450287, 0.05434180423617363, -0.12056917697191238, 0.280148983001709, 0.21867753565311432, -0.28477707505226135, 0.2256472408771515, 0.07062128186225891, -0.40138474106788635, -0.0462254099547863, 0.2663990259170532, -0.047564804553985596, -0.3123936057090759, -0.2254798859357834, -0.04570479691028595, -0.05610094964504242, -0.12284895777702332, -0.11375251412391663, -0.13131096959114075, -0.05023106187582016, 0.4134671092033386, -0.14364750683307648, -0.002662170212715864, 0.0764181911945343, 0.19624076783657074, 0.05347384139895439, 0.21881036460399628, -0.07187890261411667, 0.11107432842254639, -0.38363489508628845, 0.09449705481529236, 0.26844990253448486, -0.008999074809253216, 0.011655165813863277, 0.05599960684776306, 0.09365704655647278, 0.5667537450790405, 0.18055884540081024, -0.04137576371431351, -0.33344635367393494, -0.39405420422554016, -0.4419759213924408, 0.021696802228689194, 0.3429945707321167, -0.24456368386745453, -0.18179038166999817, -0.2328261435031891, -0.1784704178571701, -0.14355215430259705, 0.33121028542518616, 0.4548914432525635, -0.01920395717024803, 0.1615786850452423, -0.1978379338979721, 0.09738565981388092, -0.07085961848497391, -0.15007153153419495, -0.2035822719335556, 0.05184648185968399, -0.22741451859474182, 0.18366439640522003, 0.15186913311481476, -0.7167776226997375, 0.31601443886756897, -0.24610576033592224, -0.1420820951461792, 0.016322650015354156, 0.030506236478686333, -0.09267975389957428, -0.08239246159791946, 0.28397053480148315, 0.04608558490872383, 0.016591429710388184, -0.0983634814620018, -0.15273597836494446, -0.11856436729431152, 0.047633133828639984, -0.24598054587841034, -0.24679651856422424, -0.07156392186880112, 0.08310642093420029, -0.03531254827976227, 0.2100955992937088, 0.056960105895996094, 0.1596899926662445, -0.2359338402748108, -0.1610611379146576, 0.012228298000991344, 0.10796894133090973, -0.023664075881242752, -0.16904333233833313, 0.4432068169116974, 0.5722751021385193, -0.1904917061328888, -0.02038281410932541, -0.10016001015901566, -0.4123747646808624, 0.0347052738070488, 0.2353799045085907, -0.10508351027965546, 0.32707932591438293, -0.5126182436943054, 0.009488504379987717, 0.40960732102394104, -0.4043956995010376, -0.2640870213508606, -0.014639906585216522, -0.1036582738161087, 0.016905400902032852, 0.061880968511104584, -0.22211375832557678, -0.07356962561607361, -0.07332893460988998, 0.40054330229759216, -0.05047754943370819, 0.13117384910583496, -0.28570520877838135, -0.18099406361579895, -0.1583043485879898, -0.04616804048418999, 0.027168411761522293, 0.09744090586900711, 0.027126751840114594, 0.1707298457622528, -0.17741736769676208, 0.1637759655714035, 0.02852453663945198, 0.015392203815281391, 0.3604575991630554, 0.3656585216522217, 0.30462580919265747, 0.04838752746582031, -0.18081291019916534, -0.09314059466123581, 0.13364247977733612, -0.18161873519420624, 0.213365837931633, -0.38490819931030273, -0.014410547912120819, -0.3852234482765198, -0.08000011742115021, -0.2602269649505615, -0.1229650154709816, 0.09325909614562988, 0.046089623123407364, 0.16975684463977814, 0.4013625383377075, -0.12059730291366577, 0.13327741622924805, 0.06453453749418259, 0.39402928948402405, -0.5741812586784363, 0.27759554982185364, -0.14540055394172668, -0.08512983471155167, -0.015285012312233448, 0.19776754081249237, 0.08631311357021332, -0.2329651117324829, 0.11672544479370117, 0.2829643487930298, 0.1624976545572281, -0.012236637063324451, 0.5958026647567749, -0.2751286029815674, 0.14412809908390045, -0.293301522731781, 0.07423537969589233, -0.007406183518469334, 0.12386002391576767, 0.13903211057186127, 0.006497272290289402, 0.1745624840259552, 0.09160671383142471, 0.11024905741214752, 0.1289980709552765, 0.005487462040036917, 0.34525933861732483, -0.034834880381822586, -0.11654464900493622, -0.2764839828014374, 0.34605783224105835, 0.18685588240623474, 0.2750224173069, -0.08001001924276352, -0.23353807628154755, -0.24714888632297516, -0.2247965931892395, -0.09696260094642639, 0.020594943314790726, 0.1212184950709343, -0.30041447281837463, 0.23246285319328308, 0.15404868125915527, 0.36344045400619507, 0.2016908973455429, 0.1185743436217308, 0.10717306286096573, 0.11043886840343475, 0.17240752279758453, -0.11058910191059113, 0.07493867725133896, 0.19392326474189758, 0.00811375305056572, 0.2232380509376526, -0.1277022510766983, 0.050392113626003265, -0.26901063323020935, -0.0030084450263530016, -0.15630042552947998, 0.1812727153301239, -0.14650343358516693, -0.09712167084217072, -0.3710286021232605, -0.5473517775535583, -0.29290154576301575, -0.08434142172336578, -0.4625462293624878, -0.19801442325115204, -0.18170543015003204, -0.02703685872256756, 0.03271835297346115, 0.05915597826242447, -0.292427659034729, 0.12238685041666031, -0.12172568589448929, -0.11992280185222626, -0.21571539342403412, 0.056969016790390015, -0.049864206463098526, 0.02784494310617447, 0.3217611014842987, 0.023164847865700722, 0.3310334086418152, -0.3448907732963562, 0.11463574320077896, -0.28240248560905457, -0.32512593269348145, 0.14712412655353546, 0.12416446954011917, 0.261607825756073, 0.15321683883666992, 0.21051396429538727, 0.07225082814693451, -0.11967075616121292, 0.3903248906135559, 0.13410155475139618, -0.0772341936826706, 0.007931952364742756, -0.055242713540792465, 0.23973676562309265, 0.030004369094967842, -0.19425427913665771, -0.14022435247898102, -0.2553323209285736, -0.0677698403596878, 0.05643107369542122, -0.054876092821359634, -0.030267860740423203, 0.20589765906333923, 0.35377663373947144, -0.5599408745765686, -0.04335659742355347, -0.06653553247451782, -0.371919184923172, 0.3360429108142853, -0.2776235342025757, -0.271016389131546, 0.3012782633304596, -0.27741163969039917, 0.5949878692626953, -0.15964174270629883, -0.45510825514793396, 0.14836399257183075, 0.06455511599779129, 0.16787086427211761, 0.21631093323230743, -0.11844906955957413, 0.04918264225125313, 0.021314961835741997, -0.052329760044813156, 0.013579650782048702, -0.08147238194942474, -0.3569486141204834, -0.051171429455280304, 0.5589960813522339, -0.06849697977304459, 0.07862876355648041, 0.06840924918651581, 0.47867143154144287, 0.4028768837451935, 0.13347181677818298, 0.4516439735889435, 0.08729542791843414, 0.615958034992218, -0.04390108212828636, -0.2505473792552948, -0.1680508255958557, 0.032911501824855804, 0.18022970855236053, 0.04680537059903145, 0.5635350942611694, 0.18872709572315216, -0.5760725736618042, -0.3702651262283325, -0.3555660843849182, -0.3124449849128723, -0.26663738489151, -0.17304833233356476, 0.17113548517227173, 0.1012067124247551, 0.02340978942811489, 0.05976618081331253, -0.026387225836515427, 0.20437172055244446, 0.6898043155670166, 0.0907156765460968, 0.008173462934792042, 0.03365188091993332, 0.3789704144001007, -0.7080023884773254, 0.17706625163555145, -0.19994045794010162, 0.026301143690943718, 0.022996308282017708, 0.1276688575744629, 0.2167023867368698, -0.018788563087582588, 0.6216832995414734, 0.09533016383647919, 0.041965682059526443, -0.04860924929380417, -0.029115978628396988, -0.31577610969543457, 0.09242737293243408, 0.027822334319353104, -0.020845787599682808, 0.15456728637218475, 0.5928750038146973, -0.3154579699039459, -0.19719426333904266, 0.1752249002456665, 0.13599152863025665, -0.219058096408844, -0.23175878822803497, -0.30738070607185364, -0.26235994696617126, -0.12138480693101883, -0.32690882682800293, -0.22119654715061188, 0.3113204836845398, 0.4118068516254425, -0.14191848039627075, 0.13858294486999512, 0.15231823921203613, 0.061950307339429855, 0.01664753258228302, 0.27212902903556824, 0.1267293244600296, 0.20772264897823334, 0.4207659959793091, 0.28367793560028076, 0.2216937243938446, 0.6485925912857056, -0.27845028042793274, -0.5561394095420837, -0.17264051735401154, -0.04620876535773277, 0.07593318074941635, 0.2549344599246979, -0.19427797198295593, 0.09272169321775436, 0.2109365463256836, 0.23352788388729095, -0.3187153935432434, 0.1677996814250946, 0.42476990818977356, -0.035699665546417236, -0.2502806484699249, -0.22135278582572937, 0.18251556158065796, -0.08227962255477905, 0.025487801060080528, 0.6119912266731262, 0.2791709005832672, -0.018806181848049164, -0.07844719290733337, -0.12661071121692657, 0.9042650461196899, -0.2687931954860687, -0.12948738038539886, 0.4073127806186676, -0.12766586244106293, 0.29723164439201355, 0.15402720868587494, 0.12681443989276886, -0.018084993585944176, 0.2190384566783905, -0.029741402715444565, -0.034244418144226074, 0.1612788438796997, -0.07486362010240555, -0.06641007959842682, 0.39868757128715515, 0.13743890821933746, -0.19951117038726807, -0.13387209177017212, 0.01698974333703518, -0.09665456414222717, 0.16772697865962982, -0.12971900403499603, 0.10635590553283691, -0.012541473843157291, 0.7009764313697815, -0.1536020040512085, -0.1957852840423584, -0.24917417764663696, -0.11733856052160263, -0.10560304671525955, 0.0045501491986215115, -0.19563814997673035, 0.021331340074539185, 0.05477345362305641, -0.518884003162384, 0.0887022539973259, 0.10067449510097504, -0.08014883100986481, -0.11251432448625565, -0.4400895833969116, 0.2601294219493866, -0.2693246304988861, -0.39940571784973145, -0.031932953745126724, 0.09879197180271149, 0.2109643816947937, -0.0006944498745724559, -0.16038744151592255, 0.04806627705693245, 0.02547484263777733, 0.000527887896168977, 0.29967910051345825, -0.06047540530562401, -0.13822291791439056, -0.04280482977628708, -0.18818488717079163, 0.07866392284631729, 0.1960267275571823, -0.16622284054756165, 0.12938763201236725, 0.29508545994758606, -0.13403673470020294, -0.3536820113658905, 0.14744499325752258, -0.11437536776065826, 0.05681055784225464, 0.4100632071495056, -0.23068106174468994, -0.3865358531475067, 0.19403420388698578, 0.3112264573574066, -0.1955406218767166, -0.11015018075704575, 0.21588736772537231, 0.07211223989725113, -0.5249446630477905, 0.03133024275302887, 0.19515158236026764, 0.48886165022850037, -0.004363702144473791, -0.038648154586553574, 0.2547053396701813, -0.7374972105026245, -0.1480492800474167, -0.360777348279953, -0.2593632638454437, 0.26655980944633484, -0.15159234404563904, 0.0607854463160038, -0.182542622089386, -0.03847509250044823, 0.2826070487499237, -0.08991699665784836, -0.23541109263896942, 0.20196743309497833, -0.19392503798007965, 0.04022161662578583, 0.21661284565925598, 0.17542123794555664, 0.12770108878612518, 0.05248398333787918, 0.09622247517108917, -0.12487798929214478, -0.36241692304611206, -0.13640470802783966, 0.033714987337589264, 0.10878665000200272, -0.015202432870864868, -0.12990540266036987, 0.03494279086589813, -0.18885751068592072, 0.038543716073036194, -0.1587519347667694, -0.14086784422397614, 0.20559588074684143, 0.11426462978124619, -0.11822286248207092, 0.1314357966184616, -0.017749039456248283, -0.31166768074035645, 0.33046603202819824, 0.13400454819202423, 0.2897090017795563, 0.29803675413131714, -0.1655779927968979, -0.19554243981838226, -0.030240951105952263, -0.11342301219701767, -0.009879459626972675, -0.0035831385757774115, -0.13966476917266846, 0.3032435178756714, -0.03852583095431328, 0.06210669130086899, -0.03633375093340874, 0.1861913502216339, 0.08585143834352493, -0.1964637041091919, 0.30424872040748596, 0.4258558750152588, 0.07979673147201538, -0.33164095878601074, 0.1336798220872879, 0.14834868907928467, 0.06210075318813324, -0.039026256650686264, -0.15888111293315887, -0.2443132996559143, 0.16530032455921173, 0.0001056265173247084, 0.07172463834285736, 0.2031347155570984, 0.1051308810710907, 0.3249287009239197, 0.44768190383911133, 0.24436838924884796, -0.06357347220182419, 0.2858734428882599, 0.17092208564281464, 0.04295928031206131, 0.47475552558898926, -0.12514175474643707, 0.37369075417518616, -0.618677020072937, 0.31842315196990967, -0.006749445106834173, -0.41544973850250244, -0.09514734148979187, 0.12692348659038544, -0.05725429579615593, -0.1609792560338974, -0.15947715938091278, 0.3915151059627533, -0.17743341624736786, 0.10141964256763458, -0.17260406911373138, 0.04078828915953636, 0.008249426260590553, 0.060595639050006866, 0.13440868258476257, -0.3056889772415161, 0.059601157903671265, -0.024314453825354576, 0.2929193377494812, -0.32460591197013855, -0.15941143035888672, 0.13174302875995636, -0.10522396117448807, -0.15157447755336761, -0.22826845943927765, 0.13090559840202332, -0.02334298938512802, 0.008662580512464046, 0.16069814562797546, 0.2212691605091095, 0.017765991389751434, -0.008729565888643265, 0.20353467762470245, 0.3928326368331909, 0.05822927504777908, 0.05009237676858902, -0.11590548604726791, -0.1569763720035553, -0.0361393541097641, 0.03649135306477547, 0.2557414770126343, 0.03822045400738716, 0.06777302920818329, 0.3389040231704712, 0.12149547040462494, -0.1665450483560562, -0.28207480907440186, 0.06146559864282608, 0.22724798321723938, -0.2657392621040344, 0.5067766308784485, -0.5798211097717285, -0.01984848454594612, -0.21295063197612762, -0.08595874905586243, -0.5317121744155884, 0.5941917896270752, 0.2756079137325287, -0.33961236476898193, -0.14326272904872894, -0.15959309041500092, 0.040614210069179535, 0.029021505266427994, 0.44129765033721924, 0.38154464960098267, 0.4354865550994873, -0.2590342164039612, -0.5794158577919006, -0.6965131163597107, 0.18234367668628693, -0.17879411578178406, 0.036605317145586014, -0.04860774055123329, 0.08238764852285385, -0.13353407382965088, 0.3341452181339264, 0.30720388889312744, 0.08917610347270966, 0.3979133069515228, -0.05844886973500252, -0.08075642585754395, -0.16794030368328094, -0.17810624837875366, -0.0150631507858634, -0.10680075734853745, -0.17110291123390198, 0.03876772150397301, -0.4375110864639282, -0.035699695348739624, 0.12286340445280075, 0.14469970762729645, -0.11244972795248032, -0.0667092576622963, 0.4605042636394501, -0.05492626875638962, 0.2260175496339798, 0.0524841845035553, -0.046203579753637314, -0.13379983603954315, -0.22983801364898682, 0.2762643098831177, 0.012729709036648273, -0.015146796591579914, -0.020366379991173744, -0.26149100065231323, -0.24837031960487366, -0.21036303043365479, 0.430593341588974, 0.12359596788883209, 0.29763394594192505, 0.0021890185307711363, 0.018361473456025124, -0.031073376536369324, -0.09404745697975159, 0.24427364766597748, -0.052743010222911835, -0.16626940667629242, -0.046455562114715576, -0.14769326150417328, -0.13381043076515198, 0.6335508823394775, -0.37302547693252563, 0.1740248203277588, -0.16731740534305573, 0.06669353693723679, 0.04939635470509529, -0.20804250240325928, -0.728030264377594, 0.28069496154785156, 0.3322630822658539, 0.36921119689941406, -0.1336750090122223, 0.13377727568149567, -0.2310560941696167, -0.05837525799870491, 0.130567267537117, 0.04920100420713425, -0.04030448570847511, -0.016208505257964134, 0.13046249747276306, 0.007338543422520161 ]
https://github.com/huggingface/datasets/issues/2707
404 Not Found Error when loading LAMA dataset
@stevhliu @albertvillanova updating to the latest version of datasets did in fact fix this issue. Thanks a lot for your help!
The [LAMA](https://huggingface.co/datasets/viewer/?dataset=lama) probing dataset is not available for download: Steps to Reproduce: 1. `from datasets import load_dataset` 2. `dataset = load_dataset('lama', 'trex')`. Results: `FileNotFoundError: Couldn't find file locally at lama/lama.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/lama/lama.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/lama/lama.py`
21
404 Not Found Error when loading LAMA dataset The [LAMA](https://huggingface.co/datasets/viewer/?dataset=lama) probing dataset is not available for download: Steps to Reproduce: 1. `from datasets import load_dataset` 2. `dataset = load_dataset('lama', 'trex')`. Results: `FileNotFoundError: Couldn't find file locally at lama/lama.py, or remotely at https://raw.githubusercontent.com/huggingface/datasets/1.1.2/datasets/lama/lama.py or https://s3.amazonaws.com/datasets.huggingface.co/datasets/datasets/lama/lama.py` @stevhliu @albertvillanova updating to the latest version of datasets did in fact fix this issue. Thanks a lot for your help!
[ 0.057944606989622116, -0.22567228972911835, -0.0337306447327137, 0.6018184423446655, 0.39694419503211975, 0.12284941971302032, -0.07714013755321503, 0.3927091062068939, -0.42825746536254883, 0.2528083622455597, -0.334073930978775, 0.19940917193889618, -0.143742635846138, -0.2634534537792206, 0.032960064709186554, -0.3631289005279541, -0.10555875301361084, -0.0356409065425396, -0.17823174595832825, 0.14029300212860107, -0.07738155126571655, 0.34918415546417236, -0.1713867485523224, 0.14610296487808228, 0.030564330518245697, 0.1640695482492447, -0.1523556113243103, 0.2818204164505005, -0.16763684153556824, -0.3405279517173767, 0.40349265933036804, -0.16597609221935272, 0.26678887009620667, 0.7545297741889954, -0.00011551381612662226, 0.158277690410614, 0.28715190291404724, -0.18011724948883057, -0.22589577734470367, -0.3208480775356293, -0.21813444793224335, -0.007623542100191116, 0.029934626072645187, 0.057537831366062164, -0.3109138309955597, -0.025061873719096184, 0.014786453917622566, -0.12435656785964966, 0.07845408469438553, 0.2548886835575104, 0.19966427981853485, 0.5669785141944885, 0.15794134140014648, -0.2838996350765228, 0.12108812481164932, -0.16003523766994476, -0.15506508946418762, 0.6935014128684998, 0.1979851871728897, 0.5019047856330872, 0.10769815742969513, 0.43678414821624756, 0.051214780658483505, -0.00003660911170300096, 0.1703888475894928, -0.16276535391807556, 0.30279281735420227, -0.3620830178260803, 0.22604890167713165, 0.3412950932979584, 0.41124698519706726, -0.0895615667104721, -0.3002089262008667, -0.2041233777999878, 0.06301449239253998, -0.10476399213075638, 0.28318190574645996, 0.21247385442256927, -0.27095720171928406, 0.2240070402622223, 0.059697721153497696, -0.39895641803741455, -0.03757550194859505, 0.2220337837934494, -0.06659092009067535, -0.3245234191417694, -0.2249276340007782, -0.04771915823221207, -0.06987550109624863, -0.12350740283727646, -0.1092795878648758, -0.09628165513277054, -0.04494273662567139, 0.4012904465198517, -0.2000894397497177, 0.008139449171721935, 0.098004050552845, 0.18055936694145203, 0.07189830392599106, 0.24278941750526428, -0.0923171415925026, 0.13857196271419525, -0.40705734491348267, 0.05282709747552872, 0.2572007477283478, -0.013970342464745045, 0.02449219301342964, 0.012990238144993782, 0.10609737038612366, 0.5729393362998962, 0.1416834443807602, -0.027777522802352905, -0.36550843715667725, -0.4114145040512085, -0.4233098328113556, 0.02774335816502571, 0.33148375153541565, -0.2584206759929657, -0.16572315990924835, -0.2332688421010971, -0.1796720027923584, -0.13203518092632294, 0.31180861592292786, 0.46706438064575195, 0.007098212838172913, 0.13626860082149506, -0.19499613344669342, 0.1143861934542656, -0.07240242511034012, -0.17767882347106934, -0.24211286008358002, 0.032182738184928894, -0.24019549787044525, 0.16971798241138458, 0.16673442721366882, -0.7531400322914124, 0.3183697462081909, -0.28396427631378174, -0.14984942972660065, -0.008334473706781864, 0.014448227360844612, -0.05893127992749214, -0.08033010363578796, 0.27439048886299133, 0.037179991602897644, 0.015966251492500305, -0.10511744767427444, -0.11155205965042114, -0.10970526933670044, 0.025591162964701653, -0.23604050278663635, -0.23863904178142548, -0.04296829178929329, 0.09188301116228104, -0.038621559739112854, 0.20009160041809082, 0.06250780075788498, 0.19677355885505676, -0.23702269792556763, -0.10619223862886429, -0.0301955658942461, 0.11454539000988007, -0.0816156268119812, -0.16770729422569275, 0.4616365134716034, 0.5593081712722778, -0.2058154195547104, -0.024667756631970406, -0.07579734176397324, -0.4332314729690552, 0.012862831354141235, 0.25520607829093933, -0.09844908118247986, 0.31818872690200806, -0.5351842641830444, 0.06595008820295334, 0.32405808568000793, -0.34938403964042664, -0.2325604408979416, -0.03957702964544296, -0.09581448882818222, 0.004800387658178806, 0.03160528466105461, -0.2354947328567505, -0.06029675155878067, -0.0936397835612297, 0.429836243391037, -0.027584144845604897, 0.12463616579771042, -0.28726890683174133, -0.1498781144618988, -0.15848533809185028, -0.04586125910282135, 0.04324693977832794, 0.10697682946920395, 0.04843941330909729, 0.1735408455133438, -0.15353110432624817, 0.18481799960136414, 0.048717331141233444, 0.018519064411520958, 0.3353232443332672, 0.31995609402656555, 0.2681531310081482, 0.05230919271707535, -0.14468008279800415, -0.1134745255112648, 0.164201021194458, -0.1607922464609146, 0.23383162915706635, -0.3601337969303131, -0.012170547619462013, -0.39533108472824097, -0.061814699321985245, -0.2387170046567917, -0.14594727754592896, 0.108727365732193, 0.04982606694102287, 0.1492777019739151, 0.4205014109611511, -0.1292727142572403, 0.1097557321190834, 0.047861289232969284, 0.38248389959335327, -0.5560263991355896, 0.26856377720832825, -0.13298431038856506, -0.07263800501823425, 0.043146200478076935, 0.17572741210460663, 0.06376907974481583, -0.24541185796260834, 0.07924085855484009, 0.2824501693248749, 0.1595967561006546, 0.0057041761465370655, 0.5873305201530457, -0.2710197865962982, 0.12329216301441193, -0.3047969937324524, 0.06468334048986435, 0.004443690180778503, 0.1039254367351532, 0.12042959779500961, 0.0022748166229575872, 0.21720995008945465, 0.11708669364452362, 0.07933445274829865, 0.11733666807413101, 0.04205929860472679, 0.35932886600494385, -0.03935336694121361, -0.08840551972389221, -0.26600760221481323, 0.3219721019268036, 0.19953937828540802, 0.27810364961624146, -0.0838949903845787, -0.26050710678100586, -0.24626418948173523, -0.22696733474731445, -0.09558887779712677, 0.022151468321681023, 0.1218469887971878, -0.32480138540267944, 0.20219255983829498, 0.19158925116062164, 0.35608136653900146, 0.18363451957702637, 0.10893598943948746, 0.14588585495948792, 0.13454818725585938, 0.13291382789611816, -0.1289663463830948, 0.06203966587781906, 0.17203743755817413, 0.0370381735265255, 0.18934579193592072, -0.1400744915008545, 0.040612272918224335, -0.31716009974479675, -0.020347120240330696, -0.11832871288061142, 0.19154049456119537, -0.1601589024066925, -0.14113463461399078, -0.37985122203826904, -0.557711124420166, -0.2689436674118042, -0.046979039907455444, -0.45198607444763184, -0.22897590696811676, -0.16177290678024292, -0.029615527018904686, -0.014888492412865162, 0.0779268741607666, -0.33014020323753357, 0.1626652181148529, -0.08769989013671875, -0.07232137769460678, -0.22589966654777527, 0.07858587801456451, -0.04884394258260727, 0.04004959389567375, 0.32761266827583313, -0.0029401308856904507, 0.3127986788749695, -0.348784476518631, 0.12781178951263428, -0.281144380569458, -0.3291569948196411, 0.159287229180336, 0.1283324658870697, 0.22069846093654633, 0.13357141613960266, 0.2108578383922577, 0.08320780843496323, -0.11418576538562775, 0.35805219411849976, 0.08156900852918625, -0.09784473478794098, 0.002684107981622219, -0.023812472820281982, 0.23145751655101776, 0.03207308053970337, -0.2025592029094696, -0.10740433633327484, -0.2520039677619934, -0.06852385401725769, 0.04939833655953407, -0.04994434118270874, 0.006883211899548769, 0.18087293207645416, 0.3758723735809326, -0.531543493270874, -0.06250695139169693, -0.09594856947660446, -0.4061952531337738, 0.3328712582588196, -0.29456010460853577, -0.31114986538887024, 0.3056974411010742, -0.26410111784935, 0.563758373260498, -0.15873515605926514, -0.46556246280670166, 0.19951114058494568, 0.05023782700300217, 0.18199963867664337, 0.23394688963890076, -0.14301714301109314, 0.035451292991638184, -0.0009083501645363867, -0.07460052520036697, -0.0022464084904640913, -0.07925503700971603, -0.3318122625350952, -0.05629846826195717, 0.5509483814239502, -0.09798667579889297, 0.041127562522888184, 0.11342496424913406, 0.40319597721099854, 0.3871580958366394, 0.12850342690944672, 0.4658765494823456, 0.10687220841646194, 0.6118930578231812, -0.04721905663609505, -0.20560239255428314, -0.11985471099615097, 0.019816739484667778, 0.1720658391714096, 0.08316496014595032, 0.56363844871521, 0.17241278290748596, -0.5466658473014832, -0.3913596570491791, -0.30366379022598267, -0.33727261424064636, -0.28231367468833923, -0.20804926753044128, 0.1505242884159088, 0.10039452463388443, 0.02664274163544178, 0.07064135372638702, -0.014652936719357967, 0.22965045273303986, 0.6586834788322449, 0.08534226566553116, -0.0068983957171440125, 0.024184679612517357, 0.4207141697406769, -0.7590504884719849, 0.181244894862175, -0.23696869611740112, 0.06420182436704636, 0.02938714623451233, 0.10576697438955307, 0.2163589745759964, -0.003922759555280209, 0.6508569121360779, 0.10210311412811279, 0.10048998147249222, -0.03306032717227936, -0.03834084793925285, -0.31309741735458374, 0.0892239511013031, 0.017764361575245857, -0.020539337769150734, 0.15222853422164917, 0.6132916212081909, -0.2646586000919342, -0.20380046963691711, 0.15800592303276062, 0.11168356239795685, -0.198992058634758, -0.2295607179403305, -0.2762853503227234, -0.2647714614868164, -0.12348365038633347, -0.3163939118385315, -0.21085351705551147, 0.3021588623523712, 0.40224090218544006, -0.1270832121372223, 0.11525606364011765, 0.12072507292032242, 0.0784330666065216, 0.04213752970099449, 0.23885193467140198, 0.19566240906715393, 0.2288535237312317, 0.43086791038513184, 0.2876802086830139, 0.21006040275096893, 0.6384993195533752, -0.23985925316810608, -0.5860438346862793, -0.12277775257825851, -0.05112834647297859, 0.06981880217790604, 0.25868868827819824, -0.21006831526756287, 0.08586408197879791, 0.1925000101327896, 0.22094330191612244, -0.34363099932670593, 0.2258489429950714, 0.4244186282157898, -0.034465301781892776, -0.24821344017982483, -0.20887142419815063, 0.16940180957317352, -0.11923381686210632, 0.017805011942982674, 0.5995389223098755, 0.2700917422771454, -0.026440802961587906, -0.04899848625063896, -0.10915824770927429, 0.8627336621284485, -0.3173600733280182, -0.1430608481168747, 0.3974967896938324, -0.13694027066230774, 0.2823214828968048, 0.20007304847240448, 0.11651381850242615, -0.025203613564372063, 0.17427349090576172, -0.017088351771235466, -0.018244454637169838, 0.14426665008068085, -0.07403821498155594, -0.028407083824276924, 0.35104089975357056, 0.12942597270011902, -0.23276099562644958, -0.10225594788789749, 0.03417648375034332, -0.06307590752840042, 0.1457245796918869, -0.119237519800663, 0.1204877719283104, 0.0023407877888530493, 0.6824353337287903, -0.1257651150226593, -0.18499429523944855, -0.20928026735782623, -0.09097553044557571, -0.10111317038536072, 0.03430209681391716, -0.15159276127815247, 0.029892001301050186, 0.03620395064353943, -0.47075963020324707, 0.1246272623538971, 0.10194773226976395, -0.054782915860414505, -0.11864102631807327, -0.4549558162689209, 0.28343966603279114, -0.25646501779556274, -0.39107316732406616, -0.03253784403204918, 0.10195483267307281, 0.23474419116973877, 0.010864571668207645, -0.14539991319179535, 0.06579995900392532, 0.05132374167442322, -0.007698928005993366, 0.2702142894268036, -0.08341474086046219, -0.14983031153678894, -0.039501797407865524, -0.16116684675216675, 0.05723648518323898, 0.18780294060707092, -0.19460906088352203, 0.14141255617141724, 0.29218927025794983, -0.13587820529937744, -0.3849090337753296, 0.15586526691913605, -0.12163317948579788, 0.04630376771092415, 0.4255722463130951, -0.24248287081718445, -0.3623391389846802, 0.19135655462741852, 0.33844736218452454, -0.1666400134563446, -0.10544741153717041, 0.2395017296075821, 0.10636267811059952, -0.5258743762969971, 0.05448102951049805, 0.1539386361837387, 0.4710281193256378, -0.01939302496612072, -0.003768396330997348, 0.23193876445293427, -0.7504908442497253, -0.10914194583892822, -0.3552948534488678, -0.28996601700782776, 0.24946177005767822, -0.21339082717895508, 0.07850145548582077, -0.19590803980827332, 0.019029347226023674, 0.2596181631088257, -0.06808466464281082, -0.24873821437358856, 0.21405385434627533, -0.20452134311199188, 0.011654367670416832, 0.16299255192279816, 0.18183979392051697, 0.13228459656238556, 0.048519715666770935, 0.10222840309143066, -0.09280212968587875, -0.3593692183494568, -0.13953395187854767, -0.005581967066973448, 0.09575783461332321, -0.008807712234556675, -0.11008798331022263, 0.049774087965488434, -0.17504629492759705, -0.014561810530722141, -0.15716303884983063, -0.1505519300699234, 0.2373262494802475, 0.1356774866580963, -0.11252888292074203, 0.16059574484825134, -0.04964606463909149, -0.28928273916244507, 0.3091968894004822, 0.15574675798416138, 0.265500545501709, 0.2623184621334076, -0.17233502864837646, -0.2354276031255722, -0.04311102256178856, -0.13496005535125732, 0.018605461344122887, -0.04056520387530327, -0.13812489807605743, 0.28751614689826965, -0.020358597859740257, 0.04281241446733475, -0.03272425755858421, 0.20530177652835846, 0.07514559477567673, -0.1998058259487152, 0.28199779987335205, 0.4231080710887909, 0.08534792065620422, -0.34148186445236206, 0.1376572996377945, 0.12283042073249817, 0.05778653174638748, -0.05285334214568138, -0.1804598718881607, -0.24738550186157227, 0.19403764605522156, -0.018629588186740875, 0.04206126555800438, 0.2001725733280182, 0.15390361845493317, 0.33456557989120483, 0.415213942527771, 0.2362951785326004, -0.06609316170215607, 0.3193455636501312, 0.16582150757312775, 0.06525474786758423, 0.49296775460243225, -0.10179078578948975, 0.35455188155174255, -0.6261978149414062, 0.31194618344306946, 0.01612774096429348, -0.42761480808258057, -0.07344849407672882, 0.1491999328136444, -0.0892673134803772, -0.14754542708396912, -0.1491675078868866, 0.4075736403465271, -0.17820611596107483, 0.09093194454908371, -0.1822095513343811, 0.039820339530706406, 0.007886875420808792, 0.0420844592154026, 0.124930739402771, -0.31949931383132935, 0.06909971684217453, -0.01048110518604517, 0.2825874984264374, -0.3300524950027466, -0.13212092220783234, 0.10353207588195801, -0.10194344818592072, -0.15430034697055817, -0.22642742097377777, 0.1020384430885315, -0.016567615792155266, 0.006533859297633171, 0.1416332721710205, 0.19482047855854034, 0.02239149622619152, 0.042254820466041565, 0.18140186369419098, 0.3701477348804474, 0.02525203302502632, 0.06330563127994537, -0.11174720525741577, -0.13095885515213013, -0.03375831991434097, 0.041667260229587555, 0.24964144825935364, 0.07430284470319748, 0.07412634789943695, 0.3713854253292084, 0.12138870358467102, -0.15664783120155334, -0.2803471088409424, 0.09279676526784897, 0.25602221488952637, -0.24451762437820435, 0.4824366569519043, -0.5761265158653259, 0.005579027347266674, -0.18509534001350403, -0.09213147312402725, -0.4762139320373535, 0.5811571478843689, 0.24588090181350708, -0.3841911852359772, -0.13724778592586517, -0.1609368920326233, 0.05347144231200218, 0.01090322621166706, 0.4640224575996399, 0.3801371455192566, 0.4002387821674347, -0.247338205575943, -0.5967437624931335, -0.7138708829879761, 0.20299680531024933, -0.12870745360851288, 0.014065123163163662, -0.016894161701202393, 0.09791190922260284, -0.10944058001041412, 0.32119327783584595, 0.2787206768989563, 0.09092579782009125, 0.3800649642944336, -0.0781400054693222, -0.08953867107629776, -0.15599405765533447, -0.20072777569293976, -0.006340940482914448, -0.12186431139707565, -0.15366533398628235, 0.0666210725903511, -0.4474487006664276, -0.03139279782772064, 0.131427600979805, 0.13802318274974823, -0.11379484832286835, -0.05849122256040573, 0.4580972492694855, -0.045488569885492325, 0.21344147622585297, 0.036204736679792404, -0.03443896397948265, -0.17633184790611267, -0.23219750821590424, 0.24595114588737488, -0.02334103174507618, -0.03815487399697304, 0.004017195198684931, -0.23015043139457703, -0.23830494284629822, -0.20278294384479523, 0.4307767450809479, 0.14551030099391937, 0.29889991879463196, -0.0486849807202816, 0.07911193370819092, -0.027855873107910156, -0.08894023299217224, 0.2718876898288727, -0.023565590381622314, -0.17768315970897675, -0.05724721401929855, -0.1270519345998764, -0.15261082351207733, 0.6423471570014954, -0.388325572013855, 0.16754773259162903, -0.15079796314239502, 0.04554789140820503, 0.041721686720848083, -0.21818530559539795, -0.7388224005699158, 0.2959373891353607, 0.31846722960472107, 0.37564608454704285, -0.15932025015354156, 0.14445385336875916, -0.23463958501815796, -0.06979934871196747, 0.13745296001434326, 0.07604947686195374, -0.03250580281019211, -0.03832710161805153, 0.12420227378606796, -0.015437725000083447 ]
https://github.com/huggingface/datasets/issues/2705
404 not found error on loading WIKIANN dataset
Hi @ronbutan, thanks for reporting. You are right: we have recently found that the link to the original PAN-X dataset (also called WikiANN), hosted at Dropbox, is no longer working. We have opened an issue in the GitHub repository of the original dataset (afshinrahimi/mmner#4) and we have also contacted the author by email to ask if they are planning to fix this issue. See the details here: https://github.com/huggingface/datasets/issues/2691#issuecomment-885463027 I close this issue because it is the same as in #2691. Feel free to subscribe to that other issue to be informed about any updates.
## Describe the bug Unable to retreive wikiann English dataset ## Steps to reproduce the bug ```python from datasets import list_datasets, load_dataset, list_metrics, load_metric WIKIANN = load_dataset("wikiann","en") ``` ## Expected results Colab notebook should display successful download status ## Actual results FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/12h3qqog6q4bjve/panx_dataset.tar?dl=1 ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.10.1 - Platform: Linux-5.4.104+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.11 - PyArrow version: 3.0.0
94
404 not found error on loading WIKIANN dataset ## Describe the bug Unable to retreive wikiann English dataset ## Steps to reproduce the bug ```python from datasets import list_datasets, load_dataset, list_metrics, load_metric WIKIANN = load_dataset("wikiann","en") ``` ## Expected results Colab notebook should display successful download status ## Actual results FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/12h3qqog6q4bjve/panx_dataset.tar?dl=1 ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.10.1 - Platform: Linux-5.4.104+-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.11 - PyArrow version: 3.0.0 Hi @ronbutan, thanks for reporting. You are right: we have recently found that the link to the original PAN-X dataset (also called WikiANN), hosted at Dropbox, is no longer working. We have opened an issue in the GitHub repository of the original dataset (afshinrahimi/mmner#4) and we have also contacted the author by email to ask if they are planning to fix this issue. See the details here: https://github.com/huggingface/datasets/issues/2691#issuecomment-885463027 I close this issue because it is the same as in #2691. Feel free to subscribe to that other issue to be informed about any updates.
[ -0.19832666218280792, 0.014373905956745148, 0.0021063382737338543, 0.23605599999427795, 0.03386008366942406, 0.06316622346639633, 0.054253194481134415, 0.1971951723098755, -0.023260215297341347, 0.18440160155296326, -0.19901706278324127, 0.34823155403137207, 0.18891017138957977, -0.03520495444536209, 0.13873949646949768, -0.25179624557495117, 0.02969345636665821, 0.2635376751422882, 0.05810757353901863, -0.09758906066417694, -0.21162965893745422, 0.1820751428604126, -0.4031836986541748, 0.24550199508666992, -0.14337371289730072, -0.004809522069990635, 0.02790127694606781, 0.1099601611495018, -0.3365817964076996, -0.26902344822883606, 0.37991514801979065, -0.2225334346294403, 0.32790347933769226, 0.6063833236694336, -0.00011096092930529267, -0.07591471076011658, 0.44588086009025574, 0.10000988841056824, -0.3918362855911255, -0.40558308362960815, -0.4237228333950043, -0.09749128669500351, -0.008899036794900894, -0.2199466973543167, -0.033632468432188034, -0.35189756751060486, -0.02636002190411091, 0.046449437737464905, 0.10877620428800583, 0.4080132842063904, 0.21612100303173065, 0.3451707363128662, 0.1994795799255371, -0.07589855045080185, 0.11122351139783859, -0.20418010652065277, -0.29388687014579773, 0.24858863651752472, 0.3716218173503876, 0.01931791938841343, 0.21474245190620422, 0.4076727628707886, -0.012935343198478222, -0.11919326335191727, 0.0002603499742690474, 0.0962102860212326, -0.2352767288684845, -0.3271327316761017, 0.1940368115901947, 0.41933825612068176, 0.7381360530853271, -0.07732493430376053, -0.31655818223953247, -0.10834210366010666, 0.19985650479793549, -0.1682267040014267, 0.2259470522403717, -0.025078799575567245, -0.12835943698883057, 0.210465669631958, 0.1944340020418167, -0.3695300221443176, -0.15033644437789917, 0.28802746534347534, -0.06775413453578949, 0.6986861228942871, -0.029351061210036278, 0.01861850917339325, -0.1005323976278305, -0.20149356126785278, 0.6673575043678284, -0.07950068265199661, 0.1071670800447464, 0.09523787349462509, -0.10105957090854645, -0.007474177051335573, 0.07825354486703873, 0.2704422175884247, 0.09745687246322632, -0.5342890024185181, 0.08907050639390945, 0.07139037549495697, -0.17264901101589203, 0.12932710349559784, 0.09667260199785233, 0.4672057032585144, 0.11363673955202103, 0.05960649251937866, 0.32310935854911804, 0.5634961128234863, -0.05617376044392586, -0.08622787147760391, -0.22024831175804138, 0.03667579963803291, 0.07653926312923431, -0.12122301012277603, 0.2347899079322815, -0.2797556221485138, -0.17787545919418335, 0.11101527512073517, 0.010496200993657112, -0.11178386956453323, 0.13407444953918457, 0.33433982729911804, -0.05209806561470032, 0.46857354044914246, -0.10902497917413712, -0.03539234399795532, -0.2961291968822479, -0.014134851284325123, -0.12278061360120773, 0.22994665801525116, -0.2976325750350952, -0.030436675995588303, 0.01770392246544361, -0.0002726181410253048, 0.37456104159355164, -0.10934744030237198, 0.26856544613838196, -0.07992733269929886, 0.04724070057272911, -0.05898077040910721, -0.16804024577140808, 0.2072969526052475, 0.18564599752426147, 0.09388910979032516, -0.03930190950632095, -0.5908214449882507, -0.003734579775482416, 0.25002866983413696, -0.5024213194847107, -0.11108008027076721, -0.3087926208972931, 0.2074565440416336, -0.039415258914232254, -0.09533921629190445, -0.2219093143939972, 0.08939912915229797, -0.12525643408298492, -0.2733161151409149, -0.048346858471632004, -0.15643243491649628, -0.07152626663446426, -0.07148683816194534, 0.0706886500120163, 0.15402984619140625, -0.39549872279167175, -0.0663112998008728, -0.015067649073898792, 0.09245102852582932, 0.010231440886855125, 0.2509193420410156, -0.2897428572177887, 0.18052944540977478, -0.40870964527130127, 0.299485445022583, 0.4748592674732208, -0.6277831196784973, -0.47029513120651245, -0.15518498420715332, -0.21839389204978943, 0.1764794886112213, -0.1732214242219925, -0.13972121477127075, 0.06231958791613579, -0.024624045938253403, 0.3741481602191925, 0.2529844343662262, 0.1814846247434616, -0.1765975058078766, -0.33728083968162537, -0.26272958517074585, -0.1873220056295395, 0.05449727922677994, 0.27011772990226746, -0.09657829999923706, 0.2220112681388855, 0.09778798371553421, 0.21856003999710083, -0.3049601912498474, -0.035281382501125336, 0.37089473009109497, 0.27774542570114136, 0.002974999835714698, 0.04270185902714729, -0.16318279504776, -0.24017764627933502, 0.23565004765987396, -0.06516938656568527, 0.22635072469711304, -0.1303497701883316, -0.17326603829860687, -0.5030012130737305, 0.02821570821106434, -0.41248658299446106, 0.01180354319512844, 0.20276959240436554, 0.06397292017936707, -0.09518931061029434, 0.3821224868297577, -0.12547853589057922, 0.05538326874375343, -0.0648607537150383, 0.059066303074359894, -0.14258509874343872, 0.30040115118026733, -0.2772378623485565, 0.052143748849630356, 0.009965680539608002, 0.3501998782157898, 0.3246394395828247, 0.06505055725574493, -0.05871916189789772, 0.1411346197128296, -0.27383163571357727, -0.008421051315963268, 0.6433113217353821, -0.08431089669466019, 0.25592127442359924, -0.46607711911201477, 0.21869520843029022, 0.06542294472455978, 0.18413975834846497, 0.03611018881201744, -0.04124823212623596, 0.21956151723861694, 0.2949729859828949, 0.1033337190747261, 0.16457965970039368, 0.07502006739377975, 0.392426997423172, -0.2022893875837326, 0.04770282655954361, -0.3806106150150299, 0.15937820076942444, -0.2764970660209656, 0.1574198603630066, -0.19358888268470764, -0.2063789963722229, 0.24189350008964539, 0.41384416818618774, -0.24434244632720947, 0.22664229571819305, 0.15896664559841156, -0.2687549293041229, -0.057377010583877563, 0.21651750802993774, 0.3593731224536896, 0.3308877646923065, 0.15745723247528076, 0.37515100836753845, 0.07560510188341141, -0.061922285705804825, -0.028679313138127327, 0.21858856081962585, -0.038572296500205994, 0.13424010574817657, 0.25941023230552673, 0.21805012226104736, 0.005973463412374258, -0.33778461813926697, -0.23733417689800262, -0.14963677525520325, 0.20967094600200653, -0.04744834825396538, -0.03733093664050102, -0.28403764963150024, -0.23944620788097382, -0.09973306953907013, -0.1130315363407135, -0.19366350769996643, -0.43246936798095703, 0.037659455090761185, 0.0136797446757555, 0.18238046765327454, 0.16215309500694275, -0.16801074147224426, -0.09756245464086533, -0.06431092321872711, -0.10691269487142563, -0.3256935775279999, -0.021321825683116913, -0.4002251923084259, 0.055016808211803436, 0.13995882868766785, 0.011889555491507053, 0.04373561218380928, -0.4289548099040985, 0.04449412226676941, -0.39280182123184204, -0.4904257655143738, 0.31522199511528015, -0.0062965829856693745, 0.3915444314479828, -0.07437019795179367, 0.2267783135175705, -0.0817343071103096, -0.1939721554517746, 0.24165098369121552, -0.3259666860103607, 0.05697143077850342, -0.0268687941133976, -0.08117736876010895, -0.02012312225997448, 0.1438264548778534, -0.24768075346946716, -0.36244285106658936, -0.09889832139015198, -0.322359174489975, -0.11302532255649567, -0.028317833319306374, 0.16638417541980743, 0.08704029768705368, 0.2570314407348633, -0.0655413419008255, -0.19781751930713654, -0.29992586374282837, -0.2391168773174286, 0.45303770899772644, -0.21171988546848297, -0.2243976593017578, 0.25397777557373047, -0.11932297050952911, 0.2886124551296234, -0.24184389412403107, -0.5117620825767517, -0.4658154249191284, -0.07484264671802521, 0.4123660922050476, 0.09361539781093597, 0.09906712919473648, 0.20168347656726837, 0.055969592183828354, -0.055473167449235916, -0.07694220542907715, -0.19395799934864044, -0.3744460344314575, 0.08711303770542145, 0.43364036083221436, -0.02948416769504547, 0.011089617386460304, 0.05805100128054619, 0.4314292371273041, 0.1037609651684761, 0.3736896514892578, 0.40792474150657654, 0.07399220019578934, 0.4846550226211548, -0.1832885593175888, -0.17954730987548828, -0.004560812376439571, -0.16733907163143158, -0.18428203463554382, 0.13886573910713196, 0.36081334948539734, -0.4884895384311676, -0.3888814449310303, -0.20705653727054596, -0.5439018607139587, -0.25461068749427795, -0.25338509678840637, 0.34864261746406555, -0.012165413238108158, 0.2779344916343689, 0.08119546622037888, -0.1389022022485733, -0.1706610769033432, 0.03346926346421242, 0.4500012993812561, -0.11775142699480057, 0.011663099750876427, -0.3267327547073364, -0.0038246032781898975, -0.5948862433433533, 0.12459772080183029, -0.0487171933054924, 0.46344757080078125, 0.019350741058588028, 0.16495123505592346, 0.12430165708065033, -0.13934993743896484, 0.1326625496149063, -0.5171253085136414, 0.07150335609912872, 0.017451969906687737, 0.29447507858276367, -0.10080593824386597, -0.029944494366645813, -0.12415243685245514, -0.021814407780766487, 0.08833098411560059, 0.33946311473846436, -0.19617705047130585, -0.05453690141439438, 0.4282606542110443, 0.30958864092826843, -0.07252270728349686, -0.02787589468061924, -0.23788969218730927, -0.6871278882026672, -0.04889377951622009, -0.1485823392868042, -0.0068679810501635075, 0.1395154893398285, 0.06602195650339127, 0.005603554658591747, 0.00020042486721649766, 0.1595853567123413, -0.012886999174952507, 0.24138619005680084, 0.11817523092031479, 0.16874617338180542, -0.08369320631027222, 0.08700152486562729, -0.03828876465559006, 0.248838871717453, 0.47206565737724304, -0.13612574338912964, -0.5144058465957642, -0.24390794336795807, -0.08874703198671341, 0.059064142405986786, 0.24649390578269958, -0.1293630599975586, -0.23279541730880737, 0.04099339246749878, 0.1670072078704834, 0.19614234566688538, 0.21501865983009338, 0.3455316722393036, 0.23008574545383453, -0.5121198296546936, -0.09485926479101181, 0.3955670893192291, 0.040389519184827805, -0.021568335592746735, 0.40985164046287537, 0.1562860906124115, -0.21896861493587494, 0.18638302385807037, -0.0732673779129982, 1.0719256401062012, -0.09111268818378448, 0.21139797568321228, 0.36070454120635986, -0.16902150213718414, 0.08085191994905472, 0.06972086429595947, 0.09890971332788467, -0.14436876773834229, -0.21362702548503876, -0.13772223889827728, 0.049316950142383575, 0.013337554410099983, -0.249615877866745, -0.17790642380714417, 0.46819770336151123, 0.0500933900475502, 0.2999771535396576, 0.37433597445487976, 0.21240568161010742, -0.1332147717475891, -0.08354053646326065, -0.1145634576678276, 0.11672845482826233, -0.11611347645521164, 0.16362930834293365, -0.2745770812034607, -0.036117952316999435, -0.06918023526668549, -0.12782998383045197, -0.21919378638267517, 0.18463581800460815, -0.21503880620002747, 0.0012126135407015681, -0.2951928675174713, -0.6971206068992615, -0.08813679218292236, 0.43817374110221863, -0.08142098784446716, 0.14375711977481842, -0.33212825655937195, 0.3885343670845032, -0.12054356932640076, 0.01943901926279068, 0.04330522194504738, -0.4239305853843689, 0.04854293167591095, -0.07400963455438614, -0.45608600974082947, 0.04653484746813774, -0.002385610481724143, 0.08682698011398315, -0.1821134239435196, 0.09334282577037811, 0.002548909280449152, -0.009811771102249622, -0.10353769361972809, 0.1148664578795433, 0.12167496979236603, -0.41138389706611633, 0.1354813426733017, -0.11525405198335648, -0.06806664913892746, -0.049267951399087906, 0.21874092519283295, -0.23285146057605743, -0.010587355121970177, 0.2659337818622589, 0.052638664841651917, -0.17030109465122223, 0.23563574254512787, 0.030228037387132645, -0.25313493609428406, -0.1517297327518463, 0.005412726663053036, -0.17494311928749084, -0.3292523920536041, -0.17287343740463257, 0.04999372363090515, 0.07073042541742325, -0.24539263546466827, 0.2282729297876358, 0.19843000173568726, -0.24769221246242523, -0.11966077238321304, -0.4557783305644989, -0.07028500735759735, 0.26367321610450745, 0.015657790005207062, 0.12527592480182648, 0.035110361874103546, -0.15455938875675201, 0.01714169606566429, -0.18995292484760284, -0.3249896466732025, 0.13028189539909363, -0.1726173311471939, -0.10024537891149521, -0.061115603893995285, -0.001017228001728654, 0.27943918108940125, -0.012363310903310776, 0.16070619225502014, -0.06857467442750931, 0.05064542964100838, -0.17117710411548615, -0.04071778059005737, 0.11010286211967468, 0.13962653279304504, -0.09979104995727539, -0.013323284685611725, -0.29902011156082153, 0.16170190274715424, -0.2171313464641571, -0.018371228128671646, 0.20072923600673676, 0.06660307198762894, -0.007603675592690706, 0.20762856304645538, 0.15148194134235382, -0.0018378958338871598, 0.3704829812049866, 0.17045311629772186, 0.2995701730251312, 0.05928783118724823, 0.0869317427277565, 0.1470433473587036, 0.15853440761566162, 0.2571719288825989, -0.11941955983638763, -0.19190376996994019, 0.4616599380970001, 0.33683672547340393, -0.3351193070411682, 0.11515823751688004, 0.18227709829807281, 0.1819806843996048, 0.2565380036830902, -0.23510991036891937, -0.1691008359193802, 0.3897414803504944, 0.23370598256587982, -0.4088408052921295, -0.2705039083957672, 0.7051087617874146, 0.13844622671604156, 0.019532762467861176, 0.17637912929058075, 0.14711441099643707, -0.16894903779029846, 0.09905114024877548, -0.04300224781036377, 0.4494205117225647, 0.1409202516078949, 0.22152458131313324, 0.25713467597961426, 0.004680134821683168, 0.18894757330417633, 0.29085615277290344, 0.06058154255151749, -0.007808346766978502, 0.5327869057655334, -0.04777058586478233, 0.31201499700546265, -0.09006883949041367, 0.5175079107284546, -0.3650617301464081, -0.16091763973236084, 0.13851945102214813, -0.27048173546791077, 0.08757900446653366, 0.08422907441854477, 0.013295992277562618, -0.17403678596019745, -0.03492293134331703, 0.15465185046195984, -0.17054374516010284, 0.09714359790086746, -0.2005712240934372, -0.0337069034576416, -0.17426550388336182, -0.3630826771259308, 0.3250049948692322, -0.07058072090148926, 0.03454631567001343, 0.05864232778549194, -0.28984570503234863, 0.14238741993904114, -0.09714530408382416, -0.09245893359184265, 0.07285866886377335, 0.3994550406932831, 0.11106627434492111, -0.013152653351426125, 0.33746573328971863, 0.32098543643951416, 0.2688961327075958, -0.35773226618766785, 0.33981046080589294, 0.37191906571388245, 0.13484306633472443, -0.27989789843559265, -0.052665118128061295, 0.024911213666200638, -0.12452682852745056, -0.07728175818920135, 0.04380128160119057, 0.16288307309150696, 0.0021941978484392166, 0.2933054566383362, 0.1943156123161316, -0.22423355281352997, 0.3932962715625763, -0.011173224076628685, -0.03381030634045601, -0.05374471843242645, -0.446410596370697, -0.07815330475568771, -0.07924501597881317, -0.3510483205318451, -0.00943558756262064, -0.226438969373703, 0.6084113121032715, 0.48032069206237793, -0.1324388086795807, 0.06563275307416916, -0.14732100069522858, 0.07006483525037766, 0.10076479613780975, 0.18666982650756836, 0.5567755699157715, 0.04886765033006668, -0.19498832523822784, -0.2805476188659668, -0.8394190073013306, 0.21461132168769836, -0.41841569542884827, -0.2192976176738739, 0.12834560871124268, -0.15781666338443756, -0.18908008933067322, 0.10426408797502518, 0.48049396276474, 0.4738735556602478, 0.1469685137271881, 0.2053224891424179, -0.3954741060733795, -0.3286798596382141, 0.2986511290073395, 0.0961935818195343, -0.08352745324373245, -0.2910257875919342, -0.06355234980583191, 0.059311315417289734, -0.009148878045380116, -0.021053394302725792, 0.00023209927894640714, -0.2736734449863434, -0.4789513945579529, 0.6185747385025024, 0.20023488998413086, 0.13023793697357178, -0.20664069056510925, -0.22193561494350433, -0.0627419650554657, -0.2315332442522049, -0.057964347302913666, 0.20540910959243774, 0.12755505740642548, 0.10051023215055466, -0.031124884262681007, 0.006656539160758257, -0.23744897544384003, 0.14022111892700195, 0.1548161506652832, 0.19144190847873688, -0.20156966149806976, 0.12493476271629333, 0.07308157533407211, 0.04568304494023323, 0.11385349184274673, 0.33278217911720276, -0.18592257797718048, 0.23621994256973267, -0.005230390466749668, -0.467592716217041, 0.48623183369636536, -0.022763440385460854, -0.3595174551010132, -0.09219576418399811, 0.10791104286909103, -0.0812983438372612, -0.11362627893686295, -0.12582091987133026, 0.1503778100013733, 0.2672082483768463, 0.18069611489772797, -0.2453930824995041, 0.14205679297447205, -0.06776080280542374, 0.10506946593523026, 0.014162932522594929, 0.4371635615825653, 0.10091884434223175, -0.26813191175460815, -0.025753453373908997, -0.029371997341513634 ]
https://github.com/huggingface/datasets/issues/2700
from datasets import Dataset is failing
Hi @kswamy15, thanks for reporting. We are fixing this critical issue and making an urgent patch release of the `datasets` library today. In the meantime, you can circumvent this issue by updating the `tqdm` library: `!pip install -U tqdm`
## Describe the bug A clear and concise description of what the bug is. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import Dataset ``` ## Expected results A clear and concise description of the expected results. ## Actual results Specify the actual results or traceback. /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in <module>() 25 import posixpath 26 import requests ---> 27 from tqdm.contrib.concurrent import thread_map 28 29 from .. import __version__, config, utils ModuleNotFoundError: No module named 'tqdm.contrib.concurrent' --------------------------------------------------------------------------- NOTE: If your import is failing due to a missing package, you can manually install dependencies using either !pip or !apt. To view examples of installing some common dependencies, click the "Open Examples" button below. --------------------------------------------------------------------------- ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: latest version as of 07/21/2021 - Platform: Google Colab - Python version: 3.7 - PyArrow version:
39
from datasets import Dataset is failing ## Describe the bug A clear and concise description of what the bug is. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import Dataset ``` ## Expected results A clear and concise description of the expected results. ## Actual results Specify the actual results or traceback. /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in <module>() 25 import posixpath 26 import requests ---> 27 from tqdm.contrib.concurrent import thread_map 28 29 from .. import __version__, config, utils ModuleNotFoundError: No module named 'tqdm.contrib.concurrent' --------------------------------------------------------------------------- NOTE: If your import is failing due to a missing package, you can manually install dependencies using either !pip or !apt. To view examples of installing some common dependencies, click the "Open Examples" button below. --------------------------------------------------------------------------- ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: latest version as of 07/21/2021 - Platform: Google Colab - Python version: 3.7 - PyArrow version: Hi @kswamy15, thanks for reporting. We are fixing this critical issue and making an urgent patch release of the `datasets` library today. In the meantime, you can circumvent this issue by updating the `tqdm` library: `!pip install -U tqdm`
[ -0.40854528546333313, -0.15285904705524445, -0.12398120015859604, 0.06415072828531265, 0.11212576180696487, 0.10350488126277924, 0.34309887886047363, 0.2238982915878296, -0.13659384846687317, 0.05489898473024368, -0.0883903056383133, 0.2876405715942383, 0.04801860824227333, 0.06119982898235321, -0.13520990312099457, 0.01982905901968479, -0.05538837984204292, -0.010933082550764084, -0.33377400040626526, 0.12665241956710815, -0.21732290089130402, 0.34592851996421814, -0.31967100501060486, -0.06650731712579727, -0.26490575075149536, -0.2171354442834854, -0.08844712376594543, 0.27002280950546265, -0.08907126635313034, -0.335060715675354, 0.005738442298024893, 0.14068202674388885, -0.037914156913757324, 0.5401781797409058, -0.00010110485163750127, -0.0078354487195611, 0.3128857910633087, 0.09356413781642914, -0.08441713452339172, -0.07104730606079102, -0.31346508860588074, -0.4694291949272156, 0.08068445324897766, -0.19161634147167206, -0.0022025115322321653, 0.10913680493831635, -0.01236563641577959, -0.31574147939682007, 0.3191043436527252, 0.33720558881759644, 0.3364604711532593, 0.5836629271507263, 0.001961077330633998, -0.3067326545715332, 0.06306911259889603, -0.3369419276714325, -0.16334575414657593, 0.2865932285785675, 0.40097248554229736, -0.19564208388328552, -0.013574334792792797, 0.19698162376880646, -0.21396677196025848, 0.21284615993499756, 0.0626571848988533, 0.03283959999680519, -0.04164649546146393, -0.43041273951530457, 0.26248422265052795, 0.18701651692390442, 0.5149672031402588, -0.3271743357181549, -0.03733768314123154, -0.05686798691749573, 0.003816977608948946, -0.23251499235630035, 0.21908603608608246, -0.036922186613082886, -0.13161848485469818, 0.22365477681159973, -0.03621736168861389, 0.07104790955781937, 0.05268758535385132, 0.03846459090709686, -0.22176817059516907, -0.04606756940484047, -0.08298943191766739, -0.040810078382492065, -0.04121559113264084, -0.13637003302574158, 0.3713528513908386, -0.007810298353433609, 0.02841692417860031, -0.023821260780096054, -0.5177696347236633, -0.05755685269832611, 0.364592045545578, 0.0355684868991375, 0.09874509274959564, 0.012087561190128326, -0.03975462540984154, 0.10945939272642136, -0.07145088911056519, 0.310029000043869, 0.16832490265369415, -0.10733228921890259, -0.005500307772308588, 0.07948854565620422, 0.28211531043052673, 0.1880703866481781, -0.2165440022945404, 0.08192824572324753, 0.06307093054056168, -0.47238507866859436, 0.23844116926193237, 0.1042851135134697, 0.28063711524009705, 0.10728151351213455, -0.3729565441608429, 0.04527482017874718, -0.04403127729892731, 0.13769203424453735, -0.09065909683704376, 0.41095730662345886, -0.10914937406778336, 0.015047942288219929, -0.042716290801763535, 0.06004765257239342, -0.21080176532268524, -0.3220805525779724, -0.28024470806121826, 0.024394912645220757, 0.046337928622961044, -0.13789212703704834, -0.041607294231653214, -0.16257071495056152, 0.21165962517261505, 0.04829125106334686, 0.1572297364473343, 0.09542461484670639, 0.1668870747089386, -0.2702958583831787, -0.05761741101741791, 0.4077107012271881, 0.19267146289348602, 0.04098903387784958, 0.23955638706684113, -0.09556934237480164, -0.07582014799118042, 0.09298619627952576, -0.25969457626342773, -0.18633286654949188, -0.006995385978370905, 0.32591381669044495, 0.10396099090576172, -0.25566741824150085, -0.09166201949119568, 0.11335760354995728, 0.07731551676988602, -0.18635572493076324, -0.06548751145601273, -0.25249576568603516, -0.06746906787157059, -0.35040244460105896, 0.07767298072576523, 0.5380800366401672, -0.43270865082740784, -0.014955527149140835, -0.15926222503185272, -0.10781282186508179, 0.012457744218409061, 0.27709630131721497, -0.08100514858961105, 0.16957896947860718, -0.11599662899971008, 0.049124330282211304, 0.24016787111759186, -0.319914847612381, -0.3626371920108795, 0.09086994081735611, -0.30107906460762024, -0.042735982686281204, -0.13671354949474335, 0.09372097253799438, 0.29575300216674805, -0.009447573684155941, 0.4482404887676239, 0.24620987474918365, -0.26927506923675537, 0.09033393114805222, -0.13658013939857483, -0.2909480929374695, -0.053692203015089035, 0.04697084054350853, 0.23628951609134674, -0.08992546051740646, 0.2524039149284363, -0.22952017188072205, 0.14847061038017273, 0.13394798338413239, -0.018707331269979477, 0.39504632353782654, 0.30548372864723206, 0.03653998672962189, -0.032332129776477814, -0.18340067565441132, -0.5057476162910461, 0.2498745620250702, 0.3089751899242401, 0.08186347037553787, -0.023478146642446518, -0.008907274343073368, -0.44862037897109985, 0.2037528157234192, -0.16244009137153625, 0.09563892334699631, 0.2882280945777893, 0.0894581526517868, -0.2714307904243469, 0.05097699165344238, -0.2473026067018509, 0.43601834774017334, 0.032162100076675415, 0.08695346117019653, -0.10878652334213257, 0.28894972801208496, -0.27541711926460266, -0.2581121027469635, 0.2147303968667984, -0.058008838444948196, 0.24765336513519287, 0.0031081337947398424, -0.0581929013133049, 0.3293103277683258, 0.0771939605474472, 0.2450992912054062, 0.1307125985622406, -0.05771968141198158, 0.1969684213399887, -0.26975753903388977, -0.09545498341321945, 0.0938059389591217, 0.1041572093963623, -0.07342717051506042, 0.08057679235935211, 0.17065422236919403, -0.21421511471271515, 0.01048895251005888, 0.03483695164322853, 0.22887246310710907, 0.3592410087585449, -0.0549507811665535, -0.05419165641069412, -0.13662934303283691, 0.22214290499687195, 0.1184019222855568, 0.012584149837493896, -0.14748096466064453, -0.2470896989107132, 0.24930790066719055, 0.49011531472206116, 0.10153821110725403, 0.1599898636341095, -0.17559221386909485, -0.21589979529380798, 0.0977209210395813, 0.13357025384902954, 0.3544579744338989, 0.4767528474330902, 0.2372666299343109, 0.14589782059192657, 0.18171697854995728, -0.035255804657936096, -0.2257145792245865, 0.027819719165563583, 0.2088332176208496, 0.06914490461349487, 0.13963653147220612, 0.2791813313961029, 0.05756765231490135, -0.2701753079891205, -0.3984823226928711, 0.049399372190237045, 0.23472197353839874, -0.32264217734336853, 0.02030354179441929, -0.3022140562534332, -0.06692508608102798, -0.03397483006119728, -0.18413645029067993, -0.1792144924402237, -0.49881884455680847, 0.017764519900083542, 0.17335282266139984, -0.03627346456050873, 0.22547750174999237, -0.08869274705648422, 0.03826078772544861, 0.15818007290363312, -0.23425841331481934, -0.08380153030157089, -0.22351078689098358, -0.08587931841611862, 0.20162539184093475, 0.12259307503700256, 0.12752337753772736, 0.4814586043357849, -0.3473610281944275, -0.07640939950942993, -0.3007538318634033, -0.2729537785053253, 0.10808763653039932, -0.10794144123792648, 0.5393429398536682, 0.1690942347049713, 0.14294613897800446, -0.1891467422246933, 0.08378306031227112, 0.27296900749206543, -0.28412896394729614, -0.03614477068185806, 0.1139916181564331, -0.0069275652058422565, -0.12470097094774246, -0.005945152603089809, -0.28539976477622986, -0.2594160735607147, -0.5138935446739197, -0.11649166792631149, 0.036663588136434555, 0.0855603814125061, 0.2803022563457489, 0.11718090623617172, 0.2591088116168976, 0.09508001804351807, 0.15976308286190033, -0.15738780796527863, -0.27479296922683716, 0.2889837920665741, -0.2669568657875061, -0.4839945435523987, 0.25239238142967224, -0.043624307960271835, 0.24882742762565613, 0.018374474719166756, -0.2916955351829529, -0.3475375771522522, -0.0735727995634079, 0.4598744213581085, -0.01469486765563488, 0.13947594165802002, 0.22422362864017487, 0.10214106738567352, -0.248685821890831, -0.15036141872406006, -0.1936662346124649, -0.24385547637939453, 0.26907995343208313, 0.0429663248360157, -0.0695938766002655, 0.47313445806503296, 0.12930327653884888, 0.5410224795341492, 0.20289137959480286, 0.13372674584388733, 0.35517752170562744, -0.31330347061157227, 0.47011783719062805, -0.013745918869972229, -0.4632148742675781, -0.20931950211524963, -0.1566203534603119, -0.21966077387332916, 0.18398454785346985, -0.12190104275941849, 0.008344529196619987, -0.2008325457572937, 0.03130754828453064, -0.3126886785030365, -0.28862959146499634, -0.10992647707462311, -0.03780737146735191, 0.2987925112247467, 0.12471814453601837, -0.007796953432261944, -0.17306344211101532, 0.07662907242774963, 0.08026076853275299, 0.3518159091472626, -0.36581912636756897, -0.2055613100528717, -0.09202008694410324, 0.039197031408548355, -0.5612572431564331, 0.31425291299819946, -0.0376315712928772, 0.30101627111434937, -0.16952985525131226, 0.04660592973232269, -0.02107120305299759, -0.13673293590545654, 0.18659819662570953, -0.2707376182079315, -0.06102710962295532, 0.3763120472431183, -0.03752070292830467, -0.28346067667007446, 0.031695667654275894, -0.3035867512226105, -0.08721407502889633, 0.5882403254508972, 0.1496822088956833, -0.2319241166114807, 0.08439227193593979, 0.17987704277038574, 0.23015196621418, -0.04857167974114418, -0.030697526410222054, -0.3578571081161499, -0.608113706111908, -0.4169079065322876, -0.031758129596710205, 0.19469034671783447, 0.14782115817070007, 0.03667779639363289, -0.12188398838043213, -0.08149239420890808, -0.26426276564598083, 0.10142550617456436, 0.2987629175186157, 0.015271434560418129, 0.05144617706537247, 0.37911829352378845, -0.054598838090896606, -0.3085269033908844, 0.4553217887878418, 0.5644433498382568, 0.09358678013086319, -0.3636810779571533, -0.03503724932670593, -0.029774261638522148, 0.14752653241157532, 0.15474732220172882, -0.12155783921480179, 0.015369714237749577, 0.025663776323199272, 0.15828439593315125, 0.31261196732521057, 0.09274585545063019, 0.3412408232688904, -0.02118857577443123, -0.10412998497486115, -0.16989462077617645, 0.11319226771593094, 0.1280112862586975, 0.061129871755838394, 0.28484460711479187, -0.23907266557216644, 0.012300667352974415, 0.018996823579072952, 0.047719135880470276, 0.6743606328964233, -0.00585153279826045, -0.13357329368591309, 0.3497026264667511, -0.24423089623451233, 0.23129135370254517, -0.0070458706468343735, 0.14582866430282593, -0.39996337890625, -0.4180329144001007, -0.011390190571546555, -0.14084754884243011, 0.37667736411094666, 0.01812061108648777, -0.2749493718147278, 0.23372623324394226, 0.056708309799432755, 0.16945429146289825, 0.0048254430294036865, -0.08591390401124954, -0.19948212802410126, -0.21026186645030975, -0.3424766957759857, 0.27805328369140625, 0.03049798123538494, 0.10023093968629837, -0.23024329543113708, -0.07565070688724518, -0.002271910896524787, -0.1145540177822113, -0.220856174826622, -0.04306434839963913, -0.3907536268234253, 0.13655917346477509, 0.15413528680801392, -0.17984095215797424, 0.012881327420473099, -0.00688382750377059, 0.10351947695016861, 0.07395072281360626, -0.11307910084724426, 0.14917124807834625, 0.13117584586143494, 0.025197556242346764, 0.1456775814294815, -0.1355884075164795, 0.361307829618454, -0.17018893361091614, -0.10812696069478989, 0.29565438628196716, -0.02822691760957241, -0.14451412856578827, 0.1549285352230072, 0.32185301184654236, 0.048435818403959274, -0.09873008728027344, -0.024971308186650276, 0.07267303019762039, 0.21778468787670135, -0.43248188495635986, 0.22746990621089935, 0.1098216250538826, 0.028008271008729935, 0.44828730821609497, -0.27451545000076294, -0.07572855800390244, -0.16928434371948242, 0.2780621349811554, -0.09780392050743103, -0.06835366040468216, 0.2635718584060669, 0.3350370526313782, -0.21407431364059448, -0.2988041341304779, 0.3023134768009186, -0.27148765325546265, -0.11594253778457642, 0.2750825881958008, -0.12192120403051376, -0.006842568516731262, 0.17697517573833466, 0.5146284103393555, 0.06726514548063278, -0.1476500779390335, -0.11885449290275574, -0.2926463782787323, -0.33432939648628235, 0.08661337196826935, 0.05719644948840141, 0.06756118685007095, 0.17114897072315216, 0.27972501516342163, 0.09783055633306503, 0.0337817445397377, -0.4624916911125183, 0.014688275754451752, -0.41288259625434875, 0.04748547822237015, 0.23572905361652374, -0.09743858873844147, 0.10138411819934845, 0.02440633624792099, 0.17997156083583832, 0.10522391647100449, -0.1337604820728302, -0.3522091805934906, -0.03364058956503868, 0.0878046452999115, -0.00394366355612874, 0.021702703088521957, 0.04121895134449005, -0.19636206328868866, -0.2757992744445801, -0.1250046342611313, 0.09607302397489548, 0.07128234952688217, -0.10347878932952881, -0.06183529272675514, 0.16381892561912537, 0.041705138981342316, -0.12514206767082214, 0.0965345948934555, 0.048058800399303436, 0.12411224842071533, -0.09323922544717789, 0.05617983639240265, 0.09663529694080353, -0.05308516323566437, -0.053889188915491104, 0.11238233745098114, 0.08030866831541061, -0.08464481681585312, 0.4036474823951721, -0.2934013903141022, -0.0837889090180397, 0.2388859987258911, 0.43762168288230896, 0.2970946133136749, -0.10429782420396805, -0.1326538473367691, 0.13179922103881836, 0.2998233735561371, -0.42697766423225403, -0.07977641373872757, 0.22765547037124634, 0.031215807422995567, 0.2894967794418335, 0.16206040978431702, 0.009170886129140854, 0.08038487285375595, 0.11028558015823364, 0.29278549551963806, 0.3749351501464844, -0.2685064375400543, 0.008951068855822086, 0.05423320457339287, 0.06610365211963654, 0.16208212077617645, 0.36000844836235046, 0.1112753376364708, 0.17886514961719513, 0.4138868749141693, -0.018664313480257988, 0.15937992930412292, 0.06331408023834229, -0.11021069437265396, 0.07847432047128677, -0.48680636286735535, 0.3760782480239868, -0.07239279896020889, 0.10603899508714676, -0.17306068539619446, 0.02268902398645878, 0.095567986369133, -0.2848634123802185, 0.13318949937820435, -0.21750177443027496, 0.317829430103302, -0.16959618031978607, 0.20800645649433136, 0.21582894027233124, 0.0470757819712162, -0.004188980907201767, -0.06853873282670975, 0.11734266579151154, 0.09520160406827927, 0.3830108940601349, 0.1151956170797348, 0.023484589532017708, -0.5718717575073242, -0.19430460035800934, 0.14024214446544647, -0.05001985281705856, -0.34236663579940796, 0.06596577167510986, 0.014820637181401253, -0.06839069724082947, -0.20425431430339813, 0.45180490612983704, 0.4655422866344452, 0.18755541741847992, -0.021746305748820305, -0.05372258648276329, -0.0694720670580864, -0.14148341119289398, -0.15467622876167297, 0.12118907272815704, -0.08256527781486511, 0.20945699512958527, 0.33940815925598145, 0.25141656398773193, -0.3259422183036804, -0.16451604664325714, 0.11480088531970978, -0.16345171630382538, -0.384402334690094, 0.29550740122795105, -0.1409960836172104, -0.16078196465969086, -0.15958736836910248, -0.03083270974457264, -0.31143710017204285, 0.052695415914058685, 0.4397564232349396, -0.2856873869895935, 0.03535722196102142, -0.2400781214237213, 0.1659233421087265, -0.07640819996595383, 0.3434979021549225, 0.3479088842868805, 0.09468481689691544, -0.3236081898212433, -0.1609087735414505, -0.8212375044822693, 0.25097933411598206, -0.12197670340538025, -0.23373734951019287, 0.035443104803562164, 0.24889825284481049, 0.05435491353273392, 0.31881794333457947, 0.3575405180454254, 0.0408061146736145, -0.0032815176527947187, 0.12756285071372986, -0.3231610953807831, -0.21398285031318665, -0.07536756992340088, -0.2632589042186737, -0.0036478175316005945, -0.3058437705039978, 0.17100486159324646, -0.2677227258682251, 0.19703158736228943, -0.21129530668258667, -0.40583160519599915, 0.21468567848205566, -0.05972790718078613, 0.42757779359817505, 0.06558356434106827, 0.3013673424720764, -0.2161143571138382, -0.054366011172533035, -0.17911309003829956, -0.3456141948699951, -0.14447717368602753, 0.22129710018634796, 0.1074012741446495, 0.28343409299850464, -0.05568473041057587, -0.16342894732952118, -0.10558450222015381, 0.18162128329277039, 0.18367834389209747, 0.04896630719304085, -0.03273359686136246, 0.277543306350708, -0.01311242301017046, 0.23474717140197754, -0.05518513545393944, 0.23314586281776428, 0.006492561660706997, 0.3684495985507965, -0.4001823663711548, -0.5349045991897583, 0.2997892498970032, -0.3270012140274048, -0.4098891615867615, -0.36040112376213074, 0.27931979298591614, 0.01326431892812252, -0.16240116953849792, -0.12395206093788147, 0.033840540796518326, 0.28715023398399353, 0.06945154070854187, -0.18813249468803406, 0.4414677023887634, -0.019917594268918037, 0.04686389118432999, 0.008270586840808392, 0.20544487237930298, 0.04058177024126053, -0.20558421313762665, 0.11345487087965012, 0.02005714736878872 ]
https://github.com/huggingface/datasets/issues/2699
cannot combine splits merging and streaming?
Hi ! That's missing indeed. We'll try to implement this for the next version :) I guess we just need to implement #2564 first, and then we should be able to add support for splits combinations
this does not work: `dataset = datasets.load_dataset('mc4','iw',split='train+validation',streaming=True)` with error: `ValueError: Bad split: train+validation. Available splits: ['train', 'validation']` these work: `dataset = datasets.load_dataset('mc4','iw',split='train+validation')` `dataset = datasets.load_dataset('mc4','iw',split='train',streaming=True)` `dataset = datasets.load_dataset('mc4','iw',split='validation',streaming=True)` i could not find a reference to this in the documentation and the error message is confusing. also would be nice to allow streaming for the merged splits
36
cannot combine splits merging and streaming? this does not work: `dataset = datasets.load_dataset('mc4','iw',split='train+validation',streaming=True)` with error: `ValueError: Bad split: train+validation. Available splits: ['train', 'validation']` these work: `dataset = datasets.load_dataset('mc4','iw',split='train+validation')` `dataset = datasets.load_dataset('mc4','iw',split='train',streaming=True)` `dataset = datasets.load_dataset('mc4','iw',split='validation',streaming=True)` i could not find a reference to this in the documentation and the error message is confusing. also would be nice to allow streaming for the merged splits Hi ! That's missing indeed. We'll try to implement this for the next version :) I guess we just need to implement #2564 first, and then we should be able to add support for splits combinations
[ -0.5081490874290466, -0.3373529016971588, -0.1102791577577591, -0.014030124060809612, 0.03304849937558174, 0.07413779944181442, 0.07430879771709442, 0.48546546697616577, -0.06634511053562164, 0.12954044342041016, -0.2676171064376831, 0.23154903948307037, -0.05141323059797287, 0.5110138058662415, 0.030207514762878418, -0.3258368670940399, 0.12861603498458862, 0.09241430461406708, -0.39728882908821106, 0.20399048924446106, 0.015694668516516685, 0.13198013603687286, -0.2798556089401245, -0.36202967166900635, -0.3513980507850647, 0.3136509656906128, -0.05598288029432297, 0.043477389961481094, -0.19322101771831512, -0.16841542720794678, -0.086558997631073, 0.12416459619998932, -0.0005708198295906186, 0.5355134010314941, -0.00011480475222924724, -0.04356779903173447, 0.5377909541130066, 0.055512379854917526, -0.12309125810861588, 0.05207562446594238, -0.43173864483833313, -0.042041003704071045, -0.08819849044084549, 0.15871554613113403, -0.22716540098190308, 0.11983019858598709, -0.10763274878263474, -0.159053772687912, 0.37430399656295776, 0.09401615709066391, 0.08995813131332397, 0.10130543261766434, 0.07522519677877426, -0.22771869599819183, 0.0327020026743412, 0.04079258441925049, -0.07557537406682968, -0.06728903949260712, 0.16259458661079407, 0.05337598919868469, 0.17020781338214874, 0.20509110391139984, 0.32786697149276733, -0.2385345846414566, 0.05297912284731865, -0.07819947600364685, -0.21639731526374817, -0.3731330335140228, -0.030014067888259888, 0.27540475130081177, 0.4171726405620575, 0.18062394857406616, -0.3277599513530731, 0.092496857047081, -0.013237756676971912, -0.47866734862327576, 0.09487557411193848, 0.07550349831581116, -0.11467304825782776, 0.13166089355945587, -0.5122504234313965, -0.2017863690853119, -0.20650257170200348, 0.25244444608688354, -0.11535455286502838, 0.6995691061019897, 0.10643939673900604, -0.02599630504846573, 0.5007663369178772, 0.009583181701600552, 0.15989065170288086, -0.0029393138829618692, -0.2509084939956665, 0.09683775901794434, -0.374849796295166, -0.10227862000465393, -0.4304017722606659, -0.06137261539697647, 0.0011965291341766715, 0.14795687794685364, -0.05239924415946007, 0.059487711638212204, 0.13864333927631378, 0.1004415899515152, 0.40262067317962646, -0.11574061959981918, -0.07507380098104477, 0.2515941262245178, 0.22323425114154816, 0.11672770231962204, 0.2711423337459564, -0.033994462341070175, 0.06285266578197479, -0.2844308912754059, -0.48577815294265747, 0.0061912997625768185, -0.0998201072216034, -0.13384291529655457, -0.15902948379516602, -0.33843472599983215, -0.14558815956115723, -0.0286702960729599, 0.096705362200737, 0.08552143722772598, -0.2533041834831238, 0.11408405750989914, -0.1045277789235115, 0.29691553115844727, 0.021670041605830193, -0.3427955210208893, -0.1387794315814972, -0.01458299532532692, -0.2554706633090973, -0.08181227743625641, 0.2565937638282776, -0.26587891578674316, 0.15016548335552216, 0.3329011797904968, 0.2861681282520294, 0.26121121644973755, -0.21944908797740936, 0.002960742451250553, 0.09761445224285126, 0.3461608290672302, 0.2332957237958908, -0.21646247804164886, -0.18023431301116943, 0.26453474164009094, 0.31136590242385864, -0.011318218894302845, 0.02235119603574276, -0.43725547194480896, -0.09991621226072311, 0.19216781854629517, 0.010141153819859028, -0.1386028230190277, -0.19208261370658875, 0.5086086392402649, 0.06771393865346909, -0.15159344673156738, -0.19039912521839142, -0.004079869017004967, 0.09676089882850647, -0.11162243038415909, 0.3906469941139221, -0.028730452060699463, -0.48764947056770325, -0.057269077748060226, -0.1783786118030548, -0.12546704709529877, 0.28666725754737854, 0.38305944204330444, -0.26841697096824646, -0.3105138838291168, 0.011700986884534359, 0.22969993948936462, 0.2801135182380676, 0.03561538830399513, -0.16201141476631165, 0.23579815030097961, 0.14932045340538025, -0.055292416363954544, 0.2690359652042389, -0.15444429218769073, 0.1483694463968277, -0.02331574261188507, 0.1964317411184311, 0.5279391407966614, -0.14719025790691376, -0.33208346366882324, -0.22879555821418762, -0.0443878211081028, 0.2529413402080536, 0.24395734071731567, 0.3917974829673767, -0.21008720993995667, 0.18734018504619598, 0.1677800863981247, 0.17890982329845428, -0.18803083896636963, 0.12672598659992218, -0.028445232659578323, 0.1899460107088089, -0.0645640641450882, 0.07346148043870926, -0.21697628498077393, -0.211537703871727, -0.04375528171658516, -0.052496179938316345, -0.05641491338610649, 0.5228716135025024, -0.1800922453403473, 0.013832000084221363, -0.3455848693847656, -0.19496268033981323, -0.09301503002643585, 0.100258007645607, -0.13184691965579987, 0.04163672775030136, -0.32529208064079285, -0.39059507846832275, 0.054519567638635635, -0.06383944302797318, 0.06766325235366821, -0.08787616342306137, 0.42467200756073, -0.19910463690757751, -0.23034437000751495, -0.007940464653074741, 0.26669028401374817, 0.1580343097448349, -0.09201385080814362, -0.04498715326189995, 0.60523921251297, 0.02400236390531063, 0.331045001745224, -0.13663335144519806, 0.006404012441635132, 0.44016051292419434, -0.21972914040088654, -0.07471145689487457, 0.37927567958831787, -0.09112007170915604, -0.1778291016817093, -0.3126196265220642, 0.09089495241641998, -0.3767000734806061, 0.07437729835510254, 0.19437110424041748, 0.09169305115938187, 0.08335082232952118, 0.019015846773982048, -0.2693001329898834, -0.12216003984212875, 0.10342365503311157, -0.5749579668045044, 0.031605757772922516, -0.17163780331611633, -0.31431612372398376, 0.13306091725826263, 0.2696283161640167, 0.08539231866598129, -0.14476940035820007, -0.20219729840755463, -0.14667059481143951, -0.06765219569206238, 0.05050859600305557, 0.28404659032821655, 0.49194610118865967, 0.20360007882118225, 0.2562606632709503, 0.28142988681793213, -0.02784673310816288, -0.2152477353811264, 0.3708740174770355, 0.05828610807657242, 0.09248754382133484, 0.3329789340496063, -0.06735409796237946, -0.13763676583766937, -0.16392046213150024, 0.16093844175338745, 0.29213401675224304, -0.10121221095323563, -0.1680913269519806, -0.1960757076740265, -0.44042155146598816, -0.3401389718055725, -0.1436610072851181, -0.26907336711883545, -0.13940872251987457, -0.4952283203601837, 0.09709565341472626, 0.24883753061294556, -0.168430894613266, 0.109526127576828, 0.07562893629074097, 0.0112143624573946, -0.11200546473264694, 0.28692126274108887, -0.08902941644191742, 0.14820991456508636, -0.03537723794579506, 0.18448176980018616, 0.17460951209068298, 0.017082860693335533, 0.11132366210222244, 0.12222668528556824, -0.1454952210187912, -0.2003287374973297, -0.532554566860199, 0.11812625080347061, -0.17425209283828735, -0.0486430749297142, 0.20686616003513336, -0.13505089282989502, 0.20300832390785217, -0.5070750117301941, -0.02508246898651123, -0.11798276007175446, -0.07276809215545654, -0.08965098112821579, -0.05034672096371651, -0.11969730257987976, -0.4618375301361084, -0.6362448930740356, -0.24906450510025024, -0.5404443740844727, 0.2634403705596924, -0.25547999143600464, -0.11217421293258667, 0.10658863186836243, 0.03268931433558464, -0.11797244846820831, -0.00657171756029129, -0.42993736267089844, -0.28923654556274414, -0.05893660709261894, 0.402292400598526, -0.4461691975593567, -0.38508909940719604, 0.09212353825569153, 0.10727033764123917, 0.24934710562229156, 0.2030596286058426, 0.08088362216949463, 0.3455435335636139, -0.029685847461223602, 0.08704207092523575, -0.07785462588071823, -0.0007341464515775442, 0.26983922719955444, -0.1681797206401825, 0.04428187757730484, -0.19134563207626343, 0.14169089496135712, 0.02980048768222332, 0.32932326197624207, 0.5940420031547546, -0.09227322041988373, 0.2602940499782562, 0.17206141352653503, 0.8503627777099609, 0.22137190401554108, 0.03386193513870239, 0.02652543969452381, 0.10104820877313614, 0.22209754586219788, -0.10885634273290634, -0.21997308731079102, 0.2636604309082031, -0.1620943695306778, 0.06020451337099075, 0.0874210000038147, 0.02361992560327053, -0.4355468153953552, -0.2725834250450134, 0.2202933132648468, -0.05004015564918518, 0.004869494121521711, -0.026752151548862457, -0.22312305867671967, 0.10306362062692642, 0.04373784363269806, 0.018082771450281143, 0.36887460947036743, -0.016426732763648033, 0.045107170939445496, 0.16677337884902954, 0.2742878198623657, 0.1019534319639206, -0.30182185769081116, -0.1953762322664261, -0.14860494434833527, 0.028565533459186554, 0.007972714491188526, 0.13425365090370178, -0.23353946208953857, -0.15235376358032227, -0.06225058063864708, -0.03334382176399231, 0.730900228023529, -0.4700448215007782, -0.18622593581676483, 0.08933926373720169, -0.0316738486289978, 0.07845811545848846, -0.30026617646217346, -0.14648222923278809, 0.06061219424009323, 0.5181645750999451, 0.3313446640968323, -0.2025873363018036, -0.008570915088057518, 0.47262442111968994, -0.1199384480714798, 0.04293370246887207, -0.26712650060653687, -0.16365675628185272, 0.22268491983413696, -0.2541056275367737, -0.11590562760829926, 0.31590962409973145, 0.09110715985298157, -0.513322114944458, -0.16976167261600494, 0.14805427193641663, -0.3351939916610718, 0.14504502713680267, 0.17143946886062622, 0.38462305068969727, -0.08066681772470474, 0.15104104578495026, 0.28469669818878174, -0.017055241391062737, 0.3582705557346344, 0.3160245716571808, 0.4130520224571228, -0.3127906918525696, 0.28989315032958984, -0.29520323872566223, 0.6024830937385559, 0.19732654094696045, 0.026883451268076897, -0.006118144374340773, 0.17744697630405426, -0.00129755272064358, 0.08335213363170624, 0.24812644720077515, 0.2944796085357666, -0.07538505643606186, -0.29343199729919434, -0.24796231091022491, 0.2437046468257904, 0.0967632383108139, 0.15705156326293945, 0.36657097935676575, -0.008095861412584782, -0.22026680409908295, -0.18020883202552795, -0.09314458072185516, 0.831153392791748, 0.3514553904533386, -0.0511212982237339, 0.08222370594739914, -0.34205251932144165, 0.11453438550233841, -0.24107620120048523, 0.34904998540878296, -0.049959246069192886, -0.19002296030521393, -0.09965164214372635, -0.06617695093154907, 0.23650072515010834, -0.12069220095872879, -0.5448082685470581, 0.3441716432571411, -0.2958672344684601, 0.4792376458644867, -0.1160144954919815, 0.18260622024536133, -0.15226951241493225, -0.14421257376670837, -0.2476089596748352, 0.11511339992284775, 0.0034283644054085016, -0.07587423175573349, -0.0651073232293129, -0.29123908281326294, 0.15679629147052765, 0.06516356766223907, -0.22077147662639618, 0.3643646836280823, 0.07780726999044418, 0.18722617626190186, -0.08204235881567001, -0.10570792853832245, 0.09417986124753952, 0.16242757439613342, 0.10932903736829758, 0.1021919697523117, -0.29168054461479187, 0.26857033371925354, -0.11990226060152054, -0.07047349214553833, -0.3529689610004425, -0.018266580998897552, 0.104184590280056, -0.32648447155952454, -0.20809432864189148, 0.21078242361545563, 0.1126905232667923, -0.5091999769210815, -0.2521858513355255, -0.06729042530059814, 0.03179796412587166, -0.028109531849622726, 0.05209140107035637, 0.2679307162761688, -0.11960168182849884, -0.321380615234375, 0.11052631586790085, -0.18612731993198395, -0.435699462890625, 0.13945256173610687, 0.1880929321050644, 0.0779351219534874, -0.2295377552509308, 0.3991301357746124, 0.016713280230760574, -0.1774701476097107, 0.33031925559043884, 0.17876145243644714, -0.08334677666425705, -0.16436919569969177, -0.24200603365898132, 0.20209021866321564, -0.07763836532831192, 0.12370696663856506, -0.2825097143650055, -0.2111569195985794, 0.29830092191696167, 0.110386922955513, 0.015401220880448818, 0.1366526186466217, -0.19319485127925873, -0.18652738630771637, -0.16534066200256348, 0.2601044476032257, -0.2842329442501068, 0.33029070496559143, -0.14228621125221252, 0.43431946635246277, 0.07367730140686035, 0.20445631444454193, -0.26842495799064636, -0.00259474222548306, 0.1188780888915062, 0.15532271564006805, -0.22609013319015503, -0.3581099808216095, 0.011079663410782814, -0.07399163395166397, 0.04279749095439911, 0.2439487725496292, -0.1716935932636261, -0.13129712641239166, -0.03004777804017067, 0.09001474827528, 0.31756243109703064, 0.031014731153845787, -0.11195193231105804, 0.007407512050122023, -0.46204668283462524, 0.16751766204833984, 0.24139176309108734, -0.16047368943691254, 0.07318111509084702, 0.04648330807685852, 0.769467294216156, 0.0026707432698458433, 0.07632182538509369, -0.07619895040988922, 0.17114602029323578, 0.1486607789993286, -0.004456376191228628, 0.08597652614116669, 0.16570855677127838, -0.14275598526000977, -0.011471548117697239, -0.006430978886783123, 0.35358548164367676, 0.08946951478719711, 0.3557210862636566, -0.3032313287258148, -0.04991606995463371, -0.34948110580444336, 0.4437383711338043, 0.44314655661582947, 0.11196258664131165, 0.05140304937958717, 0.017768865451216698, 0.1722627878189087, -0.15171130001544952, -0.12660099565982819, -0.1626867949962616, 0.22346945106983185, -0.03183726593852043, -0.01546059176325798, 0.3882976472377777, 0.13653938472270966, -0.045242469757795334, 0.39404064416885376, -0.18731634318828583, -0.10820621252059937, 0.6243636608123779, 0.4589971899986267, -0.2730153799057007, 0.07983911037445068, -0.05182558670639992, -0.1712731122970581, -0.11285404860973358, 0.04830889031291008, -0.18777213990688324, 0.34626826643943787, 0.40000301599502563, -0.068483367562294, 0.5021164417266846, -0.02912202663719654, -0.4155105948448181, -0.13500440120697021, -0.14478924870491028, 0.31666994094848633, 0.20443832874298096, 0.31564584374427795, -0.2462451159954071, -0.48996827006340027, -0.2448233962059021, -0.023059746250510216, -0.024544399231672287, -0.02026781253516674, -0.15291370451450348, -0.2530761957168579, -0.1895495355129242, 0.17066943645477295, 0.19911204278469086, 0.15805816650390625, 0.6029375195503235, 0.0041988305747509, 0.07937927544116974, -0.2160995453596115, 0.23628085851669312, 0.3822196424007416, 0.35582661628723145, -0.14524415135383606, 0.007642773445695639, 0.3794393539428711, -0.2650621235370636, 0.3523434102535248, 0.170577272772789, 0.4073837995529175, 0.23439796268939972, -0.1795746386051178, 0.012542231008410454, 0.1997923105955124, -0.20446331799030304, 0.17898091673851013, 0.23936492204666138, 0.5440567135810852, -0.1517501175403595, 0.19348858296871185, 0.0924246609210968, -0.08804149180650711, 0.2542187571525574, -0.28278669714927673, 0.3401778042316437, -0.3977622389793396, 0.3002814054489136, 0.1573113352060318, 0.015210454352200031, 0.11062600463628769, -0.06875404715538025, -0.47970888018608093, -0.27040910720825195, 0.37546250224113464, 0.0008004028350114822, -0.09352514147758484, -0.15604789555072784, 0.0744086503982544, 0.2217358648777008, 0.6444829106330872, 0.032845497131347656, -0.10677269846200943, -0.07117503881454468, -0.20700643956661224, -0.3353721499443054, -0.2207002192735672, 0.05914664268493652, 0.3860921263694763, -0.10266510397195816, 0.2361467033624649, 0.07163471728563309, 0.2721898555755615, 0.3447861075401306, -0.1758824735879898, 0.2958407998085022, -0.007024054881185293, -0.332144170999527, 0.03654346615076065, 0.18798182904720306, 0.1128573790192604, 0.003111576661467552, -0.052203595638275146, 0.2949279844760895, 0.03241919353604317, -0.018755445256829262, 0.13242314755916595, -0.07014253735542297, 0.2797316312789917, 0.11218812316656113, -0.22364644706249237, 0.21787624061107635, 0.3656512498855591, -0.09627234935760498, -0.0768081322312355, -0.269972026348114, -0.17202356457710266, -0.45059946179389954, -0.07229719310998917, 0.05266783758997917, 0.4325371980667114, -0.08005490899085999, -0.18024778366088867, -0.12981431186199188, 0.417441189289093, 0.013185819610953331, -0.07189445197582245, -0.17700302600860596, -0.13223928213119507, -0.03591856360435486, 0.05190599337220192, 0.30329006910324097, 0.4208347499370575, -0.22037650644779205, -0.19172582030296326, -0.07384596019983292, -0.3431106209754944, 0.46737760305404663, -0.292331337928772, -0.2383931279182434, -0.4524562358856201, -0.16547730565071106, 0.6991720199584961, 0.23404766619205475, -0.6319127678871155, -0.29527658224105835, -0.008874168619513512, -0.37974977493286133, 0.23107224702835083, 0.5059241056442261, 0.23378095030784607, -0.123617984354496, -0.18091994524002075, -0.03464088961482048, 0.41538989543914795, -0.18837854266166687, 0.035306449979543686, -0.290488064289093 ]
https://github.com/huggingface/datasets/issues/2695
Cannot import load_dataset on Colab
I'm facing the same issue on Colab today too. ``` ModuleNotFoundError Traceback (most recent call last) <ipython-input-4-5833ac0f5437> in <module>() 3 4 from ray import tune ----> 5 from datasets import DatasetDict, Dataset 6 from datasets import load_dataset, load_metric 7 from dataclasses import dataclass 7 frames /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in <module>() 25 import posixpath 26 import requests ---> 27 from tqdm.contrib.concurrent import thread_map 28 29 from .. import __version__, config, utils ModuleNotFoundError: No module named 'tqdm.contrib.concurrent' --------------------------------------------------------------------------- NOTE: If your import is failing due to a missing package, you can manually install dependencies using either !pip or !apt. To view examples of installing some common dependencies, click the "Open Examples" button below. --------------------------------------------------------------------------- ```
## Describe the bug Got tqdm concurrent module not found error during importing load_dataset from datasets. ## Steps to reproduce the bug Here [colab notebook](https://colab.research.google.com/drive/1pErWWnVP4P4mVHjSFUtkePd8Na_Qirg4?usp=sharing) to reproduce the error On colab: ```python !pip install datasets from datasets import load_dataset ``` ## Expected results Works without error ## Actual results Specify the actual results or traceback. ``` ModuleNotFoundError Traceback (most recent call last) <ipython-input-2-8cc7de4c69eb> in <module>() ----> 1 from datasets import load_dataset, load_metric, Metric, MetricInfo, Features, Value 2 from sklearn.metrics import mean_squared_error /usr/local/lib/python3.7/dist-packages/datasets/__init__.py in <module>() 31 ) 32 ---> 33 from .arrow_dataset import Dataset, concatenate_datasets 34 from .arrow_reader import ArrowReader, ReadInstruction 35 from .arrow_writer import ArrowWriter /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in <module>() 40 from tqdm.auto import tqdm 41 ---> 42 from datasets.tasks.text_classification import TextClassification 43 44 from . import config, utils /usr/local/lib/python3.7/dist-packages/datasets/tasks/__init__.py in <module>() 1 from typing import Optional 2 ----> 3 from ..utils.logging import get_logger 4 from .automatic_speech_recognition import AutomaticSpeechRecognition 5 from .base import TaskTemplate /usr/local/lib/python3.7/dist-packages/datasets/utils/__init__.py in <module>() 19 20 from . import logging ---> 21 from .download_manager import DownloadManager, GenerateMode 22 from .file_utils import DownloadConfig, cached_path, hf_bucket_url, is_remote_url, temp_seed 23 from .mock_download_manager import MockDownloadManager /usr/local/lib/python3.7/dist-packages/datasets/utils/download_manager.py in <module>() 24 25 from .. import config ---> 26 from .file_utils import ( 27 DownloadConfig, 28 cached_path, /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in <module>() 25 import posixpath 26 import requests ---> 27 from tqdm.contrib.concurrent import thread_map 28 29 from .. import __version__, config, utils ModuleNotFoundError: No module named 'tqdm.contrib.concurrent' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.10.0 - Platform: Colab - Python version: 3.7.11 - PyArrow version: 3.0.0
111
Cannot import load_dataset on Colab ## Describe the bug Got tqdm concurrent module not found error during importing load_dataset from datasets. ## Steps to reproduce the bug Here [colab notebook](https://colab.research.google.com/drive/1pErWWnVP4P4mVHjSFUtkePd8Na_Qirg4?usp=sharing) to reproduce the error On colab: ```python !pip install datasets from datasets import load_dataset ``` ## Expected results Works without error ## Actual results Specify the actual results or traceback. ``` ModuleNotFoundError Traceback (most recent call last) <ipython-input-2-8cc7de4c69eb> in <module>() ----> 1 from datasets import load_dataset, load_metric, Metric, MetricInfo, Features, Value 2 from sklearn.metrics import mean_squared_error /usr/local/lib/python3.7/dist-packages/datasets/__init__.py in <module>() 31 ) 32 ---> 33 from .arrow_dataset import Dataset, concatenate_datasets 34 from .arrow_reader import ArrowReader, ReadInstruction 35 from .arrow_writer import ArrowWriter /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in <module>() 40 from tqdm.auto import tqdm 41 ---> 42 from datasets.tasks.text_classification import TextClassification 43 44 from . import config, utils /usr/local/lib/python3.7/dist-packages/datasets/tasks/__init__.py in <module>() 1 from typing import Optional 2 ----> 3 from ..utils.logging import get_logger 4 from .automatic_speech_recognition import AutomaticSpeechRecognition 5 from .base import TaskTemplate /usr/local/lib/python3.7/dist-packages/datasets/utils/__init__.py in <module>() 19 20 from . import logging ---> 21 from .download_manager import DownloadManager, GenerateMode 22 from .file_utils import DownloadConfig, cached_path, hf_bucket_url, is_remote_url, temp_seed 23 from .mock_download_manager import MockDownloadManager /usr/local/lib/python3.7/dist-packages/datasets/utils/download_manager.py in <module>() 24 25 from .. import config ---> 26 from .file_utils import ( 27 DownloadConfig, 28 cached_path, /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in <module>() 25 import posixpath 26 import requests ---> 27 from tqdm.contrib.concurrent import thread_map 28 29 from .. import __version__, config, utils ModuleNotFoundError: No module named 'tqdm.contrib.concurrent' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.10.0 - Platform: Colab - Python version: 3.7.11 - PyArrow version: 3.0.0 I'm facing the same issue on Colab today too. ``` ModuleNotFoundError Traceback (most recent call last) <ipython-input-4-5833ac0f5437> in <module>() 3 4 from ray import tune ----> 5 from datasets import DatasetDict, Dataset 6 from datasets import load_dataset, load_metric 7 from dataclasses import dataclass 7 frames /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in <module>() 25 import posixpath 26 import requests ---> 27 from tqdm.contrib.concurrent import thread_map 28 29 from .. import __version__, config, utils ModuleNotFoundError: No module named 'tqdm.contrib.concurrent' --------------------------------------------------------------------------- NOTE: If your import is failing due to a missing package, you can manually install dependencies using either !pip or !apt. To view examples of installing some common dependencies, click the "Open Examples" button below. --------------------------------------------------------------------------- ```
[ -0.4603256285190582, -0.21482765674591064, -0.024375125765800476, 0.26821377873420715, 0.13541275262832642, 0.051994577050209045, 0.4973769187927246, -0.10748507082462311, 0.19837038218975067, 0.0849531888961792, -0.32663094997406006, 0.47532352805137634, -0.1742696315050125, 0.14874832332134247, -0.2584451735019684, 0.09847039729356766, -0.066185861825943, 0.058203618973493576, -0.2907033860683441, 0.09561498463153839, 0.020291518419981003, 0.3308885097503662, -0.633569061756134, -0.3468572795391083, -0.5786887407302856, -0.21004115045070648, -0.027742085978388786, 0.16879141330718994, -0.2702193260192871, -0.29201075434684753, 0.3478228747844696, 0.1770588457584381, 0.09218970686197281, 0.569717288017273, -0.00011724026262527332, 0.07151338458061218, 0.39330920577049255, -0.07875358313322067, -0.24568970501422882, -0.3918710947036743, -0.34615322947502136, -0.32919612526893616, 0.368621826171875, -0.10739260911941528, 0.1058272197842598, 0.40416616201400757, -0.13573090732097626, -0.133275106549263, 0.2626953423023224, 0.13527964055538177, 0.19363413751125336, 0.5491978526115417, 0.1630605161190033, -0.19249221682548523, -0.11258674412965775, -0.19337788224220276, -0.20208290219306946, 0.7461528182029724, 0.41741806268692017, 0.016856210306286812, -0.0510248988866806, 0.2604953348636627, -0.0992678701877594, 0.2890875041484833, 0.18624088168144226, -0.03342185914516449, 0.10510164499282837, -0.48058274388313293, 0.10063720494508743, 0.17437751591205597, 0.4806714653968811, -0.23342734575271606, 0.04439045116305351, -0.12202465534210205, 0.2094741016626358, -0.29246774315834045, 0.261900395154953, -0.09857016801834106, -0.2118593454360962, 0.049007952213287354, -0.022696644067764282, -0.08961711823940277, -0.012307312339544296, 0.016437161713838577, -0.09338612109422684, 0.36550673842430115, -0.14300726354122162, -0.11182652413845062, 0.06986578553915024, -0.10964152216911316, 0.5018093585968018, -0.016182273626327515, -0.026867389678955078, 0.2063279151916504, -0.4680005609989166, -0.009329631924629211, -0.09887044876813889, -0.14084890484809875, -0.05169893801212311, -0.10149464756250381, -0.03618668019771576, 0.017466731369495392, -0.11100886017084122, 0.3034836947917938, 0.18480238318443298, 0.1422499418258667, 0.03475858271121979, 0.018298635259270668, 0.12265416979789734, 0.28642868995666504, -0.20076298713684082, 0.22739534080028534, -0.259282648563385, -0.31187957525253296, 0.1845090240240097, -0.029213745146989822, 0.2715788781642914, -0.0037105006631463766, -0.31906187534332275, -0.18184544146060944, 0.009568385779857635, 0.10504216700792313, 0.04462249577045441, 0.39905354380607605, 0.05579572170972824, 0.10570880770683289, -0.0346219539642334, 0.00169389508664608, -0.3566533923149109, -0.23943834006786346, -0.05384502187371254, 0.19369623064994812, -0.06428023427724838, -0.11529950797557831, 0.06780330836772919, -0.15499870479106903, 0.26018649339675903, -0.01242044661194086, 0.3092045783996582, -0.05996029078960419, 0.10367400199174881, -0.3025384545326233, -0.06064527481794357, 0.3319084048271179, 0.12873533368110657, 0.08720225840806961, -0.06231344863772392, -0.20557811856269836, -0.07788795232772827, 0.23551695048809052, -0.477062463760376, -0.14423614740371704, -0.024314794689416885, 0.1429465115070343, -0.1339145302772522, -0.22443081438541412, -0.5850236415863037, 0.16483402252197266, 0.14476370811462402, -0.08128175884485245, -0.08496221154928207, -0.3062833249568939, -0.23307140171527863, -0.15358290076255798, 0.12368795275688171, 0.44828349351882935, -0.23092882335186005, -0.14231432974338531, -0.21769076585769653, 0.12052740156650543, 0.12727050483226776, 0.23482318222522736, -0.2021542638540268, 0.1736087203025818, -0.09626415371894836, -0.11714198440313339, 0.49064818024635315, -0.43263617157936096, -0.467124879360199, -0.020347680896520615, -0.26607662439346313, -0.005254622083157301, -0.08970677852630615, 0.04857955873012543, 0.3577234148979187, -0.06694085150957108, 0.5458385348320007, 0.2629372477531433, -0.13903303444385529, -0.03660419583320618, -0.16409096121788025, -0.4099055230617523, 0.12942537665367126, 0.04181958734989166, 0.1834629327058792, -0.21777135133743286, 0.2030327022075653, -0.05337464064359665, 0.10123799741268158, 0.1859942227602005, -0.12112988531589508, 0.384333074092865, 0.24290147423744202, -0.22237874567508698, 0.03727392107248306, -0.18595744669437408, -0.4775210916996002, 0.22404809296131134, 0.40929457545280457, 0.07997166365385056, -0.06749922037124634, 0.05132468044757843, -0.43819618225097656, 0.0791066437959671, -0.25944408774375916, 0.06764248758554459, 0.09941264241933823, -0.06666989624500275, -0.1751304417848587, 0.08892634510993958, -0.26048317551612854, 0.7403808832168579, 0.037708036601543427, 0.21759352087974548, -0.3183417320251465, 0.21578840911388397, -0.18590405583381653, -0.3081796169281006, 0.17629237473011017, 0.13617128133773804, 0.0753253698348999, -0.09227273613214493, -0.23890753090381622, 0.14212174713611603, 0.2554135322570801, 0.17134137451648712, 0.061892446130514145, -0.2776557505130768, 0.4123668670654297, -0.274011492729187, 0.012325159274041653, -0.10668440908193588, 0.20857030153274536, 0.005822932347655296, 0.2551180422306061, 0.15657177567481995, -0.37070298194885254, -0.04107332229614258, -0.030511964112520218, 0.090538389980793, 0.3726440966129303, 0.12399637699127197, -0.005092668812721968, -0.18564917147159576, 0.32518404722213745, 0.2222951352596283, 0.1924741119146347, 0.09374191612005234, -0.1297319382429123, 0.28813523054122925, 0.30617550015449524, 0.24524423480033875, 0.038779307156801224, -0.2685609757900238, -0.2554303705692291, 0.06336459517478943, 0.1922869086265564, 0.25180914998054504, 0.44464540481567383, 0.18038886785507202, 0.10491914302110672, 0.0316312313079834, 0.0318475142121315, -0.15611745417118073, 0.1151200532913208, 0.2919997572898865, 0.25584110617637634, 0.13110268115997314, 0.412082701921463, 0.09674369543790817, -0.07899821549654007, -0.38941165804862976, 0.175325408577919, 0.15031109750270844, -0.33177241683006287, 0.0766264870762825, -0.21460174024105072, -0.11394724994897842, -0.14194613695144653, -0.4253392815589905, -0.14645393192768097, -0.1978352814912796, -0.10580053925514221, 0.2810255289077759, 0.26506251096725464, 0.19366224110126495, -0.02399413287639618, 0.05001707747578621, 0.06250438839197159, -0.14248351752758026, -0.055816899985075, -0.25067710876464844, -0.09258749336004257, 0.0015158079331740737, 0.32773953676223755, 0.2468109428882599, 0.36850619316101074, -0.3038307726383209, -0.06956276297569275, 0.14370045065879822, -0.33209797739982605, 0.1763453334569931, -0.005682501010596752, 0.29197996854782104, -0.013442921452224255, -0.0779714584350586, -0.3206300735473633, -0.19391757249832153, 0.02153646945953369, -0.13462314009666443, -0.18274642527103424, 0.04727939888834953, -0.1800287961959839, -0.22977393865585327, -0.001991121331229806, -0.29268813133239746, -0.4344461262226105, -0.3998570144176483, -0.3682098388671875, 0.04724651947617531, -0.008902975358068943, 0.46030017733573914, -0.042716480791568756, 0.29339227080345154, 0.22506991028785706, 0.05083799734711647, 0.01793607883155346, -0.33309122920036316, 0.47338196635246277, -0.28651121258735657, -0.2936581075191498, 0.2801203429698944, -0.26804643869400024, 0.3836089074611664, 0.018183382228016853, -0.11044333875179291, -0.2135312557220459, -0.021479368209838867, 0.38373711705207825, -0.10093988478183746, 0.04168316349387169, 0.08463598787784576, 0.11366216838359833, 0.07825830578804016, -0.0924064964056015, -0.18155261874198914, -0.20405049622058868, 0.21963198482990265, 0.1930788904428482, -0.16571572422981262, 0.22659817337989807, -0.03633589297533035, 0.8421132564544678, 0.07719916850328445, -0.040050141513347626, 0.3015676736831665, -0.06165573000907898, 0.3064919710159302, -0.10642470419406891, -0.5121487975120544, -0.06968485563993454, -0.10731102526187897, -0.03928399831056595, 0.0819719061255455, -0.18397551774978638, -0.11122232675552368, -0.2847858965396881, -0.2727968692779541, -0.31601959466934204, -0.2918524742126465, -0.11478517949581146, -0.20039138197898865, 0.13085435330867767, 0.19867926836013794, -0.06129197031259537, -0.162008136510849, -0.11249653995037079, 0.04898237809538841, 0.4355244040489197, -0.42080244421958923, -0.018615003675222397, 0.3795596659183502, -0.0728558674454689, -0.34649088978767395, 0.1986529678106308, 0.13178497552871704, 0.33032742142677307, 0.07662582397460938, 0.11820027232170105, 0.06014115735888481, -0.04932514578104019, 0.11224548518657684, 0.05919637158513069, -0.08000047504901886, 0.23661643266677856, -0.014694223180413246, -0.401273638010025, -0.05774356424808502, -0.22556275129318237, 0.22409889101982117, 0.4793194830417633, 0.08615225553512573, -0.2667844593524933, 0.21151801943778992, 0.23633195459842682, 0.1412733644247055, -0.11422289162874222, -0.1485223025083542, -0.4387519657611847, -0.3134375512599945, -0.378410667181015, -0.06004500016570091, 0.18504580855369568, 0.23917469382286072, 0.041669439524412155, -0.07086938619613647, -0.06402730941772461, -0.21697312593460083, 0.0610417015850544, 0.3596896529197693, 0.14828412234783173, 0.2704481780529022, 0.5801548361778259, 0.1271515041589737, -0.2473594844341278, 0.44701868295669556, 0.5865607857704163, 0.0028329542838037014, -0.58351731300354, -0.02799946255981922, -0.17973950505256653, 0.2348889261484146, 0.13151949644088745, -0.07067332416772842, 0.01633032225072384, 0.05956551060080528, -0.13585171103477478, 0.3848748803138733, 0.38126593828201294, -0.06354271620512009, 0.12624822556972504, -0.40266531705856323, -0.12859110534191132, 0.09584790468215942, 0.0007424193900078535, 0.13769900798797607, 0.46016570925712585, -0.37963858246803284, -0.05982203409075737, 0.047098543494939804, -0.18435367941856384, 0.6863647103309631, -0.03818909451365471, -0.23901525139808655, 0.27325356006622314, -0.1615028828382492, 0.2652587890625, 0.11319036036729813, 0.18576043844223022, -0.2762230336666107, -0.3076212704181671, 0.09239334613084793, -0.22662189602851868, 0.1900259554386139, -0.1945812851190567, -0.3511311709880829, 0.2596140503883362, 0.05645624175667763, -0.149830162525177, -0.018576418980956078, 0.04060488939285278, 0.002412857487797737, -0.2937503159046173, -0.35251981019973755, 0.05176933482289314, -0.1905302256345749, 0.20617200434207916, -0.19724205136299133, -0.18334610760211945, -0.13894802331924438, -0.1865321546792984, -0.0331040620803833, -0.1090359315276146, -0.6445794701576233, 0.23709844052791595, 0.33144769072532654, -0.3087446987628937, 0.20051699876785278, -0.11113837361335754, 0.09509853273630142, -0.02933046966791153, -0.17394961416721344, 0.1265125274658203, 0.19933469593524933, 0.0166865736246109, -0.11088825762271881, -0.1729525625705719, 0.41977208852767944, -0.08396551012992859, 0.005003898870199919, 0.05766630917787552, 0.03662293404340744, -0.022534310817718506, 0.47023463249206543, 0.3512617349624634, 0.36815744638442993, 0.1506929248571396, -0.07557583600282669, 0.18104751408100128, 0.26167550683021545, -0.19587796926498413, 0.07804212719202042, 0.1019754409790039, -0.15308448672294617, 0.25580689311027527, -0.10751410573720932, -0.1003248319029808, -0.0019222715636715293, 0.33977261185646057, 0.12967118620872498, -0.016100294888019562, 0.18322117626667023, 0.15517257153987885, -0.2558426856994629, -0.0844760537147522, 0.16883499920368195, -0.3087921738624573, -0.3004138469696045, 0.24127735197544098, -0.019914135336875916, 0.04912685602903366, 0.07449415326118469, 0.7340952157974243, 0.2456148862838745, -0.36856892704963684, -0.1320783495903015, -0.3772931396961212, -0.5326014757156372, 0.14176900684833527, -0.1205236166715622, -0.09494353085756302, 0.2369505763053894, 0.38368967175483704, 0.12086893618106842, 0.1284106820821762, -0.22089053690433502, 0.10524074733257294, -0.1584758758544922, 0.1540040373802185, 0.27565088868141174, -0.09605144709348679, 0.03729217126965523, 0.08598966151475906, 0.004241897724568844, 0.15297818183898926, 0.06710047274827957, -0.2249542623758316, -0.11465847492218018, 0.13268062472343445, -0.10255349427461624, 0.040870893746614456, -0.11802631616592407, -0.15128569304943085, -0.230035200715065, -0.17150287330150604, 0.1590515673160553, 0.03512401133775711, -0.08184205740690231, -0.1321558803319931, 0.29200512170791626, -0.09662938863039017, -0.21740150451660156, 0.4025673270225525, 0.11779535561800003, 0.08100782334804535, 0.07766718417406082, 0.16603003442287445, 0.1665421575307846, 0.1832788586616516, 0.017529835924506187, -0.2253393530845642, -0.0916714146733284, -0.17651274800300598, 0.09427814930677414, -0.3320893943309784, -0.014022735878825188, 0.0699954554438591, -0.02750704437494278, 0.4203796982765198, -0.1289566606283188, -0.2099848985671997, 0.047241371124982834, 0.08578076213598251, -0.3888074457645416, 0.031113293021917343, 0.3042641282081604, 0.15485864877700806, 0.1754324585199356, 0.2722876965999603, 0.08177193999290466, 0.08188467472791672, 0.15440961718559265, 0.39525195956230164, 0.2447240650653839, -0.02283727005124092, 0.26611146330833435, -0.2058008760213852, 0.08578208088874817, 0.23063482344150543, 0.23610937595367432, 0.11843244731426239, 0.03810511901974678, 0.15266965329647064, -0.1501825898885727, 0.2959783971309662, 0.14464372396469116, -0.1672735959291458, 0.2365310788154602, -0.359602689743042, 0.24245642125606537, -0.09867701679468155, 0.056908540427684784, -0.13632839918136597, 0.14178615808486938, 0.32764652371406555, -0.04918676242232323, -0.08844675868749619, -0.16085343062877655, -0.0030407351441681385, -0.30019044876098633, 0.27094098925590515, 0.4638242721557617, -0.09763120859861374, -0.09312402456998825, -0.04317576065659523, 0.21457749605178833, 0.21752849221229553, 0.5374788045883179, 0.3159119188785553, -0.16689953207969666, -0.4896297752857208, -0.1224406361579895, 0.5082058906555176, -0.12667319178581238, -0.18445312976837158, 0.46237340569496155, -0.1348712295293808, 0.010012376122176647, -0.16528095304965973, 0.32221511006355286, 0.48848435282707214, 0.3006311357021332, -0.13834835588932037, -0.2075258493423462, 0.25662747025489807, -0.1801050752401352, -0.13837409019470215, 0.21072141826152802, 0.059684064239263535, 0.29416805505752563, 0.2981710135936737, 0.08425360172986984, -0.16908781230449677, -0.03203774616122246, 0.22073045372962952, -0.33576127886772156, -0.44091930985450745, 0.20642831921577454, -0.15670651197433472, -0.0026591953355818987, -0.1897849142551422, 0.09800048172473907, -0.45638933777809143, 0.22882479429244995, 0.3156726360321045, -0.22243887186050415, -0.0670025646686554, -0.14896292984485626, 0.044959425926208496, -0.03079915978014469, 0.36052775382995605, 0.24672473967075348, 0.35621005296707153, -0.20113036036491394, -0.10377366840839386, -0.8396954536437988, 0.3146013617515564, 0.03366608917713165, -0.011730300262570381, -0.03855295479297638, 0.13932549953460693, -0.0011309953406453133, 0.32129383087158203, 0.4201123118400574, 0.04542868211865425, 0.190121129155159, 0.03722898289561272, -0.46201562881469727, -0.2717560827732086, 0.09004053473472595, -0.4454764723777771, 0.005056973546743393, -0.39178991317749023, -0.004098302684724331, -0.28245189785957336, -0.04146819934248924, -0.02739778719842434, -0.44652771949768066, 0.27017587423324585, 0.30223777890205383, 0.29597416520118713, -0.04375544190406799, 0.6722488403320312, -0.05365686118602753, 0.09963594377040863, -0.06906541436910629, -0.31764423847198486, -0.02696416713297367, 0.15783026814460754, 0.3953229486942291, 0.2114284187555313, -0.24911072850227356, 0.0748828575015068, -0.12848496437072754, 0.13370424509048462, 0.13303200900554657, 0.01289929449558258, -0.27821603417396545, 0.06854163855314255, -0.16541370749473572, 0.403052419424057, -0.13011367619037628, 0.18237237632274628, 0.06379113346338272, 0.27051493525505066, -0.30365633964538574, -0.3571581542491913, 0.39119863510131836, -0.34344860911369324, -0.45859748125076294, -0.42767268419265747, 0.2904647886753082, 0.1598200500011444, -0.20495717227458954, -0.47420892119407654, 0.0093036824837327, 0.25498881936073303, -0.1533089429140091, -0.15550069510936737, 0.5398076772689819, 0.06995448470115662, 0.2142622470855713, -0.12199632078409195, 0.20986361801624298, 0.004663238767534494, -0.11890158802270889, -0.1165049821138382, -0.06436560302972794 ]
https://github.com/huggingface/datasets/issues/2695
Cannot import load_dataset on Colab
@phosseini I think it is related to [1.10.0](https://github.com/huggingface/datasets/actions/runs/1052653701) release done 3 hours ago. (cc: @lhoestq ) For now I just downgraded to 1.9.0 and it is working fine.
## Describe the bug Got tqdm concurrent module not found error during importing load_dataset from datasets. ## Steps to reproduce the bug Here [colab notebook](https://colab.research.google.com/drive/1pErWWnVP4P4mVHjSFUtkePd8Na_Qirg4?usp=sharing) to reproduce the error On colab: ```python !pip install datasets from datasets import load_dataset ``` ## Expected results Works without error ## Actual results Specify the actual results or traceback. ``` ModuleNotFoundError Traceback (most recent call last) <ipython-input-2-8cc7de4c69eb> in <module>() ----> 1 from datasets import load_dataset, load_metric, Metric, MetricInfo, Features, Value 2 from sklearn.metrics import mean_squared_error /usr/local/lib/python3.7/dist-packages/datasets/__init__.py in <module>() 31 ) 32 ---> 33 from .arrow_dataset import Dataset, concatenate_datasets 34 from .arrow_reader import ArrowReader, ReadInstruction 35 from .arrow_writer import ArrowWriter /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in <module>() 40 from tqdm.auto import tqdm 41 ---> 42 from datasets.tasks.text_classification import TextClassification 43 44 from . import config, utils /usr/local/lib/python3.7/dist-packages/datasets/tasks/__init__.py in <module>() 1 from typing import Optional 2 ----> 3 from ..utils.logging import get_logger 4 from .automatic_speech_recognition import AutomaticSpeechRecognition 5 from .base import TaskTemplate /usr/local/lib/python3.7/dist-packages/datasets/utils/__init__.py in <module>() 19 20 from . import logging ---> 21 from .download_manager import DownloadManager, GenerateMode 22 from .file_utils import DownloadConfig, cached_path, hf_bucket_url, is_remote_url, temp_seed 23 from .mock_download_manager import MockDownloadManager /usr/local/lib/python3.7/dist-packages/datasets/utils/download_manager.py in <module>() 24 25 from .. import config ---> 26 from .file_utils import ( 27 DownloadConfig, 28 cached_path, /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in <module>() 25 import posixpath 26 import requests ---> 27 from tqdm.contrib.concurrent import thread_map 28 29 from .. import __version__, config, utils ModuleNotFoundError: No module named 'tqdm.contrib.concurrent' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.10.0 - Platform: Colab - Python version: 3.7.11 - PyArrow version: 3.0.0
28
Cannot import load_dataset on Colab ## Describe the bug Got tqdm concurrent module not found error during importing load_dataset from datasets. ## Steps to reproduce the bug Here [colab notebook](https://colab.research.google.com/drive/1pErWWnVP4P4mVHjSFUtkePd8Na_Qirg4?usp=sharing) to reproduce the error On colab: ```python !pip install datasets from datasets import load_dataset ``` ## Expected results Works without error ## Actual results Specify the actual results or traceback. ``` ModuleNotFoundError Traceback (most recent call last) <ipython-input-2-8cc7de4c69eb> in <module>() ----> 1 from datasets import load_dataset, load_metric, Metric, MetricInfo, Features, Value 2 from sklearn.metrics import mean_squared_error /usr/local/lib/python3.7/dist-packages/datasets/__init__.py in <module>() 31 ) 32 ---> 33 from .arrow_dataset import Dataset, concatenate_datasets 34 from .arrow_reader import ArrowReader, ReadInstruction 35 from .arrow_writer import ArrowWriter /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in <module>() 40 from tqdm.auto import tqdm 41 ---> 42 from datasets.tasks.text_classification import TextClassification 43 44 from . import config, utils /usr/local/lib/python3.7/dist-packages/datasets/tasks/__init__.py in <module>() 1 from typing import Optional 2 ----> 3 from ..utils.logging import get_logger 4 from .automatic_speech_recognition import AutomaticSpeechRecognition 5 from .base import TaskTemplate /usr/local/lib/python3.7/dist-packages/datasets/utils/__init__.py in <module>() 19 20 from . import logging ---> 21 from .download_manager import DownloadManager, GenerateMode 22 from .file_utils import DownloadConfig, cached_path, hf_bucket_url, is_remote_url, temp_seed 23 from .mock_download_manager import MockDownloadManager /usr/local/lib/python3.7/dist-packages/datasets/utils/download_manager.py in <module>() 24 25 from .. import config ---> 26 from .file_utils import ( 27 DownloadConfig, 28 cached_path, /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in <module>() 25 import posixpath 26 import requests ---> 27 from tqdm.contrib.concurrent import thread_map 28 29 from .. import __version__, config, utils ModuleNotFoundError: No module named 'tqdm.contrib.concurrent' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.10.0 - Platform: Colab - Python version: 3.7.11 - PyArrow version: 3.0.0 @phosseini I think it is related to [1.10.0](https://github.com/huggingface/datasets/actions/runs/1052653701) release done 3 hours ago. (cc: @lhoestq ) For now I just downgraded to 1.9.0 and it is working fine.
[ -0.4603256285190582, -0.21482765674591064, -0.024375125765800476, 0.26821377873420715, 0.13541275262832642, 0.051994577050209045, 0.4973769187927246, -0.10748507082462311, 0.19837038218975067, 0.0849531888961792, -0.32663094997406006, 0.47532352805137634, -0.1742696315050125, 0.14874832332134247, -0.2584451735019684, 0.09847039729356766, -0.066185861825943, 0.058203618973493576, -0.2907033860683441, 0.09561498463153839, 0.020291518419981003, 0.3308885097503662, -0.633569061756134, -0.3468572795391083, -0.5786887407302856, -0.21004115045070648, -0.027742085978388786, 0.16879141330718994, -0.2702193260192871, -0.29201075434684753, 0.3478228747844696, 0.1770588457584381, 0.09218970686197281, 0.569717288017273, -0.00011724026262527332, 0.07151338458061218, 0.39330920577049255, -0.07875358313322067, -0.24568970501422882, -0.3918710947036743, -0.34615322947502136, -0.32919612526893616, 0.368621826171875, -0.10739260911941528, 0.1058272197842598, 0.40416616201400757, -0.13573090732097626, -0.133275106549263, 0.2626953423023224, 0.13527964055538177, 0.19363413751125336, 0.5491978526115417, 0.1630605161190033, -0.19249221682548523, -0.11258674412965775, -0.19337788224220276, -0.20208290219306946, 0.7461528182029724, 0.41741806268692017, 0.016856210306286812, -0.0510248988866806, 0.2604953348636627, -0.0992678701877594, 0.2890875041484833, 0.18624088168144226, -0.03342185914516449, 0.10510164499282837, -0.48058274388313293, 0.10063720494508743, 0.17437751591205597, 0.4806714653968811, -0.23342734575271606, 0.04439045116305351, -0.12202465534210205, 0.2094741016626358, -0.29246774315834045, 0.261900395154953, -0.09857016801834106, -0.2118593454360962, 0.049007952213287354, -0.022696644067764282, -0.08961711823940277, -0.012307312339544296, 0.016437161713838577, -0.09338612109422684, 0.36550673842430115, -0.14300726354122162, -0.11182652413845062, 0.06986578553915024, -0.10964152216911316, 0.5018093585968018, -0.016182273626327515, -0.026867389678955078, 0.2063279151916504, -0.4680005609989166, -0.009329631924629211, -0.09887044876813889, -0.14084890484809875, -0.05169893801212311, -0.10149464756250381, -0.03618668019771576, 0.017466731369495392, -0.11100886017084122, 0.3034836947917938, 0.18480238318443298, 0.1422499418258667, 0.03475858271121979, 0.018298635259270668, 0.12265416979789734, 0.28642868995666504, -0.20076298713684082, 0.22739534080028534, -0.259282648563385, -0.31187957525253296, 0.1845090240240097, -0.029213745146989822, 0.2715788781642914, -0.0037105006631463766, -0.31906187534332275, -0.18184544146060944, 0.009568385779857635, 0.10504216700792313, 0.04462249577045441, 0.39905354380607605, 0.05579572170972824, 0.10570880770683289, -0.0346219539642334, 0.00169389508664608, -0.3566533923149109, -0.23943834006786346, -0.05384502187371254, 0.19369623064994812, -0.06428023427724838, -0.11529950797557831, 0.06780330836772919, -0.15499870479106903, 0.26018649339675903, -0.01242044661194086, 0.3092045783996582, -0.05996029078960419, 0.10367400199174881, -0.3025384545326233, -0.06064527481794357, 0.3319084048271179, 0.12873533368110657, 0.08720225840806961, -0.06231344863772392, -0.20557811856269836, -0.07788795232772827, 0.23551695048809052, -0.477062463760376, -0.14423614740371704, -0.024314794689416885, 0.1429465115070343, -0.1339145302772522, -0.22443081438541412, -0.5850236415863037, 0.16483402252197266, 0.14476370811462402, -0.08128175884485245, -0.08496221154928207, -0.3062833249568939, -0.23307140171527863, -0.15358290076255798, 0.12368795275688171, 0.44828349351882935, -0.23092882335186005, -0.14231432974338531, -0.21769076585769653, 0.12052740156650543, 0.12727050483226776, 0.23482318222522736, -0.2021542638540268, 0.1736087203025818, -0.09626415371894836, -0.11714198440313339, 0.49064818024635315, -0.43263617157936096, -0.467124879360199, -0.020347680896520615, -0.26607662439346313, -0.005254622083157301, -0.08970677852630615, 0.04857955873012543, 0.3577234148979187, -0.06694085150957108, 0.5458385348320007, 0.2629372477531433, -0.13903303444385529, -0.03660419583320618, -0.16409096121788025, -0.4099055230617523, 0.12942537665367126, 0.04181958734989166, 0.1834629327058792, -0.21777135133743286, 0.2030327022075653, -0.05337464064359665, 0.10123799741268158, 0.1859942227602005, -0.12112988531589508, 0.384333074092865, 0.24290147423744202, -0.22237874567508698, 0.03727392107248306, -0.18595744669437408, -0.4775210916996002, 0.22404809296131134, 0.40929457545280457, 0.07997166365385056, -0.06749922037124634, 0.05132468044757843, -0.43819618225097656, 0.0791066437959671, -0.25944408774375916, 0.06764248758554459, 0.09941264241933823, -0.06666989624500275, -0.1751304417848587, 0.08892634510993958, -0.26048317551612854, 0.7403808832168579, 0.037708036601543427, 0.21759352087974548, -0.3183417320251465, 0.21578840911388397, -0.18590405583381653, -0.3081796169281006, 0.17629237473011017, 0.13617128133773804, 0.0753253698348999, -0.09227273613214493, -0.23890753090381622, 0.14212174713611603, 0.2554135322570801, 0.17134137451648712, 0.061892446130514145, -0.2776557505130768, 0.4123668670654297, -0.274011492729187, 0.012325159274041653, -0.10668440908193588, 0.20857030153274536, 0.005822932347655296, 0.2551180422306061, 0.15657177567481995, -0.37070298194885254, -0.04107332229614258, -0.030511964112520218, 0.090538389980793, 0.3726440966129303, 0.12399637699127197, -0.005092668812721968, -0.18564917147159576, 0.32518404722213745, 0.2222951352596283, 0.1924741119146347, 0.09374191612005234, -0.1297319382429123, 0.28813523054122925, 0.30617550015449524, 0.24524423480033875, 0.038779307156801224, -0.2685609757900238, -0.2554303705692291, 0.06336459517478943, 0.1922869086265564, 0.25180914998054504, 0.44464540481567383, 0.18038886785507202, 0.10491914302110672, 0.0316312313079834, 0.0318475142121315, -0.15611745417118073, 0.1151200532913208, 0.2919997572898865, 0.25584110617637634, 0.13110268115997314, 0.412082701921463, 0.09674369543790817, -0.07899821549654007, -0.38941165804862976, 0.175325408577919, 0.15031109750270844, -0.33177241683006287, 0.0766264870762825, -0.21460174024105072, -0.11394724994897842, -0.14194613695144653, -0.4253392815589905, -0.14645393192768097, -0.1978352814912796, -0.10580053925514221, 0.2810255289077759, 0.26506251096725464, 0.19366224110126495, -0.02399413287639618, 0.05001707747578621, 0.06250438839197159, -0.14248351752758026, -0.055816899985075, -0.25067710876464844, -0.09258749336004257, 0.0015158079331740737, 0.32773953676223755, 0.2468109428882599, 0.36850619316101074, -0.3038307726383209, -0.06956276297569275, 0.14370045065879822, -0.33209797739982605, 0.1763453334569931, -0.005682501010596752, 0.29197996854782104, -0.013442921452224255, -0.0779714584350586, -0.3206300735473633, -0.19391757249832153, 0.02153646945953369, -0.13462314009666443, -0.18274642527103424, 0.04727939888834953, -0.1800287961959839, -0.22977393865585327, -0.001991121331229806, -0.29268813133239746, -0.4344461262226105, -0.3998570144176483, -0.3682098388671875, 0.04724651947617531, -0.008902975358068943, 0.46030017733573914, -0.042716480791568756, 0.29339227080345154, 0.22506991028785706, 0.05083799734711647, 0.01793607883155346, -0.33309122920036316, 0.47338196635246277, -0.28651121258735657, -0.2936581075191498, 0.2801203429698944, -0.26804643869400024, 0.3836089074611664, 0.018183382228016853, -0.11044333875179291, -0.2135312557220459, -0.021479368209838867, 0.38373711705207825, -0.10093988478183746, 0.04168316349387169, 0.08463598787784576, 0.11366216838359833, 0.07825830578804016, -0.0924064964056015, -0.18155261874198914, -0.20405049622058868, 0.21963198482990265, 0.1930788904428482, -0.16571572422981262, 0.22659817337989807, -0.03633589297533035, 0.8421132564544678, 0.07719916850328445, -0.040050141513347626, 0.3015676736831665, -0.06165573000907898, 0.3064919710159302, -0.10642470419406891, -0.5121487975120544, -0.06968485563993454, -0.10731102526187897, -0.03928399831056595, 0.0819719061255455, -0.18397551774978638, -0.11122232675552368, -0.2847858965396881, -0.2727968692779541, -0.31601959466934204, -0.2918524742126465, -0.11478517949581146, -0.20039138197898865, 0.13085435330867767, 0.19867926836013794, -0.06129197031259537, -0.162008136510849, -0.11249653995037079, 0.04898237809538841, 0.4355244040489197, -0.42080244421958923, -0.018615003675222397, 0.3795596659183502, -0.0728558674454689, -0.34649088978767395, 0.1986529678106308, 0.13178497552871704, 0.33032742142677307, 0.07662582397460938, 0.11820027232170105, 0.06014115735888481, -0.04932514578104019, 0.11224548518657684, 0.05919637158513069, -0.08000047504901886, 0.23661643266677856, -0.014694223180413246, -0.401273638010025, -0.05774356424808502, -0.22556275129318237, 0.22409889101982117, 0.4793194830417633, 0.08615225553512573, -0.2667844593524933, 0.21151801943778992, 0.23633195459842682, 0.1412733644247055, -0.11422289162874222, -0.1485223025083542, -0.4387519657611847, -0.3134375512599945, -0.378410667181015, -0.06004500016570091, 0.18504580855369568, 0.23917469382286072, 0.041669439524412155, -0.07086938619613647, -0.06402730941772461, -0.21697312593460083, 0.0610417015850544, 0.3596896529197693, 0.14828412234783173, 0.2704481780529022, 0.5801548361778259, 0.1271515041589737, -0.2473594844341278, 0.44701868295669556, 0.5865607857704163, 0.0028329542838037014, -0.58351731300354, -0.02799946255981922, -0.17973950505256653, 0.2348889261484146, 0.13151949644088745, -0.07067332416772842, 0.01633032225072384, 0.05956551060080528, -0.13585171103477478, 0.3848748803138733, 0.38126593828201294, -0.06354271620512009, 0.12624822556972504, -0.40266531705856323, -0.12859110534191132, 0.09584790468215942, 0.0007424193900078535, 0.13769900798797607, 0.46016570925712585, -0.37963858246803284, -0.05982203409075737, 0.047098543494939804, -0.18435367941856384, 0.6863647103309631, -0.03818909451365471, -0.23901525139808655, 0.27325356006622314, -0.1615028828382492, 0.2652587890625, 0.11319036036729813, 0.18576043844223022, -0.2762230336666107, -0.3076212704181671, 0.09239334613084793, -0.22662189602851868, 0.1900259554386139, -0.1945812851190567, -0.3511311709880829, 0.2596140503883362, 0.05645624175667763, -0.149830162525177, -0.018576418980956078, 0.04060488939285278, 0.002412857487797737, -0.2937503159046173, -0.35251981019973755, 0.05176933482289314, -0.1905302256345749, 0.20617200434207916, -0.19724205136299133, -0.18334610760211945, -0.13894802331924438, -0.1865321546792984, -0.0331040620803833, -0.1090359315276146, -0.6445794701576233, 0.23709844052791595, 0.33144769072532654, -0.3087446987628937, 0.20051699876785278, -0.11113837361335754, 0.09509853273630142, -0.02933046966791153, -0.17394961416721344, 0.1265125274658203, 0.19933469593524933, 0.0166865736246109, -0.11088825762271881, -0.1729525625705719, 0.41977208852767944, -0.08396551012992859, 0.005003898870199919, 0.05766630917787552, 0.03662293404340744, -0.022534310817718506, 0.47023463249206543, 0.3512617349624634, 0.36815744638442993, 0.1506929248571396, -0.07557583600282669, 0.18104751408100128, 0.26167550683021545, -0.19587796926498413, 0.07804212719202042, 0.1019754409790039, -0.15308448672294617, 0.25580689311027527, -0.10751410573720932, -0.1003248319029808, -0.0019222715636715293, 0.33977261185646057, 0.12967118620872498, -0.016100294888019562, 0.18322117626667023, 0.15517257153987885, -0.2558426856994629, -0.0844760537147522, 0.16883499920368195, -0.3087921738624573, -0.3004138469696045, 0.24127735197544098, -0.019914135336875916, 0.04912685602903366, 0.07449415326118469, 0.7340952157974243, 0.2456148862838745, -0.36856892704963684, -0.1320783495903015, -0.3772931396961212, -0.5326014757156372, 0.14176900684833527, -0.1205236166715622, -0.09494353085756302, 0.2369505763053894, 0.38368967175483704, 0.12086893618106842, 0.1284106820821762, -0.22089053690433502, 0.10524074733257294, -0.1584758758544922, 0.1540040373802185, 0.27565088868141174, -0.09605144709348679, 0.03729217126965523, 0.08598966151475906, 0.004241897724568844, 0.15297818183898926, 0.06710047274827957, -0.2249542623758316, -0.11465847492218018, 0.13268062472343445, -0.10255349427461624, 0.040870893746614456, -0.11802631616592407, -0.15128569304943085, -0.230035200715065, -0.17150287330150604, 0.1590515673160553, 0.03512401133775711, -0.08184205740690231, -0.1321558803319931, 0.29200512170791626, -0.09662938863039017, -0.21740150451660156, 0.4025673270225525, 0.11779535561800003, 0.08100782334804535, 0.07766718417406082, 0.16603003442287445, 0.1665421575307846, 0.1832788586616516, 0.017529835924506187, -0.2253393530845642, -0.0916714146733284, -0.17651274800300598, 0.09427814930677414, -0.3320893943309784, -0.014022735878825188, 0.0699954554438591, -0.02750704437494278, 0.4203796982765198, -0.1289566606283188, -0.2099848985671997, 0.047241371124982834, 0.08578076213598251, -0.3888074457645416, 0.031113293021917343, 0.3042641282081604, 0.15485864877700806, 0.1754324585199356, 0.2722876965999603, 0.08177193999290466, 0.08188467472791672, 0.15440961718559265, 0.39525195956230164, 0.2447240650653839, -0.02283727005124092, 0.26611146330833435, -0.2058008760213852, 0.08578208088874817, 0.23063482344150543, 0.23610937595367432, 0.11843244731426239, 0.03810511901974678, 0.15266965329647064, -0.1501825898885727, 0.2959783971309662, 0.14464372396469116, -0.1672735959291458, 0.2365310788154602, -0.359602689743042, 0.24245642125606537, -0.09867701679468155, 0.056908540427684784, -0.13632839918136597, 0.14178615808486938, 0.32764652371406555, -0.04918676242232323, -0.08844675868749619, -0.16085343062877655, -0.0030407351441681385, -0.30019044876098633, 0.27094098925590515, 0.4638242721557617, -0.09763120859861374, -0.09312402456998825, -0.04317576065659523, 0.21457749605178833, 0.21752849221229553, 0.5374788045883179, 0.3159119188785553, -0.16689953207969666, -0.4896297752857208, -0.1224406361579895, 0.5082058906555176, -0.12667319178581238, -0.18445312976837158, 0.46237340569496155, -0.1348712295293808, 0.010012376122176647, -0.16528095304965973, 0.32221511006355286, 0.48848435282707214, 0.3006311357021332, -0.13834835588932037, -0.2075258493423462, 0.25662747025489807, -0.1801050752401352, -0.13837409019470215, 0.21072141826152802, 0.059684064239263535, 0.29416805505752563, 0.2981710135936737, 0.08425360172986984, -0.16908781230449677, -0.03203774616122246, 0.22073045372962952, -0.33576127886772156, -0.44091930985450745, 0.20642831921577454, -0.15670651197433472, -0.0026591953355818987, -0.1897849142551422, 0.09800048172473907, -0.45638933777809143, 0.22882479429244995, 0.3156726360321045, -0.22243887186050415, -0.0670025646686554, -0.14896292984485626, 0.044959425926208496, -0.03079915978014469, 0.36052775382995605, 0.24672473967075348, 0.35621005296707153, -0.20113036036491394, -0.10377366840839386, -0.8396954536437988, 0.3146013617515564, 0.03366608917713165, -0.011730300262570381, -0.03855295479297638, 0.13932549953460693, -0.0011309953406453133, 0.32129383087158203, 0.4201123118400574, 0.04542868211865425, 0.190121129155159, 0.03722898289561272, -0.46201562881469727, -0.2717560827732086, 0.09004053473472595, -0.4454764723777771, 0.005056973546743393, -0.39178991317749023, -0.004098302684724331, -0.28245189785957336, -0.04146819934248924, -0.02739778719842434, -0.44652771949768066, 0.27017587423324585, 0.30223777890205383, 0.29597416520118713, -0.04375544190406799, 0.6722488403320312, -0.05365686118602753, 0.09963594377040863, -0.06906541436910629, -0.31764423847198486, -0.02696416713297367, 0.15783026814460754, 0.3953229486942291, 0.2114284187555313, -0.24911072850227356, 0.0748828575015068, -0.12848496437072754, 0.13370424509048462, 0.13303200900554657, 0.01289929449558258, -0.27821603417396545, 0.06854163855314255, -0.16541370749473572, 0.403052419424057, -0.13011367619037628, 0.18237237632274628, 0.06379113346338272, 0.27051493525505066, -0.30365633964538574, -0.3571581542491913, 0.39119863510131836, -0.34344860911369324, -0.45859748125076294, -0.42767268419265747, 0.2904647886753082, 0.1598200500011444, -0.20495717227458954, -0.47420892119407654, 0.0093036824837327, 0.25498881936073303, -0.1533089429140091, -0.15550069510936737, 0.5398076772689819, 0.06995448470115662, 0.2142622470855713, -0.12199632078409195, 0.20986361801624298, 0.004663238767534494, -0.11890158802270889, -0.1165049821138382, -0.06436560302972794 ]
https://github.com/huggingface/datasets/issues/2695
Cannot import load_dataset on Colab
> @phosseini > I think it is related to [1.10.0](https://github.com/huggingface/datasets/actions/runs/1052653701) release done 3 hours ago. (cc: @lhoestq ) > For now I just downgraded to 1.9.0 and it is working fine. Same here, downgraded to 1.9.0 for now and works fine.
## Describe the bug Got tqdm concurrent module not found error during importing load_dataset from datasets. ## Steps to reproduce the bug Here [colab notebook](https://colab.research.google.com/drive/1pErWWnVP4P4mVHjSFUtkePd8Na_Qirg4?usp=sharing) to reproduce the error On colab: ```python !pip install datasets from datasets import load_dataset ``` ## Expected results Works without error ## Actual results Specify the actual results or traceback. ``` ModuleNotFoundError Traceback (most recent call last) <ipython-input-2-8cc7de4c69eb> in <module>() ----> 1 from datasets import load_dataset, load_metric, Metric, MetricInfo, Features, Value 2 from sklearn.metrics import mean_squared_error /usr/local/lib/python3.7/dist-packages/datasets/__init__.py in <module>() 31 ) 32 ---> 33 from .arrow_dataset import Dataset, concatenate_datasets 34 from .arrow_reader import ArrowReader, ReadInstruction 35 from .arrow_writer import ArrowWriter /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in <module>() 40 from tqdm.auto import tqdm 41 ---> 42 from datasets.tasks.text_classification import TextClassification 43 44 from . import config, utils /usr/local/lib/python3.7/dist-packages/datasets/tasks/__init__.py in <module>() 1 from typing import Optional 2 ----> 3 from ..utils.logging import get_logger 4 from .automatic_speech_recognition import AutomaticSpeechRecognition 5 from .base import TaskTemplate /usr/local/lib/python3.7/dist-packages/datasets/utils/__init__.py in <module>() 19 20 from . import logging ---> 21 from .download_manager import DownloadManager, GenerateMode 22 from .file_utils import DownloadConfig, cached_path, hf_bucket_url, is_remote_url, temp_seed 23 from .mock_download_manager import MockDownloadManager /usr/local/lib/python3.7/dist-packages/datasets/utils/download_manager.py in <module>() 24 25 from .. import config ---> 26 from .file_utils import ( 27 DownloadConfig, 28 cached_path, /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in <module>() 25 import posixpath 26 import requests ---> 27 from tqdm.contrib.concurrent import thread_map 28 29 from .. import __version__, config, utils ModuleNotFoundError: No module named 'tqdm.contrib.concurrent' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.10.0 - Platform: Colab - Python version: 3.7.11 - PyArrow version: 3.0.0
41
Cannot import load_dataset on Colab ## Describe the bug Got tqdm concurrent module not found error during importing load_dataset from datasets. ## Steps to reproduce the bug Here [colab notebook](https://colab.research.google.com/drive/1pErWWnVP4P4mVHjSFUtkePd8Na_Qirg4?usp=sharing) to reproduce the error On colab: ```python !pip install datasets from datasets import load_dataset ``` ## Expected results Works without error ## Actual results Specify the actual results or traceback. ``` ModuleNotFoundError Traceback (most recent call last) <ipython-input-2-8cc7de4c69eb> in <module>() ----> 1 from datasets import load_dataset, load_metric, Metric, MetricInfo, Features, Value 2 from sklearn.metrics import mean_squared_error /usr/local/lib/python3.7/dist-packages/datasets/__init__.py in <module>() 31 ) 32 ---> 33 from .arrow_dataset import Dataset, concatenate_datasets 34 from .arrow_reader import ArrowReader, ReadInstruction 35 from .arrow_writer import ArrowWriter /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in <module>() 40 from tqdm.auto import tqdm 41 ---> 42 from datasets.tasks.text_classification import TextClassification 43 44 from . import config, utils /usr/local/lib/python3.7/dist-packages/datasets/tasks/__init__.py in <module>() 1 from typing import Optional 2 ----> 3 from ..utils.logging import get_logger 4 from .automatic_speech_recognition import AutomaticSpeechRecognition 5 from .base import TaskTemplate /usr/local/lib/python3.7/dist-packages/datasets/utils/__init__.py in <module>() 19 20 from . import logging ---> 21 from .download_manager import DownloadManager, GenerateMode 22 from .file_utils import DownloadConfig, cached_path, hf_bucket_url, is_remote_url, temp_seed 23 from .mock_download_manager import MockDownloadManager /usr/local/lib/python3.7/dist-packages/datasets/utils/download_manager.py in <module>() 24 25 from .. import config ---> 26 from .file_utils import ( 27 DownloadConfig, 28 cached_path, /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in <module>() 25 import posixpath 26 import requests ---> 27 from tqdm.contrib.concurrent import thread_map 28 29 from .. import __version__, config, utils ModuleNotFoundError: No module named 'tqdm.contrib.concurrent' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.10.0 - Platform: Colab - Python version: 3.7.11 - PyArrow version: 3.0.0 > @phosseini > I think it is related to [1.10.0](https://github.com/huggingface/datasets/actions/runs/1052653701) release done 3 hours ago. (cc: @lhoestq ) > For now I just downgraded to 1.9.0 and it is working fine. Same here, downgraded to 1.9.0 for now and works fine.
[ -0.4603256285190582, -0.21482765674591064, -0.024375125765800476, 0.26821377873420715, 0.13541275262832642, 0.051994577050209045, 0.4973769187927246, -0.10748507082462311, 0.19837038218975067, 0.0849531888961792, -0.32663094997406006, 0.47532352805137634, -0.1742696315050125, 0.14874832332134247, -0.2584451735019684, 0.09847039729356766, -0.066185861825943, 0.058203618973493576, -0.2907033860683441, 0.09561498463153839, 0.020291518419981003, 0.3308885097503662, -0.633569061756134, -0.3468572795391083, -0.5786887407302856, -0.21004115045070648, -0.027742085978388786, 0.16879141330718994, -0.2702193260192871, -0.29201075434684753, 0.3478228747844696, 0.1770588457584381, 0.09218970686197281, 0.569717288017273, -0.00011724026262527332, 0.07151338458061218, 0.39330920577049255, -0.07875358313322067, -0.24568970501422882, -0.3918710947036743, -0.34615322947502136, -0.32919612526893616, 0.368621826171875, -0.10739260911941528, 0.1058272197842598, 0.40416616201400757, -0.13573090732097626, -0.133275106549263, 0.2626953423023224, 0.13527964055538177, 0.19363413751125336, 0.5491978526115417, 0.1630605161190033, -0.19249221682548523, -0.11258674412965775, -0.19337788224220276, -0.20208290219306946, 0.7461528182029724, 0.41741806268692017, 0.016856210306286812, -0.0510248988866806, 0.2604953348636627, -0.0992678701877594, 0.2890875041484833, 0.18624088168144226, -0.03342185914516449, 0.10510164499282837, -0.48058274388313293, 0.10063720494508743, 0.17437751591205597, 0.4806714653968811, -0.23342734575271606, 0.04439045116305351, -0.12202465534210205, 0.2094741016626358, -0.29246774315834045, 0.261900395154953, -0.09857016801834106, -0.2118593454360962, 0.049007952213287354, -0.022696644067764282, -0.08961711823940277, -0.012307312339544296, 0.016437161713838577, -0.09338612109422684, 0.36550673842430115, -0.14300726354122162, -0.11182652413845062, 0.06986578553915024, -0.10964152216911316, 0.5018093585968018, -0.016182273626327515, -0.026867389678955078, 0.2063279151916504, -0.4680005609989166, -0.009329631924629211, -0.09887044876813889, -0.14084890484809875, -0.05169893801212311, -0.10149464756250381, -0.03618668019771576, 0.017466731369495392, -0.11100886017084122, 0.3034836947917938, 0.18480238318443298, 0.1422499418258667, 0.03475858271121979, 0.018298635259270668, 0.12265416979789734, 0.28642868995666504, -0.20076298713684082, 0.22739534080028534, -0.259282648563385, -0.31187957525253296, 0.1845090240240097, -0.029213745146989822, 0.2715788781642914, -0.0037105006631463766, -0.31906187534332275, -0.18184544146060944, 0.009568385779857635, 0.10504216700792313, 0.04462249577045441, 0.39905354380607605, 0.05579572170972824, 0.10570880770683289, -0.0346219539642334, 0.00169389508664608, -0.3566533923149109, -0.23943834006786346, -0.05384502187371254, 0.19369623064994812, -0.06428023427724838, -0.11529950797557831, 0.06780330836772919, -0.15499870479106903, 0.26018649339675903, -0.01242044661194086, 0.3092045783996582, -0.05996029078960419, 0.10367400199174881, -0.3025384545326233, -0.06064527481794357, 0.3319084048271179, 0.12873533368110657, 0.08720225840806961, -0.06231344863772392, -0.20557811856269836, -0.07788795232772827, 0.23551695048809052, -0.477062463760376, -0.14423614740371704, -0.024314794689416885, 0.1429465115070343, -0.1339145302772522, -0.22443081438541412, -0.5850236415863037, 0.16483402252197266, 0.14476370811462402, -0.08128175884485245, -0.08496221154928207, -0.3062833249568939, -0.23307140171527863, -0.15358290076255798, 0.12368795275688171, 0.44828349351882935, -0.23092882335186005, -0.14231432974338531, -0.21769076585769653, 0.12052740156650543, 0.12727050483226776, 0.23482318222522736, -0.2021542638540268, 0.1736087203025818, -0.09626415371894836, -0.11714198440313339, 0.49064818024635315, -0.43263617157936096, -0.467124879360199, -0.020347680896520615, -0.26607662439346313, -0.005254622083157301, -0.08970677852630615, 0.04857955873012543, 0.3577234148979187, -0.06694085150957108, 0.5458385348320007, 0.2629372477531433, -0.13903303444385529, -0.03660419583320618, -0.16409096121788025, -0.4099055230617523, 0.12942537665367126, 0.04181958734989166, 0.1834629327058792, -0.21777135133743286, 0.2030327022075653, -0.05337464064359665, 0.10123799741268158, 0.1859942227602005, -0.12112988531589508, 0.384333074092865, 0.24290147423744202, -0.22237874567508698, 0.03727392107248306, -0.18595744669437408, -0.4775210916996002, 0.22404809296131134, 0.40929457545280457, 0.07997166365385056, -0.06749922037124634, 0.05132468044757843, -0.43819618225097656, 0.0791066437959671, -0.25944408774375916, 0.06764248758554459, 0.09941264241933823, -0.06666989624500275, -0.1751304417848587, 0.08892634510993958, -0.26048317551612854, 0.7403808832168579, 0.037708036601543427, 0.21759352087974548, -0.3183417320251465, 0.21578840911388397, -0.18590405583381653, -0.3081796169281006, 0.17629237473011017, 0.13617128133773804, 0.0753253698348999, -0.09227273613214493, -0.23890753090381622, 0.14212174713611603, 0.2554135322570801, 0.17134137451648712, 0.061892446130514145, -0.2776557505130768, 0.4123668670654297, -0.274011492729187, 0.012325159274041653, -0.10668440908193588, 0.20857030153274536, 0.005822932347655296, 0.2551180422306061, 0.15657177567481995, -0.37070298194885254, -0.04107332229614258, -0.030511964112520218, 0.090538389980793, 0.3726440966129303, 0.12399637699127197, -0.005092668812721968, -0.18564917147159576, 0.32518404722213745, 0.2222951352596283, 0.1924741119146347, 0.09374191612005234, -0.1297319382429123, 0.28813523054122925, 0.30617550015449524, 0.24524423480033875, 0.038779307156801224, -0.2685609757900238, -0.2554303705692291, 0.06336459517478943, 0.1922869086265564, 0.25180914998054504, 0.44464540481567383, 0.18038886785507202, 0.10491914302110672, 0.0316312313079834, 0.0318475142121315, -0.15611745417118073, 0.1151200532913208, 0.2919997572898865, 0.25584110617637634, 0.13110268115997314, 0.412082701921463, 0.09674369543790817, -0.07899821549654007, -0.38941165804862976, 0.175325408577919, 0.15031109750270844, -0.33177241683006287, 0.0766264870762825, -0.21460174024105072, -0.11394724994897842, -0.14194613695144653, -0.4253392815589905, -0.14645393192768097, -0.1978352814912796, -0.10580053925514221, 0.2810255289077759, 0.26506251096725464, 0.19366224110126495, -0.02399413287639618, 0.05001707747578621, 0.06250438839197159, -0.14248351752758026, -0.055816899985075, -0.25067710876464844, -0.09258749336004257, 0.0015158079331740737, 0.32773953676223755, 0.2468109428882599, 0.36850619316101074, -0.3038307726383209, -0.06956276297569275, 0.14370045065879822, -0.33209797739982605, 0.1763453334569931, -0.005682501010596752, 0.29197996854782104, -0.013442921452224255, -0.0779714584350586, -0.3206300735473633, -0.19391757249832153, 0.02153646945953369, -0.13462314009666443, -0.18274642527103424, 0.04727939888834953, -0.1800287961959839, -0.22977393865585327, -0.001991121331229806, -0.29268813133239746, -0.4344461262226105, -0.3998570144176483, -0.3682098388671875, 0.04724651947617531, -0.008902975358068943, 0.46030017733573914, -0.042716480791568756, 0.29339227080345154, 0.22506991028785706, 0.05083799734711647, 0.01793607883155346, -0.33309122920036316, 0.47338196635246277, -0.28651121258735657, -0.2936581075191498, 0.2801203429698944, -0.26804643869400024, 0.3836089074611664, 0.018183382228016853, -0.11044333875179291, -0.2135312557220459, -0.021479368209838867, 0.38373711705207825, -0.10093988478183746, 0.04168316349387169, 0.08463598787784576, 0.11366216838359833, 0.07825830578804016, -0.0924064964056015, -0.18155261874198914, -0.20405049622058868, 0.21963198482990265, 0.1930788904428482, -0.16571572422981262, 0.22659817337989807, -0.03633589297533035, 0.8421132564544678, 0.07719916850328445, -0.040050141513347626, 0.3015676736831665, -0.06165573000907898, 0.3064919710159302, -0.10642470419406891, -0.5121487975120544, -0.06968485563993454, -0.10731102526187897, -0.03928399831056595, 0.0819719061255455, -0.18397551774978638, -0.11122232675552368, -0.2847858965396881, -0.2727968692779541, -0.31601959466934204, -0.2918524742126465, -0.11478517949581146, -0.20039138197898865, 0.13085435330867767, 0.19867926836013794, -0.06129197031259537, -0.162008136510849, -0.11249653995037079, 0.04898237809538841, 0.4355244040489197, -0.42080244421958923, -0.018615003675222397, 0.3795596659183502, -0.0728558674454689, -0.34649088978767395, 0.1986529678106308, 0.13178497552871704, 0.33032742142677307, 0.07662582397460938, 0.11820027232170105, 0.06014115735888481, -0.04932514578104019, 0.11224548518657684, 0.05919637158513069, -0.08000047504901886, 0.23661643266677856, -0.014694223180413246, -0.401273638010025, -0.05774356424808502, -0.22556275129318237, 0.22409889101982117, 0.4793194830417633, 0.08615225553512573, -0.2667844593524933, 0.21151801943778992, 0.23633195459842682, 0.1412733644247055, -0.11422289162874222, -0.1485223025083542, -0.4387519657611847, -0.3134375512599945, -0.378410667181015, -0.06004500016570091, 0.18504580855369568, 0.23917469382286072, 0.041669439524412155, -0.07086938619613647, -0.06402730941772461, -0.21697312593460083, 0.0610417015850544, 0.3596896529197693, 0.14828412234783173, 0.2704481780529022, 0.5801548361778259, 0.1271515041589737, -0.2473594844341278, 0.44701868295669556, 0.5865607857704163, 0.0028329542838037014, -0.58351731300354, -0.02799946255981922, -0.17973950505256653, 0.2348889261484146, 0.13151949644088745, -0.07067332416772842, 0.01633032225072384, 0.05956551060080528, -0.13585171103477478, 0.3848748803138733, 0.38126593828201294, -0.06354271620512009, 0.12624822556972504, -0.40266531705856323, -0.12859110534191132, 0.09584790468215942, 0.0007424193900078535, 0.13769900798797607, 0.46016570925712585, -0.37963858246803284, -0.05982203409075737, 0.047098543494939804, -0.18435367941856384, 0.6863647103309631, -0.03818909451365471, -0.23901525139808655, 0.27325356006622314, -0.1615028828382492, 0.2652587890625, 0.11319036036729813, 0.18576043844223022, -0.2762230336666107, -0.3076212704181671, 0.09239334613084793, -0.22662189602851868, 0.1900259554386139, -0.1945812851190567, -0.3511311709880829, 0.2596140503883362, 0.05645624175667763, -0.149830162525177, -0.018576418980956078, 0.04060488939285278, 0.002412857487797737, -0.2937503159046173, -0.35251981019973755, 0.05176933482289314, -0.1905302256345749, 0.20617200434207916, -0.19724205136299133, -0.18334610760211945, -0.13894802331924438, -0.1865321546792984, -0.0331040620803833, -0.1090359315276146, -0.6445794701576233, 0.23709844052791595, 0.33144769072532654, -0.3087446987628937, 0.20051699876785278, -0.11113837361335754, 0.09509853273630142, -0.02933046966791153, -0.17394961416721344, 0.1265125274658203, 0.19933469593524933, 0.0166865736246109, -0.11088825762271881, -0.1729525625705719, 0.41977208852767944, -0.08396551012992859, 0.005003898870199919, 0.05766630917787552, 0.03662293404340744, -0.022534310817718506, 0.47023463249206543, 0.3512617349624634, 0.36815744638442993, 0.1506929248571396, -0.07557583600282669, 0.18104751408100128, 0.26167550683021545, -0.19587796926498413, 0.07804212719202042, 0.1019754409790039, -0.15308448672294617, 0.25580689311027527, -0.10751410573720932, -0.1003248319029808, -0.0019222715636715293, 0.33977261185646057, 0.12967118620872498, -0.016100294888019562, 0.18322117626667023, 0.15517257153987885, -0.2558426856994629, -0.0844760537147522, 0.16883499920368195, -0.3087921738624573, -0.3004138469696045, 0.24127735197544098, -0.019914135336875916, 0.04912685602903366, 0.07449415326118469, 0.7340952157974243, 0.2456148862838745, -0.36856892704963684, -0.1320783495903015, -0.3772931396961212, -0.5326014757156372, 0.14176900684833527, -0.1205236166715622, -0.09494353085756302, 0.2369505763053894, 0.38368967175483704, 0.12086893618106842, 0.1284106820821762, -0.22089053690433502, 0.10524074733257294, -0.1584758758544922, 0.1540040373802185, 0.27565088868141174, -0.09605144709348679, 0.03729217126965523, 0.08598966151475906, 0.004241897724568844, 0.15297818183898926, 0.06710047274827957, -0.2249542623758316, -0.11465847492218018, 0.13268062472343445, -0.10255349427461624, 0.040870893746614456, -0.11802631616592407, -0.15128569304943085, -0.230035200715065, -0.17150287330150604, 0.1590515673160553, 0.03512401133775711, -0.08184205740690231, -0.1321558803319931, 0.29200512170791626, -0.09662938863039017, -0.21740150451660156, 0.4025673270225525, 0.11779535561800003, 0.08100782334804535, 0.07766718417406082, 0.16603003442287445, 0.1665421575307846, 0.1832788586616516, 0.017529835924506187, -0.2253393530845642, -0.0916714146733284, -0.17651274800300598, 0.09427814930677414, -0.3320893943309784, -0.014022735878825188, 0.0699954554438591, -0.02750704437494278, 0.4203796982765198, -0.1289566606283188, -0.2099848985671997, 0.047241371124982834, 0.08578076213598251, -0.3888074457645416, 0.031113293021917343, 0.3042641282081604, 0.15485864877700806, 0.1754324585199356, 0.2722876965999603, 0.08177193999290466, 0.08188467472791672, 0.15440961718559265, 0.39525195956230164, 0.2447240650653839, -0.02283727005124092, 0.26611146330833435, -0.2058008760213852, 0.08578208088874817, 0.23063482344150543, 0.23610937595367432, 0.11843244731426239, 0.03810511901974678, 0.15266965329647064, -0.1501825898885727, 0.2959783971309662, 0.14464372396469116, -0.1672735959291458, 0.2365310788154602, -0.359602689743042, 0.24245642125606537, -0.09867701679468155, 0.056908540427684784, -0.13632839918136597, 0.14178615808486938, 0.32764652371406555, -0.04918676242232323, -0.08844675868749619, -0.16085343062877655, -0.0030407351441681385, -0.30019044876098633, 0.27094098925590515, 0.4638242721557617, -0.09763120859861374, -0.09312402456998825, -0.04317576065659523, 0.21457749605178833, 0.21752849221229553, 0.5374788045883179, 0.3159119188785553, -0.16689953207969666, -0.4896297752857208, -0.1224406361579895, 0.5082058906555176, -0.12667319178581238, -0.18445312976837158, 0.46237340569496155, -0.1348712295293808, 0.010012376122176647, -0.16528095304965973, 0.32221511006355286, 0.48848435282707214, 0.3006311357021332, -0.13834835588932037, -0.2075258493423462, 0.25662747025489807, -0.1801050752401352, -0.13837409019470215, 0.21072141826152802, 0.059684064239263535, 0.29416805505752563, 0.2981710135936737, 0.08425360172986984, -0.16908781230449677, -0.03203774616122246, 0.22073045372962952, -0.33576127886772156, -0.44091930985450745, 0.20642831921577454, -0.15670651197433472, -0.0026591953355818987, -0.1897849142551422, 0.09800048172473907, -0.45638933777809143, 0.22882479429244995, 0.3156726360321045, -0.22243887186050415, -0.0670025646686554, -0.14896292984485626, 0.044959425926208496, -0.03079915978014469, 0.36052775382995605, 0.24672473967075348, 0.35621005296707153, -0.20113036036491394, -0.10377366840839386, -0.8396954536437988, 0.3146013617515564, 0.03366608917713165, -0.011730300262570381, -0.03855295479297638, 0.13932549953460693, -0.0011309953406453133, 0.32129383087158203, 0.4201123118400574, 0.04542868211865425, 0.190121129155159, 0.03722898289561272, -0.46201562881469727, -0.2717560827732086, 0.09004053473472595, -0.4454764723777771, 0.005056973546743393, -0.39178991317749023, -0.004098302684724331, -0.28245189785957336, -0.04146819934248924, -0.02739778719842434, -0.44652771949768066, 0.27017587423324585, 0.30223777890205383, 0.29597416520118713, -0.04375544190406799, 0.6722488403320312, -0.05365686118602753, 0.09963594377040863, -0.06906541436910629, -0.31764423847198486, -0.02696416713297367, 0.15783026814460754, 0.3953229486942291, 0.2114284187555313, -0.24911072850227356, 0.0748828575015068, -0.12848496437072754, 0.13370424509048462, 0.13303200900554657, 0.01289929449558258, -0.27821603417396545, 0.06854163855314255, -0.16541370749473572, 0.403052419424057, -0.13011367619037628, 0.18237237632274628, 0.06379113346338272, 0.27051493525505066, -0.30365633964538574, -0.3571581542491913, 0.39119863510131836, -0.34344860911369324, -0.45859748125076294, -0.42767268419265747, 0.2904647886753082, 0.1598200500011444, -0.20495717227458954, -0.47420892119407654, 0.0093036824837327, 0.25498881936073303, -0.1533089429140091, -0.15550069510936737, 0.5398076772689819, 0.06995448470115662, 0.2142622470855713, -0.12199632078409195, 0.20986361801624298, 0.004663238767534494, -0.11890158802270889, -0.1165049821138382, -0.06436560302972794 ]
https://github.com/huggingface/datasets/issues/2695
Cannot import load_dataset on Colab
Hi, updating tqdm to the newest version resolves the issue for me. You can do this as follows in Colab: ``` !pip install tqdm --upgrade ```
## Describe the bug Got tqdm concurrent module not found error during importing load_dataset from datasets. ## Steps to reproduce the bug Here [colab notebook](https://colab.research.google.com/drive/1pErWWnVP4P4mVHjSFUtkePd8Na_Qirg4?usp=sharing) to reproduce the error On colab: ```python !pip install datasets from datasets import load_dataset ``` ## Expected results Works without error ## Actual results Specify the actual results or traceback. ``` ModuleNotFoundError Traceback (most recent call last) <ipython-input-2-8cc7de4c69eb> in <module>() ----> 1 from datasets import load_dataset, load_metric, Metric, MetricInfo, Features, Value 2 from sklearn.metrics import mean_squared_error /usr/local/lib/python3.7/dist-packages/datasets/__init__.py in <module>() 31 ) 32 ---> 33 from .arrow_dataset import Dataset, concatenate_datasets 34 from .arrow_reader import ArrowReader, ReadInstruction 35 from .arrow_writer import ArrowWriter /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in <module>() 40 from tqdm.auto import tqdm 41 ---> 42 from datasets.tasks.text_classification import TextClassification 43 44 from . import config, utils /usr/local/lib/python3.7/dist-packages/datasets/tasks/__init__.py in <module>() 1 from typing import Optional 2 ----> 3 from ..utils.logging import get_logger 4 from .automatic_speech_recognition import AutomaticSpeechRecognition 5 from .base import TaskTemplate /usr/local/lib/python3.7/dist-packages/datasets/utils/__init__.py in <module>() 19 20 from . import logging ---> 21 from .download_manager import DownloadManager, GenerateMode 22 from .file_utils import DownloadConfig, cached_path, hf_bucket_url, is_remote_url, temp_seed 23 from .mock_download_manager import MockDownloadManager /usr/local/lib/python3.7/dist-packages/datasets/utils/download_manager.py in <module>() 24 25 from .. import config ---> 26 from .file_utils import ( 27 DownloadConfig, 28 cached_path, /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in <module>() 25 import posixpath 26 import requests ---> 27 from tqdm.contrib.concurrent import thread_map 28 29 from .. import __version__, config, utils ModuleNotFoundError: No module named 'tqdm.contrib.concurrent' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.10.0 - Platform: Colab - Python version: 3.7.11 - PyArrow version: 3.0.0
26
Cannot import load_dataset on Colab ## Describe the bug Got tqdm concurrent module not found error during importing load_dataset from datasets. ## Steps to reproduce the bug Here [colab notebook](https://colab.research.google.com/drive/1pErWWnVP4P4mVHjSFUtkePd8Na_Qirg4?usp=sharing) to reproduce the error On colab: ```python !pip install datasets from datasets import load_dataset ``` ## Expected results Works without error ## Actual results Specify the actual results or traceback. ``` ModuleNotFoundError Traceback (most recent call last) <ipython-input-2-8cc7de4c69eb> in <module>() ----> 1 from datasets import load_dataset, load_metric, Metric, MetricInfo, Features, Value 2 from sklearn.metrics import mean_squared_error /usr/local/lib/python3.7/dist-packages/datasets/__init__.py in <module>() 31 ) 32 ---> 33 from .arrow_dataset import Dataset, concatenate_datasets 34 from .arrow_reader import ArrowReader, ReadInstruction 35 from .arrow_writer import ArrowWriter /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in <module>() 40 from tqdm.auto import tqdm 41 ---> 42 from datasets.tasks.text_classification import TextClassification 43 44 from . import config, utils /usr/local/lib/python3.7/dist-packages/datasets/tasks/__init__.py in <module>() 1 from typing import Optional 2 ----> 3 from ..utils.logging import get_logger 4 from .automatic_speech_recognition import AutomaticSpeechRecognition 5 from .base import TaskTemplate /usr/local/lib/python3.7/dist-packages/datasets/utils/__init__.py in <module>() 19 20 from . import logging ---> 21 from .download_manager import DownloadManager, GenerateMode 22 from .file_utils import DownloadConfig, cached_path, hf_bucket_url, is_remote_url, temp_seed 23 from .mock_download_manager import MockDownloadManager /usr/local/lib/python3.7/dist-packages/datasets/utils/download_manager.py in <module>() 24 25 from .. import config ---> 26 from .file_utils import ( 27 DownloadConfig, 28 cached_path, /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in <module>() 25 import posixpath 26 import requests ---> 27 from tqdm.contrib.concurrent import thread_map 28 29 from .. import __version__, config, utils ModuleNotFoundError: No module named 'tqdm.contrib.concurrent' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.10.0 - Platform: Colab - Python version: 3.7.11 - PyArrow version: 3.0.0 Hi, updating tqdm to the newest version resolves the issue for me. You can do this as follows in Colab: ``` !pip install tqdm --upgrade ```
[ -0.4603256285190582, -0.21482765674591064, -0.024375125765800476, 0.26821377873420715, 0.13541275262832642, 0.051994577050209045, 0.4973769187927246, -0.10748507082462311, 0.19837038218975067, 0.0849531888961792, -0.32663094997406006, 0.47532352805137634, -0.1742696315050125, 0.14874832332134247, -0.2584451735019684, 0.09847039729356766, -0.066185861825943, 0.058203618973493576, -0.2907033860683441, 0.09561498463153839, 0.020291518419981003, 0.3308885097503662, -0.633569061756134, -0.3468572795391083, -0.5786887407302856, -0.21004115045070648, -0.027742085978388786, 0.16879141330718994, -0.2702193260192871, -0.29201075434684753, 0.3478228747844696, 0.1770588457584381, 0.09218970686197281, 0.569717288017273, -0.00011724026262527332, 0.07151338458061218, 0.39330920577049255, -0.07875358313322067, -0.24568970501422882, -0.3918710947036743, -0.34615322947502136, -0.32919612526893616, 0.368621826171875, -0.10739260911941528, 0.1058272197842598, 0.40416616201400757, -0.13573090732097626, -0.133275106549263, 0.2626953423023224, 0.13527964055538177, 0.19363413751125336, 0.5491978526115417, 0.1630605161190033, -0.19249221682548523, -0.11258674412965775, -0.19337788224220276, -0.20208290219306946, 0.7461528182029724, 0.41741806268692017, 0.016856210306286812, -0.0510248988866806, 0.2604953348636627, -0.0992678701877594, 0.2890875041484833, 0.18624088168144226, -0.03342185914516449, 0.10510164499282837, -0.48058274388313293, 0.10063720494508743, 0.17437751591205597, 0.4806714653968811, -0.23342734575271606, 0.04439045116305351, -0.12202465534210205, 0.2094741016626358, -0.29246774315834045, 0.261900395154953, -0.09857016801834106, -0.2118593454360962, 0.049007952213287354, -0.022696644067764282, -0.08961711823940277, -0.012307312339544296, 0.016437161713838577, -0.09338612109422684, 0.36550673842430115, -0.14300726354122162, -0.11182652413845062, 0.06986578553915024, -0.10964152216911316, 0.5018093585968018, -0.016182273626327515, -0.026867389678955078, 0.2063279151916504, -0.4680005609989166, -0.009329631924629211, -0.09887044876813889, -0.14084890484809875, -0.05169893801212311, -0.10149464756250381, -0.03618668019771576, 0.017466731369495392, -0.11100886017084122, 0.3034836947917938, 0.18480238318443298, 0.1422499418258667, 0.03475858271121979, 0.018298635259270668, 0.12265416979789734, 0.28642868995666504, -0.20076298713684082, 0.22739534080028534, -0.259282648563385, -0.31187957525253296, 0.1845090240240097, -0.029213745146989822, 0.2715788781642914, -0.0037105006631463766, -0.31906187534332275, -0.18184544146060944, 0.009568385779857635, 0.10504216700792313, 0.04462249577045441, 0.39905354380607605, 0.05579572170972824, 0.10570880770683289, -0.0346219539642334, 0.00169389508664608, -0.3566533923149109, -0.23943834006786346, -0.05384502187371254, 0.19369623064994812, -0.06428023427724838, -0.11529950797557831, 0.06780330836772919, -0.15499870479106903, 0.26018649339675903, -0.01242044661194086, 0.3092045783996582, -0.05996029078960419, 0.10367400199174881, -0.3025384545326233, -0.06064527481794357, 0.3319084048271179, 0.12873533368110657, 0.08720225840806961, -0.06231344863772392, -0.20557811856269836, -0.07788795232772827, 0.23551695048809052, -0.477062463760376, -0.14423614740371704, -0.024314794689416885, 0.1429465115070343, -0.1339145302772522, -0.22443081438541412, -0.5850236415863037, 0.16483402252197266, 0.14476370811462402, -0.08128175884485245, -0.08496221154928207, -0.3062833249568939, -0.23307140171527863, -0.15358290076255798, 0.12368795275688171, 0.44828349351882935, -0.23092882335186005, -0.14231432974338531, -0.21769076585769653, 0.12052740156650543, 0.12727050483226776, 0.23482318222522736, -0.2021542638540268, 0.1736087203025818, -0.09626415371894836, -0.11714198440313339, 0.49064818024635315, -0.43263617157936096, -0.467124879360199, -0.020347680896520615, -0.26607662439346313, -0.005254622083157301, -0.08970677852630615, 0.04857955873012543, 0.3577234148979187, -0.06694085150957108, 0.5458385348320007, 0.2629372477531433, -0.13903303444385529, -0.03660419583320618, -0.16409096121788025, -0.4099055230617523, 0.12942537665367126, 0.04181958734989166, 0.1834629327058792, -0.21777135133743286, 0.2030327022075653, -0.05337464064359665, 0.10123799741268158, 0.1859942227602005, -0.12112988531589508, 0.384333074092865, 0.24290147423744202, -0.22237874567508698, 0.03727392107248306, -0.18595744669437408, -0.4775210916996002, 0.22404809296131134, 0.40929457545280457, 0.07997166365385056, -0.06749922037124634, 0.05132468044757843, -0.43819618225097656, 0.0791066437959671, -0.25944408774375916, 0.06764248758554459, 0.09941264241933823, -0.06666989624500275, -0.1751304417848587, 0.08892634510993958, -0.26048317551612854, 0.7403808832168579, 0.037708036601543427, 0.21759352087974548, -0.3183417320251465, 0.21578840911388397, -0.18590405583381653, -0.3081796169281006, 0.17629237473011017, 0.13617128133773804, 0.0753253698348999, -0.09227273613214493, -0.23890753090381622, 0.14212174713611603, 0.2554135322570801, 0.17134137451648712, 0.061892446130514145, -0.2776557505130768, 0.4123668670654297, -0.274011492729187, 0.012325159274041653, -0.10668440908193588, 0.20857030153274536, 0.005822932347655296, 0.2551180422306061, 0.15657177567481995, -0.37070298194885254, -0.04107332229614258, -0.030511964112520218, 0.090538389980793, 0.3726440966129303, 0.12399637699127197, -0.005092668812721968, -0.18564917147159576, 0.32518404722213745, 0.2222951352596283, 0.1924741119146347, 0.09374191612005234, -0.1297319382429123, 0.28813523054122925, 0.30617550015449524, 0.24524423480033875, 0.038779307156801224, -0.2685609757900238, -0.2554303705692291, 0.06336459517478943, 0.1922869086265564, 0.25180914998054504, 0.44464540481567383, 0.18038886785507202, 0.10491914302110672, 0.0316312313079834, 0.0318475142121315, -0.15611745417118073, 0.1151200532913208, 0.2919997572898865, 0.25584110617637634, 0.13110268115997314, 0.412082701921463, 0.09674369543790817, -0.07899821549654007, -0.38941165804862976, 0.175325408577919, 0.15031109750270844, -0.33177241683006287, 0.0766264870762825, -0.21460174024105072, -0.11394724994897842, -0.14194613695144653, -0.4253392815589905, -0.14645393192768097, -0.1978352814912796, -0.10580053925514221, 0.2810255289077759, 0.26506251096725464, 0.19366224110126495, -0.02399413287639618, 0.05001707747578621, 0.06250438839197159, -0.14248351752758026, -0.055816899985075, -0.25067710876464844, -0.09258749336004257, 0.0015158079331740737, 0.32773953676223755, 0.2468109428882599, 0.36850619316101074, -0.3038307726383209, -0.06956276297569275, 0.14370045065879822, -0.33209797739982605, 0.1763453334569931, -0.005682501010596752, 0.29197996854782104, -0.013442921452224255, -0.0779714584350586, -0.3206300735473633, -0.19391757249832153, 0.02153646945953369, -0.13462314009666443, -0.18274642527103424, 0.04727939888834953, -0.1800287961959839, -0.22977393865585327, -0.001991121331229806, -0.29268813133239746, -0.4344461262226105, -0.3998570144176483, -0.3682098388671875, 0.04724651947617531, -0.008902975358068943, 0.46030017733573914, -0.042716480791568756, 0.29339227080345154, 0.22506991028785706, 0.05083799734711647, 0.01793607883155346, -0.33309122920036316, 0.47338196635246277, -0.28651121258735657, -0.2936581075191498, 0.2801203429698944, -0.26804643869400024, 0.3836089074611664, 0.018183382228016853, -0.11044333875179291, -0.2135312557220459, -0.021479368209838867, 0.38373711705207825, -0.10093988478183746, 0.04168316349387169, 0.08463598787784576, 0.11366216838359833, 0.07825830578804016, -0.0924064964056015, -0.18155261874198914, -0.20405049622058868, 0.21963198482990265, 0.1930788904428482, -0.16571572422981262, 0.22659817337989807, -0.03633589297533035, 0.8421132564544678, 0.07719916850328445, -0.040050141513347626, 0.3015676736831665, -0.06165573000907898, 0.3064919710159302, -0.10642470419406891, -0.5121487975120544, -0.06968485563993454, -0.10731102526187897, -0.03928399831056595, 0.0819719061255455, -0.18397551774978638, -0.11122232675552368, -0.2847858965396881, -0.2727968692779541, -0.31601959466934204, -0.2918524742126465, -0.11478517949581146, -0.20039138197898865, 0.13085435330867767, 0.19867926836013794, -0.06129197031259537, -0.162008136510849, -0.11249653995037079, 0.04898237809538841, 0.4355244040489197, -0.42080244421958923, -0.018615003675222397, 0.3795596659183502, -0.0728558674454689, -0.34649088978767395, 0.1986529678106308, 0.13178497552871704, 0.33032742142677307, 0.07662582397460938, 0.11820027232170105, 0.06014115735888481, -0.04932514578104019, 0.11224548518657684, 0.05919637158513069, -0.08000047504901886, 0.23661643266677856, -0.014694223180413246, -0.401273638010025, -0.05774356424808502, -0.22556275129318237, 0.22409889101982117, 0.4793194830417633, 0.08615225553512573, -0.2667844593524933, 0.21151801943778992, 0.23633195459842682, 0.1412733644247055, -0.11422289162874222, -0.1485223025083542, -0.4387519657611847, -0.3134375512599945, -0.378410667181015, -0.06004500016570091, 0.18504580855369568, 0.23917469382286072, 0.041669439524412155, -0.07086938619613647, -0.06402730941772461, -0.21697312593460083, 0.0610417015850544, 0.3596896529197693, 0.14828412234783173, 0.2704481780529022, 0.5801548361778259, 0.1271515041589737, -0.2473594844341278, 0.44701868295669556, 0.5865607857704163, 0.0028329542838037014, -0.58351731300354, -0.02799946255981922, -0.17973950505256653, 0.2348889261484146, 0.13151949644088745, -0.07067332416772842, 0.01633032225072384, 0.05956551060080528, -0.13585171103477478, 0.3848748803138733, 0.38126593828201294, -0.06354271620512009, 0.12624822556972504, -0.40266531705856323, -0.12859110534191132, 0.09584790468215942, 0.0007424193900078535, 0.13769900798797607, 0.46016570925712585, -0.37963858246803284, -0.05982203409075737, 0.047098543494939804, -0.18435367941856384, 0.6863647103309631, -0.03818909451365471, -0.23901525139808655, 0.27325356006622314, -0.1615028828382492, 0.2652587890625, 0.11319036036729813, 0.18576043844223022, -0.2762230336666107, -0.3076212704181671, 0.09239334613084793, -0.22662189602851868, 0.1900259554386139, -0.1945812851190567, -0.3511311709880829, 0.2596140503883362, 0.05645624175667763, -0.149830162525177, -0.018576418980956078, 0.04060488939285278, 0.002412857487797737, -0.2937503159046173, -0.35251981019973755, 0.05176933482289314, -0.1905302256345749, 0.20617200434207916, -0.19724205136299133, -0.18334610760211945, -0.13894802331924438, -0.1865321546792984, -0.0331040620803833, -0.1090359315276146, -0.6445794701576233, 0.23709844052791595, 0.33144769072532654, -0.3087446987628937, 0.20051699876785278, -0.11113837361335754, 0.09509853273630142, -0.02933046966791153, -0.17394961416721344, 0.1265125274658203, 0.19933469593524933, 0.0166865736246109, -0.11088825762271881, -0.1729525625705719, 0.41977208852767944, -0.08396551012992859, 0.005003898870199919, 0.05766630917787552, 0.03662293404340744, -0.022534310817718506, 0.47023463249206543, 0.3512617349624634, 0.36815744638442993, 0.1506929248571396, -0.07557583600282669, 0.18104751408100128, 0.26167550683021545, -0.19587796926498413, 0.07804212719202042, 0.1019754409790039, -0.15308448672294617, 0.25580689311027527, -0.10751410573720932, -0.1003248319029808, -0.0019222715636715293, 0.33977261185646057, 0.12967118620872498, -0.016100294888019562, 0.18322117626667023, 0.15517257153987885, -0.2558426856994629, -0.0844760537147522, 0.16883499920368195, -0.3087921738624573, -0.3004138469696045, 0.24127735197544098, -0.019914135336875916, 0.04912685602903366, 0.07449415326118469, 0.7340952157974243, 0.2456148862838745, -0.36856892704963684, -0.1320783495903015, -0.3772931396961212, -0.5326014757156372, 0.14176900684833527, -0.1205236166715622, -0.09494353085756302, 0.2369505763053894, 0.38368967175483704, 0.12086893618106842, 0.1284106820821762, -0.22089053690433502, 0.10524074733257294, -0.1584758758544922, 0.1540040373802185, 0.27565088868141174, -0.09605144709348679, 0.03729217126965523, 0.08598966151475906, 0.004241897724568844, 0.15297818183898926, 0.06710047274827957, -0.2249542623758316, -0.11465847492218018, 0.13268062472343445, -0.10255349427461624, 0.040870893746614456, -0.11802631616592407, -0.15128569304943085, -0.230035200715065, -0.17150287330150604, 0.1590515673160553, 0.03512401133775711, -0.08184205740690231, -0.1321558803319931, 0.29200512170791626, -0.09662938863039017, -0.21740150451660156, 0.4025673270225525, 0.11779535561800003, 0.08100782334804535, 0.07766718417406082, 0.16603003442287445, 0.1665421575307846, 0.1832788586616516, 0.017529835924506187, -0.2253393530845642, -0.0916714146733284, -0.17651274800300598, 0.09427814930677414, -0.3320893943309784, -0.014022735878825188, 0.0699954554438591, -0.02750704437494278, 0.4203796982765198, -0.1289566606283188, -0.2099848985671997, 0.047241371124982834, 0.08578076213598251, -0.3888074457645416, 0.031113293021917343, 0.3042641282081604, 0.15485864877700806, 0.1754324585199356, 0.2722876965999603, 0.08177193999290466, 0.08188467472791672, 0.15440961718559265, 0.39525195956230164, 0.2447240650653839, -0.02283727005124092, 0.26611146330833435, -0.2058008760213852, 0.08578208088874817, 0.23063482344150543, 0.23610937595367432, 0.11843244731426239, 0.03810511901974678, 0.15266965329647064, -0.1501825898885727, 0.2959783971309662, 0.14464372396469116, -0.1672735959291458, 0.2365310788154602, -0.359602689743042, 0.24245642125606537, -0.09867701679468155, 0.056908540427684784, -0.13632839918136597, 0.14178615808486938, 0.32764652371406555, -0.04918676242232323, -0.08844675868749619, -0.16085343062877655, -0.0030407351441681385, -0.30019044876098633, 0.27094098925590515, 0.4638242721557617, -0.09763120859861374, -0.09312402456998825, -0.04317576065659523, 0.21457749605178833, 0.21752849221229553, 0.5374788045883179, 0.3159119188785553, -0.16689953207969666, -0.4896297752857208, -0.1224406361579895, 0.5082058906555176, -0.12667319178581238, -0.18445312976837158, 0.46237340569496155, -0.1348712295293808, 0.010012376122176647, -0.16528095304965973, 0.32221511006355286, 0.48848435282707214, 0.3006311357021332, -0.13834835588932037, -0.2075258493423462, 0.25662747025489807, -0.1801050752401352, -0.13837409019470215, 0.21072141826152802, 0.059684064239263535, 0.29416805505752563, 0.2981710135936737, 0.08425360172986984, -0.16908781230449677, -0.03203774616122246, 0.22073045372962952, -0.33576127886772156, -0.44091930985450745, 0.20642831921577454, -0.15670651197433472, -0.0026591953355818987, -0.1897849142551422, 0.09800048172473907, -0.45638933777809143, 0.22882479429244995, 0.3156726360321045, -0.22243887186050415, -0.0670025646686554, -0.14896292984485626, 0.044959425926208496, -0.03079915978014469, 0.36052775382995605, 0.24672473967075348, 0.35621005296707153, -0.20113036036491394, -0.10377366840839386, -0.8396954536437988, 0.3146013617515564, 0.03366608917713165, -0.011730300262570381, -0.03855295479297638, 0.13932549953460693, -0.0011309953406453133, 0.32129383087158203, 0.4201123118400574, 0.04542868211865425, 0.190121129155159, 0.03722898289561272, -0.46201562881469727, -0.2717560827732086, 0.09004053473472595, -0.4454764723777771, 0.005056973546743393, -0.39178991317749023, -0.004098302684724331, -0.28245189785957336, -0.04146819934248924, -0.02739778719842434, -0.44652771949768066, 0.27017587423324585, 0.30223777890205383, 0.29597416520118713, -0.04375544190406799, 0.6722488403320312, -0.05365686118602753, 0.09963594377040863, -0.06906541436910629, -0.31764423847198486, -0.02696416713297367, 0.15783026814460754, 0.3953229486942291, 0.2114284187555313, -0.24911072850227356, 0.0748828575015068, -0.12848496437072754, 0.13370424509048462, 0.13303200900554657, 0.01289929449558258, -0.27821603417396545, 0.06854163855314255, -0.16541370749473572, 0.403052419424057, -0.13011367619037628, 0.18237237632274628, 0.06379113346338272, 0.27051493525505066, -0.30365633964538574, -0.3571581542491913, 0.39119863510131836, -0.34344860911369324, -0.45859748125076294, -0.42767268419265747, 0.2904647886753082, 0.1598200500011444, -0.20495717227458954, -0.47420892119407654, 0.0093036824837327, 0.25498881936073303, -0.1533089429140091, -0.15550069510936737, 0.5398076772689819, 0.06995448470115662, 0.2142622470855713, -0.12199632078409195, 0.20986361801624298, 0.004663238767534494, -0.11890158802270889, -0.1165049821138382, -0.06436560302972794 ]
https://github.com/huggingface/datasets/issues/2695
Cannot import load_dataset on Colab
Hi @bayartsogt-ya and @phosseini, thanks for reporting. We are fixing this critical issue and making an urgent patch release of the `datasets` library today. In the meantime, as pointed out by @mariosasko, you can circumvent this issue by updating the `tqdm` library: ``` !pip install -U tqdm ```
## Describe the bug Got tqdm concurrent module not found error during importing load_dataset from datasets. ## Steps to reproduce the bug Here [colab notebook](https://colab.research.google.com/drive/1pErWWnVP4P4mVHjSFUtkePd8Na_Qirg4?usp=sharing) to reproduce the error On colab: ```python !pip install datasets from datasets import load_dataset ``` ## Expected results Works without error ## Actual results Specify the actual results or traceback. ``` ModuleNotFoundError Traceback (most recent call last) <ipython-input-2-8cc7de4c69eb> in <module>() ----> 1 from datasets import load_dataset, load_metric, Metric, MetricInfo, Features, Value 2 from sklearn.metrics import mean_squared_error /usr/local/lib/python3.7/dist-packages/datasets/__init__.py in <module>() 31 ) 32 ---> 33 from .arrow_dataset import Dataset, concatenate_datasets 34 from .arrow_reader import ArrowReader, ReadInstruction 35 from .arrow_writer import ArrowWriter /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in <module>() 40 from tqdm.auto import tqdm 41 ---> 42 from datasets.tasks.text_classification import TextClassification 43 44 from . import config, utils /usr/local/lib/python3.7/dist-packages/datasets/tasks/__init__.py in <module>() 1 from typing import Optional 2 ----> 3 from ..utils.logging import get_logger 4 from .automatic_speech_recognition import AutomaticSpeechRecognition 5 from .base import TaskTemplate /usr/local/lib/python3.7/dist-packages/datasets/utils/__init__.py in <module>() 19 20 from . import logging ---> 21 from .download_manager import DownloadManager, GenerateMode 22 from .file_utils import DownloadConfig, cached_path, hf_bucket_url, is_remote_url, temp_seed 23 from .mock_download_manager import MockDownloadManager /usr/local/lib/python3.7/dist-packages/datasets/utils/download_manager.py in <module>() 24 25 from .. import config ---> 26 from .file_utils import ( 27 DownloadConfig, 28 cached_path, /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in <module>() 25 import posixpath 26 import requests ---> 27 from tqdm.contrib.concurrent import thread_map 28 29 from .. import __version__, config, utils ModuleNotFoundError: No module named 'tqdm.contrib.concurrent' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.10.0 - Platform: Colab - Python version: 3.7.11 - PyArrow version: 3.0.0
48
Cannot import load_dataset on Colab ## Describe the bug Got tqdm concurrent module not found error during importing load_dataset from datasets. ## Steps to reproduce the bug Here [colab notebook](https://colab.research.google.com/drive/1pErWWnVP4P4mVHjSFUtkePd8Na_Qirg4?usp=sharing) to reproduce the error On colab: ```python !pip install datasets from datasets import load_dataset ``` ## Expected results Works without error ## Actual results Specify the actual results or traceback. ``` ModuleNotFoundError Traceback (most recent call last) <ipython-input-2-8cc7de4c69eb> in <module>() ----> 1 from datasets import load_dataset, load_metric, Metric, MetricInfo, Features, Value 2 from sklearn.metrics import mean_squared_error /usr/local/lib/python3.7/dist-packages/datasets/__init__.py in <module>() 31 ) 32 ---> 33 from .arrow_dataset import Dataset, concatenate_datasets 34 from .arrow_reader import ArrowReader, ReadInstruction 35 from .arrow_writer import ArrowWriter /usr/local/lib/python3.7/dist-packages/datasets/arrow_dataset.py in <module>() 40 from tqdm.auto import tqdm 41 ---> 42 from datasets.tasks.text_classification import TextClassification 43 44 from . import config, utils /usr/local/lib/python3.7/dist-packages/datasets/tasks/__init__.py in <module>() 1 from typing import Optional 2 ----> 3 from ..utils.logging import get_logger 4 from .automatic_speech_recognition import AutomaticSpeechRecognition 5 from .base import TaskTemplate /usr/local/lib/python3.7/dist-packages/datasets/utils/__init__.py in <module>() 19 20 from . import logging ---> 21 from .download_manager import DownloadManager, GenerateMode 22 from .file_utils import DownloadConfig, cached_path, hf_bucket_url, is_remote_url, temp_seed 23 from .mock_download_manager import MockDownloadManager /usr/local/lib/python3.7/dist-packages/datasets/utils/download_manager.py in <module>() 24 25 from .. import config ---> 26 from .file_utils import ( 27 DownloadConfig, 28 cached_path, /usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py in <module>() 25 import posixpath 26 import requests ---> 27 from tqdm.contrib.concurrent import thread_map 28 29 from .. import __version__, config, utils ModuleNotFoundError: No module named 'tqdm.contrib.concurrent' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.10.0 - Platform: Colab - Python version: 3.7.11 - PyArrow version: 3.0.0 Hi @bayartsogt-ya and @phosseini, thanks for reporting. We are fixing this critical issue and making an urgent patch release of the `datasets` library today. In the meantime, as pointed out by @mariosasko, you can circumvent this issue by updating the `tqdm` library: ``` !pip install -U tqdm ```
[ -0.4603256285190582, -0.21482765674591064, -0.024375125765800476, 0.26821377873420715, 0.13541275262832642, 0.051994577050209045, 0.4973769187927246, -0.10748507082462311, 0.19837038218975067, 0.0849531888961792, -0.32663094997406006, 0.47532352805137634, -0.1742696315050125, 0.14874832332134247, -0.2584451735019684, 0.09847039729356766, -0.066185861825943, 0.058203618973493576, -0.2907033860683441, 0.09561498463153839, 0.020291518419981003, 0.3308885097503662, -0.633569061756134, -0.3468572795391083, -0.5786887407302856, -0.21004115045070648, -0.027742085978388786, 0.16879141330718994, -0.2702193260192871, -0.29201075434684753, 0.3478228747844696, 0.1770588457584381, 0.09218970686197281, 0.569717288017273, -0.00011724026262527332, 0.07151338458061218, 0.39330920577049255, -0.07875358313322067, -0.24568970501422882, -0.3918710947036743, -0.34615322947502136, -0.32919612526893616, 0.368621826171875, -0.10739260911941528, 0.1058272197842598, 0.40416616201400757, -0.13573090732097626, -0.133275106549263, 0.2626953423023224, 0.13527964055538177, 0.19363413751125336, 0.5491978526115417, 0.1630605161190033, -0.19249221682548523, -0.11258674412965775, -0.19337788224220276, -0.20208290219306946, 0.7461528182029724, 0.41741806268692017, 0.016856210306286812, -0.0510248988866806, 0.2604953348636627, -0.0992678701877594, 0.2890875041484833, 0.18624088168144226, -0.03342185914516449, 0.10510164499282837, -0.48058274388313293, 0.10063720494508743, 0.17437751591205597, 0.4806714653968811, -0.23342734575271606, 0.04439045116305351, -0.12202465534210205, 0.2094741016626358, -0.29246774315834045, 0.261900395154953, -0.09857016801834106, -0.2118593454360962, 0.049007952213287354, -0.022696644067764282, -0.08961711823940277, -0.012307312339544296, 0.016437161713838577, -0.09338612109422684, 0.36550673842430115, -0.14300726354122162, -0.11182652413845062, 0.06986578553915024, -0.10964152216911316, 0.5018093585968018, -0.016182273626327515, -0.026867389678955078, 0.2063279151916504, -0.4680005609989166, -0.009329631924629211, -0.09887044876813889, -0.14084890484809875, -0.05169893801212311, -0.10149464756250381, -0.03618668019771576, 0.017466731369495392, -0.11100886017084122, 0.3034836947917938, 0.18480238318443298, 0.1422499418258667, 0.03475858271121979, 0.018298635259270668, 0.12265416979789734, 0.28642868995666504, -0.20076298713684082, 0.22739534080028534, -0.259282648563385, -0.31187957525253296, 0.1845090240240097, -0.029213745146989822, 0.2715788781642914, -0.0037105006631463766, -0.31906187534332275, -0.18184544146060944, 0.009568385779857635, 0.10504216700792313, 0.04462249577045441, 0.39905354380607605, 0.05579572170972824, 0.10570880770683289, -0.0346219539642334, 0.00169389508664608, -0.3566533923149109, -0.23943834006786346, -0.05384502187371254, 0.19369623064994812, -0.06428023427724838, -0.11529950797557831, 0.06780330836772919, -0.15499870479106903, 0.26018649339675903, -0.01242044661194086, 0.3092045783996582, -0.05996029078960419, 0.10367400199174881, -0.3025384545326233, -0.06064527481794357, 0.3319084048271179, 0.12873533368110657, 0.08720225840806961, -0.06231344863772392, -0.20557811856269836, -0.07788795232772827, 0.23551695048809052, -0.477062463760376, -0.14423614740371704, -0.024314794689416885, 0.1429465115070343, -0.1339145302772522, -0.22443081438541412, -0.5850236415863037, 0.16483402252197266, 0.14476370811462402, -0.08128175884485245, -0.08496221154928207, -0.3062833249568939, -0.23307140171527863, -0.15358290076255798, 0.12368795275688171, 0.44828349351882935, -0.23092882335186005, -0.14231432974338531, -0.21769076585769653, 0.12052740156650543, 0.12727050483226776, 0.23482318222522736, -0.2021542638540268, 0.1736087203025818, -0.09626415371894836, -0.11714198440313339, 0.49064818024635315, -0.43263617157936096, -0.467124879360199, -0.020347680896520615, -0.26607662439346313, -0.005254622083157301, -0.08970677852630615, 0.04857955873012543, 0.3577234148979187, -0.06694085150957108, 0.5458385348320007, 0.2629372477531433, -0.13903303444385529, -0.03660419583320618, -0.16409096121788025, -0.4099055230617523, 0.12942537665367126, 0.04181958734989166, 0.1834629327058792, -0.21777135133743286, 0.2030327022075653, -0.05337464064359665, 0.10123799741268158, 0.1859942227602005, -0.12112988531589508, 0.384333074092865, 0.24290147423744202, -0.22237874567508698, 0.03727392107248306, -0.18595744669437408, -0.4775210916996002, 0.22404809296131134, 0.40929457545280457, 0.07997166365385056, -0.06749922037124634, 0.05132468044757843, -0.43819618225097656, 0.0791066437959671, -0.25944408774375916, 0.06764248758554459, 0.09941264241933823, -0.06666989624500275, -0.1751304417848587, 0.08892634510993958, -0.26048317551612854, 0.7403808832168579, 0.037708036601543427, 0.21759352087974548, -0.3183417320251465, 0.21578840911388397, -0.18590405583381653, -0.3081796169281006, 0.17629237473011017, 0.13617128133773804, 0.0753253698348999, -0.09227273613214493, -0.23890753090381622, 0.14212174713611603, 0.2554135322570801, 0.17134137451648712, 0.061892446130514145, -0.2776557505130768, 0.4123668670654297, -0.274011492729187, 0.012325159274041653, -0.10668440908193588, 0.20857030153274536, 0.005822932347655296, 0.2551180422306061, 0.15657177567481995, -0.37070298194885254, -0.04107332229614258, -0.030511964112520218, 0.090538389980793, 0.3726440966129303, 0.12399637699127197, -0.005092668812721968, -0.18564917147159576, 0.32518404722213745, 0.2222951352596283, 0.1924741119146347, 0.09374191612005234, -0.1297319382429123, 0.28813523054122925, 0.30617550015449524, 0.24524423480033875, 0.038779307156801224, -0.2685609757900238, -0.2554303705692291, 0.06336459517478943, 0.1922869086265564, 0.25180914998054504, 0.44464540481567383, 0.18038886785507202, 0.10491914302110672, 0.0316312313079834, 0.0318475142121315, -0.15611745417118073, 0.1151200532913208, 0.2919997572898865, 0.25584110617637634, 0.13110268115997314, 0.412082701921463, 0.09674369543790817, -0.07899821549654007, -0.38941165804862976, 0.175325408577919, 0.15031109750270844, -0.33177241683006287, 0.0766264870762825, -0.21460174024105072, -0.11394724994897842, -0.14194613695144653, -0.4253392815589905, -0.14645393192768097, -0.1978352814912796, -0.10580053925514221, 0.2810255289077759, 0.26506251096725464, 0.19366224110126495, -0.02399413287639618, 0.05001707747578621, 0.06250438839197159, -0.14248351752758026, -0.055816899985075, -0.25067710876464844, -0.09258749336004257, 0.0015158079331740737, 0.32773953676223755, 0.2468109428882599, 0.36850619316101074, -0.3038307726383209, -0.06956276297569275, 0.14370045065879822, -0.33209797739982605, 0.1763453334569931, -0.005682501010596752, 0.29197996854782104, -0.013442921452224255, -0.0779714584350586, -0.3206300735473633, -0.19391757249832153, 0.02153646945953369, -0.13462314009666443, -0.18274642527103424, 0.04727939888834953, -0.1800287961959839, -0.22977393865585327, -0.001991121331229806, -0.29268813133239746, -0.4344461262226105, -0.3998570144176483, -0.3682098388671875, 0.04724651947617531, -0.008902975358068943, 0.46030017733573914, -0.042716480791568756, 0.29339227080345154, 0.22506991028785706, 0.05083799734711647, 0.01793607883155346, -0.33309122920036316, 0.47338196635246277, -0.28651121258735657, -0.2936581075191498, 0.2801203429698944, -0.26804643869400024, 0.3836089074611664, 0.018183382228016853, -0.11044333875179291, -0.2135312557220459, -0.021479368209838867, 0.38373711705207825, -0.10093988478183746, 0.04168316349387169, 0.08463598787784576, 0.11366216838359833, 0.07825830578804016, -0.0924064964056015, -0.18155261874198914, -0.20405049622058868, 0.21963198482990265, 0.1930788904428482, -0.16571572422981262, 0.22659817337989807, -0.03633589297533035, 0.8421132564544678, 0.07719916850328445, -0.040050141513347626, 0.3015676736831665, -0.06165573000907898, 0.3064919710159302, -0.10642470419406891, -0.5121487975120544, -0.06968485563993454, -0.10731102526187897, -0.03928399831056595, 0.0819719061255455, -0.18397551774978638, -0.11122232675552368, -0.2847858965396881, -0.2727968692779541, -0.31601959466934204, -0.2918524742126465, -0.11478517949581146, -0.20039138197898865, 0.13085435330867767, 0.19867926836013794, -0.06129197031259537, -0.162008136510849, -0.11249653995037079, 0.04898237809538841, 0.4355244040489197, -0.42080244421958923, -0.018615003675222397, 0.3795596659183502, -0.0728558674454689, -0.34649088978767395, 0.1986529678106308, 0.13178497552871704, 0.33032742142677307, 0.07662582397460938, 0.11820027232170105, 0.06014115735888481, -0.04932514578104019, 0.11224548518657684, 0.05919637158513069, -0.08000047504901886, 0.23661643266677856, -0.014694223180413246, -0.401273638010025, -0.05774356424808502, -0.22556275129318237, 0.22409889101982117, 0.4793194830417633, 0.08615225553512573, -0.2667844593524933, 0.21151801943778992, 0.23633195459842682, 0.1412733644247055, -0.11422289162874222, -0.1485223025083542, -0.4387519657611847, -0.3134375512599945, -0.378410667181015, -0.06004500016570091, 0.18504580855369568, 0.23917469382286072, 0.041669439524412155, -0.07086938619613647, -0.06402730941772461, -0.21697312593460083, 0.0610417015850544, 0.3596896529197693, 0.14828412234783173, 0.2704481780529022, 0.5801548361778259, 0.1271515041589737, -0.2473594844341278, 0.44701868295669556, 0.5865607857704163, 0.0028329542838037014, -0.58351731300354, -0.02799946255981922, -0.17973950505256653, 0.2348889261484146, 0.13151949644088745, -0.07067332416772842, 0.01633032225072384, 0.05956551060080528, -0.13585171103477478, 0.3848748803138733, 0.38126593828201294, -0.06354271620512009, 0.12624822556972504, -0.40266531705856323, -0.12859110534191132, 0.09584790468215942, 0.0007424193900078535, 0.13769900798797607, 0.46016570925712585, -0.37963858246803284, -0.05982203409075737, 0.047098543494939804, -0.18435367941856384, 0.6863647103309631, -0.03818909451365471, -0.23901525139808655, 0.27325356006622314, -0.1615028828382492, 0.2652587890625, 0.11319036036729813, 0.18576043844223022, -0.2762230336666107, -0.3076212704181671, 0.09239334613084793, -0.22662189602851868, 0.1900259554386139, -0.1945812851190567, -0.3511311709880829, 0.2596140503883362, 0.05645624175667763, -0.149830162525177, -0.018576418980956078, 0.04060488939285278, 0.002412857487797737, -0.2937503159046173, -0.35251981019973755, 0.05176933482289314, -0.1905302256345749, 0.20617200434207916, -0.19724205136299133, -0.18334610760211945, -0.13894802331924438, -0.1865321546792984, -0.0331040620803833, -0.1090359315276146, -0.6445794701576233, 0.23709844052791595, 0.33144769072532654, -0.3087446987628937, 0.20051699876785278, -0.11113837361335754, 0.09509853273630142, -0.02933046966791153, -0.17394961416721344, 0.1265125274658203, 0.19933469593524933, 0.0166865736246109, -0.11088825762271881, -0.1729525625705719, 0.41977208852767944, -0.08396551012992859, 0.005003898870199919, 0.05766630917787552, 0.03662293404340744, -0.022534310817718506, 0.47023463249206543, 0.3512617349624634, 0.36815744638442993, 0.1506929248571396, -0.07557583600282669, 0.18104751408100128, 0.26167550683021545, -0.19587796926498413, 0.07804212719202042, 0.1019754409790039, -0.15308448672294617, 0.25580689311027527, -0.10751410573720932, -0.1003248319029808, -0.0019222715636715293, 0.33977261185646057, 0.12967118620872498, -0.016100294888019562, 0.18322117626667023, 0.15517257153987885, -0.2558426856994629, -0.0844760537147522, 0.16883499920368195, -0.3087921738624573, -0.3004138469696045, 0.24127735197544098, -0.019914135336875916, 0.04912685602903366, 0.07449415326118469, 0.7340952157974243, 0.2456148862838745, -0.36856892704963684, -0.1320783495903015, -0.3772931396961212, -0.5326014757156372, 0.14176900684833527, -0.1205236166715622, -0.09494353085756302, 0.2369505763053894, 0.38368967175483704, 0.12086893618106842, 0.1284106820821762, -0.22089053690433502, 0.10524074733257294, -0.1584758758544922, 0.1540040373802185, 0.27565088868141174, -0.09605144709348679, 0.03729217126965523, 0.08598966151475906, 0.004241897724568844, 0.15297818183898926, 0.06710047274827957, -0.2249542623758316, -0.11465847492218018, 0.13268062472343445, -0.10255349427461624, 0.040870893746614456, -0.11802631616592407, -0.15128569304943085, -0.230035200715065, -0.17150287330150604, 0.1590515673160553, 0.03512401133775711, -0.08184205740690231, -0.1321558803319931, 0.29200512170791626, -0.09662938863039017, -0.21740150451660156, 0.4025673270225525, 0.11779535561800003, 0.08100782334804535, 0.07766718417406082, 0.16603003442287445, 0.1665421575307846, 0.1832788586616516, 0.017529835924506187, -0.2253393530845642, -0.0916714146733284, -0.17651274800300598, 0.09427814930677414, -0.3320893943309784, -0.014022735878825188, 0.0699954554438591, -0.02750704437494278, 0.4203796982765198, -0.1289566606283188, -0.2099848985671997, 0.047241371124982834, 0.08578076213598251, -0.3888074457645416, 0.031113293021917343, 0.3042641282081604, 0.15485864877700806, 0.1754324585199356, 0.2722876965999603, 0.08177193999290466, 0.08188467472791672, 0.15440961718559265, 0.39525195956230164, 0.2447240650653839, -0.02283727005124092, 0.26611146330833435, -0.2058008760213852, 0.08578208088874817, 0.23063482344150543, 0.23610937595367432, 0.11843244731426239, 0.03810511901974678, 0.15266965329647064, -0.1501825898885727, 0.2959783971309662, 0.14464372396469116, -0.1672735959291458, 0.2365310788154602, -0.359602689743042, 0.24245642125606537, -0.09867701679468155, 0.056908540427684784, -0.13632839918136597, 0.14178615808486938, 0.32764652371406555, -0.04918676242232323, -0.08844675868749619, -0.16085343062877655, -0.0030407351441681385, -0.30019044876098633, 0.27094098925590515, 0.4638242721557617, -0.09763120859861374, -0.09312402456998825, -0.04317576065659523, 0.21457749605178833, 0.21752849221229553, 0.5374788045883179, 0.3159119188785553, -0.16689953207969666, -0.4896297752857208, -0.1224406361579895, 0.5082058906555176, -0.12667319178581238, -0.18445312976837158, 0.46237340569496155, -0.1348712295293808, 0.010012376122176647, -0.16528095304965973, 0.32221511006355286, 0.48848435282707214, 0.3006311357021332, -0.13834835588932037, -0.2075258493423462, 0.25662747025489807, -0.1801050752401352, -0.13837409019470215, 0.21072141826152802, 0.059684064239263535, 0.29416805505752563, 0.2981710135936737, 0.08425360172986984, -0.16908781230449677, -0.03203774616122246, 0.22073045372962952, -0.33576127886772156, -0.44091930985450745, 0.20642831921577454, -0.15670651197433472, -0.0026591953355818987, -0.1897849142551422, 0.09800048172473907, -0.45638933777809143, 0.22882479429244995, 0.3156726360321045, -0.22243887186050415, -0.0670025646686554, -0.14896292984485626, 0.044959425926208496, -0.03079915978014469, 0.36052775382995605, 0.24672473967075348, 0.35621005296707153, -0.20113036036491394, -0.10377366840839386, -0.8396954536437988, 0.3146013617515564, 0.03366608917713165, -0.011730300262570381, -0.03855295479297638, 0.13932549953460693, -0.0011309953406453133, 0.32129383087158203, 0.4201123118400574, 0.04542868211865425, 0.190121129155159, 0.03722898289561272, -0.46201562881469727, -0.2717560827732086, 0.09004053473472595, -0.4454764723777771, 0.005056973546743393, -0.39178991317749023, -0.004098302684724331, -0.28245189785957336, -0.04146819934248924, -0.02739778719842434, -0.44652771949768066, 0.27017587423324585, 0.30223777890205383, 0.29597416520118713, -0.04375544190406799, 0.6722488403320312, -0.05365686118602753, 0.09963594377040863, -0.06906541436910629, -0.31764423847198486, -0.02696416713297367, 0.15783026814460754, 0.3953229486942291, 0.2114284187555313, -0.24911072850227356, 0.0748828575015068, -0.12848496437072754, 0.13370424509048462, 0.13303200900554657, 0.01289929449558258, -0.27821603417396545, 0.06854163855314255, -0.16541370749473572, 0.403052419424057, -0.13011367619037628, 0.18237237632274628, 0.06379113346338272, 0.27051493525505066, -0.30365633964538574, -0.3571581542491913, 0.39119863510131836, -0.34344860911369324, -0.45859748125076294, -0.42767268419265747, 0.2904647886753082, 0.1598200500011444, -0.20495717227458954, -0.47420892119407654, 0.0093036824837327, 0.25498881936073303, -0.1533089429140091, -0.15550069510936737, 0.5398076772689819, 0.06995448470115662, 0.2142622470855713, -0.12199632078409195, 0.20986361801624298, 0.004663238767534494, -0.11890158802270889, -0.1165049821138382, -0.06436560302972794 ]
https://github.com/huggingface/datasets/issues/2691
xtreme / pan-x cannot be downloaded
Hi @severo, thanks for reporting. However I have not been able to reproduce this issue. Could you please confirm if the problem persists for you? Maybe Dropbox (where the data source is hosted) was temporarily unavailable when you tried.
## Describe the bug Dataset xtreme / pan-x cannot be loaded Seems related to https://github.com/huggingface/datasets/pull/2326 ## Steps to reproduce the bug ```python dataset = load_dataset("xtreme", "PAN-X.fr") ``` ## Expected results Load the dataset ## Actual results ``` FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/12h3qqog6q4bjve/panx_dataset.tar?dl=1 ``` ## Environment info - `datasets` version: 1.9.0 - Platform: macOS-11.4-x86_64-i386-64bit - Python version: 3.8.11 - PyArrow version: 4.0.1
39
xtreme / pan-x cannot be downloaded ## Describe the bug Dataset xtreme / pan-x cannot be loaded Seems related to https://github.com/huggingface/datasets/pull/2326 ## Steps to reproduce the bug ```python dataset = load_dataset("xtreme", "PAN-X.fr") ``` ## Expected results Load the dataset ## Actual results ``` FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/12h3qqog6q4bjve/panx_dataset.tar?dl=1 ``` ## Environment info - `datasets` version: 1.9.0 - Platform: macOS-11.4-x86_64-i386-64bit - Python version: 3.8.11 - PyArrow version: 4.0.1 Hi @severo, thanks for reporting. However I have not been able to reproduce this issue. Could you please confirm if the problem persists for you? Maybe Dropbox (where the data source is hosted) was temporarily unavailable when you tried.
[ -0.35268646478652954, -0.3867756128311157, -0.05106488615274429, 0.2910826504230499, 0.20721060037612915, 0.04866721108555794, -0.11699283123016357, 0.22957101464271545, 0.14507290720939636, 0.07490798830986023, -0.20717768371105194, 0.2856612205505371, 0.0034074827563017607, 0.08608506619930267, 0.19648951292037964, -0.24455317854881287, 0.07021932303905487, 0.1196100190281868, 0.07149318605661392, -0.03953532502055168, -0.09413056820631027, 0.1315491497516632, -0.22600936889648438, 0.07776796072721481, -0.24664750695228577, 0.126108780503273, 0.09169431775808334, 0.20669226348400116, -0.32367217540740967, -0.4029152989387512, 0.6594861149787903, -0.08827120065689087, 0.25489944219589233, 0.6138735413551331, -0.00010954504978144541, 0.04444202035665512, 0.23890161514282227, -0.07726695388555527, 0.008578861132264137, -0.5894991755485535, -0.34422075748443604, -0.4234597384929657, -0.06812835484743118, -0.18224763870239258, -0.031780485063791275, -0.13605917990207672, -0.1195598691701889, -0.12697583436965942, 0.3041214048862457, 0.27583444118499756, 0.2564079463481903, 0.4237164258956909, 0.20488345623016357, -0.18922968208789825, 0.42425382137298584, 0.009091561660170555, -0.30907300114631653, 0.25384658575057983, 0.4219305217266083, 0.1650080531835556, 0.4848666489124298, 0.2082422524690628, -0.06955397874116898, 0.042079146951436996, 0.1297951489686966, 0.06795555353164673, -0.11171931028366089, -0.472057044506073, 0.05966220051050186, 0.31280142068862915, 0.45779040455818176, -0.25951284170150757, -0.39995086193084717, -0.13686855137348175, 0.11104857176542282, -0.2919362485408783, 0.32278573513031006, 0.2403818517923355, -0.01121773011982441, 0.061995502561330795, 0.04640650376677513, -0.05168692767620087, -0.03862309455871582, 0.15139789879322052, -0.042721450328826904, 0.2568819522857666, -0.262247771024704, -0.007769922725856304, 0.10310308635234833, -0.04652545228600502, 0.3317069709300995, -0.0003910308878403157, -0.07215356081724167, 0.18081286549568176, -0.2971529960632324, 0.033614665269851685, -0.08123384416103363, -0.103269062936306, 0.3259276747703552, -0.065945103764534, -0.152496799826622, -0.055235669016838074, -0.1848699450492859, 0.0646035298705101, 0.20718984305858612, 0.20514866709709167, 0.0498812310397625, 0.06477566808462143, 0.20261481404304504, 0.1957768350839615, 0.06564946472644806, -0.06469082087278366, -0.1810181736946106, -0.027959119528532028, 0.09639624506235123, -0.09407111257314682, 0.4540398120880127, -0.38077419996261597, -0.34516966342926025, -0.010213064029812813, -0.003937855828553438, 0.06083435192704201, 0.12192102521657944, 0.1474573016166687, -0.09689950942993164, 0.3871396780014038, -0.10441332310438156, 0.3990938663482666, -0.23336949944496155, -0.04210950434207916, -0.18323151767253876, 0.353790283203125, -0.2850381135940552, -0.20128576457500458, 0.25249627232551575, -0.22338858246803284, 0.3617866039276123, 0.10004843026399612, 0.3133207857608795, -0.20624907314777374, 0.042804475873708725, -0.0248361025005579, -0.35300007462501526, 0.41047412157058716, 0.18017999827861786, 0.23402456939220428, -0.14645710587501526, 0.07824236899614334, -0.12965111434459686, 0.165440633893013, -0.6251085996627808, -0.08751809597015381, -0.09848950058221817, 0.19422338902950287, -0.20820023119449615, -0.10468672215938568, -0.6656978726387024, -0.16765543818473816, -0.09001221507787704, 0.14315862953662872, 0.08342090994119644, -0.20539623498916626, 0.15429583191871643, -0.17904923856258392, 0.20058776438236237, 0.24114421010017395, -0.2552346885204315, 0.06099214777350426, -0.1533215045928955, -0.26475873589515686, -0.07657863199710846, 0.1262757033109665, -0.2085568606853485, 0.010368588380515575, -0.34221112728118896, 0.32321301102638245, 0.4552648663520813, -0.6140801906585693, -0.5974395871162415, -0.10523215681314468, -0.2622520327568054, 0.08987888693809509, -0.06172851473093033, 0.10772290825843811, -0.03571605682373047, -0.07880061119794846, 0.10143337398767471, 0.2451178878545761, 0.0692814514040947, -0.0631382018327713, -0.16512224078178406, -0.20464229583740234, -0.3625924587249756, 0.35299018025398254, 0.20832186937332153, -0.05789627879858017, 0.07861094176769257, 0.07613326609134674, 0.0877823457121849, -0.03184868022799492, -0.030623655766248703, 0.41550448536872864, 0.30371078848838806, -0.0001341296883765608, -0.14926643669605255, -0.368231862783432, -0.36478105187416077, 0.31553927063941956, -0.0051269312389194965, -0.22662478685379028, -0.01619637943804264, -0.08621746301651001, -0.45008566975593567, 0.19822251796722412, -0.22092750668525696, -0.060652587562799454, 0.07694810628890991, 0.0073388260789215565, 0.22018660604953766, 0.08368032425642014, -0.22902540862560272, 0.14586199820041656, 0.016322530806064606, 0.14315566420555115, -0.42044639587402344, 0.3151150941848755, -0.04891021549701691, -0.15537790954113007, 0.0702611431479454, 0.052623700350522995, 0.25888365507125854, -0.20407746732234955, -0.15415628254413605, 0.2960610091686249, -0.1171707808971405, 0.05465418100357056, 0.24518786370754242, 0.11211247742176056, 0.14074718952178955, -0.5683162212371826, 0.24283941090106964, 0.0568334236741066, 0.004801965318620205, 0.1328020989894867, -0.08019416034221649, 0.3285501003265381, 0.07428784668445587, -0.12847961485385895, -0.1443331241607666, 0.12464755773544312, 0.3701759874820709, -0.17427152395248413, 0.06231706216931343, -0.03869737684726715, 0.3798929452896118, -0.15709726512432098, 0.20018824934959412, -0.181702122092247, -0.33163005113601685, 0.09807520359754562, 0.25023043155670166, -0.10697359591722488, 0.18609553575515747, 0.14447522163391113, -0.10264093428850174, 0.15932875871658325, -0.096613809466362, 0.16764092445373535, 0.5179626941680908, 0.12853269279003143, -0.006795018911361694, 0.06414755433797836, 0.008288903161883354, -0.11846429854631424, 0.05905457213521004, 0.10467787832021713, -0.32398849725723267, 0.0827619731426239, 0.16127440333366394, 0.1036030501127243, -0.22502365708351135, -0.134878009557724, -0.13452035188674927, 0.09700614213943481, -0.14784488081932068, -0.02573615126311779, -0.19357453286647797, -0.10623903572559357, -0.02356153540313244, -0.06275969743728638, -0.2630924582481384, -0.13957637548446655, -0.06246507912874222, 0.3216550648212433, 0.32960045337677, 0.15250243246555328, -0.3904211223125458, -0.09540008753538132, 0.035277221351861954, -0.3149363696575165, -0.2127217948436737, 0.3404074013233185, -0.04747167229652405, 0.06628464162349701, 0.09629625827074051, 0.08081459254026413, 0.23569734394550323, -0.3708007335662842, 0.27224281430244446, -0.44196638464927673, -0.20299383997917175, 0.09664202481508255, -0.24105212092399597, 0.4696163833141327, 0.1120234802365303, 0.12654484808444977, -0.03220512717962265, 0.22294063866138458, 0.309530645608902, -0.40436744689941406, -0.003924987278878689, 0.030790336430072784, 0.026059404015541077, -0.17586076259613037, 0.036934465169906616, -0.1270144283771515, -0.36183395981788635, -0.3396022915840149, 0.028349710628390312, 0.08013735711574554, -0.022155506536364555, 0.010163433849811554, 0.07570428401231766, -0.02995844930410385, -0.10440371930599213, -0.1533585786819458, -0.21709777414798737, -0.7377815842628479, 0.5196610689163208, -0.20197108387947083, -0.4470081925392151, 0.3016466796398163, 0.05565187707543373, 0.24214933812618256, 0.043142762035131454, -0.5795795917510986, -0.3328718841075897, -0.20937395095825195, 0.38576385378837585, 0.026241499930620193, 0.17258945107460022, 0.17988444864749908, -0.35827672481536865, 0.024979304522275925, -0.20732851326465607, -0.2407357096672058, -0.3274492621421814, 0.13768048584461212, 0.30692410469055176, 0.061608150601387024, 0.16857515275478363, -0.11486738920211792, 0.4480379819869995, 0.14030641317367554, 0.1453656107187271, 0.5500605702400208, -0.022530021145939827, 0.32528409361839294, -0.1545567363500595, -0.3528732657432556, -0.17012742161750793, 0.09418237209320068, 0.11933626979589462, -0.01955614984035492, 0.2615588307380676, 0.06132011115550995, -0.305498868227005, -0.13161106407642365, -0.03870740160346031, -0.08326489478349686, -0.03145378455519676, 0.11913609504699707, 0.11375298351049423, 0.081111840903759, 0.22966504096984863, -0.1488061547279358, -0.1825033724308014, 0.022128872573375702, 0.41565802693367004, 0.16010208427906036, 0.2835165858268738, -0.5198412537574768, 0.16279113292694092, -0.3463425636291504, 0.21804362535476685, -0.005147099029272795, 0.3751678466796875, 0.0005982503644190729, 0.18227693438529968, 0.2526136040687561, 0.01908457837998867, 0.336548775434494, -0.1874769926071167, 0.26267102360725403, 0.1567421704530716, -0.1884525865316391, -0.26434364914894104, -0.18348030745983124, -0.08804722875356674, 0.15104806423187256, 0.2219393104314804, 0.4319796562194824, -0.2872442603111267, -0.2112279236316681, 0.22684843838214874, 0.20679351687431335, 0.02413793094456196, -0.17011643946170807, -0.2435171902179718, -0.563392162322998, -0.14768654108047485, -0.12003783881664276, 0.24042266607284546, 0.055602528154850006, 0.1601884663105011, 0.003776155412197113, -0.24642392992973328, -0.08841542899608612, 0.14636847376823425, 0.17059066891670227, 0.3395797610282898, -0.13379624485969543, 0.35363680124282837, 0.14351128041744232, -0.3297024369239807, 0.2670310437679291, 0.73748779296875, 0.0058285691775381565, -0.44945117831230164, 0.07186762243509293, -0.018717894330620766, -0.07819470763206482, 0.11433771997690201, -0.20377466082572937, -0.0973355695605278, -0.21869927644729614, 0.0812801942229271, 0.02573658712208271, 0.15399819612503052, 0.37716639041900635, 0.06257306784391403, -0.5213443636894226, -0.3220101296901703, 0.5426342487335205, 0.2666316628456116, 0.11965245008468628, 0.226308673620224, -0.08638925850391388, 0.04703572019934654, -0.2256038784980774, -0.08381432294845581, 0.9448819160461426, -0.011238657869398594, 0.033933915197849274, 0.12457074970006943, 0.014549116604030132, 0.1615135818719864, -0.1924782693386078, 0.06991109251976013, -0.1522158682346344, -0.4263075888156891, -0.1463765799999237, -0.18818961083889008, 0.1286136507987976, -0.05776359885931015, 0.062143754214048386, 0.225520521402359, -0.07259981334209442, 0.11925993859767914, 0.06481881439685822, 0.07233474403619766, -0.15269631147384644, -0.17077848315238953, -0.5171352028846741, 0.1991242617368698, -0.06974739581346512, 0.4064854085445404, -0.13882941007614136, -0.1040901318192482, -0.1983233392238617, -0.09594316780567169, -0.12185126543045044, 0.29168227314949036, 0.0023223944008350372, 0.07155967503786087, 0.05790238454937935, -0.6102400422096252, 0.03858013451099396, 0.05268614739179611, 0.016225285828113556, 0.10115550458431244, -0.2659354507923126, 0.3533173203468323, -0.0021153073757886887, -0.22667253017425537, 0.14729689061641693, -0.13593624532222748, -0.15312252938747406, -0.09447215497493744, -0.10863098502159119, 0.1762411892414093, -0.0828934907913208, -0.1928374022245407, -0.2500215470790863, 0.0991540476679802, -0.16479553282260895, -0.09874064475297928, -0.17749451100826263, -0.1970982402563095, 0.33662858605384827, -0.2021457552909851, 0.15160220861434937, 0.2968966066837311, 0.055871713906526566, 0.06312087178230286, 0.03861861675977707, -0.2568097710609436, -0.14739997684955597, 0.4189611077308655, -0.0821869820356369, -0.08379998058080673, 0.11377846449613571, 0.12573952972888947, 0.00022021326003596187, -0.13328973948955536, 0.13917210698127747, 0.058611053973436356, -0.6309767961502075, 0.044120531529188156, -0.17518186569213867, 0.08802489191293716, -0.11304662376642227, 0.31121575832366943, 0.25545504689216614, -0.3791320323944092, 0.2418457567691803, -0.6552193760871887, -0.06975158303976059, 0.09456610679626465, 0.02273532561957836, 0.2029661238193512, 0.013427169062197208, 0.0766262635588646, 0.12920376658439636, -0.2599192261695862, -0.3166564702987671, 0.17486104369163513, -0.09047036617994308, -0.13869546353816986, 0.2489340603351593, 0.15426868200302124, 0.2799367308616638, -0.0008409805595874786, 0.14454172551631927, 0.07905997335910797, -0.313364177942276, -0.16963648796081543, -0.039088163524866104, 0.09756041318178177, 0.0073130931705236435, -0.14430084824562073, 0.02509564533829689, -0.19344739615917206, -0.2018468827009201, -0.016270622611045837, 0.07147755473852158, 0.21286629140377045, 0.054809875786304474, -0.1767895221710205, -0.12021265178918839, 0.052400171756744385, -0.2712777853012085, 0.37825584411621094, 0.15261022746562958, 0.13629020750522614, -0.07072172313928604, 0.16988953948020935, -0.004589485935866833, 0.03778201341629028, -0.3507545590400696, -0.15372334420681, -0.00998756941407919, 0.3234342634677887, 0.31731367111206055, -0.23383499681949615, 0.3399519622325897, 0.5180971622467041, 0.2589372396469116, 0.350600928068161, -0.3326711058616638, 0.22881914675235748, 0.20446720719337463, 0.266962468624115, -0.34210798144340515, -0.1972787082195282, 0.3491123616695404, 0.33815720677375793, -0.02221076749265194, 0.33346566557884216, 0.2860367000102997, 0.09993527829647064, 0.29361483454704285, 0.18924590945243835, 0.7017912268638611, 0.14830034971237183, 0.3616813123226166, 0.4879673421382904, 0.04534074291586876, 0.05475473031401634, 0.4047193229198456, 0.22091028094291687, 0.058906760066747665, 0.5563638210296631, -0.1501089185476303, 0.37051910161972046, 0.027699315920472145, 0.14107418060302734, -0.17363451421260834, -0.29194703698158264, -0.22927483916282654, -0.030001744627952576, 0.032843850553035736, 0.006614236626774073, -0.10243997722864151, 0.07175076752901077, -0.3785608410835266, -0.04421674832701683, -0.3720663785934448, 0.20426695048809052, -0.10739248991012573, 0.16281971335411072, 0.10050061345100403, -0.20544099807739258, -0.0019087507389485836, 0.004628102295100689, -0.010632253251969814, 0.023676443845033646, 0.20688484609127045, 0.059800904244184494, -0.20067080855369568, -0.2601109743118286, 0.014614206738770008, 0.3534215986728668, -0.025885997340083122, -0.10442103445529938, 0.4160712957382202, 0.09790337085723877, -0.15582965314388275, 0.011498290114104748, 0.3531680405139923, 0.34718620777130127, 0.15516868233680725, 0.13553017377853394, -0.04552874714136124, 0.08789796382188797, -0.06547071784734726, -0.0037285976577550173, 0.23003271222114563, 0.032554514706134796, 0.3787965178489685, 0.2136467546224594, 0.24746525287628174, -0.2060372680425644, 0.21662920713424683, -0.17801553010940552, 0.10442251712083817, -0.3161134123802185, 0.027657322585582733, -0.30755338072776794, -0.10171717405319214, -0.2598287761211395, -0.2114051729440689, -0.12914955615997314, 0.08093316107988358, 0.29773175716400146, 0.019351553171873093, 0.004231135826557875, -0.3231407403945923, 0.0737728700041771, -0.11022061109542847, 0.13803809881210327, 0.43471431732177734, -0.054104749113321304, -0.1887926161289215, -0.1329207718372345, -0.8249320983886719, 0.20490092039108276, -0.31347841024398804, -0.3593268394470215, 0.22307778894901276, -0.19670604169368744, -0.1337319314479828, 0.29501092433929443, 0.382351279258728, 0.1986641138792038, 0.14175593852996826, 0.2696789503097534, -0.37864622473716736, -0.1755008101463318, 0.11647575348615646, 0.08052230626344681, 0.15503467619419098, -0.1966101974248886, 0.0020441149827092886, -0.06050680950284004, 0.029626445844769478, -0.178705096244812, -0.10147956758737564, -0.15460102260112762, -0.2730812430381775, 0.7128176093101501, -0.026582039892673492, 0.18187758326530457, 0.00893463846296072, -0.1415954977273941, -0.347932904958725, -0.3359898626804352, -0.17175069451332092, 0.16549375653266907, 0.03805652633309364, 0.22719287872314453, -0.18519510328769684, 0.04543060064315796, -0.40975508093833923, 0.11654023081064224, 0.019004598259925842, -0.031389620155096054, -0.14843077957630157, 0.16176004707813263, -0.37189817428588867, 0.12413186579942703, 0.27023157477378845, 0.2067091017961502, -0.0751156136393547, 0.20496737957000732, -0.13714008033275604, -0.40074703097343445, 0.39415082335472107, -0.06304942071437836, -0.2641805410385132, -0.03380197659134865, 0.09102766960859299, -0.017506442964076996, -0.22288550436496735, -0.20463688671588898, 0.3222982585430145, 0.32596760988235474, 0.041764769703149796, -0.0742107480764389, 0.1801104098558426, -0.15938925743103027, -0.005547848530113697, 0.16678467392921448, 0.5679107308387756, -0.05294638127088547, -0.1662544459104538, 0.477912038564682, 0.06449885666370392 ]
https://github.com/huggingface/datasets/issues/2691
xtreme / pan-x cannot be downloaded
Hmmm, the file (https://www.dropbox.com/s/dl/12h3qqog6q4bjve/panx_dataset.tar) really seems to be unavailable... I tried from various connexions and machines and got the same 404 error. Maybe the dataset has been loaded from the cache in your case?
## Describe the bug Dataset xtreme / pan-x cannot be loaded Seems related to https://github.com/huggingface/datasets/pull/2326 ## Steps to reproduce the bug ```python dataset = load_dataset("xtreme", "PAN-X.fr") ``` ## Expected results Load the dataset ## Actual results ``` FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/12h3qqog6q4bjve/panx_dataset.tar?dl=1 ``` ## Environment info - `datasets` version: 1.9.0 - Platform: macOS-11.4-x86_64-i386-64bit - Python version: 3.8.11 - PyArrow version: 4.0.1
34
xtreme / pan-x cannot be downloaded ## Describe the bug Dataset xtreme / pan-x cannot be loaded Seems related to https://github.com/huggingface/datasets/pull/2326 ## Steps to reproduce the bug ```python dataset = load_dataset("xtreme", "PAN-X.fr") ``` ## Expected results Load the dataset ## Actual results ``` FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/12h3qqog6q4bjve/panx_dataset.tar?dl=1 ``` ## Environment info - `datasets` version: 1.9.0 - Platform: macOS-11.4-x86_64-i386-64bit - Python version: 3.8.11 - PyArrow version: 4.0.1 Hmmm, the file (https://www.dropbox.com/s/dl/12h3qqog6q4bjve/panx_dataset.tar) really seems to be unavailable... I tried from various connexions and machines and got the same 404 error. Maybe the dataset has been loaded from the cache in your case?
[ -0.26797449588775635, -0.44181758165359497, -0.11762624979019165, 0.26365143060684204, 0.22728677093982697, 0.10944084078073502, -0.18489278852939606, 0.23797105252742767, 0.10634966939687729, 0.14721731841564178, -0.1563759446144104, 0.26120725274086, 0.0340302512049675, 0.0054810200817883015, 0.18876522779464722, -0.292928010225296, -0.023113436996936798, 0.15719297528266907, 0.08548039197921753, -0.012771770358085632, -0.0448259674012661, 0.16231171786785126, -0.17775830626487732, 0.16605746746063232, -0.23470546305179596, 0.06105809658765793, 0.08143427968025208, 0.1718643754720688, -0.34542033076286316, -0.4189869463443756, 0.5661594271659851, -0.09494611620903015, 0.2182048261165619, 0.7195151448249817, -0.00010372391261626035, 0.029213042929768562, 0.21765971183776855, -0.0261944979429245, 0.05660173296928406, -0.4336356520652771, -0.3120514750480652, -0.2680831551551819, -0.05471730977296829, -0.2174527645111084, -0.1400289088487625, -0.10075310617685318, -0.08805613964796066, -0.1750139445066452, 0.2505109906196594, 0.3105108439922333, 0.3232138156890869, 0.3803194761276245, 0.17699359357357025, -0.20664075016975403, 0.3996114134788513, -0.09418991208076477, -0.3172447085380554, 0.08905979990959167, 0.29125142097473145, 0.1761109083890915, 0.5273678302764893, 0.32375240325927734, -0.03599056228995323, 0.015475917607545853, 0.14387044310569763, 0.04106944054365158, -0.06230519711971283, -0.4709228575229645, 0.061265286058187485, 0.30001071095466614, 0.4271569848060608, -0.23912066221237183, -0.38856327533721924, -0.10545795410871506, 0.10490276664495468, -0.4078123867511749, 0.24442966282367706, 0.17993611097335815, -0.01627788133919239, 0.1052497997879982, 0.009664518758654594, -0.09781461209058762, -0.041934866458177567, 0.061960361897945404, -0.07766906917095184, 0.2221194952726364, -0.21848776936531067, -0.0683027058839798, 0.058809924870729446, -0.0759771391749382, 0.20788438618183136, 0.05115150660276413, -0.027581781148910522, 0.12765362858772278, -0.2452939748764038, 0.06006510183215141, 0.06321917474269867, -0.1291559338569641, 0.2096272110939026, -0.0791395977139473, -0.08923693001270294, 0.011494235135614872, -0.147324338555336, 0.061976008117198944, 0.06594768911600113, 0.24394841492176056, 0.03832978755235672, 0.023759543895721436, 0.2091333419084549, 0.18620531260967255, 0.08141522854566574, -0.10257580876350403, -0.17370541393756866, 0.011305028572678566, 0.1954597532749176, -0.029461747035384178, 0.39592626690864563, -0.35294967889785767, -0.2808384895324707, 0.022182106971740723, 0.03975991904735565, 0.040806520730257034, 0.08661314845085144, 0.21456894278526306, -0.08242955803871155, 0.4011313021183014, -0.15014997124671936, 0.34400975704193115, -0.2506442368030548, 0.077046237885952, -0.2169535905122757, 0.29246723651885986, -0.293142169713974, -0.1526382714509964, 0.19205592572689056, -0.0812763050198555, 0.34817957878112793, -0.03503735363483429, 0.35026639699935913, -0.16961786150932312, 0.15936826169490814, 0.06126966327428818, -0.2728769779205322, 0.4204450845718384, 0.1726546734571457, 0.16748130321502686, -0.08565250039100647, 0.06869914382696152, -0.15842075645923615, 0.05944954976439476, -0.5414469242095947, -0.21241433918476105, -0.029189972206950188, 0.29863014817237854, -0.12435363233089447, -0.02922237291932106, -0.5017439723014832, -0.24244102835655212, -0.09268401563167572, 0.20012348890304565, 0.06880544126033783, -0.23659920692443848, 0.16970087587833405, -0.20659440755844116, 0.12182295322418213, 0.14040373265743256, -0.18714863061904907, 0.06829395145177841, -0.07627363502979279, -0.260147362947464, -0.12810839712619781, 0.08467672020196915, -0.1892632097005844, 0.053847137838602066, -0.32122647762298584, 0.2798064947128296, 0.5203259587287903, -0.6607078313827515, -0.5881973505020142, -0.10883230715990067, -0.3328567147254944, 0.03814132884144783, -0.032899998128414154, 0.11681823432445526, -0.09820198267698288, 0.002660599770024419, 0.22063647210597992, 0.2092217057943344, 0.07293234020471573, -0.04591822624206543, -0.14698916673660278, -0.19961224496364594, -0.39544621109962463, 0.28898540139198303, 0.21859300136566162, -0.11555664986371994, 0.06307241320610046, 0.008683934807777405, 0.12666678428649902, -0.08673406392335892, -0.056984227150678635, 0.4788989722728729, 0.3095557987689972, 0.08653866499662399, -0.07928869128227234, -0.32167553901672363, -0.22478733956813812, 0.24727125465869904, -0.07057273387908936, -0.09634755551815033, -0.03274177387356758, -0.18870455026626587, -0.45332249999046326, 0.14310847222805023, -0.31585249304771423, -0.12302801758050919, 0.17520594596862793, 0.12606896460056305, 0.24196955561637878, 0.013847513124346733, -0.24117355048656464, 0.059152957051992416, 0.1169230043888092, 0.12515556812286377, -0.4320316016674042, 0.22130344808101654, -0.1491873860359192, -0.10530420392751694, 0.09228148311376572, 0.16731084883213043, 0.24369989335536957, -0.22509364783763885, -0.09084680676460266, 0.32467103004455566, -0.09670249372720718, 0.03551686927676201, 0.35335490107536316, 0.09784270077943802, 0.0845169946551323, -0.5908102989196777, 0.2334865927696228, 0.1035212054848671, -0.018788104876875877, 0.13006559014320374, -0.04315164312720299, 0.30242660641670227, 0.15142840147018433, -0.11505194008350372, -0.04870567470788956, 0.07426207512617111, 0.4298824071884155, -0.17364871501922607, 0.07141350954771042, -0.1306801438331604, 0.28477489948272705, -0.14198121428489685, 0.10406653583049774, -0.22998027503490448, -0.2976061701774597, 0.23261983692646027, 0.3081136643886566, -0.12776494026184082, 0.182698056101799, 0.05628783628344536, -0.06403344124555588, 0.17220580577850342, -0.0551215335726738, 0.11231661587953568, 0.39238113164901733, 0.19559787213802338, 0.07839328050613403, 0.09048692137002945, 0.025134099647402763, -0.07450723648071289, 0.051460132002830505, 0.030950212851166725, -0.2735631465911865, 0.0072257062420248985, 0.1577753871679306, 0.055133119225502014, -0.2244771420955658, -0.2198762595653534, -0.1738976091146469, 0.1265789121389389, -0.05643009394407272, -0.0923083946108818, -0.28254735469818115, -0.15875574946403503, -0.0015427947510033846, -0.06702990084886551, -0.2526368498802185, -0.22269754111766815, 0.04910706728696823, 0.22052429616451263, 0.2909305691719055, 0.13918249309062958, -0.4456438422203064, -0.15868261456489563, 0.12052547186613083, -0.3013075292110443, -0.17105847597122192, 0.24451865255832672, -0.07019651681184769, 0.13093803822994232, -0.049574531614780426, -0.014770735055208206, 0.2298840582370758, -0.40310290455818176, 0.26607081294059753, -0.4210805594921112, -0.2356014996767044, 0.14199182391166687, -0.21039052307605743, 0.29744818806648254, 0.1424490511417389, 0.09106633067131042, -0.01896807923913002, 0.16502676904201508, 0.3228318989276886, -0.4411512315273285, -0.04668540880084038, 0.04022648185491562, 0.05519326403737068, -0.2243186980485916, 0.014607063494622707, -0.18939457833766937, -0.32841402292251587, -0.3596835136413574, -0.04067452251911163, 0.1506466567516327, 0.034425366669893265, -0.018506616353988647, 0.08033833652734756, 0.08852468430995941, -0.06856153905391693, -0.0511881522834301, -0.2514697015285492, -0.7017881274223328, 0.46367594599723816, -0.2644917070865631, -0.4040009379386902, 0.40381142497062683, 0.03437546640634537, 0.287476509809494, 0.02816052921116352, -0.6414679288864136, -0.42650705575942993, -0.20814332365989685, 0.40571966767311096, 0.09103037416934967, 0.16230498254299164, 0.248888298869133, -0.1939970999956131, -0.08049841970205307, -0.1296488344669342, -0.2731977105140686, -0.3393237590789795, 0.12310773879289627, 0.35141825675964355, 0.004900588188320398, 0.16938996315002441, -0.05665326490998268, 0.4797627925872803, 0.14117057621479034, 0.2660490572452545, 0.48281940817832947, 0.0074644736014306545, 0.4104546904563904, -0.1721995621919632, -0.2594893276691437, -0.11807618290185928, 0.05536722391843796, 0.08918674290180206, -0.005733414087444544, 0.3468688130378723, 0.032502107322216034, -0.3200869560241699, -0.08238225430250168, -0.12698249518871307, -0.11694736778736115, -0.13468003273010254, 0.16198860108852386, 0.08263622969388962, 0.10315103083848953, 0.26717475056648254, -0.21685804426670074, -0.05690719932317734, 0.10093091428279877, 0.41935425996780396, 0.058378227055072784, 0.24100297689437866, -0.6325910687446594, 0.15309998393058777, -0.5051279067993164, 0.2458709329366684, -0.011550216004252434, 0.2705223262310028, 0.021568339318037033, 0.09080283343791962, 0.23920592665672302, -0.02943577989935875, 0.2986414134502411, -0.2792760729789734, 0.21417073905467987, 0.22150519490242004, -0.17756852507591248, -0.15948863327503204, -0.17939406633377075, -0.10528797656297684, 0.11015066504478455, 0.2103467732667923, 0.3577736020088196, -0.29092907905578613, -0.2092890590429306, 0.2081023007631302, 0.11214706301689148, -0.03648195043206215, -0.11052379757165909, -0.2614932954311371, -0.6037278175354004, -0.13079704344272614, -0.13973070681095123, 0.18186070024967194, 0.06382950395345688, 0.19089454412460327, 0.009821774438023567, -0.2043604999780655, -0.08113200962543488, 0.20224080979824066, 0.21325969696044922, 0.3442692756652832, -0.13253821432590485, 0.12477246671915054, 0.08892049640417099, -0.28171542286872864, 0.18702395260334015, 0.6367661952972412, -0.10250627249479294, -0.35394608974456787, 0.10426362603902817, -0.07600764185190201, -0.02012893185019493, 0.16536946594715118, -0.11589080840349197, -0.06526067107915878, -0.2003660351037979, 0.19658489525318146, 0.03419753536581993, 0.22089509665966034, 0.39085686206817627, 0.015488003380596638, -0.4292643666267395, -0.2944343686103821, 0.4085501730442047, 0.24116311967372894, 0.09592355787754059, 0.21094103157520294, -0.035504430532455444, -0.010892119258642197, -0.12197908014059067, -0.06402724236249924, 0.9632139205932617, -0.031361132860183716, 0.03398826718330383, 0.1607779860496521, 0.026023907586932182, 0.14425598084926605, -0.18713118135929108, 0.22870302200317383, -0.11232055723667145, -0.4142075777053833, -0.1158687025308609, -0.12935389578342438, 0.01891990937292576, -0.06649594008922577, 0.04764336720108986, 0.33106446266174316, -0.002763179363682866, 0.14323638379573822, 0.06295271962881088, 0.05800464004278183, -0.1306234449148178, -0.1149519607424736, -0.5382686257362366, 0.2539912462234497, 0.025471946224570274, 0.379052996635437, -0.16564273834228516, -0.10758354514837265, -0.19456525146961212, -0.12653696537017822, -0.03948105871677399, 0.27018672227859497, 0.04652361571788788, 0.07250064611434937, -0.00015159937902353704, -0.562929630279541, -0.17863339185714722, 0.020746750757098198, 0.03138427436351776, 0.12407845258712769, -0.22929489612579346, 0.33830028772354126, 0.03635309264063835, -0.256144255399704, 0.08993720263242722, -0.16759257018566132, -0.12276501953601837, -0.13485080003738403, -0.16968844830989838, 0.2684601843357086, -0.04288509115576744, -0.20326480269432068, -0.2238265573978424, 0.07836242020130157, -0.11643290519714355, -0.0543871745467186, -0.0939948558807373, -0.12663115561008453, 0.21960654854774475, -0.21418802440166473, 0.2009350210428238, 0.18666720390319824, -0.07296426594257355, 0.05758574232459068, 0.029468310996890068, -0.27699750661849976, -0.15531395375728607, 0.30606478452682495, -0.004521917086094618, -0.1293381154537201, 0.09597838670015335, 0.11445654183626175, -0.08687077462673187, -0.1844843477010727, -0.047410592436790466, 0.1227230355143547, -0.48216408491134644, -0.0282457172870636, -0.18655051290988922, -0.0069319503381848335, 0.0028716514352709055, 0.18745405972003937, 0.28200727701187134, -0.36442264914512634, 0.16173751652240753, -0.5957940816879272, -0.13182078301906586, 0.13251176476478577, 0.023461421951651573, 0.2270471304655075, 0.031679343432188034, 0.046721626073122025, 0.11960659176111221, -0.23797568678855896, -0.4012407660484314, 0.12365874648094177, -0.1498195379972458, -0.09826210141181946, 0.14784404635429382, 0.006423145066946745, 0.29350680112838745, 0.027584407478570938, 0.2196459174156189, 0.060019541531801224, -0.39987313747406006, -0.24034327268600464, 0.055206697434186935, 0.06278259307146072, -0.03830556571483612, -0.11964409798383713, 0.01859911158680916, -0.12851448357105255, -0.13254481554031372, -0.03987973555922508, 0.08919628709554672, 0.19254301488399506, 0.09865310788154602, -0.1837013214826584, -0.06929413229227066, 0.01674233376979828, -0.1642523854970932, 0.3258414566516876, 0.13986264169216156, 0.23185764253139496, -0.014497769996523857, 0.1323748528957367, -0.08560994267463684, 0.0066347913816571236, -0.18700625002384186, -0.14577291905879974, 0.05460474267601967, 0.3340921401977539, 0.2917373478412628, -0.2557474672794342, 0.27782750129699707, 0.5029016137123108, 0.2845906913280487, 0.28827226161956787, -0.261594295501709, 0.20064117014408112, 0.1876649111509323, 0.34328916668891907, -0.2725111246109009, -0.21513038873672485, 0.40911486744880676, 0.3377301096916199, 0.023430578410625458, 0.34953513741493225, 0.2278745174407959, 0.09652399271726608, 0.38641148805618286, 0.2378535121679306, 0.7002608180046082, 0.010921351611614227, 0.3064974844455719, 0.39678046107292175, 0.029781142249703407, 0.02797417715191841, 0.4111221134662628, 0.24532730877399445, 0.057196661829948425, 0.5404459238052368, -0.11166821420192719, 0.38120412826538086, 0.050845008343458176, 0.1516122967004776, -0.20212256908416748, -0.18425442278385162, -0.2625831365585327, -0.05384594947099686, 0.117669977247715, 0.056901268661022186, -0.020486120134592056, -0.040453821420669556, -0.3588009476661682, -0.017703495919704437, -0.38181358575820923, 0.195245161652565, -0.10122108459472656, 0.14436554908752441, 0.11840974539518356, -0.20163074135780334, 0.03957413509488106, -0.030149396508932114, 0.06569335609674454, 0.027811044827103615, 0.15147405862808228, -0.021578557789325714, -0.1175268217921257, -0.26326054334640503, -0.00969721283763647, 0.232989102602005, 0.03197804465889931, -0.09512407332658768, 0.3985484838485718, 0.13746978342533112, -0.05197896435856819, -0.043344516307115555, 0.34608644247055054, 0.3359360098838806, 0.15916259586811066, 0.022549668326973915, -0.04020825773477554, 0.09299139678478241, -0.12294961512088776, -0.0861300677061081, 0.15117710828781128, -0.034975841641426086, 0.32150909304618835, 0.2348558008670807, 0.3064633905887604, -0.2580749988555908, 0.1845090687274933, -0.2394280880689621, 0.11451023817062378, -0.2463304102420807, 0.003175211837515235, -0.2701854407787323, -0.09753204137086868, -0.2701837122440338, -0.12828201055526733, -0.2590591013431549, 0.048611484467983246, 0.29654461145401, -0.07215212285518646, 0.004525219555944204, -0.3530624806880951, 0.10898763686418533, -0.11539009213447571, 0.13042967021465302, 0.4215749204158783, 0.02985365130007267, -0.14191773533821106, -0.09968923777341843, -0.8327542543411255, 0.26545584201812744, -0.3724471628665924, -0.3370616137981415, 0.17449669539928436, -0.10680074989795685, -0.18518765270709991, 0.25560757517814636, 0.4662516415119171, 0.15342050790786743, 0.16422998905181885, 0.2508547306060791, -0.38393259048461914, -0.09464378654956818, 0.22546584904193878, 0.035240672528743744, 0.1736331433057785, -0.24990102648735046, 0.00575830927118659, -0.07232027500867844, 0.10741368681192398, -0.1509796530008316, -0.0982133224606514, -0.17458324134349823, -0.22460967302322388, 0.7090953588485718, 0.04159484803676605, 0.049666233360767365, -0.014484230428934097, -0.27299410104751587, -0.3072062134742737, -0.28807613253593445, -0.15137401223182678, 0.08444426953792572, 0.061601363122463226, 0.2224789708852768, -0.18813550472259521, 0.04457030072808266, -0.4247746467590332, 0.24654963612556458, 0.102869413793087, -0.04794473573565483, -0.09123053401708603, 0.2359805703163147, -0.37803786993026733, 0.1200849711894989, 0.2901974320411682, 0.15471822023391724, 0.040420275181531906, 0.18297943472862244, -0.08114541321992874, -0.4246268570423126, 0.5179017782211304, -0.0178212933242321, -0.27359694242477417, -0.03817826136946678, 0.10458816587924957, 0.0730184018611908, -0.2387007176876068, -0.2471563220024109, 0.3185579776763916, 0.2581026554107666, 0.12043806165456772, -0.13168370723724365, 0.16690155863761902, -0.23022811114788055, -0.04358689859509468, 0.12296134233474731, 0.5427111387252808, -0.09237612038850784, -0.12143510580062866, 0.34142035245895386, 0.009655541740357876 ]
https://github.com/huggingface/datasets/issues/2691
xtreme / pan-x cannot be downloaded
Yes @severo, weird... I could access the file when I answered to you, but now I cannot longer access it either... Maybe it was from the cache as you point out. Anyway, I have opened an issue in the GitHub repository responsible for the original dataset: https://github.com/afshinrahimi/mmner/issues/4 I have also contacted the maintainer by email. I'll keep you informed with their answer.
## Describe the bug Dataset xtreme / pan-x cannot be loaded Seems related to https://github.com/huggingface/datasets/pull/2326 ## Steps to reproduce the bug ```python dataset = load_dataset("xtreme", "PAN-X.fr") ``` ## Expected results Load the dataset ## Actual results ``` FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/12h3qqog6q4bjve/panx_dataset.tar?dl=1 ``` ## Environment info - `datasets` version: 1.9.0 - Platform: macOS-11.4-x86_64-i386-64bit - Python version: 3.8.11 - PyArrow version: 4.0.1
62
xtreme / pan-x cannot be downloaded ## Describe the bug Dataset xtreme / pan-x cannot be loaded Seems related to https://github.com/huggingface/datasets/pull/2326 ## Steps to reproduce the bug ```python dataset = load_dataset("xtreme", "PAN-X.fr") ``` ## Expected results Load the dataset ## Actual results ``` FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/12h3qqog6q4bjve/panx_dataset.tar?dl=1 ``` ## Environment info - `datasets` version: 1.9.0 - Platform: macOS-11.4-x86_64-i386-64bit - Python version: 3.8.11 - PyArrow version: 4.0.1 Yes @severo, weird... I could access the file when I answered to you, but now I cannot longer access it either... Maybe it was from the cache as you point out. Anyway, I have opened an issue in the GitHub repository responsible for the original dataset: https://github.com/afshinrahimi/mmner/issues/4 I have also contacted the maintainer by email. I'll keep you informed with their answer.
[ -0.31820619106292725, -0.32728949189186096, -0.11037566512823105, 0.28357943892478943, 0.232895627617836, 0.06587667763233185, -0.09190840274095535, 0.1860669106245041, 0.04639028385281563, 0.24007005989551544, -0.22607213258743286, 0.20973269641399384, -0.034338176250457764, -0.14891059696674347, 0.14115366339683533, -0.2330799251794815, -0.02397521212697029, 0.06493116915225983, 0.08692923933267593, -0.0030197554733604193, -0.04355085641145706, 0.09998852759599686, -0.1346054971218109, 0.16274216771125793, -0.28168824315071106, 0.1641903966665268, 0.1339256316423416, 0.15280570089817047, -0.3610311448574066, -0.5697412490844727, 0.5499164462089539, -0.07189958542585373, 0.21623361110687256, 0.6330675482749939, -0.00010452627611812204, 0.027430135756731033, 0.25137898325920105, -0.07012408971786499, 0.021965498104691505, -0.3303208649158478, -0.1703127771615982, -0.3326669931411743, -0.05591844394803047, -0.23264195024967194, -0.049284547567367554, -0.16108570992946625, -0.04300137609243393, -0.2736639678478241, 0.18779456615447998, 0.31423667073249817, 0.3028452396392822, 0.340710312128067, 0.1974210888147354, -0.1840539127588272, 0.41776570677757263, -0.11730004101991653, -0.291506826877594, 0.09863227605819702, 0.2888222336769104, 0.25449103116989136, 0.3358389139175415, 0.3467044532299042, -0.06246652454137802, 0.13617560267448425, 0.11522264033555984, 0.11143460124731064, 0.035921160131692886, -0.4036874771118164, 0.10345470905303955, 0.30536454916000366, 0.3668734133243561, -0.2257569581270218, -0.37037837505340576, -0.12801972031593323, -0.0011333628790453076, -0.4135957956314087, 0.2864314913749695, 0.18856041133403778, -0.06144508346915245, 0.048734329640865326, 0.05901295691728592, -0.06409528106451035, -0.009463275782763958, 0.0822291225194931, -0.23675517737865448, 0.30455249547958374, -0.23986612260341644, -0.08100850880146027, 0.06117762625217438, -0.09763295203447342, 0.42668694257736206, 0.10552217811346054, -0.04986165836453438, 0.18945373594760895, -0.19107098877429962, 0.08615554124116898, 0.09162633121013641, -0.03131597861647606, 0.18795110285282135, -0.09396759420633316, -0.0870380774140358, 0.021232938393950462, -0.12130431830883026, 0.05334240570664406, -0.02366475947201252, 0.22360554337501526, 0.013699626550078392, 0.012360792607069016, 0.336465984582901, 0.16754278540611267, -0.025203809142112732, -0.10390885919332504, -0.061051782220602036, 0.021020183339715004, 0.3471224308013916, 0.01518382877111435, 0.2679443955421448, -0.4040789306163788, -0.14627906680107117, 0.10883599519729614, 0.08115656673908234, 0.004061853513121605, 0.07536834478378296, 0.26962271332740784, -0.13104364275932312, 0.5004310011863708, -0.1439538449048996, 0.27744609117507935, -0.17861337959766388, -0.05459415167570114, -0.23051388561725616, 0.2875283658504486, -0.3185656666755676, -0.16405358910560608, 0.26813989877700806, -0.0885947048664093, 0.3424469232559204, 0.019303523004055023, 0.4485729932785034, -0.2276660054922104, 0.14555895328521729, -0.03913251310586929, -0.15679435431957245, 0.3950018584728241, 0.2186506986618042, 0.2417786717414856, -0.05708613246679306, 0.10700952261686325, -0.1398315578699112, 0.05474397912621498, -0.533215343952179, -0.1445196270942688, 0.04843684285879135, 0.2813414931297302, -0.11093326658010483, 0.04434607923030853, -0.46152615547180176, -0.2585162818431854, 0.01844153366982937, 0.036848653107881546, 0.06547044217586517, -0.23707571625709534, 0.10366826504468918, -0.27275213599205017, 0.11947992444038391, 0.1861196905374527, -0.1496269553899765, 0.0811401754617691, -0.15082116425037384, -0.18407265841960907, -0.10368847101926804, 0.09497638791799545, -0.23242489993572235, -0.028053216636180878, -0.3431360125541687, 0.1788952797651291, 0.49666354060173035, -0.5603686571121216, -0.67662113904953, -0.19450192153453827, -0.2167251706123352, 0.10571923106908798, 0.05224009230732918, 0.12844441831111908, -0.11958546936511993, -0.07556978613138199, 0.11651317030191422, 0.23148493468761444, 0.06893354654312134, -0.04319632798433304, -0.20294944941997528, -0.1580139845609665, -0.39417994022369385, 0.29862847924232483, 0.33048972487449646, -0.08664432168006897, 0.12136584520339966, -0.046384088695049286, 0.050018247216939926, -0.1777494102716446, 0.05388839170336723, 0.4001023471355438, 0.08763182163238525, 0.04996175691485405, -0.10794773697853088, -0.3960917294025421, -0.26929032802581787, 0.30498063564300537, -0.23148998618125916, -0.09010125696659088, 0.042286891490221024, -0.16579686105251312, -0.3381282091140747, 0.1252349466085434, -0.25495824217796326, -0.13805188238620758, 0.19801923632621765, 0.21799470484256744, 0.2107340693473816, 0.0432913638651371, -0.18563002347946167, 0.2093697339296341, 0.13472692668437958, 0.04546552523970604, -0.393472820520401, 0.09887725114822388, -0.16474194824695587, -0.08480251580476761, -0.01860886625945568, 0.03183343634009361, 0.22331848740577698, -0.11318957805633545, -0.13132499158382416, 0.29660147428512573, -0.14107435941696167, 0.1947292983531952, 0.17668044567108154, 0.12903442978858948, 0.06987651437520981, -0.5461262464523315, 0.3711177706718445, 0.08369802683591843, 0.013775283470749855, 0.12920725345611572, -0.12382740527391434, 0.3975929021835327, 0.22586390376091003, -0.10468282550573349, -0.007353110704571009, 0.057475507259368896, 0.4007209539413452, -0.18396525084972382, 0.13768146932125092, -0.20096027851104736, 0.3223164975643158, -0.07788622379302979, 0.08909067511558533, -0.14088720083236694, -0.36186835169792175, 0.22394421696662903, 0.29937177896499634, -0.0730525553226471, 0.27456992864608765, 0.051355257630348206, -0.23277239501476288, 0.10065120458602905, -0.1656292974948883, 0.13454559445381165, 0.40024861693382263, 0.16550126671791077, 0.1585412323474884, 0.11279749870300293, 0.030328236520290375, -0.12193161249160767, 0.06401782482862473, 0.07981298118829727, -0.30829155445098877, 0.13864432275295258, 0.22006452083587646, 0.04781791567802429, -0.2584236264228821, -0.04352326691150665, -0.17599254846572876, 0.08691716194152832, -0.12906762957572937, -0.05492774769663811, -0.2891582250595093, -0.018709274008870125, -0.021273566409945488, -0.12968522310256958, -0.3267957866191864, -0.28940409421920776, 0.08331473171710968, 0.3019235134124756, 0.3182376027107239, 0.0738871693611145, -0.4791666865348816, -0.1091628298163414, -0.025845887139439583, -0.15133078396320343, -0.2301011085510254, 0.1849561631679535, -0.08721353858709335, 0.12949016690254211, -0.012882007285952568, -0.03194974362850189, 0.2024099975824356, -0.38100412487983704, 0.29932311177253723, -0.39082372188568115, -0.2395477443933487, 0.12278403341770172, -0.09641965478658676, 0.3663293421268463, 0.12421821057796478, 0.007155606523156166, 0.049589939415454865, 0.29098978638648987, 0.31444308161735535, -0.5699627995491028, -0.05991820991039276, -0.02514910325407982, -0.01038132980465889, -0.11314461380243301, -0.002694743685424328, -0.213219553232193, -0.40268686413764954, -0.3585480749607086, -0.1287233829498291, 0.22208259999752045, 0.08458355069160461, -0.13633160293102264, -0.03532973304390907, -0.02346024662256241, -0.05281762406229973, 0.013287588953971863, -0.36571210622787476, -0.7164653539657593, 0.5234928727149963, -0.36667200922966003, -0.34374454617500305, 0.315321147441864, 0.04939563572406769, 0.3250020146369934, 0.026677846908569336, -0.5940797328948975, -0.4159548282623291, -0.1920965164899826, 0.24970193207263947, 0.07498987764120102, 0.19580601155757904, 0.25181862711906433, -0.20472954213619232, -0.11693701148033142, -0.1770109385251999, -0.1927516758441925, -0.32998043298721313, -0.010413851588964462, 0.2748672366142273, -0.048664845526218414, 0.21048696339130402, -0.02053627371788025, 0.5043951272964478, -0.0040306528098881245, 0.292192667722702, 0.5138948559761047, -0.015721241012215614, 0.3878630995750427, -0.17397883534431458, -0.22701986134052277, -0.10054993629455566, 0.0359632670879364, 0.11801271140575409, -0.08140605688095093, 0.30466198921203613, -0.02977425791323185, -0.3115224242210388, 0.0018648705445230007, 0.07538831233978271, -0.10004600137472153, -0.020178446546196938, 0.2238376885652542, 0.1390814185142517, 0.11914780735969543, 0.21779164671897888, -0.3337515592575073, -0.1647442877292633, 0.06461760401725769, 0.28604212403297424, 0.07199748605489731, 0.2217721939086914, -0.6987007260322571, 0.29450875520706177, -0.354947566986084, 0.2589453458786011, 0.1331319361925125, 0.29727673530578613, 0.08919023722410202, -0.03569384291768074, 0.24967943131923676, -0.031428612768650055, 0.2928502559661865, -0.2753565311431885, 0.19246500730514526, 0.24880775809288025, -0.18901538848876953, -0.25779420137405396, -0.14766472578048706, -0.060786861926317215, 0.0950523242354393, 0.07411202788352966, 0.22068539261817932, -0.25113052129745483, -0.20981168746948242, 0.1976281702518463, 0.16686707735061646, -0.12271305918693542, -0.05756930261850357, -0.2543337345123291, -0.3855944871902466, -0.21997752785682678, -0.10092881321907043, 0.16314807534217834, 0.024085059762001038, 0.1836427003145218, 0.13391664624214172, -0.28186798095703125, 0.022678697481751442, 0.2182983011007309, 0.22947338223457336, 0.4041040539741516, -0.17795366048812866, 0.08621727675199509, 0.13543877005577087, -0.2517172396183014, 0.23599672317504883, 0.6561265587806702, -0.06928209960460663, -0.19752511382102966, 0.23362861573696136, -0.023096291348338127, -0.11562149226665497, 0.17394766211509705, -0.13965873420238495, -0.09927252680063248, -0.23163866996765137, 0.16365066170692444, 0.03458240628242493, 0.23794490098953247, 0.2754203677177429, 0.02146081067621708, -0.44277098774909973, -0.26526138186454773, 0.4133498966693878, 0.29957252740859985, 0.08543162792921066, 0.1106899231672287, -0.1749092936515808, -0.009616627357900143, -0.2360396832227707, 0.05759672448039055, 1.017309308052063, 0.057234786450862885, 0.21757210791110992, 0.029011346399784088, 0.0634130910038948, 0.05655237287282944, -0.2485339194536209, 0.20465296506881714, -0.12233219295740128, -0.38788166642189026, -0.14553558826446533, -0.19152630865573883, 0.014588931575417519, -0.16037532687187195, 0.0710688903927803, 0.3486486077308655, -0.058681830763816833, 0.21973350644111633, 0.12151815742254257, 0.053067393600940704, -0.21795587241649628, -0.17735585570335388, -0.47430557012557983, 0.23524008691310883, 0.02482392080128193, 0.3444925844669342, -0.11604255437850952, -0.03816435486078262, -0.18437394499778748, -0.02782815508544445, 0.04439796134829521, 0.2960229814052582, -0.0469832606613636, 0.12548919022083282, 0.014810127206146717, -0.512718141078949, -0.17163591086864471, -0.012648037634789944, 0.08561848104000092, 0.09798549115657806, -0.16778412461280823, 0.3572310507297516, 0.06229417771100998, -0.1430041790008545, 0.1259833425283432, -0.12414820492267609, -0.014224894344806671, -0.1708565205335617, -0.08811595290899277, 0.3363655209541321, -0.051058266311883926, -0.26989778876304626, -0.33792728185653687, 0.10861364752054214, -0.06416460871696472, -0.03677350655198097, -0.09968099743127823, -0.18450266122817993, 0.2647097706794739, -0.1955665946006775, 0.19588333368301392, 0.2199278324842453, -0.051443297415971756, 0.0763024389743805, -0.02347581274807453, -0.27158865332603455, -0.12406428158283234, 0.4434835612773895, 0.13636185228824615, -0.18303672969341278, 0.15230126678943634, 0.13238731026649475, -0.07473456114530563, -0.16107681393623352, -0.07924649864435196, 0.16763323545455933, -0.5585591197013855, 0.0591033399105072, -0.23989976942539215, -0.0812932476401329, 0.06038321927189827, 0.15776664018630981, 0.250589519739151, -0.25831571221351624, 0.07150495052337646, -0.5780918002128601, -0.2697543203830719, 0.02959381975233555, -0.05869601294398308, 0.18199165165424347, 0.004593865480273962, 0.013815846294164658, 0.013300695456564426, -0.14909502863883972, -0.39931410551071167, 0.23200130462646484, -0.10903606563806534, -0.1081174835562706, 0.08736191689968109, -0.007823481224477291, 0.2728000283241272, 0.06367437541484833, 0.17237232625484467, 0.11194820702075958, -0.4826047420501709, -0.2258475124835968, -0.006813420914113522, 0.09103234112262726, -0.035565316677093506, -0.14361858367919922, -0.007247705943882465, -0.09986220300197601, -0.11021867394447327, -0.008454893715679646, 0.11707735061645508, 0.20975089073181152, 0.041296813637018204, -0.20901000499725342, -0.11594600230455399, 0.01129703689366579, -0.15041953325271606, 0.36458227038383484, 0.1342124044895172, 0.04996027424931526, -0.000425079429987818, 0.19254010915756226, -0.1359708607196808, -0.012997242622077465, -0.11213952302932739, -0.08918112516403198, 0.06123685464262962, 0.26667773723602295, 0.39839470386505127, -0.21411053836345673, 0.21447712182998657, 0.5816688537597656, 0.2518545389175415, 0.22961385548114777, -0.29591020941734314, 0.16073791682720184, 0.1413058042526245, 0.32879528403282166, -0.3148747384548187, -0.2781592309474945, 0.4195447266101837, 0.26991602778434753, 0.06077418476343155, 0.3457852602005005, 0.3644164800643921, 0.12671998143196106, 0.4909862279891968, 0.24108967185020447, 0.7073954343795776, -0.0904361754655838, 0.30906301736831665, 0.3332037329673767, -0.031115015968680382, 0.08852266520261765, 0.5610823631286621, 0.26463690400123596, 0.10687822103500366, 0.5835363268852234, -0.07246528565883636, 0.4266377091407776, 0.0914972722530365, 0.055704500526189804, -0.14978815615177155, -0.17353519797325134, -0.26298052072525024, 0.09684630483388901, 0.12158326059579849, 0.15933142602443695, -0.11357028782367706, -0.10258705168962479, -0.27673739194869995, -0.07490813732147217, -0.41282886266708374, 0.20288829505443573, -0.1576402187347412, 0.009831278584897518, 0.07022268325090408, -0.292805016040802, -0.06222604215145111, 0.08222692459821701, 0.025967910885810852, 0.08877462893724442, 0.10943275690078735, 0.04198651760816574, -0.16842126846313477, -0.2736293077468872, -0.15726399421691895, 0.24129727482795715, 0.08170946687459946, -0.1552293449640274, 0.36936530470848083, 0.1513490378856659, -0.10859203338623047, -0.020572854205965996, 0.30774497985839844, 0.36040520668029785, 0.11557424068450928, 0.06116648018360138, -0.05243551358580589, 0.09796019643545151, -0.07908329367637634, -0.15986432135105133, 0.12522585690021515, 0.0504922941327095, 0.3037780523300171, 0.18883921205997467, 0.27696943283081055, -0.2973168194293976, 0.25241708755493164, -0.2654285728931427, 0.16093088686466217, -0.27562788128852844, -0.130049929022789, -0.14355067908763885, -0.08330681174993515, -0.24921314418315887, -0.10994145274162292, -0.24493037164211273, -0.016088590025901794, 0.2885897755622864, -0.10560042411088943, 0.020325917750597, -0.4095277786254883, 0.10320793092250824, -0.02760949358344078, 0.21060912311077118, 0.46020370721817017, -0.09421835839748383, -0.11565905809402466, -0.1780618131160736, -0.9365283250808716, 0.30669793486595154, -0.28361085057258606, -0.20834457874298096, 0.16222019493579865, -0.11185643821954727, -0.0682985931634903, 0.2574859857559204, 0.4689861834049225, 0.15690524876117706, 0.2140834629535675, 0.20862028002738953, -0.39695510268211365, -0.09382998943328857, 0.31096428632736206, 0.011094709858298302, 0.16616447269916534, -0.28094545006752014, -0.032565951347351074, -0.1328875869512558, 0.14131969213485718, -0.15115714073181152, -0.09384831041097641, -0.1022336333990097, -0.07180745899677277, 0.7232588529586792, 0.06363575905561447, 0.049497488886117935, 0.006365706212818623, -0.31309929490089417, -0.37352463603019714, -0.23019608855247498, -0.1844262033700943, -0.0065048434771597385, 0.09046058356761932, 0.33275461196899414, -0.2201777696609497, -0.0283157117664814, -0.4172602593898773, 0.18942536413669586, 0.11888011544942856, -0.029696181416511536, -0.13132037222385406, 0.1838793307542801, -0.35729822516441345, 0.12473023682832718, 0.3231872320175171, 0.20142295956611633, 0.044138189405202866, 0.2464495301246643, -0.16306468844413757, -0.3918914496898651, 0.4560478925704956, 0.038398854434490204, -0.2726224958896637, -0.15722353756427765, 0.050091423094272614, 0.020418962463736534, -0.19614948332309723, -0.2693958580493927, 0.2729896306991577, 0.2459130436182022, 0.11814093589782715, -0.12393119931221008, 0.15389171242713928, -0.20613716542720795, -0.0190597977489233, 0.03741641342639923, 0.4905187785625458, 0.02625938318669796, -0.13666167855262756, 0.249459370970726, 0.0027827743906527758 ]
https://github.com/huggingface/datasets/issues/2691
xtreme / pan-x cannot be downloaded
Reply from the author/maintainer: > Will fix the issue and let you know during the weekend.
## Describe the bug Dataset xtreme / pan-x cannot be loaded Seems related to https://github.com/huggingface/datasets/pull/2326 ## Steps to reproduce the bug ```python dataset = load_dataset("xtreme", "PAN-X.fr") ``` ## Expected results Load the dataset ## Actual results ``` FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/12h3qqog6q4bjve/panx_dataset.tar?dl=1 ``` ## Environment info - `datasets` version: 1.9.0 - Platform: macOS-11.4-x86_64-i386-64bit - Python version: 3.8.11 - PyArrow version: 4.0.1
16
xtreme / pan-x cannot be downloaded ## Describe the bug Dataset xtreme / pan-x cannot be loaded Seems related to https://github.com/huggingface/datasets/pull/2326 ## Steps to reproduce the bug ```python dataset = load_dataset("xtreme", "PAN-X.fr") ``` ## Expected results Load the dataset ## Actual results ``` FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/12h3qqog6q4bjve/panx_dataset.tar?dl=1 ``` ## Environment info - `datasets` version: 1.9.0 - Platform: macOS-11.4-x86_64-i386-64bit - Python version: 3.8.11 - PyArrow version: 4.0.1 Reply from the author/maintainer: > Will fix the issue and let you know during the weekend.
[ -0.3508208692073822, -0.48817411065101624, -0.10125729441642761, 0.26793721318244934, 0.24242737889289856, 0.07438836991786957, -0.13321936130523682, 0.2452755570411682, 0.14427006244659424, 0.118714340031147, -0.24366512894630432, 0.2646326720714569, 0.04616205021739006, 0.046501219272613525, 0.1917269080877304, -0.3267597556114197, 0.04476558044552803, 0.12794165313243866, 0.011156330816447735, -0.03764480724930763, -0.14200158417224884, 0.16778279840946198, -0.20663246512413025, 0.12029977142810822, -0.22432048618793488, 0.10204833000898361, 0.07733599841594696, 0.15690754354000092, -0.31002554297447205, -0.45815160870552063, 0.6455735564231873, -0.06338144838809967, 0.2681768536567688, 0.6048035025596619, -0.00010537994967307895, 0.02103775553405285, 0.2643089294433594, -0.04645175114274025, 0.1647491157054901, -0.43619880080223083, -0.2859499752521515, -0.35662564635276794, -0.030167311429977417, -0.2249145209789276, -0.040711771696805954, -0.22274427115917206, -0.10895933955907822, -0.11490219086408615, 0.2539048492908478, 0.22421123087406158, 0.2944549024105072, 0.3886258900165558, 0.15306755900382996, -0.21500155329704285, 0.43489912152290344, -0.07211025059223175, -0.31418758630752563, 0.10848724842071533, 0.3806251883506775, 0.1838412880897522, 0.4640989601612091, 0.2748148739337921, -0.041342802345752716, 0.0587846115231514, 0.158915176987648, 0.09773264825344086, -0.049526214599609375, -0.46378058195114136, 0.03888123482465744, 0.32812002301216125, 0.3879869878292084, -0.2812045216560364, -0.34497132897377014, -0.07006625086069107, 0.06340276449918747, -0.3715291917324066, 0.28637367486953735, 0.18026362359523773, -0.01392351184040308, 0.0406312420964241, 0.018126824870705605, -0.04815223067998886, -0.05538249388337135, 0.11070138961076736, -0.03411860391497612, 0.27645963430404663, -0.22529879212379456, -0.033171653747558594, 0.10915827006101608, -0.03747699409723282, 0.23858729004859924, 0.08675209432840347, -0.05558515340089798, 0.16896522045135498, -0.27020207047462463, 0.06840528547763824, 0.007478565908968449, -0.08387812972068787, 0.34815603494644165, -0.07770606130361557, -0.19825316965579987, 0.0007950999424792826, -0.12921464443206787, 0.06225389242172241, 0.09460680931806564, 0.14081928133964539, 0.08070088922977448, 0.03240275755524635, 0.20747160911560059, 0.16733258962631226, 0.08492232114076614, -0.07909675687551498, -0.1301613599061966, -0.03522456809878349, 0.15702418982982635, -0.04158290848135948, 0.3730689287185669, -0.39321765303611755, -0.265404611825943, 0.05481130629777908, 0.08347073197364807, 0.06911265850067139, 0.07208169996738434, 0.25623220205307007, -0.10466849058866501, 0.3372242748737335, -0.148921936750412, 0.43225347995758057, -0.2205556035041809, 0.038446102291345596, -0.20848292112350464, 0.3019188940525055, -0.29578617215156555, -0.256002277135849, 0.20965860784053802, -0.15046121180057526, 0.3913119435310364, 0.0729190930724144, 0.38507938385009766, -0.19971469044685364, 0.06149233505129814, 0.00846800860017538, -0.3092307150363922, 0.3815724551677704, 0.19174224138259888, 0.18782012164592743, -0.12230006605386734, 0.15635891258716583, -0.1546245813369751, 0.09938103705644608, -0.5259684920310974, -0.06680060178041458, -0.04676804319024086, 0.2607637941837311, -0.1234368234872818, -0.0680580660700798, -0.5894204378128052, -0.14134998619556427, -0.05531749874353409, 0.1839161068201065, 0.1050056740641594, -0.2398906797170639, 0.11463610082864761, -0.20363545417785645, 0.23717521131038666, 0.1873580664396286, -0.21377389132976532, -0.026849281042814255, -0.01827206090092659, -0.35183754563331604, -0.09156101197004318, 0.15202175080776215, -0.192415252327919, -0.019014157354831696, -0.27489420771598816, 0.3359985053539276, 0.4756490886211395, -0.5591968297958374, -0.5651315450668335, -0.09633219987154007, -0.21804431080818176, 0.0007038476760499179, -0.020006604492664337, 0.09620564430952072, -0.11177128553390503, -0.0004895662423223257, 0.09948749095201492, 0.24887347221374512, 0.06312199681997299, -0.02262616530060768, -0.17686821520328522, -0.22660043835639954, -0.38624516129493713, 0.34254172444343567, 0.2518789768218994, -0.09440900385379791, 0.06631563603878021, -0.00023435977345798165, 0.1595529466867447, -0.08313196897506714, -0.048657990992069244, 0.37308162450790405, 0.22867241501808167, 0.04472564533352852, -0.10366962850093842, -0.3814464807510376, -0.3556779623031616, 0.289523184299469, -0.09283199161291122, -0.15574227273464203, 0.04682742431759834, -0.15422946214675903, -0.46985292434692383, 0.20622770488262177, -0.2509516775608063, -0.08038323372602463, 0.13269641995429993, 0.08986806869506836, 0.20556429028511047, 0.032689131796360016, -0.23760715126991272, 0.07682700455188751, 0.052643824368715286, 0.11502671241760254, -0.39401257038116455, 0.23547564446926117, -0.08728162199258804, -0.16352058947086334, 0.06840794533491135, 0.06498689204454422, 0.21223323047161102, -0.23789189755916595, -0.1321239322423935, 0.31392553448677063, -0.09635329991579056, 0.14059339463710785, 0.2412087619304657, 0.036705132573843, 0.06820046156644821, -0.619657576084137, 0.22082370519638062, 0.07193536311388016, -0.010689123533666134, 0.13093611598014832, -0.08789899945259094, 0.36594894528388977, 0.09591231495141983, -0.11232869327068329, -0.07867530733346939, 0.09644239395856857, 0.3741547465324402, -0.18692216277122498, 0.12587909400463104, -0.07702342420816422, 0.35278645157814026, -0.08772329241037369, 0.13059894740581512, -0.21881742775440216, -0.3352222740650177, 0.0951024517416954, 0.2439255565404892, -0.08090925216674805, 0.20463979244232178, 0.08712545782327652, -0.10896771401166916, 0.169658824801445, -0.08366426825523376, 0.05866081267595291, 0.4200648367404938, 0.19100606441497803, 0.022282039746642113, 0.10966987907886505, -0.012607390992343426, -0.11495568603277206, 0.0522855706512928, 0.06968047469854355, -0.28185904026031494, 0.054543618112802505, 0.11045973747968674, 0.04077141731977463, -0.30767735838890076, -0.1345251202583313, -0.15212439000606537, 0.11308962851762772, -0.11949978023767471, -0.11159615218639374, -0.17416758835315704, -0.09300076216459274, -0.00672192731872201, -0.04418401047587395, -0.223013773560524, -0.1807045340538025, -0.0032336879521608353, 0.25088152289390564, 0.3006362318992615, 0.18570514023303986, -0.42580071091651917, -0.17678050696849823, 0.04923257231712341, -0.3311210870742798, -0.2414436936378479, 0.27396145462989807, -0.06484672427177429, 0.12813933193683624, 0.0012628012336790562, 0.10260651260614395, 0.25701704621315, -0.39087381958961487, 0.28349238634109497, -0.3780145049095154, -0.2129533439874649, 0.0874035581946373, -0.26087307929992676, 0.39516961574554443, 0.16707342863082886, 0.061884332448244095, -0.10022671520709991, 0.23853901028633118, 0.3719346821308136, -0.48952507972717285, -0.024997035041451454, 0.031135382130742073, 0.011685358360409737, -0.20289009809494019, 0.001298962626606226, -0.2291320115327835, -0.34068629145622253, -0.3332809507846832, 0.02517557330429554, 0.16010168194770813, 0.054262880235910416, -0.0320996530354023, 0.08464259654283524, 0.012780408374965191, -0.15032581984996796, -0.1215314120054245, -0.24920979142189026, -0.6595408916473389, 0.4708840847015381, -0.2177617847919464, -0.44263458251953125, 0.28589048981666565, 0.0693381130695343, 0.2742733955383301, 0.07972225546836853, -0.5939117670059204, -0.34380045533180237, -0.20704984664916992, 0.42230820655822754, 0.04859134182333946, 0.21060779690742493, 0.1916271597146988, -0.2807765603065491, -0.05582289770245552, -0.19828025996685028, -0.22542443871498108, -0.30887964367866516, 0.03966642543673515, 0.24598412215709686, -0.017733460292220116, 0.20067982375621796, -0.141196608543396, 0.45592471957206726, 0.15665344893932343, 0.22505007684230804, 0.5607684254646301, -0.07845418155193329, 0.29693764448165894, -0.17818401753902435, -0.33314642310142517, -0.07799725979566574, 0.13338609039783478, 0.13934527337551117, 0.004903852008283138, 0.26217737793922424, 0.041584622114896774, -0.27196836471557617, -0.06843125075101852, -0.008797072805464268, -0.0761466771364212, -0.05517783761024475, 0.1933756023645401, 0.0745692327618599, 0.017892757430672646, 0.2722105085849762, -0.1637096256017685, -0.10977618396282196, 0.0779530331492424, 0.3760087490081787, 0.06090916693210602, 0.2542281150817871, -0.6363358497619629, 0.19943280518054962, -0.4225561320781708, 0.2633747458457947, 0.02293558605015278, 0.30328500270843506, 0.027144769206643105, 0.12756092846393585, 0.22689244151115417, 0.017395811155438423, 0.37386614084243774, -0.21157994866371155, 0.23560410737991333, 0.16902966797351837, -0.15637019276618958, -0.30377697944641113, -0.1220085471868515, -0.1556055098772049, 0.08489823341369629, 0.18497337400913239, 0.42610400915145874, -0.29232004284858704, -0.20296823978424072, 0.24188470840454102, 0.1523059457540512, 0.030138954520225525, -0.13695257902145386, -0.30142292380332947, -0.5566598773002625, -0.19767580926418304, -0.06412528455257416, 0.20567931234836578, 0.06415090709924698, 0.18856434524059296, -0.02878568135201931, -0.23420770466327667, -0.06345905363559723, 0.1824844479560852, 0.26502561569213867, 0.3496650755405426, -0.15817351639270782, 0.2069971263408661, 0.08872714638710022, -0.3461325466632843, 0.2118753045797348, 0.6712538599967957, -0.034395426511764526, -0.4521391689777374, 0.09677000343799591, -0.03727202117443085, -0.00494064437225461, 0.06295596808195114, -0.17537686228752136, -0.058041829615831375, -0.2222937047481537, 0.15226921439170837, 0.05639750510454178, 0.2417755126953125, 0.38567018508911133, 0.0768091082572937, -0.4572798013687134, -0.29300999641418457, 0.5171844959259033, 0.27595922350883484, 0.11061037331819534, 0.22640833258628845, -0.07557042688131332, 0.005940936505794525, -0.16862110793590546, -0.0367954783141613, 0.8605225682258606, -0.02009456604719162, -0.009047556668519974, 0.20496974885463715, 0.02341955341398716, 0.19267086684703827, -0.10321500152349472, 0.08583102375268936, -0.16769807040691376, -0.4318576753139496, -0.12421517819166183, -0.1855197250843048, 0.14400014281272888, -0.05841299518942833, -0.011207415722310543, 0.2490832507610321, -0.017395418137311935, 0.10418079793453217, 0.07067103683948517, 0.07292893528938293, -0.15683847665786743, -0.1870139241218567, -0.5920327305793762, 0.22917531430721283, -0.01891898177564144, 0.35688135027885437, -0.16453975439071655, -0.06271304935216904, -0.18355780839920044, -0.11840197443962097, -0.005898505449295044, 0.33216729760169983, -0.016996324062347412, 0.06669750064611435, 0.03307170793414116, -0.5403261184692383, -0.04950478672981262, 0.06615321338176727, 0.0649537518620491, 0.12411388009786606, -0.23675313591957092, 0.31963667273521423, 0.005637843161821365, -0.24709336459636688, 0.11954542249441147, -0.13841159641742706, -0.18627354502677917, -0.11693783104419708, -0.18020880222320557, 0.1975177675485611, -0.04738771915435791, -0.21741405129432678, -0.22882288694381714, 0.03654863312840462, -0.10863000899553299, -0.11266116797924042, -0.14594772458076477, -0.21846440434455872, 0.27612432837486267, -0.22774873673915863, 0.18006646633148193, 0.2461976408958435, -0.014883813448250294, 0.11215264350175858, 0.0897889956831932, -0.31750932335853577, -0.18006576597690582, 0.34807664155960083, -0.039445046335458755, -0.12059178948402405, 0.12185419350862503, 0.192972794175148, -0.03525690734386444, -0.19409789144992828, 0.04604702815413475, 0.2011943906545639, -0.6195082068443298, 0.020856473594903946, -0.13739903271198273, 0.014248055405914783, -0.05306558310985565, 0.27016082406044006, 0.24818161129951477, -0.3544400930404663, 0.24667015671730042, -0.5972572565078735, -0.20120030641555786, 0.14331276714801788, -0.012975253164768219, 0.2136300504207611, 0.10110949724912643, 0.08657818287611008, 0.11632067710161209, -0.2084696739912033, -0.37181058526039124, 0.14842697978019714, -0.08513326197862625, -0.09411590546369553, 0.14082130789756775, 0.0926847755908966, 0.28205928206443787, 0.03647856041789055, 0.19129230082035065, 0.09035469591617584, -0.3732389211654663, -0.23401455581188202, -0.03996821492910385, 0.07093530893325806, -0.026768874377012253, -0.1522599160671234, 0.000942847051192075, -0.06217935308814049, -0.20293430984020233, -0.048775505274534225, 0.1483900547027588, 0.19908757507801056, 0.04717874526977539, -0.11445368826389313, 0.008384245447814465, 0.030398257076740265, -0.23314465582370758, 0.2854090929031372, 0.15170493721961975, 0.09035320580005646, -0.10036637634038925, 0.144260972738266, -0.05904092639684677, -0.04324015602469444, -0.21947433054447174, -0.10265705734491348, 0.145682692527771, 0.2854142487049103, 0.2501864731311798, -0.19645081460475922, 0.31282535195350647, 0.5136573910713196, 0.2690920829772949, 0.3190077245235443, -0.27704593539237976, 0.21854783594608307, 0.15709425508975983, 0.32231658697128296, -0.3402838408946991, -0.16490165889263153, 0.3743475675582886, 0.3258282542228699, 0.02829589508473873, 0.3628847897052765, 0.24533076584339142, 0.16051650047302246, 0.3300941586494446, 0.18620729446411133, 0.6517940759658813, 0.048082783818244934, 0.33175843954086304, 0.4907911717891693, -0.009580152109265327, 0.0681622251868248, 0.4628821313381195, 0.25847774744033813, 0.06249309703707695, 0.5506417751312256, -0.12201263010501862, 0.382379949092865, 0.010942217893898487, 0.12272139638662338, -0.14260226488113403, -0.23840004205703735, -0.29245224595069885, -0.014077086001634598, 0.07631565630435944, 0.046427566558122635, -0.05174369737505913, 0.10193616896867752, -0.36270490288734436, -0.07678482681512833, -0.40855729579925537, 0.19557009637355804, -0.1277136504650116, 0.061122648417949677, 0.08159461617469788, -0.19395457208156586, -0.024851327762007713, 0.0003705470298882574, -0.0396144837141037, -0.01835092343389988, 0.2154422104358673, 0.003796015866100788, -0.18776138126850128, -0.2962323725223541, 0.007255422882735729, 0.340633362531662, -0.021618248894810677, -0.11001482605934143, 0.38683757185935974, 0.07007747143507004, -0.09094906598329544, -0.02020331844687462, 0.38416555523872375, 0.3209078907966614, 0.18812349438667297, 0.10014306753873825, -0.06892659515142441, 0.10084926337003708, -0.05254625901579857, -0.06263691186904907, 0.18334192037582397, 0.019440308213233948, 0.40598568320274353, 0.21993373334407806, 0.2920581102371216, -0.2601916491985321, 0.16276174783706665, -0.1733614057302475, 0.12740448117256165, -0.26759445667266846, 0.0019137294730171561, -0.32404017448425293, -0.11664067953824997, -0.21535520255565643, -0.15643095970153809, -0.18796297907829285, 0.03998110443353653, 0.2971612811088562, -0.008156435564160347, 0.044037114828825, -0.3504028022289276, 0.09831300377845764, -0.11319496482610703, 0.1918172687292099, 0.395676851272583, 0.022182926535606384, -0.23519359529018402, -0.110232412815094, -0.8148163557052612, 0.2829461693763733, -0.24055063724517822, -0.3548554480075836, 0.21548405289649963, -0.1633157581090927, -0.10390402376651764, 0.32334640622138977, 0.40293240547180176, 0.15406066179275513, 0.22691278159618378, 0.2429274618625641, -0.36440008878707886, -0.10511660575866699, 0.1346466988325119, 0.06780538707971573, 0.1877434104681015, -0.27484601736068726, 0.02166147343814373, -0.07156623899936676, 0.07031822204589844, -0.21778029203414917, -0.11807814240455627, -0.12925545871257782, -0.23973582684993744, 0.7350841760635376, 0.020961087197065353, 0.16433317959308624, -0.0689476728439331, -0.15079271793365479, -0.3329710364341736, -0.37566760182380676, -0.19210103154182434, 0.17446672916412354, 0.0068289306946098804, 0.2460232377052307, -0.14615419507026672, 0.015409479849040508, -0.38729918003082275, 0.1798042505979538, 0.07976295799016953, -0.05879921093583107, -0.10461743921041489, 0.18209946155548096, -0.33726340532302856, 0.05826227739453316, 0.2378586083650589, 0.16923224925994873, -0.013563057407736778, 0.23194849491119385, -0.11460378766059875, -0.44294044375419617, 0.44286301732063293, 0.01886606775224209, -0.27325209975242615, -0.07015161216259003, 0.06074851006269455, 0.078818678855896, -0.28556108474731445, -0.33776289224624634, 0.339584618806839, 0.2811839282512665, 0.11688049137592316, -0.0960109531879425, 0.16937042772769928, -0.19903916120529175, -0.03343978151679039, 0.11445950716733932, 0.5657117366790771, -0.04208666831254959, -0.14239013195037842, 0.4052658677101135, -0.009842467494308949 ]
https://github.com/huggingface/datasets/issues/2691
xtreme / pan-x cannot be downloaded
The author told that apparently Dropbox has changed their policy and no longer allow downloading the file without having signed in first. The author asked Hugging Face to host their dataset.
## Describe the bug Dataset xtreme / pan-x cannot be loaded Seems related to https://github.com/huggingface/datasets/pull/2326 ## Steps to reproduce the bug ```python dataset = load_dataset("xtreme", "PAN-X.fr") ``` ## Expected results Load the dataset ## Actual results ``` FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/12h3qqog6q4bjve/panx_dataset.tar?dl=1 ``` ## Environment info - `datasets` version: 1.9.0 - Platform: macOS-11.4-x86_64-i386-64bit - Python version: 3.8.11 - PyArrow version: 4.0.1
31
xtreme / pan-x cannot be downloaded ## Describe the bug Dataset xtreme / pan-x cannot be loaded Seems related to https://github.com/huggingface/datasets/pull/2326 ## Steps to reproduce the bug ```python dataset = load_dataset("xtreme", "PAN-X.fr") ``` ## Expected results Load the dataset ## Actual results ``` FileNotFoundError: Couldn't find file at https://www.dropbox.com/s/12h3qqog6q4bjve/panx_dataset.tar?dl=1 ``` ## Environment info - `datasets` version: 1.9.0 - Platform: macOS-11.4-x86_64-i386-64bit - Python version: 3.8.11 - PyArrow version: 4.0.1 The author told that apparently Dropbox has changed their policy and no longer allow downloading the file without having signed in first. The author asked Hugging Face to host their dataset.
[ -0.2759367823600769, -0.34803804755210876, -0.05936677008867264, 0.3470793664455414, 0.10864177346229553, 0.055485039949417114, 0.021438639611005783, 0.2132672518491745, 0.3107881247997284, 0.06811372935771942, -0.23722705245018005, 0.21728700399398804, -0.07426740974187851, 0.18293941020965576, 0.23064664006233215, -0.16709944605827332, 0.018207205459475517, 0.03839606046676636, 0.1040746420621872, -0.10596634447574615, -0.0068049062974750996, 0.06880617141723633, -0.23525263369083405, 0.034151554107666016, -0.20676839351654053, -0.0287321750074625, 0.09267736226320267, 0.3318828344345093, -0.3699328601360321, -0.37519532442092896, 0.6139100790023804, -0.0842427909374237, 0.18517564237117767, 0.5841589570045471, -0.00011201744200661778, 0.06529650837182999, 0.13743922114372253, -0.10217422991991043, -0.07750056684017181, -0.5789527893066406, -0.3472653925418854, -0.40075409412384033, -0.08617838472127914, -0.16360509395599365, -0.05116698518395424, -0.11172854155302048, -0.01502036489546299, -0.1729515939950943, 0.5082505345344543, 0.36959272623062134, 0.22408364713191986, 0.5469499230384827, 0.17208097875118256, -0.13783171772956848, 0.3611237108707428, 0.15620441734790802, -0.23778824508190155, 0.436751127243042, 0.3216775953769684, 0.11576393991708755, 0.41128844022750854, 0.17754565179347992, -0.09967630356550217, -0.16891585290431976, 0.1308136135339737, 0.013355758972465992, -0.2266705185174942, -0.44702020287513733, 0.07840245217084885, 0.20777630805969238, 0.3536139726638794, -0.13388510048389435, -0.4127599000930786, -0.36149832606315613, 0.1108662486076355, -0.15482580661773682, 0.27279606461524963, 0.19561652839183807, -0.03594550862908363, 0.14487841725349426, 0.05994189903140068, -0.1014324203133583, -0.012918715365231037, 0.05937967076897621, 0.01730947196483612, 0.3373425602912903, -0.25776952505111694, 0.014400748535990715, 0.10922346264123917, -0.07515274733304977, 0.3978733420372009, 0.053208380937576294, -0.04792880266904831, 0.12322241067886353, -0.1411842405796051, 0.005374034866690636, -0.05404438078403473, 0.013752530328929424, 0.24823960661888123, 0.019402222707867622, -0.07855542004108429, -0.08088532835245132, -0.20069095492362976, 0.024139437824487686, 0.18486163020133972, 0.3048699200153351, 0.14914089441299438, -0.10333175212144852, 0.17457832396030426, 0.3312748074531555, 0.19600307941436768, -0.04345935955643654, -0.2963787317276001, 0.044566888362169266, -0.07223254442214966, -0.15126559138298035, 0.5243729948997498, -0.27153119444847107, -0.3970925509929657, -0.019527124240994453, 0.02004244551062584, -0.08854515850543976, 0.1340082883834839, 0.21829378604888916, -0.10686484724283218, 0.2549794614315033, -0.0760689303278923, 0.2554853558540344, -0.16305072605609894, -0.15157738327980042, -0.191450297832489, 0.4051419198513031, -0.23432570695877075, -0.1603657305240631, 0.18481513857841492, -0.24350492656230927, 0.41868501901626587, 0.12886513769626617, 0.39466148614883423, -0.15002991259098053, 0.10271085053682327, 0.09227597713470459, -0.1681753695011139, 0.3451005816459656, 0.1561531126499176, 0.12696491181850433, -0.014146417379379272, -0.23485462367534637, -0.11575307697057724, 0.05715085193514824, -0.5933464765548706, -0.14030563831329346, -0.19937454164028168, 0.16793103516101837, -0.22497208416461945, -0.13070103526115417, -0.4889054298400879, -0.15030033886432648, -0.11522500962018967, 0.041369564831256866, 0.1745774745941162, -0.0939834713935852, 0.22784855961799622, -0.1294245570898056, 0.1880381852388382, 0.43616482615470886, -0.2327737957239151, 0.033409398049116135, -0.17923803627490997, -0.09939468652009964, -0.07308641821146011, 0.09469912201166153, -0.2904943525791168, -0.05204504355788231, -0.44833898544311523, 0.1997852772474289, 0.2893690764904022, -0.7500990033149719, -0.5598581433296204, -0.08986113965511322, -0.47064220905303955, 0.23300722241401672, 0.0047257146798074245, 0.0929388627409935, -0.025756875053048134, -0.11671881377696991, 0.18439500033855438, 0.09555131942033768, 0.16993337869644165, -0.12243133038282394, -0.20455440878868103, -0.2444779872894287, -0.26241087913513184, 0.28426361083984375, 0.06227120757102966, 0.06812101602554321, 0.09109373390674591, 0.2827214300632477, 0.20982186496257782, -0.022855868563055992, -0.09339393675327301, 0.3326900005340576, 0.29237180948257446, 0.02337435819208622, -0.28684037923812866, -0.24777846038341522, -0.42328187823295593, 0.3309372365474701, 0.028076190501451492, -0.10510282963514328, -0.0007368547958321869, -0.22657673060894012, -0.5678089261054993, 0.1613326519727707, -0.1888890415430069, -0.17854394018650055, 0.06777362525463104, 0.12396863102912903, 0.15139953792095184, 0.04965874180197716, -0.2474331557750702, 0.223378986120224, 0.01884356699883938, 0.154360830783844, -0.5641945004463196, 0.23114925622940063, -0.11551205068826675, -0.060408759862184525, 0.035269252955913544, 0.0466388538479805, 0.25018152594566345, -0.20047785341739655, -0.05564671382308006, 0.38031232357025146, -0.19201290607452393, 0.015970269218087196, 0.25293293595314026, 0.05224189907312393, 0.19395551085472107, -0.49884334206581116, 0.243588387966156, 0.05465998873114586, 0.02351556532084942, 0.1672840118408203, -0.2205285280942917, 0.44482851028442383, 0.03058003820478916, -0.23731590807437897, -0.14011986553668976, 0.1262517124414444, 0.22308295965194702, -0.13060593605041504, -0.02722475863993168, -0.14736466109752655, 0.25656893849372864, -0.29585570096969604, 0.4428705871105194, -0.19185851514339447, -0.3940771818161011, 0.09244358539581299, 0.2551043629646301, -0.09547131508588791, 0.1634526550769806, 0.1062978208065033, 0.006580869201570749, 0.07547910511493683, 0.09183298796415329, 0.1748155951499939, 0.4484560489654541, 0.1287844181060791, 0.04552285000681877, 0.12200760841369629, 0.11265312135219574, -0.18755975365638733, 0.18221332132816315, -0.05994733050465584, -0.41532251238822937, 0.05256965756416321, 0.22997881472110748, 0.0714467316865921, -0.3545283079147339, -0.24064218997955322, -0.1877218782901764, 0.030026622116565704, -0.24943587183952332, -0.01791418343782425, -0.1286334991455078, -0.26128870248794556, -0.028374165296554565, -0.00569206802174449, -0.3994729220867157, -0.14123626053333282, -0.1487312763929367, 0.27083680033683777, 0.24932856857776642, 0.006403576582670212, -0.35846516489982605, 0.11851947009563446, -0.007516233716160059, -0.13675673305988312, -0.3121982514858246, 0.36243122816085815, -0.028594572097063065, 0.04847750440239906, 0.11055383086204529, -0.029361173510551453, 0.2358982115983963, -0.41571855545043945, 0.10523262619972229, -0.35739418864250183, -0.3269350528717041, 0.04517004266381264, -0.21629653871059418, 0.4289373457431793, 0.14537779986858368, 0.22179283201694489, -0.0008088755421340466, 0.05298537760972977, 0.2060076743364334, -0.21674785017967224, -0.029997797682881355, -0.2100406140089035, 0.08075953274965286, -0.14605185389518738, 0.006058874074369669, -0.02652854472398758, -0.40589967370033264, -0.37755656242370605, 0.20127494633197784, 0.14822933077812195, -0.0348026417195797, 0.20053468644618988, 0.009733287617564201, 0.11228538304567337, -0.17344456911087036, -0.14913150668144226, -0.1994180530309677, -0.8692609667778015, 0.40910348296165466, -0.20428499579429626, -0.3979106843471527, 0.2263699322938919, 0.196329265832901, 0.17211949825286865, -0.17766110599040985, -0.520155131816864, -0.4196144640445709, -0.2218334972858429, 0.43533065915107727, -0.0021963396575301886, 0.13793352246284485, 0.2515821158885956, -0.2824037969112396, 0.007736947387456894, -0.13846491277217865, -0.2788475453853607, -0.28255656361579895, 0.22684545814990997, 0.17223575711250305, -0.0015178296016529202, 0.022435542196035385, -0.0498860739171505, 0.3794845640659332, 0.13088859617710114, 0.16113659739494324, 0.5610558986663818, -0.07442870736122131, 0.43978115916252136, -0.17662976682186127, -0.46284228563308716, -0.1886908859014511, 0.09637752920389175, 0.03230345621705055, -0.05443603917956352, 0.2265842854976654, 0.27906081080436707, -0.3562263548374176, -0.199502632021904, -0.07672342658042908, -0.0645361989736557, -0.11057397723197937, 0.009363453835248947, -0.004445865284651518, 0.0796472355723381, 0.2570387125015259, -0.1833248883485794, -0.15097258985042572, -0.023652970790863037, 0.44840818643569946, 0.22387179732322693, 0.24059569835662842, -0.5096659660339355, 0.274063378572464, -0.37806886434555054, 0.18878978490829468, -0.03187233954668045, 0.3348707854747772, -0.1444583237171173, 0.08457489311695099, 0.229559987783432, 0.013382506556808949, 0.4435731768608093, -0.07757160067558289, 0.3544704020023346, 0.07104334235191345, -0.12260106205940247, -0.2085142582654953, -0.10542044788599014, -0.04352695494890213, 0.07709633558988571, 0.19538189470767975, 0.5760692358016968, -0.2933999300003052, -0.166415274143219, 0.2404119223356247, 0.12981560826301575, 0.03648769482970238, 0.03774048760533333, -0.22540490329265594, -0.6075828075408936, -0.15736964344978333, -0.04449263587594032, 0.2579652667045593, -0.02996480092406273, 0.10444387793540955, 0.11273328959941864, -0.1593715399503708, -0.01898021809756756, 0.1871158927679062, 0.15398646891117096, 0.25594544410705566, -0.02474357560276985, 0.21651548147201538, 0.19080592691898346, -0.13831159472465515, 0.2649731934070587, 0.8343396782875061, 0.010611267760396004, -0.34290099143981934, 0.04275021702051163, 0.06391286849975586, 0.005725796800106764, 0.3877793848514557, -0.12119750678539276, -0.08534412086009979, 0.0048180241137743, 0.19616736471652985, -0.02334551513195038, 0.23013733327388763, 0.377505898475647, -0.014942594803869724, -0.49496960639953613, -0.33805227279663086, 0.5363482236862183, 0.13028255105018616, 0.07425239682197571, 0.19043149054050446, 0.13293009996414185, 0.005733664147555828, -0.10689598321914673, -0.0971720740199089, 1.1719797849655151, 0.0562252551317215, 0.24920928478240967, 0.24550120532512665, -0.08527879416942596, 0.25620904564857483, -0.08846048265695572, -0.01679975911974907, -0.10136870294809341, -0.4164634943008423, -0.14298222959041595, -0.11638595163822174, 0.14113937318325043, -0.09018300473690033, 0.0010765335755422711, 0.13745993375778198, -0.1716613620519638, 0.17395968735218048, 0.11532203108072281, 0.16875867545604706, -0.24119773507118225, -0.06120413914322853, -0.47335901856422424, 0.14261019229888916, -0.006975008640438318, 0.38214409351348877, -0.20109684765338898, -0.2299177050590515, -0.20837511122226715, -0.11662186682224274, -0.06601250916719437, 0.2327330857515335, 0.10835446417331696, -0.012380708009004593, -0.06929071992635727, -0.5590739846229553, 0.08887512981891632, 0.07135230302810669, 0.006064070388674736, 0.17972350120544434, -0.3232237696647644, 0.3109993040561676, -0.06928440928459167, -0.20359967648983002, 0.12903085350990295, -0.13624492287635803, -0.11403129994869232, -0.03521163389086723, -0.12585672736167908, 0.0929848924279213, -0.1436610370874405, -0.13943155109882355, -0.3856867849826813, 0.2510840892791748, -0.2772895395755768, -0.22686134278774261, -0.16449768841266632, -0.18353722989559174, 0.3595432639122009, -0.25304079055786133, 0.10408756881952286, 0.14854532480239868, 0.10786601901054382, -0.26418009400367737, 0.15316343307495117, -0.29874733090400696, -0.15215721726417542, 0.5257740616798401, -0.19889916479587555, 0.03345445543527603, 0.17151011526584625, 0.01307627372443676, 0.020417356863617897, -0.13792917132377625, 0.14128237962722778, 0.06168470159173012, -0.6248801350593567, 0.11882979422807693, -0.24300050735473633, 0.022716518491506577, -0.22952228784561157, 0.3468092978000641, 0.3823341131210327, -0.26651397347450256, 0.286668062210083, -0.537833034992218, -0.07704335451126099, 0.12761437892913818, 0.08791057020425797, 0.09761768579483032, 0.09595989435911179, 0.12194181978702545, 0.10616622120141983, -0.15980830788612366, -0.31321728229522705, 0.17005854845046997, -0.12199535965919495, -0.18988239765167236, 0.34546178579330444, 0.04323776438832283, 0.37520450353622437, -0.01610121689736843, 0.14678120613098145, 0.053330305963754654, -0.29338985681533813, -0.13978677988052368, -0.05047062411904335, 0.1410353034734726, 0.052102793008089066, -0.247104674577713, 0.05494171753525734, -0.16843819618225098, -0.16050311923027039, 0.013202006928622723, 0.03670172393321991, 0.23606427013874054, 0.11743621528148651, -0.14499016106128693, -0.16024382412433624, 0.19506794214248657, -0.24500784277915955, 0.3418941795825958, 0.22476376593112946, 0.034052662551403046, -0.10053032636642456, 0.17875638604164124, -0.12208466231822968, 0.018327848985791206, -0.2611815631389618, -0.08566181361675262, 0.0776030644774437, 0.39093196392059326, 0.33763402700424194, -0.1346834897994995, 0.2393319308757782, 0.3750911056995392, 0.26699504256248474, 0.3125610053539276, -0.26610463857650757, 0.1791471540927887, 0.15097975730895996, 0.20225094258785248, -0.32515862584114075, -0.18439917266368866, 0.2895824611186981, 0.28453704714775085, 0.007927835918962955, 0.2907941937446594, 0.2425779551267624, 0.14553186297416687, 0.010320172645151615, 0.1336502730846405, 0.8089542388916016, 0.27936092019081116, 0.3672979176044464, 0.5459704399108887, -0.1114080399274826, -0.023929279297590256, 0.41426604986190796, 0.2047235667705536, 0.18806061148643494, 0.4659930169582367, -0.19042164087295532, 0.3810591995716095, 0.0038549937307834625, 0.17149464786052704, -0.13262832164764404, -0.32778027653694153, 0.00016648780729155988, 0.02143634855747223, 0.139954075217247, 0.038478367030620575, -0.015021733939647675, 0.13346107304096222, -0.4537133574485779, -0.05773913860321045, -0.26502805948257446, 0.2728068232536316, -0.15445314347743988, 0.10550076514482498, 0.07804729789495468, -0.3082309365272522, -0.04167166352272034, 0.029684992507100105, -0.08328704535961151, -0.1457923948764801, 0.21159562468528748, 0.03862790763378143, -0.13418881595134735, -0.20178614556789398, -0.11250462383031845, 0.3462387025356293, 0.08701958507299423, -0.19626805186271667, 0.4236854314804077, 0.27180469036102295, -0.1568724364042282, 0.04980938881635666, 0.3523476719856262, 0.46505045890808105, 0.055938515812158585, 0.2656494081020355, 0.06472127139568329, 0.06830352544784546, -0.10310560464859009, -0.08045750111341476, 0.2312496453523636, 0.03518423065543175, 0.43707194924354553, 0.23584040999412537, 0.23888924717903137, -0.23836147785186768, 0.24023495614528656, -0.20121091604232788, 0.01603671908378601, -0.4459690749645233, -0.004108836408704519, -0.3592950999736786, -0.19207629561424255, -0.24634148180484772, -0.18671387434005737, -0.16153733432292938, 0.10502645373344421, 0.1937415599822998, 0.05228947103023529, 0.07899467647075653, -0.3036749064922333, 0.06306087225675583, -0.005830651149153709, 0.217962384223938, 0.4620445668697357, -0.08861713111400604, -0.08662585914134979, -0.17590124905109406, -0.889962911605835, 0.2022523581981659, -0.17494061589241028, -0.3776009976863861, 0.10363349318504333, -0.2651177644729614, -0.052190881222486496, 0.1655716449022293, 0.221315398812294, 0.2603111267089844, 0.1472957879304886, 0.12785859405994415, -0.23244062066078186, -0.0836084634065628, 0.1863345205783844, 0.1379171907901764, 0.12723968923091888, -0.15802082419395447, 0.15139932930469513, 0.07856926321983337, 0.019998246803879738, -0.0584162101149559, -0.06052834540605545, -0.17887689173221588, -0.3329242765903473, 0.6669125556945801, 0.034896839410066605, 0.18830937147140503, -0.11016979813575745, -0.20086655020713806, -0.3298521041870117, -0.1550644040107727, -0.178497314453125, 0.22533713281154633, 0.13516944646835327, 0.33869674801826477, -0.08277536183595657, -0.031057696789503098, -0.37157705426216125, 0.3031165301799774, 0.02161487750709057, -0.03533794730901718, -0.2809809446334839, 0.06849153339862823, -0.37363776564598083, 0.06309496611356735, 0.24878691136837006, 0.2379322499036789, -0.06996177136898041, 0.05898166447877884, -0.18784700334072113, -0.46837252378463745, 0.5749183893203735, -0.12802179157733917, -0.2461773306131363, 0.07783877104520798, 0.17045581340789795, -0.00424580741673708, -0.2991142272949219, -0.08877377957105637, 0.23854078352451324, 0.31785693764686584, -0.03178847208619118, -0.04752715677022934, 0.17783692479133606, -0.2720620930194855, -0.03164823353290558, 0.10307727754116058, 0.7202531695365906, 0.06735630333423615, -0.22547073662281036, 0.5698351263999939, 0.023549431934952736 ]
https://github.com/huggingface/datasets/issues/2689
cannot save the dataset to disk after rename_column
Hi ! That's because you are trying to overwrite a file that is already open and being used. Indeed `foo/dataset.arrow` is open and used by your `dataset` object. When you do `rename_column`, the resulting dataset reads the data from the same arrow file. In other cases like when using `map` on the other hand, the resulting dataset reads the data from another arrow file that is the result of the map transform. Therefore overwriting a dataset after `rename_column` is not possible, but it is possible after `map`, since `rename_column` doesn't switch to using another arrow file (the actual data stay the same).
## Describe the bug If you use `rename_column` and do no other modification, you will be unable to save the dataset using `save_to_disk` ## Steps to reproduce the bug ```python # Sample code to reproduce the bug In [1]: from datasets import Dataset, load_from_disk In [5]: dataset=Dataset.from_dict({'foo': [0]}) In [7]: dataset.save_to_disk('foo') In [8]: dataset=load_from_disk('foo') In [10]: dataset=dataset.rename_column('foo', 'bar') In [11]: dataset.save_to_disk('foo') --------------------------------------------------------------------------- PermissionError Traceback (most recent call last) <ipython-input-11-a3bc0d4fc339> in <module> ----> 1 dataset.save_to_disk('foo') /mnt/beegfs/projects/meerqat/anaconda3/envs/meerqat/lib/python3.7/site-packages/datasets/arrow_dataset.py in save_to_disk(self, dataset_path , fs) 597 if Path(dataset_path, config.DATASET_ARROW_FILENAME) in cache_files_paths: 598 raise PermissionError( --> 599 f"Tried to overwrite {Path(dataset_path, config.DATASET_ARROW_FILENAME)} but a dataset can't overwrite itself." 600 ) 601 if Path(dataset_path, config.DATASET_INDICES_FILENAME) in cache_files_paths: PermissionError: Tried to overwrite foo/dataset.arrow but a dataset can't overwrite itself. ``` N. B. I created the dataset from dict to enable easy reproduction but the same happens if you load an existing dataset (e.g. starting from `In [8]`) ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.8.0 - Platform: Linux-3.10.0-1160.11.1.el7.x86_64-x86_64-with-centos-7.9.2009-Core - Python version: 3.7.10 - PyArrow version: 3.0.0
102
cannot save the dataset to disk after rename_column ## Describe the bug If you use `rename_column` and do no other modification, you will be unable to save the dataset using `save_to_disk` ## Steps to reproduce the bug ```python # Sample code to reproduce the bug In [1]: from datasets import Dataset, load_from_disk In [5]: dataset=Dataset.from_dict({'foo': [0]}) In [7]: dataset.save_to_disk('foo') In [8]: dataset=load_from_disk('foo') In [10]: dataset=dataset.rename_column('foo', 'bar') In [11]: dataset.save_to_disk('foo') --------------------------------------------------------------------------- PermissionError Traceback (most recent call last) <ipython-input-11-a3bc0d4fc339> in <module> ----> 1 dataset.save_to_disk('foo') /mnt/beegfs/projects/meerqat/anaconda3/envs/meerqat/lib/python3.7/site-packages/datasets/arrow_dataset.py in save_to_disk(self, dataset_path , fs) 597 if Path(dataset_path, config.DATASET_ARROW_FILENAME) in cache_files_paths: 598 raise PermissionError( --> 599 f"Tried to overwrite {Path(dataset_path, config.DATASET_ARROW_FILENAME)} but a dataset can't overwrite itself." 600 ) 601 if Path(dataset_path, config.DATASET_INDICES_FILENAME) in cache_files_paths: PermissionError: Tried to overwrite foo/dataset.arrow but a dataset can't overwrite itself. ``` N. B. I created the dataset from dict to enable easy reproduction but the same happens if you load an existing dataset (e.g. starting from `In [8]`) ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.8.0 - Platform: Linux-3.10.0-1160.11.1.el7.x86_64-x86_64-with-centos-7.9.2009-Core - Python version: 3.7.10 - PyArrow version: 3.0.0 Hi ! That's because you are trying to overwrite a file that is already open and being used. Indeed `foo/dataset.arrow` is open and used by your `dataset` object. When you do `rename_column`, the resulting dataset reads the data from the same arrow file. In other cases like when using `map` on the other hand, the resulting dataset reads the data from another arrow file that is the result of the map transform. Therefore overwriting a dataset after `rename_column` is not possible, but it is possible after `map`, since `rename_column` doesn't switch to using another arrow file (the actual data stay the same).
[ -0.052322302013635635, 0.23420999944210052, -0.02316809445619583, -0.013346617110073566, 0.38935479521751404, 0.27079522609710693, 0.49291568994522095, 0.24630136787891388, 0.021959984675049782, 0.12010964006185532, -0.08146539330482483, 0.4607101380825043, -0.17199520766735077, -0.1512237787246704, -0.013640853576362133, -0.07142209261655807, 0.29882171750068665, -0.10981513559818268, -0.007108531426638365, 0.1580938696861267, -0.42976808547973633, -0.016797242686152458, -0.06327962130308151, 0.05253181979060173, -0.14488725364208221, -0.10601518303155899, -0.019148344174027443, 0.06997901946306229, -0.010761862620711327, -0.24626877903938293, 0.09017995744943619, -0.055513426661491394, 0.1750023514032364, 0.39352813363075256, -0.00011046956205973402, -0.1174478828907013, 0.016952602192759514, -0.0254377294331789, -0.3840671181678772, -0.16772623360157013, -0.2794015109539032, -0.22320809960365295, -0.15346531569957733, -0.535763680934906, 0.27652183175086975, -0.0022125449031591415, -0.12286103516817093, -0.31250709295272827, 0.1796945482492447, 0.26320549845695496, 0.29409313201904297, 0.10835691541433334, 0.2733331322669983, -0.16357368230819702, 0.0736200138926506, 0.09863253682851791, -0.37880825996398926, 0.2685391306877136, -0.2693726718425751, -0.09110845625400543, 0.12269975244998932, 0.29151585698127747, -0.10827915370464325, -0.06901032477617264, 0.10180792957544327, 0.04682425409555435, 0.11524022370576859, -0.24159979820251465, 0.2724039852619171, -0.10150006413459778, 0.4159987270832062, -0.5450064539909363, -0.4493025839328766, -0.0069588604383170605, 0.23864302039146423, -0.35153189301490784, 0.24363106489181519, 0.11555103957653046, 0.02460312657058239, 0.1335383653640747, 0.0393226221203804, -0.26816317439079285, -0.19276586174964905, 0.00601628003641963, 0.03004063107073307, -0.20125414431095123, -0.17309007048606873, 0.18610522150993347, 0.025239573791623116, -0.1277828961610794, 0.3110418915748596, -0.06184247508645058, -0.05581799894571304, 0.06762122362852097, -0.42822572588920593, -0.04414237290620804, -0.07651405781507492, -0.10827329754829407, -0.1432771533727646, 0.23413529992103577, -0.06290321797132492, -0.14092376828193665, 0.21533192694187164, 0.27297720313072205, -0.03868003189563751, 0.22389402985572815, -0.0026315762661397457, 0.46848684549331665, 0.3518580198287964, 0.11973395943641663, 0.0032544161658734083, -0.10482137650251389, 0.07833755761384964, 0.04824800416827202, 0.6009221076965332, -0.04789748415350914, 0.4625109136104584, -0.060351938009262085, -0.3091150224208832, 0.37896448373794556, 0.10445962101221085, -0.034299034625291824, 0.0012848575133830309, 0.24470284581184387, 0.15515603125095367, 0.03566506505012512, 0.09884082525968552, 0.33003824949264526, 0.1512356847524643, 0.16735650599002838, -0.18452885746955872, -0.023599613457918167, -0.07707714289426804, 0.1205221638083458, 0.19227288663387299, 0.2134322226047516, 0.06039460375905037, 0.14188995957374573, -0.1296938955783844, -0.08187054097652435, 0.06382227689027786, -0.197636678814888, 0.031639162451028824, 0.32309460639953613, 0.08128751814365387, 0.2417822629213333, 0.13322332501411438, -0.2870064675807953, 0.047301240265369415, 0.21957337856292725, -0.12574321031570435, -0.1329018473625183, -0.44670602679252625, 0.2365870475769043, 0.1273118257522583, 0.14149080216884613, -0.442140132188797, -0.2893773317337036, 0.43439748883247375, -0.0966237485408783, 0.23201219737529755, -0.018289297819137573, 0.08114863932132721, -0.40903493762016296, 0.05210878700017929, 0.2215990424156189, -0.10674513876438141, 0.22335407137870789, -0.3136858344078064, 0.11130326241254807, 0.12216892093420029, 0.15857647359371185, 0.07593576610088348, -0.07611896097660065, -0.13437040150165558, 0.03812716156244278, 0.45853736996650696, -0.3772490620613098, -0.4912679195404053, -0.19106422364711761, -0.15872007608413696, -0.027711857110261917, 0.03773189336061478, 0.05757741630077362, 0.2001122534275055, -0.1936412900686264, -0.03504473716020584, 0.153703972697258, 0.15324531495571136, 0.03865990787744522, -0.2126651257276535, -0.014591697603464127, -0.015180394984781742, -0.10222217440605164, -0.0853901207447052, 0.1332869678735733, 0.1747179627418518, -0.007196865510195494, 0.15260009467601776, -0.08989602327346802, 0.24904708564281464, 0.29588747024536133, 0.4298883080482483, 0.038502007722854614, -0.016620377078652382, -0.27652284502983093, -0.601997971534729, 0.10725527256727219, 0.2519674599170685, -0.29311779141426086, -0.32418230175971985, -0.07735911011695862, -0.2935066521167755, 0.014902538619935513, -0.22054459154605865, 0.009118571877479553, 0.1636466383934021, 0.2512083351612091, 0.014189792796969414, -0.020097095519304276, -0.2452319860458374, 0.2676566541194916, -0.31953492760658264, 0.19486793875694275, -0.2083372175693512, 0.20121029019355774, -0.22178015112876892, -0.29692524671554565, -0.18047042191028595, 0.14209945499897003, 0.2723117768764496, 0.09250115603208542, -0.2997990846633911, 0.4652598202228546, 0.005930548999458551, 0.06988215446472168, -0.12980370223522186, -0.03260720893740654, -0.13896946609020233, -0.1473558396100998, 0.07759842276573181, -0.004706529900431633, 0.24196329712867737, 0.06903336942195892, -0.36229556798934937, 0.09007462114095688, -0.06376996636390686, 0.22058264911174774, 0.030166039243340492, 0.11507818847894669, 0.1708155870437622, -0.11709460616111755, -0.006445412058383226, -0.29513245820999146, 0.009042157791554928, 0.06645560264587402, 0.21988728642463684, -0.29322153329849243, -0.12163960188627243, 0.05609310045838356, 0.4650207757949829, 0.0648769810795784, 0.17609956860542297, 0.18614289164543152, -0.09013800323009491, 0.019898468628525734, -0.01218391302973032, 0.614377498626709, 0.38143593072891235, 0.009005207568407059, -0.05812644585967064, -0.029316846281290054, -0.1447795033454895, -0.053123511373996735, 0.19782450795173645, 0.010228034108877182, 0.1976768672466278, 0.13353674113750458, 0.3363484740257263, 0.020911050960421562, -0.14989134669303894, -0.11658500880002975, 0.17405962944030762, 0.37044912576675415, -0.35431841015815735, 0.026349635794758797, -0.13029319047927856, 0.14597158133983612, 0.005736910738050938, -0.270025372505188, -0.13905936479568481, -0.3707580864429474, -0.3373611271381378, 0.6752122044563293, 0.006346486508846283, 0.08448728173971176, -0.11346196383237839, -0.12328080087900162, 0.02668432518839836, 0.12290142476558685, -0.3791601061820984, -0.04389586299657822, 0.055286843329668045, 0.04477429389953613, 0.0763220563530922, -0.22862975299358368, 0.5205156207084656, -0.03972931206226349, 0.05128663405776024, -0.5295775532722473, -0.15215574204921722, -0.2153197079896927, -0.12796947360038757, 0.3062783181667328, 0.11742070317268372, 0.31389737129211426, -0.14502307772636414, -0.27568498253822327, 0.24031206965446472, 0.11215639859437943, -0.10989577323198318, 0.17848706245422363, 0.15341128408908844, -0.03027682937681675, -0.048984162509441376, -0.14329269528388977, -0.28089383244514465, -0.3785194456577301, 0.324831485748291, -0.0642382875084877, 0.12482545524835587, 0.09864402562379837, -0.17988549172878265, 0.1114000752568245, 0.08958275616168976, 0.08789342641830444, -0.2645496129989624, -0.19452165067195892, 0.43659642338752747, -0.23899976909160614, -0.22034552693367004, 0.0330364927649498, 0.15416908264160156, 0.1376349925994873, -0.016512880101799965, -0.2484486699104309, -0.06537386775016785, -0.24813157320022583, 0.47190961241722107, -0.30349674820899963, 0.13039979338645935, 0.29348909854888916, 0.30407294631004333, -0.03279878571629524, -0.0750492587685585, -0.29424500465393066, -0.06985905766487122, 0.29080015420913696, 0.2731863260269165, -0.10388454049825668, 0.44812726974487305, -0.10904040932655334, 0.25520387291908264, 0.10940869897603989, 0.17020778357982635, 0.3902415633201599, 0.017050275579094887, 0.1714867204427719, -0.2735755145549774, -0.5204057097434998, -0.009663118049502373, -0.2813248634338379, -0.057693470269441605, -0.22827351093292236, -0.10181629657745361, 0.0015256466576829553, 0.01202615536749363, 0.029493093490600586, -0.14310787618160248, -0.2657017111778259, -0.09985943883657455, -0.21312516927719116, 0.2652603089809418, 0.049981292337179184, 0.07229895889759064, -0.2405618578195572, -0.0992756336927414, 0.0027418399695307016, 0.3389507234096527, 0.14102210104465485, -0.0870123952627182, -0.3747831881046295, -0.029064537957310677, -0.41433021426200867, 0.21668769419193268, -0.08478822559118271, 0.521546483039856, 0.05126051604747772, -0.08714748919010162, 0.09380907565355301, -0.011224268935620785, 0.5587120056152344, -0.12910404801368713, -0.007969561964273453, 0.2835010588169098, 0.33712440729141235, -0.4498388469219208, -0.07150791585445404, 0.059511516243219376, 0.2570037543773651, -0.07824809849262238, 0.5526584386825562, -0.08925537019968033, 0.026510227471590042, 0.1315527856349945, 0.27332526445388794, -0.20385046303272247, -0.09626603871583939, -0.24847158789634705, -0.23620100319385529, -0.42784202098846436, 0.016236767172813416, -0.0969550609588623, 0.05537738278508186, -0.020521141588687897, 0.18086038529872894, -0.2027260661125183, -0.25003284215927124, -0.13714903593063354, 0.10488218069076538, 0.3459596335887909, -0.10310883820056915, 0.2991207242012024, -0.026797449216246605, 0.049243662506341934, 0.17333994805812836, 0.23782230913639069, -0.3225925862789154, -0.30998674035072327, 0.1373324692249298, -0.09731228649616241, 0.24580615758895874, -0.03127707168459892, -0.10003310441970825, 0.16952793300151825, -0.14430266618728638, 0.07953350245952606, -0.1888791024684906, -0.1126142293214798, 0.15327435731887817, -0.0480419285595417, -0.2947732210159302, -0.2696516215801239, 0.559893786907196, 0.1521381288766861, -0.02565186657011509, 0.37246277928352356, 0.39680245518684387, -0.22680841386318207, 0.2994341552257538, -0.024930937215685844, 0.844189465045929, 0.06682731211185455, 0.13037797808647156, 0.14751861989498138, -0.46045243740081787, 0.18100452423095703, 0.14924828708171844, 0.11740437895059586, -0.4521840810775757, -0.12117273360490799, 0.060822993516922, -0.0766049325466156, 0.2374439388513565, -0.09636460244655609, -0.2902871072292328, 0.19609695672988892, -0.40510445833206177, 0.10262839496135712, 0.022263413295149803, -0.04237421974539757, -0.4003831744194031, -0.3322466313838959, -0.06421729922294617, 0.20727111399173737, -0.09535877406597137, -0.032914742827415466, 0.0967206284403801, 0.17447151243686676, -0.16753855347633362, -0.0488155223429203, -0.22891508042812347, 0.0024294122122228146, -0.03307852894067764, 0.368421345949173, -0.3195159137248993, -0.5360776782035828, 0.08699905127286911, 0.04261317849159241, 0.35378628969192505, 0.17561663687229156, -0.14519013464450836, 0.04265031963586807, 0.19010202586650848, 0.30622631311416626, 0.0830528736114502, -0.06590045243501663, 0.23517058789730072, 0.02195945754647255, -0.11835820227861404, -0.04416586086153984, -0.040979914367198944, -0.30008766055107117, -0.15200184285640717, 0.12036719173192978, 0.39286428689956665, -0.3056316077709198, -0.18394002318382263, -0.13246242702007294, -0.131596639752388, -0.5064848065376282, 0.20508915185928345, -0.06190071627497673, -0.05684341862797737, 0.4300701320171356, -0.4037238657474518, -0.1584983915090561, 0.026249831542372704, 0.5301280617713928, -0.04586692154407501, 0.25938892364501953, 0.4973756670951843, -0.19791767001152039, -0.1586865484714508, -0.19093231856822968, 0.2471814751625061, -0.09295877069234848, -0.3724486529827118, 0.2927720248699188, -0.10329339653253555, 0.1613488644361496, -0.1380387544631958, -0.1858428567647934, -0.03418102487921715, -0.07350428402423859, -0.07384174317121506, -0.43740469217300415, -0.5035828948020935, -0.04592244327068329, 0.2080613374710083, 0.12268751859664917, 0.018689261749386787, -0.07171984761953354, -0.24176141619682312, -0.11532458662986755, -0.33875641226768494, 0.033313293009996414, -0.20505636930465698, 0.22012285888195038, 0.3785301148891449, -0.06232856586575508, 0.04902586713433266, -0.3151644170284271, 0.2734013795852661, 0.2116336077451706, 0.1734604835510254, -0.2822255790233612, -0.2961637079715729, 0.061923880130052567, 0.0030183831695467234, -0.1757010817527771, -0.1491791307926178, -0.416815847158432, -0.027631739154458046, -0.08999408036470413, -0.19160200655460358, 0.34275245666503906, 0.09356144070625305, 0.15352243185043335, -0.11126390844583511, 0.16433236002922058, 0.1769542545080185, 0.050929274410009384, -0.1345408409833908, -0.09258128702640533, -0.18505015969276428, 0.35653597116470337, -0.029032384976744652, 0.029155980795621872, -0.6280359625816345, -0.153225839138031, -0.16588230431079865, 0.07374384254217148, 0.25431379675865173, -0.19663473963737488, -0.1322878748178482, 0.05639734864234924, 0.27294450998306274, 0.3071058988571167, -0.23027247190475464, -0.33565881848335266, 0.32397541403770447, 0.23711958527565002, -0.19027860462665558, -0.10960499197244644, 0.08421655744314194, -0.2513613700866699, -0.04195579141378403, 0.04262004420161247, -0.12560519576072693, -0.07689431309700012, -0.44281134009361267, 0.040111348032951355, 0.3885580599308014, -0.43394479155540466, 0.16909687221050262, 0.6197509765625, 0.0043323407880961895, 0.177335724234581, 0.38907498121261597, 0.11327752470970154, 0.013830214738845825, 0.6791511178016663, 0.026543771848082542, 0.3208674490451813, 0.3201982080936432, -0.11896365135908127, 0.09293339401483536, -0.09435436129570007, 0.07580303400754929, -0.2698487639427185, -0.28568971157073975, 0.23217827081680298, 0.08914428949356079, -0.00666085397824645, -0.331300288438797, -0.05999433621764183, 0.0065475162118673325, 0.316671222448349, -0.24911099672317505, -0.07740170508623123, -0.05085308477282524, -0.05630955472588539, 0.19673676788806915, -0.055378906428813934, -0.251625657081604, -0.10578589141368866, 0.4781980812549591, 0.16164210438728333, 0.048096779733896255, -0.2193867266178131, -0.055082377046346664, 0.21410894393920898, 0.2809605896472931, -0.2896918058395386, 0.0601714663207531, 0.2971106469631195, -0.1570807248353958, -0.23465827107429504, 0.15637527406215668, 0.39245930314064026, 0.15102912485599518, 0.1292322427034378, 0.14918728172779083, 0.04692082107067108, -0.21550855040550232, 0.1399225890636444, 0.19678154587745667, -0.05727839097380638, 0.0629955530166626, 0.17104633152484894, 0.19727957248687744, -0.18511821329593658, 0.07999155670404434, 0.180964857339859, 0.2702733278274536, -0.09439709037542343, 0.49316754937171936, -0.1464277058839798, -0.46553707122802734, 0.0049099852330982685, 0.08173518627882004, -0.04880328103899956, -0.011434266343712807, 0.4544946253299713, 0.03912373632192612, 0.07215234637260437, -0.1666640043258667, 0.11946053802967072, 0.10832450538873672, 0.3438276946544647, 0.37300875782966614, -0.44714221358299255, -0.3782069981098175, -0.08310174942016602, -0.42748233675956726, -0.05151684582233429, -0.010502263903617859, -0.07574962824583054, -0.049840331077575684, -0.01589767076075077, -0.07845502346754074, -0.0717109888792038, 0.2825300097465515, -0.07656790316104889, 0.03177272900938988, 0.49282729625701904, -0.1742972731590271, -0.07816844433546066, 0.22102676331996918, 0.054072242230176926, 0.08433555066585541, -0.43845558166503906, 0.38795211911201477, 0.34640681743621826, 0.124876469373703, -0.2808244526386261, 0.09618967771530151, 0.20243583619594574, 0.192801833152771, 0.48049449920654297, 0.06636115908622742, 0.02734988182783127, -0.0669156163930893, -0.33719274401664734, -0.015191694721579552, -0.047307781875133514, -0.09021013975143433, 0.0753806009888649, 0.09147418290376663, 0.4226680099964142, 0.023997198790311813, -0.1941937357187271, -0.33096975088119507, 0.21396462619304657, -0.24417364597320557, 0.14770059287548065, -0.2238081991672516, 0.11571960151195526, 0.25666147470474243, 0.07305672764778137, 0.08291281014680862, 0.055912699550390244, -0.02650504931807518, 0.664306104183197, -0.44868531823158264, -0.44179567694664, 0.5646384954452515, -0.05267436429858208, -0.5221439599990845, 0.05836537852883339, 0.41575387120246887, -0.10478945821523666, -0.07682809233665466, -0.4792670011520386, -0.1339038461446762, 0.3335668742656708, -0.13860058784484863, -0.2472851276397705, 0.3773888349533081, -0.15689225494861603, 0.21295200288295746, 0.08694171905517578, 0.7443239688873291, -0.0196806862950325, -0.21628545224666595, 0.21120873093605042, -0.0952281579375267 ]
https://github.com/huggingface/datasets/issues/2688
hebrew language codes he and iw should be treated as aliases
Hi @eyaler, thanks for reporting. While you are true with respect the Hebrew language tag ("iw" is deprecated and "he" is the preferred value), in the "mc4" dataset (which is a derived dataset) we have kept the language tags present in the original dataset: [Google C4](https://www.tensorflow.org/datasets/catalog/c4).
https://huggingface.co/datasets/mc4 not listed when searching for hebrew datasets (he) as it uses the older language code iw, preventing discoverability.
46
hebrew language codes he and iw should be treated as aliases https://huggingface.co/datasets/mc4 not listed when searching for hebrew datasets (he) as it uses the older language code iw, preventing discoverability. Hi @eyaler, thanks for reporting. While you are true with respect the Hebrew language tag ("iw" is deprecated and "he" is the preferred value), in the "mc4" dataset (which is a derived dataset) we have kept the language tags present in the original dataset: [Google C4](https://www.tensorflow.org/datasets/catalog/c4).
[ -0.18478304147720337, -0.022223131731152534, -0.1543208658695221, 0.032920461148023605, 0.028286127373576164, 0.07203496992588043, 0.5509451627731323, 0.3117235004901886, 0.05221710354089737, 0.10430450737476349, -0.3407956063747406, -0.26254159212112427, 0.01781395822763443, 0.009818593971431255, 0.17780651152133942, 0.1035923883318901, 0.0763271376490593, 0.002808347577229142, 0.030702300369739532, -0.25993484258651733, -0.24830225110054016, 0.16670933365821838, 0.03564247488975525, 0.23090264201164246, -0.3309551477432251, 0.0747673287987709, 0.23508019745349884, -0.0006579244509339333, 0.09454406052827835, -0.2600383162498474, -0.05056383088231087, -0.02181507833302021, -0.11512000858783722, 0.49082162976264954, -0.00010460457997396588, 0.20014487206935883, 0.37202346324920654, -0.14612600207328796, -0.2577265799045563, -0.40239277482032776, 0.04965829849243164, -0.06524974852800369, -0.34109461307525635, -0.19799093902111053, -0.3883952498435974, -0.20930041372776031, -0.08249081671237946, -0.425860196352005, -0.023914838209748268, 0.21440844237804413, 0.2111898809671402, 0.4698428511619568, -0.1391436606645584, 0.1068379282951355, -0.019965223968029022, -0.21264246106147766, -0.07850344479084015, 0.21423238515853882, 0.053580015897750854, 0.5240813493728638, 0.2998707592487335, 0.5605419278144836, 0.21119873225688934, -0.07978470623493195, -0.12257998436689377, 0.24120643734931946, -0.11610504239797592, -0.15451988577842712, 0.23094181716442108, 0.29403722286224365, 0.364036500453949, -0.32317063212394714, -0.10783065855503082, 0.09247153997421265, -0.05159365385770798, -0.20963403582572937, 0.48786792159080505, 0.13223972916603088, -0.08334217220544815, 0.2722434997558594, -0.01627410389482975, -0.2900923192501068, 0.025776773691177368, 0.2554771304130554, -0.2394372969865799, 0.5161864757537842, 0.10047510266304016, 0.04791770875453949, 0.10231991857290268, -0.20736707746982574, 0.24903099238872528, -0.22820498049259186, 0.15345066785812378, 0.09446228295564651, 0.09368517249822617, -0.26201486587524414, -0.21627730131149292, 0.01450267992913723, -0.34061309695243835, -0.31544727087020874, 0.07597323507070541, 0.25950828194618225, -0.18257127702236176, 0.04205651208758354, -0.31054601073265076, 0.05594369396567345, 0.43051859736442566, -0.2673490643501282, 0.4529973864555359, -0.23089919984340668, 0.0026233552489429712, -0.14282676577568054, -0.03791588172316551, -0.060126762837171555, -0.31481197476387024, -0.14796054363250732, -0.005595159716904163, 0.2982429563999176, 0.022936010733246803, -0.04914616420865059, -0.4983115494251251, -0.5706433057785034, -0.030425777658820152, 0.3789433538913727, 0.16166767477989197, -0.3083960711956024, -0.1461152732372284, -0.03962905704975128, -0.32005754113197327, -0.5419687032699585, -0.20431149005889893, 0.10960720479488373, -0.14667828381061554, -0.08252512663602829, 0.08077923953533173, -0.18208545446395874, 0.3079836368560791, -0.09467605501413345, 0.03141999989748001, 0.16003915667533875, -0.2420833557844162, 0.001839637290686369, 0.30782556533813477, 0.06600042432546616, -0.1263972371816635, 0.08215151727199554, -0.07062830030918121, -0.22004985809326172, -0.1961159110069275, 0.1325775682926178, -0.3130846321582794, 0.11749552190303802, 0.24772101640701294, 0.20299383997917175, -0.1501319855451584, -0.004773939959704876, 0.06287053227424622, 0.285540372133255, -0.014290276914834976, 0.06296911835670471, 0.3462485671043396, -0.05151471123099327, 0.0772697702050209, -0.10474402457475662, -0.10492241382598877, 0.27858465909957886, -0.48335498571395874, -0.4456770122051239, 0.11262211203575134, -0.03399719297885895, -0.08104994893074036, 0.5016031265258789, -0.29188114404678345, 0.17239701747894287, -0.174690842628479, 0.3707314133644104, 0.29215535521507263, -0.3053904175758362, -0.31079721450805664, -0.04591520130634308, 0.04421049728989601, -0.05801532417535782, -0.16853231191635132, -0.15296976268291473, 0.04981764405965805, -0.14014367759227753, 0.07990255206823349, -0.06562868505716324, 0.20237573981285095, -0.178492933511734, -0.05079516023397446, 0.037785135209560394, 0.39847493171691895, -0.01275078859180212, 0.10605378448963165, -0.021922331303358078, 0.1121249571442604, -0.009025108069181442, 0.25457268953323364, -0.1508142352104187, 0.21935853362083435, 0.061495259404182434, 0.04006365314126015, 0.10596704483032227, 0.1841665655374527, -0.010976684279739857, -0.19527962803840637, 0.07958699017763138, -0.12081993371248245, 0.2615237534046173, -0.0632152110338211, 0.0669061467051506, 0.07041189074516296, -0.13752329349517822, -0.14282260835170746, -0.1268766075372696, 0.23770803213119507, 0.035947203636169434, -0.12610222399234772, 0.2591710686683655, -0.2723134160041809, 0.09403203427791595, -0.3269434869289398, 0.02854478359222412, -0.15535934269428253, 0.16287077963352203, -0.12213686853647232, 0.03931816667318344, -0.2129368782043457, 0.3802620470523834, 0.12436658889055252, -0.467166930437088, -0.09332111477851868, 0.08448184281587601, -0.26206955313682556, 0.16562926769256592, 0.1111801341176033, 0.5108317732810974, 0.5489289164543152, -0.36589762568473816, 0.31552085280418396, 0.18581096827983856, -0.0510408841073513, -0.10899186134338379, 0.23493410646915436, 0.23083509504795074, 0.3495798707008362, 0.11669985949993134, 0.12177406996488571, -0.22671395540237427, 0.42708584666252136, 0.03584303706884384, -0.14118444919586182, -0.3088141083717346, -0.09274579584598541, 0.11466596275568008, 0.589135468006134, 0.25243228673934937, -0.19192583858966827, 0.08646859973669052, 1.0686198472976685, -0.21396930515766144, -0.07196719944477081, 0.09561686217784882, -0.2867286503314972, 0.10481289029121399, 0.034709103405475616, -0.11564161628484726, 0.05913441628217697, 0.13227418065071106, 0.298117995262146, 0.18102434277534485, 0.1942361742258072, -0.2748287320137024, 0.3244132697582245, 0.20572349429130554, 0.002911275951191783, -0.0032606825698167086, 0.0801435336470604, -0.1853950023651123, -0.4277556836605072, 0.15693774819374084, 0.05829283222556114, -0.1904049515724182, -0.2271965742111206, 0.2576306164264679, -0.4687187373638153, -0.10345291346311569, -0.36311718821525574, -0.42768242955207825, -0.5842375159263611, -0.07407685369253159, 0.06891623139381409, -0.23834949731826782, -0.010095136240124702, 0.2999589443206787, 0.3809860646724701, 0.16389484703540802, -0.3429347276687622, 0.05578664690256119, -0.27327749133110046, -0.18711116909980774, -0.286294162273407, 0.14061881601810455, 0.11635426431894302, -0.30613771080970764, 0.27843090891838074, -0.3796428442001343, -0.27487674355506897, -0.18655720353126526, -0.445560097694397, 0.41348567605018616, -0.16880932450294495, -0.11801834404468536, -0.1187334954738617, -0.027259299531579018, -0.04759608581662178, -0.0813058614730835, -0.0034813624806702137, -0.2797718048095703, -0.29552364349365234, -0.2735096216201782, -0.054481230676174164, 0.0387495756149292, -0.08339842408895493, -0.5276792645454407, -0.6048950552940369, -0.047169409692287445, 0.008123635314404964, -0.1959531158208847, -0.02769872359931469, 0.12416402995586395, -0.237765371799469, -0.15583433210849762, 0.29111963510513306, -0.20685800909996033, -0.3472431004047394, -0.09257452189922333, 0.20368072390556335, -0.43443563580513, -0.09207870066165924, 0.1560341864824295, 0.021818429231643677, 0.47030335664749146, 0.07393480092287064, -0.024965139105916023, 0.38927990198135376, 0.02562057413160801, 0.2439543604850769, 0.29537203907966614, -0.05416838824748993, 0.2268238067626953, 0.005541359074413776, -0.10261223465204239, -0.334684282541275, 0.03450987860560417, 0.2723381817340851, 0.056068480014801025, 0.3472974896430969, 0.45921751856803894, 0.11060889810323715, 0.10231507569551468, 0.4332115054130554, 0.13357456028461456, -0.33732250332832336, 0.3171921670436859, 0.1943790316581726, 0.3283286392688751, -0.22449256479740143, -0.04350663349032402, 0.15241344273090363, 0.08910548686981201, 0.24029487371444702, 0.30731937289237976, -0.058277565985918045, -0.1126120388507843, -0.015106876380741596, -0.06891518831253052, -0.4128377139568329, -0.19738295674324036, 0.08300121873617172, 0.16851958632469177, 0.3129771053791046, 0.4733056128025055, 0.06576777994632721, -0.10823703557252884, -0.1908295601606369, 0.3424506187438965, 0.1806497722864151, -0.1493627279996872, 0.1426171064376831, -0.39244356751441956, -0.28267255425453186, -0.5756280422210693, 0.11832524836063385, 0.12055763602256775, 0.2156471312046051, -0.024203190580010414, 0.06320948898792267, 0.12141436338424683, 0.12166006863117218, 0.43903082609176636, -0.33549001812934875, -0.05786995217204094, 0.10016249865293503, -0.04777715355157852, 0.1152476966381073, -0.08922549337148666, -0.4080403447151184, 0.10724636912345886, 0.5992037057876587, 0.25950053334236145, -0.3122330904006958, -0.32054367661476135, -0.004612751305103302, -0.12596136331558228, -0.24762068688869476, -0.27671945095062256, -0.05706813931465149, -0.13513392210006714, -0.13763193786144257, -0.32384124398231506, 0.1389373391866684, -0.10936958342790604, -0.13884663581848145, 0.10050392150878906, 0.37567099928855896, -0.17481933534145355, 0.26265475153923035, 0.17233037948608398, 0.16976618766784668, 0.30300554633140564, -0.24155889451503754, 0.428800106048584, 0.35479938983917236, 0.48209014534950256, 0.3926686644554138, -0.10906466841697693, -0.37893161177635193, -0.08148806542158127, -0.26883596181869507, 0.24206103384494781, 0.4999493956565857, 0.13798750936985016, 0.06858544051647186, 0.03407883271574974, -0.12369952350854874, -0.11908938735723495, 0.18127357959747314, 0.24222849309444427, 0.31624943017959595, -0.22685058414936066, -0.41422879695892334, 0.21508702635765076, -0.3416469395160675, -0.008280440233647823, 0.2725929915904999, 0.30269744992256165, -0.3349895477294922, 0.04344010353088379, 0.09653981029987335, 1.0030596256256104, 0.1250053346157074, -0.04328577220439911, 0.14594005048274994, -0.12848205864429474, 0.26521599292755127, -0.4718639850616455, -0.02683292143046856, -0.05502091348171234, 0.3103026747703552, -0.13043855130672455, -0.017136000096797943, -0.0788598582148552, 0.45745334029197693, 0.07109573483467102, 0.3584785461425781, 0.012664654292166233, 0.20631948113441467, 0.24660149216651917, 0.10022976249456406, 0.09536989033222198, -0.19745589792728424, -0.10752043128013611, 0.12766672670841217, -0.0016971268923953176, 0.265764981508255, -0.16747044026851654, -0.2553721070289612, -0.07066243141889572, 0.08189564943313599, 0.055738430470228195, -0.1231258437037468, -0.28675350546836853, 0.3074188530445099, 0.0006251133163459599, -0.27951696515083313, 0.23783910274505615, -0.04106685146689415, 0.8017963171005249, -0.06415312737226486, -0.13517910242080688, 0.34637680649757385, 0.1039816290140152, 0.04795343056321144, -0.15430428087711334, -0.01860036700963974, 0.1850298047065735, -0.14754369854927063, -0.44317206740379333, 0.12059231847524643, 0.0532846637070179, -0.27495795488357544, -0.28681841492652893, -0.0032007810659706593, -0.25136229395866394, 0.25321224331855774, 0.23221828043460846, 0.24170422554016113, -0.08406087011098862, -0.15915589034557343, 0.14645671844482422, -0.3185131549835205, 0.058534421026706696, -0.31144028902053833, 0.29338812828063965, -0.19855588674545288, -0.3302377760410309, 0.08317475020885468, 0.29271697998046875, -0.07695959508419037, 0.3099735677242279, 0.06493965536355972, -0.3664095401763916, -0.12309648841619492, -0.26811593770980835, 0.39064261317253113, -0.11101038008928299, -0.07927621901035309, 0.08778924494981766, -0.09826795011758804, -0.41581910848617554, 0.190622478723526, 0.025018911808729172, 0.11569081246852875, -0.36488622426986694, -0.01802648976445198, -0.016649851575493813, 0.25286558270454407, -0.2255440503358841, -0.08736763149499893, 0.10486599802970886, 0.5610266923904419, -0.06586044281721115, -0.0028840976301580667, -0.34084025025367737, 0.04991668462753296, 0.08088335394859314, 0.016620822250843048, 0.14802178740501404, -0.10962273180484772, 0.2010759860277176, 0.057828228920698166, 0.09891021996736526, 0.03250991180539131, -0.3431237041950226, -0.20320504903793335, -0.18244792520999908, 0.06596804410219193, -0.037118490785360336, -0.020119786262512207, -0.010699184611439705, 0.022533046081662178, 0.20199435949325562, -0.2463759183883667, 0.1390530914068222, 0.14083711802959442, 0.22173857688903809, 0.42212098836898804, 0.3345200717449188, -0.11490631103515625, 0.1129058375954628, -0.055492907762527466, 0.2061091810464859, 0.40340790152549744, 0.15212558209896088, 0.02372690849006176, -0.0052111404947936535, 0.04826081171631813, 0.02131521701812744, 0.19400650262832642, 0.016373801976442337, 0.1617126166820526, 0.20074604451656342, -0.30835965275764465, 0.19749975204467773, 0.039834797382354736, 0.1542033702135086, 0.12450302392244339, -0.35962891578674316, -0.3416134715080261, 0.1954772174358368, 0.2210426926612854, -0.3405463695526123, -0.2511638402938843, 0.23237258195877075, 0.15888212621212006, 0.24423335492610931, 0.24020668864250183, 0.6543264389038086, 0.28603601455688477, 0.19461725652217865, -0.09122799336910248, 0.4273202419281006, -0.4784707725048065, 0.024070248007774353, -0.1936156004667282, 0.014433738775551319, 0.2894086241722107, 0.5641240477561951, 0.006003681570291519, -0.07564792037010193, 0.5502745509147644, 0.09726028889417648, 0.18816176056861877, 0.17056336998939514, 0.20475034415721893, 0.037084903568029404, -0.16479556262493134, -0.13292717933654785, 0.0236488226801157, -0.12424823641777039, 0.3433173596858978, 0.11488770693540573, -0.18670184910297394, 0.27737483382225037, -0.32521384954452515, -0.0014711091062054038, -0.02786547876894474, -0.2706684172153473, -0.055534087121486664, -0.1109914779663086, -0.12493167072534561, -0.03325076028704643, 0.1942172795534134, 0.11142326891422272, -0.04647589102387428, 0.0796877071261406, 0.15886464715003967, -0.1216888353228569, 0.08063343912363052, -0.10100419819355011, -0.29852572083473206, 0.011650108732283115, -0.09982601553201675, 0.25142180919647217, 0.0764719769358635, -0.10488452017307281, 0.09954425692558289, -0.050433918833732605, 0.08873410522937775, -0.17289026081562042, 0.15249381959438324, 0.21567101776599884, -0.23036132752895355, -0.19269025325775146, -0.11220138520002365, 0.05102222040295601, 0.31615152955055237, -0.12403133511543274, 0.0932132676243782, 0.1494016945362091, -0.13092255592346191, -0.16433243453502655, 0.3775981068611145, 0.1715942621231079, -0.19050493836402893, -0.023326348513364792, -0.2705209255218506, -0.030778421089053154, -0.35390958189964294, 0.005744617898017168, -0.41285449266433716, 0.336372435092926, 0.4712306261062622, -0.3097418546676636, -0.002327313181012869, -0.0018185785738751292, 0.11367955058813095, 0.039047613739967346, 0.4614465832710266, -0.071239173412323, -0.04011215642094612, 0.01081447396427393, -0.3932797610759735, -0.31231164932250977, -0.04989055544137955, -0.26664355397224426, 0.7237250208854675, -0.20922711491584778, 0.1534152626991272, 0.4759407937526703, -0.1284080445766449, 0.5029776692390442, 0.029253220185637474, -0.09311684966087341, -0.3235894441604614, -0.34619787335395813, -0.043154243379831314, 0.031019428744912148, 0.3263245224952698, 0.0789153203368187, 0.14037476480007172, 0.10001317411661148, -0.2765099108219147, -0.00007040140189928934, -0.21098692715168, 0.19741854071617126, 0.4074784219264984, -0.04485279694199562, 0.2684653401374817, 0.13919644057750702, 0.4069572687149048, -0.22315245866775513, -0.10189107060432434, 0.12561966478824615, -0.026408294215798378, -0.25765085220336914, 0.47381940484046936, -0.03135618567466736, 0.06708672642707825, -0.13279743492603302, -0.3989468812942505, -0.13157989084720612, 0.4251699447631836, 0.11499294638633728, 0.1058415025472641, -0.2703826427459717, -0.0304853655397892, -0.3385729491710663, 0.015402533113956451, 0.0925450548529625, 0.3840613067150116, 0.008444360457360744, -0.19052532315254211, 0.009177539497613907, -0.20551693439483643, 0.4161730408668518, -0.2887670695781708, -0.18608388304710388, -0.1703764945268631, 0.13274432718753815, 0.11813212186098099, 0.1167871281504631, -0.3195803165435791, -0.047924913465976715, 0.3436788022518158, -0.09135603904724121, -0.35258805751800537, 0.2031984180212021, 0.022765645757317543, -0.0406857393682003, -0.03986602649092674, 0.014053946360945702, 0.2593044638633728, -0.3928056061267853, -0.03777388483285904, -0.198881134390831 ]
https://github.com/huggingface/datasets/issues/2688
hebrew language codes he and iw should be treated as aliases
For discoverability on the website I updated the YAML tags at the top of the mC4 dataset card https://github.com/huggingface/datasets/commit/38288087b1b02f97586e0346e8f28f4960f1fd37 Once the website is updated, mC4 will be listed in https://huggingface.co/datasets?filter=languages:he
https://huggingface.co/datasets/mc4 not listed when searching for hebrew datasets (he) as it uses the older language code iw, preventing discoverability.
30
hebrew language codes he and iw should be treated as aliases https://huggingface.co/datasets/mc4 not listed when searching for hebrew datasets (he) as it uses the older language code iw, preventing discoverability. For discoverability on the website I updated the YAML tags at the top of the mC4 dataset card https://github.com/huggingface/datasets/commit/38288087b1b02f97586e0346e8f28f4960f1fd37 Once the website is updated, mC4 will be listed in https://huggingface.co/datasets?filter=languages:he
[ -0.16677920520305634, -0.08356896042823792, -0.08920254558324814, 0.06112154200673103, 0.23247987031936646, -0.018035855144262314, 0.2219812273979187, 0.412238746881485, -0.015884682536125183, -0.018412703648209572, -0.3140925168991089, -0.16981160640716553, 0.0033468659967184067, 0.25454089045524597, 0.19325342774391174, 0.1975347250699997, 0.016377512365579605, -0.04768361523747444, -0.0980863943696022, -0.11507892608642578, -0.1693117469549179, 0.25981149077415466, 0.021298415958881378, 0.10309761762619019, -0.3453691601753235, 0.181439608335495, 0.09315413981676102, 0.22526098787784576, -0.1960124522447586, -0.31909480690956116, -0.018224919214844704, 0.09396570920944214, -0.0006311570177786052, 0.43576592206954956, -0.0001059204587363638, 0.033044543117284775, 0.38002467155456543, -0.19922834634780884, -0.3762788772583008, -0.28924158215522766, 0.020963991060853004, -0.23936587572097778, -0.2559765875339508, -0.08116146922111511, -0.43435490131378174, -0.16282722353935242, -0.11229691654443741, -0.4339209794998169, 0.10440564155578613, 0.19892112910747528, 0.2612394094467163, 0.35634493827819824, -0.032994344830513, -0.03516458347439766, -0.11764393001794815, 0.02288791351020336, -0.1134202629327774, 0.17921489477157593, 0.15805016458034515, 0.34892210364341736, 0.14830109477043152, 0.5432716608047485, 0.29033392667770386, -0.07641211897134781, -0.11226138472557068, 0.11476419866085052, 0.0032078432850539684, 0.057258959859609604, 0.3240346610546112, 0.14874914288520813, 0.3166532516479492, -0.24158957600593567, -0.15542784333229065, -0.05681784078478813, -0.1319238841533661, 0.024327903985977173, 0.5333499312400818, 0.17463408410549164, -0.16490933299064636, 0.2587651014328003, -0.2961873412132263, -0.33850008249282837, 0.15532827377319336, 0.24982863664627075, -0.07719505578279495, 0.4242893159389496, -0.08886293321847916, -0.09679441899061203, 0.25409558415412903, -0.3760227560997009, 0.23491331934928894, -0.08906393498182297, 0.06638871133327484, 0.11926106363534927, 0.11986225843429565, -0.18653494119644165, -0.023328321054577827, 0.44027650356292725, -0.0654597282409668, -0.1952183097600937, -0.0206412635743618, 0.44892165064811707, 0.02827787771821022, -0.12216473370790482, -0.21540509164333344, 0.019582225009799004, 0.4062905013561249, -0.2921651303768158, 0.43571707606315613, 0.1794191598892212, 0.029978295788168907, -0.12225884199142456, -0.02758559212088585, 0.009978214278817177, -0.3433048725128174, -0.15357083082199097, 0.003357658162713051, -0.01580089144408703, 0.056470561772584915, -0.23618848621845245, -0.33660832047462463, -0.5890079736709595, 0.0629420056939125, 0.566541314125061, 0.1311928778886795, -0.3434549868106842, -0.1309618055820465, 0.02670527808368206, -0.3744468092918396, -0.5479004383087158, -0.18467332422733307, 0.005719091277569532, -0.27936801314353943, 0.080229751765728, 0.22987574338912964, -0.026113077998161316, 0.2447020560503006, -0.05600633844733238, 0.042587991803884506, 0.1433311551809311, -0.20350314676761627, 0.25077804923057556, 0.1929476112127304, -0.01886470429599285, -0.051099993288517, 0.09143486618995667, 0.07679038494825363, -0.09555836766958237, -0.11638329923152924, -0.21181721985340118, -0.08287185430526733, -0.03787526860833168, 0.3168013393878937, 0.2138490229845047, -0.09610190987586975, 0.03326931223273277, 0.12874364852905273, 0.2874477505683899, -0.24420800805091858, -0.050186637789011, 0.08779145032167435, 0.11123719811439514, 0.1360359489917755, 0.016586026176810265, 0.1065114215016365, 0.5581026673316956, -0.15082697570323944, -0.45341646671295166, 0.005912384483963251, 0.06847786158323288, -0.0526171512901783, 0.21695898473262787, -0.26502737402915955, -0.039618752896785736, -0.27802586555480957, 0.19990448653697968, 0.22167176008224487, -0.26116088032722473, -0.31475064158439636, 0.10428983718156815, -0.05087112635374069, 0.07835791260004044, -0.05826835706830025, -0.2508697807788849, -0.09137071669101715, -0.03128804638981819, 0.1433631330728531, -0.025013267993927002, 0.21209506690502167, -0.14666101336479187, -0.16139598190784454, 0.009155410341918468, 0.10786101222038269, 0.031023046001791954, 0.056339751929044724, 0.0332750640809536, 0.2991707921028137, 0.032915037125349045, 0.3045866787433624, -0.14292821288108826, 0.344097375869751, 0.10782134532928467, 0.10124466568231583, 0.10821960121393204, 0.17022205889225006, 0.027600275352597237, -0.12841689586639404, -0.013359545730054379, -0.12664757668972015, 0.44527730345726013, -0.3261277973651886, 0.0027908277697861195, -0.0843924880027771, -0.16437870264053345, -0.29256245493888855, -0.24762551486492157, 0.28042247891426086, 0.2389829307794571, 0.1320309340953827, 0.243305042386055, -0.041233379393815994, 0.22250467538833618, -0.047925595194101334, 0.04273561015725136, -0.17733095586299896, 0.1300031989812851, -0.17181892693042755, 0.08895302563905716, -0.05049996078014374, 0.33667120337486267, 0.26049795746803284, -0.42086565494537354, -0.03334860876202583, 0.19787992537021637, -0.22655467689037323, 0.018190406262874603, 0.42229485511779785, 0.3469167947769165, 0.4615178108215332, -0.4829174876213074, 0.24790921807289124, 0.21084550023078918, -0.017013423144817352, -0.05489502102136612, 0.14689365029335022, 0.2738038897514343, 0.19131337106227875, 0.17750248312950134, 0.23029997944831848, 0.03135686740279198, 0.5397225618362427, 0.08329588919878006, -0.11530643701553345, -0.5012763738632202, 0.07006994634866714, -0.10248522460460663, 0.5470169186592102, 0.049325354397296906, -0.22173507511615753, 0.22882841527462006, 0.5540848970413208, -0.0712825208902359, -0.002407304011285305, 0.0742134302854538, -0.31269457936286926, 0.03427400812506676, 0.10633204877376556, -0.014677632600069046, -0.011430438607931137, 0.26965418457984924, 0.17962343990802765, 0.17941498756408691, 0.18788880109786987, -0.28129157423973083, 0.347374826669693, 0.10715010017156601, -0.0631067231297493, -0.032602984458208084, 0.13926610350608826, -0.26760798692703247, -0.5354730486869812, 0.05884873494505882, -0.11642899364233017, -0.24010367691516876, -0.24076731503009796, 0.1507299393415451, -0.4924582242965698, -0.2797492742538452, -0.3269929885864258, -0.4875528812408447, -0.587358832359314, -0.12755651772022247, 0.12733687460422516, -0.2287450134754181, -0.030401848256587982, 0.2408624291419983, 0.10119055956602097, 0.05555384233593941, -0.3660442531108856, 0.09106436371803284, -0.2525664269924164, -0.11768779903650284, -0.28505513072013855, 0.15810562670230865, 0.26185867190361023, -0.1413700431585312, 0.3274272084236145, -0.528552770614624, -0.10046684741973877, -0.40336787700653076, -0.5248311758041382, 0.45199447870254517, -0.050760213285684586, 0.08642909675836563, 0.10220567882061005, 0.06596537679433823, -0.1033916026353836, -0.06350070983171463, 0.3658282458782196, -0.2740926444530487, -0.25762447714805603, -0.04715661332011223, -0.03313034027814865, -0.011717650108039379, -0.10120487958192825, -0.45150619745254517, -0.45193013548851013, -0.1368676871061325, -0.07349539548158646, 0.03039436973631382, -0.06782901287078857, 0.05357998237013817, -0.19673322141170502, -0.11933798342943192, -0.021014027297496796, -0.09749413281679153, -0.3391347825527191, -0.06350386887788773, 0.3806597590446472, -0.49071818590164185, -0.2501942217350006, 0.09357291460037231, 0.08472298830747604, 0.3325747847557068, -0.07344004511833191, -0.010786901228129864, 0.27635657787323, -0.05866678059101105, 0.12567786872386932, 0.2447044998407364, 0.1293506771326065, 0.2293200045824051, 0.19690461456775665, -0.1986115425825119, -0.28332623839378357, -0.07693945616483688, 0.18198978900909424, -0.2217145562171936, 0.5080352425575256, 0.26859694719314575, 0.0753016397356987, 0.05917999893426895, 0.28192412853240967, 0.23166216909885406, -0.03144744783639908, 0.5248019099235535, 0.09785608947277069, 0.3908885419368744, -0.1025177612900734, -0.18204018473625183, 0.06403890997171402, 0.0860816240310669, 0.26434507966041565, 0.38467368483543396, 0.1578730344772339, 0.09935852885246277, -0.2987895607948303, -0.08008724451065063, -0.5482738614082336, -0.21853551268577576, -0.04319877550005913, 0.1095786988735199, 0.259834349155426, 0.4453335404396057, 0.09547973424196243, -0.08525203913450241, -0.16594092547893524, 0.31632837653160095, 0.21111059188842773, -0.20774956047534943, 0.26653528213500977, -0.4891829192638397, -0.1579330563545227, -0.48866352438926697, 0.25762510299682617, 0.06156441569328308, 0.1776462346315384, -0.08521205186843872, -0.09917879849672318, 0.23099374771118164, -0.02147042192518711, 0.4347790777683258, -0.31387078762054443, -0.0723511353135109, 0.016222672536969185, -0.1698949635028839, 0.04007978364825249, 0.06437154114246368, -0.2964463531970978, 0.18764975666999817, 0.5032926201820374, 0.204359769821167, -0.4638074040412903, -0.2545906901359558, -0.014586500823497772, -0.16794145107269287, -0.1308717578649521, -0.2449600100517273, -0.0860678032040596, -0.10806993395090103, -0.15441586077213287, -0.2814125716686249, -0.01027225237339735, 0.16952255368232727, -0.005158242769539356, 0.04540424793958664, 0.39107397198677063, -0.17134203016757965, 0.21341437101364136, 0.4395764470100403, 0.33154046535491943, 0.10935984551906586, -0.14358621835708618, 0.5581196546554565, 0.451691597700119, 0.4931239187717438, 0.5625642538070679, 0.03715403005480766, -0.22617660462856293, -0.1274634152650833, -0.20548075437545776, 0.149825319647789, 0.4963575005531311, 0.1881469190120697, -0.002674081828445196, 0.20855681598186493, 0.0794464498758316, -0.11601357907056808, 0.004847089760005474, 0.08488830924034119, 0.15997689962387085, -0.3092435300350189, -0.2858952283859253, 0.19674332439899445, -0.48009711503982544, 0.022712333127856255, 0.13603515923023224, 0.511238157749176, -0.3989129662513733, -0.05604837089776993, 0.03883335739374161, 1.0443211793899536, 0.08342667669057846, -0.08887369930744171, -0.03800594434142113, -0.1019887924194336, 0.17080903053283691, -0.3162451684474945, -0.005604593548923731, -0.014518207870423794, 0.4962679445743561, -0.054018713533878326, 0.026561491191387177, 0.023665841668844223, 0.3065556585788727, -0.1433667093515396, 0.362817645072937, -0.026665637269616127, 0.20555606484413147, 0.16727155447006226, 0.0893017053604126, -0.11651929467916489, -0.13108524680137634, -0.4001879394054413, 0.20693913102149963, 0.0027552987448871136, 0.3016536235809326, -0.14202184975147247, -0.36136293411254883, -0.20127733051776886, -0.1989101618528366, 0.08409970253705978, -0.07001732289791107, -0.3903968334197998, 0.1370287984609604, 0.041674356907606125, -0.1735154688358307, 0.19872568547725677, -0.12131288647651672, 0.6124117374420166, 0.033833131194114685, -0.33748072385787964, 0.2811674177646637, 0.05890260636806488, -0.026647847145795822, -0.1697261780500412, 0.0062774065881967545, 0.018707357347011566, -0.14438411593437195, -0.44610828161239624, 0.038898419588804245, 0.06954354047775269, -0.20948974788188934, -0.20253132283687592, -0.11526495218276978, -0.28971484303474426, 0.16326972842216492, 0.09551317989826202, 0.0633462443947792, 0.05018576979637146, -0.2919590175151825, 0.16024576127529144, -0.30137091875076294, 0.023059261962771416, -0.38830530643463135, 0.5311198830604553, -0.004614094737917185, -0.3006281852722168, 0.18694645166397095, -0.024638600647449493, -0.15381857752799988, 0.1107921451330185, 0.16922681033611298, -0.382951021194458, -0.19937370717525482, -0.2265610545873642, 0.3500517010688782, -0.13629598915576935, -0.1332390159368515, 0.181616872549057, -0.14823158085346222, -0.2114911824464798, 0.32606005668640137, 0.0872611254453659, -0.008356021717190742, -0.1710878610610962, -0.11185202747583389, 0.018998127430677414, 0.3421672582626343, -0.15684661269187927, -0.15719449520111084, 0.050859563052654266, 0.45915329456329346, 0.04871766269207001, 0.07712650299072266, -0.3621399700641632, -0.001298647839576006, -0.0575302392244339, -0.0681789219379425, 0.07789970189332962, 0.0007973660831339657, 0.24967624247074127, 0.04480033740401268, 0.1284947395324707, 0.06211476027965546, -0.40786170959472656, -0.18529002368450165, 0.011253765784204006, 0.09064202010631561, 0.01798306591808796, -0.20813912153244019, -0.09242984652519226, 0.1249433234333992, 0.19200293719768524, -0.29836657643318176, 0.04131704196333885, 0.0788111463189125, 0.14412739872932434, 0.08696453273296356, 0.33298951387405396, -0.43884727358818054, 0.012805785052478313, -0.09859204292297363, 0.1681385487318039, 0.19853641092777252, 0.1789589524269104, -0.07088541239500046, -0.08860007673501968, -0.03545897826552391, 0.2975749671459198, 0.29213520884513855, 0.04178197309374809, 0.2276315689086914, 0.1888563185930252, -0.27561941742897034, 0.18841882050037384, 0.28389447927474976, 0.32518526911735535, 0.1674550622701645, -0.22086015343666077, -0.15518780052661896, 0.18593177199363708, 0.2292252480983734, -0.4245522916316986, -0.2475091516971588, 0.2709744870662689, -0.012471348978579044, 0.24133239686489105, 0.20417064428329468, 0.621890127658844, 0.11915616691112518, 0.20239919424057007, 0.04921826720237732, 0.35674160718917847, -0.28475382924079895, 0.033480945974588394, -0.1281651109457016, 0.07521861046552658, 0.2980562746524811, 0.5230844616889954, -0.17819657921791077, -0.13141575455665588, 0.57011479139328, -0.2448917180299759, 0.16408763825893402, 0.052740950137376785, 0.20454515516757965, -0.13923923671245575, -0.13264021277427673, 0.17637713253498077, -0.040069784969091415, 0.08640749007463455, 0.2247379869222641, -0.000476566085126251, 0.17774716019630432, 0.0588066391646862, -0.22872336208820343, -0.14114020764827728, -0.04801125451922417, -0.21957363188266754, -0.045709915459156036, 0.0910506397485733, -0.3784235417842865, -0.11719902604818344, 0.05762637406587601, 0.07857285439968109, -0.11440619081258774, 0.2686808407306671, -0.017896568402647972, 0.007978583686053753, -0.4327698051929474, -0.04891116917133331, -0.09541943669319153, 0.039579201489686966, -0.1379527896642685, 0.2741236388683319, 0.17329873144626617, -0.09634533524513245, 0.21652717888355255, -0.0182265006005764, 0.21541285514831543, -0.05600064620375633, 0.11538995057344437, 0.08154696226119995, -0.2719690799713135, -0.22066324949264526, -0.2305671125650406, 0.1775818169116974, 0.28135946393013, -0.16584061086177826, 0.03419383242726326, 0.17491191625595093, -0.19402708113193512, -0.2047533392906189, 0.20679153501987457, 0.1573316603899002, 0.07713911682367325, -0.07485541701316833, -0.3715395927429199, 0.12322864681482315, -0.28392234444618225, -0.0474475733935833, -0.4346117079257965, 0.42228949069976807, 0.33085161447525024, -0.341086208820343, -0.02607911266386509, -0.20937669277191162, 0.12318100780248642, 0.23819147050380707, 0.40408411622047424, -0.11322015523910522, -0.1260969042778015, 0.039441853761672974, -0.5264503359794617, -0.5373830199241638, -0.10350178182125092, -0.21647615730762482, 0.41500452160835266, -0.24933846294879913, 0.1059720367193222, 0.5088520050048828, -0.1090676560997963, 0.5761892795562744, 0.16630469262599945, 0.050690919160842896, -0.30683642625808716, -0.37913140654563904, 0.09020828455686569, 0.16998106241226196, 0.3119495213031769, 0.03221093490719795, 0.06366334110498428, 0.28616195917129517, -0.2917148172855377, 0.054403677582740784, -0.049579769372940063, 0.291584849357605, 0.06949743628501892, -0.3489285111427307, 0.1976672112941742, 0.28451839089393616, 0.45946162939071655, -0.3592259883880615, -0.12852118909358978, -0.10301060229539871, -0.12031685560941696, -0.039072588086128235, 0.4512980282306671, 0.027921590954065323, 0.22934256494045258, -0.16790753602981567, -0.42764660716056824, -0.2277384102344513, 0.5062934756278992, 0.16060107946395874, 0.22747373580932617, -0.12857383489608765, 0.05816449970006943, -0.27751871943473816, -0.06094775348901749, -0.010172396898269653, 0.2517804801464081, -0.029296929016709328, -0.16795064508914948, -0.02507666125893593, -0.36888155341148376, 0.4275469183921814, -0.2679293155670166, -0.21365484595298767, 0.005119328387081623, 0.13107351958751678, 0.14382556080818176, -0.13548611104488373, -0.48224568367004395, 0.07070965319871902, 0.17727716267108917, 0.06069992110133171, -0.2188800722360611, 0.3369491696357727, -0.1613611876964569, -0.11167024075984955, -0.06179021671414375, 0.09237202256917953, 0.3087485432624817, -0.22689728438854218, 0.015100189484655857, -0.05352071672677994 ]
https://github.com/huggingface/datasets/issues/2681
5 duplicate datasets
Yes this was documented in the PR that added this hf->paperswithcode mapping (https://github.com/huggingface/datasets/pull/2404) and AFAICT those are slightly distinct datasets so I think it's a wontfix For context on the paperswithcode mapping you can also refer to https://github.com/huggingface/huggingface_hub/pull/43 which contains a lot of background discussion
## Describe the bug In 5 cases, I could find a dataset on Paperswithcode which references two Hugging Face datasets as dataset loaders. They are: - https://paperswithcode.com/dataset/multinli -> https://huggingface.co/datasets/multi_nli and https://huggingface.co/datasets/multi_nli_mismatch <img width="838" alt="Capture d’écran 2021-07-20 à 16 33 58" src="https://user-images.githubusercontent.com/1676121/126342757-4625522a-f788-41a3-bd1f-2a8b9817bbf5.png"> - https://paperswithcode.com/dataset/squad -> https://huggingface.co/datasets/squad and https://huggingface.co/datasets/squad_v2 - https://paperswithcode.com/dataset/narrativeqa -> https://huggingface.co/datasets/narrativeqa and https://huggingface.co/datasets/narrativeqa_manual - https://paperswithcode.com/dataset/hate-speech-and-offensive-language -> https://huggingface.co/datasets/hate_offensive and https://huggingface.co/datasets/hate_speech_offensive - https://paperswithcode.com/dataset/newsph-nli -> https://huggingface.co/datasets/newsph and https://huggingface.co/datasets/newsph_nli Possible solutions: - don't fix (it works) - for each pair of duplicate datasets, remove one, and create an alias to the other. ## Steps to reproduce the bug Visit the Paperswithcode links, and look at the "Dataset Loaders" section ## Expected results There should only be one reference to a Hugging Face dataset loader ## Actual results Two Hugging Face dataset loaders
45
5 duplicate datasets ## Describe the bug In 5 cases, I could find a dataset on Paperswithcode which references two Hugging Face datasets as dataset loaders. They are: - https://paperswithcode.com/dataset/multinli -> https://huggingface.co/datasets/multi_nli and https://huggingface.co/datasets/multi_nli_mismatch <img width="838" alt="Capture d’écran 2021-07-20 à 16 33 58" src="https://user-images.githubusercontent.com/1676121/126342757-4625522a-f788-41a3-bd1f-2a8b9817bbf5.png"> - https://paperswithcode.com/dataset/squad -> https://huggingface.co/datasets/squad and https://huggingface.co/datasets/squad_v2 - https://paperswithcode.com/dataset/narrativeqa -> https://huggingface.co/datasets/narrativeqa and https://huggingface.co/datasets/narrativeqa_manual - https://paperswithcode.com/dataset/hate-speech-and-offensive-language -> https://huggingface.co/datasets/hate_offensive and https://huggingface.co/datasets/hate_speech_offensive - https://paperswithcode.com/dataset/newsph-nli -> https://huggingface.co/datasets/newsph and https://huggingface.co/datasets/newsph_nli Possible solutions: - don't fix (it works) - for each pair of duplicate datasets, remove one, and create an alias to the other. ## Steps to reproduce the bug Visit the Paperswithcode links, and look at the "Dataset Loaders" section ## Expected results There should only be one reference to a Hugging Face dataset loader ## Actual results Two Hugging Face dataset loaders Yes this was documented in the PR that added this hf->paperswithcode mapping (https://github.com/huggingface/datasets/pull/2404) and AFAICT those are slightly distinct datasets so I think it's a wontfix For context on the paperswithcode mapping you can also refer to https://github.com/huggingface/huggingface_hub/pull/43 which contains a lot of background discussion
[ 0.07028930634260178, -0.03039250709116459, 0.0002651213144417852, 0.30260732769966125, 0.16153480112552643, 0.022487403824925423, 0.38125577569007874, 0.1487320214509964, 0.06321434676647186, 0.20608022809028625, -0.14543527364730835, 0.058572713285684586, 0.13281568884849548, -0.06307172775268555, 0.07194039970636368, -0.006296826060861349, 0.24742472171783447, -0.1418851912021637, -0.22753076255321503, -0.08221877366304398, -0.14616361260414124, 0.2783472239971161, -0.009433330968022346, -0.14673464000225067, -0.3533274829387665, 0.0687633603811264, -0.08586132526397705, 0.40321674942970276, -0.08312325924634933, -0.21526764333248138, 0.38453468680381775, 0.25883790850639343, -0.18333616852760315, 0.363574743270874, -0.00010858389578061178, 0.13274991512298584, 0.11915463954210281, 0.15207722783088684, -0.30957114696502686, 0.06150592491030693, 0.1082124263048172, -0.012575406581163406, 0.01731402799487114, -0.011008690111339092, 0.08298765867948532, -0.31595662236213684, 0.09177552163600922, -0.24317602813243866, 0.4125821590423584, 0.1412668228149414, 0.2476854771375656, 0.2306789755821228, 0.02865680307149887, -0.15980473160743713, 0.36223286390304565, 0.012787247076630592, -0.06770587712526321, 0.12477021664381027, 0.1705980896949768, 0.025871828198432922, -0.03829975426197052, 0.559648871421814, 0.005926431622356176, -0.10497317463159561, 0.035169437527656555, 0.18140731751918793, -0.0339609794318676, -0.0845705196261406, 0.07112526893615723, 0.09556014835834503, -0.041617851704359055, -0.26653730869293213, -0.2961680591106415, -0.38107019662857056, -0.07982929050922394, 0.15124517679214478, 0.3346850872039795, -0.13147740066051483, 0.0732254683971405, -0.10041511803865433, -0.16175009310245514, 0.11536964029073715, 0.1003633439540863, -0.03747525066137314, 0.05391047149896622, -0.018183790147304535, 0.02451642043888569, 0.14577314257621765, 0.2791580259799957, -0.09567246586084366, 0.041263286024332047, -0.0963975191116333, -0.24370478093624115, 0.12515874207019806, -0.3186260759830475, 0.18476217985153198, 0.0741514042019844, -0.01416706945747137, 0.45052242279052734, 0.1745672971010208, 0.1664843112230301, -0.12772303819656372, -0.16611574590206146, 0.0062895603477954865, 0.2641853988170624, 0.11394872516393661, -0.20392584800720215, 0.17810600996017456, 0.17408035695552826, 0.2517188489437103, -0.028144491836428642, 0.0542660690844059, 0.15935514867305756, -0.19008474051952362, 0.006515986751765013, -0.2685298025608063, 0.2132134735584259, -0.26872754096984863, -0.3383699953556061, 0.15184621512889862, -0.04514385014772415, 0.0742843896150589, -0.22101786732673645, 0.2351890653371811, 0.2290513664484024, 0.13245008885860443, 0.163944274187088, -0.009107476100325584, -0.2775205969810486, -0.2676827013492584, -0.3610759973526001, 0.03772498667240143, -0.1698392778635025, -0.013307030312716961, 0.0501570999622345, -0.38854533433914185, 0.25972574949264526, 0.344427227973938, 0.2077884078025818, -0.20499417185783386, 0.08521644026041031, 0.018267836421728134, -0.04651990160346031, 0.1520560383796692, 0.027193671092391014, 0.1776813417673111, 0.10240612924098969, -0.2849936783313751, 0.07870375365018845, -0.08898123353719711, -0.08253182470798492, -0.015492692589759827, -0.2907683551311493, 0.2522125542163849, 0.007712217979133129, 0.06480429321527481, -0.019112735986709595, 0.1038394644856453, 0.04207797348499298, -0.12596552073955536, 0.05617312341928482, 0.0037837191484868526, -0.04855319857597351, -0.04685639590024948, 0.0524534210562706, 0.5406343936920166, 0.12147609144449234, -0.34578201174736023, 0.263302743434906, -0.16283385455608368, 0.18128259479999542, 0.28038832545280457, -0.21483780443668365, -0.04443815350532532, -0.4685078263282776, -0.22703863680362701, -0.03705023229122162, -0.3887757658958435, -0.4229958951473236, 0.15726904571056366, -0.27349457144737244, 0.3648279309272766, 0.21136127412319183, 0.08954721689224243, -0.0669703483581543, -0.025857700034976006, -0.11108321696519852, 0.027750736102461815, 0.03426486253738403, 0.10075110197067261, -0.4402084946632385, -0.3214183747768402, 0.07690806686878204, 0.15788666903972626, -0.007032711058855057, -0.040056414902210236, 0.2076915055513382, 0.013901826925575733, 0.3016478717327118, -0.07795712351799011, -0.02560080587863922, 0.19172729551792145, 0.19421496987342834, -0.05337316542863846, 0.3169432580471039, 0.11185995489358902, -0.578957200050354, 0.1740715503692627, -0.2582848370075226, 0.0822264775633812, 0.12658540904521942, -0.3745347857475281, -0.1260647475719452, -0.08620931208133698, -0.47647255659103394, -0.5406159162521362, 0.15602166950702667, 0.2849036157131195, -0.0491383820772171, -0.10527268797159195, -0.24039438366889954, 0.5512449741363525, -0.2626475393772125, 0.21512563526630402, -0.47653084993362427, 0.1979450136423111, -0.07497940212488174, 0.15279178321361542, 0.11726924031972885, 0.10102745145559311, 0.004388963337987661, 0.11118228733539581, 0.04732673242688179, 0.25894299149513245, 0.055244993418455124, 0.3331555724143982, 0.19391754269599915, -0.015592873096466064, 0.30045750737190247, -0.1741737723350525, -0.1487470418214798, 0.11297918111085892, 0.08856873214244843, 0.06013106927275658, -0.38658425211906433, 0.23966436088085175, -0.20319676399230957, 0.0032815139275044203, -0.054834041744470596, -0.13082408905029297, 0.29239973425865173, -0.1416112631559372, -0.0034338869154453278, -0.5109379291534424, 0.2535315155982971, 0.08865240961313248, 0.4695351719856262, 0.19722548127174377, -0.24428381025791168, 0.1927700638771057, 0.04079928994178772, 0.14078305661678314, -0.19422899186611176, -0.016259096562862396, -0.14127488434314728, -0.1349203884601593, -0.07986325025558472, 0.1790764033794403, 0.36966726183891296, 0.28519871830940247, -0.10356919467449188, 0.1510406732559204, -0.13237828016281128, -0.1944529116153717, 0.24562300741672516, -0.2350577563047409, -0.07997404783964157, 0.20352061092853546, 0.32197877764701843, 0.13787253201007843, -0.6552866101264954, -0.06861977279186249, 0.012459163554012775, -0.0030523790046572685, -0.4860178232192993, -0.1635315716266632, -0.11577218025922775, -0.3308980166912079, -0.45067349076271057, 0.19377650320529938, -0.3726772665977478, -0.2968257963657379, 0.2177339494228363, 0.1844276785850525, -0.29092931747436523, 0.055937886238098145, -0.17731544375419617, 0.509455680847168, -0.1905321478843689, 0.15088504552841187, -0.10499215126037598, 0.17993946373462677, -0.33064931631088257, 0.16565808653831482, 0.0899939313530922, -0.12119893729686737, 0.35238751769065857, -0.03895067796111107, -0.21157428622245789, -0.5472984313964844, -0.5236177444458008, 0.20843008160591125, 0.13915593922138214, 0.36966410279273987, 0.30661022663116455, -0.12800122797489166, -0.05712274834513664, -0.29248952865600586, 0.0273076593875885, 0.10667304694652557, -0.34921011328697205, -0.09586760401725769, -0.3238348364830017, 0.14989237487316132, -0.14759987592697144, -0.1449313759803772, 0.06351777166128159, -0.2053787261247635, 0.06065933778882027, -0.13722383975982666, 0.08459899574518204, 0.3050028085708618, -0.15389683842658997, 0.06029140204191208, -0.3173988163471222, -0.03887518495321274, -0.4645877480506897, -0.43545934557914734, -0.01089412160217762, -0.18292546272277832, -0.2920602560043335, -0.15871022641658783, 0.09715081006288528, -0.04116509109735489, 0.14235207438468933, -0.6871282458305359, -0.4630127251148224, -0.10583510994911194, 0.002716832561418414, 0.02821534313261509, 0.1861342340707779, 0.21626248955726624, 0.14209841191768646, -0.20226766169071198, -0.19532668590545654, -0.011418593116104603, 0.38290056586265564, -0.16362981498241425, 0.30353844165802, -0.1152472272515297, 0.10260842740535736, 0.07643570750951767, 0.3137536942958832, 0.8434224724769592, -0.0014696895377710462, 0.43388116359710693, -0.06739150732755661, 0.3124111294746399, -0.020849177613854408, -0.18817076086997986, 0.14424410462379456, -0.07555613666772842, 0.15858185291290283, 0.4018270969390869, -0.04632120579481125, -0.03643568977713585, 0.02876327373087406, -0.1463022530078888, -0.26541340351104736, -0.2283642739057541, -0.07893119007349014, 0.054827939718961716, 0.07165294140577316, 0.09206514060497284, -0.2884058654308319, -0.03318629786372185, -0.1515440046787262, 0.15729515254497528, 0.03709251806139946, 0.14509433507919312, 0.13489021360874176, -0.2468569576740265, 0.26025471091270447, -0.23894666135311127, 0.1679644137620926, 0.13473887741565704, 0.1514575034379959, -0.015814397484064102, -0.057735197246074677, 0.013693920336663723, -0.0228129755705595, 0.7903951406478882, -0.03403289243578911, 0.2042672485113144, 0.02781028486788273, -0.1460229456424713, -0.17567181587219238, -0.13850994408130646, 0.05382576212286949, -0.1323562115430832, 0.042109061032533646, 0.4128994047641754, -0.3416716456413269, 0.0711301863193512, 0.43287166953086853, -0.04431780055165291, -0.157034233212471, -0.14973138272762299, -0.15783067047595978, -0.3200143873691559, -0.1570153683423996, 0.02714652381837368, -0.023990392684936523, 0.1375604271888733, -0.06738992780447006, -0.18924731016159058, -0.13642913103103638, -0.2950669825077057, 0.085898756980896, 0.06670843064785004, 0.3032996356487274, 0.2618994116783142, 0.4669044315814972, 0.47086361050605774, 0.3350967466831207, 0.14659307897090912, 1.0519517660140991, -0.14418497681617737, -0.5197612643241882, 0.0216764397919178, -0.09264271706342697, -0.0051407404243946075, 0.48990705609321594, 0.0896272212266922, 0.12154413014650345, 0.06473798304796219, 0.04679781198501587, 0.050845351070165634, -0.01932825893163681, 0.2704710066318512, -0.001351343235000968, -0.1833825707435608, -0.15071117877960205, 0.4275875389575958, 0.1461552381515503, -0.12429919093847275, 0.42061007022857666, 0.2107415646314621, -0.31466907262802124, 0.281936913728714, 0.04041372984647751, 0.9385851621627808, 0.15588131546974182, 0.2149764895439148, 0.03755579888820648, -0.2692103981971741, 0.5875101089477539, -0.02893896773457527, -0.14189700782299042, -0.21764224767684937, -0.4918929934501648, 0.14328795671463013, -0.01014831755310297, -0.03415319696068764, -0.09360751509666443, 0.04850030317902565, 0.0905282199382782, -0.05717804655432701, 0.2710876166820526, 0.07207042723894119, 0.08792810887098312, -0.20316515862941742, -0.13663290441036224, -0.18814803659915924, 0.1276731938123703, -0.025396261364221573, 0.010432861745357513, 0.021656792610883713, 0.0600927360355854, -0.032242462038993835, -0.384724885225296, -0.11230522394180298, 0.16744443774223328, -0.5221056938171387, 0.1415776163339615, 0.0915614515542984, 0.017728472128510475, -0.030647216364741325, 0.09669002890586853, 0.4413727819919586, -0.1222483366727829, -0.05859094113111496, 0.2268095314502716, 0.2496112585067749, 0.2676345407962799, -0.10773786902427673, -0.19873128831386566, 0.37628015875816345, -0.16056177020072937, -0.08390557020902634, -0.10933530330657959, 0.15930423140525818, -0.21356609463691711, -0.4714787006378174, 0.07618635892868042, -0.459689199924469, -0.0454733744263649, -0.01023236382752657, 0.03267449140548706, 0.2039305567741394, -0.2811032831668854, 0.14036312699317932, -0.03784807771444321, -0.01303738821297884, -0.09098681062459946, 0.08146554976701736, -0.32861167192459106, -0.1354035586118698, 0.5333238840103149, 0.2865937352180481, -0.27057644724845886, 0.17880071699619293, 0.11921092867851257, -0.03772218897938728, -0.07700842618942261, -0.22537119686603546, 0.5069451332092285, -0.651853621006012, 0.19817903637886047, -0.36168545484542847, -0.005339215975254774, -0.0027535425033420324, 0.4223928451538086, 0.18421807885169983, 0.03925298899412155, 0.13211281597614288, -0.3254237174987793, -0.04983263090252876, 0.2862564027309418, -0.13084423542022705, 0.33406582474708557, 0.16721323132514954, 0.2803390622138977, -0.19233787059783936, 0.17968595027923584, -0.3889954388141632, 0.08013273030519485, -0.06453753262758255, 0.010260560549795628, 0.10125236958265305, -0.015119655057787895, 0.15575505793094635, -0.0029586688615381718, 0.14028127491474152, 0.2721830904483795, -0.12523216009140015, -0.24852079153060913, -0.3904343843460083, 0.1317446380853653, -0.12100093811750412, -0.07050472497940063, 0.003876827657222748, -0.02816101908683777, 0.12997330725193024, -0.0425640270113945, 0.514879584312439, 0.05775781720876694, 0.008961394429206848, -0.20921514928340912, -0.00517601054161787, -0.029119092971086502, 0.0734868049621582, 0.04269757121801376, -0.03800687566399574, 0.0841839388012886, 0.3089030385017395, 0.076798215508461, -0.34393227100372314, -0.1398138701915741, 0.27055007219314575, 0.1343269944190979, 0.14856435358524323, 0.18327365815639496, -0.01671489141881466, -0.21205370128154755, -0.23113562166690826, 0.2464071810245514, 0.33079344034194946, 0.245283305644989, -0.46380266547203064, -0.18860065937042236, -0.19902488589286804, 0.2618715763092041, -0.4365538954734802, -0.4500628113746643, -0.04005081206560135, 0.01695173978805542, -0.02795081026852131, 0.1592964231967926, 0.4390653371810913, -0.20719456672668457, 0.017079027369618416, 0.09628032147884369, 0.5881932377815247, -0.2251543253660202, 0.19439975917339325, -0.18354104459285736, -0.10259411484003067, -0.0928412601351738, -0.10024794191122055, 0.07914024591445923, 0.2035963386297226, 0.20972594618797302, -0.15402238070964813, 0.3255159854888916, 0.009820044040679932, 0.3314211368560791, 0.23306649923324585, -0.22103288769721985, 0.1576394885778427, 0.48596152663230896, -0.24273407459259033, 0.3098110854625702, 0.07935305684804916, 0.1540989726781845, 0.11075301468372345, -0.11085284501314163, -0.25327879190444946, 0.3032991290092468, -0.01063010934740305, -0.09718001633882523, -0.10202404856681824, -0.3589637875556946, -0.5747913122177124, 0.2360832840204239, -0.20802609622478485, -0.143865168094635, 0.39556968212127686, -0.048891332000494, -0.3522397577762604, -0.5194410085678101, -0.13292300701141357, 0.2853826582431793, 0.3495977222919464, -0.4062209725379944, 0.3400551676750183, 0.6960604786872864, -0.2867569923400879, 0.23092330992221832, 0.5722978711128235, 0.43502897024154663, 0.10019378364086151, 0.3267895579338074, 0.007667867932468653, -0.0682520940899849, 0.10638885200023651, -0.28504449129104614, 0.17400339245796204, -0.11718803644180298, -0.27772632241249084, 0.32499414682388306, 0.15360957384109497, -0.25020739436149597, -0.3245692253112793, 0.022323179990053177, 0.30172786116600037, -0.4690503776073456, 0.12863759696483612, -0.35702699422836304, 0.2763644754886627, -0.003168711205944419, 0.07533402740955353, -0.4512561857700348, -0.238250732421875, 0.3177054524421692, -0.02022537961602211, 0.15218856930732727, -0.06548579782247543, 0.11481305211782455, 0.13792607188224792, 0.4535549283027649, 0.20496179163455963, -0.024589506909251213, -0.04048900678753853, -0.4924444258213043, -0.5506689548492432, 0.34236133098602295, -0.11473126709461212, 0.25739380717277527, 0.10160311311483383, 0.1014392152428627, -0.06900522857904434, -0.08478789031505585, 0.20855331420898438, 0.2121148407459259, -0.04593570902943611, 0.17737668752670288, -0.32820582389831543, -0.009974461048841476, -0.10703223198652267, -0.11188004165887833, 0.08954720944166183, -0.2577894628047943, 0.2668512463569641, -0.0040977769531309605, 0.03997635468840599, 0.048139724880456924, 0.05663285404443741, 0.19338950514793396, -0.28510183095932007, 0.2023124396800995, 0.35191550850868225, 0.2769763171672821, -0.12716136872768402, -0.34843969345092773, -0.29693087935447693, -0.19605189561843872, -0.3339643180370331, 0.20654860138893127, 0.16902609169483185, 0.31205904483795166, 0.006532139610499144, -0.4518444538116455, -0.023073308169841766, 0.15627001225948334, 0.20456692576408386, 0.15135642886161804, -0.514558732509613, 0.15814709663391113, -0.07080766558647156, 0.013726787641644478, 0.1419333517551422, 0.46316441893577576, 0.025792015716433525, 0.0870906338095665, -0.00726288789883256, -0.5874013304710388, 0.20395499467849731, -0.5411155819892883, 0.06107321381568909, -0.018231704831123352, 0.28442320227622986, 0.045131124556064606, -0.05109701678156853, -0.5387967228889465, 0.015393001027405262, 0.30555030703544617, 0.00634992029517889, -0.0691116526722908, 0.30098026990890503, 0.11689846962690353, 0.015402229502797127, -0.00798027217388153, 0.08619173616170883, 0.31582871079444885, -0.20340405404567719, 0.35734322667121887, -0.23832926154136658 ]
https://github.com/huggingface/datasets/issues/2679
Cannot load the blog_authorship_corpus due to codec errors
Hi @izaskr, thanks for reporting. However the traceback you joined does not correspond to the codec error message: it is about other error `NonMatchingSplitsSizesError`. Maybe you missed some important part of your traceback... I'm going to have a look at the dataset anyway...
## Describe the bug A codec error is raised while loading the blog_authorship_corpus. ## Steps to reproduce the bug ``` from datasets import load_dataset raw_datasets = load_dataset("blog_authorship_corpus") ``` ## Expected results Loading the dataset without errors. ## Actual results An error similar to the one below was raised for (what seems like) every XML file. /home/izaskr/.cache/huggingface/datasets/downloads/extracted/7cf52524f6517e168604b41c6719292e8f97abbe8f731e638b13423f4212359a/blogs/788358.male.24.Arts.Libra.xml cannot be loaded. Error message: 'utf-8' codec can't decode byte 0xe7 in position 7551: invalid continuation byte Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/load.py", line 856, in load_dataset builder_instance.download_and_prepare( File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/builder.py", line 583, in download_and_prepare self._download_and_prepare( File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/builder.py", line 671, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/utils/info_utils.py", line 74, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=610252351, num_examples=532812, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='train', num_bytes=614706451, num_examples=535568, dataset_name='blog_authorship_corpus')}, {'expected': SplitInfo(name='validation', num_bytes=37500394, num_examples=31277, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='validation', num_bytes=32553710, num_examples=28521, dataset_name='blog_authorship_corpus')}] ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Linux-4.15.0-132-generic-x86_64-with-glibc2.10 - Python version: 3.8.8 - PyArrow version: 4.0.1
43
Cannot load the blog_authorship_corpus due to codec errors ## Describe the bug A codec error is raised while loading the blog_authorship_corpus. ## Steps to reproduce the bug ``` from datasets import load_dataset raw_datasets = load_dataset("blog_authorship_corpus") ``` ## Expected results Loading the dataset without errors. ## Actual results An error similar to the one below was raised for (what seems like) every XML file. /home/izaskr/.cache/huggingface/datasets/downloads/extracted/7cf52524f6517e168604b41c6719292e8f97abbe8f731e638b13423f4212359a/blogs/788358.male.24.Arts.Libra.xml cannot be loaded. Error message: 'utf-8' codec can't decode byte 0xe7 in position 7551: invalid continuation byte Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/load.py", line 856, in load_dataset builder_instance.download_and_prepare( File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/builder.py", line 583, in download_and_prepare self._download_and_prepare( File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/builder.py", line 671, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/utils/info_utils.py", line 74, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=610252351, num_examples=532812, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='train', num_bytes=614706451, num_examples=535568, dataset_name='blog_authorship_corpus')}, {'expected': SplitInfo(name='validation', num_bytes=37500394, num_examples=31277, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='validation', num_bytes=32553710, num_examples=28521, dataset_name='blog_authorship_corpus')}] ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Linux-4.15.0-132-generic-x86_64-with-glibc2.10 - Python version: 3.8.8 - PyArrow version: 4.0.1 Hi @izaskr, thanks for reporting. However the traceback you joined does not correspond to the codec error message: it is about other error `NonMatchingSplitsSizesError`. Maybe you missed some important part of your traceback... I'm going to have a look at the dataset anyway...
[ -0.2084890753030777, 0.47808170318603516, -0.05400756001472473, 0.3998490869998932, 0.3617139458656311, 0.22684065997600555, 0.07851669192314148, 0.42884427309036255, -0.15867389738559723, 0.24357537925243378, 0.04682815819978714, 0.26792797446250916, -0.06666458398103714, -0.21087335050106049, 0.049083102494478226, 0.017563778907060623, -0.08829986304044724, 0.14268279075622559, 0.2282305359840393, -0.23428121209144592, -0.2054748684167862, 0.18188120424747467, -0.1930258572101593, 0.07302766293287277, -0.2108268290758133, -0.07893285900354385, 0.14611005783081055, 0.6233425140380859, -0.17660894989967346, -0.6049427390098572, 0.13058899343013763, 0.021139835938811302, 0.12717996537685394, 0.34388214349746704, -0.00011290809197816998, -0.08402014523744583, 0.5609152913093567, -0.09088154882192612, -0.20776793360710144, -0.2428598403930664, -0.2933354079723358, 0.0893772691488266, -0.1876995861530304, -0.22725778818130493, 0.05193959176540375, 0.17077839374542236, 0.04398918151855469, -0.5675264596939087, 0.31527701020240784, 0.5750640630722046, 0.2217923104763031, -0.09192654490470886, 0.03310991823673248, -0.08004913479089737, 0.3778606951236725, 0.045461662113666534, 0.11142387241125107, 0.44612282514572144, 0.40498220920562744, -0.1060686707496643, -0.06456253677606583, 0.3080866038799286, -0.3914477527141571, -0.09315131604671478, 0.08107904344797134, -0.11042934656143188, 0.24682840704917908, -0.31479158997535706, 0.6316774487495422, 0.16827510297298431, 0.7650759220123291, -0.2163732796907425, -0.08185798674821854, 0.010954943485558033, 0.19510547816753387, -0.27394038438796997, 0.1889478713274002, 0.384622722864151, -0.30760258436203003, 0.09811599552631378, -0.043770093470811844, -0.0178624726831913, -0.24402587115764618, -0.030238989740610123, -0.1594139039516449, 0.06866318732500076, -0.09785470366477966, 0.030989348888397217, -0.2485806792974472, 0.08318878710269928, 0.3431303799152374, -0.08795301616191864, -0.27794620394706726, 0.380645215511322, 0.03563397377729416, 0.17545145750045776, 0.17778582870960236, 0.02999890223145485, -0.062369536608457565, 0.17347243428230286, -0.0929427295923233, 0.18983951210975647, 0.15818646550178528, 0.2450631856918335, 0.09535949677228928, -0.052051641047000885, 0.11899159103631973, 0.3499029576778412, 0.2957804501056671, -0.009254020638763905, -0.06258363276720047, -0.08848373591899872, -0.38422760367393494, -0.3853068947792053, -0.1133604645729065, 0.24777516722679138, 0.21318404376506805, -0.3699798882007599, -0.4927607774734497, 0.32127392292022705, -0.07401220500469208, 0.01947210729122162, -0.060755033046007156, 0.4851861894130707, 0.1276382952928543, 0.047005798667669296, 0.24081355333328247, 0.24301232397556305, -0.1895996481180191, -0.07867678254842758, -0.18977369368076324, 0.1530001312494278, -0.04858727380633354, -0.04386800900101662, 0.1317063719034195, -0.5761977434158325, 0.11765412241220474, -0.018441952764987946, 0.35534679889678955, -0.3205585777759552, -0.3360751271247864, -0.06480124592781067, -0.10945386439561844, 0.08054333925247192, -0.05598953738808632, 0.007181522436439991, 0.1801801472902298, -0.32100093364715576, -0.0618891604244709, -0.026008810847997665, -0.15899726748466492, -0.3241131901741028, -0.047948505729436874, 0.21770258247852325, 0.03250524401664734, 0.12401659041643143, -0.26154789328575134, 0.09874911606311798, 0.4569671154022217, -0.183875173330307, 0.012119924649596214, -0.03662696108222008, -0.19925951957702637, -0.11160639673471451, 0.06852830201387405, 0.7190658450126648, 0.09271804243326187, 0.06175606697797775, 0.44702059030532837, 0.22045116126537323, 0.23966695368289948, -0.03465762361884117, -0.03030058927834034, 0.19475838541984558, -0.21614417433738708, 0.19404835999011993, 0.17385025322437286, -0.603579044342041, -0.0017291115364059806, 0.19102540612220764, 0.04417862370610237, 0.1295309215784073, 0.05473647266626358, -0.3995583951473236, 0.4223298132419586, -0.3531523644924164, 0.18093468248844147, 0.4003559350967407, -0.007808648515492678, 0.04223425313830376, -0.20970025658607483, -0.009491298347711563, -0.059294141829013824, 0.14079104363918304, 0.09565527737140656, 0.03714701533317566, 0.4447284936904907, 0.019530463963747025, 0.5081382989883423, -0.22710266709327698, -0.04350839927792549, 0.20446473360061646, -0.063711017370224, 0.005708822514861822, -0.015799641609191895, -0.2292635440826416, -0.10089710354804993, 0.22680267691612244, -0.038545574992895126, -0.01867947168648243, -0.30475354194641113, -0.1203673779964447, -0.33638960123062134, 0.09419727325439453, -0.17249035835266113, -0.009602137841284275, 0.14682815968990326, 0.08250553160905838, 0.12274857610464096, 0.21110469102859497, -0.24854716658592224, 0.2506258189678192, -0.35100671648979187, 0.12943866848945618, -0.5143998265266418, 0.29016241431236267, 0.036638300865888596, -0.18028119206428528, 0.39105138182640076, 0.5273911356925964, 0.20637425780296326, -0.13158653676509857, -0.2450413852930069, 0.3295736610889435, -0.2906769812107086, 0.6357572674751282, -0.3684306740760803, -0.21028941869735718, 0.15563683211803436, -0.39213451743125916, 0.19127148389816284, 0.13155736029148102, 0.2919699251651764, -0.10651200264692307, 0.22682970762252808, 0.12965884804725647, 0.001944314339198172, 0.06161823123693466, 0.15708798170089722, -0.012435877695679665, 0.3217045068740845, -0.0014807605184614658, -0.19805839657783508, -0.3063356876373291, 0.6450027227401733, 0.21857388317584991, 0.15654125809669495, -0.10520534217357635, -0.24161769449710846, 0.05936114117503166, 0.4993916153907776, -0.09960233420133591, -0.026761630550026894, 0.035702742636203766, -0.010722491890192032, 0.023423220962285995, 0.012714575976133347, -0.14616237580776215, 0.14719556272029877, 0.021703194826841354, -0.10395384579896927, 0.032354358583688736, 0.07160785049200058, -0.3352055847644806, 0.3919106721878052, -0.16878412663936615, 0.014202222228050232, 0.4510243833065033, 0.02829195372760296, 0.012383688241243362, -0.33080264925956726, -0.18815040588378906, 0.04717540368437767, 0.08899074047803879, -0.5186876654624939, 0.08404505252838135, -0.25821465253829956, -0.27286967635154724, -0.2343658208847046, -0.3481082618236542, -0.058816954493522644, -0.10133405029773712, -0.06128081679344177, 0.1418227255344391, -0.076572485268116, 0.06147018447518349, -0.32260772585868835, 0.1384919434785843, -0.16227129101753235, 0.15793150663375854, -0.16137419641017914, -0.16258268058300018, -0.19525741040706635, -0.037463054060935974, 0.41069313883781433, 0.209035724401474, 0.14561207592487335, -0.39061757922172546, 0.07566843181848526, -0.15502960979938507, -0.1967247873544693, 0.19226154685020447, -0.007283664774149656, 0.04450173303484917, -0.0962759256362915, -0.10302557051181793, 0.631420373916626, -0.1873524785041809, 0.07747945189476013, 0.04037567228078842, -0.009592554531991482, 0.4120475947856903, 0.10204949229955673, -0.43084716796875, -0.07132594287395477, -0.23927895724773407, -0.3840433955192566, -0.5113675594329834, -0.21835952997207642, 0.08914946764707565, 0.2631491720676422, 0.4002131521701813, -0.212522953748703, -0.0471869595348835, -0.029674107208848, 0.33166396617889404, -0.12996934354305267, -0.22950267791748047, 0.20375965535640717, -0.2909739911556244, -0.32215213775634766, 0.10637816041707993, 0.06827573478221893, 0.39788368344306946, -0.026679109781980515, -0.2990856468677521, 0.20098964869976044, 0.07369210571050644, 0.08079638332128525, -0.18291857838630676, -0.032664649188518524, 0.16819632053375244, 0.06594502925872803, 0.007422913331538439, -0.07654406130313873, 0.033719126135110855, -0.3264497220516205, -0.025369195267558098, -0.12873882055282593, -0.05596276372671127, 0.20268845558166504, -0.17251326143741608, 0.061919476836919785, 0.4852909743785858, 0.0982009619474411, 0.2867949903011322, 0.051511622965335846, 0.2136230766773224, 0.01472049206495285, -0.24608342349529266, 0.47079741954803467, -0.193065345287323, -0.2243301123380661, 0.35538607835769653, 0.05292042717337608, -0.13485018908977509, -0.21529388427734375, 0.07238820195198059, -0.12091211974620819, -0.29521405696868896, 0.052480682730674744, -0.38988611102104187, 0.24858826398849487, 0.06683842092752457, 0.3902972340583801, 0.07654892653226852, -0.20692555606365204, -0.008462338708341122, 0.35202357172966003, 0.15688367187976837, -0.1251991242170334, 0.014237980358302593, 0.13121949136257172, -0.4801468551158905, 0.34486621618270874, 0.21024803817272186, -0.06401678174734116, -0.043296054005622864, 0.26088082790374756, 0.05872832238674164, -0.1514606773853302, 0.09130414575338364, -0.22611647844314575, 0.26729074120521545, 0.20792488753795624, 0.3854581415653229, -0.25347471237182617, -0.044158030301332474, -0.018020842224359512, 0.4818544387817383, -0.08010116219520569, -0.045968398451805115, -0.09827493131160736, 0.12115923315286636, 0.07315671443939209, 0.1224755272269249, -0.08885163813829422, -0.1877179890871048, -0.2884795069694519, -0.3591708540916443, -0.31031063199043274, -0.2335227131843567, 0.06878205388784409, 0.3102967143058777, -0.13124793767929077, -0.11986060440540314, -0.09535087645053864, -0.0344558022916317, 0.19424638152122498, 0.08229999244213104, 0.09218782931566238, -0.07522480189800262, 0.11568740010261536, -0.01317876297980547, -0.13460715115070343, 0.3768366575241089, 0.7526925802230835, -0.13343873620033264, -0.5529475212097168, -0.11591236293315887, -0.37004873156547546, 0.07848981767892838, 0.4450320601463318, -0.2124757468700409, -0.13393227756023407, 0.05934597924351692, -0.05054674297571182, -0.3437485098838806, -0.2992710471153259, 0.05047544091939926, 0.09934400022029877, -0.27841538190841675, -0.5206423997879028, 0.46235427260398865, -0.12712249159812927, 0.03113977238535881, 0.14685000479221344, 0.04181676730513573, -0.3473615348339081, 0.13728556036949158, 0.006452372297644615, 0.9900811910629272, 0.21408210694789886, -0.13579294085502625, 0.0753420740365982, -0.21749094128608704, 0.05287305265665054, -0.22489537298679352, 0.19801916182041168, -0.28433874249458313, 0.02223990671336651, -0.15183526277542114, 0.20459072291851044, 0.268850177526474, 0.0621272549033165, -0.21585330367088318, 0.19955044984817505, -0.0713997408747673, -0.23757217824459076, -0.04850257560610771, 0.003161474596709013, -0.4199119508266449, -0.2580137252807617, -0.5787042379379272, 0.11728215962648392, -0.11793230473995209, 0.11924666911363602, -0.11890985071659088, 0.03592922165989876, 0.045508310198783875, -0.3266953229904175, -0.4608325660228729, 0.3758397698402405, -0.20244750380516052, -0.15040618181228638, -0.05775141343474388, -0.381442129611969, 0.3199533522129059, 0.05619020387530327, 0.25048699975013733, 0.03919794410467148, -0.04294196516275406, 0.14526307582855225, 0.19812200963497162, -0.03390628099441528, -0.02435896173119545, 0.08548787981271744, 0.23856516182422638, -0.06631927192211151, -0.1132124811410904, 0.2658357620239258, -0.04365914687514305, -0.18375472724437714, 0.255653440952301, 0.0661294162273407, -0.08261805027723312, -0.03951692953705788, -0.043281249701976776, 0.09551806002855301, 0.18098023533821106, -0.06299867480993271, 0.14030618965625763, 0.1276889443397522, -0.2898814380168915, -0.054411325603723526, -0.11074268817901611, -0.26976075768470764, 0.08129063248634338, 0.22043254971504211, -0.03618498519062996, -0.08389490097761154, 0.46143579483032227, 0.40056395530700684, -0.20998962223529816, -0.11762231588363647, -0.3479480743408203, 0.18726018071174622, -0.5638507008552551, 0.03685721009969711, -0.0007270778296515346, 0.006247800309211016, -0.15868984162807465, 0.41700229048728943, -0.13922041654586792, -0.09379632025957108, 0.06255441159009933, -0.5232269167900085, -0.03873087838292122, 0.11545690894126892, -0.010350095108151436, 0.032932035624980927, -0.04875258356332779, 0.00014398367784451693, -0.23697513341903687, 0.11447931081056595, -0.3007834255695343, 0.1038624495267868, -0.20777636766433716, 0.13728348910808563, 0.4296366274356842, -0.03401407599449158, -0.10302010178565979, -0.203947976231575, 0.1335909217596054, 0.3360126316547394, -0.11274931579828262, -0.15000547468662262, -0.00855718832463026, 0.1377922147512436, 0.03241618350148201, -0.08051202446222305, 0.08954965323209763, -0.050176627933979034, -0.10576365888118744, -0.19346414506435394, 0.21797972917556763, 0.14748048782348633, 0.026141604408621788, -0.02772226557135582, -0.4482194185256958, 0.2940059304237366, -0.0006669480935670435, 0.23980966210365295, -0.14850202202796936, 0.43024349212646484, -0.11853024363517761, 0.1239033117890358, -0.2088455855846405, -0.03537352755665779, -0.11504872143268585, 0.25618231296539307, -0.09613620489835739, 0.06558675318956375, 0.4363144040107727, -0.24515511095523834, 0.3256570100784302, 0.48719316720962524, -0.08354673534631729, 0.3445192277431488, -0.4091549515724182, 0.028119554743170738, 0.02626213990151882, 0.21024462580680847, -0.18367700278759003, -0.018114568665623665, -0.4960896670818329, -0.04793953523039818, -0.0900045856833458, 0.22974850237369537, 0.11052334308624268, -0.3707815110683441, -0.2305627018213272, 0.09063788503408432, 0.47675421833992004, -0.00631688954308629, 0.2191634476184845, 0.02310498245060444, 0.04931449145078659, -0.01928519457578659, -0.07029945403337479, 0.2188107818365097, 0.0461868941783905, 0.2720305025577545, -0.4646320044994354, 0.30939263105392456, 0.24947293102741241, 0.18010176718235016, -0.008530889637768269, -0.4411628842353821, 0.0482366606593132, 0.21039585769176483, 0.0852200835943222, 0.4002787470817566, 0.1609911024570465, 0.15860065817832947, -0.14752525091171265, -0.12593410909175873, -0.1613469123840332, 0.041066043078899384, -0.05831795558333397, 0.04725287854671478, -0.3145264983177185, -0.2136668562889099, -0.17241959273815155, -0.10437779128551483, -0.16978232562541962, 0.11930125206708908, 0.07531844824552536, 0.15568988025188446, -0.3476271331310272, -0.3463920056819916, 0.1377420425415039, -0.2096373736858368, 0.24470338225364685, -0.12532836198806763, 0.5787794589996338, 0.4382140040397644, 0.08463616669178009, 0.4258890450000763, 0.30174776911735535, 0.7615878582000732, 0.3058418929576874, 0.05350533500313759, 0.19278044998645782, -0.18105527758598328, -0.1250639110803604, 0.10440568625926971, 0.3984234035015106, 0.04488121718168259, 0.3953414261341095, 0.04396270588040352, 0.1863657683134079, -0.13800543546676636, 0.14439445734024048, 0.26557764410972595, 0.4306209981441498, -0.1914592832326889, 0.26622098684310913, -0.17390979826450348, -0.0572187677025795, -0.419878214597702, -0.09465420246124268, -0.3771163821220398, 0.1363275945186615, 0.2699841558933258, -0.09206459671258926, 0.09514009207487106, -0.008360635489225388, 0.1025269404053688, 0.07400373369455338, 0.3087227940559387, 0.40343761444091797, 0.13573601841926575, 0.02553688921034336, -0.20816127955913544, -0.42976468801498413, 0.32478055357933044, -0.09087282419204712, -0.37412890791893005, -0.06660425662994385, 0.08240774273872375, 0.19193528592586517, 0.11558317393064499, 0.12382160872220993, -0.043221354484558105, 0.383333295583725, 0.0597241148352623, -0.17242221534252167, -0.014609490521252155, 0.2414148598909378, -0.062033094465732574, -0.3025846481323242, -0.3642931878566742, 0.03257283940911293, -0.22731879353523254, 0.07015583664178848, 0.048275887966156006, -0.03996331989765167, -0.09225956350564957, -0.26467108726501465, 0.3722175061702728, 0.06106848642230034, 0.21667660772800446, -0.3107423186302185, -0.2267269790172577, -0.36637696623802185, -0.1446738839149475, -0.15449978411197662, 0.48562341928482056, 0.16166411340236664, 0.2741335332393646, -0.07876945286989212, 0.025311032310128212, -0.26828598976135254, 0.18794114887714386, -0.11796928942203522, 0.2693619132041931, -0.39832785725593567, -0.06192478910088539, -0.13001389801502228, 0.06348086893558502, -0.0002445775317028165, 0.24163658916950226, 0.013725660741329193, 0.07287684082984924, -0.1267952173948288, -0.6861608028411865, 0.4283364415168762, -0.5565599203109741, -0.4156656563282013, 0.0878271758556366, 0.601387619972229, 0.005116674117743969, 0.07253201305866241, -0.6429919600486755, 0.24273674190044403, 0.09482605755329132, -0.2015710473060608, -0.18874776363372803, -0.007277888245880604, -0.12395963072776794, -0.13155344128608704, -0.04032410308718681, 0.08758547157049179, 0.26119524240493774, -0.164968803524971, 0.16412320733070374, -0.40806180238723755 ]
https://github.com/huggingface/datasets/issues/2679
Cannot load the blog_authorship_corpus due to codec errors
Hi @izaskr, thanks again for having reported this issue. After investigation, I have created a Pull Request (#2685) to fix several issues with this dataset: - the `NonMatchingSplitsSizesError` - the `UnicodeDecodeError` Once the Pull Request merged into master, you will be able to load this dataset if you install `datasets` from our GitHub repository master branch. Otherwise, you will be able to use it after our next release, by updating `datasets`: `pip install -U datasets`.
## Describe the bug A codec error is raised while loading the blog_authorship_corpus. ## Steps to reproduce the bug ``` from datasets import load_dataset raw_datasets = load_dataset("blog_authorship_corpus") ``` ## Expected results Loading the dataset without errors. ## Actual results An error similar to the one below was raised for (what seems like) every XML file. /home/izaskr/.cache/huggingface/datasets/downloads/extracted/7cf52524f6517e168604b41c6719292e8f97abbe8f731e638b13423f4212359a/blogs/788358.male.24.Arts.Libra.xml cannot be loaded. Error message: 'utf-8' codec can't decode byte 0xe7 in position 7551: invalid continuation byte Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/load.py", line 856, in load_dataset builder_instance.download_and_prepare( File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/builder.py", line 583, in download_and_prepare self._download_and_prepare( File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/builder.py", line 671, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/utils/info_utils.py", line 74, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=610252351, num_examples=532812, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='train', num_bytes=614706451, num_examples=535568, dataset_name='blog_authorship_corpus')}, {'expected': SplitInfo(name='validation', num_bytes=37500394, num_examples=31277, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='validation', num_bytes=32553710, num_examples=28521, dataset_name='blog_authorship_corpus')}] ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Linux-4.15.0-132-generic-x86_64-with-glibc2.10 - Python version: 3.8.8 - PyArrow version: 4.0.1
75
Cannot load the blog_authorship_corpus due to codec errors ## Describe the bug A codec error is raised while loading the blog_authorship_corpus. ## Steps to reproduce the bug ``` from datasets import load_dataset raw_datasets = load_dataset("blog_authorship_corpus") ``` ## Expected results Loading the dataset without errors. ## Actual results An error similar to the one below was raised for (what seems like) every XML file. /home/izaskr/.cache/huggingface/datasets/downloads/extracted/7cf52524f6517e168604b41c6719292e8f97abbe8f731e638b13423f4212359a/blogs/788358.male.24.Arts.Libra.xml cannot be loaded. Error message: 'utf-8' codec can't decode byte 0xe7 in position 7551: invalid continuation byte Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/load.py", line 856, in load_dataset builder_instance.download_and_prepare( File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/builder.py", line 583, in download_and_prepare self._download_and_prepare( File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/builder.py", line 671, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/utils/info_utils.py", line 74, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=610252351, num_examples=532812, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='train', num_bytes=614706451, num_examples=535568, dataset_name='blog_authorship_corpus')}, {'expected': SplitInfo(name='validation', num_bytes=37500394, num_examples=31277, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='validation', num_bytes=32553710, num_examples=28521, dataset_name='blog_authorship_corpus')}] ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Linux-4.15.0-132-generic-x86_64-with-glibc2.10 - Python version: 3.8.8 - PyArrow version: 4.0.1 Hi @izaskr, thanks again for having reported this issue. After investigation, I have created a Pull Request (#2685) to fix several issues with this dataset: - the `NonMatchingSplitsSizesError` - the `UnicodeDecodeError` Once the Pull Request merged into master, you will be able to load this dataset if you install `datasets` from our GitHub repository master branch. Otherwise, you will be able to use it after our next release, by updating `datasets`: `pip install -U datasets`.
[ -0.2084890753030777, 0.47808170318603516, -0.05400756001472473, 0.3998490869998932, 0.3617139458656311, 0.22684065997600555, 0.07851669192314148, 0.42884427309036255, -0.15867389738559723, 0.24357537925243378, 0.04682815819978714, 0.26792797446250916, -0.06666458398103714, -0.21087335050106049, 0.049083102494478226, 0.017563778907060623, -0.08829986304044724, 0.14268279075622559, 0.2282305359840393, -0.23428121209144592, -0.2054748684167862, 0.18188120424747467, -0.1930258572101593, 0.07302766293287277, -0.2108268290758133, -0.07893285900354385, 0.14611005783081055, 0.6233425140380859, -0.17660894989967346, -0.6049427390098572, 0.13058899343013763, 0.021139835938811302, 0.12717996537685394, 0.34388214349746704, -0.00011290809197816998, -0.08402014523744583, 0.5609152913093567, -0.09088154882192612, -0.20776793360710144, -0.2428598403930664, -0.2933354079723358, 0.0893772691488266, -0.1876995861530304, -0.22725778818130493, 0.05193959176540375, 0.17077839374542236, 0.04398918151855469, -0.5675264596939087, 0.31527701020240784, 0.5750640630722046, 0.2217923104763031, -0.09192654490470886, 0.03310991823673248, -0.08004913479089737, 0.3778606951236725, 0.045461662113666534, 0.11142387241125107, 0.44612282514572144, 0.40498220920562744, -0.1060686707496643, -0.06456253677606583, 0.3080866038799286, -0.3914477527141571, -0.09315131604671478, 0.08107904344797134, -0.11042934656143188, 0.24682840704917908, -0.31479158997535706, 0.6316774487495422, 0.16827510297298431, 0.7650759220123291, -0.2163732796907425, -0.08185798674821854, 0.010954943485558033, 0.19510547816753387, -0.27394038438796997, 0.1889478713274002, 0.384622722864151, -0.30760258436203003, 0.09811599552631378, -0.043770093470811844, -0.0178624726831913, -0.24402587115764618, -0.030238989740610123, -0.1594139039516449, 0.06866318732500076, -0.09785470366477966, 0.030989348888397217, -0.2485806792974472, 0.08318878710269928, 0.3431303799152374, -0.08795301616191864, -0.27794620394706726, 0.380645215511322, 0.03563397377729416, 0.17545145750045776, 0.17778582870960236, 0.02999890223145485, -0.062369536608457565, 0.17347243428230286, -0.0929427295923233, 0.18983951210975647, 0.15818646550178528, 0.2450631856918335, 0.09535949677228928, -0.052051641047000885, 0.11899159103631973, 0.3499029576778412, 0.2957804501056671, -0.009254020638763905, -0.06258363276720047, -0.08848373591899872, -0.38422760367393494, -0.3853068947792053, -0.1133604645729065, 0.24777516722679138, 0.21318404376506805, -0.3699798882007599, -0.4927607774734497, 0.32127392292022705, -0.07401220500469208, 0.01947210729122162, -0.060755033046007156, 0.4851861894130707, 0.1276382952928543, 0.047005798667669296, 0.24081355333328247, 0.24301232397556305, -0.1895996481180191, -0.07867678254842758, -0.18977369368076324, 0.1530001312494278, -0.04858727380633354, -0.04386800900101662, 0.1317063719034195, -0.5761977434158325, 0.11765412241220474, -0.018441952764987946, 0.35534679889678955, -0.3205585777759552, -0.3360751271247864, -0.06480124592781067, -0.10945386439561844, 0.08054333925247192, -0.05598953738808632, 0.007181522436439991, 0.1801801472902298, -0.32100093364715576, -0.0618891604244709, -0.026008810847997665, -0.15899726748466492, -0.3241131901741028, -0.047948505729436874, 0.21770258247852325, 0.03250524401664734, 0.12401659041643143, -0.26154789328575134, 0.09874911606311798, 0.4569671154022217, -0.183875173330307, 0.012119924649596214, -0.03662696108222008, -0.19925951957702637, -0.11160639673471451, 0.06852830201387405, 0.7190658450126648, 0.09271804243326187, 0.06175606697797775, 0.44702059030532837, 0.22045116126537323, 0.23966695368289948, -0.03465762361884117, -0.03030058927834034, 0.19475838541984558, -0.21614417433738708, 0.19404835999011993, 0.17385025322437286, -0.603579044342041, -0.0017291115364059806, 0.19102540612220764, 0.04417862370610237, 0.1295309215784073, 0.05473647266626358, -0.3995583951473236, 0.4223298132419586, -0.3531523644924164, 0.18093468248844147, 0.4003559350967407, -0.007808648515492678, 0.04223425313830376, -0.20970025658607483, -0.009491298347711563, -0.059294141829013824, 0.14079104363918304, 0.09565527737140656, 0.03714701533317566, 0.4447284936904907, 0.019530463963747025, 0.5081382989883423, -0.22710266709327698, -0.04350839927792549, 0.20446473360061646, -0.063711017370224, 0.005708822514861822, -0.015799641609191895, -0.2292635440826416, -0.10089710354804993, 0.22680267691612244, -0.038545574992895126, -0.01867947168648243, -0.30475354194641113, -0.1203673779964447, -0.33638960123062134, 0.09419727325439453, -0.17249035835266113, -0.009602137841284275, 0.14682815968990326, 0.08250553160905838, 0.12274857610464096, 0.21110469102859497, -0.24854716658592224, 0.2506258189678192, -0.35100671648979187, 0.12943866848945618, -0.5143998265266418, 0.29016241431236267, 0.036638300865888596, -0.18028119206428528, 0.39105138182640076, 0.5273911356925964, 0.20637425780296326, -0.13158653676509857, -0.2450413852930069, 0.3295736610889435, -0.2906769812107086, 0.6357572674751282, -0.3684306740760803, -0.21028941869735718, 0.15563683211803436, -0.39213451743125916, 0.19127148389816284, 0.13155736029148102, 0.2919699251651764, -0.10651200264692307, 0.22682970762252808, 0.12965884804725647, 0.001944314339198172, 0.06161823123693466, 0.15708798170089722, -0.012435877695679665, 0.3217045068740845, -0.0014807605184614658, -0.19805839657783508, -0.3063356876373291, 0.6450027227401733, 0.21857388317584991, 0.15654125809669495, -0.10520534217357635, -0.24161769449710846, 0.05936114117503166, 0.4993916153907776, -0.09960233420133591, -0.026761630550026894, 0.035702742636203766, -0.010722491890192032, 0.023423220962285995, 0.012714575976133347, -0.14616237580776215, 0.14719556272029877, 0.021703194826841354, -0.10395384579896927, 0.032354358583688736, 0.07160785049200058, -0.3352055847644806, 0.3919106721878052, -0.16878412663936615, 0.014202222228050232, 0.4510243833065033, 0.02829195372760296, 0.012383688241243362, -0.33080264925956726, -0.18815040588378906, 0.04717540368437767, 0.08899074047803879, -0.5186876654624939, 0.08404505252838135, -0.25821465253829956, -0.27286967635154724, -0.2343658208847046, -0.3481082618236542, -0.058816954493522644, -0.10133405029773712, -0.06128081679344177, 0.1418227255344391, -0.076572485268116, 0.06147018447518349, -0.32260772585868835, 0.1384919434785843, -0.16227129101753235, 0.15793150663375854, -0.16137419641017914, -0.16258268058300018, -0.19525741040706635, -0.037463054060935974, 0.41069313883781433, 0.209035724401474, 0.14561207592487335, -0.39061757922172546, 0.07566843181848526, -0.15502960979938507, -0.1967247873544693, 0.19226154685020447, -0.007283664774149656, 0.04450173303484917, -0.0962759256362915, -0.10302557051181793, 0.631420373916626, -0.1873524785041809, 0.07747945189476013, 0.04037567228078842, -0.009592554531991482, 0.4120475947856903, 0.10204949229955673, -0.43084716796875, -0.07132594287395477, -0.23927895724773407, -0.3840433955192566, -0.5113675594329834, -0.21835952997207642, 0.08914946764707565, 0.2631491720676422, 0.4002131521701813, -0.212522953748703, -0.0471869595348835, -0.029674107208848, 0.33166396617889404, -0.12996934354305267, -0.22950267791748047, 0.20375965535640717, -0.2909739911556244, -0.32215213775634766, 0.10637816041707993, 0.06827573478221893, 0.39788368344306946, -0.026679109781980515, -0.2990856468677521, 0.20098964869976044, 0.07369210571050644, 0.08079638332128525, -0.18291857838630676, -0.032664649188518524, 0.16819632053375244, 0.06594502925872803, 0.007422913331538439, -0.07654406130313873, 0.033719126135110855, -0.3264497220516205, -0.025369195267558098, -0.12873882055282593, -0.05596276372671127, 0.20268845558166504, -0.17251326143741608, 0.061919476836919785, 0.4852909743785858, 0.0982009619474411, 0.2867949903011322, 0.051511622965335846, 0.2136230766773224, 0.01472049206495285, -0.24608342349529266, 0.47079741954803467, -0.193065345287323, -0.2243301123380661, 0.35538607835769653, 0.05292042717337608, -0.13485018908977509, -0.21529388427734375, 0.07238820195198059, -0.12091211974620819, -0.29521405696868896, 0.052480682730674744, -0.38988611102104187, 0.24858826398849487, 0.06683842092752457, 0.3902972340583801, 0.07654892653226852, -0.20692555606365204, -0.008462338708341122, 0.35202357172966003, 0.15688367187976837, -0.1251991242170334, 0.014237980358302593, 0.13121949136257172, -0.4801468551158905, 0.34486621618270874, 0.21024803817272186, -0.06401678174734116, -0.043296054005622864, 0.26088082790374756, 0.05872832238674164, -0.1514606773853302, 0.09130414575338364, -0.22611647844314575, 0.26729074120521545, 0.20792488753795624, 0.3854581415653229, -0.25347471237182617, -0.044158030301332474, -0.018020842224359512, 0.4818544387817383, -0.08010116219520569, -0.045968398451805115, -0.09827493131160736, 0.12115923315286636, 0.07315671443939209, 0.1224755272269249, -0.08885163813829422, -0.1877179890871048, -0.2884795069694519, -0.3591708540916443, -0.31031063199043274, -0.2335227131843567, 0.06878205388784409, 0.3102967143058777, -0.13124793767929077, -0.11986060440540314, -0.09535087645053864, -0.0344558022916317, 0.19424638152122498, 0.08229999244213104, 0.09218782931566238, -0.07522480189800262, 0.11568740010261536, -0.01317876297980547, -0.13460715115070343, 0.3768366575241089, 0.7526925802230835, -0.13343873620033264, -0.5529475212097168, -0.11591236293315887, -0.37004873156547546, 0.07848981767892838, 0.4450320601463318, -0.2124757468700409, -0.13393227756023407, 0.05934597924351692, -0.05054674297571182, -0.3437485098838806, -0.2992710471153259, 0.05047544091939926, 0.09934400022029877, -0.27841538190841675, -0.5206423997879028, 0.46235427260398865, -0.12712249159812927, 0.03113977238535881, 0.14685000479221344, 0.04181676730513573, -0.3473615348339081, 0.13728556036949158, 0.006452372297644615, 0.9900811910629272, 0.21408210694789886, -0.13579294085502625, 0.0753420740365982, -0.21749094128608704, 0.05287305265665054, -0.22489537298679352, 0.19801916182041168, -0.28433874249458313, 0.02223990671336651, -0.15183526277542114, 0.20459072291851044, 0.268850177526474, 0.0621272549033165, -0.21585330367088318, 0.19955044984817505, -0.0713997408747673, -0.23757217824459076, -0.04850257560610771, 0.003161474596709013, -0.4199119508266449, -0.2580137252807617, -0.5787042379379272, 0.11728215962648392, -0.11793230473995209, 0.11924666911363602, -0.11890985071659088, 0.03592922165989876, 0.045508310198783875, -0.3266953229904175, -0.4608325660228729, 0.3758397698402405, -0.20244750380516052, -0.15040618181228638, -0.05775141343474388, -0.381442129611969, 0.3199533522129059, 0.05619020387530327, 0.25048699975013733, 0.03919794410467148, -0.04294196516275406, 0.14526307582855225, 0.19812200963497162, -0.03390628099441528, -0.02435896173119545, 0.08548787981271744, 0.23856516182422638, -0.06631927192211151, -0.1132124811410904, 0.2658357620239258, -0.04365914687514305, -0.18375472724437714, 0.255653440952301, 0.0661294162273407, -0.08261805027723312, -0.03951692953705788, -0.043281249701976776, 0.09551806002855301, 0.18098023533821106, -0.06299867480993271, 0.14030618965625763, 0.1276889443397522, -0.2898814380168915, -0.054411325603723526, -0.11074268817901611, -0.26976075768470764, 0.08129063248634338, 0.22043254971504211, -0.03618498519062996, -0.08389490097761154, 0.46143579483032227, 0.40056395530700684, -0.20998962223529816, -0.11762231588363647, -0.3479480743408203, 0.18726018071174622, -0.5638507008552551, 0.03685721009969711, -0.0007270778296515346, 0.006247800309211016, -0.15868984162807465, 0.41700229048728943, -0.13922041654586792, -0.09379632025957108, 0.06255441159009933, -0.5232269167900085, -0.03873087838292122, 0.11545690894126892, -0.010350095108151436, 0.032932035624980927, -0.04875258356332779, 0.00014398367784451693, -0.23697513341903687, 0.11447931081056595, -0.3007834255695343, 0.1038624495267868, -0.20777636766433716, 0.13728348910808563, 0.4296366274356842, -0.03401407599449158, -0.10302010178565979, -0.203947976231575, 0.1335909217596054, 0.3360126316547394, -0.11274931579828262, -0.15000547468662262, -0.00855718832463026, 0.1377922147512436, 0.03241618350148201, -0.08051202446222305, 0.08954965323209763, -0.050176627933979034, -0.10576365888118744, -0.19346414506435394, 0.21797972917556763, 0.14748048782348633, 0.026141604408621788, -0.02772226557135582, -0.4482194185256958, 0.2940059304237366, -0.0006669480935670435, 0.23980966210365295, -0.14850202202796936, 0.43024349212646484, -0.11853024363517761, 0.1239033117890358, -0.2088455855846405, -0.03537352755665779, -0.11504872143268585, 0.25618231296539307, -0.09613620489835739, 0.06558675318956375, 0.4363144040107727, -0.24515511095523834, 0.3256570100784302, 0.48719316720962524, -0.08354673534631729, 0.3445192277431488, -0.4091549515724182, 0.028119554743170738, 0.02626213990151882, 0.21024462580680847, -0.18367700278759003, -0.018114568665623665, -0.4960896670818329, -0.04793953523039818, -0.0900045856833458, 0.22974850237369537, 0.11052334308624268, -0.3707815110683441, -0.2305627018213272, 0.09063788503408432, 0.47675421833992004, -0.00631688954308629, 0.2191634476184845, 0.02310498245060444, 0.04931449145078659, -0.01928519457578659, -0.07029945403337479, 0.2188107818365097, 0.0461868941783905, 0.2720305025577545, -0.4646320044994354, 0.30939263105392456, 0.24947293102741241, 0.18010176718235016, -0.008530889637768269, -0.4411628842353821, 0.0482366606593132, 0.21039585769176483, 0.0852200835943222, 0.4002787470817566, 0.1609911024570465, 0.15860065817832947, -0.14752525091171265, -0.12593410909175873, -0.1613469123840332, 0.041066043078899384, -0.05831795558333397, 0.04725287854671478, -0.3145264983177185, -0.2136668562889099, -0.17241959273815155, -0.10437779128551483, -0.16978232562541962, 0.11930125206708908, 0.07531844824552536, 0.15568988025188446, -0.3476271331310272, -0.3463920056819916, 0.1377420425415039, -0.2096373736858368, 0.24470338225364685, -0.12532836198806763, 0.5787794589996338, 0.4382140040397644, 0.08463616669178009, 0.4258890450000763, 0.30174776911735535, 0.7615878582000732, 0.3058418929576874, 0.05350533500313759, 0.19278044998645782, -0.18105527758598328, -0.1250639110803604, 0.10440568625926971, 0.3984234035015106, 0.04488121718168259, 0.3953414261341095, 0.04396270588040352, 0.1863657683134079, -0.13800543546676636, 0.14439445734024048, 0.26557764410972595, 0.4306209981441498, -0.1914592832326889, 0.26622098684310913, -0.17390979826450348, -0.0572187677025795, -0.419878214597702, -0.09465420246124268, -0.3771163821220398, 0.1363275945186615, 0.2699841558933258, -0.09206459671258926, 0.09514009207487106, -0.008360635489225388, 0.1025269404053688, 0.07400373369455338, 0.3087227940559387, 0.40343761444091797, 0.13573601841926575, 0.02553688921034336, -0.20816127955913544, -0.42976468801498413, 0.32478055357933044, -0.09087282419204712, -0.37412890791893005, -0.06660425662994385, 0.08240774273872375, 0.19193528592586517, 0.11558317393064499, 0.12382160872220993, -0.043221354484558105, 0.383333295583725, 0.0597241148352623, -0.17242221534252167, -0.014609490521252155, 0.2414148598909378, -0.062033094465732574, -0.3025846481323242, -0.3642931878566742, 0.03257283940911293, -0.22731879353523254, 0.07015583664178848, 0.048275887966156006, -0.03996331989765167, -0.09225956350564957, -0.26467108726501465, 0.3722175061702728, 0.06106848642230034, 0.21667660772800446, -0.3107423186302185, -0.2267269790172577, -0.36637696623802185, -0.1446738839149475, -0.15449978411197662, 0.48562341928482056, 0.16166411340236664, 0.2741335332393646, -0.07876945286989212, 0.025311032310128212, -0.26828598976135254, 0.18794114887714386, -0.11796928942203522, 0.2693619132041931, -0.39832785725593567, -0.06192478910088539, -0.13001389801502228, 0.06348086893558502, -0.0002445775317028165, 0.24163658916950226, 0.013725660741329193, 0.07287684082984924, -0.1267952173948288, -0.6861608028411865, 0.4283364415168762, -0.5565599203109741, -0.4156656563282013, 0.0878271758556366, 0.601387619972229, 0.005116674117743969, 0.07253201305866241, -0.6429919600486755, 0.24273674190044403, 0.09482605755329132, -0.2015710473060608, -0.18874776363372803, -0.007277888245880604, -0.12395963072776794, -0.13155344128608704, -0.04032410308718681, 0.08758547157049179, 0.26119524240493774, -0.164968803524971, 0.16412320733070374, -0.40806180238723755 ]
https://github.com/huggingface/datasets/issues/2679
Cannot load the blog_authorship_corpus due to codec errors
@albertvillanova Can you shed light on how this fix works? We're experiencing a similar issue. If we run several runs (eg in a Wandb sweep) the first run "works" but then we get `NonMatchingSplitsSizesError` | run num | actual train examples # | expected example # | recorded example # | | ------- | -------------- | ----------------- | -------- | | 1 | 100 | 100 | 100 | | 2 | 102 | 100 | 102 | | 3 | 100 | 100 | 202 | | 4 | 40 | 100 | 40 | | 5 | 40 | 100 | 40 | | 6 | 40 | 100 | 40 | The second through the nth all crash with ``` datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=19980970, num_examples=100, dataset_name='cies'), 'recorded': SplitInfo(name='train', num_bytes=40163811, num_examples=202, dataset_name='cies')}] ```
## Describe the bug A codec error is raised while loading the blog_authorship_corpus. ## Steps to reproduce the bug ``` from datasets import load_dataset raw_datasets = load_dataset("blog_authorship_corpus") ``` ## Expected results Loading the dataset without errors. ## Actual results An error similar to the one below was raised for (what seems like) every XML file. /home/izaskr/.cache/huggingface/datasets/downloads/extracted/7cf52524f6517e168604b41c6719292e8f97abbe8f731e638b13423f4212359a/blogs/788358.male.24.Arts.Libra.xml cannot be loaded. Error message: 'utf-8' codec can't decode byte 0xe7 in position 7551: invalid continuation byte Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/load.py", line 856, in load_dataset builder_instance.download_and_prepare( File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/builder.py", line 583, in download_and_prepare self._download_and_prepare( File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/builder.py", line 671, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/utils/info_utils.py", line 74, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=610252351, num_examples=532812, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='train', num_bytes=614706451, num_examples=535568, dataset_name='blog_authorship_corpus')}, {'expected': SplitInfo(name='validation', num_bytes=37500394, num_examples=31277, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='validation', num_bytes=32553710, num_examples=28521, dataset_name='blog_authorship_corpus')}] ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Linux-4.15.0-132-generic-x86_64-with-glibc2.10 - Python version: 3.8.8 - PyArrow version: 4.0.1
135
Cannot load the blog_authorship_corpus due to codec errors ## Describe the bug A codec error is raised while loading the blog_authorship_corpus. ## Steps to reproduce the bug ``` from datasets import load_dataset raw_datasets = load_dataset("blog_authorship_corpus") ``` ## Expected results Loading the dataset without errors. ## Actual results An error similar to the one below was raised for (what seems like) every XML file. /home/izaskr/.cache/huggingface/datasets/downloads/extracted/7cf52524f6517e168604b41c6719292e8f97abbe8f731e638b13423f4212359a/blogs/788358.male.24.Arts.Libra.xml cannot be loaded. Error message: 'utf-8' codec can't decode byte 0xe7 in position 7551: invalid continuation byte Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/load.py", line 856, in load_dataset builder_instance.download_and_prepare( File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/builder.py", line 583, in download_and_prepare self._download_and_prepare( File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/builder.py", line 671, in _download_and_prepare verify_splits(self.info.splits, split_dict) File "/home/izaskr/anaconda3/envs/local_vae_older/lib/python3.8/site-packages/datasets/utils/info_utils.py", line 74, in verify_splits raise NonMatchingSplitsSizesError(str(bad_splits)) datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=610252351, num_examples=532812, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='train', num_bytes=614706451, num_examples=535568, dataset_name='blog_authorship_corpus')}, {'expected': SplitInfo(name='validation', num_bytes=37500394, num_examples=31277, dataset_name='blog_authorship_corpus'), 'recorded': SplitInfo(name='validation', num_bytes=32553710, num_examples=28521, dataset_name='blog_authorship_corpus')}] ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Linux-4.15.0-132-generic-x86_64-with-glibc2.10 - Python version: 3.8.8 - PyArrow version: 4.0.1 @albertvillanova Can you shed light on how this fix works? We're experiencing a similar issue. If we run several runs (eg in a Wandb sweep) the first run "works" but then we get `NonMatchingSplitsSizesError` | run num | actual train examples # | expected example # | recorded example # | | ------- | -------------- | ----------------- | -------- | | 1 | 100 | 100 | 100 | | 2 | 102 | 100 | 102 | | 3 | 100 | 100 | 202 | | 4 | 40 | 100 | 40 | | 5 | 40 | 100 | 40 | | 6 | 40 | 100 | 40 | The second through the nth all crash with ``` datasets.utils.info_utils.NonMatchingSplitsSizesError: [{'expected': SplitInfo(name='train', num_bytes=19980970, num_examples=100, dataset_name='cies'), 'recorded': SplitInfo(name='train', num_bytes=40163811, num_examples=202, dataset_name='cies')}] ```
[ -0.2084890753030777, 0.47808170318603516, -0.05400756001472473, 0.3998490869998932, 0.3617139458656311, 0.22684065997600555, 0.07851669192314148, 0.42884427309036255, -0.15867389738559723, 0.24357537925243378, 0.04682815819978714, 0.26792797446250916, -0.06666458398103714, -0.21087335050106049, 0.049083102494478226, 0.017563778907060623, -0.08829986304044724, 0.14268279075622559, 0.2282305359840393, -0.23428121209144592, -0.2054748684167862, 0.18188120424747467, -0.1930258572101593, 0.07302766293287277, -0.2108268290758133, -0.07893285900354385, 0.14611005783081055, 0.6233425140380859, -0.17660894989967346, -0.6049427390098572, 0.13058899343013763, 0.021139835938811302, 0.12717996537685394, 0.34388214349746704, -0.00011290809197816998, -0.08402014523744583, 0.5609152913093567, -0.09088154882192612, -0.20776793360710144, -0.2428598403930664, -0.2933354079723358, 0.0893772691488266, -0.1876995861530304, -0.22725778818130493, 0.05193959176540375, 0.17077839374542236, 0.04398918151855469, -0.5675264596939087, 0.31527701020240784, 0.5750640630722046, 0.2217923104763031, -0.09192654490470886, 0.03310991823673248, -0.08004913479089737, 0.3778606951236725, 0.045461662113666534, 0.11142387241125107, 0.44612282514572144, 0.40498220920562744, -0.1060686707496643, -0.06456253677606583, 0.3080866038799286, -0.3914477527141571, -0.09315131604671478, 0.08107904344797134, -0.11042934656143188, 0.24682840704917908, -0.31479158997535706, 0.6316774487495422, 0.16827510297298431, 0.7650759220123291, -0.2163732796907425, -0.08185798674821854, 0.010954943485558033, 0.19510547816753387, -0.27394038438796997, 0.1889478713274002, 0.384622722864151, -0.30760258436203003, 0.09811599552631378, -0.043770093470811844, -0.0178624726831913, -0.24402587115764618, -0.030238989740610123, -0.1594139039516449, 0.06866318732500076, -0.09785470366477966, 0.030989348888397217, -0.2485806792974472, 0.08318878710269928, 0.3431303799152374, -0.08795301616191864, -0.27794620394706726, 0.380645215511322, 0.03563397377729416, 0.17545145750045776, 0.17778582870960236, 0.02999890223145485, -0.062369536608457565, 0.17347243428230286, -0.0929427295923233, 0.18983951210975647, 0.15818646550178528, 0.2450631856918335, 0.09535949677228928, -0.052051641047000885, 0.11899159103631973, 0.3499029576778412, 0.2957804501056671, -0.009254020638763905, -0.06258363276720047, -0.08848373591899872, -0.38422760367393494, -0.3853068947792053, -0.1133604645729065, 0.24777516722679138, 0.21318404376506805, -0.3699798882007599, -0.4927607774734497, 0.32127392292022705, -0.07401220500469208, 0.01947210729122162, -0.060755033046007156, 0.4851861894130707, 0.1276382952928543, 0.047005798667669296, 0.24081355333328247, 0.24301232397556305, -0.1895996481180191, -0.07867678254842758, -0.18977369368076324, 0.1530001312494278, -0.04858727380633354, -0.04386800900101662, 0.1317063719034195, -0.5761977434158325, 0.11765412241220474, -0.018441952764987946, 0.35534679889678955, -0.3205585777759552, -0.3360751271247864, -0.06480124592781067, -0.10945386439561844, 0.08054333925247192, -0.05598953738808632, 0.007181522436439991, 0.1801801472902298, -0.32100093364715576, -0.0618891604244709, -0.026008810847997665, -0.15899726748466492, -0.3241131901741028, -0.047948505729436874, 0.21770258247852325, 0.03250524401664734, 0.12401659041643143, -0.26154789328575134, 0.09874911606311798, 0.4569671154022217, -0.183875173330307, 0.012119924649596214, -0.03662696108222008, -0.19925951957702637, -0.11160639673471451, 0.06852830201387405, 0.7190658450126648, 0.09271804243326187, 0.06175606697797775, 0.44702059030532837, 0.22045116126537323, 0.23966695368289948, -0.03465762361884117, -0.03030058927834034, 0.19475838541984558, -0.21614417433738708, 0.19404835999011993, 0.17385025322437286, -0.603579044342041, -0.0017291115364059806, 0.19102540612220764, 0.04417862370610237, 0.1295309215784073, 0.05473647266626358, -0.3995583951473236, 0.4223298132419586, -0.3531523644924164, 0.18093468248844147, 0.4003559350967407, -0.007808648515492678, 0.04223425313830376, -0.20970025658607483, -0.009491298347711563, -0.059294141829013824, 0.14079104363918304, 0.09565527737140656, 0.03714701533317566, 0.4447284936904907, 0.019530463963747025, 0.5081382989883423, -0.22710266709327698, -0.04350839927792549, 0.20446473360061646, -0.063711017370224, 0.005708822514861822, -0.015799641609191895, -0.2292635440826416, -0.10089710354804993, 0.22680267691612244, -0.038545574992895126, -0.01867947168648243, -0.30475354194641113, -0.1203673779964447, -0.33638960123062134, 0.09419727325439453, -0.17249035835266113, -0.009602137841284275, 0.14682815968990326, 0.08250553160905838, 0.12274857610464096, 0.21110469102859497, -0.24854716658592224, 0.2506258189678192, -0.35100671648979187, 0.12943866848945618, -0.5143998265266418, 0.29016241431236267, 0.036638300865888596, -0.18028119206428528, 0.39105138182640076, 0.5273911356925964, 0.20637425780296326, -0.13158653676509857, -0.2450413852930069, 0.3295736610889435, -0.2906769812107086, 0.6357572674751282, -0.3684306740760803, -0.21028941869735718, 0.15563683211803436, -0.39213451743125916, 0.19127148389816284, 0.13155736029148102, 0.2919699251651764, -0.10651200264692307, 0.22682970762252808, 0.12965884804725647, 0.001944314339198172, 0.06161823123693466, 0.15708798170089722, -0.012435877695679665, 0.3217045068740845, -0.0014807605184614658, -0.19805839657783508, -0.3063356876373291, 0.6450027227401733, 0.21857388317584991, 0.15654125809669495, -0.10520534217357635, -0.24161769449710846, 0.05936114117503166, 0.4993916153907776, -0.09960233420133591, -0.026761630550026894, 0.035702742636203766, -0.010722491890192032, 0.023423220962285995, 0.012714575976133347, -0.14616237580776215, 0.14719556272029877, 0.021703194826841354, -0.10395384579896927, 0.032354358583688736, 0.07160785049200058, -0.3352055847644806, 0.3919106721878052, -0.16878412663936615, 0.014202222228050232, 0.4510243833065033, 0.02829195372760296, 0.012383688241243362, -0.33080264925956726, -0.18815040588378906, 0.04717540368437767, 0.08899074047803879, -0.5186876654624939, 0.08404505252838135, -0.25821465253829956, -0.27286967635154724, -0.2343658208847046, -0.3481082618236542, -0.058816954493522644, -0.10133405029773712, -0.06128081679344177, 0.1418227255344391, -0.076572485268116, 0.06147018447518349, -0.32260772585868835, 0.1384919434785843, -0.16227129101753235, 0.15793150663375854, -0.16137419641017914, -0.16258268058300018, -0.19525741040706635, -0.037463054060935974, 0.41069313883781433, 0.209035724401474, 0.14561207592487335, -0.39061757922172546, 0.07566843181848526, -0.15502960979938507, -0.1967247873544693, 0.19226154685020447, -0.007283664774149656, 0.04450173303484917, -0.0962759256362915, -0.10302557051181793, 0.631420373916626, -0.1873524785041809, 0.07747945189476013, 0.04037567228078842, -0.009592554531991482, 0.4120475947856903, 0.10204949229955673, -0.43084716796875, -0.07132594287395477, -0.23927895724773407, -0.3840433955192566, -0.5113675594329834, -0.21835952997207642, 0.08914946764707565, 0.2631491720676422, 0.4002131521701813, -0.212522953748703, -0.0471869595348835, -0.029674107208848, 0.33166396617889404, -0.12996934354305267, -0.22950267791748047, 0.20375965535640717, -0.2909739911556244, -0.32215213775634766, 0.10637816041707993, 0.06827573478221893, 0.39788368344306946, -0.026679109781980515, -0.2990856468677521, 0.20098964869976044, 0.07369210571050644, 0.08079638332128525, -0.18291857838630676, -0.032664649188518524, 0.16819632053375244, 0.06594502925872803, 0.007422913331538439, -0.07654406130313873, 0.033719126135110855, -0.3264497220516205, -0.025369195267558098, -0.12873882055282593, -0.05596276372671127, 0.20268845558166504, -0.17251326143741608, 0.061919476836919785, 0.4852909743785858, 0.0982009619474411, 0.2867949903011322, 0.051511622965335846, 0.2136230766773224, 0.01472049206495285, -0.24608342349529266, 0.47079741954803467, -0.193065345287323, -0.2243301123380661, 0.35538607835769653, 0.05292042717337608, -0.13485018908977509, -0.21529388427734375, 0.07238820195198059, -0.12091211974620819, -0.29521405696868896, 0.052480682730674744, -0.38988611102104187, 0.24858826398849487, 0.06683842092752457, 0.3902972340583801, 0.07654892653226852, -0.20692555606365204, -0.008462338708341122, 0.35202357172966003, 0.15688367187976837, -0.1251991242170334, 0.014237980358302593, 0.13121949136257172, -0.4801468551158905, 0.34486621618270874, 0.21024803817272186, -0.06401678174734116, -0.043296054005622864, 0.26088082790374756, 0.05872832238674164, -0.1514606773853302, 0.09130414575338364, -0.22611647844314575, 0.26729074120521545, 0.20792488753795624, 0.3854581415653229, -0.25347471237182617, -0.044158030301332474, -0.018020842224359512, 0.4818544387817383, -0.08010116219520569, -0.045968398451805115, -0.09827493131160736, 0.12115923315286636, 0.07315671443939209, 0.1224755272269249, -0.08885163813829422, -0.1877179890871048, -0.2884795069694519, -0.3591708540916443, -0.31031063199043274, -0.2335227131843567, 0.06878205388784409, 0.3102967143058777, -0.13124793767929077, -0.11986060440540314, -0.09535087645053864, -0.0344558022916317, 0.19424638152122498, 0.08229999244213104, 0.09218782931566238, -0.07522480189800262, 0.11568740010261536, -0.01317876297980547, -0.13460715115070343, 0.3768366575241089, 0.7526925802230835, -0.13343873620033264, -0.5529475212097168, -0.11591236293315887, -0.37004873156547546, 0.07848981767892838, 0.4450320601463318, -0.2124757468700409, -0.13393227756023407, 0.05934597924351692, -0.05054674297571182, -0.3437485098838806, -0.2992710471153259, 0.05047544091939926, 0.09934400022029877, -0.27841538190841675, -0.5206423997879028, 0.46235427260398865, -0.12712249159812927, 0.03113977238535881, 0.14685000479221344, 0.04181676730513573, -0.3473615348339081, 0.13728556036949158, 0.006452372297644615, 0.9900811910629272, 0.21408210694789886, -0.13579294085502625, 0.0753420740365982, -0.21749094128608704, 0.05287305265665054, -0.22489537298679352, 0.19801916182041168, -0.28433874249458313, 0.02223990671336651, -0.15183526277542114, 0.20459072291851044, 0.268850177526474, 0.0621272549033165, -0.21585330367088318, 0.19955044984817505, -0.0713997408747673, -0.23757217824459076, -0.04850257560610771, 0.003161474596709013, -0.4199119508266449, -0.2580137252807617, -0.5787042379379272, 0.11728215962648392, -0.11793230473995209, 0.11924666911363602, -0.11890985071659088, 0.03592922165989876, 0.045508310198783875, -0.3266953229904175, -0.4608325660228729, 0.3758397698402405, -0.20244750380516052, -0.15040618181228638, -0.05775141343474388, -0.381442129611969, 0.3199533522129059, 0.05619020387530327, 0.25048699975013733, 0.03919794410467148, -0.04294196516275406, 0.14526307582855225, 0.19812200963497162, -0.03390628099441528, -0.02435896173119545, 0.08548787981271744, 0.23856516182422638, -0.06631927192211151, -0.1132124811410904, 0.2658357620239258, -0.04365914687514305, -0.18375472724437714, 0.255653440952301, 0.0661294162273407, -0.08261805027723312, -0.03951692953705788, -0.043281249701976776, 0.09551806002855301, 0.18098023533821106, -0.06299867480993271, 0.14030618965625763, 0.1276889443397522, -0.2898814380168915, -0.054411325603723526, -0.11074268817901611, -0.26976075768470764, 0.08129063248634338, 0.22043254971504211, -0.03618498519062996, -0.08389490097761154, 0.46143579483032227, 0.40056395530700684, -0.20998962223529816, -0.11762231588363647, -0.3479480743408203, 0.18726018071174622, -0.5638507008552551, 0.03685721009969711, -0.0007270778296515346, 0.006247800309211016, -0.15868984162807465, 0.41700229048728943, -0.13922041654586792, -0.09379632025957108, 0.06255441159009933, -0.5232269167900085, -0.03873087838292122, 0.11545690894126892, -0.010350095108151436, 0.032932035624980927, -0.04875258356332779, 0.00014398367784451693, -0.23697513341903687, 0.11447931081056595, -0.3007834255695343, 0.1038624495267868, -0.20777636766433716, 0.13728348910808563, 0.4296366274356842, -0.03401407599449158, -0.10302010178565979, -0.203947976231575, 0.1335909217596054, 0.3360126316547394, -0.11274931579828262, -0.15000547468662262, -0.00855718832463026, 0.1377922147512436, 0.03241618350148201, -0.08051202446222305, 0.08954965323209763, -0.050176627933979034, -0.10576365888118744, -0.19346414506435394, 0.21797972917556763, 0.14748048782348633, 0.026141604408621788, -0.02772226557135582, -0.4482194185256958, 0.2940059304237366, -0.0006669480935670435, 0.23980966210365295, -0.14850202202796936, 0.43024349212646484, -0.11853024363517761, 0.1239033117890358, -0.2088455855846405, -0.03537352755665779, -0.11504872143268585, 0.25618231296539307, -0.09613620489835739, 0.06558675318956375, 0.4363144040107727, -0.24515511095523834, 0.3256570100784302, 0.48719316720962524, -0.08354673534631729, 0.3445192277431488, -0.4091549515724182, 0.028119554743170738, 0.02626213990151882, 0.21024462580680847, -0.18367700278759003, -0.018114568665623665, -0.4960896670818329, -0.04793953523039818, -0.0900045856833458, 0.22974850237369537, 0.11052334308624268, -0.3707815110683441, -0.2305627018213272, 0.09063788503408432, 0.47675421833992004, -0.00631688954308629, 0.2191634476184845, 0.02310498245060444, 0.04931449145078659, -0.01928519457578659, -0.07029945403337479, 0.2188107818365097, 0.0461868941783905, 0.2720305025577545, -0.4646320044994354, 0.30939263105392456, 0.24947293102741241, 0.18010176718235016, -0.008530889637768269, -0.4411628842353821, 0.0482366606593132, 0.21039585769176483, 0.0852200835943222, 0.4002787470817566, 0.1609911024570465, 0.15860065817832947, -0.14752525091171265, -0.12593410909175873, -0.1613469123840332, 0.041066043078899384, -0.05831795558333397, 0.04725287854671478, -0.3145264983177185, -0.2136668562889099, -0.17241959273815155, -0.10437779128551483, -0.16978232562541962, 0.11930125206708908, 0.07531844824552536, 0.15568988025188446, -0.3476271331310272, -0.3463920056819916, 0.1377420425415039, -0.2096373736858368, 0.24470338225364685, -0.12532836198806763, 0.5787794589996338, 0.4382140040397644, 0.08463616669178009, 0.4258890450000763, 0.30174776911735535, 0.7615878582000732, 0.3058418929576874, 0.05350533500313759, 0.19278044998645782, -0.18105527758598328, -0.1250639110803604, 0.10440568625926971, 0.3984234035015106, 0.04488121718168259, 0.3953414261341095, 0.04396270588040352, 0.1863657683134079, -0.13800543546676636, 0.14439445734024048, 0.26557764410972595, 0.4306209981441498, -0.1914592832326889, 0.26622098684310913, -0.17390979826450348, -0.0572187677025795, -0.419878214597702, -0.09465420246124268, -0.3771163821220398, 0.1363275945186615, 0.2699841558933258, -0.09206459671258926, 0.09514009207487106, -0.008360635489225388, 0.1025269404053688, 0.07400373369455338, 0.3087227940559387, 0.40343761444091797, 0.13573601841926575, 0.02553688921034336, -0.20816127955913544, -0.42976468801498413, 0.32478055357933044, -0.09087282419204712, -0.37412890791893005, -0.06660425662994385, 0.08240774273872375, 0.19193528592586517, 0.11558317393064499, 0.12382160872220993, -0.043221354484558105, 0.383333295583725, 0.0597241148352623, -0.17242221534252167, -0.014609490521252155, 0.2414148598909378, -0.062033094465732574, -0.3025846481323242, -0.3642931878566742, 0.03257283940911293, -0.22731879353523254, 0.07015583664178848, 0.048275887966156006, -0.03996331989765167, -0.09225956350564957, -0.26467108726501465, 0.3722175061702728, 0.06106848642230034, 0.21667660772800446, -0.3107423186302185, -0.2267269790172577, -0.36637696623802185, -0.1446738839149475, -0.15449978411197662, 0.48562341928482056, 0.16166411340236664, 0.2741335332393646, -0.07876945286989212, 0.025311032310128212, -0.26828598976135254, 0.18794114887714386, -0.11796928942203522, 0.2693619132041931, -0.39832785725593567, -0.06192478910088539, -0.13001389801502228, 0.06348086893558502, -0.0002445775317028165, 0.24163658916950226, 0.013725660741329193, 0.07287684082984924, -0.1267952173948288, -0.6861608028411865, 0.4283364415168762, -0.5565599203109741, -0.4156656563282013, 0.0878271758556366, 0.601387619972229, 0.005116674117743969, 0.07253201305866241, -0.6429919600486755, 0.24273674190044403, 0.09482605755329132, -0.2015710473060608, -0.18874776363372803, -0.007277888245880604, -0.12395963072776794, -0.13155344128608704, -0.04032410308718681, 0.08758547157049179, 0.26119524240493774, -0.164968803524971, 0.16412320733070374, -0.40806180238723755 ]
https://github.com/huggingface/datasets/issues/2678
Import Error in Kaggle notebook
@lhoestq I did, and then let pip handle the installation in `pip import datasets`. I also tried using conda but it gives the same error. Edit: pyarrow version on kaggle is 4.0.0, it gets replaced with 4.0.1. So, I don't think uninstalling will change anything. ``` Install Trace of datasets: Collecting datasets Downloading datasets-1.9.0-py3-none-any.whl (262 kB) |████████████████████████████████| 262 kB 834 kB/s eta 0:00:01 Requirement already satisfied: dill in /opt/conda/lib/python3.7/site-packages (from datasets) (0.3.4) Collecting pyarrow!=4.0.0,>=1.0.0 Downloading pyarrow-4.0.1-cp37-cp37m-manylinux2014_x86_64.whl (21.8 MB) |████████████████████████████████| 21.8 MB 6.2 MB/s eta 0:00:01 Requirement already satisfied: importlib-metadata in /opt/conda/lib/python3.7/site-packages (from datasets) (3.4.0) Requirement already satisfied: huggingface-hub<0.1.0 in /opt/conda/lib/python3.7/site-packages (from datasets) (0.0.8) Requirement already satisfied: pandas in /opt/conda/lib/python3.7/site-packages (from datasets) (1.2.4) Requirement already satisfied: requests>=2.19.0 in /opt/conda/lib/python3.7/site-packages (from datasets) (2.25.1) Requirement already satisfied: fsspec>=2021.05.0 in /opt/conda/lib/python3.7/site-packages (from datasets) (2021.6.1) Requirement already satisfied: multiprocess in /opt/conda/lib/python3.7/site-packages (from datasets) (0.70.12.2) Requirement already satisfied: packaging in /opt/conda/lib/python3.7/site-packages (from datasets) (20.9) Collecting xxhash Downloading xxhash-2.0.2-cp37-cp37m-manylinux2010_x86_64.whl (243 kB) |████████████████████████████████| 243 kB 23.7 MB/s eta 0:00:01 Requirement already satisfied: numpy>=1.17 in /opt/conda/lib/python3.7/site-packages (from datasets) (1.19.5) Requirement already satisfied: tqdm>=4.27 in /opt/conda/lib/python3.7/site-packages (from datasets) (4.61.1) Requirement already satisfied: filelock in /opt/conda/lib/python3.7/site-packages (from huggingface-hub<0.1.0->datasets) (3.0.12) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /opt/conda/lib/python3.7/site-packages (from requests>=2.19.0->datasets) (1.26.5) Requirement already satisfied: idna<3,>=2.5 in /opt/conda/lib/python3.7/site-packages (from requests>=2.19.0->datasets) (2.10) Requirement already satisfied: certifi>=2017.4.17 in /opt/conda/lib/python3.7/site-packages (from requests>=2.19.0->datasets) (2021.5.30) Requirement already satisfied: chardet<5,>=3.0.2 in /opt/conda/lib/python3.7/site-packages (from requests>=2.19.0->datasets) (4.0.0) Requirement already satisfied: typing-extensions>=3.6.4 in /opt/conda/lib/python3.7/site-packages (from importlib-metadata->datasets) (3.7.4.3) Requirement already satisfied: zipp>=0.5 in /opt/conda/lib/python3.7/site-packages (from importlib-metadata->datasets) (3.4.1) Requirement already satisfied: pyparsing>=2.0.2 in /opt/conda/lib/python3.7/site-packages (from packaging->datasets) (2.4.7) Requirement already satisfied: python-dateutil>=2.7.3 in /opt/conda/lib/python3.7/site-packages (from pandas->datasets) (2.8.1) Requirement already satisfied: pytz>=2017.3 in /opt/conda/lib/python3.7/site-packages (from pandas->datasets) (2021.1) Requirement already satisfied: six>=1.5 in /opt/conda/lib/python3.7/site-packages (from python-dateutil>=2.7.3->pandas->datasets) (1.15.0) Installing collected packages: xxhash, pyarrow, datasets Attempting uninstall: pyarrow Found existing installation: pyarrow 4.0.0 Uninstalling pyarrow-4.0.0: Successfully uninstalled pyarrow-4.0.0 Successfully installed datasets-1.9.0 pyarrow-4.0.1 xxhash-2.0.2 WARNING: Running pip as root will break packages and permissions. You should install packages reliably by using venv: https://pip.pypa.io/warnings/venv ```
## Describe the bug Not able to import datasets library in kaggle notebooks ## Steps to reproduce the bug ```python !pip install datasets import datasets ``` ## Expected results No such error ## Actual results ``` ImportError Traceback (most recent call last) <ipython-input-9-652e886d387f> in <module> ----> 1 import datasets /opt/conda/lib/python3.7/site-packages/datasets/__init__.py in <module> 31 ) 32 ---> 33 from .arrow_dataset import Dataset, concatenate_datasets 34 from .arrow_reader import ArrowReader, ReadInstruction 35 from .arrow_writer import ArrowWriter /opt/conda/lib/python3.7/site-packages/datasets/arrow_dataset.py in <module> 36 import pandas as pd 37 import pyarrow as pa ---> 38 import pyarrow.compute as pc 39 from multiprocess import Pool, RLock 40 from tqdm.auto import tqdm /opt/conda/lib/python3.7/site-packages/pyarrow/compute.py in <module> 16 # under the License. 17 ---> 18 from pyarrow._compute import ( # noqa 19 Function, 20 FunctionOptions, ImportError: /opt/conda/lib/python3.7/site-packages/pyarrow/_compute.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZNK5arrow7compute15KernelSignature8ToStringEv ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Kaggle - Python version: 3.7.10 - PyArrow version: 4.0.1
322
Import Error in Kaggle notebook ## Describe the bug Not able to import datasets library in kaggle notebooks ## Steps to reproduce the bug ```python !pip install datasets import datasets ``` ## Expected results No such error ## Actual results ``` ImportError Traceback (most recent call last) <ipython-input-9-652e886d387f> in <module> ----> 1 import datasets /opt/conda/lib/python3.7/site-packages/datasets/__init__.py in <module> 31 ) 32 ---> 33 from .arrow_dataset import Dataset, concatenate_datasets 34 from .arrow_reader import ArrowReader, ReadInstruction 35 from .arrow_writer import ArrowWriter /opt/conda/lib/python3.7/site-packages/datasets/arrow_dataset.py in <module> 36 import pandas as pd 37 import pyarrow as pa ---> 38 import pyarrow.compute as pc 39 from multiprocess import Pool, RLock 40 from tqdm.auto import tqdm /opt/conda/lib/python3.7/site-packages/pyarrow/compute.py in <module> 16 # under the License. 17 ---> 18 from pyarrow._compute import ( # noqa 19 Function, 20 FunctionOptions, ImportError: /opt/conda/lib/python3.7/site-packages/pyarrow/_compute.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZNK5arrow7compute15KernelSignature8ToStringEv ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Kaggle - Python version: 3.7.10 - PyArrow version: 4.0.1 @lhoestq I did, and then let pip handle the installation in `pip import datasets`. I also tried using conda but it gives the same error. Edit: pyarrow version on kaggle is 4.0.0, it gets replaced with 4.0.1. So, I don't think uninstalling will change anything. ``` Install Trace of datasets: Collecting datasets Downloading datasets-1.9.0-py3-none-any.whl (262 kB) |████████████████████████████████| 262 kB 834 kB/s eta 0:00:01 Requirement already satisfied: dill in /opt/conda/lib/python3.7/site-packages (from datasets) (0.3.4) Collecting pyarrow!=4.0.0,>=1.0.0 Downloading pyarrow-4.0.1-cp37-cp37m-manylinux2014_x86_64.whl (21.8 MB) |████████████████████████████████| 21.8 MB 6.2 MB/s eta 0:00:01 Requirement already satisfied: importlib-metadata in /opt/conda/lib/python3.7/site-packages (from datasets) (3.4.0) Requirement already satisfied: huggingface-hub<0.1.0 in /opt/conda/lib/python3.7/site-packages (from datasets) (0.0.8) Requirement already satisfied: pandas in /opt/conda/lib/python3.7/site-packages (from datasets) (1.2.4) Requirement already satisfied: requests>=2.19.0 in /opt/conda/lib/python3.7/site-packages (from datasets) (2.25.1) Requirement already satisfied: fsspec>=2021.05.0 in /opt/conda/lib/python3.7/site-packages (from datasets) (2021.6.1) Requirement already satisfied: multiprocess in /opt/conda/lib/python3.7/site-packages (from datasets) (0.70.12.2) Requirement already satisfied: packaging in /opt/conda/lib/python3.7/site-packages (from datasets) (20.9) Collecting xxhash Downloading xxhash-2.0.2-cp37-cp37m-manylinux2010_x86_64.whl (243 kB) |████████████████████████████████| 243 kB 23.7 MB/s eta 0:00:01 Requirement already satisfied: numpy>=1.17 in /opt/conda/lib/python3.7/site-packages (from datasets) (1.19.5) Requirement already satisfied: tqdm>=4.27 in /opt/conda/lib/python3.7/site-packages (from datasets) (4.61.1) Requirement already satisfied: filelock in /opt/conda/lib/python3.7/site-packages (from huggingface-hub<0.1.0->datasets) (3.0.12) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /opt/conda/lib/python3.7/site-packages (from requests>=2.19.0->datasets) (1.26.5) Requirement already satisfied: idna<3,>=2.5 in /opt/conda/lib/python3.7/site-packages (from requests>=2.19.0->datasets) (2.10) Requirement already satisfied: certifi>=2017.4.17 in /opt/conda/lib/python3.7/site-packages (from requests>=2.19.0->datasets) (2021.5.30) Requirement already satisfied: chardet<5,>=3.0.2 in /opt/conda/lib/python3.7/site-packages (from requests>=2.19.0->datasets) (4.0.0) Requirement already satisfied: typing-extensions>=3.6.4 in /opt/conda/lib/python3.7/site-packages (from importlib-metadata->datasets) (3.7.4.3) Requirement already satisfied: zipp>=0.5 in /opt/conda/lib/python3.7/site-packages (from importlib-metadata->datasets) (3.4.1) Requirement already satisfied: pyparsing>=2.0.2 in /opt/conda/lib/python3.7/site-packages (from packaging->datasets) (2.4.7) Requirement already satisfied: python-dateutil>=2.7.3 in /opt/conda/lib/python3.7/site-packages (from pandas->datasets) (2.8.1) Requirement already satisfied: pytz>=2017.3 in /opt/conda/lib/python3.7/site-packages (from pandas->datasets) (2021.1) Requirement already satisfied: six>=1.5 in /opt/conda/lib/python3.7/site-packages (from python-dateutil>=2.7.3->pandas->datasets) (1.15.0) Installing collected packages: xxhash, pyarrow, datasets Attempting uninstall: pyarrow Found existing installation: pyarrow 4.0.0 Uninstalling pyarrow-4.0.0: Successfully uninstalled pyarrow-4.0.0 Successfully installed datasets-1.9.0 pyarrow-4.0.1 xxhash-2.0.2 WARNING: Running pip as root will break packages and permissions. You should install packages reliably by using venv: https://pip.pypa.io/warnings/venv ```
[ -0.31573474407196045, -0.08313128352165222, -0.11097206920385361, 0.16588321328163147, 0.17944550514221191, -0.02207917533814907, 0.3208146095275879, 0.27083179354667664, -0.028439415618777275, -0.0525301992893219, -0.1436261534690857, 0.8592842221260071, 0.09228092432022095, 0.23786568641662598, 0.02091038227081299, -0.047910209745168686, 0.16130542755126953, 0.2256399393081665, -0.043486230075359344, 0.05146880820393562, -0.06438527256250381, 0.07712975144386292, -0.2960686683654785, 0.20067650079727173, -0.059248749166727066, -0.3657686412334442, 0.17989453673362732, -0.014297174289822578, -0.2524811029434204, -0.347373366355896, 0.40367263555526733, -0.17204022407531738, 0.16400709748268127, 0.37874558568000793, -0.00010879821638809517, 0.06694173812866211, 0.3618468940258026, -0.02911972440779209, -0.3702857792377472, -0.10772280395030975, -0.21760816872119904, -0.6008002758026123, 0.08328663557767868, -0.28471022844314575, 0.47020870447158813, -0.28577518463134766, -0.2630593478679657, -0.19219255447387695, 0.205612450838089, 0.18169023096561432, 0.22064991295337677, 0.4774705767631531, 0.4807043671607971, 0.009231744334101677, 0.2772543728351593, -0.12895140051841736, -0.20726144313812256, 0.302177757024765, 0.24013151228427887, -0.21127161383628845, 0.11662518978118896, 0.12655648589134216, -0.06769146025180817, 0.030069995671510696, 0.10252270847558975, 0.016816839575767517, -0.15581631660461426, -0.3838818371295929, -0.0678933635354042, 0.05810733884572983, 0.49305063486099243, -0.5021781921386719, -0.2771858274936676, -0.12386775761842728, 0.11405431479215622, 0.0022397111169993877, 0.1400088518857956, 0.17300543189048767, -0.06770285964012146, -0.09622727334499359, 0.24325110018253326, -0.23781128227710724, -0.26516324281692505, 0.18640148639678955, -0.1860893815755844, 0.45965254306793213, -0.04852490499615669, 0.09632783383131027, 0.2849807143211365, -0.134487584233284, 0.6502163410186768, -0.09686867892742157, -0.1329706311225891, 0.11464826762676239, -0.41173651814460754, 0.09713203459978104, 0.010409398935735226, -0.04258773848414421, 0.1165606752038002, 0.10594726353883743, 0.10661447793245316, 0.11889127641916275, 0.09632840007543564, 0.30616387724876404, 0.07815998047590256, 0.3834521472454071, 0.028837867081165314, 0.3633149564266205, 0.2639464735984802, 0.29053160548210144, 0.2459658533334732, -0.06257447600364685, -0.07487655431032181, -0.39489859342575073, 0.08091055601835251, -0.059381987899541855, 0.2644907534122467, 0.15669934451580048, -0.42451369762420654, -0.006586544681340456, -0.2908204197883606, -0.05267048254609108, 0.0005865450948476791, 0.12607823312282562, -0.2189188301563263, 0.1570492535829544, 0.15392571687698364, 0.1813415139913559, -0.11788632720708847, -0.05939949303865433, -0.12012678384780884, 0.306402325630188, -0.021890904754400253, -0.2258305698633194, 0.04495902732014656, -0.293634831905365, 0.24428263306617737, 0.024581069126725197, 0.22952571511268616, 0.17503593862056732, 0.17053267359733582, -0.12573207914829254, -0.1919403076171875, 0.35060060024261475, 0.032108161598443985, 0.11539329588413239, 0.12777194380760193, -0.3931868374347687, -0.12469995021820068, 0.07880863547325134, -0.16625656187534332, -0.08047648519277573, -0.2768648564815521, 0.1809961497783661, -0.29068973660469055, 0.05142473429441452, -0.5761381983757019, -0.25163254141807556, 0.003818133380264044, -0.050118472427129745, -0.0043986160308122635, -0.1965854912996292, 0.23443089425563812, -0.25447747111320496, 0.2506341338157654, 0.053461745381355286, -0.35949206352233887, 0.04744446277618408, -0.2210429608821869, -0.20704694092273712, -0.06444472819566727, 0.12893231213092804, -0.24504166841506958, 0.1776168793439865, -0.22886385023593903, 0.13484933972358704, 0.6730282306671143, -0.6061069965362549, -0.5256841778755188, 0.02576448768377304, -0.09347622096538544, 0.014892134815454483, -0.013019745238125324, 0.09445733577013016, -0.10299068689346313, 0.21576529741287231, 0.06773817539215088, 0.16228528320789337, -0.03148999810218811, -0.19102707505226135, -0.25922900438308716, -0.2871655225753784, 0.05788579210639, 0.1806647628545761, 0.09252689778804779, -0.29240694642066956, 0.1847914159297943, -0.15393422544002533, 0.03819487243890762, 0.06003791466355324, 0.12027492374181747, 0.056565772742033005, 0.36037302017211914, 0.05278404429554939, -0.012402033433318138, -0.12482578307390213, -0.29170700907707214, 0.2685144543647766, -0.13982535898685455, 0.03489390388131142, -0.40640705823898315, -0.08324403315782547, -0.36111289262771606, 0.30129432678222656, -0.21739961206912994, 0.052548009902238846, 0.16979941725730896, -0.12373637408018112, 0.010499991476535797, 0.35210278630256653, -0.007705600466579199, 0.3821054995059967, 0.19184307754039764, 0.15500713884830475, -0.3192885220050812, 0.3061142861843109, -0.3814661502838135, -0.14575053751468658, 0.06154576316475868, 0.13012947142124176, -0.1030460074543953, 0.02512892708182335, -0.044316366314888, 0.11395861953496933, 0.07721351832151413, 0.02394591085612774, 0.010299847461283207, -0.23090586066246033, 0.17629022896289825, -0.3153470754623413, 0.13565529882907867, 0.13354209065437317, 0.30493220686912537, 0.09287451952695847, 0.09618915617465973, 0.09530482441186905, -0.05925090238451958, -0.09579785913228989, 0.014867214486002922, 0.25758126378059387, 0.2067648321390152, 0.201883465051651, 0.061224330216646194, -0.12222318351268768, 0.18432150781154633, -0.023840146139264107, 0.10303902626037598, -0.0872514471411705, -0.1367313116788864, -0.023937929421663284, 0.36004123091697693, 0.009661145508289337, 0.14368440210819244, 0.009731469675898552, -0.34450793266296387, 0.21861903369426727, 0.270966500043869, 0.015254223719239235, 0.3870510160923004, 0.21182917058467865, -0.21345780789852142, -0.0735059529542923, -0.05109807103872299, -0.10950443148612976, 0.12252134829759598, 0.31493833661079407, 0.3916875720024109, 0.17711757123470306, 0.24585601687431335, -0.0654154121875763, 0.011416621506214142, -0.2596935033798218, -0.04270274564623833, 0.2147676646709442, -0.18772535026073456, 0.2559344172477722, -0.22842197120189667, -0.23713305592536926, -0.16273130476474762, -0.19927583634853363, 0.011719683185219765, -0.4043590724468231, -0.23680059611797333, 0.2449379563331604, 0.16853703558444977, 0.1849227249622345, 0.14706090092658997, -0.1181395873427391, 0.07499619573354721, -0.285474568605423, -0.2432316541671753, -0.3484170734882355, -0.375935822725296, 0.10307862609624863, 0.35107797384262085, 0.16048003733158112, 0.2290235310792923, -0.1745557337999344, 0.24878323078155518, -0.405117928981781, -0.44743406772613525, -0.2108636200428009, -0.09327701479196548, 0.4236425459384918, 0.2669566571712494, 0.1613868772983551, -0.23775388300418854, -0.2812201678752899, 0.3301023244857788, 0.1585969626903534, -0.26955780386924744, 0.133374884724617, -0.11049223691225052, -0.22008658945560455, 0.030335543677210808, -0.32406729459762573, -0.39913275837898254, -0.41534623503685, 0.31014084815979004, 0.1853809505701065, -0.13164885342121124, -0.15191197395324707, 0.328898161649704, 0.21017751097679138, 0.1746778041124344, 0.022653553634881973, 0.07372007519006729, 0.2688194811344147, 0.5995612740516663, -0.11755651980638504, -0.41018426418304443, 0.2229812890291214, -0.23266202211380005, 0.30328989028930664, -0.07549507170915604, -0.42560723423957825, 0.014736383222043514, -0.17396895587444305, 0.6500648260116577, -0.21768604218959808, 0.22310787439346313, 0.18106892704963684, 0.20367982983589172, 0.07050522416830063, -0.12438632547855377, -0.25143930315971375, -0.12164036184549332, -0.11919953674077988, 0.057335130870342255, 0.05538348853588104, 0.11765821278095245, 0.04258071631193161, 0.5509260296821594, 0.05373084172606468, -0.06524058431386948, 0.2583054006099701, -0.0818951204419136, 0.21384260058403015, 0.0764957070350647, -0.4019143283367157, -0.04955654963850975, -0.14083251357078552, 0.27635735273361206, -0.15398725867271423, -0.2508073151111603, -0.2186053991317749, -0.3311210572719574, -0.1756257563829422, -0.15065275132656097, -0.19339463114738464, 0.0008879299275577068, -0.15699626505374908, 0.005802373867481947, 0.08069300651550293, -0.07366437464952469, -0.18820831179618835, -0.13479457795619965, 0.1647777557373047, 0.03072824515402317, -0.3172052800655365, 0.11594422906637192, -0.3461393415927887, -0.4914352595806122, -0.15530097484588623, 0.30255210399627686, 0.12901630997657776, 0.28151169419288635, 0.16029448807239532, -0.16675050556659698, 0.07052022218704224, -0.1935519278049469, 0.44164538383483887, -0.034181151539087296, -0.2406102865934372, 0.24958448112010956, 0.2823731005191803, -0.7925556898117065, -0.31758201122283936, -0.20558126270771027, 0.07808902859687805, 0.18726755678653717, 0.11087644100189209, -0.25357577204704285, 0.15501512587070465, -0.0309474915266037, 0.4460532069206238, -0.034879036247730255, 0.05852745100855827, -0.4713842272758484, -0.4379483461380005, -0.3892826735973358, -0.11561113595962524, -0.04093378409743309, 0.32131466269493103, -0.02542905882000923, -0.041062645614147186, -0.20785987377166748, -0.07322186231613159, -0.14979633688926697, 0.2925758957862854, 0.22519680857658386, -0.1615438610315323, 0.2594018876552582, -0.10842966288328171, -0.04246969893574715, 0.4509442150592804, 0.4091889262199402, 0.09626398235559464, -0.7135211229324341, -0.16449449956417084, -0.08195625990629196, 0.1051102951169014, -0.16934634745121002, -0.16028046607971191, 0.14341703057289124, -0.0038494218606501818, 0.02081805095076561, 0.061500780284404755, 0.06263640522956848, 0.17629121243953705, 0.1478819102048874, -0.12856251001358032, -0.1909571886062622, 0.47818198800086975, 0.3002479672431946, 0.02864203043282032, 0.4108395278453827, 0.02588622458279133, -0.14775030314922333, 0.09951229393482208, 0.13313472270965576, 0.6035113334655762, 0.009960651397705078, 0.05150363966822624, 0.5848053693771362, -0.3137615919113159, 0.563275933265686, -0.1316947638988495, 0.039374615997076035, -0.4316043555736542, -0.2410879135131836, -0.0023158953990787268, -0.31307312846183777, 0.31809765100479126, -0.33150458335876465, -0.2583663761615753, 0.07859258353710175, -0.2612189054489136, 0.17561182379722595, 0.10274485498666763, 0.16114549338817596, -0.3093280494213104, -0.0600256510078907, -0.14559198915958405, 0.1129978820681572, -0.13090890645980835, 0.21480749547481537, -0.06616079807281494, -0.033140629529953, -0.5395656824111938, -0.17737942934036255, -0.1691557765007019, 0.014457231387495995, -0.2888350188732147, 0.5264726281166077, 0.1666899025440216, -0.3203052878379822, 0.3427612781524658, 0.42442139983177185, 0.24712993204593658, 0.005772192496806383, -0.04558587074279785, 0.08898799121379852, 0.20857736468315125, -0.23716840147972107, 0.2529143989086151, 0.046215809881687164, 0.2042732983827591, -0.1563987284898758, -0.3190072476863861, 0.4772297143936157, -0.08465535938739777, -0.0295607578009367, 0.00009713264444144443, 0.4971589148044586, 0.11319176107645035, -0.12172778695821762, -0.12025508284568787, -0.15952971577644348, 0.12495344132184982, -0.10159827768802643, 0.13220874965190887, 0.11192730069160461, 0.04660995304584503, 0.4556715488433838, -0.12677675485610962, 0.05197237804532051, -0.02749033458530903, 0.22347725927829742, -0.1149352639913559, 0.06203038617968559, 0.21230608224868774, 0.06965886056423187, -0.32924067974090576, -0.16836045682430267, 0.15087027847766876, -0.15307877957820892, -0.34382566809654236, 0.0077217393554747105, 0.13187061250209808, -0.00822740700095892, -0.2520039975643158, 0.3728190064430237, 0.20312181115150452, -0.10848978161811829, 0.127994105219841, -0.4349558353424072, -0.2474520355463028, 0.34845393896102905, -0.022028837352991104, -0.11787693202495575, 0.28875669836997986, 0.08775720745325089, -0.00588412769138813, -0.032091401517391205, -0.2641662359237671, 0.19318176805973053, -0.32276415824890137, -0.03169836848974228, 0.14257337152957916, 0.11276447027921677, 0.01057347934693098, -0.0856630951166153, 0.1398327499628067, 0.04615600407123566, -0.04372121021151543, -0.25670933723449707, -0.0659087523818016, 0.05748096480965614, -0.034353308379650116, -0.14740778505802155, 0.0741344690322876, -0.26439332962036133, 0.06597237288951874, -0.00423078378662467, -0.09471642225980759, 0.03165164217352867, -0.13093532621860504, 0.046778202056884766, -0.08077166229486465, 0.11944489181041718, -0.25792667269706726, 0.27948999404907227, -0.17301194369792938, -0.01869838684797287, -0.006906717550009489, 0.2252323031425476, 0.24785062670707703, 0.18446731567382812, -0.009556704200804234, -0.1614101380109787, -0.2980034351348877, -0.018074138090014458, 0.23755444586277008, -0.3787601888179779, 0.10767906904220581, -0.09004901349544525, 0.05176543444395065, 0.5189225673675537, -0.26996520161628723, 0.008283144794404507, 0.3809458613395691, 0.19897259771823883, -0.44222989678382874, -0.3729236125946045, 0.17860975861549377, -0.07099947333335876, -0.017153283581137657, 0.08852723985910416, 0.2025185078382492, -0.08049129694700241, -0.020155401900410652, 0.2654152512550354, 0.12589576840400696, -0.13708265125751495, 0.3139997124671936, 0.4234543442726135, -0.037834614515304565, 0.02321632020175457, 0.2812746465206146, 0.2963758111000061, 0.18558862805366516, 0.4047457277774811, -0.35005706548690796, 0.028288910165429115, -0.03694973140954971, 0.10450337082147598, -0.054799191653728485, -0.2855793237686157, -0.05322658270597458, -0.057166676968336105, -0.10709919035434723, -0.18453876674175262, 0.10976006090641022, 0.43011221289634705, 0.057470399886369705, 0.030785178765654564, 0.05207827687263489, 0.01770186983048916, -0.10238043963909149, 0.2919912040233612, -0.03364259749650955, -0.12727919220924377, 0.13215668499469757, -0.061720944941043854, 0.15198832750320435, -0.2190745621919632, 0.3816210627555847, 0.23500894010066986, -0.20985941588878632, -0.21271133422851562, 0.21843969821929932, 0.4200308322906494, 0.07604440301656723, -0.13247360289096832, -0.10672836750745773, 0.24076639115810394, -0.19356676936149597, -0.3823976218700409, 0.23150990903377533, 0.6090101599693298, 0.3060406744480133, -0.25816112756729126, 0.12252148985862732, 0.08719973266124725, -0.17091014981269836, -0.039890848100185394, 0.07451045513153076, 0.13151171803474426, 0.0693419948220253, 0.2778824269771576, 0.21140331029891968, -0.17689086496829987, -0.09505154937505722, 0.13589070737361908, 0.19367407262325287, -0.1657043844461441, 0.16189682483673096, -0.3206716477870941, -0.2677472233772278, -0.05314267426729202, 0.04815097898244858, -0.2507852613925934, 0.43754759430885315, 0.24095308780670166, 0.25329798460006714, 0.03142516687512398, -0.3065513074398041, 0.08897379040718079, 0.05743883550167084, 0.45280739665031433, 0.2309444099664688, 0.38243433833122253, -0.13606667518615723, -0.14082586765289307, -0.5310807824134827, 0.0665641501545906, -0.05217992141842842, -0.3010042905807495, -0.012899567373096943, 0.007157687563449144, -0.06458425521850586, 0.2349255084991455, 0.17802102863788605, 0.026965757831931114, 0.3565101623535156, 0.15200208127498627, -0.3744761049747467, -0.3461717367172241, 0.3202926814556122, -0.19878511130809784, 0.04542519524693489, -0.3909825086593628, 0.053732942789793015, -0.37669605016708374, 0.14348037540912628, -0.3492604196071625, -0.05994648486375809, 0.2764986753463745, 0.09353308379650116, 0.5667528510093689, -0.0021581619512289762, 0.5926169753074646, 0.19349853694438934, 0.09676547348499298, -0.004381588660180569, -0.1707553118467331, -0.15376165509223938, 0.2509748339653015, 0.17356625199317932, 0.17451946437358856, -0.2626298666000366, -0.0890754908323288, -0.17915046215057373, 0.40460655093193054, 0.24319960176944733, 0.14853717386722565, -0.052344392985105515, 0.09029004722833633, -0.030060172080993652, -0.0034673139452934265, 0.07763064652681351, 0.07138616591691971, -0.17397543787956238, 0.13927364349365234, -0.3855040967464447, -0.40812599658966064, 0.24259689450263977, -0.2250496745109558, -0.29577553272247314, -0.014650351367890835, -0.0010492914589121938, 0.05751736834645271, -0.09833011776208878, -0.3163696229457855, 0.011840291321277618, 0.3954785168170929, -0.05994052439928055, -0.22446183860301971, 0.30578863620758057, 0.12920814752578735, 0.05642775818705559, -0.09659428894519806, 0.4190945327281952, -0.14796316623687744, -0.11253779381513596, 0.07883783429861069, -0.10651084780693054 ]
https://github.com/huggingface/datasets/issues/2678
Import Error in Kaggle notebook
You may need to restart your kaggle notebook after installing a newer version of `pyarrow`. If it doesn't work we'll probably have to create an issue on [arrow's JIRA](https://issues.apache.org/jira/projects/ARROW/issues/), and maybe ask kaggle why it could fail
## Describe the bug Not able to import datasets library in kaggle notebooks ## Steps to reproduce the bug ```python !pip install datasets import datasets ``` ## Expected results No such error ## Actual results ``` ImportError Traceback (most recent call last) <ipython-input-9-652e886d387f> in <module> ----> 1 import datasets /opt/conda/lib/python3.7/site-packages/datasets/__init__.py in <module> 31 ) 32 ---> 33 from .arrow_dataset import Dataset, concatenate_datasets 34 from .arrow_reader import ArrowReader, ReadInstruction 35 from .arrow_writer import ArrowWriter /opt/conda/lib/python3.7/site-packages/datasets/arrow_dataset.py in <module> 36 import pandas as pd 37 import pyarrow as pa ---> 38 import pyarrow.compute as pc 39 from multiprocess import Pool, RLock 40 from tqdm.auto import tqdm /opt/conda/lib/python3.7/site-packages/pyarrow/compute.py in <module> 16 # under the License. 17 ---> 18 from pyarrow._compute import ( # noqa 19 Function, 20 FunctionOptions, ImportError: /opt/conda/lib/python3.7/site-packages/pyarrow/_compute.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZNK5arrow7compute15KernelSignature8ToStringEv ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Kaggle - Python version: 3.7.10 - PyArrow version: 4.0.1
37
Import Error in Kaggle notebook ## Describe the bug Not able to import datasets library in kaggle notebooks ## Steps to reproduce the bug ```python !pip install datasets import datasets ``` ## Expected results No such error ## Actual results ``` ImportError Traceback (most recent call last) <ipython-input-9-652e886d387f> in <module> ----> 1 import datasets /opt/conda/lib/python3.7/site-packages/datasets/__init__.py in <module> 31 ) 32 ---> 33 from .arrow_dataset import Dataset, concatenate_datasets 34 from .arrow_reader import ArrowReader, ReadInstruction 35 from .arrow_writer import ArrowWriter /opt/conda/lib/python3.7/site-packages/datasets/arrow_dataset.py in <module> 36 import pandas as pd 37 import pyarrow as pa ---> 38 import pyarrow.compute as pc 39 from multiprocess import Pool, RLock 40 from tqdm.auto import tqdm /opt/conda/lib/python3.7/site-packages/pyarrow/compute.py in <module> 16 # under the License. 17 ---> 18 from pyarrow._compute import ( # noqa 19 Function, 20 FunctionOptions, ImportError: /opt/conda/lib/python3.7/site-packages/pyarrow/_compute.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZNK5arrow7compute15KernelSignature8ToStringEv ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Kaggle - Python version: 3.7.10 - PyArrow version: 4.0.1 You may need to restart your kaggle notebook after installing a newer version of `pyarrow`. If it doesn't work we'll probably have to create an issue on [arrow's JIRA](https://issues.apache.org/jira/projects/ARROW/issues/), and maybe ask kaggle why it could fail
[ -0.33920252323150635, -0.07555162161588669, -0.11409204453229904, 0.12584379315376282, 0.20035073161125183, 0.013088618405163288, 0.3512438237667084, 0.3286038637161255, -0.030617564916610718, -0.034620389342308044, -0.18046201765537262, 0.8273152112960815, 0.08167611807584763, 0.23343372344970703, 0.04593821242451668, -0.06990891695022583, 0.11407093703746796, 0.20138195157051086, -0.04904017224907875, 0.07037777453660965, -0.11784396320581436, 0.08349178731441498, -0.2884145677089691, 0.2321552038192749, -0.05840781703591347, -0.3381466567516327, 0.1671687513589859, -0.014157768338918686, -0.24300846457481384, -0.3790452182292938, 0.37848445773124695, -0.19662317633628845, 0.18173758685588837, 0.32947224378585815, -0.00010536887566559017, 0.06046748533844948, 0.3373240530490875, -0.012465988285839558, -0.3102439343929291, -0.10455802828073502, -0.1442510336637497, -0.5257629156112671, 0.10285982489585876, -0.31285223364830017, 0.42798206210136414, -0.3194994330406189, -0.24022138118743896, -0.12766315042972565, 0.23085586726665497, 0.19617792963981628, 0.26569557189941406, 0.4633556306362152, 0.4862201511859894, 0.0011486603179946542, 0.3741648495197296, -0.11436215788125992, -0.17438001930713654, 0.3628072142601013, 0.2402818351984024, -0.2248290479183197, 0.05008481815457344, 0.11818813532590866, -0.050972871482372284, 0.06260864436626434, 0.13127222657203674, 0.05767176300287247, -0.10530097782611847, -0.36945438385009766, -0.058392155915498734, 0.052512068301439285, 0.5115424394607544, -0.5075424313545227, -0.2177434265613556, -0.0814535841345787, 0.12246779352426529, -0.028666427358984947, 0.13781039416790009, 0.20505717396736145, -0.050182994455099106, -0.12101898342370987, 0.28346383571624756, -0.21212182939052582, -0.2584418058395386, 0.200566366314888, -0.14837102591991425, 0.43712863326072693, -0.04063379764556885, 0.09604945033788681, 0.2935904264450073, -0.1535813957452774, 0.6079092025756836, -0.08813133090734482, -0.11160729080438614, 0.12102798372507095, -0.38060277700424194, 0.12399608641862869, 0.06792408227920532, -0.06739675998687744, 0.09920701384544373, 0.09189547598361969, 0.09359852224588394, 0.15505430102348328, 0.12129456549882889, 0.31666627526283264, 0.11749438941478729, 0.3261027932167053, 0.016600141301751137, 0.29971566796302795, 0.2864750921726227, 0.3017309010028839, 0.1729280799627304, -0.08002790808677673, -0.07473018765449524, -0.39693164825439453, 0.12700799107551575, -0.06984315067529678, 0.3046587407588959, 0.17475689947605133, -0.34665772318840027, -0.052974846214056015, -0.3350790739059448, -0.06375186145305634, -0.011690492741763592, 0.11230648308992386, -0.20940928161144257, 0.11521735042333603, 0.18749932944774628, 0.14600016176700592, -0.16661714017391205, -0.06828685104846954, -0.15214957296848297, 0.30628499388694763, -0.02519003301858902, -0.22677753865718842, 0.02882925234735012, -0.30746203660964966, 0.19009654223918915, 0.04592689126729965, 0.2293923944234848, 0.1597653031349182, 0.18903528153896332, -0.11234297603368759, -0.20459671318531036, 0.300313264131546, 0.060103509575128555, 0.07129000127315521, 0.1299431025981903, -0.4086228907108307, -0.13515351712703705, 0.10636503249406815, -0.2069547176361084, -0.11172560602426529, -0.2594718337059021, 0.2262057512998581, -0.22215549647808075, 0.050462506711483, -0.5596432685852051, -0.20544876158237457, -0.01730482652783394, -0.0858524814248085, 0.0026643318124115467, -0.2396206259727478, 0.20154857635498047, -0.2670944035053253, 0.25048327445983887, 0.03021707758307457, -0.3585844337940216, 0.012739157304167747, -0.24593433737754822, -0.2216097116470337, -0.07057838141918182, 0.16049537062644958, -0.28480517864227295, 0.18457747995853424, -0.22644081711769104, 0.18871824443340302, 0.6346995830535889, -0.520471453666687, -0.4979521632194519, -0.018640441820025444, -0.10675869137048721, -0.041364844888448715, -0.06167522072792053, 0.11734530329704285, -0.12337454408407211, 0.22131109237670898, 0.05950545147061348, 0.1761828511953354, -0.035612571984529495, -0.16292402148246765, -0.2430764138698578, -0.2509731650352478, 0.10739917308092117, 0.1639561951160431, 0.08606520295143127, -0.3046607971191406, 0.19188205897808075, -0.1370866447687149, 0.07819277793169022, 0.04833608493208885, 0.09523139894008636, 0.03523773327469826, 0.36616092920303345, 0.014555098488926888, 0.04648823291063309, -0.13117416203022003, -0.27346673607826233, 0.23825988173484802, -0.19558249413967133, 0.05143745243549347, -0.3236394226551056, -0.09541292488574982, -0.36223527789115906, 0.2734936773777008, -0.2208879142999649, 0.08958706259727478, 0.20021827518939972, -0.11218257248401642, -0.009232297539710999, 0.3617272675037384, -0.024201951920986176, 0.2681078612804413, 0.15524034202098846, 0.12968233227729797, -0.3341870605945587, 0.365200936794281, -0.3834289610385895, -0.18056465685367584, 0.107780322432518, 0.10408670455217361, -0.10194115340709686, 0.038060836493968964, -0.043063461780548096, 0.13663499057292938, 0.08263649791479111, 0.04477647691965103, -0.012011103332042694, -0.19606761634349823, 0.15639792382717133, -0.38807737827301025, 0.07274972647428513, 0.14350537955760956, 0.3162691295146942, 0.08371464163064957, 0.08320076763629913, 0.12967298924922943, -0.06753262132406235, -0.09835672378540039, 0.00492901960387826, 0.2275877296924591, 0.1567099243402481, 0.18688425421714783, 0.11461225152015686, -0.09869759529829025, 0.15405498445034027, -0.06396064162254333, 0.08718200773000717, -0.08767647296190262, -0.1409795880317688, -0.028020542114973068, 0.40530335903167725, 0.023354217410087585, 0.18083740770816803, 0.03043474070727825, -0.3962770700454712, 0.16441749036312103, 0.24273736774921417, -0.030017009004950523, 0.3535703718662262, 0.2256232053041458, -0.20565804839134216, -0.04127264767885208, -0.028223292902112007, -0.14694634079933167, 0.13395066559314728, 0.2999610900878906, 0.36595121026039124, 0.16451570391654968, 0.26971131563186646, -0.08715218305587769, -0.07744699716567993, -0.20469234883785248, -0.06536784768104553, 0.2356107383966446, -0.17830677330493927, 0.23260250687599182, -0.2168603241443634, -0.2743116617202759, -0.16112349927425385, -0.16322265565395355, -0.021598389372229576, -0.4483352303504944, -0.2108485847711563, 0.24846303462982178, 0.14353884756565094, 0.17732958495616913, 0.17886577546596527, -0.11519148200750351, 0.09367619454860687, -0.23968951404094696, -0.25380682945251465, -0.4000019133090973, -0.379081666469574, 0.14327166974544525, 0.32571953535079956, 0.15817300975322723, 0.22662830352783203, -0.15190564095973969, 0.2532311677932739, -0.4079257547855377, -0.4701178967952728, -0.20247040688991547, -0.08139203488826752, 0.37396642565727234, 0.2682346701622009, 0.14277510344982147, -0.2532338798046112, -0.30907580256462097, 0.3830122947692871, 0.06784220784902573, -0.27301478385925293, 0.16933247447013855, -0.10987848788499832, -0.17844906449317932, 0.02533211000263691, -0.35717520117759705, -0.3664129674434662, -0.41712120175361633, 0.3046453595161438, 0.18334680795669556, -0.1222848892211914, -0.15017230808734894, 0.28703081607818604, 0.23864102363586426, 0.1402595043182373, -0.0331912487745285, 0.04384620115160942, 0.25690779089927673, 0.5885712504386902, -0.11854766309261322, -0.42156776785850525, 0.2081315964460373, -0.2530040144920349, 0.2879258990287781, -0.1212993785738945, -0.41197502613067627, 0.005975276231765747, -0.15816505253314972, 0.6464036107063293, -0.19376249611377716, 0.2262536734342575, 0.13847823441028595, 0.18837970495224, 0.014980657957494259, -0.09348887205123901, -0.2597445249557495, -0.12562471628189087, -0.03817223757505417, 0.016266798600554466, 0.03282991424202919, 0.118333600461483, 0.02688935585319996, 0.5717329978942871, -0.025274867191910744, -0.05605829507112503, 0.27822649478912354, -0.11588284373283386, 0.20861241221427917, 0.048781801015138626, -0.3988296091556549, -0.028875883668661118, -0.14409416913986206, 0.2643156051635742, -0.12593552470207214, -0.27048245072364807, -0.24749691784381866, -0.2997135818004608, -0.2148076444864273, -0.1263628900051117, -0.2221946120262146, -0.00545850396156311, -0.07572583854198456, 0.010881547816097736, 0.059568632394075394, -0.10004302114248276, -0.2002984881401062, -0.1745503693819046, 0.20066580176353455, -0.008294195868074894, -0.28061342239379883, 0.10128666460514069, -0.3764594793319702, -0.48131173849105835, -0.16982240974903107, 0.31959283351898193, 0.14191830158233643, 0.2067776471376419, 0.1361560821533203, -0.18118077516555786, 0.09187985211610794, -0.19554641842842102, 0.39128369092941284, -0.00005060243347543292, -0.1831400841474533, 0.2893386483192444, 0.21205748617649078, -0.7940051555633545, -0.2984018623828888, -0.2168443650007248, 0.02459266595542431, 0.15184077620506287, 0.055601414293050766, -0.23587465286254883, 0.18254928290843964, -0.006750077474862337, 0.42556899785995483, -0.05207529664039612, 0.046657126396894455, -0.4544197618961334, -0.41374531388282776, -0.36858975887298584, -0.12700635194778442, -0.05142047628760338, 0.3349300026893616, 0.002266887342557311, 0.005324273370206356, -0.18554523587226868, -0.11196400970220566, -0.15769116580486298, 0.26703593134880066, 0.21462567150592804, -0.11158759146928787, 0.23467862606048584, -0.11387202143669128, -0.07426197081804276, 0.4554014503955841, 0.4173569679260254, 0.12067679315805435, -0.7068601846694946, -0.15796351432800293, -0.10263523459434509, 0.0967426598072052, -0.22020386159420013, -0.15882915258407593, 0.1977933943271637, 0.02218826301395893, 0.04379778727889061, 0.04174351692199707, 0.08069805800914764, 0.19852185249328613, 0.08623244613409042, -0.06556888669729233, -0.16198550164699554, 0.49999573826789856, 0.22608114778995514, 0.048623669892549515, 0.41430237889289856, 0.014600573107600212, -0.13903048634529114, 0.09274587035179138, 0.15260402858257294, 0.5871590971946716, -0.030165240168571472, 0.05609491094946861, 0.5907444953918457, -0.301411896944046, 0.5513145923614502, -0.12304636090993881, 0.07413024455308914, -0.46288415789604187, -0.22477030754089355, 0.005509216338396072, -0.3155345618724823, 0.2969498038291931, -0.31247198581695557, -0.2542787194252014, 0.03295621648430824, -0.26598817110061646, 0.20803682506084442, 0.05537789687514305, 0.17813079059123993, -0.2830354869365692, -0.011862004175782204, -0.14986014366149902, 0.14945022761821747, -0.16392122209072113, 0.19597122073173523, -0.06254711747169495, -0.050274111330509186, -0.4486035108566284, -0.16844846308231354, -0.16431604325771332, 0.04416368156671524, -0.269160658121109, 0.5237213373184204, 0.18905317783355713, -0.30105534195899963, 0.31487610936164856, 0.3913813531398773, 0.17511261999607086, -0.0387774296104908, -0.056979838758707047, 0.10744026303291321, 0.1616203784942627, -0.24806608259677887, 0.21283695101737976, 0.08064363151788712, 0.20555830001831055, -0.18669502437114716, -0.3298458158969879, 0.5272290110588074, -0.04522240161895752, -0.035511378198862076, -0.03419852256774902, 0.4944120943546295, 0.10254126787185669, -0.15203551948070526, -0.09379541873931885, -0.1552087813615799, 0.07233969122171402, -0.11728505045175552, 0.1601325273513794, 0.10953415185213089, 0.05874105915427208, 0.41399988532066345, -0.10571878403425217, 0.026906168088316917, -0.02960096299648285, 0.2540784776210785, -0.11558932065963745, 0.10670973360538483, 0.25000810623168945, 0.1303194761276245, -0.3078184723854065, -0.19458165764808655, 0.1806534081697464, -0.06221415102481842, -0.3541778028011322, 0.04794258624315262, 0.14965862035751343, 0.1058177649974823, -0.2028283327817917, 0.37258103489875793, 0.15339656174182892, -0.12137911468744278, 0.12878219783306122, -0.38336315751075745, -0.26565906405448914, 0.3385191857814789, -0.009002403356134892, -0.11039658635854721, 0.29268741607666016, 0.07819859683513641, 0.031331147998571396, -0.006216129288077354, -0.3084302246570587, 0.20520852506160736, -0.33021214604377747, 0.008381493389606476, 0.10119245946407318, 0.07941405475139618, -0.030885668471455574, -0.06412811577320099, 0.17227786779403687, 0.04385484755039215, -0.08635354042053223, -0.29665958881378174, -0.07324904948472977, 0.04322478175163269, -0.04798310622572899, -0.15681375563144684, 0.07919485867023468, -0.24203473329544067, 0.050191860646009445, -0.012974678538739681, -0.07027234137058258, 0.03019324317574501, -0.16277466714382172, 0.08944439888000488, -0.08568282425403595, 0.04081840440630913, -0.24535183608531952, 0.22265814244747162, -0.19171753525733948, -0.008078931830823421, 0.00238467357121408, 0.18243512511253357, 0.2653461992740631, 0.14516671001911163, -0.017271529883146286, -0.13758043944835663, -0.30056414008140564, -0.0740324854850769, 0.2530132830142975, -0.37085655331611633, 0.030267227441072464, -0.12115451693534851, 0.06816016137599945, 0.4832295775413513, -0.256483793258667, 0.022794682532548904, 0.3177836239337921, 0.22277317941188812, -0.4727802574634552, -0.3402056396007538, 0.16690920293331146, -0.027611175552010536, -0.005912229884415865, 0.040258485823869705, 0.18041186034679413, -0.021457118913531303, -0.046472325921058655, 0.2500552237033844, 0.12498211860656738, -0.1655672788619995, 0.2797200381755829, 0.42092621326446533, -0.04949488863348961, 0.026437612250447273, 0.26752129197120667, 0.29638099670410156, 0.20453359186649323, 0.35704219341278076, -0.32764795422554016, 0.060175660997629166, -0.05622987821698189, 0.037839993834495544, -0.005667292047291994, -0.3138684332370758, -0.1083882749080658, -0.010536013171076775, -0.10384500026702881, -0.18556930124759674, 0.12919211387634277, 0.44322720170021057, 0.12794043123722076, 0.0593540221452713, 0.08447221666574478, 0.06076478958129883, -0.1108182892203331, 0.2886047661304474, -0.07291176915168762, -0.10204136371612549, 0.08749162405729294, -0.04017683491110802, 0.12147247046232224, -0.20508240163326263, 0.40827271342277527, 0.24223478138446808, -0.19695958495140076, -0.20692303776741028, 0.20369215309619904, 0.4047401547431946, 0.07805938273668289, -0.14161640405654907, -0.14259301126003265, 0.24954895675182343, -0.1884700357913971, -0.33048713207244873, 0.22766122221946716, 0.5777513384819031, 0.2577286660671234, -0.2740429937839508, 0.11547045409679413, 0.07171714305877686, -0.17433655261993408, -0.01809891313314438, 0.0540500208735466, 0.17041659355163574, 0.12481323629617691, 0.27938172221183777, 0.24896050989627838, -0.18990680575370789, -0.10145004093647003, 0.11929024010896683, 0.1714860200881958, -0.17781877517700195, 0.144020676612854, -0.3029227554798126, -0.2679336965084076, -0.093326136469841, 0.0538843497633934, -0.20716901123523712, 0.4015531539916992, 0.2685337960720062, 0.2801016569137573, 0.01394770946353674, -0.31204864382743835, 0.11214745044708252, 0.051715534180402756, 0.47439321875572205, 0.24388596415519714, 0.3920077383518219, -0.15022343397140503, -0.12266604602336884, -0.5042756795883179, 0.10378492623567581, -0.04408300295472145, -0.3021402359008789, 0.005826765205711126, 0.031148670241236687, -0.03862934932112694, 0.24103492498397827, 0.2164308875799179, -0.011148875579237938, 0.33051371574401855, 0.11247354745864868, -0.35942184925079346, -0.28804248571395874, 0.30692151188850403, -0.20136553049087524, 0.028232373297214508, -0.3520437777042389, 0.09429151564836502, -0.4053051769733429, 0.17816735804080963, -0.36223694682121277, -0.10471443086862564, 0.27115753293037415, 0.1081957072019577, 0.5927202105522156, -0.01979881338775158, 0.5346360802650452, 0.17098143696784973, 0.16506430506706238, 0.01994848996400833, -0.2127310335636139, -0.1448093205690384, 0.23924630880355835, 0.12700670957565308, 0.23438841104507446, -0.22127483785152435, -0.09601616859436035, -0.20162111520767212, 0.41184505820274353, 0.2190941870212555, 0.16069169342517853, -0.02834291011095047, 0.09247824549674988, -0.005644520279020071, -0.025083117187023163, 0.08121680468320847, 0.05688246712088585, -0.14964546263217926, 0.1283642202615738, -0.3866490125656128, -0.42487969994544983, 0.27521494030952454, -0.2176072746515274, -0.31542521715164185, -0.037493955343961716, 0.01342143677175045, 0.10106122493743896, -0.10234004259109497, -0.31622081995010376, 0.012066958472132683, 0.42642971873283386, -0.03595791757106781, -0.2100612074136734, 0.2819169759750366, 0.11199294030666351, 0.12201937288045883, -0.08989902585744858, 0.3843318819999695, -0.0953405573964119, -0.11463937908411026, 0.022028423845767975, -0.14568349719047546 ]
https://github.com/huggingface/datasets/issues/2678
Import Error in Kaggle notebook
> You may need to restart your kaggle notebook before after installing a newer version of `pyarrow`. > > If it doesn't work we'll probably have to create an issue on [arrow's JIRA](https://issues.apache.org/jira/projects/ARROW/issues/), and maybe ask kaggle why it could fail It works after restarting. My bad, I forgot to restart the notebook. Sorry for the trouble!
## Describe the bug Not able to import datasets library in kaggle notebooks ## Steps to reproduce the bug ```python !pip install datasets import datasets ``` ## Expected results No such error ## Actual results ``` ImportError Traceback (most recent call last) <ipython-input-9-652e886d387f> in <module> ----> 1 import datasets /opt/conda/lib/python3.7/site-packages/datasets/__init__.py in <module> 31 ) 32 ---> 33 from .arrow_dataset import Dataset, concatenate_datasets 34 from .arrow_reader import ArrowReader, ReadInstruction 35 from .arrow_writer import ArrowWriter /opt/conda/lib/python3.7/site-packages/datasets/arrow_dataset.py in <module> 36 import pandas as pd 37 import pyarrow as pa ---> 38 import pyarrow.compute as pc 39 from multiprocess import Pool, RLock 40 from tqdm.auto import tqdm /opt/conda/lib/python3.7/site-packages/pyarrow/compute.py in <module> 16 # under the License. 17 ---> 18 from pyarrow._compute import ( # noqa 19 Function, 20 FunctionOptions, ImportError: /opt/conda/lib/python3.7/site-packages/pyarrow/_compute.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZNK5arrow7compute15KernelSignature8ToStringEv ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Kaggle - Python version: 3.7.10 - PyArrow version: 4.0.1
57
Import Error in Kaggle notebook ## Describe the bug Not able to import datasets library in kaggle notebooks ## Steps to reproduce the bug ```python !pip install datasets import datasets ``` ## Expected results No such error ## Actual results ``` ImportError Traceback (most recent call last) <ipython-input-9-652e886d387f> in <module> ----> 1 import datasets /opt/conda/lib/python3.7/site-packages/datasets/__init__.py in <module> 31 ) 32 ---> 33 from .arrow_dataset import Dataset, concatenate_datasets 34 from .arrow_reader import ArrowReader, ReadInstruction 35 from .arrow_writer import ArrowWriter /opt/conda/lib/python3.7/site-packages/datasets/arrow_dataset.py in <module> 36 import pandas as pd 37 import pyarrow as pa ---> 38 import pyarrow.compute as pc 39 from multiprocess import Pool, RLock 40 from tqdm.auto import tqdm /opt/conda/lib/python3.7/site-packages/pyarrow/compute.py in <module> 16 # under the License. 17 ---> 18 from pyarrow._compute import ( # noqa 19 Function, 20 FunctionOptions, ImportError: /opt/conda/lib/python3.7/site-packages/pyarrow/_compute.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZNK5arrow7compute15KernelSignature8ToStringEv ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Kaggle - Python version: 3.7.10 - PyArrow version: 4.0.1 > You may need to restart your kaggle notebook before after installing a newer version of `pyarrow`. > > If it doesn't work we'll probably have to create an issue on [arrow's JIRA](https://issues.apache.org/jira/projects/ARROW/issues/), and maybe ask kaggle why it could fail It works after restarting. My bad, I forgot to restart the notebook. Sorry for the trouble!
[ -0.34386754035949707, -0.07708024233579636, -0.11421947926282883, 0.13209174573421478, 0.1916218400001526, 0.010946218855679035, 0.34064167737960815, 0.3310459852218628, -0.040551114827394485, -0.031570326536893845, -0.17700301110744476, 0.8259583115577698, 0.07840701192617416, 0.21675541996955872, 0.042296696454286575, -0.07512875646352768, 0.11513471603393555, 0.20599974691867828, -0.0540335513651371, 0.06841471791267395, -0.12047307193279266, 0.08219031989574432, -0.28844502568244934, 0.23086676001548767, -0.05367550253868103, -0.3353978395462036, 0.16340136528015137, -0.0156413447111845, -0.25124800205230713, -0.38931599259376526, 0.3791486918926239, -0.20304834842681885, 0.178651824593544, 0.3298628032207489, -0.00010546910925768316, 0.055777158588171005, 0.3331196904182434, -0.0016958536580204964, -0.3189181089401245, -0.09719019383192062, -0.14497555792331696, -0.5241270065307617, 0.1139845997095108, -0.3169446885585785, 0.425289124250412, -0.33021560311317444, -0.23765131831169128, -0.1207023337483406, 0.23491574823856354, 0.20090176165103912, 0.2643294632434845, 0.46178188920021057, 0.4861876964569092, -0.00437626987695694, 0.38449978828430176, -0.12632246315479279, -0.16783909499645233, 0.37529829144477844, 0.2364213913679123, -0.2263902872800827, 0.04133729636669159, 0.1175253763794899, -0.061410240828990936, 0.06328236311674118, 0.12766560912132263, 0.04925982654094696, -0.1038789376616478, -0.36744657158851624, -0.06833180040121078, 0.050397325307130814, 0.5075069665908813, -0.5111192464828491, -0.21696440875530243, -0.08546139299869537, 0.1243208572268486, -0.03310377523303032, 0.13803929090499878, 0.20169688761234283, -0.0535895861685276, -0.11015424877405167, 0.2808274030685425, -0.2064095288515091, -0.25857728719711304, 0.19371598958969116, -0.151890829205513, 0.44038814306259155, -0.03874809294939041, 0.0953778624534607, 0.2886868119239807, -0.14609837532043457, 0.6073459982872009, -0.0855475440621376, -0.1203504130244255, 0.1216696947813034, -0.37875983119010925, 0.12028152495622635, 0.06833159178495407, -0.06435944139957428, 0.09703465551137924, 0.08821577578783035, 0.0919666439294815, 0.14560474455356598, 0.13050292432308197, 0.312740683555603, 0.11704131215810776, 0.32720938324928284, 0.009206726215779781, 0.291287899017334, 0.27981874346733093, 0.29122933745384216, 0.1691603660583496, -0.07662471383810043, -0.06993730366230011, -0.3918391466140747, 0.13440020382404327, -0.06948152929544449, 0.31267744302749634, 0.17189079523086548, -0.35568368434906006, -0.049457766115665436, -0.3413330018520355, -0.06107228621840477, -0.018746044486761093, 0.11719845235347748, -0.21346229314804077, 0.11042056232690811, 0.18445107340812683, 0.14404594898223877, -0.16706711053848267, -0.07192126661539078, -0.15177594125270844, 0.3045978844165802, -0.029400259256362915, -0.2297070175409317, 0.020893489941954613, -0.3086884021759033, 0.1870206594467163, 0.051580168306827545, 0.21914882957935333, 0.15207752585411072, 0.1907951384782791, -0.11567974090576172, -0.19896584749221802, 0.30345356464385986, 0.059729211032390594, 0.07516208291053772, 0.12552522122859955, -0.4011128544807434, -0.12948137521743774, 0.10902057588100433, -0.20784471929073334, -0.11302677541971207, -0.26320210099220276, 0.22986528277397156, -0.2152012437582016, 0.05390138551592827, -0.5561849474906921, -0.20422199368476868, -0.01615467295050621, -0.09570346772670746, 0.008853863924741745, -0.2448435127735138, 0.20653949677944183, -0.2754351496696472, 0.24363858997821808, 0.037997450679540634, -0.3599006235599518, 0.019681723788380623, -0.25437089800834656, -0.22622331976890564, -0.06329840421676636, 0.1592007726430893, -0.28632086515426636, 0.1953844577074051, -0.22958174347877502, 0.1917760819196701, 0.6380631923675537, -0.5143753290176392, -0.49432292580604553, -0.0183400958776474, -0.1120876893401146, -0.029625335708260536, -0.056906748563051224, 0.11421211808919907, -0.12338156998157501, 0.22074474394321442, 0.0638163611292839, 0.16991744935512543, -0.03144378587603569, -0.1549663245677948, -0.24697376787662506, -0.24764233827590942, 0.10741632431745529, 0.16192857921123505, 0.0861111506819725, -0.3101317882537842, 0.19391261041164398, -0.1340431421995163, 0.08206959813833237, 0.04889712855219841, 0.08613493293523788, 0.04103545472025871, 0.36398544907569885, 0.0073457700200378895, 0.04128008708357811, -0.14537714421749115, -0.2789384126663208, 0.23349861800670624, -0.20378118753433228, 0.043385449796915054, -0.31818848848342896, -0.09762555360794067, -0.35750171542167664, 0.2770492136478424, -0.21337246894836426, 0.08117541670799255, 0.20150946080684662, -0.10527176409959793, -0.0017693585250526667, 0.35238325595855713, -0.023105563595891, 0.2652153968811035, 0.15163686871528625, 0.13248701393604279, -0.3389766216278076, 0.3570478558540344, -0.37914255261421204, -0.19112882018089294, 0.10654338449239731, 0.1010330468416214, -0.09904909878969193, 0.037552665919065475, -0.04002084210515022, 0.13910898566246033, 0.08696481585502625, 0.05051644146442413, -0.029967615380883217, -0.19732226431369781, 0.15610462427139282, -0.3874383866786957, 0.07629547268152237, 0.14115430414676666, 0.31389787793159485, 0.09010136127471924, 0.0919346734881401, 0.12511885166168213, -0.05713530257344246, -0.10568451136350632, 0.010007505305111408, 0.21469521522521973, 0.14892864227294922, 0.18479973077774048, 0.12199027836322784, -0.09526553004980087, 0.1637495458126068, -0.05755966529250145, 0.08766495436429977, -0.08312396705150604, -0.1441521793603897, -0.025372978299856186, 0.40671879053115845, 0.027504269033670425, 0.18406561017036438, 0.029344692826271057, -0.39748415350914, 0.16138391196727753, 0.2377910017967224, -0.038825467228889465, 0.35217127203941345, 0.22813132405281067, -0.20386560261249542, -0.03670303523540497, -0.025722019374370575, -0.14596708118915558, 0.13845570385456085, 0.29917991161346436, 0.365339070558548, 0.17211700975894928, 0.2751636803150177, -0.07937507331371307, -0.0749896690249443, -0.20255598425865173, -0.0662611797451973, 0.23881685733795166, -0.17931777238845825, 0.2328462302684784, -0.21554674208164215, -0.2813493013381958, -0.1677556037902832, -0.16836775839328766, -0.017847815528512, -0.43740302324295044, -0.20769597589969635, 0.25311189889907837, 0.1370602250099182, 0.17950302362442017, 0.18914340436458588, -0.11910449713468552, 0.09144633263349533, -0.24013081192970276, -0.2524137794971466, -0.3897511661052704, -0.37717050313949585, 0.14074936509132385, 0.3231416642665863, 0.16103030741214752, 0.23223678767681122, -0.15233637392520905, 0.24474528431892395, -0.40536293387413025, -0.46414828300476074, -0.19967783987522125, -0.07983417063951492, 0.37535718083381653, 0.27120402455329895, 0.14533019065856934, -0.25076600909233093, -0.308851957321167, 0.3701546788215637, 0.06788361817598343, -0.27803751826286316, 0.1633877009153366, -0.11023884266614914, -0.17212337255477905, 0.030149394646286964, -0.36433589458465576, -0.3662022650241852, -0.4178314208984375, 0.30319756269454956, 0.18233990669250488, -0.12022216618061066, -0.15832817554473877, 0.2869706451892853, 0.2404123693704605, 0.12970075011253357, -0.026720477268099785, 0.051749516278505325, 0.2594493329524994, 0.5824716687202454, -0.11348353326320648, -0.4176762104034424, 0.19867265224456787, -0.2575908601284027, 0.2834935188293457, -0.12021225690841675, -0.42129337787628174, 0.0007620161049999297, -0.16049045324325562, 0.6609593033790588, -0.19919484853744507, 0.21469010412693024, 0.1496119648218155, 0.19047071039676666, 0.012940392829477787, -0.08903180062770844, -0.25575101375579834, -0.14029961824417114, -0.036334890872240067, 0.010837795212864876, 0.022987093776464462, 0.12076697498559952, 0.015704728662967682, 0.5826403498649597, -0.02258489280939102, -0.05333160609006882, 0.2751408815383911, -0.12124314159154892, 0.20588628947734833, 0.045471370220184326, -0.4002605974674225, -0.03081846795976162, -0.1482352465391159, 0.25347623229026794, -0.12386380136013031, -0.2759885787963867, -0.24879305064678192, -0.3007618486881256, -0.22170092165470123, -0.13517707586288452, -0.21488352119922638, -0.0007897507748566568, -0.06682997941970825, 0.01914597675204277, 0.060875050723552704, -0.09582225233316422, -0.18997839093208313, -0.17741666734218597, 0.19920271635055542, -0.012646614573895931, -0.27870744466781616, 0.09548160433769226, -0.36411771178245544, -0.48508113622665405, -0.16386009752750397, 0.3125024139881134, 0.14825251698493958, 0.19706237316131592, 0.14090022444725037, -0.17663003504276276, 0.0947587713599205, -0.19500941038131714, 0.392450213432312, 0.005731427576392889, -0.17826780676841736, 0.28521493077278137, 0.21998366713523865, -0.7880541086196899, -0.2938230335712433, -0.22271563112735748, 0.023845527321100235, 0.15743573009967804, 0.057489484548568726, -0.23757308721542358, 0.18725141882896423, 0.005227743647992611, 0.4398753046989441, -0.05482165887951851, 0.043747663497924805, -0.4539205729961395, -0.410351425409317, -0.3626691997051239, -0.12044788151979446, -0.04820435866713524, 0.3372282087802887, 0.0038946783170104027, 0.001465104054659605, -0.18421831727027893, -0.1064538061618805, -0.16292425990104675, 0.2704037129878998, 0.2156517058610916, -0.12126830220222473, 0.23663492500782013, -0.12296662479639053, -0.07863568514585495, 0.46443837881088257, 0.4202221632003784, 0.12378107011318207, -0.6989774107933044, -0.15927810966968536, -0.08174753934144974, 0.10295185446739197, -0.21680523455142975, -0.16423840820789337, 0.20258469879627228, 0.021502133458852768, 0.04433700069785118, 0.04031124711036682, 0.0755983293056488, 0.20126545429229736, 0.08744748681783676, -0.07337439805269241, -0.15103501081466675, 0.5053035616874695, 0.22790765762329102, 0.049659766256809235, 0.4068603813648224, 0.01332081574946642, -0.13642412424087524, 0.09588548541069031, 0.15269961953163147, 0.6006858348846436, -0.02783016487956047, 0.05081212893128395, 0.6025997400283813, -0.30677536129951477, 0.5539409518241882, -0.13000622391700745, 0.08401226997375488, -0.4649181067943573, -0.21816782653331757, 0.007001099642366171, -0.31668585538864136, 0.29506492614746094, -0.3199920952320099, -0.2508441209793091, 0.03563937544822693, -0.2634041905403137, 0.20716650784015656, 0.05737888067960739, 0.18010808527469635, -0.27656543254852295, -0.008458553813397884, -0.15260130167007446, 0.14601635932922363, -0.16789482533931732, 0.19331897795200348, -0.06967636197805405, -0.05161871388554573, -0.4364553689956665, -0.1682928204536438, -0.16614681482315063, 0.04375877231359482, -0.275203675031662, 0.5126557946205139, 0.18874014914035797, -0.3083454668521881, 0.30380284786224365, 0.3915412127971649, 0.15757441520690918, -0.032570552080869675, -0.05513649061322212, 0.10629910975694656, 0.15929190814495087, -0.2499811351299286, 0.21638213098049164, 0.08224256336688995, 0.20630419254302979, -0.18703272938728333, -0.3244168758392334, 0.5305289626121521, -0.055747561156749725, -0.030215341597795486, -0.024510042741894722, 0.49029091000556946, 0.10989075899124146, -0.15390482544898987, -0.09123346209526062, -0.1535332202911377, 0.07098051905632019, -0.12607233226299286, 0.1597076803445816, 0.10155168175697327, 0.05880104377865791, 0.4141302704811096, -0.11156190186738968, 0.01918402500450611, -0.041934188455343246, 0.263297975063324, -0.10645866394042969, 0.1108458936214447, 0.24571426212787628, 0.1302163153886795, -0.310119092464447, -0.19411785900592804, 0.17471112310886383, -0.06257747858762741, -0.36093685030937195, 0.05102703720331192, 0.1442755162715912, 0.1181771531701088, -0.20491647720336914, 0.36553680896759033, 0.15938207507133484, -0.11603861302137375, 0.12172595411539078, -0.3830704092979431, -0.2565533220767975, 0.33879733085632324, 0.003723380621522665, -0.11631254106760025, 0.30040767788887024, 0.08133737742900848, 0.030302703380584717, -0.005822381470352411, -0.3074537515640259, 0.20282506942749023, -0.32542017102241516, 0.011559969745576382, 0.09506583958864212, 0.08245689421892166, -0.030838636681437492, -0.06428642570972443, 0.17814302444458008, 0.047864120453596115, -0.08286593109369278, -0.29791757464408875, -0.06921446323394775, 0.0436687245965004, -0.052987150847911835, -0.15592138469219208, 0.07894013822078705, -0.24277779459953308, 0.061380788683891296, -0.011820541694760323, -0.06395271420478821, 0.02448667399585247, -0.16005466878414154, 0.0814574807882309, -0.07733827829360962, 0.040908705443143845, -0.25126978754997253, 0.22821593284606934, -0.19287441670894623, -0.016353821381926537, -0.004309261217713356, 0.18926870822906494, 0.26216065883636475, 0.14220395684242249, -0.012664992362260818, -0.14550668001174927, -0.29465726017951965, -0.07144520431756973, 0.24628929793834686, -0.3729649484157562, 0.019347982481122017, -0.12452049553394318, 0.07011979073286057, 0.48789724707603455, -0.2644609212875366, 0.021816298365592957, 0.32130393385887146, 0.22485807538032532, -0.47209179401397705, -0.3357240557670593, 0.16089430451393127, -0.028791463002562523, -0.0033935299143195152, 0.046018458902835846, 0.1743442416191101, -0.025053348392248154, -0.03990340605378151, 0.24980880320072174, 0.11671193689107895, -0.15515649318695068, 0.26989442110061646, 0.42286887764930725, -0.045219600200653076, 0.020745720714330673, 0.2719663083553314, 0.30088719725608826, 0.2052324265241623, 0.35511472821235657, -0.3248213231563568, 0.06455661356449127, -0.051687631756067276, 0.037767257541418076, -0.0119697954505682, -0.30605870485305786, -0.10699772834777832, -0.003531502094119787, -0.10442321002483368, -0.1902884989976883, 0.1279561072587967, 0.4319308400154114, 0.1319543868303299, 0.05573897436261177, 0.08284714818000793, 0.06171761453151703, -0.11907192319631577, 0.2964465916156769, -0.0605187751352787, -0.10374770313501358, 0.0912167951464653, -0.03830515220761299, 0.11628670245409012, -0.20879681408405304, 0.4120827913284302, 0.23877635598182678, -0.20035883784294128, -0.20896296203136444, 0.20515672862529755, 0.40496882796287537, 0.07703182846307755, -0.14475694298744202, -0.1308678835630417, 0.2532717287540436, -0.19047877192497253, -0.3400832712650299, 0.23628941178321838, 0.5830225944519043, 0.2580747604370117, -0.27517035603523254, 0.10936065018177032, 0.07312246412038803, -0.1765502691268921, -0.021940497681498528, 0.057635072618722916, 0.16017256677150726, 0.13684840500354767, 0.27939796447753906, 0.2509010434150696, -0.1937188059091568, -0.09180737286806107, 0.12458426505327225, 0.16295434534549713, -0.19050610065460205, 0.14474007487297058, -0.2970668375492096, -0.27487367391586304, -0.08792442828416824, 0.05974939838051796, -0.2057943344116211, 0.4084698259830475, 0.2745128870010376, 0.2821596562862396, 0.00495952507480979, -0.30788129568099976, 0.11188570410013199, 0.0549868680536747, 0.47596609592437744, 0.24669808149337769, 0.39764702320098877, -0.15499897301197052, -0.12841935455799103, -0.5016839504241943, 0.11088865250349045, -0.052498601377010345, -0.3014679551124573, 0.0038354629650712013, 0.030939025804400444, -0.04693140834569931, 0.25569790601730347, 0.21940045058727264, -0.007228798698633909, 0.32487720251083374, 0.12294723093509674, -0.3567812144756317, -0.29177019000053406, 0.30501729249954224, -0.2067122459411621, 0.029596440494060516, -0.3504010736942291, 0.10540687292814255, -0.41346976161003113, 0.17660757899284363, -0.35909798741340637, -0.1072513684630394, 0.281365305185318, 0.1146102249622345, 0.5974835157394409, -0.019335711374878883, 0.5290716290473938, 0.16651825606822968, 0.15858925879001617, 0.025388924404978752, -0.21359996497631073, -0.14344695210456848, 0.2446596324443817, 0.13016445934772491, 0.23024988174438477, -0.21694888174533844, -0.09752919524908066, -0.1996530145406723, 0.40941816568374634, 0.22015029191970825, 0.16378465294837952, -0.021873556077480316, 0.08712050318717957, -0.0011449512094259262, -0.02364043891429901, 0.08054272830486298, 0.05554940178990364, -0.14188197255134583, 0.1273857057094574, -0.3887633979320526, -0.4281505048274994, 0.2744396924972534, -0.22183161973953247, -0.3107544481754303, -0.03886938840150833, 0.024493545293807983, 0.10103494673967361, -0.10539655387401581, -0.323384553194046, 0.011640827171504498, 0.43790504336357117, -0.037832118570804596, -0.2044842541217804, 0.2812788486480713, 0.10532277077436447, 0.12282133102416992, -0.08606019616127014, 0.3797079622745514, -0.09527112543582916, -0.11661393195390701, 0.031525880098342896, -0.15092787146568298 ]
https://github.com/huggingface/datasets/issues/2677
Error when downloading C4
Hi Thanks for reporting ! It looks like these files are not correctly reported in the list of expected files to download, let me fix that ;)
Hi, I am trying to download `en` corpus from C4 dataset. However, I get an error caused by validation files download (see image). My code is very primitive: `datasets.load_dataset('c4', 'en')` Is this a bug or do I have some configurations missing on my server? Thanks! <img width="1014" alt="Снимок экрана 2021-07-20 в 11 37 17" src="https://user-images.githubusercontent.com/36672861/126289448-6e0db402-5f3f-485a-bf74-eb6e0271fc25.png">
27
Error when downloading C4 Hi, I am trying to download `en` corpus from C4 dataset. However, I get an error caused by validation files download (see image). My code is very primitive: `datasets.load_dataset('c4', 'en')` Is this a bug or do I have some configurations missing on my server? Thanks! <img width="1014" alt="Снимок экрана 2021-07-20 в 11 37 17" src="https://user-images.githubusercontent.com/36672861/126289448-6e0db402-5f3f-485a-bf74-eb6e0271fc25.png"> Hi Thanks for reporting ! It looks like these files are not correctly reported in the list of expected files to download, let me fix that ;)
[ 0.09684588015079498, -0.0686112716794014, -0.05390685796737671, 0.4750128388404846, 0.23112376034259796, 0.23958006501197815, 0.005816227290779352, 0.16763193905353546, -0.017036618664860725, -0.10581758618354797, -0.02598482556641102, -0.2992728650569916, 0.16184577345848083, -0.031800705939531326, 0.0029824094381183386, -0.11933223158121109, 0.13585495948791504, 0.08486122637987137, -0.13911983370780945, -0.3514159619808197, -0.11538258194923401, 0.09119173139333725, -0.1484111249446869, 0.11585456132888794, -0.02640756219625473, -0.027493916451931, 0.005661305505782366, 0.08160034567117691, -0.3496823310852051, -0.36203575134277344, 0.5557944774627686, 0.1042393147945404, 0.17857350409030914, 0.07448074966669083, -0.00011677346628857777, -0.1865386664867401, 0.3024599254131317, -0.3341221213340759, -0.1340886652469635, -0.12163198739290237, -0.33074694871902466, -0.20628991723060608, -0.24196726083755493, -0.349456250667572, -0.04425862431526184, -0.14099523425102234, 0.15530769526958466, -0.11969362944364548, 0.035110656172037125, 0.46307268738746643, 0.18099310994148254, -0.10437393188476562, 0.008373463526368141, -0.18091683089733124, -0.09256098419427872, 0.010255584493279457, 0.06696005910634995, 0.15237441658973694, 0.11259239166975021, 0.29547128081321716, 0.3457050323486328, 0.14385037124156952, 0.023414436727762222, -0.046174075454473495, 0.26480618119239807, -0.193227156996727, 0.16879867017269135, -0.3840816020965576, 0.3017907738685608, 0.27151110768318176, 0.9384878873825073, -0.14330731332302094, -0.16911368072032928, 0.24676431715488434, 0.18929699063301086, -0.18559913337230682, 0.29462647438049316, 0.6772627234458923, -0.06799376755952835, 0.12513139843940735, -0.32608145475387573, -0.1865653693675995, -0.11974598467350006, 0.2777038514614105, -0.12928156554698944, -0.21794456243515015, 0.07719238102436066, -0.05184243619441986, 0.10029850900173187, 0.20468568801879883, 0.003209757385775447, -0.4079836905002594, -0.17798298597335815, 0.21195809543132782, -0.11531736701726913, 0.0007463423535227776, -0.41276729106903076, 0.3904472291469574, -0.08808322250843048, -0.04882299154996872, -0.24433113634586334, -0.07201798260211945, -0.16063429415225983, 0.0810394138097763, 0.1806424856185913, -0.04470448940992355, 0.13689029216766357, 0.15672890841960907, 0.08027735352516174, -0.1490301489830017, 0.1545664370059967, -0.09443309903144836, -0.1808452159166336, -0.3186020255088806, -0.06164969876408577, 0.2068343460559845, -0.1288016140460968, -0.431806355714798, -0.2298419177532196, 0.23124930262565613, -0.3119584918022156, 0.07695768773555756, -0.11251415312290192, 0.42421725392341614, -0.4325267970561981, -0.052869103848934174, -0.08158890157938004, 0.1484346091747284, -0.05913379043340683, -0.5108193755149841, -0.11773627251386642, 0.056705500930547714, -0.2883007228374481, -0.21884483098983765, 0.2805013954639435, -0.5110839009284973, 0.29502588510513306, 0.05213804170489311, 0.17217963933944702, -0.11801210790872574, -0.08355658501386642, -0.32517576217651367, 0.08741621673107147, 0.27266260981559753, -0.13626131415367126, 0.12452886998653412, 0.2622080445289612, -0.29802054166793823, 0.028888244181871414, -0.04101719707250595, -0.3503582179546356, -0.12041013687849045, -0.1634518802165985, 0.11907075345516205, -0.2125159353017807, -0.009393787011504173, -0.34964752197265625, -0.2559761106967926, 0.2443346530199051, -0.09214866161346436, 0.15948018431663513, -0.31662124395370483, 0.03177405148744583, -0.16815632581710815, -0.04482799768447876, 0.35022205114364624, -0.36204373836517334, 0.018054550513625145, -0.03291228786110878, -0.11093642562627792, 0.36106377840042114, 0.2010711133480072, -0.17297877371311188, 0.30884644389152527, -0.2813073694705963, 0.2549065053462982, 0.048899438232183456, -0.542953372001648, -0.455084890127182, 0.2392609864473343, 0.10148635506629944, -0.07876018434762955, -0.22603324055671692, -0.07064951211214066, 0.38818418979644775, -0.18457143008708954, -0.051426954567432404, 0.0685294046998024, 0.09100288152694702, 0.04544524848461151, -0.13692547380924225, 0.05823679268360138, 0.1933750957250595, -0.03619154915213585, 0.20074185729026794, -0.09157045185565948, 0.2835768163204193, -0.1294594556093216, 0.2464185357093811, -0.19030162692070007, 0.17272599041461945, 0.27423185110092163, 0.1823209822177887, -0.12281149625778198, 0.13213083148002625, 0.3525640070438385, -0.4031895101070404, 0.16285233199596405, -0.04386889189481735, -0.00014911532343830913, -0.02020827867090702, 0.0030591448303312063, -0.263374924659729, -0.1960611343383789, -0.282892107963562, -0.08162849396467209, 0.02956550382077694, -0.1728116273880005, 0.036445844918489456, 0.15137434005737305, 0.16863825917243958, 0.5813816785812378, -0.2374357134103775, 0.07322277873754501, 0.1647724211215973, 0.3052452802658081, -0.11461767554283142, 0.32438746094703674, 0.06050805747509003, -0.1976238489151001, 0.3011150658130646, -0.118304044008255, -0.1741783767938614, 0.1802290827035904, 0.2748376727104187, 0.21194307506084442, -0.32576802372932434, 0.005128304939717054, 0.40521708130836487, -0.3786318898200989, 0.18285498023033142, 0.4098121225833893, 0.1813715398311615, -0.042486079037189484, 0.010512442328035831, -0.002569533186033368, -0.08980107307434082, -0.21864227950572968, 0.027364974841475487, 0.10816029459238052, 0.35472649335861206, -0.01612253114581108, -0.2691572308540344, -0.16400572657585144, 0.342519074678421, -0.2733929455280304, 0.040148839354515076, -0.007994771003723145, -0.17746388912200928, -0.32098641991615295, 0.48957598209381104, 0.06071138381958008, -0.03996364399790764, 0.1609402596950531, -0.028032265603542328, 0.05748524144291878, 0.35412687063217163, 0.20055684447288513, 0.5117337107658386, -0.0272197388112545, -0.20330537855625153, 0.26474127173423767, 0.1374891698360443, -0.18593306839466095, 0.3109610974788666, -0.21975141763687134, 0.10998944193124771, 0.18628588318824768, -0.0879821851849556, -0.12057410925626755, -0.39987868070602417, 0.15048880875110626, 0.3180184066295624, 0.08841092884540558, -0.3093161880970001, 0.12854626774787903, -0.4081650972366333, -0.2306697517633438, -0.2915102243423462, -0.13828405737876892, -0.06350141018629074, 0.055782198905944824, 0.003945579752326012, -0.1081700474023819, -0.14059515297412872, -0.004835835658013821, -0.6207508444786072, -0.043200619518756866, -0.04077790677547455, -0.1709543913602829, 0.0394604317843914, 0.25737059116363525, -0.2351539134979248, 0.009477398358285427, 0.109893798828125, 0.08838891983032227, 0.3553429841995239, -0.39844244718551636, 0.2627772092819214, -0.3834376037120819, -0.20119817554950714, 0.25265616178512573, 0.0835285559296608, -0.1793438345193863, -0.023576121777296066, 0.27641162276268005, -0.33039671182632446, -0.14719663560390472, -0.08177527040243149, 0.059342846274375916, -0.15935499966144562, 0.198516845703125, 0.040203630924224854, -0.1698153018951416, -0.16463692486286163, -0.5502982139587402, -0.41890400648117065, -0.08548592031002045, -0.1607697755098343, -0.17523419857025146, 0.03962124139070511, 0.4361675977706909, 0.018225939944386482, -0.07804270088672638, 0.10903308540582657, -0.1596163511276245, -0.25427764654159546, -0.12099078297615051, 0.42981457710266113, -0.25393614172935486, -0.5836588740348816, 0.10299216955900192, 0.010723939165472984, 0.17444533109664917, 0.3262532651424408, -0.3350967764854431, 0.34991708397865295, 0.10392537713050842, 0.021326182410120964, 0.025306755676865578, -0.21573927998542786, 0.34576988220214844, -0.2229926586151123, 0.12444654107093811, -0.1363959014415741, 0.27129873633384705, 0.10599680244922638, 0.20973704755306244, 0.5329784750938416, -0.442127525806427, -0.030273782089352608, 0.15386447310447693, 0.23192724585533142, 0.12779639661312103, -0.2935445308685303, 0.5387864708900452, 0.28659555315971375, 0.35814183950424194, 0.27939650416374207, -0.3494909703731537, 0.3341583013534546, -0.23430389165878296, -0.060602810233831406, 0.33069002628326416, -0.1923254281282425, -0.32056698203086853, -0.15435706079006195, 0.13522133231163025, -0.34581929445266724, -0.12566514313220978, -0.09959913045167923, -0.02323637716472149, 0.3672538101673126, 0.3243451714515686, 0.38687771558761597, 0.21906939148902893, -0.2529469430446625, 0.08798296749591827, 0.3665078282356262, 0.1922779530286789, 0.12189322710037231, -0.15943416953086853, -0.23854637145996094, -0.013744382187724113, 0.2690027952194214, 0.3512972295284271, 0.14291894435882568, 0.008692163974046707, 0.3366684317588806, -0.016954505816102028, 0.02738821692764759, 0.5130406022071838, -0.3365212082862854, 0.10413796454668045, -0.11993236839771271, 0.3165086805820465, -0.1912987381219864, -0.2906215488910675, -0.11216965317726135, 0.0052345809526741505, 0.25637149810791016, 0.2647581100463867, -0.3294278681278229, 0.159647136926651, -0.15779468417167664, 0.3297688066959381, -0.07170834392309189, -0.3489949703216553, -0.18009264767169952, -0.3787817060947418, -0.28614017367362976, 0.2097586691379547, 0.034452274441719055, 0.10971622169017792, -0.25216272473335266, 0.08008892834186554, 0.11535994708538055, 0.4076041877269745, 0.1858726143836975, 0.06485360115766525, 0.28903016448020935, 0.0751468613743782, -0.005816877353936434, -0.01539151556789875, 0.03914674371480942, 0.7092400789260864, 0.3661017417907715, -0.16851365566253662, -0.2802572548389435, -0.1138138473033905, -0.21256957948207855, 0.18739640712738037, 0.1063668355345726, 0.013256808742880821, -0.18257857859134674, 0.2383495420217514, -0.26547202467918396, 0.07524913549423218, 0.3841479420661926, 0.17352208495140076, -0.0579020194709301, -0.641762375831604, -0.4279417097568512, 0.027173355221748352, -0.16576355695724487, 0.07674657553434372, 0.15311621129512787, 0.21852578222751617, -0.148073211312294, -0.25441378355026245, 0.281848669052124, 0.8829853534698486, 0.10328669846057892, -0.17454037070274353, -0.04683234170079231, -0.15705695748329163, 0.1641244739294052, -0.6999189853668213, 0.06349258124828339, -0.2291504442691803, -0.4758974611759186, -0.2166137844324112, -0.14549528062343597, 0.30873215198516846, 0.4803788661956787, -0.26607438921928406, 0.3267463445663452, 0.12082450836896896, 0.26966527104377747, 0.09563424438238144, 0.11729534715414047, 0.08676176518201828, -0.229198157787323, -0.3270391821861267, 0.13728559017181396, -0.22785216569900513, 0.3816148638725281, -0.33043989539146423, -0.08741168677806854, -0.03549418970942497, -0.3432798683643341, -0.2652933895587921, 0.3194359242916107, 0.043342649936676025, 0.05220402032136917, 0.005462716333568096, -0.08032938838005066, 0.3363471031188965, 0.379625141620636, 0.30596494674682617, 0.5810823440551758, -0.11375953257083893, 0.09046807140111923, 0.08296746760606766, -0.21401040256023407, -0.0017035813070833683, -0.18632978200912476, 0.07272329926490784, -0.22095924615859985, -0.16374333202838898, 0.12524209916591644, 0.02568022906780243, -0.15543319284915924, 0.35425108671188354, -0.005230336915701628, -0.38360315561294556, -0.048526372760534286, -0.3185369670391083, 0.001829606364481151, 0.08064743876457214, 0.07416312396526337, 0.05423658341169357, 0.009240986779332161, -0.048400502651929855, 0.2165425717830658, 0.288849413394928, -0.2738631069660187, -0.10937502980232239, 0.4820818305015564, 0.006906619295477867, -0.4225785732269287, 0.3957422077655792, 0.06928423792123795, -0.28591689467430115, -0.2346082329750061, -0.2766028046607971, -0.3226011097431183, -0.4378264546394348, -0.2122827172279358, -0.12119018286466599, 0.2519947588443756, -0.35010236501693726, 0.22915351390838623, 0.1092434674501419, -0.08860044926404953, 0.33423322439193726, -0.4625099003314972, -0.12606854736804962, 0.0029642884619534016, -0.178019717335701, -0.023261016234755516, 0.1158493310213089, -0.06081872805953026, 0.17735101282596588, 0.04806545004248619, -0.20345215499401093, 0.029551232233643532, -0.22067707777023315, 0.09346023947000504, 0.1844986081123352, 0.029180560261011124, -0.014967519789934158, -0.2728756368160248, 0.010682557709515095, 0.20066721737384796, -0.1280091106891632, -0.10326319932937622, -0.04361582174897194, 0.191980242729187, 0.15635421872138977, 0.0032913824543356895, 0.3131912648677826, -0.22572864592075348, -0.16050395369529724, -0.04295649006962776, -0.04857471212744713, 0.25988948345184326, -0.035370782017707825, 0.2518922686576843, 0.25162187218666077, 0.11580872535705566, -0.237055703997612, 0.09190137684345245, 0.11321352422237396, 0.4768443703651428, -0.010512295179069042, 0.08806417137384415, 0.14207783341407776, 0.04848212003707886, -0.23340609669685364, 0.09949863702058792, 0.25949764251708984, -0.06110554561018944, 0.30479341745376587, -0.3842669427394867, 0.4487791359424591, 0.15277236700057983, 0.025996197015047073, 0.21585671603679657, -0.20954979956150055, -0.04459333047270775, 0.498342901468277, 0.16715501248836517, -0.22957193851470947, -0.05418707802891731, 0.1648523211479187, 0.20721715688705444, -0.27206364274024963, -0.04934660717844963, 0.19951166212558746, -0.32897987961769104, 0.2600117027759552, 0.06320139020681381, 0.3941883146762848, 0.006607196293771267, 0.2652600407600403, 0.4170494079589844, -0.05228265002369881, 0.19954809546470642, 0.05269600450992584, -0.13648323714733124, -0.10172798484563828, 0.13111282885074615, 0.10449973493814468, -0.23105543851852417, 0.37059158086776733, 0.26578590273857117, 0.023488087579607964, -0.48314398527145386, -0.046782512217760086, 0.31820404529571533, -0.04255502671003342, 0.17462760210037231, 0.424246221780777, -0.13323891162872314, 0.31429728865623474, -0.19722382724285126, -0.8147056698799133, 0.21345674991607666, -0.1136612668633461, 0.2533870041370392, -0.05708153545856476, -0.2354961782693863, 0.18783463537693024, 0.31163355708122253, -0.12428541481494904, -0.08305235207080841, 0.11010413616895676, 0.3088500201702118, -0.2186730057001114, -0.2400927096605301, 0.28898388147354126, 0.027846582233905792, 0.029252629727125168, -0.21235856413841248, 0.23175768554210663, 0.20562772452831268, 0.09635709226131439, 0.15086781978607178, 0.01684304140508175, 0.2187575250864029, 0.3880804479122162, 0.22878184914588928, 0.012623846530914307, 0.014551271684467793, -0.011837487109005451, 0.17286452651023865, 0.5091128349304199, 0.4928584694862366, 0.1775873303413391, 0.3632192313671112, 0.07827164977788925, -0.058883849531412125, 0.1305733174085617, 0.059745293110609055, 0.11488138884305954, -0.14861677587032318, 0.21046553552150726, -0.07804718613624573, 0.08696334064006805, -0.38053348660469055, -0.06499561667442322, -0.2805465757846832, 0.31119635701179504, 0.566416323184967, -0.016214484348893166, 0.1151910126209259, -0.12816563248634338, 0.029156779870390892, -0.11010134965181351, 0.36440539360046387, 0.2182440161705017, 0.49858444929122925, -0.30342066287994385, -0.2396450787782669, -0.6170096397399902, 0.3663160502910614, -0.37596261501312256, 0.23659202456474304, -0.1307976394891739, -0.012216032482683659, 0.33237558603286743, 0.37077343463897705, -0.06659315526485443, 0.30857765674591064, 0.14302997291088104, 0.47489961981773376, -0.05321845784783363, -0.07031320035457611, 0.20460280776023865, 0.06994843482971191, -0.12270931899547577, -0.41489410400390625, 0.050475213676691055, -0.10696084797382355, 0.0798349380493164, -0.18072523176670074, -0.03658962994813919, -0.06134148687124252, 0.23185308277606964, 0.35786107182502747, 0.10507982224225998, 0.8830099701881409, -0.056726012378931046, -0.010340463370084763, -0.009469937533140182, 0.054144237190485, -0.1428789645433426, 0.2769041359424591, 0.02098616026341915, 0.10571963340044022, 0.025450479239225388, 0.019499359652400017, -0.123258076608181, 0.44624361395835876, 0.19242678582668304, 0.13853703439235687, -0.30476054549217224, -0.25556284189224243, -0.36609214544296265, -0.23978205025196075, -0.08903651684522629, -0.1024264246225357, -0.012979698367416859, -0.08468378335237503, 0.04734104871749878, -0.404579222202301, 0.5043484568595886, -0.5797142386436462, -0.159644216299057, -0.051916804164648056, 0.1902923285961151, -0.03869467228651047, -0.17019879817962646, -0.17261603474617004, 0.2493823915719986, 0.3882628083229065, -0.20968163013458252, -0.27871644496917725, -0.01533881202340126, 0.00803353637456894, -0.020850811153650284, -0.051716867834329605, 0.7078824043273926, 0.051553789526224136, -0.4494343101978302, -0.16273754835128784, -0.40894782543182373 ]
https://github.com/huggingface/datasets/issues/2677
Error when downloading C4
Alright this is fixed now. We'll do a new release soon to make the fix available. In the meantime feel free to simply pass `ignore_verifications=True` to `load_dataset` to skip this error
Hi, I am trying to download `en` corpus from C4 dataset. However, I get an error caused by validation files download (see image). My code is very primitive: `datasets.load_dataset('c4', 'en')` Is this a bug or do I have some configurations missing on my server? Thanks! <img width="1014" alt="Снимок экрана 2021-07-20 в 11 37 17" src="https://user-images.githubusercontent.com/36672861/126289448-6e0db402-5f3f-485a-bf74-eb6e0271fc25.png">
31
Error when downloading C4 Hi, I am trying to download `en` corpus from C4 dataset. However, I get an error caused by validation files download (see image). My code is very primitive: `datasets.load_dataset('c4', 'en')` Is this a bug or do I have some configurations missing on my server? Thanks! <img width="1014" alt="Снимок экрана 2021-07-20 в 11 37 17" src="https://user-images.githubusercontent.com/36672861/126289448-6e0db402-5f3f-485a-bf74-eb6e0271fc25.png"> Alright this is fixed now. We'll do a new release soon to make the fix available. In the meantime feel free to simply pass `ignore_verifications=True` to `load_dataset` to skip this error
[ 0.036001890897750854, -0.03901058807969093, -0.044648636132478714, 0.420443594455719, 0.22434532642364502, 0.24260085821151733, -0.026892390102148056, 0.15308472514152527, -0.06727127730846405, -0.029162365943193436, 0.016473589465022087, -0.25081267952919006, 0.1566774994134903, 0.0499306246638298, 0.0004604901769198477, -0.05729995667934418, 0.12339311838150024, 0.07685738056898117, -0.13000504672527313, -0.2965221703052521, -0.12795333564281464, 0.06371427327394485, -0.14548762142658234, 0.09782896935939789, -0.01572495512664318, 0.004198634065687656, -0.03612207993865013, 0.11285348236560822, -0.3306387662887573, -0.4125276207923889, 0.5867493748664856, 0.08645033836364746, 0.2514701783657074, 0.06079274043440819, -0.00011312439164612442, -0.18661798536777496, 0.3207836151123047, -0.2820206880569458, -0.17490127682685852, -0.13341625034809113, -0.32523754239082336, -0.14297156035900116, -0.22703886032104492, -0.34869223833084106, -0.05865198373794556, -0.08707275986671448, 0.1525994837284088, -0.14044681191444397, 0.02932620607316494, 0.36924630403518677, 0.21021416783332825, -0.11866597086191177, 0.03421037271618843, -0.20886369049549103, -0.14667078852653503, -0.09703362733125687, 0.06770779192447662, 0.16247199475765228, 0.13681787252426147, 0.28226789832115173, 0.3550722301006317, 0.2087816447019577, -0.041718896478414536, -0.017364269122481346, 0.3091592788696289, -0.22350889444351196, 0.2251719981431961, -0.37021273374557495, 0.33608999848365784, 0.2796584367752075, 0.9650496244430542, -0.1046358272433281, -0.15881364047527313, 0.2854287922382355, 0.22511263191699982, -0.17314259707927704, 0.34631046652793884, 0.6254922747612, -0.09347564727067947, 0.1446562260389328, -0.3239198923110962, -0.27928125858306885, -0.11341764032840729, 0.2988191843032837, -0.11966467648744583, -0.18171879649162292, 0.1240486428141594, -0.03445659205317497, 0.18947258591651917, 0.21155498921871185, 0.05127226188778877, -0.3572789132595062, -0.22942234575748444, 0.24400782585144043, -0.13965973258018494, -0.010946937836706638, -0.39344510436058044, 0.4090082049369812, -0.10729066282510757, -0.030837198719382286, -0.30798494815826416, -0.04929902404546738, -0.11206415295600891, 0.09445982426404953, 0.20300573110580444, -0.06977768242359161, 0.1198691576719284, 0.11491920799016953, 0.1016230583190918, -0.15297764539718628, 0.20407888293266296, -0.054578058421611786, -0.18379132449626923, -0.35302218794822693, -0.09422346949577332, 0.15584903955459595, -0.12330359220504761, -0.37832680344581604, -0.1654173880815506, 0.17640206217765808, -0.3575057089328766, 0.11714760959148407, -0.13702167570590973, 0.4213329255580902, -0.39037850499153137, -0.05049119144678116, -0.03595031052827835, 0.11070790141820908, -0.11205247789621353, -0.5132819414138794, -0.12105897068977356, 0.07894685864448547, -0.2682029902935028, -0.2268250733613968, 0.2764568328857422, -0.5189312696456909, 0.20747675001621246, 0.04414326325058937, 0.15349559485912323, -0.06714381277561188, -0.08733063191175461, -0.2824048101902008, 0.02642514742910862, 0.26985087990760803, -0.12030423432588577, 0.07067769765853882, 0.2335551679134369, -0.32447609305381775, 0.012957578524947166, 0.013095557689666748, -0.33584699034690857, -0.1569311022758484, -0.20962701737880707, 0.1417195200920105, -0.14727741479873657, -0.037568263709545135, -0.3525378108024597, -0.2765510380268097, 0.23899947106838226, -0.09173264354467392, 0.1340073198080063, -0.28951922059059143, -0.012051789090037346, -0.16460850834846497, -0.07267723977565765, 0.35153302550315857, -0.3475583791732788, 0.0224018394947052, -0.06331368535757065, -0.09841570258140564, 0.3028384745121002, 0.17560186982154846, -0.19843198359012604, 0.2672308087348938, -0.26715564727783203, 0.2501601576805115, -0.013776758685708046, -0.5401049256324768, -0.5093711614608765, 0.2695918083190918, 0.05511312559247017, -0.06869353353977203, -0.2188577651977539, -0.03552746772766113, 0.33489352464675903, -0.1923200786113739, 0.013416127301752567, 0.13950234651565552, 0.06482534855604172, 0.056467704474925995, -0.10899712145328522, -0.017678653821349144, 0.2234358936548233, -0.045537710189819336, 0.2158852070569992, -0.05589950829744339, 0.2599472105503082, -0.09734926372766495, 0.2286309003829956, -0.233747661113739, 0.1718612015247345, 0.304797500371933, 0.22691431641578674, -0.17651358246803284, 0.05882963538169861, 0.33985933661460876, -0.4050038456916809, 0.20014622807502747, 0.016385143622756004, 0.09920629858970642, -0.03257862105965614, -0.006913269869983196, -0.19496922194957733, -0.17704598605632782, -0.28262168169021606, -0.09938503056764603, 0.035647470504045486, -0.20614290237426758, 0.03587353229522705, 0.1314908266067505, 0.19092512130737305, 0.5959510207176208, -0.2169482707977295, 0.07948174327611923, 0.1361021250486374, 0.26387083530426025, -0.18122969567775726, 0.3510240614414215, 0.022807765752077103, -0.17560581862926483, 0.2562203109264374, -0.14292998611927032, -0.15280494093894958, 0.2349880337715149, 0.21686843037605286, 0.2181943655014038, -0.32246753573417664, -0.015165941789746284, 0.3912173807621002, -0.3939548134803772, 0.1423124521970749, 0.38449427485466003, 0.21877934038639069, -0.01600285992026329, 0.0914730429649353, -0.04635365679860115, -0.11192341893911362, -0.22086937725543976, 0.04277263581752777, 0.09839489310979843, 0.3558836281299591, 0.0020105938892811537, -0.2500750720500946, -0.15205396711826324, 0.3440111577510834, -0.3176957964897156, -0.006803455762565136, -0.038801223039627075, -0.10953249782323837, -0.3359956443309784, 0.40607550740242004, 0.09465113282203674, -0.03739512711763382, 0.1653103232383728, -0.023726658895611763, 0.027425704523921013, 0.31577542424201965, 0.2485595941543579, 0.4471753239631653, -0.013600342907011509, -0.21439005434513092, 0.2998839020729065, 0.15738196671009064, -0.16022364795207977, 0.3488217890262604, -0.22977304458618164, 0.13482341170310974, 0.050811752676963806, -0.10896614193916321, -0.09183657914400101, -0.3125115633010864, 0.11669407039880753, 0.31336042284965515, 0.1552191823720932, -0.27927258610725403, 0.13187633454799652, -0.4109160006046295, -0.24897520244121552, -0.18480326235294342, -0.18501488864421844, -0.08525325357913971, 0.04582471773028374, -0.015291738323867321, -0.06333266198635101, -0.13389994204044342, -0.020053675398230553, -0.5972524881362915, -0.060582201927900314, -0.036518946290016174, -0.23656076192855835, 0.0650055781006813, 0.1695263832807541, -0.21822232007980347, 0.03483572229743004, 0.15680229663848877, 0.009486391209065914, 0.36651790142059326, -0.38670405745506287, 0.2242773026227951, -0.35410794615745544, -0.23438860476016998, 0.24377256631851196, 0.05888896435499191, -0.16311901807785034, -0.03504643589258194, 0.27163371443748474, -0.377198725938797, -0.12626531720161438, -0.1053924709558487, 0.01658947393298149, -0.16420739889144897, 0.2119743824005127, 0.1110280454158783, -0.19945795834064484, -0.17520177364349365, -0.5475433468818665, -0.4019848108291626, -0.08435357362031937, -0.15553411841392517, -0.17611543834209442, 0.020041126757860184, 0.4436434209346771, 0.046570513397455215, -0.05506400018930435, 0.13535301387310028, -0.250865638256073, -0.3042046129703522, -0.10633022338151932, 0.3193988800048828, -0.2624068856239319, -0.5575558543205261, 0.1595306396484375, 0.02740652672946453, 0.17516642808914185, 0.31577032804489136, -0.3637109696865082, 0.3887701630592346, 0.09783969819545746, 0.10544770210981369, -0.03013169765472412, -0.221937894821167, 0.43510928750038147, -0.20209625363349915, 0.09464921057224274, -0.09567143023014069, 0.2763972580432892, 0.08469922840595245, 0.15218067169189453, 0.5275929570198059, -0.42818525433540344, -0.03821469098329544, 0.1636306494474411, 0.17683261632919312, 0.055130403488874435, -0.24532566964626312, 0.5363040566444397, 0.2724508047103882, 0.3966638743877411, 0.24146656692028046, -0.3665803372859955, 0.3376545310020447, -0.2462870180606842, -0.09732700139284134, 0.3054601550102234, -0.22020281851291656, -0.3122650682926178, -0.2184074968099594, 0.0671335831284523, -0.2943171560764313, -0.17756065726280212, -0.12286839634180069, -0.0551593080163002, 0.30679118633270264, 0.3584989607334137, 0.38227760791778564, 0.23450349271297455, -0.2700299024581909, 0.028006454929709435, 0.3280116319656372, 0.12048618495464325, 0.10909771919250488, -0.1994674801826477, -0.24111302196979523, -0.06923423707485199, 0.3282167315483093, 0.38174864649772644, 0.19860729575157166, 0.03272876515984535, 0.34424400329589844, -0.0016994080506265163, -0.0023000813089311123, 0.5099652409553528, -0.2901914119720459, 0.13602222502231598, -0.13470688462257385, 0.2955150008201599, -0.20257364213466644, -0.2343927025794983, -0.049421682953834534, 0.02513991668820381, 0.2978610694408417, 0.21749892830848694, -0.27989789843559265, 0.17006412148475647, -0.14172860980033875, 0.30463194847106934, -0.02833613194525242, -0.329850435256958, -0.18424959480762482, -0.3711109757423401, -0.31300172209739685, 0.21866172552108765, 0.005644562654197216, 0.1686590313911438, -0.20480424165725708, 0.13315220177173615, 0.06940146535634995, 0.4012479782104492, 0.13604189455509186, 0.046686943620443344, 0.26891028881073, 0.07114478945732117, -0.003164812223985791, -0.012465243227779865, 0.029265649616718292, 0.7025740146636963, 0.3302227854728699, -0.13469134271144867, -0.27162277698516846, -0.143902987241745, -0.12448641657829285, 0.1391991525888443, 0.11082422733306885, 0.016813872382044792, -0.18976974487304688, 0.28592461347579956, -0.2699914276599884, 0.032289303839206696, 0.2813590168952942, 0.13068094849586487, -0.0307326540350914, -0.6320244073867798, -0.42107972502708435, 0.06090781092643738, -0.18137022852897644, 0.09585707634687424, 0.1489228904247284, 0.2680444121360779, -0.12857107818126678, -0.21744488179683685, 0.21882840991020203, 0.8750143647193909, 0.12908726930618286, -0.13012553751468658, -0.02646714821457863, -0.08860565721988678, 0.21637603640556335, -0.6644521951675415, 0.11958631873130798, -0.22566524147987366, -0.391249418258667, -0.22046096622943878, -0.12843620777130127, 0.3262505829334259, 0.41412022709846497, -0.25693479180336, 0.3033984303474426, 0.05099711939692497, 0.23801745474338531, 0.09886045008897781, 0.08867721259593964, 0.007095417473465204, -0.24925732612609863, -0.25337761640548706, 0.16598458588123322, -0.2577987611293793, 0.3493569791316986, -0.3405812978744507, -0.05199407786130905, -0.047962676733732224, -0.36749550700187683, -0.30828335881233215, 0.3698097765445709, 0.026316186413168907, 0.10837626457214355, 0.002481652656570077, -0.00614741537719965, 0.3616020083427429, 0.3097479045391083, 0.3440256714820862, 0.5899111032485962, -0.15183255076408386, 0.105357825756073, 0.09752412140369415, -0.26611393690109253, 0.04072964936494827, -0.21647591888904572, 0.11555392295122147, -0.1921955645084381, -0.254537969827652, 0.1187402606010437, 0.03921164572238922, -0.207143172621727, 0.4058915972709656, 0.03516199067234993, -0.3002879023551941, 0.003973419312387705, -0.3729737401008606, 0.009060277603566647, 0.1176949068903923, 0.03169286623597145, 0.08881215006113052, -0.011498507112264633, -0.08979387581348419, 0.17070940136909485, 0.30158644914627075, -0.277734637260437, -0.08117510378360748, 0.5380646586418152, -0.016519710421562195, -0.43630629777908325, 0.40671679377555847, 0.0910995602607727, -0.26506343483924866, -0.2602671682834625, -0.23032230138778687, -0.35991695523262024, -0.3782094120979309, -0.23189665377140045, -0.07807005196809769, 0.24429331719875336, -0.3475923240184784, 0.21214289963245392, 0.05346696823835373, -0.03267193213105202, 0.3668104410171509, -0.4717724323272705, -0.10387945920228958, -0.005159203428775072, -0.24117152392864227, -0.026319749653339386, 0.17953506112098694, 0.017305519431829453, 0.14487430453300476, 0.06667454540729523, -0.232411727309227, 0.018877428025007248, -0.21157969534397125, 0.06079966202378273, 0.2579634487628937, 0.01577438786625862, 0.03316795080900192, -0.317306250333786, 0.05626313015818596, 0.23541593551635742, -0.13832882046699524, -0.14425307512283325, -0.043543197214603424, 0.1712249368429184, 0.1415523886680603, -0.05471319705247879, 0.37988990545272827, -0.2556416094303131, -0.1825089156627655, -0.00479490589350462, -0.028568632900714874, 0.30920538306236267, -0.04800119623541832, 0.19784227013587952, 0.23159071803092957, 0.1624959260225296, -0.23060283064842224, 0.13846413791179657, 0.08223067969083786, 0.4809703230857849, -0.07675903290510178, 0.0964093878865242, 0.08726578205823898, 0.055979542434215546, -0.2521456480026245, 0.06560873240232468, 0.23220425844192505, -0.008838588371872902, 0.28206250071525574, -0.4166627526283264, 0.4334471821784973, 0.10914245992898941, -0.0127716651186347, 0.22325144708156586, -0.2425815761089325, -0.10637161135673523, 0.5650660395622253, 0.19571255147457123, -0.24593156576156616, -0.04488077014684677, 0.10908341407775879, 0.16161809861660004, -0.2950553297996521, -0.02007182501256466, 0.143901526927948, -0.3322838246822357, 0.1799619495868683, 0.06278868019580841, 0.3500891625881195, -0.07054603844881058, 0.2851704955101013, 0.4285670816898346, -0.1124066412448883, 0.15801814198493958, 0.017532775178551674, -0.09012532234191895, -0.04498695209622383, 0.1519816815853119, 0.02078459970653057, -0.2855873703956604, 0.39171773195266724, 0.31133100390434265, -0.03928709775209427, -0.5306157469749451, -0.01697220467031002, 0.333749920129776, -0.057357221841812134, 0.13620537519454956, 0.40134966373443604, -0.1384163200855255, 0.2527983486652374, -0.14553365111351013, -0.7807800769805908, 0.29337838292121887, -0.12416242063045502, 0.1993798464536667, 0.04479506239295006, -0.1824665069580078, 0.1992431879043579, 0.2737716734409332, -0.11258886009454727, -0.12413005530834198, 0.0894685760140419, 0.3351046144962311, -0.2027255743741989, -0.2588580548763275, 0.25894805788993835, 0.0043815807439386845, -0.022876696661114693, -0.22049622237682343, 0.19673362374305725, 0.16131922602653503, 0.11659818887710571, 0.12137290090322495, 0.027868889272212982, 0.28110554814338684, 0.38002750277519226, 0.1551167368888855, 0.0051988898776471615, -0.051297876983881, 0.03080933541059494, 0.21066775918006897, 0.46825703978538513, 0.5239810347557068, 0.1957228034734726, 0.3474486470222473, 0.08084012567996979, -0.0617094561457634, 0.10587573051452637, 0.08854762464761734, 0.19068391621112823, -0.1326034814119339, 0.2188701182603836, -0.07925637066364288, 0.15003104507923126, -0.41932037472724915, 0.03140909597277641, -0.25482046604156494, 0.3473965525627136, 0.5314043164253235, -0.05585471913218498, 0.11739872395992279, -0.121558278799057, 0.04544735699892044, -0.09322474151849747, 0.3865906596183777, 0.24005918204784393, 0.44531068205833435, -0.28618109226226807, -0.18728592991828918, -0.6304116249084473, 0.3185948431491852, -0.38954800367355347, 0.18973718583583832, -0.13824810087680817, 0.020808646455407143, 0.31157103180885315, 0.36155790090560913, -0.13070662319660187, 0.3410049080848694, 0.1538970172405243, 0.4440057873725891, -0.02416166663169861, -0.04795447364449501, 0.2248767465353012, 0.010665491223335266, -0.10288047790527344, -0.47510671615600586, 0.03005697764456272, -0.10461343079805374, 0.08701799809932709, -0.15085634589195251, -0.013043120503425598, -0.02128687873482704, 0.13971368968486786, 0.40288737416267395, 0.08270229399204254, 0.8158760666847229, -0.031241243705153465, -0.02696356736123562, -0.06477204710245132, 0.043693460524082184, -0.16821227967739105, 0.2752508819103241, 0.09536777436733246, 0.06574071198701859, -0.027701621875166893, 0.026563050225377083, -0.14459006488323212, 0.46080702543258667, 0.13002878427505493, 0.16491776704788208, -0.3377993106842041, -0.2344682812690735, -0.3548511564731598, -0.12997019290924072, -0.12786465883255005, -0.08096037060022354, -0.018934965133666992, -0.026521917432546616, 0.04693534970283508, -0.40277227759361267, 0.5305594801902771, -0.5888617634773254, -0.1571631133556366, -0.029735200107097626, 0.19844871759414673, -0.04141267389059067, -0.23305954039096832, -0.1098872646689415, 0.28023645281791687, 0.3406996726989746, -0.11726436764001846, -0.29226502776145935, 0.008228282444179058, -0.04379964619874954, 0.02045435830950737, -0.07098131626844406, 0.7276515960693359, 0.032676029950380325, -0.4151467978954315, -0.16170509159564972, -0.39148351550102234 ]
https://github.com/huggingface/datasets/issues/2669
Metric kwargs are not passed to underlying external metric f1_score
Hi @BramVanroy, thanks for reporting. First, note that `"min"` is not an allowed value for `average`. According to scikit-learn [documentation](https://scikit-learn.org/stable/modules/generated/sklearn.metrics.f1_score.html), `average` can only take the values: `{"micro", "macro", "samples", "weighted", "binary"} or None, default="binary"`. Second, you should take into account that all additional metric-specific argument should be passed in the method `compute` (and not in the method `load_metric`). You can find more information in our documentation: https://huggingface.co/docs/datasets/using_metrics.html#computing-the-metric-scores So for example, if you would like to calculate the macro-averaged F1 score, you should use: ```python import datasets f1 = datasets.load_metric("f1", keep_in_memory=True) f1.add_batch(predictions=[0,2,3], references=[1, 2, 3]) f1.compute(average="macro") ```
## Describe the bug When I want to use F1 score with average="min", this keyword argument does not seem to be passed through to the underlying sklearn metric. This is evident because [sklearn](https://scikit-learn.org/stable/modules/generated/sklearn.metrics.f1_score.html) throws an error telling me so. ## Steps to reproduce the bug ```python import datasets f1 = datasets.load_metric("f1", keep_in_memory=True, average="min") f1.add_batch(predictions=[0,2,3], references=[1, 2, 3]) f1.compute() ``` ## Expected results No error, because `average="min"` should be passed correctly to f1_score in sklearn. ## Actual results ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\datasets\metric.py", line 402, in compute output = self._compute(predictions=predictions, references=references, **kwargs) File "C:\Users\bramv\.cache\huggingface\modules\datasets_modules\metrics\f1\82177930a325d4c28342bba0f116d73f6d92fb0c44cd67be32a07c1262b61cfe\f1.py", line 97, in _compute "f1": f1_score( File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f return f(*args, **kwargs) File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1071, in f1_score return fbeta_score(y_true, y_pred, beta=1, labels=labels, File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f return f(*args, **kwargs) File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1195, in fbeta_score _, _, f, _ = precision_recall_fscore_support(y_true, y_pred, File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f return f(*args, **kwargs) File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1464, in precision_recall_fscore_support labels = _check_set_wise_labels(y_true, y_pred, average, labels, File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1294, in _check_set_wise_labels raise ValueError("Target is %s but average='binary'. Please " ValueError: Target is multiclass but average='binary'. Please choose another average setting, one of [None, 'micro', 'macro', 'weighted']. ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Windows-10-10.0.19041-SP0 - Python version: 3.9.2 - PyArrow version: 4.0.1
96
Metric kwargs are not passed to underlying external metric f1_score ## Describe the bug When I want to use F1 score with average="min", this keyword argument does not seem to be passed through to the underlying sklearn metric. This is evident because [sklearn](https://scikit-learn.org/stable/modules/generated/sklearn.metrics.f1_score.html) throws an error telling me so. ## Steps to reproduce the bug ```python import datasets f1 = datasets.load_metric("f1", keep_in_memory=True, average="min") f1.add_batch(predictions=[0,2,3], references=[1, 2, 3]) f1.compute() ``` ## Expected results No error, because `average="min"` should be passed correctly to f1_score in sklearn. ## Actual results ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\datasets\metric.py", line 402, in compute output = self._compute(predictions=predictions, references=references, **kwargs) File "C:\Users\bramv\.cache\huggingface\modules\datasets_modules\metrics\f1\82177930a325d4c28342bba0f116d73f6d92fb0c44cd67be32a07c1262b61cfe\f1.py", line 97, in _compute "f1": f1_score( File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f return f(*args, **kwargs) File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1071, in f1_score return fbeta_score(y_true, y_pred, beta=1, labels=labels, File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f return f(*args, **kwargs) File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1195, in fbeta_score _, _, f, _ = precision_recall_fscore_support(y_true, y_pred, File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f return f(*args, **kwargs) File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1464, in precision_recall_fscore_support labels = _check_set_wise_labels(y_true, y_pred, average, labels, File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1294, in _check_set_wise_labels raise ValueError("Target is %s but average='binary'. Please " ValueError: Target is multiclass but average='binary'. Please choose another average setting, one of [None, 'micro', 'macro', 'weighted']. ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Windows-10-10.0.19041-SP0 - Python version: 3.9.2 - PyArrow version: 4.0.1 Hi @BramVanroy, thanks for reporting. First, note that `"min"` is not an allowed value for `average`. According to scikit-learn [documentation](https://scikit-learn.org/stable/modules/generated/sklearn.metrics.f1_score.html), `average` can only take the values: `{"micro", "macro", "samples", "weighted", "binary"} or None, default="binary"`. Second, you should take into account that all additional metric-specific argument should be passed in the method `compute` (and not in the method `load_metric`). You can find more information in our documentation: https://huggingface.co/docs/datasets/using_metrics.html#computing-the-metric-scores So for example, if you would like to calculate the macro-averaged F1 score, you should use: ```python import datasets f1 = datasets.load_metric("f1", keep_in_memory=True) f1.add_batch(predictions=[0,2,3], references=[1, 2, 3]) f1.compute(average="macro") ```
[ -0.05162910744547844, -0.5501688122749329, 0.08731412887573242, 0.20385701954364777, 0.4681910276412964, -0.06437955796718597, 0.17485947906970978, -0.1953882873058319, 0.3451760709285736, 0.2828975319862366, 0.06791353225708008, 0.44621700048446655, 0.17837199568748474, 0.024254804477095604, -0.01820342428982258, 0.06169835478067398, 0.10580421984195709, -0.35871291160583496, -0.08462310582399368, -0.29872190952301025, -0.4068838059902191, 0.0102044977247715, -0.4048622250556946, 0.020255284383893013, -0.2006225436925888, 0.06136279180645943, -0.034785110503435135, -0.17003709077835083, 0.0016801755409687757, -0.0039012066554278135, 0.3077564239501953, 0.12656518816947937, -0.09706686437129974, 0.36638689041137695, -0.00012357808009255677, -0.09861310571432114, 0.45262593030929565, -0.1368989646434784, -0.03718283399939537, -0.01110989972949028, -0.17645172774791718, 0.014776407741010189, -0.12447776645421982, -0.3509165942668915, 0.19185633957386017, 0.10585188120603561, -0.17391906678676605, -0.3824927508831024, 0.23381704092025757, 0.36850258708000183, 0.0636829063296318, 0.15738491714000702, -0.20920805633068085, -0.17202185094356537, -0.2959969639778137, -0.10444556176662445, -0.1850387454032898, 0.4786294102668762, -0.6841754913330078, -0.07330390810966492, -0.16761720180511475, 0.09177008271217346, 0.15016257762908936, -0.012652212753891945, 0.7468224167823792, 0.0399315245449543, 0.3019666075706482, 0.11366339772939682, 0.17920993268489838, -0.11559824645519257, 0.06793651729822159, -0.38695722818374634, -0.4035753607749939, -0.1462424248456955, 0.09400887787342072, -0.7693842649459839, 0.10778295248746872, 0.01441618986427784, -0.22673669457435608, -0.09297265857458115, -0.10468269884586334, -0.1168840304017067, -0.35617515444755554, 0.07649895548820496, -0.05030315741896629, 0.6123208999633789, 0.001516793854534626, 0.08291821926832199, 0.19272038340568542, 0.1838298887014389, 0.04063401743769646, -0.29307833313941956, 0.028406649827957153, 0.07169098407030106, -0.26317399740219116, 0.2108209878206253, -0.03953007608652115, -0.06361725181341171, 0.27936872839927673, 0.05150051787495613, -0.07608512043952942, 0.043782610446214676, 0.43050307035446167, 0.053258899599313736, 0.197408527135849, 0.5313013195991516, 0.4781777858734131, 0.3300953209400177, -0.01640116050839424, 0.0775585025548935, -0.19735835492610931, -0.24802005290985107, 0.2715122699737549, -0.005864611826837063, 0.24951234459877014, 0.1664946973323822, 0.019845683127641678, -0.07760205864906311, -0.29834771156311035, -0.08160001039505005, 0.04883664846420288, -0.01312793605029583, 0.03460732847452164, 0.15964458882808685, -0.04791905730962753, 0.341995507478714, 0.058227382600307465, 0.36950114369392395, -0.11243297159671783, -0.015164479613304138, -0.22242048382759094, 0.1949930340051651, -0.4361763894557953, 0.144170880317688, -0.20224015414714813, -0.12393610179424286, 0.5087711215019226, -0.002383062383159995, 0.6064441800117493, -0.4638633131980896, -0.09306450933218002, 0.03858238458633423, -0.01924055442214012, -0.012212351895868778, -0.4288245737552643, 0.24125537276268005, 0.033799320459365845, 0.06149830296635628, 0.043861690908670425, -0.016411004588007927, -0.3245542347431183, -0.08430171757936478, 0.4818832576274872, 0.04131563752889633, -0.29566532373428345, -0.13289017975330353, -0.18590779602527618, 0.2178625464439392, 0.02084665559232235, 0.11415877193212509, 0.03676750510931015, -0.1453690528869629, -0.5320338010787964, -0.2027043253183365, 0.7653899788856506, 0.06728969514369965, 0.12443579733371735, -0.25145408511161804, -0.13326820731163025, 0.08056852221488953, -0.0005606382619589567, 0.05522521957755089, 0.032728493213653564, 0.27925336360931396, -0.045748863369226456, 0.062304239720106125, 0.2406337410211563, -0.6767404675483704, -0.44081419706344604, 0.02512115053832531, 0.04600973799824715, -0.033232156187295914, 0.20002381503582, -0.1751341074705124, 0.352132648229599, -0.004727647639811039, 0.199983149766922, 0.43018609285354614, -0.1823698878288269, -0.06753665953874588, -0.4210841953754425, -0.04798179119825363, 0.04895251616835594, -0.11043248325586319, 0.4257761836051941, 0.06625083833932877, 0.08449699729681015, 0.26180458068847656, 0.0360829196870327, 0.19154803454875946, -0.14731425046920776, 0.04951287806034088, 0.07015557587146759, -0.35304102301597595, 0.08565183728933334, 0.05550733953714371, -0.1457141786813736, 0.10352553427219391, -0.14345547556877136, -0.16814331710338593, 0.19271497428417206, -0.30292636156082153, -0.7353893518447876, 0.23798517882823944, -0.012678567320108414, -0.16759547591209412, 0.027924509719014168, -0.0007103462121449411, -0.1402493417263031, 0.2118350714445114, 0.12469236552715302, -0.2877168357372284, -0.2155010998249054, 0.06897656619548798, 0.2514444887638092, 0.08795856684446335, -0.027526400983333588, -0.11782225966453552, -0.05401377007365227, 0.2617592215538025, 0.4194563627243042, 0.028171006590127945, -0.04297277703881264, 0.5366610288619995, 0.22599133849143982, 0.14094139635562897, 0.16081540286540985, 0.03406425192952156, 0.24411258101463318, -0.03287681192159653, 0.04781215637922287, 0.3331083655357361, 0.10056907683610916, -0.1979619264602661, -0.09774500131607056, 0.42077770829200745, 0.1251932680606842, 0.3327288329601288, -0.08693599700927734, 0.27263206243515015, -0.25675851106643677, 0.09712281823158264, -0.10237663239240646, -0.20689302682876587, -0.07798319309949875, -0.49069300293922424, -0.02036447636783123, -0.23489248752593994, 0.024976443499326706, 0.12153202295303345, 0.43323221802711487, 0.1995496302843094, 0.15231846272945404, -0.0760575458407402, -0.22779414057731628, -0.062457501888275146, 0.0835697278380394, -0.11119566112756729, 0.43645399808883667, 0.15620262920856476, 0.034349750727415085, 0.20551854372024536, -0.14611047506332397, -0.09510970115661621, 0.18143196403980255, 0.4817383587360382, -0.08056408911943436, 0.24359825253486633, -0.09375295788049698, -0.11314880102872849, -0.06352221220731735, 0.2218562215566635, 0.05215398967266083, -0.07927387952804565, -0.5283738374710083, 0.23644112050533295, -0.03921342268586159, 0.20111940801143646, -0.21591004729270935, 0.09860117733478546, -0.17114262282848358, -0.7540907263755798, -0.1033213809132576, 0.08214981108903885, -0.1489275097846985, 0.3635011911392212, -0.20498491823673248, 0.2673458755016327, -0.049650732427835464, 0.022341206669807434, 0.036626797169446945, -0.3193082809448242, -0.17085745930671692, -0.1480313390493393, 0.2124336212873459, -0.02878675051033497, 0.34430792927742004, 0.38732653856277466, 0.21644346415996552, 0.07315389066934586, -0.4658791422843933, -0.14315101504325867, 0.08147741109132767, 0.9184207916259766, -0.038318946957588196, -0.16736449301242828, -0.3328225314617157, -0.07753964513540268, 0.3546085059642792, -0.2792419195175171, 0.07533128559589386, 0.16676205396652222, 0.05443217605352402, 0.12118078768253326, -0.3318285346031189, -0.14088967442512512, 0.05998847261071205, -0.1981332153081894, -0.13652431964874268, -0.12846973538398743, -0.2889370918273926, 0.34292182326316833, 0.18679751455783844, 0.0009100415627472103, -0.03509073331952095, -0.08366180211305618, -0.09760482609272003, 0.06779476255178452, 0.34482958912849426, -0.19711072742938995, -0.22511447966098785, 0.03980468958616257, -0.009201291017234325, 0.2385275661945343, -0.03364681452512741, -0.319524884223938, -0.44392862915992737, 0.20715434849262238, 0.10570230334997177, 0.043991558253765106, 0.16537250578403473, -0.08928796648979187, -0.45938071608543396, 0.11713126301765442, -0.2870638966560364, -0.2191007137298584, 0.3560735285282135, -0.2641613185405731, 0.1047709509730339, -0.136957585811615, 0.3790748715400696, 0.2572435736656189, 0.6966180205345154, 0.050365056842565536, 0.15829509496688843, -0.02995900996029377, 0.0022025431971997023, 0.2247805893421173, 0.0723266750574112, -0.3129124045372009, 0.18036963045597076, 0.03021981380879879, -0.176845520734787, 0.24600160121917725, 0.11623289436101913, 0.29289379715919495, -0.057840753346681595, -0.3579820394515991, -0.26009389758110046, -0.36551082134246826, -0.15597303211688995, -0.021926969289779663, 0.20306918025016785, 0.14553365111351013, 0.5627010464668274, -0.4348829388618469, -0.0822068303823471, 0.30349332094192505, -0.12146741896867752, -0.02663206122815609, 0.08715598285198212, -0.2401302456855774, -0.37643685936927795, -0.19240029156208038, 0.16943268477916718, -0.12736162543296814, 0.4058915972709656, 0.08941502869129181, 0.20311643183231354, 0.12763531506061554, -0.10067146271467209, 0.29762113094329834, -0.25458914041519165, 0.17823775112628937, 0.18830150365829468, 0.16518808901309967, -0.38481757044792175, -0.16946153342723846, -0.1441168636083603, -0.1351504772901535, 0.2666933834552765, 0.06919839978218079, -0.5115238428115845, -0.13170288503170013, 0.12237108498811722, -0.05088242143392563, -0.2466028928756714, -0.14466671645641327, -0.24619339406490326, -0.25865572690963745, 0.15327706933021545, 0.0380987748503685, 0.15006788074970245, 0.3929442763328552, -0.09278027713298798, 0.5734652876853943, -0.11201193928718567, -0.2354331761598587, 0.23970384895801544, -0.06301102042198181, 0.552972674369812, -0.019410191103816032, 0.034088436514139175, 0.12226537615060806, -0.12650956213474274, -0.20531608164310455, 0.12265853583812714, 0.13564695417881012, -0.3416363596916199, -0.14377620816230774, -0.3832886517047882, 0.5200099349021912, 0.22930629551410675, -0.2753112018108368, 0.14769969880580902, -0.33164408802986145, -0.19775456190109253, -0.010632829740643501, -0.05702326074242592, 0.25163835287094116, -0.04704638570547104, 0.11791613698005676, -0.20572981238365173, 0.5350640416145325, 0.21493302285671234, -0.16246411204338074, 0.40085145831108093, 0.15371476113796234, -0.433454304933548, 0.14912882447242737, 0.3389032781124115, 0.717522144317627, 0.4781148433685303, -0.03858897462487221, 0.42630714178085327, -0.25866249203681946, 0.1159345731139183, 0.05638079345226288, -0.004118033684790134, -0.20777343213558197, -0.32204559445381165, 0.19190160930156708, 0.011622294783592224, 0.10581930726766586, 0.0006328177405521274, -0.08648167550563812, 0.17898811399936676, -0.20337776839733124, 0.38698527216911316, 0.10234243422746658, 0.26750287413597107, 0.06082432344555855, 0.033773887902498245, -0.10494063794612885, 0.017254984006285667, 0.09077552706003189, -0.1177079901099205, 0.0535145066678524, -0.3840712010860443, 0.03131910786032677, -0.17551279067993164, -0.0016678156098350883, 0.05223928391933441, -0.25613677501678467, 0.06429550051689148, 0.11666278541088104, -0.000884135952219367, 0.11949089914560318, 0.001680894405581057, 0.5374199151992798, -0.035936303436756134, -0.1339448243379593, 0.25698548555374146, -0.43865710496902466, 0.03248872607946396, 0.17406222224235535, 0.13647980988025665, 0.040622200816869736, -0.05968188866972923, -0.22852030396461487, 0.324485719203949, 0.05863015726208687, -0.1731662154197693, -0.21005779504776, -0.2583574652671814, -0.2615675926208496, -0.15216529369354248, -0.21960318088531494, -0.05316765233874321, -0.019270621240139008, -0.16282862424850464, 0.0028900776524096727, -0.12408865988254547, 0.02442367933690548, 0.40109309554100037, -0.10810825228691101, -0.11336594820022583, 0.09038008004426956, 0.34283602237701416, -0.23234638571739197, -0.2853522002696991, 0.4727139472961426, -0.3125242292881012, -0.08266772329807281, -0.050531309098005295, 0.17488327622413635, -0.19989387691020966, -0.2814693748950958, 0.2686019539833069, -0.016127988696098328, 0.10396715253591537, 0.034594982862472534, 0.40428176522254944, 0.11582858860492706, -0.10111536085605621, -0.05722177028656006, -0.4350413382053375, 0.11168346554040909, 0.4085424542427063, -0.23507224023342133, -0.0952427089214325, -0.42583662271499634, 0.19735249876976013, 0.07796835899353027, 0.1975916177034378, -0.21191196143627167, -0.27551355957984924, 0.1248587965965271, -0.146516814827919, 0.2670936584472656, 0.09461294859647751, 0.04580995813012123, 0.024283921346068382, -0.06313551217317581, 0.08846496790647507, -0.09659994393587112, -0.02977386862039566, -0.2549291253089905, 0.16867122054100037, 0.031317953020334244, 0.33045870065689087, 0.08700178563594818, -0.0451476089656353, -0.1597488820552826, -0.2132950872182846, 0.023300185799598694, 0.18651090562343597, -0.11653582751750946, 0.5392252206802368, 0.10410176217556, 0.8976369500160217, 0.21349728107452393, -0.053431231528520584, 0.20535025000572205, 0.29135745763778687, -0.0549788624048233, 0.10576925426721573, 0.3132902979850769, 0.13654665648937225, -0.28822997212409973, -0.08910725265741348, -0.31288906931877136, 0.06536560505628586, 0.29278770089149475, -0.10101591050624847, 0.012088227085769176, 0.4501214325428009, 0.0216901283711195, 0.24439342319965363, -0.17398624122142792, 0.03329044207930565, -0.3316775858402252, 0.1088000014424324, -0.16152609884738922, 0.15177571773529053, 0.13816121220588684, 0.1890222430229187, 0.03721405565738678, 0.21938380599021912, 0.3896556794643402, -0.1826104074716568, 0.1538560539484024, 0.00717563321813941, 0.24802620708942413, -0.27779629826545715, 0.34760698676109314, 0.15185096859931946, 0.23685471713542938, 0.23643194139003754, 0.27883508801460266, 0.06365557760000229, 0.04872707650065422, 0.44183626770973206, 0.15065649151802063, 0.23161639273166656, 0.13681690394878387, -0.028341688215732574, -0.14248906075954437, -0.0037022640462964773, -0.057564325630664825, 0.047334879636764526, -0.09683702141046524, 0.16361896693706512, -0.3007000982761383, 0.21425983309745789, -0.003267980180680752, -0.3228295147418976, -0.2563187777996063, -0.24403619766235352, -0.015512916259467602, -0.23929578065872192, -0.557441771030426, -0.24172267317771912, -0.05063251033425331, -0.11818654090166092, 0.17584852874279022, -0.0051931156776845455, 0.24978415668010712, -0.2485952377319336, -0.14419376850128174, 0.26684144139289856, -0.261880099773407, 0.37374600768089294, 0.5232931971549988, -0.348328173160553, 0.05877611041069031, -0.10052208602428436, 0.2709250748157501, 0.2109992504119873, 0.30541831254959106, 0.23909761011600494, 0.30202338099479675, -0.36684346199035645, -0.23658612370491028, 0.14569757878780365, -0.2033137083053589, 0.11447899043560028, 0.3290286362171173, 0.28148534893989563, -0.2071486860513687, 0.2027944028377533, 0.04671251401305199, -0.15567389130592346, 0.18962490558624268, 0.27591660618782043, 0.2000056654214859, -0.408981591463089, 0.3424043357372284, -0.039601411670446396, -0.0322975218296051, 0.12214399129152298, -0.14284631609916687, -0.04273703694343567, -0.2502236068248749, 0.09336277842521667, 0.2045285850763321, -0.0232298094779253, -0.51474928855896, 0.039631638675928116, 0.029586950317025185, 0.3810940682888031, 0.05851539969444275, 0.012301301583647728, -0.4914896786212921, -0.010134858079254627, -0.6506743431091309, -0.09302996844053268, 0.24968935549259186, -0.14954987168312073, 0.14566253125667572, 0.1661139279603958, -0.0759352594614029, 0.06999993324279785, 0.07189034670591354, 0.509435772895813, 0.1752086877822876, -0.003301122924312949, -0.4087582528591156, -0.14532122015953064, -0.20161308348178864, -0.21682855486869812, 0.23219738900661469, -0.17590653896331787, -0.009785180911421776, -0.39744365215301514, -0.015004662796854973, 0.060062747448682785, 0.0033531873486936092, 0.16454249620437622, 0.6511242389678955, 0.18738088011741638, 0.02063068374991417, 0.7741085886955261, 0.01364205777645111, 0.02998846024274826, -0.4132050573825836, -0.19022949039936066, -0.2227948158979416, -0.09533306211233139, -0.1362856924533844, 0.33835238218307495, -0.015167241916060448, -0.4483860731124878, -0.039370376616716385, 0.21139228343963623, 0.31707635521888733, -0.416556715965271, -0.01939995586872101, 0.3332815170288086, -0.19061419367790222, -0.09212155640125275, 0.023442743346095085, 0.3206247389316559, -0.099570132791996, 0.2311321198940277, 0.054654285311698914, -0.2851709723472595, 0.23108170926570892, -0.34076541662216187, -0.34363460540771484, -0.2862752377986908, 0.30496519804000854, -0.09929250925779343, -0.17290088534355164, -0.6666849255561829, -0.14167098701000214, 0.28235092759132385, 0.11226024478673935, -0.033942099660634995, 0.2595967650413513, -0.0015447891782969236, 0.0506243072450161, -0.028896763920783997, 0.014309776946902275, -0.15367025136947632, -0.11830074340105057, 0.08074525743722916, -0.11492141336202621 ]
https://github.com/huggingface/datasets/issues/2669
Metric kwargs are not passed to underlying external metric f1_score
Thanks, that was it. A bit strange though, since `load_metric` had an argument `metric_init_kwargs`. I assume that that's for specific initialisation arguments whereas `average` is for the function itself.
## Describe the bug When I want to use F1 score with average="min", this keyword argument does not seem to be passed through to the underlying sklearn metric. This is evident because [sklearn](https://scikit-learn.org/stable/modules/generated/sklearn.metrics.f1_score.html) throws an error telling me so. ## Steps to reproduce the bug ```python import datasets f1 = datasets.load_metric("f1", keep_in_memory=True, average="min") f1.add_batch(predictions=[0,2,3], references=[1, 2, 3]) f1.compute() ``` ## Expected results No error, because `average="min"` should be passed correctly to f1_score in sklearn. ## Actual results ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\datasets\metric.py", line 402, in compute output = self._compute(predictions=predictions, references=references, **kwargs) File "C:\Users\bramv\.cache\huggingface\modules\datasets_modules\metrics\f1\82177930a325d4c28342bba0f116d73f6d92fb0c44cd67be32a07c1262b61cfe\f1.py", line 97, in _compute "f1": f1_score( File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f return f(*args, **kwargs) File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1071, in f1_score return fbeta_score(y_true, y_pred, beta=1, labels=labels, File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f return f(*args, **kwargs) File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1195, in fbeta_score _, _, f, _ = precision_recall_fscore_support(y_true, y_pred, File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f return f(*args, **kwargs) File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1464, in precision_recall_fscore_support labels = _check_set_wise_labels(y_true, y_pred, average, labels, File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1294, in _check_set_wise_labels raise ValueError("Target is %s but average='binary'. Please " ValueError: Target is multiclass but average='binary'. Please choose another average setting, one of [None, 'micro', 'macro', 'weighted']. ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Windows-10-10.0.19041-SP0 - Python version: 3.9.2 - PyArrow version: 4.0.1
29
Metric kwargs are not passed to underlying external metric f1_score ## Describe the bug When I want to use F1 score with average="min", this keyword argument does not seem to be passed through to the underlying sklearn metric. This is evident because [sklearn](https://scikit-learn.org/stable/modules/generated/sklearn.metrics.f1_score.html) throws an error telling me so. ## Steps to reproduce the bug ```python import datasets f1 = datasets.load_metric("f1", keep_in_memory=True, average="min") f1.add_batch(predictions=[0,2,3], references=[1, 2, 3]) f1.compute() ``` ## Expected results No error, because `average="min"` should be passed correctly to f1_score in sklearn. ## Actual results ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\datasets\metric.py", line 402, in compute output = self._compute(predictions=predictions, references=references, **kwargs) File "C:\Users\bramv\.cache\huggingface\modules\datasets_modules\metrics\f1\82177930a325d4c28342bba0f116d73f6d92fb0c44cd67be32a07c1262b61cfe\f1.py", line 97, in _compute "f1": f1_score( File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f return f(*args, **kwargs) File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1071, in f1_score return fbeta_score(y_true, y_pred, beta=1, labels=labels, File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f return f(*args, **kwargs) File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1195, in fbeta_score _, _, f, _ = precision_recall_fscore_support(y_true, y_pred, File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\utils\validation.py", line 63, in inner_f return f(*args, **kwargs) File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1464, in precision_recall_fscore_support labels = _check_set_wise_labels(y_true, y_pred, average, labels, File "C:\Users\bramv\.virtualenvs\pipeline-TpEsXVex\lib\site-packages\sklearn\metrics\_classification.py", line 1294, in _check_set_wise_labels raise ValueError("Target is %s but average='binary'. Please " ValueError: Target is multiclass but average='binary'. Please choose another average setting, one of [None, 'micro', 'macro', 'weighted']. ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Windows-10-10.0.19041-SP0 - Python version: 3.9.2 - PyArrow version: 4.0.1 Thanks, that was it. A bit strange though, since `load_metric` had an argument `metric_init_kwargs`. I assume that that's for specific initialisation arguments whereas `average` is for the function itself.
[ -0.05162910744547844, -0.5501688122749329, 0.08731412887573242, 0.20385701954364777, 0.4681910276412964, -0.06437955796718597, 0.17485947906970978, -0.1953882873058319, 0.3451760709285736, 0.2828975319862366, 0.06791353225708008, 0.44621700048446655, 0.17837199568748474, 0.024254804477095604, -0.01820342428982258, 0.06169835478067398, 0.10580421984195709, -0.35871291160583496, -0.08462310582399368, -0.29872190952301025, -0.4068838059902191, 0.0102044977247715, -0.4048622250556946, 0.020255284383893013, -0.2006225436925888, 0.06136279180645943, -0.034785110503435135, -0.17003709077835083, 0.0016801755409687757, -0.0039012066554278135, 0.3077564239501953, 0.12656518816947937, -0.09706686437129974, 0.36638689041137695, -0.00012357808009255677, -0.09861310571432114, 0.45262593030929565, -0.1368989646434784, -0.03718283399939537, -0.01110989972949028, -0.17645172774791718, 0.014776407741010189, -0.12447776645421982, -0.3509165942668915, 0.19185633957386017, 0.10585188120603561, -0.17391906678676605, -0.3824927508831024, 0.23381704092025757, 0.36850258708000183, 0.0636829063296318, 0.15738491714000702, -0.20920805633068085, -0.17202185094356537, -0.2959969639778137, -0.10444556176662445, -0.1850387454032898, 0.4786294102668762, -0.6841754913330078, -0.07330390810966492, -0.16761720180511475, 0.09177008271217346, 0.15016257762908936, -0.012652212753891945, 0.7468224167823792, 0.0399315245449543, 0.3019666075706482, 0.11366339772939682, 0.17920993268489838, -0.11559824645519257, 0.06793651729822159, -0.38695722818374634, -0.4035753607749939, -0.1462424248456955, 0.09400887787342072, -0.7693842649459839, 0.10778295248746872, 0.01441618986427784, -0.22673669457435608, -0.09297265857458115, -0.10468269884586334, -0.1168840304017067, -0.35617515444755554, 0.07649895548820496, -0.05030315741896629, 0.6123208999633789, 0.001516793854534626, 0.08291821926832199, 0.19272038340568542, 0.1838298887014389, 0.04063401743769646, -0.29307833313941956, 0.028406649827957153, 0.07169098407030106, -0.26317399740219116, 0.2108209878206253, -0.03953007608652115, -0.06361725181341171, 0.27936872839927673, 0.05150051787495613, -0.07608512043952942, 0.043782610446214676, 0.43050307035446167, 0.053258899599313736, 0.197408527135849, 0.5313013195991516, 0.4781777858734131, 0.3300953209400177, -0.01640116050839424, 0.0775585025548935, -0.19735835492610931, -0.24802005290985107, 0.2715122699737549, -0.005864611826837063, 0.24951234459877014, 0.1664946973323822, 0.019845683127641678, -0.07760205864906311, -0.29834771156311035, -0.08160001039505005, 0.04883664846420288, -0.01312793605029583, 0.03460732847452164, 0.15964458882808685, -0.04791905730962753, 0.341995507478714, 0.058227382600307465, 0.36950114369392395, -0.11243297159671783, -0.015164479613304138, -0.22242048382759094, 0.1949930340051651, -0.4361763894557953, 0.144170880317688, -0.20224015414714813, -0.12393610179424286, 0.5087711215019226, -0.002383062383159995, 0.6064441800117493, -0.4638633131980896, -0.09306450933218002, 0.03858238458633423, -0.01924055442214012, -0.012212351895868778, -0.4288245737552643, 0.24125537276268005, 0.033799320459365845, 0.06149830296635628, 0.043861690908670425, -0.016411004588007927, -0.3245542347431183, -0.08430171757936478, 0.4818832576274872, 0.04131563752889633, -0.29566532373428345, -0.13289017975330353, -0.18590779602527618, 0.2178625464439392, 0.02084665559232235, 0.11415877193212509, 0.03676750510931015, -0.1453690528869629, -0.5320338010787964, -0.2027043253183365, 0.7653899788856506, 0.06728969514369965, 0.12443579733371735, -0.25145408511161804, -0.13326820731163025, 0.08056852221488953, -0.0005606382619589567, 0.05522521957755089, 0.032728493213653564, 0.27925336360931396, -0.045748863369226456, 0.062304239720106125, 0.2406337410211563, -0.6767404675483704, -0.44081419706344604, 0.02512115053832531, 0.04600973799824715, -0.033232156187295914, 0.20002381503582, -0.1751341074705124, 0.352132648229599, -0.004727647639811039, 0.199983149766922, 0.43018609285354614, -0.1823698878288269, -0.06753665953874588, -0.4210841953754425, -0.04798179119825363, 0.04895251616835594, -0.11043248325586319, 0.4257761836051941, 0.06625083833932877, 0.08449699729681015, 0.26180458068847656, 0.0360829196870327, 0.19154803454875946, -0.14731425046920776, 0.04951287806034088, 0.07015557587146759, -0.35304102301597595, 0.08565183728933334, 0.05550733953714371, -0.1457141786813736, 0.10352553427219391, -0.14345547556877136, -0.16814331710338593, 0.19271497428417206, -0.30292636156082153, -0.7353893518447876, 0.23798517882823944, -0.012678567320108414, -0.16759547591209412, 0.027924509719014168, -0.0007103462121449411, -0.1402493417263031, 0.2118350714445114, 0.12469236552715302, -0.2877168357372284, -0.2155010998249054, 0.06897656619548798, 0.2514444887638092, 0.08795856684446335, -0.027526400983333588, -0.11782225966453552, -0.05401377007365227, 0.2617592215538025, 0.4194563627243042, 0.028171006590127945, -0.04297277703881264, 0.5366610288619995, 0.22599133849143982, 0.14094139635562897, 0.16081540286540985, 0.03406425192952156, 0.24411258101463318, -0.03287681192159653, 0.04781215637922287, 0.3331083655357361, 0.10056907683610916, -0.1979619264602661, -0.09774500131607056, 0.42077770829200745, 0.1251932680606842, 0.3327288329601288, -0.08693599700927734, 0.27263206243515015, -0.25675851106643677, 0.09712281823158264, -0.10237663239240646, -0.20689302682876587, -0.07798319309949875, -0.49069300293922424, -0.02036447636783123, -0.23489248752593994, 0.024976443499326706, 0.12153202295303345, 0.43323221802711487, 0.1995496302843094, 0.15231846272945404, -0.0760575458407402, -0.22779414057731628, -0.062457501888275146, 0.0835697278380394, -0.11119566112756729, 0.43645399808883667, 0.15620262920856476, 0.034349750727415085, 0.20551854372024536, -0.14611047506332397, -0.09510970115661621, 0.18143196403980255, 0.4817383587360382, -0.08056408911943436, 0.24359825253486633, -0.09375295788049698, -0.11314880102872849, -0.06352221220731735, 0.2218562215566635, 0.05215398967266083, -0.07927387952804565, -0.5283738374710083, 0.23644112050533295, -0.03921342268586159, 0.20111940801143646, -0.21591004729270935, 0.09860117733478546, -0.17114262282848358, -0.7540907263755798, -0.1033213809132576, 0.08214981108903885, -0.1489275097846985, 0.3635011911392212, -0.20498491823673248, 0.2673458755016327, -0.049650732427835464, 0.022341206669807434, 0.036626797169446945, -0.3193082809448242, -0.17085745930671692, -0.1480313390493393, 0.2124336212873459, -0.02878675051033497, 0.34430792927742004, 0.38732653856277466, 0.21644346415996552, 0.07315389066934586, -0.4658791422843933, -0.14315101504325867, 0.08147741109132767, 0.9184207916259766, -0.038318946957588196, -0.16736449301242828, -0.3328225314617157, -0.07753964513540268, 0.3546085059642792, -0.2792419195175171, 0.07533128559589386, 0.16676205396652222, 0.05443217605352402, 0.12118078768253326, -0.3318285346031189, -0.14088967442512512, 0.05998847261071205, -0.1981332153081894, -0.13652431964874268, -0.12846973538398743, -0.2889370918273926, 0.34292182326316833, 0.18679751455783844, 0.0009100415627472103, -0.03509073331952095, -0.08366180211305618, -0.09760482609272003, 0.06779476255178452, 0.34482958912849426, -0.19711072742938995, -0.22511447966098785, 0.03980468958616257, -0.009201291017234325, 0.2385275661945343, -0.03364681452512741, -0.319524884223938, -0.44392862915992737, 0.20715434849262238, 0.10570230334997177, 0.043991558253765106, 0.16537250578403473, -0.08928796648979187, -0.45938071608543396, 0.11713126301765442, -0.2870638966560364, -0.2191007137298584, 0.3560735285282135, -0.2641613185405731, 0.1047709509730339, -0.136957585811615, 0.3790748715400696, 0.2572435736656189, 0.6966180205345154, 0.050365056842565536, 0.15829509496688843, -0.02995900996029377, 0.0022025431971997023, 0.2247805893421173, 0.0723266750574112, -0.3129124045372009, 0.18036963045597076, 0.03021981380879879, -0.176845520734787, 0.24600160121917725, 0.11623289436101913, 0.29289379715919495, -0.057840753346681595, -0.3579820394515991, -0.26009389758110046, -0.36551082134246826, -0.15597303211688995, -0.021926969289779663, 0.20306918025016785, 0.14553365111351013, 0.5627010464668274, -0.4348829388618469, -0.0822068303823471, 0.30349332094192505, -0.12146741896867752, -0.02663206122815609, 0.08715598285198212, -0.2401302456855774, -0.37643685936927795, -0.19240029156208038, 0.16943268477916718, -0.12736162543296814, 0.4058915972709656, 0.08941502869129181, 0.20311643183231354, 0.12763531506061554, -0.10067146271467209, 0.29762113094329834, -0.25458914041519165, 0.17823775112628937, 0.18830150365829468, 0.16518808901309967, -0.38481757044792175, -0.16946153342723846, -0.1441168636083603, -0.1351504772901535, 0.2666933834552765, 0.06919839978218079, -0.5115238428115845, -0.13170288503170013, 0.12237108498811722, -0.05088242143392563, -0.2466028928756714, -0.14466671645641327, -0.24619339406490326, -0.25865572690963745, 0.15327706933021545, 0.0380987748503685, 0.15006788074970245, 0.3929442763328552, -0.09278027713298798, 0.5734652876853943, -0.11201193928718567, -0.2354331761598587, 0.23970384895801544, -0.06301102042198181, 0.552972674369812, -0.019410191103816032, 0.034088436514139175, 0.12226537615060806, -0.12650956213474274, -0.20531608164310455, 0.12265853583812714, 0.13564695417881012, -0.3416363596916199, -0.14377620816230774, -0.3832886517047882, 0.5200099349021912, 0.22930629551410675, -0.2753112018108368, 0.14769969880580902, -0.33164408802986145, -0.19775456190109253, -0.010632829740643501, -0.05702326074242592, 0.25163835287094116, -0.04704638570547104, 0.11791613698005676, -0.20572981238365173, 0.5350640416145325, 0.21493302285671234, -0.16246411204338074, 0.40085145831108093, 0.15371476113796234, -0.433454304933548, 0.14912882447242737, 0.3389032781124115, 0.717522144317627, 0.4781148433685303, -0.03858897462487221, 0.42630714178085327, -0.25866249203681946, 0.1159345731139183, 0.05638079345226288, -0.004118033684790134, -0.20777343213558197, -0.32204559445381165, 0.19190160930156708, 0.011622294783592224, 0.10581930726766586, 0.0006328177405521274, -0.08648167550563812, 0.17898811399936676, -0.20337776839733124, 0.38698527216911316, 0.10234243422746658, 0.26750287413597107, 0.06082432344555855, 0.033773887902498245, -0.10494063794612885, 0.017254984006285667, 0.09077552706003189, -0.1177079901099205, 0.0535145066678524, -0.3840712010860443, 0.03131910786032677, -0.17551279067993164, -0.0016678156098350883, 0.05223928391933441, -0.25613677501678467, 0.06429550051689148, 0.11666278541088104, -0.000884135952219367, 0.11949089914560318, 0.001680894405581057, 0.5374199151992798, -0.035936303436756134, -0.1339448243379593, 0.25698548555374146, -0.43865710496902466, 0.03248872607946396, 0.17406222224235535, 0.13647980988025665, 0.040622200816869736, -0.05968188866972923, -0.22852030396461487, 0.324485719203949, 0.05863015726208687, -0.1731662154197693, -0.21005779504776, -0.2583574652671814, -0.2615675926208496, -0.15216529369354248, -0.21960318088531494, -0.05316765233874321, -0.019270621240139008, -0.16282862424850464, 0.0028900776524096727, -0.12408865988254547, 0.02442367933690548, 0.40109309554100037, -0.10810825228691101, -0.11336594820022583, 0.09038008004426956, 0.34283602237701416, -0.23234638571739197, -0.2853522002696991, 0.4727139472961426, -0.3125242292881012, -0.08266772329807281, -0.050531309098005295, 0.17488327622413635, -0.19989387691020966, -0.2814693748950958, 0.2686019539833069, -0.016127988696098328, 0.10396715253591537, 0.034594982862472534, 0.40428176522254944, 0.11582858860492706, -0.10111536085605621, -0.05722177028656006, -0.4350413382053375, 0.11168346554040909, 0.4085424542427063, -0.23507224023342133, -0.0952427089214325, -0.42583662271499634, 0.19735249876976013, 0.07796835899353027, 0.1975916177034378, -0.21191196143627167, -0.27551355957984924, 0.1248587965965271, -0.146516814827919, 0.2670936584472656, 0.09461294859647751, 0.04580995813012123, 0.024283921346068382, -0.06313551217317581, 0.08846496790647507, -0.09659994393587112, -0.02977386862039566, -0.2549291253089905, 0.16867122054100037, 0.031317953020334244, 0.33045870065689087, 0.08700178563594818, -0.0451476089656353, -0.1597488820552826, -0.2132950872182846, 0.023300185799598694, 0.18651090562343597, -0.11653582751750946, 0.5392252206802368, 0.10410176217556, 0.8976369500160217, 0.21349728107452393, -0.053431231528520584, 0.20535025000572205, 0.29135745763778687, -0.0549788624048233, 0.10576925426721573, 0.3132902979850769, 0.13654665648937225, -0.28822997212409973, -0.08910725265741348, -0.31288906931877136, 0.06536560505628586, 0.29278770089149475, -0.10101591050624847, 0.012088227085769176, 0.4501214325428009, 0.0216901283711195, 0.24439342319965363, -0.17398624122142792, 0.03329044207930565, -0.3316775858402252, 0.1088000014424324, -0.16152609884738922, 0.15177571773529053, 0.13816121220588684, 0.1890222430229187, 0.03721405565738678, 0.21938380599021912, 0.3896556794643402, -0.1826104074716568, 0.1538560539484024, 0.00717563321813941, 0.24802620708942413, -0.27779629826545715, 0.34760698676109314, 0.15185096859931946, 0.23685471713542938, 0.23643194139003754, 0.27883508801460266, 0.06365557760000229, 0.04872707650065422, 0.44183626770973206, 0.15065649151802063, 0.23161639273166656, 0.13681690394878387, -0.028341688215732574, -0.14248906075954437, -0.0037022640462964773, -0.057564325630664825, 0.047334879636764526, -0.09683702141046524, 0.16361896693706512, -0.3007000982761383, 0.21425983309745789, -0.003267980180680752, -0.3228295147418976, -0.2563187777996063, -0.24403619766235352, -0.015512916259467602, -0.23929578065872192, -0.557441771030426, -0.24172267317771912, -0.05063251033425331, -0.11818654090166092, 0.17584852874279022, -0.0051931156776845455, 0.24978415668010712, -0.2485952377319336, -0.14419376850128174, 0.26684144139289856, -0.261880099773407, 0.37374600768089294, 0.5232931971549988, -0.348328173160553, 0.05877611041069031, -0.10052208602428436, 0.2709250748157501, 0.2109992504119873, 0.30541831254959106, 0.23909761011600494, 0.30202338099479675, -0.36684346199035645, -0.23658612370491028, 0.14569757878780365, -0.2033137083053589, 0.11447899043560028, 0.3290286362171173, 0.28148534893989563, -0.2071486860513687, 0.2027944028377533, 0.04671251401305199, -0.15567389130592346, 0.18962490558624268, 0.27591660618782043, 0.2000056654214859, -0.408981591463089, 0.3424043357372284, -0.039601411670446396, -0.0322975218296051, 0.12214399129152298, -0.14284631609916687, -0.04273703694343567, -0.2502236068248749, 0.09336277842521667, 0.2045285850763321, -0.0232298094779253, -0.51474928855896, 0.039631638675928116, 0.029586950317025185, 0.3810940682888031, 0.05851539969444275, 0.012301301583647728, -0.4914896786212921, -0.010134858079254627, -0.6506743431091309, -0.09302996844053268, 0.24968935549259186, -0.14954987168312073, 0.14566253125667572, 0.1661139279603958, -0.0759352594614029, 0.06999993324279785, 0.07189034670591354, 0.509435772895813, 0.1752086877822876, -0.003301122924312949, -0.4087582528591156, -0.14532122015953064, -0.20161308348178864, -0.21682855486869812, 0.23219738900661469, -0.17590653896331787, -0.009785180911421776, -0.39744365215301514, -0.015004662796854973, 0.060062747448682785, 0.0033531873486936092, 0.16454249620437622, 0.6511242389678955, 0.18738088011741638, 0.02063068374991417, 0.7741085886955261, 0.01364205777645111, 0.02998846024274826, -0.4132050573825836, -0.19022949039936066, -0.2227948158979416, -0.09533306211233139, -0.1362856924533844, 0.33835238218307495, -0.015167241916060448, -0.4483860731124878, -0.039370376616716385, 0.21139228343963623, 0.31707635521888733, -0.416556715965271, -0.01939995586872101, 0.3332815170288086, -0.19061419367790222, -0.09212155640125275, 0.023442743346095085, 0.3206247389316559, -0.099570132791996, 0.2311321198940277, 0.054654285311698914, -0.2851709723472595, 0.23108170926570892, -0.34076541662216187, -0.34363460540771484, -0.2862752377986908, 0.30496519804000854, -0.09929250925779343, -0.17290088534355164, -0.6666849255561829, -0.14167098701000214, 0.28235092759132385, 0.11226024478673935, -0.033942099660634995, 0.2595967650413513, -0.0015447891782969236, 0.0506243072450161, -0.028896763920783997, 0.014309776946902275, -0.15367025136947632, -0.11830074340105057, 0.08074525743722916, -0.11492141336202621 ]
https://github.com/huggingface/datasets/issues/2663
[`to_json`] add multi-proc sharding support
Hi @stas00, I want to work on this issue and I was thinking why don't we use `imap` [in this loop](https://github.com/huggingface/datasets/blob/440b14d0dd428ae1b25881aa72ba7bbb8ad9ff84/src/datasets/io/json.py#L99)? This way, using offset (which is being used to slice the pyarrow table) we can convert pyarrow table to `json` using multiprocessing. I've a small code snippet for some clarity: ``` result = list( pool.imap(self._apply_df, [(offset, batch_size) for offset in range(0, len(self.dataset), batch_size)]) ) ``` `_apply_df` is a function which will return `batch.to_pandas().to_json(path_or_buf=None, orient="records", lines=True)` which is basically json version of the batched pyarrow table. Later on we can concatenate it to form json file? I think the only downside here is to write file from `imap` output (output would be a list and we'll need to iterate over it and write in a file) which might add a little overhead cost. What do you think about this?
As discussed on slack it appears that `to_json` is quite slow on huge datasets like OSCAR. I implemented sharded saving, which is much much faster - but the tqdm bars all overwrite each other, so it's hard to make sense of the progress, so if possible ideally this multi-proc support could be implemented internally in `to_json` via `num_proc` argument. I guess `num_proc` will be the number of shards? I think the user will need to use this feature wisely, since too many processes writing to say normal style HD is likely to be slower than one process. I'm not sure whether the user should be responsible to concatenate the shards at the end or `datasets`, either way works for my needs. The code I was using: ``` from multiprocessing import cpu_count, Process, Queue [...] filtered_dataset = concat_dataset.map(filter_short_documents, batched=True, batch_size=256, num_proc=cpu_count()) DATASET_NAME = "oscar" SHARDS = 10 def process_shard(idx): print(f"Sharding {idx}") ds_shard = filtered_dataset.shard(SHARDS, idx, contiguous=True) # ds_shard = ds_shard.shuffle() # remove contiguous=True above if shuffling print(f"Saving {DATASET_NAME}-{idx}.jsonl") ds_shard.to_json(f"{DATASET_NAME}-{idx}.jsonl", orient="records", lines=True, force_ascii=False) queue = Queue() processes = [Process(target=process_shard, args=(idx,)) for idx in range(SHARDS)] for p in processes: p.start() for p in processes: p.join() ``` Thank you! @lhoestq
139
[`to_json`] add multi-proc sharding support As discussed on slack it appears that `to_json` is quite slow on huge datasets like OSCAR. I implemented sharded saving, which is much much faster - but the tqdm bars all overwrite each other, so it's hard to make sense of the progress, so if possible ideally this multi-proc support could be implemented internally in `to_json` via `num_proc` argument. I guess `num_proc` will be the number of shards? I think the user will need to use this feature wisely, since too many processes writing to say normal style HD is likely to be slower than one process. I'm not sure whether the user should be responsible to concatenate the shards at the end or `datasets`, either way works for my needs. The code I was using: ``` from multiprocessing import cpu_count, Process, Queue [...] filtered_dataset = concat_dataset.map(filter_short_documents, batched=True, batch_size=256, num_proc=cpu_count()) DATASET_NAME = "oscar" SHARDS = 10 def process_shard(idx): print(f"Sharding {idx}") ds_shard = filtered_dataset.shard(SHARDS, idx, contiguous=True) # ds_shard = ds_shard.shuffle() # remove contiguous=True above if shuffling print(f"Saving {DATASET_NAME}-{idx}.jsonl") ds_shard.to_json(f"{DATASET_NAME}-{idx}.jsonl", orient="records", lines=True, force_ascii=False) queue = Queue() processes = [Process(target=process_shard, args=(idx,)) for idx in range(SHARDS)] for p in processes: p.start() for p in processes: p.join() ``` Thank you! @lhoestq Hi @stas00, I want to work on this issue and I was thinking why don't we use `imap` [in this loop](https://github.com/huggingface/datasets/blob/440b14d0dd428ae1b25881aa72ba7bbb8ad9ff84/src/datasets/io/json.py#L99)? This way, using offset (which is being used to slice the pyarrow table) we can convert pyarrow table to `json` using multiprocessing. I've a small code snippet for some clarity: ``` result = list( pool.imap(self._apply_df, [(offset, batch_size) for offset in range(0, len(self.dataset), batch_size)]) ) ``` `_apply_df` is a function which will return `batch.to_pandas().to_json(path_or_buf=None, orient="records", lines=True)` which is basically json version of the batched pyarrow table. Later on we can concatenate it to form json file? I think the only downside here is to write file from `imap` output (output would be a list and we'll need to iterate over it and write in a file) which might add a little overhead cost. What do you think about this?
[ -0.24204659461975098, -0.3245052397251129, -0.03341713920235634, -0.04402061551809311, -0.09772186726331711, -0.08601167798042297, 0.40229493379592896, 0.11040196567773819, -0.012091642245650291, 0.3323681652545929, -0.03994463384151459, 0.27644580602645874, -0.13137035071849823, 0.22048451006412506, -0.23964358866214752, -0.08105557411909103, 0.14075076580047607, -0.12439200282096863, 0.4335381090641022, 0.1816549152135849, -0.25267907977104187, 0.3090566098690033, -0.13342423737049103, -0.29205378890037537, -0.14436575770378113, -0.11161965131759644, 0.17024970054626465, 0.1693735122680664, 0.18139880895614624, -0.20507344603538513, -0.2966972589492798, 0.1466352790594101, -0.15742459893226624, -0.06633827090263367, -0.00012120656174374744, -0.01657571643590927, 0.3360562324523926, -0.025188468396663666, 0.16749684512615204, 0.0298163965344429, -0.26107221841812134, -0.26579809188842773, -0.111814945936203, -0.36795952916145325, 0.15891815721988678, 0.25733160972595215, 0.07961039990186691, -0.10901161283254623, 0.2735993266105652, 0.18241256475448608, 0.026638031005859375, -0.038131438195705414, 0.2731877565383911, 0.1871732622385025, -0.12316874414682388, -0.05842740461230278, -0.1341991424560547, -0.1373109072446823, 0.1717839241027832, 0.28839269280433655, 0.17228855192661285, 0.265644907951355, -0.07140947133302689, -0.02921256422996521, -0.04930737614631653, 0.07902515679597855, 0.06767353415489197, -0.2999536395072937, -0.07281161099672318, 0.1627267748117447, -0.10094820708036423, -0.09414022415876389, -0.35615962743759155, -0.2951527535915375, -0.11133580654859543, -0.5862671136856079, -0.09102019667625427, -0.05699096992611885, -0.004694953560829163, 0.001620162627659738, -0.2583364248275757, -0.13528957962989807, -0.11159702390432358, -0.09750202298164368, 0.0559726245701313, -0.04923873022198677, 0.15594013035297394, 0.23136024177074432, 0.4239073097705841, -0.11601617932319641, -0.28132331371307373, -0.03675534203648567, 0.1901649683713913, -0.09958479553461075, -0.31821006536483765, -0.23319925367832184, 0.06707224249839783, -0.27410343289375305, -0.19163201749324799, 0.24053259193897247, -0.06529037654399872, 0.3501676619052887, 0.14511288702487946, 0.28001898527145386, -0.008259657770395279, -0.36760222911834717, 0.10556957870721817, -0.20280277729034424, 0.08662217855453491, 0.08546929061412811, -0.04383743554353714, 0.014223305508494377, 0.10419736057519913, -0.18642005324363708, 0.23794837296009064, 0.06104373559355736, -0.22474630177021027, 0.013462003320455551, -0.1326913982629776, 0.1245783194899559, 0.040915198624134064, -0.18484291434288025, -0.10385516285896301, 0.11811899393796921, 0.12111512571573257, 0.4554602801799774, -0.28972700238227844, 0.1267382651567459, -0.19911694526672363, 0.0845799595117569, -0.006003051530569792, 0.17520791292190552, -0.1212143525481224, 0.30382874608039856, -0.09456472098827362, 0.33635327219963074, -0.16603322327136993, -0.18130579590797424, 0.42674893140792847, 0.01432848535478115, 0.007166485767811537, -0.16150760650634766, -0.0277644544839859, 0.31335073709487915, -0.052582088857889175, -0.0263762678951025, -0.0027024531736969948, -0.6090405583381653, -0.5215035676956177, 0.0872398093342781, -0.424731969833374, -0.5617135167121887, 0.06745016574859619, -0.010556124150753021, 0.04133223369717598, 0.05305003002285957, -0.7100690007209778, 0.19128885865211487, 0.1468505710363388, 0.017250550910830498, -0.29965412616729736, -0.031365588307380676, -0.39742085337638855, -0.33794552087783813, 0.004091239999979734, 0.18467620015144348, -0.03455013036727905, 0.16667650640010834, -0.10573191940784454, 0.15733236074447632, 0.4911991357803345, 0.38628625869750977, 0.04172666370868683, 0.15123115479946136, 0.13841503858566284, 0.4020533561706543, 0.12160719186067581, -0.2359779179096222, -0.3532427251338959, 0.3436239957809448, -0.19502286612987518, 0.12838752567768097, 0.5897713899612427, 0.16199295222759247, 0.19418133795261383, -0.19638903439044952, 0.5543405413627625, 0.08413702249526978, -0.045981813222169876, 0.21911127865314484, -0.28838276863098145, -0.019075533375144005, -0.6522383093833923, 0.289690762758255, 0.0680864080786705, 0.08453600108623505, 0.19111892580986023, -0.2741481065750122, 0.27901849150657654, -0.12537717819213867, 0.026949893683195114, 0.11802297830581665, 0.2163127213716507, -0.11523963510990143, -0.26343339681625366, 0.10628391802310944, -0.09533307701349258, 0.33886247873306274, 0.24822422862052917, 0.1104215681552887, -0.091706283390522, -0.16062508523464203, 0.24626941978931427, 0.17965808510780334, 0.09668290615081787, 0.1453397274017334, -0.05407826602458954, -0.22018998861312866, -0.1485585719347, -0.0962633490562439, -0.06842522323131561, 0.5936165452003479, 0.16743555665016174, -0.07752186805009842, -0.4122168719768524, 0.17720216512680054, 0.09011059999465942, -0.17764747142791748, 0.016718672588467598, 0.1800413727760315, 0.08307628333568573, -0.18112392723560333, 0.20299415290355682, 0.08585257083177567, 0.23116014897823334, 0.17593514919281006, -0.02017764374613762, 0.3995903432369232, 0.05849536508321762, 0.19842277467250824, 0.03610338270664215, -0.2241055965423584, 0.0027491662185639143, -0.25176069140434265, -0.16874514520168304, 0.732933521270752, 0.23399996757507324, 0.5969926714897156, 0.17844705283641815, -0.10981529951095581, 0.2974081337451935, 0.005856008268892765, 0.003260934492573142, -0.09489434212446213, 0.10273929685354233, 0.43337583541870117, -0.478627473115921, -0.2609363794326782, -0.35650500655174255, 0.49486592411994934, 0.32555851340293884, 0.16140541434288025, -0.2580355107784271, 0.29643315076828003, 0.36248892545700073, 0.019534705206751823, 0.16270625591278076, 0.37793204188346863, 0.6566360592842102, 0.22483162581920624, -0.13440126180648804, -0.062273215502500534, 0.04528728872537613, -0.32326892018318176, 0.05037615820765495, 0.09435392916202545, 0.36933276057243347, 0.03944269195199013, 0.207811638712883, 0.015269181691110134, 0.04428384453058243, -0.5829307436943054, -0.0670747458934784, 0.0321427546441555, -0.14753001928329468, 0.16563577950000763, -0.19075751304626465, 0.5931071639060974, 0.0694526880979538, 0.0002797489578370005, 0.199415385723114, -0.4266074001789093, -0.018969591706991196, 0.5152558088302612, -0.1510581523180008, -0.16074101626873016, 0.14707499742507935, 0.054402194917201996, -0.38486766815185547, -0.33046239614486694, -0.26152658462524414, -0.020019888877868652, 0.19544082880020142, -0.08818928897380829, 0.3558395206928253, -0.06678428500890732, 0.23893561959266663, -0.0046789455227553844, 0.04582168161869049, 0.025941520929336548, -0.18938888609409332, -0.048883941024541855, -0.15146081149578094, 0.17161598801612854, -0.02060617506504059, -0.16444925963878632, -0.058138877153396606, -0.28778332471847534, 0.2799781262874603, 0.1137813851237297, -0.08421275019645691, 0.22838516533374786, -0.23596441745758057, -0.1618584245443344, 0.15693522989749908, 0.0827050656080246, -0.2531997859477997, -0.29115286469459534, 0.531134843826294, 0.13817507028579712, 0.3013703227043152, -0.4351004958152771, 0.17384852468967438, -0.16553330421447754, 0.020320693030953407, 0.05401456356048584, 0.05094074830412865, -0.4110955595970154, 0.32299789786338806, -0.050216373056173325, -0.09402430802583694, -0.12759646773338318, -0.019811656326055527, 0.18177469074726105, 0.12512707710266113, -0.23384873569011688, -0.3862830698490143, -0.2070028930902481, 0.10832232236862183, -0.01940409280359745, -0.2067757099866867, 0.4428938627243042, 0.18686717748641968, -0.1519838124513626, 0.13704296946525574, -0.11708137392997742, 0.1773800402879715, -0.149658665060997, -0.1970190405845642, -0.047435007989406586, 0.5124176740646362, 0.19802893698215485, 0.6017048358917236, 0.25632867217063904, -0.05576479434967041, 0.2804162800312042, 0.12766852974891663, -0.18448202311992645, -0.195006862282753, -0.13906130194664001, -0.017240578308701515, -0.12655338644981384, 0.03351014479994774, -0.05150816589593887, 0.027430135756731033, -0.44362783432006836, -0.03786745294928551, 0.15971998870372772, -0.3875335454940796, -0.3500621020793915, 0.2630934417247772, 0.2034052461385727, -0.16242972016334534, -0.12105434387922287, -0.21431146562099457, -0.2355106770992279, 0.049195196479558945, -0.25178036093711853, 0.4220280647277832, 0.1440112292766571, -0.3891449570655823, -0.3714790940284729, -0.4610390067100525, -0.6336140036582947, 0.4533959627151489, 0.10177681595087051, 0.12591001391410828, 0.07991146296262741, -0.1299973428249359, 0.17693784832954407, -0.474013090133667, 0.42306438088417053, -0.27889224886894226, -0.3419284224510193, 0.44116586446762085, -0.20571663975715637, -0.12369649857282639, -0.01658698357641697, 0.019871272146701813, 0.25130695104599, 0.4258910119533539, 0.7600976228713989, -0.360861599445343, -0.15230987966060638, -0.02090725116431713, -0.2820304036140442, -0.11592207849025726, -0.32024815678596497, -0.17535962164402008, -0.3228887617588043, -0.4666149914264679, 0.11010157316923141, 0.1017078384757042, 0.40800878405570984, -0.005739942658692598, -0.08363743871450424, -0.07339401543140411, -0.20061130821704865, 0.32921868562698364, -0.13133804500102997, -0.12549053132534027, 0.02217109128832817, 0.24929723143577576, -0.4836684465408325, 0.0671682208776474, 0.29510498046875, 0.20293773710727692, -0.013854549266397953, -0.09985806047916412, -0.13867434859275818, 0.15347230434417725, 0.39386704564094543, 0.25863683223724365, 0.042147889733314514, 0.14900018274784088, -0.25519508123397827, 0.6260347366333008, -0.04865163192152977, 0.01411475706845522, -0.025327036157250404, 0.15288613736629486, -0.21881914138793945, 0.095619797706604, 0.38785499334335327, 0.11292654275894165, -0.0957067534327507, 0.01781298965215683, 0.16870979964733124, -0.06754733622074127, 0.14914891123771667, 0.2251414656639099, 0.9898102879524231, -0.30001628398895264, 0.13465169072151184, -0.14271217584609985, 0.029635943472385406, -0.06096234917640686, -0.5919105410575867, 0.13420455157756805, -0.0659707561135292, -0.13318310678005219, 0.08681658655405045, -0.04254865646362305, 0.21607504785060883, 0.37805306911468506, -0.06269145756959915, 0.31771907210350037, 0.4126955568790436, -0.459132581949234, -0.0893736183643341, 0.34142205119132996, -0.21012288331985474, -0.526634931564331, -0.06002981588244438, -0.021120158955454826, 0.2636205554008484, -0.40827175974845886, 0.008906305767595768, -0.12394082546234131, -0.1102144792675972, 0.08266238868236542, -0.3039127588272095, -0.08076491951942444, 0.14312857389450073, 0.17467547953128815, 0.11770117282867432, -0.12860868871212006, 0.004806206561625004, 0.1438334584236145, 0.3051338791847229, -0.019402548670768738, -0.06410087645053864, -0.1503506600856781, -0.09032721817493439, -0.06496705859899521, 0.11516748368740082, -0.4983929991722107, 0.31405559182167053, -0.20991693437099457, -0.17600470781326294, -0.11978323012590408, 0.15055108070373535, -0.5108480453491211, -0.10430442541837692, 0.2440747320652008, 0.2966708838939667, 0.2887214720249176, -0.21086378395557404, 0.32754838466644287, -0.4023461937904358, -0.29758816957473755, -0.007566134911030531, 0.27863460779190063, -0.1586078256368637, 0.5502756237983704, -0.5499781370162964, -0.15298597514629364, 0.03825659677386284, 0.1312536746263504, 0.14653708040714264, -0.06245001032948494, 0.003870073240250349, -0.09766284376382828, -0.2169622778892517, -0.09718483686447144, 0.13124892115592957, -0.040737543255090714, 0.055336788296699524, 0.10163091123104095, -0.14360548555850983, -0.18156933784484863, 0.06397121399641037, -0.1180492416024208, -0.08771368861198425, -0.07253900915384293, -0.09360480308532715, -0.3099118769168854, -0.2076791673898697, 0.13516050577163696, -0.1702667474746704, -0.04608951136469841, -0.127512127161026, 0.17459334433078766, -0.2650551497936249, 0.250544935464859, -0.17618751525878906, 0.05188450589776039, -0.2666442096233368, 0.053145427256822586, 0.2940182387828827, -0.11344115436077118, 0.10167282074689865, 0.18965643644332886, 0.08798066526651382, 0.26873698830604553, -0.20806875824928284, -0.1312023550271988, 0.11382370442152023, 0.19188351929187775, -0.06353159993886948, 0.09779486805200577, 0.1916433870792389, 0.24870695173740387, -0.35943925380706787, -0.17016465961933136, 0.06094687804579735, 0.006893595680594444, -0.2717461884021759, -0.14223502576351166, 0.7559418678283691, 0.06704361736774445, 0.08691900223493576, 0.12754404544830322, 0.037001561373472214, 0.6623573899269104, -0.2667348384857178, 0.28468990325927734, -0.0016678068786859512, -0.17134307324886322, 0.021085675805807114, 0.10791285336017609, 0.21107271313667297, 0.1510644257068634, 0.4081353545188904, -0.0054550208151340485, -0.24495196342468262, -0.1877126693725586, 0.2510833442211151, 0.011266296729445457, -0.01962008886039257, 0.026408826932311058, 0.1363791823387146, 0.09551672637462616, 0.06549026072025299, -0.3602883219718933, 0.22025714814662933, -0.09147600084543228, 0.19218382239341736, 0.3553713262081146, 0.07955101877450943, 0.13644921779632568, -0.10065974295139313, 0.006426048930734396, 0.1384616494178772, -0.2223733365535736, -0.47933056950569153, -0.44399645924568176, 0.16286158561706543, 0.1356537789106369, 0.3500678241252899, -0.04459646716713905, 0.2138267606496811, 0.13912123441696167, -0.09870091825723648, 0.9213710427284241, 0.23343433439731598, 0.2134949266910553, -0.015367015264928341, -0.10056757926940918, 0.08202015608549118, 0.12423226237297058, 0.09118231385946274, 0.38820427656173706, 0.12951578199863434, 0.2498440146446228, 0.022147396579384804, 0.059988800436258316, -0.24476060271263123, 0.41155490279197693, 0.14176279306411743, -0.4825480580329895, 0.13492903113365173, 0.026940159499645233, -0.15173642337322235, 0.048498060554265976, -0.04392500966787338, 0.17808681726455688, 0.4796349108219147, 0.18045485019683838, 0.42215076088905334, 0.060801975429058075, -0.1545419991016388, -0.13780352473258972, 0.4936317205429077, -0.2833921015262604, 0.060276176780462265, 0.2513485252857208, -0.261872261762619, -0.0639844462275505, -0.0025815037079155445, 0.36165735125541687, 0.0012848165351897478, 0.06632864475250244, 0.22029270231723785, -0.11019692569971085, 0.04518809914588928, -0.052971240133047104, 0.3104574680328369, 0.03578232601284981, 0.2876129448413849, 0.13120801746845245, 0.029160885140299797, -0.17186561226844788, 0.08441679179668427, -0.04816804826259613, 0.09338589757680893, -0.048811715096235275, 0.4057815670967102, 0.0755934864282608, -0.5193164348602295, 0.17987343668937683, 0.2910909056663513, -0.4833248257637024, -0.26640814542770386, 0.14831049740314484, -0.6427666544914246, 0.015082109719514847, 0.07116246968507767, 0.028636174276471138, -0.07111644744873047, 0.39171645045280457, -0.42998215556144714, 0.4232681393623352, -0.39513304829597473, -0.0731770396232605, -0.16552811861038208, -0.07227971404790878, -0.18217243254184723, 0.14099396765232086, 0.024672582745552063, 0.49995121359825134, 0.2592587172985077, 0.4662972390651703, -0.05870268866419792, 0.05911564454436302, -0.329048752784729, 0.5914942026138306, -0.3510628640651703, 0.47517549991607666, 0.3905498683452606, -0.24265307188034058, 0.06152833253145218, -0.28556227684020996, 0.40053731203079224, 0.09334298968315125, 0.0339244045317173, -0.17999973893165588, 0.28673917055130005, 0.004483636934310198, 0.21071161329746246, 0.1944088637828827, 0.1933000236749649, 0.06860572099685669, -0.3118373155593872, -0.1851777881383896, -0.014326188713312149, 0.3048580586910248, -0.14153572916984558, -0.09485170990228653, -0.11591904610395432, 0.5137308835983276, -0.24556656181812286, 0.33824989199638367, 0.05922394245862961, -0.10401271283626556, -0.17770905792713165, -0.49095436930656433, -0.17588847875595093, 0.08190605789422989, 0.040015727281570435, 0.3124934434890747, -0.1231917291879654, 0.49037331342697144, 0.2959267795085907, 0.032753463834524155, -0.18179887533187866, -0.13212992250919342, 0.2517084777355194, -0.16572777926921844, -0.10344595462083817, -0.06647397577762604, 0.25987380743026733, -0.4155709147453308, 0.5195026397705078, -0.24916282296180725, -0.1954655647277832, 0.22284634411334991, 0.05933692306280136, -0.38318097591400146, 0.5472028851509094, 0.09825339168310165, -0.642706036567688, -0.07747802138328552, -0.19204650819301605, -0.09151221811771393, -0.20884032547473907, -0.29021257162094116, -0.23562507331371307 ]
https://github.com/huggingface/datasets/issues/2655
Allow the selection of multiple columns at once
Hi! I was looking into this and hope you can clarify a point. Your my_dataset variable would be of type DatasetDict which means the alternative you've described (dict comprehension) is what makes sense. Is there a reason why you wouldn't want to convert my_dataset to a pandas df if you'd like to use it like one? Please let me know if I'm missing something.
**Is your feature request related to a problem? Please describe.** Similar to pandas, it would be great if we could select multiple columns at once. **Describe the solution you'd like** ```python my_dataset = ... # Has columns ['idx', 'sentence', 'label'] idx, label = my_dataset[['idx', 'label']] ``` **Describe alternatives you've considered** we can do `[dataset[col] for col in ('idx', 'label')]` **Additional context** This is of course very minor.
64
Allow the selection of multiple columns at once **Is your feature request related to a problem? Please describe.** Similar to pandas, it would be great if we could select multiple columns at once. **Describe the solution you'd like** ```python my_dataset = ... # Has columns ['idx', 'sentence', 'label'] idx, label = my_dataset[['idx', 'label']] ``` **Describe alternatives you've considered** we can do `[dataset[col] for col in ('idx', 'label')]` **Additional context** This is of course very minor. Hi! I was looking into this and hope you can clarify a point. Your my_dataset variable would be of type DatasetDict which means the alternative you've described (dict comprehension) is what makes sense. Is there a reason why you wouldn't want to convert my_dataset to a pandas df if you'd like to use it like one? Please let me know if I'm missing something.
[ -0.05737050622701645, -0.22968116402626038, -0.1969853788614273, 0.051257867366075516, 0.20142275094985962, 0.21865029633045197, 0.518180787563324, 0.11737106740474701, 0.3343805968761444, 0.40828487277030945, -0.14732161164283752, 0.3830782473087311, 0.0007232627249322832, 0.21959954500198364, -0.2610400319099426, -0.349030077457428, -0.14632725715637207, 0.14113566279411316, 0.08572707325220108, 0.01358725130558014, -0.1727699190378189, -0.30083930492401123, -0.3479202389717102, 0.015592115931212902, -0.06391086429357529, -0.20463812351226807, -0.24874822795391083, -0.27311524748802185, -0.37452802062034607, -0.2284191995859146, -0.050977159291505814, 0.48187023401260376, -0.09989318996667862, 0.042098935693502426, -0.00010220228432444856, -0.24254056811332703, 0.04941623657941818, 0.045004308223724365, -0.37280428409576416, -0.31977975368499756, -0.19853928685188293, -0.22483383119106293, 0.32597076892852783, -0.38056719303131104, -0.14598526060581207, -0.17690759897232056, -0.20341964066028595, -0.2526134252548218, -0.03326474875211716, 0.08786770701408386, 0.30981868505477905, -0.014179110527038574, -0.21257469058036804, 0.0007961665978655219, -0.03958864510059357, 0.16322216391563416, -0.19487713277339935, -0.0862279087305069, 0.4251425266265869, -0.022268109023571014, 0.2404666543006897, 0.1023099347949028, -0.23896090686321259, 0.07993672043085098, 0.07896814495325089, 0.1655118465423584, 0.27811571955680847, -0.261349618434906, 0.08097771555185318, 0.29276472330093384, 0.771772027015686, -0.18946656584739685, -0.4718899726867676, -0.2102409154176712, 0.4684533178806305, -0.19778524339199066, -0.31918391585350037, 0.2664964199066162, -0.22879508137702942, 0.22751843929290771, 0.11294031888246536, -0.26889166235923767, -0.10901466757059097, 0.14868459105491638, -0.1557210236787796, 0.33265697956085205, -0.04301339387893677, 0.05515706166625023, 0.13143141567707062, -0.022234894335269928, 0.12336407601833344, -0.1049085482954979, 0.12927334010601044, 0.15563032031059265, -0.6503588557243347, -0.21728470921516418, -0.2239074558019638, -0.2029288411140442, 0.16815869510173798, 0.21599946916103363, -0.02360958606004715, -0.023137973621487617, -0.11883009225130081, 0.31646299362182617, 0.4838551878929138, -0.04580621421337128, -0.04397490993142128, 0.3890669047832489, -0.03434362635016441, -0.1517445594072342, 0.009490938857197762, -0.01807447336614132, -0.0910571962594986, 0.04097459465265274, 0.009580627083778381, 0.2227686643600464, 0.033228885382413864, 0.025482656434178352, -0.21435295045375824, -0.2053002268075943, -0.1048719510436058, -0.256632000207901, -0.06128682568669319, 0.46255019307136536, 0.11205989122390747, 0.3907715380191803, -0.1936304122209549, 0.23149551451206207, 0.21480423212051392, -0.2290375977754593, -0.20687445998191833, 0.2864534556865692, 0.1582292914390564, -0.1184983178973198, 0.1220540925860405, 0.06708382815122604, -0.17883063852787018, 0.3173830211162567, 0.030092574656009674, -0.3956838846206665, -0.12174762040376663, -0.36826270818710327, 0.04128753021359444, 0.1645924597978592, -0.01710672117769718, 0.10427464544773102, 0.2690170109272003, -0.2168731689453125, -0.3145560622215271, 0.3942930996417999, 0.046740904450416565, -0.15735214948654175, -0.21714134514331818, 0.18812593817710876, 0.1842947155237198, -0.30668875575065613, -0.09162284433841705, 0.50616455078125, -0.06248772516846657, 0.3623632490634918, 0.17006877064704895, 0.02909970097243786, 0.04958784580230713, -0.34280747175216675, -0.06077446788549423, 0.34315454959869385, -0.5089313983917236, 0.08423183113336563, 0.16494961082935333, -0.09672904014587402, -0.008022609166800976, 0.1633625477552414, -0.2780390679836273, 0.08630498498678207, 0.22519022226333618, 0.035840749740600586, 0.30474236607551575, -0.3884333670139313, -0.1144217848777771, 0.19128140807151794, 0.07854291796684265, 0.17735254764556885, 0.4585636258125305, 0.10773643106222153, 0.1881626695394516, 0.23336447775363922, 0.057728204876184464, 0.19334033131599426, 0.024873161688447, 0.0773601084947586, 0.22188641130924225, -0.4066193401813507, 0.27644839882850647, 0.1477500945329666, -0.15390600264072418, 0.16838963329792023, -0.15992461144924164, -0.18167467415332794, 0.3445219099521637, -0.2589392066001892, -0.1385621875524521, 0.18108828365802765, 0.3131217658519745, 0.11235345900058746, -0.09729678928852081, -0.40430325269699097, -0.2775419056415558, 0.11912889033555984, 0.4883980453014374, 0.13800203800201416, 0.012243754230439663, -0.4381891191005707, -0.15345804393291473, 0.05827690288424492, -0.15951591730117798, 0.1654391884803772, 0.25065097212791443, -0.20941585302352905, -0.10757334530353546, -0.10198073834180832, -0.5070763826370239, 0.36669841408729553, -0.1956876665353775, 0.13717776536941528, 0.19884589314460754, 0.1711435765028, 0.004281033296138048, 0.17438413202762604, 0.029910998418927193, 0.019562536850571632, 0.2008827179670334, 0.17936095595359802, 0.1491047739982605, 0.08411739766597748, 0.19764454662799835, -0.07012408971786499, -0.3016871213912964, -0.030309714376926422, 0.07417804002761841, 0.19230809807777405, -0.016045529395341873, -0.28385207056999207, 0.12542159855365753, 0.026412518694996834, -0.18526585400104523, 0.09362384676933289, -0.12435516715049744, 0.23167933523654938, 0.013006589375436306, 0.015229849144816399, 0.19074028730392456, -0.14936226606369019, -0.13044185936450958, -0.36359623074531555, 0.005459750071167946, -0.016196759417653084, -0.08549519628286362, -0.03686225786805153, -0.47989657521247864, -0.02396140806376934, 0.04464639723300934, 0.14152924716472626, 0.11124312877655029, 0.008340510539710522, 0.20612259209156036, 0.18853336572647095, -0.014446279034018517, 0.2635805904865265, 0.3555057644844055, 0.23351500928401947, -0.21856161952018738, -0.14861638844013214, -0.08733934909105301, 0.043703872710466385, 0.17723137140274048, 0.17077696323394775, 0.049543097615242004, 0.19873586297035217, 0.12111899256706238, 0.013650846667587757, -0.156597301363945, -0.1618947982788086, 0.2901345193386078, 0.14824597537517548, -0.039065882563591, -0.05747666954994202, -0.4436933994293213, -0.397094190120697, 0.25073760747909546, -0.17098580300807953, 0.20135192573070526, -0.22107599675655365, -0.04078931733965874, -0.028485974296927452, 0.08271244168281555, -0.1632944643497467, -0.13306140899658203, 0.39565566182136536, -0.02607828937470913, -0.04351824149489403, 0.1253521889448166, -0.08678144961595535, 0.24361279606819153, 0.18329448997974396, 0.036331310868263245, 0.06843910366296768, 0.1590241938829422, 0.5090219378471375, -0.1408691257238388, -0.2823233902454376, 0.09545721858739853, 0.030174795538187027, -0.11058448255062103, 0.15716543793678284, 0.20846335589885712, 0.22705252468585968, -0.028624335303902626, -0.0005951717030256987, 0.15428942441940308, 0.544956386089325, -0.033925969153642654, -0.16962939500808716, 0.2931048572063446, -0.00851807463914156, -0.015081429854035378, -0.16301356256008148, -0.4817562997341156, -0.34276631474494934, 0.26214340329170227, -0.05715666711330414, 0.1788182556629181, -0.06866200268268585, -0.046550776809453964, -0.30990028381347656, 0.12744764983654022, 0.3333832919597626, -0.30926233530044556, 0.11385726183652878, 0.10151747614145279, -0.11273365467786789, -0.13506734371185303, -0.2750648260116577, 0.06708125025033951, 0.03552062064409256, -0.1064128652215004, -0.06778057664632797, -0.2876262068748474, -0.24918970465660095, -0.15001916885375977, -0.22341638803482056, 0.14576749503612518, 0.08618367463350296, 0.19933052361011505, -0.08431155979633331, -0.034117233008146286, -0.18658967316150665, 0.04304802417755127, 0.3065350651741028, -0.18678376078605652, 0.15136608481407166, 0.20288072526454926, 0.07449184358119965, 0.018131446093320847, 0.4157297909259796, 0.22603699564933777, 0.27965423464775085, -0.07394278049468994, -0.03714872896671295, 0.03573078662157059, -0.39220932126045227, -0.3193703591823578, -0.20477259159088135, 0.05846770107746124, 0.04166380316019058, -0.03207256644964218, -0.08970124274492264, -0.20264862477779388, 0.2067473977804184, -0.19312047958374023, -0.145048126578331, 0.052160076797008514, -0.48188164830207825, 0.08910808712244034, -0.1158977597951889, -0.16791671514511108, -0.17217595875263214, 0.21996259689331055, -0.157332643866539, 0.028242915868759155, 0.14483463764190674, -0.3076138496398926, -0.1853606253862381, -0.07037246972322464, -0.20664358139038086, 0.08877062797546387, 0.1710277795791626, 0.24106796085834503, 0.12623092532157898, 0.19083468616008759, 0.2949065566062927, 0.19171422719955444, 0.6330706477165222, -0.3205324411392212, -0.4039384722709656, 0.09167024493217468, -0.2199677675962448, -0.2654646635055542, 0.03714291751384735, -0.21444739401340485, -0.14256490767002106, -0.2723597586154938, 0.2915307283401489, -0.4198490083217621, -0.1505189836025238, 0.3161565065383911, 0.3153995871543884, -0.21181242167949677, -0.4538208246231079, 0.014548152685165405, 0.11729882657527924, -0.22154295444488525, -0.06642398238182068, 0.278838187456131, 0.12312342971563339, 0.10095947235822678, 0.012382891029119492, -0.10809297859668732, -0.10097812116146088, 0.2842494547367096, 0.03700302913784981, -0.07762911915779114, -0.0487518347799778, 0.12094037979841232, 0.0725594088435173, -0.07834979146718979, -0.106666699051857, 0.5034685730934143, -0.26330405473709106, -0.37744998931884766, -0.19495171308517456, -0.06768283247947693, 0.6232672333717346, 0.3686961531639099, 0.14763818681240082, 0.7594148516654968, -0.30970698595046997, -0.03165580704808235, -0.09056399017572403, -0.4885083734989166, 0.30020415782928467, -0.05553000792860985, -0.372208833694458, -0.5473958849906921, 0.45305973291397095, -0.008856539614498615, -0.09508707374334335, 0.3091558516025543, 0.3756285309791565, -0.06511377543210983, 0.3224092423915863, 0.12479014694690704, 0.8138471245765686, -0.274416446685791, -0.12293990701436996, -0.35757574439048767, -0.11769213527441025, 0.45890751481056213, -0.08238454163074493, 0.18526794016361237, -0.29414865374565125, -0.31104153394699097, -0.04978470131754875, -0.018712086603045464, 0.2967815399169922, 0.26005733013153076, -0.34093764424324036, 0.0782410129904747, -0.43939208984375, 0.06987052410840988, 0.15535062551498413, 0.24865883588790894, -0.1398487687110901, -0.2777969241142273, -0.11045822501182556, 0.1425044983625412, -0.11223682016134262, -0.14615128934383392, 0.13125735521316528, 0.10546992719173431, -0.05454608052968979, 0.020937401801347733, -0.47022905945777893, -0.27681639790534973, -0.07651316374540329, 0.11073461920022964, 0.08554009348154068, -0.19645407795906067, 0.332731693983078, 0.27128908038139343, 0.11469919979572296, 0.2238539755344391, 0.10998610407114029, 0.030143994837999344, 0.15079385042190552, 0.06763182580471039, -0.225138321518898, 0.008145677857100964, 0.2617019712924957, 0.11279725283384323, -0.33462557196617126, 0.31055426597595215, 0.11755695194005966, -0.5033829808235168, -0.3143618404865265, 0.29314935207366943, 0.39774632453918457, -0.264715313911438, -0.4058215022087097, -0.004808296449482441, 0.18312568962574005, -0.3095089793205261, 0.1849840134382248, 0.017868202179670334, -0.019305817782878876, 0.3045942187309265, 0.008548070676624775, 0.1418851912021637, -0.0627702847123146, 0.07624411582946777, 0.17918811738491058, -0.027792787179350853, 0.20331086218357086, 0.156465545296669, -0.26648128032684326, -0.20135581493377686, -0.06805839389562607, -0.14499841630458832, 0.05115102604031563, 0.1259913146495819, -0.04131542518734932, 0.01991298981010914, 0.06584850698709488, 0.32813921570777893, 0.01027893740683794, 0.2176455557346344, -0.36940091848373413, -0.3393454849720001, 0.07482894510030746, 0.13421569764614105, -0.06599877774715424, 0.2429777979850769, -0.1170240044593811, 0.07762263715267181, -0.3198791742324829, 0.23930643498897552, -0.3837425112724304, -0.16775213181972504, -0.3384579122066498, 0.08952033519744873, 0.46639567613601685, 0.08858799189329147, -0.3127017021179199, -0.006382700055837631, 0.34970325231552124, 0.19773028790950775, 0.3647488057613373, -0.3827804923057556, -0.23392586410045624, 0.040680427104234695, 0.16890420019626617, 0.329472154378891, -0.004332879092544317, -0.22408658266067505, -0.2607191503047943, -0.12677007913589478, 0.14283667504787445, 0.27299273014068604, 0.009266862645745277, 0.166481152176857, 0.021078011021018028, -0.20673851668834686, -0.21063068509101868, 0.15793026983737946, -0.14626790583133698, -0.10519314557313919, 0.2947707772254944, 0.16506966948509216, 0.01941797323524952, -0.011125849559903145, -0.4132355749607086, 0.1817748248577118, -0.03641893342137337, -0.004477792419493198, -0.06629298627376556, 0.07913102209568024, 0.1916419416666031, -0.026895087212324142, 0.3772665858268738, 0.1328658014535904, -0.14439480006694794, 0.2026529163122177, 0.22152794897556305, 0.28331536054611206, -0.31964385509490967, -0.3168654441833496, -0.10069623589515686, 0.015360345132648945, 0.30649831891059875, 0.6884783506393433, 0.08139730244874954, 0.23724977672100067, 0.10051418095827103, -0.3109857141971588, 0.22295330464839935, -0.02046515792608261, 0.04664003849029541, 0.5463963747024536, 0.1399907022714615, -0.3324565291404724, 0.23728035390377045, 0.2519735097885132, 0.09243747591972351, 0.24947020411491394, -0.006837612017989159, -0.00046014587860554457, 0.12086663395166397, 0.07191222161054611, 0.379120409488678, -0.060392964631319046, 0.5356016159057617, -0.07906981557607651, -0.18342556059360504, -0.1936289668083191, -0.10612737387418747, 0.0947575569152832, -0.027588602155447006, 0.06097298488020897, -0.23645135760307312, 0.358008474111557, -0.03364617004990578, -0.2596778869628906, 0.04617036506533623, -0.15390904247760773, 0.13926422595977783, -0.19821959733963013, -0.06519521027803421, -0.3060320317745209, 0.09379281103610992, -0.1541678011417389, 0.40405869483947754, -0.3358251750469208, 0.2959901690483093, -0.06217334792017937, 0.4309235215187073, -0.3050543963909149, -0.009330160915851593, 0.02799229696393013, 0.07905005663633347, 0.12789618968963623, 0.10901130735874176, 0.0680752694606781, 0.2636184096336365, 0.0589403361082077, -0.11092573404312134, -0.46883660554885864, -0.15915434062480927, 0.20301510393619537, -0.008528612554073334, 0.04941590502858162, -0.03068116307258606, 0.4116613566875458, 0.21492476761341095, -0.18340346217155457, -0.010774261318147182, 0.20676234364509583, 0.38939422369003296, -0.6877526044845581, 0.1380579173564911, 0.30349481105804443, -0.20250263810157776, 0.14689192175865173, -0.03614295646548271, -0.4176561236381531, -0.24830573797225952, 0.13126975297927856, -0.08216924965381622, 0.07020124047994614, 0.15769782662391663, 0.16917821764945984, -0.03200654685497284, -0.12099889665842056, -0.03002418763935566, 0.1371433138847351, -0.11603002995252609, 0.024316895753145218, -0.21835225820541382, -0.24659845232963562, -0.09637732058763504, -0.5737488269805908, 0.31904202699661255, 0.08918661624193192, 0.15614141523838043, 0.25607985258102417, 0.1114952340722084, -0.04660801216959953, -0.12486820667982101, 0.5571190714836121, -0.185501828789711, -0.37692487239837646, 0.1967998594045639, 0.013088497333228588, -0.028981268405914307, -0.10834091156721115, 0.1454729586839676, 0.15994395315647125, 0.1609102487564087, -0.37093669176101685, 0.21209780871868134, 0.1374092698097229, 0.09041257202625275, 0.05040230229496956, -0.03973552957177162, 0.4085710346698761, 0.09492690116167068, 0.1440528780221939, 0.035395484417676926, 0.09420672059059143, -0.2229650467634201, -0.006329492665827274, 0.16148577630519867, 0.23729754984378815, -0.12767508625984192, -0.022360358387231827, 0.16135360300540924, -0.077521413564682, 0.023508276790380478, -0.08185122907161713, -0.1837727129459381, 0.1447620987892151, 0.33292925357818604, -0.1348554790019989, -0.08583797514438629, 0.01069699041545391, -0.05390341207385063, 0.19860665500164032, 0.13700763881206512, -0.32659149169921875, 0.23282282054424286, 0.05939900130033493, -0.3388378620147705, 0.0896386131644249, 0.0826263278722763, -0.06132890284061432, 0.1992233246564865, -0.23595739901065826, -0.1262846142053604, 0.3931284546852112, -0.09347710013389587, -0.13591374456882477, 0.4957377016544342, 0.1258694976568222, 0.02354138344526291, -0.13189108669757843, -0.22998853027820587, -0.02783135697245598, 0.1875174641609192, -0.47011786699295044, -0.24912333488464355 ]
https://github.com/huggingface/datasets/issues/2655
Allow the selection of multiple columns at once
Hi! Sorry for the delay. In this case, the dataset would be a `datasets.Dataset` and we want to select multiple columns, the `idx` and `label` columns for example. My issue is that my dataset is too big for memory if I load everything into pandas.
**Is your feature request related to a problem? Please describe.** Similar to pandas, it would be great if we could select multiple columns at once. **Describe the solution you'd like** ```python my_dataset = ... # Has columns ['idx', 'sentence', 'label'] idx, label = my_dataset[['idx', 'label']] ``` **Describe alternatives you've considered** we can do `[dataset[col] for col in ('idx', 'label')]` **Additional context** This is of course very minor.
45
Allow the selection of multiple columns at once **Is your feature request related to a problem? Please describe.** Similar to pandas, it would be great if we could select multiple columns at once. **Describe the solution you'd like** ```python my_dataset = ... # Has columns ['idx', 'sentence', 'label'] idx, label = my_dataset[['idx', 'label']] ``` **Describe alternatives you've considered** we can do `[dataset[col] for col in ('idx', 'label')]` **Additional context** This is of course very minor. Hi! Sorry for the delay. In this case, the dataset would be a `datasets.Dataset` and we want to select multiple columns, the `idx` and `label` columns for example. My issue is that my dataset is too big for memory if I load everything into pandas.
[ -0.11230598390102386, -0.3079829812049866, -0.1617850363254547, 0.17450867593288422, 0.2768078148365021, 0.2954530715942383, 0.48300743103027344, 0.10786213725805283, 0.2709566354751587, 0.43542781472206116, -0.10715483129024506, 0.18116043508052826, -0.005708840675652027, 0.11102322489023209, -0.12057651579380035, -0.414923757314682, -0.1460113525390625, 0.12393833696842194, 0.10936436802148819, 0.16094043850898743, -0.1801459789276123, -0.4086986184120178, -0.2840022146701813, -0.0011804710375145078, -0.09229625761508942, -0.12191448360681534, -0.312750905752182, -0.3032175600528717, -0.37706229090690613, -0.20497861504554749, -0.019661366939544678, 0.30440130829811096, -0.013468688353896141, 0.13821274042129517, -0.00010265549644827843, -0.2590751647949219, 0.12868472933769226, 0.11750294268131256, -0.24492129683494568, -0.13372737169265747, -0.22025585174560547, -0.3395720422267914, 0.28274059295654297, -0.33616191148757935, -0.0875568836927414, -0.17326399683952332, -0.25566402077674866, -0.13583803176879883, -0.26002976298332214, 0.06589537858963013, 0.3234616816043854, 0.15289774537086487, -0.18894432485103607, 0.0023041516542434692, 0.006346479058265686, 0.1277681440114975, -0.2579074800014496, -0.16084709763526917, 0.475828617811203, -0.14748650789260864, 0.3507174849510193, -0.003997392952442169, -0.18676407635211945, 0.032689791172742844, 0.08362051099538803, 0.10342635214328766, 0.2566027045249939, -0.25037339329719543, 0.10668196529150009, 0.2868080735206604, 0.725577175617218, -0.17254813015460968, -0.4039958119392395, -0.1537712961435318, 0.5212612152099609, -0.3376423418521881, -0.21310138702392578, 0.5081316828727722, -0.19039329886436462, 0.10007976740598679, -0.046696145087480545, -0.3265552818775177, -0.0729806050658226, 0.2228529453277588, -0.10819007456302643, 0.2732256054878235, 0.028264150023460388, 0.03926366940140724, 0.38726142048835754, -0.0016127063427120447, 0.21524786949157715, -0.18406611680984497, 0.17683833837509155, 0.2321212887763977, -0.777306854724884, -0.25019028782844543, -0.23567646741867065, -0.11169057339429855, 0.21653436124324799, 0.16400516033172607, 0.02772095613181591, -0.10024356096982956, -0.18284054100513458, 0.2871478199958801, 0.44553467631340027, -0.015128892846405506, -0.30664482712745667, 0.3155573010444641, 0.10224464535713196, -0.05622381716966629, 0.18595871329307556, -0.006298062391579151, 0.027145806699991226, 0.020733686164021492, 0.21959944069385529, 0.15812072157859802, -0.17804421484470367, 0.09761887788772583, -0.03289966657757759, -0.2651652991771698, -0.08944805711507797, -0.2567325830459595, -0.02822982333600521, 0.36763882637023926, 0.06664068251848221, 0.3588038682937622, -0.1916096955537796, 0.16498541831970215, 0.17184363305568695, -0.2895751893520355, -0.2468193769454956, 0.39288315176963806, 0.05497704818844795, -0.029188023880124092, 0.24982669949531555, -0.025098105892539024, -0.20885394513607025, 0.3734062910079956, -0.040670525282621384, -0.3881931006908417, -0.04906174913048744, -0.4134009778499603, -0.014645231887698174, 0.2703150510787964, 0.003730632597580552, 0.09972291439771652, 0.16968555748462677, -0.05087779462337494, -0.3953901529312134, 0.47908303141593933, -0.002466944744810462, -0.3585242033004761, -0.05826456844806671, 0.12347353249788284, 0.22999544441699982, -0.1256326287984848, -0.2516845166683197, 0.3921028673648834, 0.04485306516289711, 0.40985608100891113, 0.26166510581970215, 0.0018016098765656352, 0.015751466155052185, -0.2986847460269928, -0.04685727134346962, 0.36743077635765076, -0.3242015540599823, 0.127262145280838, 0.0768464058637619, -0.10381143540143967, -0.07150908559560776, 0.22608059644699097, -0.29316800832748413, -0.09785767644643784, 0.18052691221237183, -0.013063516467809677, 0.21617631614208221, -0.24424666166305542, -0.09006648510694504, 0.08573634922504425, 0.042293746024370193, 0.0927945077419281, 0.4033913016319275, 0.2204858660697937, -0.030651157721877098, 0.2627088725566864, 0.05795319005846977, 0.32830116152763367, -0.05214621126651764, 0.25257521867752075, 0.19940848648548126, -0.4831072986125946, 0.2263854593038559, 0.13782358169555664, 0.044558849185705185, 0.01518605463206768, -0.18326005339622498, -0.08654868602752686, 0.2737625241279602, -0.18245868384838104, -0.1385209709405899, 0.25409558415412903, 0.17926886677742004, 0.019986726343631744, -0.11233622580766678, -0.39477768540382385, -0.3011071979999542, 0.15688182413578033, 0.48843562602996826, 0.0642903745174408, 0.1696430742740631, -0.27377375960350037, 0.03907812759280205, 0.00452693784609437, -0.0981857031583786, 0.2652839720249176, 0.15439531207084656, -0.20621159672737122, -0.0029783472418785095, -0.10110490769147873, -0.39931637048721313, 0.4738369584083557, -0.22968833148479462, 0.1321181058883667, 0.027505557984113693, 0.2511872351169586, 0.06499958783388138, 0.12462878972291946, 0.16460442543029785, -0.13190419971942902, 0.2843925952911377, 0.15175417065620422, 0.09082021564245224, 0.11256100982427597, 0.14585883915424347, 0.06468252837657928, -0.355284720659256, 0.11771587282419205, 0.16719238460063934, 0.1794779896736145, 0.026035126298666, -0.33321452140808105, 0.08463138341903687, 0.02469700202345848, -0.12321236729621887, 0.05884239822626114, -0.34141960740089417, 0.26329347491264343, 0.11295760422945023, -0.012340778484940529, 0.15533238649368286, -0.10839255899190903, -0.10473748296499252, -0.19189588725566864, 0.16660894453525543, 0.08428964018821716, -0.23919086158275604, -0.024814950302243233, -0.6293268799781799, -0.16539672017097473, -0.07216513901948929, 0.16293717920780182, 0.06346676498651505, -0.0024513842072337866, 0.1556059867143631, 0.20158651471138, 0.042524222284555435, 0.11423621326684952, 0.4795595705509186, 0.17365185916423798, -0.2230084240436554, -0.19621670246124268, -0.05807115137577057, 0.002585560781881213, 0.18320021033287048, 0.20669320225715637, 0.04574132710695267, 0.15097828209400177, 0.2637328505516052, -0.02208855375647545, -0.13529159128665924, -0.0007264195592142642, 0.4631793200969696, 0.138393372297287, 0.012177458964288235, -0.078044094145298, -0.4353890120983124, -0.29444757103919983, 0.14504893124103546, -0.20592856407165527, 0.13114838302135468, -0.0954132154583931, -0.06344576179981232, 0.1592477262020111, 0.19584117829799652, -0.2035660296678543, -0.2929729223251343, 0.5270130634307861, -0.07904914766550064, 0.013627688400447369, 0.13286437094211578, 0.10829392820596695, 0.2760705053806305, 0.11997567117214203, 0.126119926571846, 0.03567519411444664, 0.17873504757881165, 0.6488929390907288, -0.12773847579956055, -0.3254695236682892, 0.1147138848900795, -0.06498933583498001, -0.002017958788201213, 0.08030122518539429, 0.058190882205963135, 0.18412308394908905, 0.005946549121290445, -0.006148671265691519, 0.18689434230327606, 0.4603096544742584, 0.021434707567095757, -0.10871115326881409, 0.25614112615585327, 0.03137753903865814, -0.003277416341006756, -0.04566185176372528, -0.44839462637901306, -0.3211633563041687, 0.23273275792598724, -0.13095876574516296, 0.18822859227657318, -0.11141730844974518, -0.009425480850040913, -0.4182296395301819, 0.06957358121871948, 0.10077674686908722, -0.21087220311164856, 0.037331487983465195, 0.13683076202869415, -0.12184516340494156, -0.14738629758358002, -0.2751777768135071, 0.19806893169879913, 0.003696149680763483, -0.015330785885453224, -0.10164781659841537, -0.18618154525756836, -0.3659268021583557, -0.26519304513931274, -0.28743839263916016, 0.1633552759885788, 0.16498124599456787, 0.11001846939325333, -0.024429867044091225, 0.0806228518486023, -0.26689413189888, -0.07283573597669601, 0.3453056514263153, -0.06535018235445023, 0.20399858057498932, 0.22252236306667328, 0.0862637311220169, 0.05248535796999931, 0.3643975555896759, 0.26744914054870605, 0.31094422936439514, -0.012217430397868156, -0.13675867021083832, 0.05285601317882538, -0.5359567403793335, -0.32181087136268616, -0.20364521443843842, 0.12611337006092072, 0.06351285427808762, -0.003293361747637391, -0.1805376261472702, -0.2337547093629837, 0.20823296904563904, -0.01706436462700367, -0.08294807374477386, 0.0652044340968132, -0.30108022689819336, 0.2161560207605362, -0.2076052725315094, -0.3492347002029419, -0.31709024310112, 0.05779709666967392, -0.1490229219198227, 0.052246127277612686, 0.08733119070529938, -0.26520979404449463, -0.1717197149991989, -0.0842929482460022, -0.22349967062473297, 0.002679858123883605, 0.11234880238771439, 0.22417916357517242, 0.09200455248355865, 0.2355041354894638, 0.3232548236846924, 0.27593275904655457, 0.6166085004806519, -0.17454490065574646, -0.3837957978248596, 0.05089431628584862, -0.3853892683982849, -0.36691969633102417, -0.041362009942531586, -0.12331060320138931, -0.1569223403930664, -0.3198367953300476, 0.4189454913139343, -0.2965471148490906, -0.13684311509132385, 0.34156477451324463, 0.348696231842041, -0.27323877811431885, -0.5648301839828491, -0.07811271399259567, 0.15733547508716583, -0.14440083503723145, 0.006102579180151224, 0.20958702266216278, 0.12109600007534027, 0.02639942243695259, -0.02215844951570034, -0.09570327401161194, -0.09200331568717957, 0.28351321816444397, -0.16392698884010315, -0.14786945283412933, 0.0068456572480499744, 0.21502052247524261, 0.0852212905883789, -0.2006317526102066, -0.13541023433208466, 0.459972620010376, -0.24180284142494202, -0.34096527099609375, -0.16026270389556885, -0.05879239737987518, 0.5828821063041687, 0.34017041325569153, 0.21830761432647705, 0.76344895362854, -0.3323464095592499, 0.07736240327358246, -0.17144940793514252, -0.45479267835617065, 0.25378715991973877, -0.13957928121089935, -0.3544488847255707, -0.443831205368042, 0.538789689540863, 0.07981153577566147, -0.04913236200809479, 0.39485839009284973, 0.34429416060447693, -0.0674315094947815, 0.000040638336940901354, 0.14985746145248413, 0.8275067806243896, -0.4315551817417145, -0.21116392314434052, -0.4902247488498688, -0.08412852883338928, 0.31792476773262024, -0.14319080114364624, 0.3381865918636322, -0.2494238317012787, -0.5191372632980347, 0.05974619835615158, -0.07864580303430557, 0.27489668130874634, 0.12338746339082718, -0.2035631686449051, 0.010694509372115135, -0.41627171635627747, 0.026745984330773354, 0.07814178615808487, 0.22903716564178467, -0.13850830495357513, -0.3053470849990845, -0.073682501912117, 0.15643301606178284, -0.15147362649440765, -0.10418414324522018, 0.1494269073009491, 0.2186591476202011, -0.052199020981788635, 0.06237298622727394, -0.48425376415252686, -0.18864591419696808, -0.03909972310066223, 0.20169012248516083, -0.005202938336879015, -0.14117777347564697, 0.26148489117622375, 0.24319925904273987, 0.09406785666942596, 0.16365356743335724, 0.18167659640312195, -0.07636182010173798, 0.08982297778129578, -0.02933362126350403, -0.3864738345146179, 0.053224217146635056, 0.19547364115715027, 0.0523708239197731, -0.3014811873435974, 0.4472312331199646, 0.12160090357065201, -0.5736985802650452, -0.40578344464302063, 0.3636288642883301, 0.35620471835136414, -0.13174650073051453, -0.47707629203796387, 0.00798292551189661, 0.2676301896572113, -0.2343888133764267, 0.17715829610824585, 0.07035471498966217, 0.003115694737061858, 0.3291621208190918, -0.013482063077390194, 0.16836445033550262, -0.12780307233333588, 0.23698799312114716, 0.1456729620695114, 0.054069120436906815, 0.18637318909168243, 0.26191017031669617, -0.20443718135356903, -0.14091692864894867, -0.04705418646335602, -0.020416932180523872, 0.055782198905944824, 0.036998216062784195, -0.22692593932151794, 0.08653812110424042, 0.15221738815307617, 0.2939557135105133, -0.006181650795042515, 0.1769745796918869, -0.2811830937862396, -0.29211899638175964, 0.0165203046053648, 0.09892452508211136, -0.0559583455324173, 0.2511582672595978, -0.15033090114593506, -0.03701228275895119, -0.3057663142681122, 0.360393226146698, -0.33648166060447693, -0.09052279591560364, -0.26785004138946533, 0.11224919557571411, 0.4826423227787018, 0.10332521051168442, -0.4487980008125305, -0.042602669447660446, 0.27522966265678406, 0.1906016618013382, 0.3579069674015045, -0.300805002450943, -0.21606548130512238, 0.04019015654921532, 0.16743570566177368, 0.2823280394077301, 0.03282538056373596, -0.31110677123069763, -0.24167755246162415, -0.07237457484006882, 0.13596397638320923, 0.23521725833415985, -0.018106583505868912, 0.0346982404589653, 0.12051652371883392, -0.4068871736526489, -0.2512095272541046, 0.30736103653907776, -0.14208650588989258, -0.10134389996528625, 0.3795374035835266, 0.16285845637321472, 0.11690700054168701, -0.009836219251155853, -0.5943379402160645, 0.12912976741790771, -0.06241041421890259, -0.021227898076176643, -0.004967220593243837, 0.11717765033245087, 0.22631028294563293, 0.03956149145960808, 0.20114904642105103, 0.05592573806643486, -0.11855112761259079, 0.31073349714279175, 0.14976507425308228, 0.22676995396614075, -0.23870635032653809, -0.48149025440216064, -0.29714834690093994, 0.10946491360664368, 0.1556464433670044, 0.6094635128974915, 0.11711495369672775, 0.2621333599090576, 0.041783541440963745, -0.22180485725402832, 0.27768638730049133, -0.0027746218256652355, 0.04465135559439659, 0.5172436237335205, 0.1084974929690361, -0.38457417488098145, 0.367669016122818, 0.2722572982311249, 0.03275478631258011, 0.029784809798002243, -0.011831053532660007, 0.036243367940187454, 0.06759633123874664, 0.013689487241208553, 0.3687846064567566, -0.13227742910385132, 0.23241211473941803, -0.03620978444814682, -0.1461418718099594, -0.141694575548172, -0.15704947710037231, 0.1373044103384018, -0.04952240735292435, 0.06447967141866684, -0.33686161041259766, 0.3564508855342865, -0.014976424165070057, -0.13214796781539917, 0.1006452739238739, -0.17826703190803528, 0.06509839743375778, 0.019055839627981186, 0.022571958601474762, -0.2802748382091522, 0.3539923429489136, -0.08967193216085434, 0.32833874225616455, -0.2615715265274048, 0.3097863495349884, 0.23045943677425385, 0.3455485701560974, -0.3301072418689728, -0.12537136673927307, -0.021832047030329704, -0.01883736625313759, -0.007564266677945852, 0.08747968077659607, -0.10434580594301224, 0.2899872362613678, 0.22238464653491974, -0.0856919065117836, -0.43265700340270996, -0.12361003458499908, 0.2459629327058792, 0.0005932155181653798, 0.1164964810013771, 0.01034186128526926, 0.3054494261741638, 0.16789843142032623, -0.1868191510438919, 0.046854808926582336, 0.11302758753299713, 0.4121387004852295, -0.8193487524986267, 0.09937280416488647, 0.3142162263393402, -0.26760801672935486, 0.053129032254219055, 0.01573823392391205, -0.3119897246360779, -0.13694794476032257, 0.18258824944496155, -0.04999222606420517, -0.004855139646679163, 0.13630162179470062, 0.1282060593366623, -0.1264783889055252, -0.03532474860548973, -0.0439516045153141, -0.04695756360888481, -0.19795110821723938, -0.10682901740074158, -0.22495639324188232, -0.2449546903371811, -0.20735245943069458, -0.4267038106918335, 0.4060288369655609, 0.07118699699640274, 0.013224555179476738, 0.22813481092453003, 0.10538350045681, -0.16225102543830872, 0.0006873286911286414, 0.5898197293281555, -0.25094249844551086, -0.39703014492988586, 0.2623257040977478, 0.02008068934082985, -0.03064490295946598, -0.08984868973493576, 0.25433558225631714, 0.13976846635341644, 0.12569178640842438, -0.4077950417995453, 0.23979052901268005, 0.07848111540079117, 0.21957167983055115, 0.18878725171089172, -0.11258833855390549, 0.2785731256008148, 0.16203375160694122, 0.15205693244934082, -0.048220593482255936, 0.16391363739967346, -0.12644661962985992, -0.058451905846595764, 0.15647035837173462, 0.20437541604042053, -0.20941907167434692, -0.007286297157406807, 0.10099250078201294, 0.0564739815890789, -0.15976902842521667, -0.1402173638343811, -0.05185241624712944, -0.07052379101514816, 0.3543420135974884, -0.07407934218645096, 0.08843611180782318, -0.034124165773391724, -0.07026012986898422, 0.14767935872077942, 0.15224690735340118, -0.24811768531799316, 0.07531201094388962, 0.09075535833835602, -0.19306844472885132, -0.08108339458703995, 0.1452881395816803, -0.10629443824291229, 0.27461695671081543, -0.2596271336078644, -0.1857057511806488, 0.3158003091812134, -0.161178320646286, -0.07264427095651627, 0.5669779777526855, 0.16104355454444885, 0.03840317577123642, -0.10692174732685089, -0.177467480301857, 0.007799649611115456, 0.263975590467453, -0.41438814997673035, -0.13182026147842407 ]
https://github.com/huggingface/datasets/issues/2654
Give a user feedback if the dataset he loads is streamable or not
I understand it already raises a `NotImplementedError` exception, eg: ``` >>> dataset = load_dataset("journalists_questions", name="plain_text", split="train", streaming=True) [...] NotImplementedError: Extraction protocol for file at https://drive.google.com/uc?export=download&id=1CBrh-9OrSpKmPQBxTK_ji6mq6WTN_U9U is not implemented yet ```
**Is your feature request related to a problem? Please describe.** I would love to know if a `dataset` is with the current implementation streamable or not. **Describe the solution you'd like** We could show a warning when a dataset is loaded with `load_dataset('...',streaming=True)` when its lot streamable, e.g. if it is an archive. **Describe alternatives you've considered** Add a new metadata tag for "streaming"
30
Give a user feedback if the dataset he loads is streamable or not **Is your feature request related to a problem? Please describe.** I would love to know if a `dataset` is with the current implementation streamable or not. **Describe the solution you'd like** We could show a warning when a dataset is loaded with `load_dataset('...',streaming=True)` when its lot streamable, e.g. if it is an archive. **Describe alternatives you've considered** Add a new metadata tag for "streaming" I understand it already raises a `NotImplementedError` exception, eg: ``` >>> dataset = load_dataset("journalists_questions", name="plain_text", split="train", streaming=True) [...] NotImplementedError: Extraction protocol for file at https://drive.google.com/uc?export=download&id=1CBrh-9OrSpKmPQBxTK_ji6mq6WTN_U9U is not implemented yet ```
[ -0.31214651465415955, 0.10842569917440414, -0.09980054944753647, 0.061705056577920914, 0.13774727284908295, -0.10339793562889099, 0.18258421123027802, 0.27576810121536255, -0.0348224975168705, 0.24827711284160614, 0.2372252345085144, 0.22120153903961182, -0.4187544584274292, 0.22282063961029053, -0.2498127669095993, -0.10577365010976791, -0.1940760463476181, 0.22668033838272095, 0.19736024737358093, 0.024128861725330353, 0.0500812865793705, -0.1404721885919571, 0.12590734660625458, -0.22754508256912231, 0.09559012949466705, 0.04082242399454117, 0.2770478427410126, 0.0032738083973526955, -0.4309591054916382, -0.40940365195274353, -0.1264718919992447, 0.5943692326545715, 0.1119762659072876, 0.304780513048172, -0.000106438783404883, -0.13636542856693268, 0.4294651746749878, -0.06463328003883362, -0.4166699945926666, -0.28114554286003113, -0.2709994614124298, -0.04569530487060547, 0.3828909397125244, -0.06489922851324081, -0.23660841584205627, 0.00003081725299125537, 0.18934407830238342, -0.25075456500053406, 0.3980908989906311, 0.30403897166252136, 0.1841346174478531, 0.14315997064113617, -0.16896581649780273, 0.11031927913427353, 0.26202714443206787, 0.25050216913223267, -0.23536863923072815, 0.19927921891212463, 0.13441993296146393, 0.33042117953300476, -0.36212190985679626, 0.3760133981704712, -0.10805719345808029, 0.027884677052497864, 0.23962080478668213, -0.11627411097288132, -0.2675045430660248, -0.3587144613265991, -0.10972140729427338, 0.39161714911460876, 0.812181830406189, -0.06779332458972931, -0.2669244706630707, -0.2799866795539856, 0.21927420794963837, -0.16523140668869019, 0.27075934410095215, 0.07791156321763992, -0.3087148666381836, 0.22897152602672577, -0.3739490509033203, -0.3058995008468628, -0.4223290681838989, 0.060852259397506714, 0.002089377958327532, 0.28765469789505005, 0.04542715474963188, -0.05642637982964516, 0.2633792459964752, 0.184820294380188, 0.22921907901763916, 0.04317823424935341, 0.023470263928174973, -0.022735968232154846, -0.30787208676338196, -0.3380284905433655, 0.04733886569738388, -0.16073110699653625, 0.17491596937179565, 0.34953728318214417, 0.3600504696369171, 0.17479783296585083, -0.06864570081233978, 0.2610439956188202, 0.3030857741832733, -0.004378309473395348, 0.11630403995513916, -0.29841339588165283, 0.32199692726135254, 0.16303963959217072, 0.139343723654747, -0.1453949213027954, 0.1518915742635727, 0.10234175622463226, 0.19675011932849884, 0.13892321288585663, 0.4190608263015747, -0.1786617785692215, -0.12023809552192688, 0.04408533126115799, -0.20554640889167786, -0.352824866771698, 0.030381659045815468, 0.21170392632484436, -0.22658643126487732, 0.1878923624753952, -0.11772547662258148, 0.1621883660554886, 0.1279754340648651, -0.3675708472728729, 0.009399570524692535, 0.03821053355932236, -0.21828113496303558, 0.2038617581129074, 0.14907367527484894, -0.5337644219398499, -0.08317137509584427, 0.013076145201921463, -0.15494951605796814, -0.031311698257923126, 0.3512844145298004, -0.1534518152475357, -0.003380187088623643, 0.11384742707014084, -0.016180889680981636, -0.09841271489858627, -0.00822764914482832, 0.1018310934305191, -0.26096341013908386, 0.23101340234279633, -0.08875598758459091, -0.22457338869571686, 0.0018801242113113403, 0.2684468626976013, -0.23415513336658478, -0.15325531363487244, -0.19819757342338562, 0.5610989332199097, -0.47616705298423767, -0.22254253923892975, 0.1492544263601303, 0.3053434491157532, -0.0972418263554573, -0.17266534268856049, -0.02842036262154579, 0.44560572504997253, -0.2409360557794571, -0.17909516394138336, -0.3171629309654236, -0.42646700143814087, 0.3974466323852539, 0.07746075093746185, -0.1762908697128296, 0.07929528504610062, 0.05245175585150719, 0.09325315058231354, 0.5550782680511475, -0.06977871805429459, -0.11101771146059036, 0.5365389585494995, -0.32369497418403625, 0.3182702958583832, 0.32173168659210205, 0.13688282668590546, 0.30148324370384216, 0.03137342259287834, 0.05066191032528877, 0.3943995237350464, -0.09760423004627228, -0.0137699656188488, -0.31381669640541077, -0.29595786333084106, 0.19709353148937225, 0.26165056228637695, 0.15033261477947235, 0.19464226067066193, 0.17300604283809662, -0.17894092202186584, 0.15962131321430206, 0.025136562064290047, -0.03539787232875824, -0.07468262314796448, 0.46967923641204834, -0.005924035795032978, -0.3908091187477112, 0.08821326494216919, -0.3534204661846161, 0.009236815385520458, 0.12177137285470963, 0.09983514994382858, 0.07569711655378342, -0.3154944181442261, -0.17601615190505981, -0.1409996896982193, -0.11864326894283295, 0.04586281627416611, 0.19925300776958466, 0.24427713453769684, -0.23805926740169525, 0.09903618693351746, -0.22808966040611267, 0.24912652373313904, -0.21654225885868073, 0.20834219455718994, -0.22820663452148438, 0.15885883569717407, 0.10627481341362, -0.07241466641426086, 0.15794213116168976, -0.302802711725235, 0.1809505671262741, 0.015652375295758247, -0.0901724100112915, 0.37117692828178406, 0.04644155502319336, 0.5940017700195312, 0.07155539095401764, 0.271228164434433, 0.22726264595985413, -0.28360578417778015, 0.19095641374588013, 0.3033684492111206, 0.011006198823451996, 0.007328351028263569, -0.3751382529735565, 0.21430377662181854, 0.11327694356441498, -0.10765254497528076, 0.1807176023721695, -0.17876723408699036, 0.13052527606487274, -0.07776302844285965, -0.33117279410362244, -0.021607620641589165, 0.16094046831130981, 0.04293573275208473, -0.1634139120578766, 0.02938399463891983, -0.36339375376701355, -0.1784783899784088, 0.2748420238494873, 0.06636982411146164, -0.04964412748813629, 0.5686529874801636, -0.011992928571999073, -0.3284744620323181, 0.29524627327919006, 0.2152920812368393, 0.374258816242218, 0.2192719280719757, 0.260888934135437, 0.1018616184592247, 0.3289048969745636, -0.12841090559959412, 0.1090840995311737, 0.043393924832344055, -0.11855542659759521, 0.1851857751607895, 0.07740173488855362, 0.042514994740486145, -0.42823031544685364, -0.19885101914405823, 0.029615987092256546, 0.18148256838321686, -0.08360007405281067, -0.059926241636276245, -0.09862038493156433, -0.1597473919391632, 0.00162544718477875, -0.18292167782783508, -0.12299315631389618, -0.12213191390037537, 0.27373790740966797, 0.6344075798988342, -0.26174196600914, -0.006678436882793903, -0.2472236603498459, 0.42849841713905334, -0.15422743558883667, -0.036539554595947266, -0.30524110794067383, 0.008520795963704586, 0.1265053153038025, 0.18049024045467377, 0.1358112245798111, -0.06035317853093147, 0.7215870022773743, 0.22353032231330872, 0.218097522854805, -0.4833521842956543, -0.2957264184951782, 0.14002351462841034, 0.06199977546930313, 0.09277669340372086, -0.06450206786394119, 0.2419242262840271, 0.17808394134044647, -0.4123820960521698, 0.06390345841646194, -0.06455398350954056, -0.014477270655333996, 0.21159985661506653, 0.04638894647359848, 0.29120072722435, -0.06004897877573967, -0.4394127428531647, -0.3788755536079407, -0.5287729501724243, 0.262951135635376, -0.01325867511332035, 0.07579736411571503, 0.26907995343208313, 0.07192426919937134, -0.13983041048049927, 0.14984233677387238, 0.09194502979516983, -0.16397753357887268, -0.35782256722450256, 0.04252919554710388, -0.10433601588010788, -0.016339845955371857, 0.06379793584346771, 0.11838967353105545, -0.1711731106042862, 0.5343631505966187, -0.38512739539146423, -0.058320995420217514, -0.11360760033130646, -0.20230555534362793, -0.11552798002958298, -0.5180270671844482, 0.27435317635536194, 0.15757480263710022, -0.22817690670490265, 0.11273768544197083, -0.028465405106544495, -0.22893831133842468, 0.17950256168842316, 0.11579500138759613, 0.06848412752151489, 0.4184272885322571, 0.02420661970973015, 0.3933291733264923, 0.04016729071736336, -0.047845128923654556, 0.4635879397392273, 0.2107442170381546, 0.2624152898788452, 0.03863189369440079, -0.01462436281144619, 0.11453845351934433, 0.07273164391517639, -0.34400874376296997, 0.38163432478904724, -0.010327868163585663, -0.3619116544723511, -0.32081979513168335, -0.050794392824172974, -0.28610655665397644, -0.1568215936422348, 0.31887075304985046, -0.03350580111145973, 0.1813454031944275, -0.1649647355079651, 0.006160503253340721, 0.25497543811798096, -0.24812273681163788, 0.0024463955778628588, 0.39575469493865967, 0.4271707832813263, -0.20076884329319, -0.2212180346250534, 0.16682101786136627, -0.3207589387893677, 0.14395539462566376, -0.09521438926458359, 0.13457441329956055, -0.281496524810791, -0.14874297380447388, 0.13079799711704254, 0.04710175096988678, 0.17212973535060883, -0.5037598013877869, -0.30774322152137756, -0.12309896945953369, 0.18044915795326233, 0.12462378293275833, -0.11564366519451141, -0.13461501896381378, -0.008113663643598557, -0.08410564810037613, 0.20515254139900208, -0.32975783944129944, 0.052274711430072784, 0.1061701625585556, -0.13605935871601105, -0.12003099918365479, -0.3209201395511627, -0.08395135402679443, 0.1141539141535759, -0.23055525124073029, 0.17543813586235046, -0.15831710398197174, -0.24608851969242096, -0.32093435525894165, -0.3235280215740204, 0.24427786469459534, 0.14144814014434814, 0.2715744972229004, 0.2621293365955353, 0.09923084825277328, 0.034751102328300476, 0.012847409583628178, 0.06798730045557022, 0.08147941529750824, 0.36018773913383484, 0.40023958683013916, 0.17363421618938446, -0.2835337817668915, 0.012098544277250767, -0.11003360897302628, 0.12902431190013885, 0.2547210156917572, -0.07255008071660995, 0.35779058933258057, 0.38735899329185486, 0.27009597420692444, -0.3172832429409027, 0.1379455029964447, 0.2631404399871826, -0.3558495342731476, -0.38192030787467957, -0.5331364274024963, 0.5077522397041321, -0.03404881805181503, -0.22490203380584717, 0.30062955617904663, -0.13972406089305878, -0.2113221287727356, 0.14037640392780304, 0.007770176976919174, 1.1393033266067505, -0.08133513480424881, -0.28637126088142395, 0.028147583827376366, -0.20872056484222412, 0.32289084792137146, -0.6179019212722778, 0.017121344804763794, -0.1327887326478958, -0.3834493160247803, -0.2388112097978592, -0.07987308502197266, 0.19858123362064362, 0.12350363284349442, -0.6832172274589539, -0.001638800953514874, -0.08938431739807129, 0.18612919747829437, 0.00437580980360508, 0.6372827887535095, -0.3760339021682739, -0.17596225440502167, -0.4483305513858795, 0.13943570852279663, -0.2447151243686676, 0.2459934800863266, -0.12751244008541107, -0.19127042591571808, 0.4177614748477936, -0.18143196403980255, -0.33815884590148926, -0.11814861744642258, -0.31525811553001404, -0.266880065202713, -0.46145087480545044, -0.35430052876472473, 0.06804897636175156, 0.050747789442539215, -0.1740121841430664, -0.09376784414052963, -0.24491053819656372, 0.17079581320285797, -0.17932598292827606, 0.14767535030841827, -0.1403566300868988, -0.024874549359083176, 0.4186311662197113, -0.20089736580848694, -0.07209347188472748, 0.4372831881046295, 0.012419898994266987, -0.3833436965942383, 0.10310753434896469, -0.2847841680049896, 0.261505126953125, -0.2877121567726135, -0.01956442929804325, -0.09679319709539413, -0.3447510898113251, -0.11515688896179199, 0.16127976775169373, 0.08265260607004166, -0.0092651741579175, -0.08570489287376404, 0.28345614671707153, -0.06519600003957748, -0.27210772037506104, 0.3171851634979248, 0.0930132195353508, -0.23973456025123596, 0.007563411258161068, -0.02557007037103176, -0.32576000690460205, -0.3389294147491455, -0.14032377302646637, 0.12018294632434845, -0.02494869939982891, -0.01742827333509922, 0.046868082135915756, 0.09074972569942474, 0.0668366327881813, -0.04615458473563194, 0.13894124329090118, 0.12200582772493362, -0.03997105360031128, -0.16427524387836456, -0.2067989557981491, 0.08375001698732376, -0.07638470083475113, 0.25576484203338623, -0.35811641812324524, -0.29785266518592834, 0.14457322657108307, 0.04980781674385071, -0.38243094086647034, -0.334664911031723, -0.1456536501646042, 0.022001253440976143, 0.2006407231092453, 0.13485579192638397, 0.2724144458770752, -0.14503148198127747, 0.08512580394744873, -0.0014294583816081285, -0.16003313660621643, -0.1832202970981598, -0.0749988779425621, 0.17629897594451904, 0.24947646260261536, 0.08028663694858551, -0.16967013478279114, -0.15459732711315155, -0.11271148920059204, 0.03163135424256325, 0.2693576514720917, 0.08639474958181381, -0.10767054557800293, 0.1121908575296402, 0.2154080867767334, 0.20126256346702576, -0.4698932468891144, -0.1330147236585617, -0.13610562682151794, 0.2858886122703552, 0.13753290474414825, -0.17586037516593933, -0.023340051993727684, -0.06576810777187347, -0.25733646750450134, 0.19211915135383606, 0.5488524436950684, 0.23205311596393585, 0.11281723529100418, 0.10308844596147537, 0.08541382849216461, -0.11167589575052261, 0.3619668185710907, 0.3429034650325775, -0.24789045751094818, -0.025294996798038483, 0.19757038354873657, 0.3165723979473114, 0.03725504130125046, -0.011717054061591625, -0.1420808583498001, -0.2307097315788269, 0.1755717694759369, -0.0492803156375885, 0.12661495804786682, 0.2202075868844986, 0.30799272656440735, 0.05769898742437363, 0.0436650775372982, -0.10604242235422134, 0.365494042634964, 0.22470465302467346, -0.053740158677101135, 0.016536686569452286, 0.11162775754928589, 0.09528014063835144, 0.06405457854270935, -0.14401954412460327, -0.073236383497715, 0.46557870507240295, 0.14211100339889526, 0.0219196155667305, -0.12038441747426987, -0.3483926057815552, -0.06471060961484909, 0.4036749303340912, -0.133267343044281, 0.330585241317749, 0.36214330792427063, 0.23711495101451874, 0.13171711564064026, 0.047481294721364975, -0.2780638039112091, -0.1552162915468216, 0.031214188784360886, 0.30187538266181946, -0.14666931331157684, -0.30335530638694763, -0.3367459177970886, 0.08959474414587021, 0.05388389900326729, 0.17747022211551666, 0.023667484521865845, 0.25558212399482727, 0.04800194129347801, -0.05028584599494934, -0.04248442128300667, -0.15955089032649994, 0.36001136898994446, -0.4073130190372467, -0.022846519947052002, 0.0944225862622261, 0.18648293614387512, 0.4190042316913605, 0.15054069459438324, 0.027803517878055573, 0.22216679155826569, 0.060683950781822205, 0.12191322445869446, -0.045666471123695374, -0.04028715193271637, 0.018027836456894875, 0.27326634526252747, 0.36327192187309265, -0.006075466983020306, -0.027623070403933525, 0.24125652015209198, -0.24994629621505737, 0.46580350399017334, -0.1158832237124443, -0.10679129511117935, -0.313931405544281, -0.06141834706068039, 0.5476938486099243, -0.2058519870042801, -0.2013748437166214, -0.33119997382164, -0.28270602226257324, -0.056299757212400436, 0.21696391701698303, 0.08527267724275589, -0.09550794214010239, -0.11602894216775894, 0.09902719408273697, 0.21641851961612701, 0.13886895775794983, 0.13111171126365662, -0.05071277543902397, -0.23273484408855438, -0.1479545682668686, -0.6127154231071472, 0.10117025673389435, -0.014172626659274101, 0.07762743532657623, 0.1402822732925415, 0.09241970628499985, 0.0372854582965374, 0.5932242274284363, -0.20857827365398407, -0.20351289212703705, -0.15000276267528534, -0.05029623955488205, -0.4235232174396515, -0.11817559599876404, 0.3140209913253784, 0.03589271754026413, -0.21466583013534546, -0.1417929083108902, 0.19937795400619507, -0.11840949952602386, 0.0649343952536583, -0.22699318826198578, -0.11332477629184723, -0.04403046891093254, 0.26981598138809204, 0.5836309790611267, -0.03278297930955887, 0.6000115275382996, -0.24259409308433533, -0.077898770570755, 0.04917741194367409, -0.003709682496264577, -0.17754006385803223, -0.08049225062131882, 0.1503085196018219, 0.5112543702125549, 0.30862903594970703, 0.05216116085648537, -0.4756869971752167, 0.5256850123405457, -0.13721758127212524, -0.12622366845607758, -0.34932076930999756, -0.059452734887599945, 0.20604483783245087, 0.13059411942958832, -0.012976748868823051, 0.08982612192630768, 0.12209119647741318, -0.142858624458313, -0.43500256538391113, -0.2368573397397995, 0.43115630745887756, -0.16964520514011383, -0.09173449128866196, 0.07750546932220459, 0.13490507006645203, 0.14892244338989258, 0.2917037606239319, -0.6755434274673462, 0.27585574984550476, 0.24598518013954163, -0.2296230047941208, 0.28422683477401733, 0.31286370754241943, 0.2513948678970337, 0.08038164675235748, 0.0008699077880010009, 0.2112138420343399, 0.03216972574591637, -0.16106076538562775, -0.08381660282611847, -0.24690605700016022 ]
https://github.com/huggingface/datasets/issues/2653
Add SD task for SUPERB
Note that this subset requires us to: * generate the LibriMix corpus from LibriSpeech * prepare the corpus for diarization As suggested by @lhoestq we should perform these steps locally and add the prepared data to this public repo on the Hub: https://huggingface.co/datasets/superb/superb-data Then we can use the URLs for the files to load the data in `superb`'s dataset loading script. For consistency, I suggest we name the folders in `superb-data` in the same way as the configs in the dataset loading script - e.g. use `sd` for speech diarization in both places :)
Include the SD (Speaker Diarization) task as described in the [SUPERB paper](https://arxiv.org/abs/2105.01051) and `s3prl` [instructions](https://github.com/s3prl/s3prl/tree/master/s3prl/downstream#sd-speaker-diarization). Steps: - [x] Generate the LibriMix corpus - [x] Prepare the corpus for diarization - [x] Upload these files to the superb-data repo - [x] Transcribe the corresponding s3prl processing of these files into our superb loading script - [ ] README: tags + description sections Related to #2619. cc: @lewtun
94
Add SD task for SUPERB Include the SD (Speaker Diarization) task as described in the [SUPERB paper](https://arxiv.org/abs/2105.01051) and `s3prl` [instructions](https://github.com/s3prl/s3prl/tree/master/s3prl/downstream#sd-speaker-diarization). Steps: - [x] Generate the LibriMix corpus - [x] Prepare the corpus for diarization - [x] Upload these files to the superb-data repo - [x] Transcribe the corresponding s3prl processing of these files into our superb loading script - [ ] README: tags + description sections Related to #2619. cc: @lewtun Note that this subset requires us to: * generate the LibriMix corpus from LibriSpeech * prepare the corpus for diarization As suggested by @lhoestq we should perform these steps locally and add the prepared data to this public repo on the Hub: https://huggingface.co/datasets/superb/superb-data Then we can use the URLs for the files to load the data in `superb`'s dataset loading script. For consistency, I suggest we name the folders in `superb-data` in the same way as the configs in the dataset loading script - e.g. use `sd` for speech diarization in both places :)
[ -0.23873291909694672, -0.1557699292898178, 0.006651788018643856, 0.11123628169298172, 0.37771084904670715, -0.19912606477737427, 0.008201676420867443, -0.13702014088630676, 0.11175226420164108, 0.3464580476284027, -0.3380066752433777, 0.49651220440864563, -0.15013334155082703, 0.44433242082595825, 0.21384333074092865, 0.20122036337852478, 0.09505794942378998, 0.20730511844158173, -0.29916468262672424, 0.05134611576795578, -0.14978446066379547, -0.1197715774178505, -0.1633816659450531, -0.14368928968906403, -0.2040831297636032, 0.21936140954494476, 0.07276801019906998, 0.0811636745929718, -0.2905583381652832, -0.2938540577888489, 0.16270098090171814, 0.5292000770568848, 0.40157604217529297, 0.3271009922027588, -0.00010832506814040244, -0.1900358945131302, 0.3640154302120209, -0.407646507024765, -0.5083062052726746, -0.17035163938999176, -0.22255919873714447, 0.25367581844329834, -0.15919189155101776, -0.0934051051735878, -0.625189483165741, -0.13633163273334503, 0.013375264592468739, -0.1100861057639122, 0.25968390703201294, 0.17321918904781342, 0.2259884774684906, -0.05559075251221657, -0.09559673815965652, -0.15105825662612915, 0.19198238849639893, 0.2502143979072571, -0.11177098006010056, -0.02268114872276783, 0.18212267756462097, 0.014634255319833755, 0.14113697409629822, 0.2883918285369873, -0.13534922897815704, -0.12514953315258026, 0.6657475233078003, -0.15929287672042847, -0.03402765095233917, -0.04761670529842377, -0.06538759171962738, 0.2897382974624634, 0.6062099933624268, -0.23076151311397552, -0.3986758291721344, 0.13176624476909637, 0.048964619636535645, -0.13678814470767975, -0.05113300681114197, -0.16705407202243805, -0.18046264350414276, -0.009785340167582035, -0.15932099521160126, -0.29002508521080017, 0.01689956896007061, -0.09919288754463196, 0.12573686242103577, 0.40298038721084595, -0.21496936678886414, -0.24862398207187653, 0.10877486318349838, -0.19184985756874084, -0.25030019879341125, 0.200724795460701, 0.24914510548114777, 0.12138232588768005, -0.23235346376895905, -0.12403516471385956, 0.2190023958683014, -0.22821669280529022, 0.013482263311743736, 0.013472313992679119, 0.25552111864089966, 0.06636877357959747, 0.07365619391202927, 0.0467749685049057, 0.21220731735229492, 0.32631418108940125, 0.3418329954147339, -0.07581468671560287, 0.12669818103313446, 0.3235279321670532, 0.12131479382514954, -0.04695591703057289, -0.47927090525627136, 0.05069337785243988, -0.3832935094833374, 0.1291767656803131, 0.03265433758497238, -0.29105275869369507, -0.1750219464302063, -0.13623976707458496, 0.2221735268831253, 0.08945214748382568, 0.19042406976222992, 0.608208954334259, -0.16982053220272064, 0.016282910481095314, -0.13857020437717438, 0.1991366595029831, -0.22458522021770477, 0.3818308115005493, -0.12505221366882324, 0.12181566655635834, -0.2075893133878708, 0.20607788860797882, 0.15584562718868256, -0.332605242729187, 0.13543115556240082, -0.03655335679650307, 0.09257473051548004, -0.03509816154837608, -0.31067806482315063, 0.2560379207134247, 0.13947737216949463, 0.011242500506341457, 0.2154380977153778, -0.02426876313984394, -0.4070393741130829, -0.018533453345298767, -0.26680248975753784, 0.09708067774772644, 0.22980396449565887, -0.30902159214019775, -0.2402653992176056, 0.26878622174263, -0.21128883957862854, -0.23998741805553436, -0.20934166014194489, 0.20703403651714325, -0.025995535776019096, -0.35655319690704346, -0.047256581485271454, -0.15509310364723206, -0.18735799193382263, 0.08068704605102539, 0.3618190586566925, 0.049387626349925995, 0.1410745233297348, -0.2385227531194687, -0.06132262200117111, -0.021331915631890297, 0.15267671644687653, -0.022349467501044273, 0.10864052921533585, 0.15498891472816467, 0.04542999714612961, 0.30596473813056946, 0.021338406950235367, -0.730991780757904, -0.2956556975841522, -0.02538897655904293, -0.07040192931890488, 0.047395870089530945, 0.07588105648756027, 0.026698069646954536, 0.5626789927482605, -0.3666592538356781, 0.02676914818584919, 0.41692984104156494, 0.10459733754396439, 0.02718319557607174, -0.11378158628940582, -0.1186167523264885, 0.155105322599411, 0.3331930935382843, -0.14123736321926117, -0.013246577233076096, -0.020138166844844818, 0.5371368527412415, 0.11159373819828033, -0.21538949012756348, 0.13519735634326935, -0.030438117682933807, 0.1972646564245224, 0.2505994439125061, 0.018921811133623123, -0.1343054175376892, -0.1566026657819748, -0.07148060947656631, 0.3544768989086151, 0.364461213350296, -0.2444361299276352, -0.48128220438957214, -0.018653741106390953, -0.2085852473974228, -0.2348950356245041, -0.0008708004024811089, 0.19661235809326172, 0.17948773503303528, 0.45011764764785767, -0.29480817914009094, -0.10312360525131226, -0.4538338780403137, -0.1539294421672821, -0.07763437181711197, -0.04576124995946884, 0.027646470814943314, -0.07101297378540039, -0.07545551657676697, 0.2740696668624878, 0.4282016158103943, -0.013411231338977814, 0.0006369916372932494, 0.01982109621167183, 0.36060217022895813, -0.12046357244253159, 0.27161556482315063, -0.03309866040945053, 0.41440171003341675, 0.02004035748541355, -0.5199401378631592, 0.1516590267419815, 0.060767196118831635, 0.06110648065805435, -0.033679962158203125, -0.08520762622356415, 0.08017340302467346, -0.2156587392091751, 0.11415629833936691, 0.24574291706085205, -0.20124419033527374, 0.28221720457077026, 0.01607811637222767, -0.14298704266548157, -0.10030380636453629, -0.08376527577638626, -0.07532352209091187, 0.18222585320472717, 0.03748968616127968, -0.29564088582992554, 0.013417609967291355, 0.14344914257526398, -0.15083195269107819, 0.2064886838197708, -0.0013385831844061613, -0.09631498903036118, -0.20689253509044647, 0.11922299116849899, -0.1725335717201233, 0.05884603410959244, 0.22694285213947296, 0.2886660099029541, -0.005676176864653826, -0.08356954157352448, -0.13001757860183716, 0.13594967126846313, -0.09626789391040802, -0.018691742792725563, 0.31496939063072205, 0.019433259963989258, -0.011138427071273327, -0.43106937408447266, 0.05006938800215721, -0.056551989167928696, -0.023847075179219246, -0.08443552255630493, -0.44127994775772095, -0.04521119222044945, -0.6270555853843689, 0.0019319630227982998, -0.4387513995170593, 0.12301885336637497, 0.18730151653289795, 0.25414517521858215, 0.00013094927999190986, -0.3270379304885864, 0.26965323090553284, 0.345956414937973, 0.26311907172203064, -0.25047174096107483, -0.047719042748212814, -0.3070183992385864, -0.24461065232753754, -0.006102895829826593, 0.15910758078098297, 0.15298202633857727, 0.011961831711232662, 0.05852394923567772, 0.010565626434981823, 0.22021399438381195, -0.24676096439361572, -0.13107110559940338, 0.25984323024749756, -0.059429366141557693, 0.18962933123111725, 0.04868592321872711, -0.008442157879471779, 0.25030913949012756, -0.08310697972774506, 0.054190896451473236, -0.33199676871299744, -0.15468952059745789, -0.04133322089910507, 0.09509382396936417, -0.005970867816358805, -0.3511022627353668, -0.3864652216434479, -0.1713499128818512, -0.48536357283592224, -0.22120091319084167, -0.11974574625492096, 0.09708873182535172, -0.055557142943143845, -0.31575581431388855, 0.025246333330869675, 0.15327730774879456, 0.4391428828239441, -0.20172438025474548, -0.09282221645116806, 0.21072719991207123, -0.4319680631160736, -0.17959657311439514, -0.16294991970062256, -0.06131836399435997, 0.2938210964202881, 0.03433537855744362, -0.193008691072464, -0.0772729441523552, 0.14868123829364777, -0.14295126497745514, 0.06080925092101097, -0.0430622398853302, 0.3532964587211609, 0.12417638301849365, -0.09494035691022873, -0.18351508677005768, -0.28407254815101624, 0.08021993935108185, 0.35335052013397217, 0.15153449773788452, -0.07023093104362488, 0.024417558684945107, -0.039540570229291916, 0.3105427026748657, 0.06572942435741425, -0.030512314289808273, 0.2941799461841583, 0.021622253581881523, 0.15717199444770813, -0.0036709948908537626, 0.16096308827400208, 0.41164952516555786, 0.09167192131280899, -0.21009385585784912, 0.5984891057014465, 0.20122680068016052, 0.07221894711256027, -0.12211217731237411, -0.043077610433101654, -0.4960404336452484, -0.12290593981742859, -0.12758776545524597, -0.19472429156303406, 0.006691701710224152, -0.0712362676858902, 0.16882027685642242, 0.16626951098442078, -0.05026900768280029, 0.3053993582725525, 0.18464277684688568, 0.3476549983024597, 0.019154181703925133, -0.16707700490951538, -0.22362539172172546, -0.2916169762611389, 0.16893990337848663, 0.22476066648960114, 0.13013172149658203, -0.17033536732196808, -0.32541823387145996, -0.03935698792338371, -0.19530273973941803, 0.0927150771021843, -0.36380916833877563, 0.14253704249858856, 0.08325817435979843, 0.09210779517889023, -0.17738300561904907, 0.0022861729376018047, -0.11711390316486359, -0.045259710401296616, -0.04779728502035141, 0.03680570796132088, -0.44892674684524536, -0.08137951791286469, 0.23491908609867096, -0.03244113549590111, -0.13182777166366577, -0.1953955739736557, -0.037542060017585754, -0.6822195649147034, -0.058764275163412094, 0.11679459363222122, 0.08172418922185898, 0.29427197575569153, -0.05016240477561951, -0.11177104711532593, 0.21296074986457825, 0.10415518283843994, 0.13878101110458374, 0.11174244433641434, 0.24447982013225555, 0.28001999855041504, 0.1165296733379364, 0.2486378252506256, 0.06916289031505585, 0.41423508524894714, 0.5681792497634888, -0.1052541509270668, -0.06243835389614105, 0.0022760522551834583, -0.130058154463768, 0.38962095975875854, 0.12064819782972336, 0.2080134153366089, 0.12842804193496704, -0.010366094298660755, -0.18305735290050507, -0.733647346496582, 0.35494768619537354, 0.13936476409435272, 0.08527921140193939, -0.18308870494365692, -0.6046621799468994, 0.39445316791534424, 0.15754786133766174, -0.1495508849620819, 0.08656241744756699, -0.1425362527370453, -0.35773688554763794, 0.27066850662231445, 0.15639212727546692, 1.0518203973770142, -0.2577364444732666, -0.020529257133603096, -0.0682569369673729, -0.11025325953960419, 0.2670953869819641, -0.2811879813671112, 0.12631568312644958, -0.0363980233669281, -0.049961116164922714, 0.048907507210969925, 0.22162362933158875, -0.08256516605615616, 0.11102942377328873, -0.3840632438659668, 0.24602589011192322, 0.12158315628767014, 0.06902185827493668, 0.018895983695983887, 0.298987478017807, 0.020060699433088303, -0.37318915128707886, -0.24142619967460632, 0.15766660869121552, -0.14481477439403534, 0.23744124174118042, -0.1495661735534668, 0.02535339817404747, 0.1036650612950325, -0.11331260949373245, -0.015233763493597507, 0.2427365481853485, 0.06366924941539764, -0.3152555525302887, -0.20608367025852203, -0.15480384230613708, 0.0955950990319252, 0.3037030100822449, -0.15157122910022736, 0.2297077476978302, -0.10608009994029999, 0.12115144729614258, 0.06873546540737152, 0.31636860966682434, 0.06354230642318726, 0.07349411398172379, 0.3956194221973419, -0.15212415158748627, 0.2492259293794632, 0.012369120493531227, 0.29811981320381165, -0.12893246114253998, -0.22057068347930908, -0.3212551176548004, 0.029326364398002625, -0.04700535163283348, 0.08646756410598755, 0.2525440752506256, -0.030652135610580444, -0.1810586154460907, 0.20062750577926636, -0.06284923851490021, -0.46765291690826416, 0.22131575644016266, -0.03012499213218689, -0.06680034101009369, -0.03898036107420921, 0.2198365181684494, 0.11383520066738129, -0.31272557377815247, -0.002781090559437871, 0.15303175151348114, -0.030397478491067886, -0.31131511926651, -0.4853432774543762, -0.23330332338809967, 0.008499824441969395, 0.08971519768238068, 0.10984155535697937, -0.3046220541000366, -0.0016216993099078536, 0.6208375096321106, 0.026215210556983948, -0.21266917884349823, -0.19558337330818176, 0.20604056119918823, -0.20561006665229797, 0.21313302218914032, 0.1754974126815796, 0.4463222622871399, -0.029449474066495895, 0.2326042354106903, -0.04607018828392029, 0.11750394105911255, -0.415262371301651, -0.17242228984832764, -0.45068466663360596, 0.36891233921051025, 0.02898460626602173, 0.056515928357839584, 0.15968233346939087, -0.11165463179349899, 0.21435557305812836, -0.060489267110824585, 0.005414911545813084, -0.19858023524284363, -0.009350732900202274, 0.09744547307491302, 0.23212440311908722, 0.07164505124092102, -0.2855551242828369, 0.07761751860380173, -0.22195787727832794, -0.2022411823272705, 0.3412208557128906, 0.2695654630661011, -0.061186254024505615, 0.35563987493515015, 0.033033713698387146, -0.04325861856341362, -0.03846682980656624, 0.12939797341823578, 0.12086448073387146, 0.3543027639389038, 0.03888605907559395, 0.1090509295463562, 0.1320509910583496, -0.18861190974712372, 0.062080904841423035, 0.17770372331142426, 0.42663025856018066, -0.04616997390985489, 0.1700853705406189, -0.0015137537848204374, -0.015882566571235657, 0.2375982403755188, 0.691675066947937, 0.05415976792573929, -0.05908828228712082, -0.21202518045902252, 0.16091082990169525, 0.37085625529289246, -0.14854609966278076, -0.012918662279844284, -0.5179473757743835, -0.28495949506759644, 0.10036580264568329, 0.2510248124599457, 0.011584489606320858, 0.016934774816036224, -0.24692881107330322, -0.02366897277534008, -0.058613069355487823, 0.07714378088712692, 0.0785491019487381, 0.10353520512580872, -0.008073234930634499, -0.02055593952536583, 0.16793332993984222, -0.15701554715633392, -0.05347735807299614, 0.4328358769416809, 0.1236589327454567, 0.5165600180625916, 0.2849934697151184, 0.4423139989376068, 0.02610538899898529, -0.053811926394701004, 0.03285445645451546, 0.17949864268302917, -0.1046278104186058, 0.26353514194488525, -0.1521061509847641, 0.5993239283561707, -0.3265373706817627, -0.08334510773420334, -0.17949829995632172, 0.12007970362901688, -0.2615886330604553, -0.21343708038330078, -0.015199576504528522, -0.2557024359703064, 0.17661480605602264, 0.09088289737701416, -0.05401521548628807, 0.11695295572280884, -0.0005365756805986166, -0.007379340939223766, 0.07118705660104752, -0.01426392886787653, 0.0348353274166584, 0.09198511391878128, 0.1931053102016449, -0.23127363622188568, 0.4226830303668976, 0.28139960765838623, 0.03575165197253227, 0.3122565448284149, 0.42741429805755615, 0.2777599096298218, 0.22220146656036377, -0.3424447476863861, -0.06848274171352386, 0.03380179405212402, 0.018383948132395744, -0.0938161239027977, 0.42020103335380554, 0.2514147460460663, 0.3408825993537903, 0.2904655933380127, 0.2242548167705536, -0.24401821196079254, 0.17848116159439087, -0.06948336213827133, -0.006064529996365309, 0.052736129611730576, 0.4793894290924072, 0.1439279466867447, -0.047190725803375244, -0.09959013015031815, 0.1491745561361313, -0.7908723950386047, -0.2610087990760803, 0.11874494701623917, -0.30481499433517456, 0.16290105879306793, -0.36072126030921936, 0.11671368777751923, 0.09100689738988876, 0.5737718343734741, 0.20015203952789307, 0.28872549533843994, 0.0657249316573143, -0.27459320425987244, -0.3580310344696045, -0.060654547065496445, 0.27966517210006714, 0.03790838271379471, -0.2496097832918167, 0.14698630571365356, 0.13924846053123474, 0.04938258230686188, -0.4266398549079895, 0.01860966719686985, -0.10710297524929047, 0.21977469325065613, -0.11976737529039383, 0.3733871281147003, -0.1624426245689392, 0.1714731901884079, -0.0584268681704998, -0.1896255910396576, -0.17716294527053833, -0.2254427820444107, 0.021569913253188133, 0.08298439532518387, 0.35268646478652954, 0.1450897455215454, -0.26864755153656006, 0.3546161651611328, -0.23035311698913574, 0.5316295027732849, -0.34170645475387573, 0.026185112074017525, 0.1350889801979065, 0.032993439584970474, -0.3262867331504822, -0.3018452227115631, -0.2989814281463623, 0.18448175489902496, 0.15855573117733002, 0.4981396794319153, -0.2554975152015686, -0.20757849514484406, -0.05017632618546486, 0.32353153824806213, -0.1857937127351761, -0.01708568073809147, -0.4260121285915375, -0.25506383180618286, -0.018729226663708687, 0.21474243700504303, 0.08817607164382935, -0.12169060856103897, -0.40481752157211304, -0.5538057088851929, 0.3240547776222229, 0.24935558438301086, -0.2571326792240143, -0.40157145261764526, 0.2706722915172577, 0.1335131675004959, 0.015163560397922993, -0.6682815551757812, 0.2751118540763855, 0.0016301315044984221, 0.1941598504781723, -0.06602150946855545, 0.4154752194881439, -0.07313580811023712, -0.17562010884284973, -0.1833539456129074, -0.15226970613002777, 0.13286487758159637, 0.011362130753695965, -0.14482073485851288, -0.3962372839450836 ]
https://github.com/huggingface/datasets/issues/2653
Add SD task for SUPERB
@lewtun @lhoestq: I have already generated the LibriMix corpus and prepared the corpus for diarization. The output is 3 dirs (train, dev, test), each one containing 6 files: reco2dur rttm segments spk2utt utt2spk wav.scp Next steps: - Upload these files to the superb-data repo - Transcribe the corresponding s3prl processing of these files into our superb loading script Note that processing of these files is a bit more intricate than usual datasets: https://github.com/s3prl/s3prl/blob/master/s3prl/downstream/diarization/dataset.py#L233
Include the SD (Speaker Diarization) task as described in the [SUPERB paper](https://arxiv.org/abs/2105.01051) and `s3prl` [instructions](https://github.com/s3prl/s3prl/tree/master/s3prl/downstream#sd-speaker-diarization). Steps: - [x] Generate the LibriMix corpus - [x] Prepare the corpus for diarization - [x] Upload these files to the superb-data repo - [x] Transcribe the corresponding s3prl processing of these files into our superb loading script - [ ] README: tags + description sections Related to #2619. cc: @lewtun
73
Add SD task for SUPERB Include the SD (Speaker Diarization) task as described in the [SUPERB paper](https://arxiv.org/abs/2105.01051) and `s3prl` [instructions](https://github.com/s3prl/s3prl/tree/master/s3prl/downstream#sd-speaker-diarization). Steps: - [x] Generate the LibriMix corpus - [x] Prepare the corpus for diarization - [x] Upload these files to the superb-data repo - [x] Transcribe the corresponding s3prl processing of these files into our superb loading script - [ ] README: tags + description sections Related to #2619. cc: @lewtun @lewtun @lhoestq: I have already generated the LibriMix corpus and prepared the corpus for diarization. The output is 3 dirs (train, dev, test), each one containing 6 files: reco2dur rttm segments spk2utt utt2spk wav.scp Next steps: - Upload these files to the superb-data repo - Transcribe the corresponding s3prl processing of these files into our superb loading script Note that processing of these files is a bit more intricate than usual datasets: https://github.com/s3prl/s3prl/blob/master/s3prl/downstream/diarization/dataset.py#L233
[ -0.2306322604417801, -0.3324865698814392, -0.05473168566823006, 0.06616562604904175, 0.3352735936641693, -0.2812388837337494, 0.08374132961034775, -0.06114905700087547, -0.1144544705748558, 0.40886086225509644, -0.4140782952308655, 0.42715728282928467, -0.15712618827819824, 0.34677764773368835, 0.1571534425020218, 0.059658147394657135, 0.04084085673093796, 0.24557344615459442, -0.3144540786743164, -0.046457890421152115, -0.06598556041717529, 0.015526818111538887, -0.11186649650335312, -0.287523090839386, -0.16763445734977722, 0.31256452202796936, 0.015935784205794334, -0.07903790473937988, -0.34333860874176025, -0.24684274196624756, 0.1256895661354065, 0.4726736545562744, 0.2812191843986511, 0.3263559341430664, -0.00010449872206663713, -0.24343465268611908, 0.12481441348791122, -0.40716952085494995, -0.3041563928127289, 0.02051069587469101, -0.14001165330410004, 0.25290346145629883, -0.24313747882843018, -0.10042303800582886, -0.6214831471443176, -0.10666080564260483, -0.07157427072525024, 0.058737922459840775, 0.3838648498058319, 0.26151177287101746, 0.25223830342292786, -0.12538307905197144, 0.018766243010759354, -0.04163195565342903, 0.3106274902820587, 0.23722833395004272, -0.15412788093090057, -0.004361508879810572, 0.22089028358459473, 0.04007258638739586, 0.03066399320960045, 0.29739752411842346, -0.2016078531742096, -0.04072152450680733, 0.42424875497817993, -0.30733370780944824, 0.09612889587879181, -0.14449062943458557, 0.06313763558864594, 0.40655767917633057, 0.4522717595100403, -0.20494168996810913, -0.28870314359664917, 0.21520566940307617, 0.007737733889371157, -0.25055405497550964, -0.24919253587722778, -0.04043415188789368, -0.27258220314979553, -0.022852059453725815, -0.20609472692012787, -0.1376396119594574, 0.032412853091955185, -0.19144007563591003, 0.019091594964265823, 0.37045422196388245, -0.2671468257904053, -0.30091819167137146, 0.2260407954454422, -0.13459865748882294, -0.3198322653770447, 0.3320158123970032, 0.20188429951667786, 0.1263994425535202, -0.21403464674949646, -0.1842058300971985, 0.24914102256298065, -0.38305917382240295, -0.04714859277009964, -0.046213291585445404, 0.2658670246601105, 0.10865737497806549, 0.2545672655105591, 0.06960936635732651, 0.024816596880555153, 0.1501285582780838, 0.23642456531524658, -0.03541961684823036, -0.04487352818250656, 0.1341961771249771, -0.05063977465033531, -0.0012749889865517616, -0.4389597773551941, 0.03305104002356529, -0.3648110330104828, 0.1746804565191269, -0.05838599056005478, -0.310341477394104, -0.20337213575839996, -0.12876354157924652, -0.019618600606918335, 0.2213389128446579, 0.07944023609161377, 0.47765034437179565, -0.0948931947350502, 0.06497813016176224, -0.05091241002082825, 0.22705839574337006, -0.24902814626693726, 0.36209094524383545, -0.10590388625860214, 0.16599123179912567, -0.14578057825565338, 0.019976865500211716, 0.2315412163734436, -0.3207782804965973, 0.1398189216852188, -0.04993932694196701, 0.17330242693424225, -0.11513273417949677, -0.2575063109397888, 0.1903567612171173, 0.2721080482006073, -0.031601432710886, 0.14457543194293976, -0.17088431119918823, -0.37058690190315247, 0.04176798835396767, -0.23420266807079315, -0.01677236519753933, 0.2933938205242157, -0.22806145250797272, -0.23698918521404266, 0.3036904036998749, -0.15065515041351318, -0.13594190776348114, 0.030542895197868347, 0.20154470205307007, 0.09776655584573746, -0.3038559556007385, -0.05485767126083374, -0.25128480792045593, -0.22397556900978088, 0.11786860227584839, 0.38926318287849426, -0.07017956674098969, 0.11603913456201553, -0.22456291317939758, -0.005119451321661472, -0.008488263003528118, 0.29642295837402344, -0.033170104026794434, 0.2258886694908142, 0.06786313652992249, 0.03267977759242058, 0.1900208592414856, -0.04799289628863335, -0.5481699109077454, -0.22455628216266632, -0.0074400221928954124, 0.022699346765875816, 0.03134532272815704, 0.1355646699666977, 0.004556347616016865, 0.6181931495666504, -0.37447264790534973, -0.038159843534231186, 0.33805084228515625, 0.07251396030187607, 0.09976420551538467, -0.131092831492424, -0.019113987684249878, 0.011853503063321114, 0.2393462061882019, -0.08138415962457657, -0.08089480549097061, -0.06767383962869644, 0.4970262944698334, 0.2334403097629547, -0.17255766689777374, 0.1217375099658966, -0.011945263482630253, 0.2894849479198456, 0.09105969220399857, 0.021703844889998436, -0.18551895022392273, 0.06784410029649734, -0.17472504079341888, 0.258868008852005, 0.38308972120285034, -0.0389183834195137, -0.4150964021682739, -0.0010081406217068434, -0.16621460020542145, -0.2090085744857788, -0.0032303552143275738, 0.2927137017250061, 0.24284932017326355, 0.40713977813720703, -0.3336694538593292, -0.0167746189981699, -0.6764428615570068, -0.07113134115934372, -0.09231636673212051, -0.0045000347308814526, -0.01999977044761181, -0.0798715353012085, -0.1189093068242073, 0.38517138361930847, 0.5336654186248779, -0.050778523087501526, 0.0314621701836586, 0.08879954367876053, 0.29880085587501526, -0.07260888069868088, 0.2658644914627075, -0.20841799676418304, 0.4722294211387634, -0.08954530954360962, -0.5653335452079773, 0.047001369297504425, 0.19990073144435883, 0.0958382859826088, -0.06547717750072479, 0.005532624665647745, 0.1372515857219696, -0.09537339955568314, 0.07784181833267212, 0.265532523393631, -0.20626726746559143, 0.22088414430618286, -0.015246240422129631, -0.1619105488061905, 0.008833038620650768, 0.056073665618896484, -0.20331938564777374, 0.01201592106372118, 0.0018845461308956146, -0.24244800209999084, 0.041762907058000565, 0.17760908603668213, -0.10710500180721283, 0.14403966069221497, -0.018228603526949883, -0.09818442910909653, -0.26139843463897705, -0.01736421324312687, -0.08523212373256683, -0.10226485878229141, 0.27480942010879517, 0.3855220675468445, -0.11909450590610504, -0.14841584861278534, -0.07941551506519318, 0.1939111202955246, -0.08094994723796844, -0.11371811479330063, 0.479247510433197, 0.061822500079870224, -0.07892613112926483, -0.4903303384780884, 0.007199116516858339, -0.04775896668434143, -0.015072920359671116, -0.01469949260354042, -0.365763396024704, 0.024548325687646866, -0.5591488480567932, -0.06591983884572983, -0.5107610821723938, 0.17964425683021545, 0.15679745376110077, 0.35384872555732727, 0.10140425711870193, -0.2838633358478546, 0.32102739810943604, 0.366955429315567, 0.2201402485370636, -0.08987699449062347, 0.07928779721260071, -0.1918426752090454, -0.19402913749217987, 0.08484365791082382, 0.23795120418071747, 0.12254054099321365, 0.06494438648223877, 0.06674155592918396, -0.053055454045534134, 0.08435975760221481, -0.14861653745174408, -0.10392328351736069, 0.20084092020988464, -0.07755844295024872, 0.0879925861954689, 0.0492757111787796, 0.05003621429204941, 0.1740363985300064, -0.14631560444831848, -0.001440059277229011, -0.2926125228404999, -0.16808879375457764, 0.1636350303888321, 0.0077725243754684925, -0.009842953644692898, -0.3968883156776428, -0.3802542984485626, -0.019026489928364754, -0.4988487660884857, -0.1282486617565155, -0.03625879064202309, 0.2246869057416916, 0.04433396831154823, -0.17437700927257538, 0.024072520434856415, 0.12434011697769165, 0.4566856920719147, -0.15727025270462036, -0.1098150685429573, 0.1976679116487503, -0.3751397430896759, -0.22547200322151184, -0.21044081449508667, -0.09103962779045105, 0.3619685173034668, 0.052468787878751755, -0.09414833784103394, -0.0015297476202249527, 0.1633962094783783, -0.24505729973316193, -0.009935924783349037, 0.054350048303604126, 0.2658219039440155, 0.1149333268404007, -0.11680921167135239, -0.21954159438610077, 0.02352033741772175, 0.050532665103673935, 0.28685033321380615, 0.23036858439445496, -0.15807197988033295, -0.04390528053045273, 0.007975396700203419, 0.3405780792236328, -0.0335664339363575, -0.1394282728433609, 0.1918027698993683, -0.07809114456176758, 0.09992632269859314, 0.08383647352457047, 0.18014629185199738, 0.454269140958786, 0.008078532293438911, -0.13520875573158264, 0.6013187766075134, 0.16536761820316315, 0.04733791947364807, -0.0611419752240181, 0.24692489206790924, -0.36641108989715576, -0.08590083569288254, -0.022957904264330864, -0.12261448800563812, 0.08057909458875656, -0.06978090852499008, 0.19898878037929535, 0.3178984224796295, -0.051546890288591385, 0.2662787139415741, 0.03248583897948265, 0.33584487438201904, 0.0018378933891654015, -0.07210653275251389, -0.1589869260787964, -0.31561553478240967, 0.027997972443699837, 0.33004528284072876, 0.033132169395685196, -0.09817522019147873, -0.35147595405578613, -0.06175294518470764, -0.2059907466173172, 0.024124858900904655, -0.22242988646030426, 0.2713913321495056, 0.232831671833992, 0.08831151574850082, -0.038124896585941315, -0.008395145647227764, -0.3488222658634186, -0.19657939672470093, 0.0651908814907074, -0.14539606869220734, -0.4111143946647644, -0.05510041490197182, 0.2846321761608124, 0.03609372675418854, 0.0026894332841038704, -0.05814092233777046, -0.11575312167406082, -0.5529299378395081, -0.028726238757371902, 0.1698334962129593, 0.14826594293117523, 0.21860955655574799, -0.1743786334991455, -0.12731808423995972, 0.1781242936849594, 0.005088812671601772, 0.16139355301856995, 0.1702771782875061, 0.2613530158996582, 0.19521987438201904, 0.16883182525634766, 0.07518522441387177, -0.07105939090251923, 0.4589059054851532, 0.3865032494068146, -0.044437702745199203, 0.0943174883723259, 0.06677746027708054, -0.16569706797599792, 0.3028515577316284, 0.050418272614479065, 0.3310026228427887, 0.11025814712047577, -0.13221095502376556, -0.05509793385863304, -0.6019121408462524, 0.4275260865688324, 0.17893150448799133, 0.057401154190301895, -0.010048409923911095, -0.44980838894844055, 0.3664426803588867, -0.05532531812787056, -0.07616853713989258, 0.027781803160905838, -0.15920335054397583, -0.22617746889591217, 0.3278334140777588, 0.22649018466472626, 1.0557329654693604, -0.14328238368034363, -0.04076891764998436, 0.09892819076776505, -0.08211810886859894, 0.07674159109592438, -0.3198873698711395, 0.23814986646175385, -0.07093457132577896, -0.061758868396282196, -0.00018663473019842058, 0.24123001098632812, -0.15443414449691772, 0.05697869509458542, -0.4224567115306854, 0.038599707186222076, 0.21036717295646667, -0.011684097349643707, -0.034321751445531845, -0.004993429407477379, 0.05231347680091858, -0.22251512110233307, -0.19308480620384216, 0.2036747932434082, -0.13514891266822815, 0.0884169489145279, -0.09635155647993088, -0.018026815727353096, 0.15382561087608337, -0.1409377157688141, -0.03190113604068756, 0.22302168607711792, -0.011327795684337616, -0.2855209708213806, -0.06438187509775162, -0.19611592590808868, -0.03703658655285835, 0.22707566618919373, -0.34336358308792114, 0.24739281833171844, -0.0330452062189579, 0.03838657587766647, 0.138341024518013, 0.27623894810676575, 0.03890234977006912, 0.1228722557425499, 0.27847355604171753, -0.16569393873214722, 0.25973016023635864, -0.04958304390311241, 0.25973305106163025, 0.022277388721704483, -0.03763231635093689, -0.2906150817871094, 0.09643366932868958, 0.051414500921964645, 0.1492401659488678, 0.2572363615036011, -0.19453902542591095, -0.1682177186012268, 0.22340965270996094, -0.060149651020765305, -0.6823366284370422, 0.2686043679714203, 0.03365107625722885, -0.052587561309337616, -0.014657976105809212, 0.172002911567688, 0.19372981786727905, -0.20562458038330078, -0.03150491416454315, 0.1955663561820984, -0.060824230313301086, -0.3801860809326172, -0.42881593108177185, -0.2341482788324356, -0.09884823858737946, 0.029470423236489296, 0.09792318195104599, -0.3611583113670349, 0.14738313853740692, 0.5644744634628296, -0.03584880009293556, -0.1570378988981247, -0.2788635194301605, 0.200060173869133, -0.17018531262874603, 0.09732642024755478, 0.08608342707157135, 0.5324307680130005, -0.13320010900497437, 0.22801867127418518, -0.0996868908405304, 0.2533305287361145, -0.44818127155303955, -0.1555628478527069, -0.4357389211654663, 0.4334951639175415, -0.04239264130592346, -0.11468861252069473, 0.06958604604005814, -0.06410731375217438, 0.27567845582962036, 0.07565891742706299, -0.09462812542915344, -0.2677779793739319, -0.025926845148205757, 0.07982313632965088, 0.14190344512462616, 0.08415837585926056, -0.15236225724220276, 0.3329121768474579, -0.3364924490451813, -0.22002775967121124, 0.326550155878067, 0.20059490203857422, -0.05331111699342728, 0.32328712940216064, -0.07275348901748657, -0.02061246894299984, 0.012121446430683136, -0.08390450477600098, 0.13346977531909943, 0.1765253245830536, 0.014723939821124077, 0.10952799022197723, 0.13582177460193634, -0.2089044600725174, 0.11254411935806274, 0.2479688674211502, 0.3644375205039978, -0.25715339183807373, 0.2628560960292816, 0.09267658740282059, 0.03905947878956795, 0.23215587437152863, 0.6654080748558044, 0.0981389731168747, -0.0007726650801487267, -0.25438880920410156, 0.1583816111087799, 0.444545716047287, -0.2427857518196106, 0.004216390661895275, -0.5556684136390686, -0.26296842098236084, 0.19848892092704773, 0.2155684530735016, -0.0638478696346283, -0.2041839063167572, -0.11554450541734695, 0.012432108633220196, -0.11260686814785004, -0.02852548100054264, 0.007503305561840534, 0.23120565712451935, 0.08351407200098038, -0.09035007655620575, -0.0491827167570591, -0.20329280197620392, 0.03781162574887276, 0.40396973490715027, 0.007707555778324604, 0.5663602352142334, 0.20264558494091034, 0.25880706310272217, 0.06132766976952553, 0.039184872061014175, -0.06021890416741371, 0.2987787127494812, -0.14480584859848022, 0.37997257709503174, -0.1233508437871933, 0.4566287696361542, -0.22395794093608856, -0.16225473582744598, -0.25351351499557495, 0.12478528916835785, -0.2302413135766983, -0.12287715822458267, 0.004566787276417017, -0.2692742347717285, -0.03394290804862976, 0.013291929848492146, 0.07114358991384506, 0.2759762704372406, -0.021749896928668022, -0.0007497119368053973, 0.13040371239185333, -0.008394334465265274, -0.12923912703990936, 0.028390299528837204, 0.30649933218955994, -0.2977679967880249, 0.3046827018260956, 0.3741046190261841, -0.020856397226452827, 0.2079511433839798, 0.36676672101020813, 0.29127052426338196, 0.11628533154726028, -0.29816216230392456, 0.02924455516040325, -0.07715952396392822, -0.02212657406926155, -0.1009698212146759, 0.33790692687034607, 0.2625351846218109, 0.3141922950744629, 0.22411517798900604, 0.21914257109165192, -0.28020158410072327, 0.18965795636177063, -0.01583503931760788, -0.14960701763629913, 0.055634982883930206, 0.3040374219417572, 0.0036890620831400156, 0.005248107947409153, -0.17463450133800507, 0.044191427528858185, -0.6745699644088745, -0.21936625242233276, 0.03207717090845108, -0.20787590742111206, 0.18616193532943726, -0.19321469962596893, 0.12989948689937592, 0.013717113062739372, 0.5280652642250061, 0.19548988342285156, 0.18486467003822327, 0.0935734435915947, -0.29536202549934387, -0.27516499161720276, 0.04236885532736778, 0.3151339590549469, 0.02274470217525959, -0.27157366275787354, 0.1354253590106964, 0.3042469322681427, 0.13861596584320068, -0.513469934463501, -0.022384680807590485, 0.04717511683702469, 0.31297245621681213, -0.20739179849624634, 0.3606792390346527, -0.148220956325531, 0.13252981007099152, -0.04035050794482231, -0.27005401253700256, -0.23555408418178558, -0.3604172170162201, 0.17358918488025665, 0.1764339953660965, 0.2119527906179428, 0.0678335651755333, -0.0882793590426445, 0.015706360340118408, -0.15590928494930267, 0.44645586609840393, -0.38554081320762634, -0.04270537942647934, 0.13932450115680695, 0.06590978056192398, -0.20020200312137604, -0.3122701644897461, -0.17095087468624115, 0.3210386037826538, 0.22485174238681793, 0.3830830454826355, -0.15349434316158295, -0.15802913904190063, 0.07113271206617355, 0.37296560406684875, -0.23645257949829102, 0.05063234642148018, -0.376930296421051, -0.2457832247018814, 0.02393963374197483, 0.18787448108196259, 0.12923333048820496, -0.10240346938371658, -0.42550116777420044, -0.5281772017478943, 0.30489489436149597, 0.11317148059606552, -0.2440488487482071, -0.45018407702445984, 0.3223859965801239, 0.1904885172843933, 0.002697387710213661, -0.644727349281311, 0.2225143164396286, -0.03920653462409973, 0.17356188595294952, -0.0894952043890953, 0.3659560978412628, -0.01886173151433468, -0.22354111075401306, -0.15414318442344666, -0.1673182100057602, 0.2073860466480255, 0.026492426171898842, -0.15504182875156403, -0.4224492609500885 ]
https://github.com/huggingface/datasets/issues/2651
Setting log level higher than warning does not suppress progress bar
Hi, you can suppress progress bars by patching logging as follows: ```python import datasets import logging datasets.logging.get_verbosity = lambda: logging.NOTSET # map call ... ```
## Describe the bug I would like to disable progress bars for `.map` method (and other methods like `.filter` and `load_dataset` as well). According to #1627 one can suppress it by setting log level higher than `warning`, however doing so doesn't suppress it with version 1.9.0. I also tried to set `DATASETS_VERBOSITY` environment variable to `error` or `critical` but it also didn't work. ## Steps to reproduce the bug ```python import datasets from datasets.utils.logging import set_verbosity_error set_verbosity_error() def dummy_map(batch): return batch common_voice_train = datasets.load_dataset("common_voice", "de", split="train") common_voice_test = datasets.load_dataset("common_voice", "de", split="test") common_voice_train.map(dummy_map) ``` ## Expected results - The progress bar for `.map` call won't be shown ## Actual results - The progress bar for `.map` is still shown ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Linux-5.4.0-1045-aws-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.5 - PyArrow version: 4.0.1
25
Setting log level higher than warning does not suppress progress bar ## Describe the bug I would like to disable progress bars for `.map` method (and other methods like `.filter` and `load_dataset` as well). According to #1627 one can suppress it by setting log level higher than `warning`, however doing so doesn't suppress it with version 1.9.0. I also tried to set `DATASETS_VERBOSITY` environment variable to `error` or `critical` but it also didn't work. ## Steps to reproduce the bug ```python import datasets from datasets.utils.logging import set_verbosity_error set_verbosity_error() def dummy_map(batch): return batch common_voice_train = datasets.load_dataset("common_voice", "de", split="train") common_voice_test = datasets.load_dataset("common_voice", "de", split="test") common_voice_train.map(dummy_map) ``` ## Expected results - The progress bar for `.map` call won't be shown ## Actual results - The progress bar for `.map` is still shown ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Linux-5.4.0-1045-aws-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.5 - PyArrow version: 4.0.1 Hi, you can suppress progress bars by patching logging as follows: ```python import datasets import logging datasets.logging.get_verbosity = lambda: logging.NOTSET # map call ... ```
[ -0.4419383704662323, -0.16377991437911987, 0.0876798927783966, -0.1625065803527832, 0.13949359953403473, -0.022706300020217896, 0.42936673760414124, 0.22887463867664337, 0.0989454910159111, 0.14454568922519684, 0.17548105120658875, 0.6159746050834656, -0.14076723158359528, 0.10084442049264908, -0.19388091564178467, 0.19400401413440704, 0.02293546497821808, 0.06182729825377464, 0.09736928343772888, -0.005186889320611954, -0.27382126450538635, -0.21245872974395752, -0.4537507891654968, 0.11771377921104431, -0.19084565341472626, -0.09941402077674866, 0.28195932507514954, -0.06763846427202225, -0.13473723828792572, -0.6845768690109253, 0.3213672339916229, 0.06557996571063995, 0.15900041162967682, 0.6035619974136353, -0.00013190129538998008, -0.06275486946105957, 0.5607281923294067, 0.17908602952957153, -0.2247193157672882, -0.17187322676181793, -0.5930763483047485, -0.30903100967407227, 0.3925265967845917, -0.07069683074951172, 0.02978801541030407, -0.3474459648132324, -0.12720303237438202, -0.2612384855747223, 0.23456816375255585, 0.18121281266212463, -0.007189248688519001, 0.24828441441059113, -0.03724006563425064, 0.5450519323348999, 0.2635573744773865, 0.1993846446275711, -0.27681952714920044, 0.15516933798789978, 0.4623754322528839, -0.23476338386535645, -0.30737873911857605, 0.3043425381183624, -0.3391895294189453, 0.08919055014848709, 0.36481547355651855, -0.1111716628074646, 0.6513956785202026, -0.5470021367073059, 0.3078687787055969, 0.12942549586296082, 0.3183058202266693, -0.2856890559196472, -0.38834652304649353, -0.19222106039524078, -0.046212658286094666, -0.07142627239227295, 0.16431133449077606, -0.045084256678819656, -0.38895702362060547, 0.14889319241046906, -0.779240608215332, -0.12063242495059967, -0.24463634192943573, 0.2550937235355377, 0.19097380340099335, 0.2744410037994385, -0.02768179215490818, 0.11875643581151962, 0.11788840591907501, -0.13658852875232697, 0.060778021812438965, -0.25452920794487, 0.01169216725975275, 0.24831858277320862, -0.4572411775588989, -0.0615718737244606, 0.3918236196041107, 0.13254745304584503, 0.14989395439624786, -0.09308137744665146, -0.15620824694633484, 0.1936066448688507, 0.16164281964302063, 0.1653095930814743, 0.2875446677207947, 0.1497991979122162, 0.5941333770751953, 0.28321221470832825, 0.2572876214981079, 0.15032097697257996, 0.1399831920862198, 0.2325322926044464, 0.39868617057800293, -0.42504608631134033, 0.44268137216567993, 0.3641912043094635, 0.3208542466163635, -0.2956034541130066, 0.05458974465727806, 0.04054120182991028, -0.4391986131668091, -0.07710400968790054, 0.24719388782978058, -0.1380395144224167, 0.4477904736995697, -0.33117714524269104, 0.15456216037273407, 0.23596927523612976, -0.1745842546224594, 0.0984208881855011, 0.009688874706625938, -0.2765089273452759, -0.28540176153182983, 0.18432816863059998, 0.2677907645702362, -0.21366161108016968, 0.20889990031719208, 0.14510545134544373, -0.25150179862976074, 0.0489351786673069, 0.3056747615337372, 0.015948550775647163, 0.5277971029281616, 0.4136825203895569, -0.2733992040157318, 0.2552734613418579, -0.011760233901441097, 0.014866011217236519, -0.12866060435771942, 0.47613048553466797, -0.07664987444877625, -0.45407834649086, -0.18195094168186188, -0.05783415213227272, -0.41701453924179077, 0.16425779461860657, -0.5429635643959045, 0.3450359106063843, 0.28661462664604187, -0.03462677076458931, 0.377191960811615, -0.14881132543087006, -0.5182567238807678, -0.09828691929578781, 0.18852053582668304, 0.49151623249053955, -0.6797263622283936, -0.18322467803955078, -0.3486950099468231, -0.2553289532661438, 0.2047460973262787, 0.031141186133027077, -0.23593221604824066, 0.019839514046907425, -0.05902300775051117, 0.36802539229393005, -0.015866048634052277, -0.13173095881938934, -0.3091970980167389, 0.30063939094543457, -0.05164004862308502, 0.11743161827325821, 0.06482458859682083, -0.24047470092773438, -0.11727067083120346, -0.2352149784564972, 0.06694606691598892, -0.054275888949632645, 0.2040419578552246, -0.19347639381885529, -0.2301560640335083, -0.26256290078163147, 0.0543837808072567, 0.005721517838537693, -0.1277090609073639, 0.0963604599237442, 0.1668698936700821, -0.4069342315196991, 0.45885568857192993, 0.018678532913327217, 0.1751152127981186, 0.2314310371875763, 0.3669460117816925, -0.4304535686969757, -0.026233552023768425, -0.08060023188591003, -0.12457504123449326, 0.19553250074386597, -0.1073027104139328, -0.08750765770673752, -0.30664336681365967, -0.31728947162628174, 0.09357389807701111, 0.003150396980345249, -0.21904949843883514, -0.20501618087291718, -0.1374475508928299, -0.24007679522037506, -0.13468807935714722, -0.18130375444889069, -0.28457438945770264, -0.2089659720659256, -0.37237903475761414, 0.057566240429878235, -0.14725488424301147, 0.05751178413629532, 0.29075780510902405, -0.3923129439353943, 0.07556893676519394, 0.16883765161037445, 0.23681175708770752, 0.12075932323932648, -0.12592412531375885, 0.3243701457977295, -0.14172770082950592, 0.5567004680633545, -0.10046736150979996, 0.20945771038532257, 0.12113765627145767, -0.12093338370323181, 0.026591632515192032, 0.16092190146446228, -0.2660251259803772, 0.25356602668762207, 0.10314054042100906, 0.017137538641691208, 0.41082948446273804, 0.296662300825119, -0.08132897317409515, -0.022740431129932404, 0.017592860385775566, -0.12528038024902344, -0.26961106061935425, -0.40734103322029114, 0.24049338698387146, 0.27486157417297363, 0.41567203402519226, -0.04553189501166344, 0.1888778656721115, 0.030359284952282906, 0.516169548034668, 0.04422878846526146, 0.10402582585811615, -0.016276327893137932, -0.20683825016021729, -0.1898769587278366, 0.3138590157032013, -0.09905921667814255, 0.37513577938079834, 0.11184557527303696, 0.21997405588626862, 0.14965960383415222, -0.021291568875312805, -0.049100007861852646, 0.13073869049549103, 0.28233709931373596, 0.09095948934555054, 0.28949686884880066, 0.08593912422657013, -0.12334432452917099, -0.183307945728302, -0.16384927928447723, -0.1781528741121292, 0.04418119415640831, -0.5000537037849426, 0.09473458677530289, -0.2914813756942749, -0.19456715881824493, -0.030008381232619286, 0.085610032081604, -0.26026487350463867, 0.032039668411016464, 0.17474481463432312, 0.0906224399805069, -0.22275538742542267, 0.4843928813934326, 0.2578091621398926, -0.1074478030204773, 0.19332872331142426, -0.14572857320308685, -0.472421258687973, -0.08663330227136612, -0.125392884016037, -0.18234312534332275, -0.018941886723041534, -0.21488305926322937, -0.1284615397453308, 0.22282662987709045, -0.10620441287755966, -0.19723285734653473, -0.06309081614017487, -0.049686282873153687, -0.10866516083478928, 0.22929905354976654, 0.018689442425966263, 0.06871238350868225, -0.0976075530052185, 0.19989095628261566, -0.09564200043678284, -0.3264264762401581, -0.016679642722010612, -0.13595148921012878, -0.24077913165092468, 0.2194424420595169, -0.18856775760650635, 0.06686742603778839, -0.24788159132003784, -0.14159107208251953, -0.07911449670791626, -0.35829830169677734, 0.12852686643600464, 0.2675815224647522, 0.1696363240480423, 0.3616369068622589, -0.162162646651268, -0.28074291348457336, 0.09953796118497849, -0.533237874507904, 0.2486509084701538, -0.003641116200014949, 0.08050301671028137, -0.07062027603387833, 0.08757267892360687, -0.030749153345823288, 0.3047392964363098, -0.3325502276420593, -0.06668365001678467, -0.24124035239219666, 0.042277321219444275, 0.06579820811748505, 0.038269639015197754, 0.23399947583675385, 0.050080299377441406, 0.0235202107578516, -0.07352208346128464, -0.39445793628692627, 0.0005847806460224092, 0.23076404631137848, 0.3519810438156128, 0.18082259595394135, 0.2470562607049942, 0.06386255472898483, 0.45771971344947815, 0.5331855416297913, -0.04577694460749626, 0.08765115588903427, 0.20528244972229004, 0.2106727510690689, 0.09152600169181824, -0.13753658533096313, -0.22290632128715515, 0.04650716856122017, -0.19456493854522705, 0.10779271274805069, 0.07197512686252594, -0.29714393615722656, 0.15068374574184418, -0.5093934535980225, 0.005222056992352009, -0.31856486201286316, -0.22712619602680206, -0.11764497309923172, 0.3608940541744232, -0.13050399720668793, 0.2869965136051178, -0.14697542786598206, -0.22820927202701569, -0.15037164092063904, 0.09297028928995132, 0.32582080364227295, -0.007567055523395538, -0.02223079465329647, -0.14276106655597687, -0.7272334098815918, 0.3539392948150635, 0.09460970759391785, 0.19055189192295074, -0.23277996480464935, 0.04966239631175995, 0.10377738624811172, 0.3628753423690796, 0.22939808666706085, -0.5157281756401062, 0.5419455766677856, -0.10002133250236511, 0.06815710663795471, -0.4487815201282501, -0.12843523919582367, -0.03852644935250282, 0.46953824162483215, 0.28559213876724243, 0.3334144055843353, 0.03060903213918209, -0.2551819086074829, -0.03365401551127434, 0.17086255550384521, 0.10286933183670044, -0.2805158495903015, -0.47799426317214966, 0.11244423687458038, -0.11995062232017517, 0.15320537984371185, 0.1270662397146225, -0.14903715252876282, -0.2905450165271759, -0.404737263917923, 0.4099101126194, -0.21081878244876862, -0.039224930107593536, 0.03438930958509445, 0.04040408879518509, 0.02939786948263645, -0.19264745712280273, 0.35618340969085693, -0.1313866376876831, 0.15624020993709564, 0.361521452665329, 0.12008566409349442, -0.3876296281814575, -0.041524846106767654, -0.240979865193367, 0.26332026720046997, 0.35916054248809814, -0.3182225525379181, 0.2258412390947342, 0.2511281371116638, 0.217879518866539, -0.05684751644730568, -0.3926555812358856, 0.3767252266407013, 0.08252006769180298, -0.24413810670375824, 0.03668060153722763, 0.36151978373527527, 0.2846279442310333, 0.004882787819951773, 0.35820749402046204, -0.1439698189496994, -0.3557717502117157, 0.1363271027803421, 0.1928451955318451, 0.6703529953956604, 0.04642380401492119, -0.05550519376993179, -0.11470905691385269, -0.021610712632536888, 0.20488962531089783, 0.28807392716407776, 0.32411712408065796, -0.07973578572273254, -0.027082262560725212, -0.07312483340501785, -0.2170136272907257, 0.3660188913345337, 0.4260585308074951, -0.06114761903882027, 0.10538709908723831, -0.39080071449279785, 0.18684221804141998, 0.02167695015668869, 0.09572666138410568, 0.06896266341209412, -0.10616986453533173, -0.5644493103027344, -0.1038890853524208, 0.13838963210582733, 0.12611521780490875, 0.0942867249250412, 0.02760474383831024, 0.2706150710582733, -0.18548013269901276, -0.29280149936676025, 0.1106330156326294, -0.0034727954771369696, -0.011296908371150494, -0.06014670431613922, -0.42107176780700684, 0.3573761284351349, 0.1403992474079132, -0.004003042355179787, 0.041773710399866104, -0.35743674635887146, -0.11729619652032852, 0.13701693713665009, 0.30451929569244385, -0.08250271528959274, -0.05776263773441315, 0.3107006251811981, -0.019248884171247482, -0.3764191269874573, 0.33552584052085876, -0.04874492809176445, -0.38033682107925415, -0.102689228951931, 0.009150365367531776, 0.18324978649616241, -0.02484087087213993, 0.3616980314254761, -0.09159976989030838, 0.2164251059293747, -0.07545235008001328, -0.018480826169252396, 0.21745741367340088, -0.05910857394337654, 0.4294329881668091, -0.4074729084968567, -0.5229223966598511, -0.09270060807466507, 0.43900153040885925, -0.06347328424453735, 0.14306336641311646, 0.42013657093048096, 0.1718604564666748, -0.09514504671096802, -0.1441234052181244, -0.07774926722049713, 0.5916376113891602, -0.20728260278701782, 0.0725373700261116, 0.26950886845588684, 0.27782168984413147, 0.16583991050720215, 0.050128042697906494, -0.20872937142848969, 0.21751344203948975, -0.4212331175804138, -0.25437822937965393, -0.31756144762039185, -0.008860725909471512, -0.073741115629673, 0.24212799966335297, -0.16274100542068481, 0.21458691358566284, 0.32625454664230347, -0.12387698143720627, -0.06870622932910919, -0.15038566291332245, -0.04153624549508095, -0.07580573111772537, 0.019659895449876785, 0.4972250163555145, 0.25904351472854614, -0.05850356072187424, -0.2144828587770462, -0.02715686336159706, -0.2456522285938263, 0.00114715367089957, -0.04876647889614105, 0.20120641589164734, 0.023199040442705154, -0.19600775837898254, 0.11446119844913483, -0.16259941458702087, -0.04667339473962784, -0.06108022481203079, 0.34201639890670776, 0.4181254506111145, 0.20394867658615112, 0.44953030347824097, -0.15160560607910156, 0.03527006134390831, -0.18400481343269348, -0.17118698358535767, -0.15779244899749756, 0.07316312193870544, -0.021800899878144264, 0.24253879487514496, 0.24668475985527039, 0.06642453372478485, 0.15736377239227295, -0.1460384577512741, -0.00873736571520567, 0.5891337394714355, -0.1070057600736618, 0.05464774742722511, -0.08479214459657669, -0.13321425020694733, 0.28132006525993347, 0.19722913205623627, -0.20999638736248016, -0.3687158226966858, -0.18187496066093445, -0.013719859533011913, -0.10132364183664322, -0.29786860942840576, 0.2876686751842499, 0.1761939525604248, 0.09318074584007263, 0.076205775141716, -0.302790105342865, 0.007699098903685808, 0.25026780366897583, 0.19595931470394135, -0.11391562968492508, -0.20096462965011597, 0.21309368312358856, 0.38791948556900024, -0.1446017026901245, -0.04775477945804596, 0.4281349182128906, 0.21704308688640594, 0.20087693631649017, 0.2702794075012207, 0.21176980435848236, 0.49543362855911255, 0.1691816747188568, 0.1041392832994461, -0.21144232153892517, -0.2212602198123932, -0.3109472095966339, 0.25090470910072327, -0.33407121896743774, -0.11394470930099487, 0.17985185980796814, 0.2877364754676819, -0.10510280728340149, -0.20363542437553406, 0.07618936896324158, -0.13784733414649963, -0.08043577522039413, 0.01555527001619339, -0.1261259764432907, 0.07178771495819092, 0.10989326983690262, -0.07264547795057297, -0.0561332181096077, 0.3540785312652588, 0.38645049929618835, -0.08856812119483948, -0.008713681250810623, -0.039547547698020935, 0.0012407166650518775, 0.1779051125049591, 0.366014689207077, 0.05563236027956009, -0.2327336072921753, -0.20343507826328278, 0.06034427881240845, 0.13899318873882294, 0.28186294436454773, 0.3087727427482605, 0.2892177402973175, 0.12884129583835602, -0.03724689409136772, 0.14571163058280945, -0.08286518603563309, -0.0870761126279831, 0.40283823013305664, 0.01563306339085102, -0.11298186331987381, 0.16289310157299042, -0.11517339944839478, 0.11288288235664368, 0.24302791059017181, 0.09320364892482758, 0.30820706486701965, -0.32138264179229736, 0.4500487744808197, 0.19368112087249756, -0.2729335129261017, 0.25649744272232056, -0.15270571410655975, -0.12162801623344421, -0.06428652256727219, 0.6507232189178467, 0.005038743373006582, -0.017539700493216515, -0.37070906162261963, -0.027963818982243538, -0.27679765224456787, 0.19028297066688538, 0.4077706038951874, 0.1590859591960907, -0.24761630594730377, 0.11713196337223053, -0.4242973029613495, 0.06802055984735489, 0.15523508191108704, -0.004145684186369181, 0.06693859398365021, -0.02092997543513775, -0.3779888153076172, 0.36529383063316345, 0.45992615818977356, -0.6130455136299133, -0.18732988834381104, -0.22898836433887482, -0.07986239343881607, -0.02664097025990486, 0.007365609984844923, 0.10187077522277832, -0.141502246260643, -0.2839628756046295, 0.26487496495246887, -0.2523229122161865, -0.14852546155452728, -0.17041102051734924, -0.3014569878578186, 0.3983108401298523, 0.1424652487039566, 0.5048657059669495, 0.22643625736236572, 0.05431351810693741, -0.03750935569405556, -0.02920810878276825, -0.17851579189300537, 0.1687038540840149, -0.22684451937675476, 0.281654953956604, -0.0607072077691555, 0.42570760846138, -0.5065682530403137, 0.18212299048900604, -0.19353729486465454, 0.07656323909759521, -0.2571016550064087, -0.001125186332501471, 0.04922628030180931, 0.12851694226264954, 0.1317146271467209, -0.1435748040676117, -0.2119310349225998, 0.016198886558413506, 0.066676564514637, 0.3037759065628052, -0.2902284562587738, -0.16409604251384735, 0.3946860134601593, -0.580871045589447, -0.2545500695705414, -0.18750204145908356, 0.497303307056427, 0.08820487558841705, -0.28436359763145447, -0.5184583067893982, -0.15382292866706848, 0.22018037736415863, 0.04055272787809372, -0.21244169771671295, 0.329553484916687, -0.24283196032047272, 0.3919376730918884, -0.07878122478723526, 0.14033059775829315, 0.29359909892082214, 0.17447397112846375, 0.05235215276479721, -0.3468526601791382 ]
https://github.com/huggingface/datasets/issues/2651
Setting log level higher than warning does not suppress progress bar
Note also that you can disable the progress bar with ```python from datasets.utils import disable_progress_bar disable_progress_bar() ``` See https://github.com/huggingface/datasets/blob/8814b393984c1c2e1800ba370de2a9f7c8644908/src/datasets/utils/tqdm_utils.py#L84
## Describe the bug I would like to disable progress bars for `.map` method (and other methods like `.filter` and `load_dataset` as well). According to #1627 one can suppress it by setting log level higher than `warning`, however doing so doesn't suppress it with version 1.9.0. I also tried to set `DATASETS_VERBOSITY` environment variable to `error` or `critical` but it also didn't work. ## Steps to reproduce the bug ```python import datasets from datasets.utils.logging import set_verbosity_error set_verbosity_error() def dummy_map(batch): return batch common_voice_train = datasets.load_dataset("common_voice", "de", split="train") common_voice_test = datasets.load_dataset("common_voice", "de", split="test") common_voice_train.map(dummy_map) ``` ## Expected results - The progress bar for `.map` call won't be shown ## Actual results - The progress bar for `.map` is still shown ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Linux-5.4.0-1045-aws-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.5 - PyArrow version: 4.0.1
19
Setting log level higher than warning does not suppress progress bar ## Describe the bug I would like to disable progress bars for `.map` method (and other methods like `.filter` and `load_dataset` as well). According to #1627 one can suppress it by setting log level higher than `warning`, however doing so doesn't suppress it with version 1.9.0. I also tried to set `DATASETS_VERBOSITY` environment variable to `error` or `critical` but it also didn't work. ## Steps to reproduce the bug ```python import datasets from datasets.utils.logging import set_verbosity_error set_verbosity_error() def dummy_map(batch): return batch common_voice_train = datasets.load_dataset("common_voice", "de", split="train") common_voice_test = datasets.load_dataset("common_voice", "de", split="test") common_voice_train.map(dummy_map) ``` ## Expected results - The progress bar for `.map` call won't be shown ## Actual results - The progress bar for `.map` is still shown ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.0 - Platform: Linux-5.4.0-1045-aws-x86_64-with-Ubuntu-18.04-bionic - Python version: 3.7.5 - PyArrow version: 4.0.1 Note also that you can disable the progress bar with ```python from datasets.utils import disable_progress_bar disable_progress_bar() ``` See https://github.com/huggingface/datasets/blob/8814b393984c1c2e1800ba370de2a9f7c8644908/src/datasets/utils/tqdm_utils.py#L84
[ -0.4388270378112793, -0.20373661816120148, 0.0796426385641098, -0.15226145088672638, 0.16921885311603546, -0.015966014936566353, 0.4777556359767914, 0.20219753682613373, 0.0318349152803421, 0.14753536880016327, 0.1682005673646927, 0.5794954299926758, -0.15289749205112457, 0.10003121942281723, -0.18351376056671143, 0.19449687004089355, 0.026312103495001793, 0.04243765026330948, 0.04576226696372032, 0.0004419458855409175, -0.2606729567050934, -0.14668990671634674, -0.4761812686920166, 0.09416366368532181, -0.22631597518920898, -0.06946995854377747, 0.2926197350025177, 0.003540209261700511, -0.11762522906064987, -0.6455771327018738, 0.3015623092651367, 0.09003805369138718, 0.14311352372169495, 0.6660021543502808, -0.00013324896281119436, -0.08780280500650406, 0.5361053347587585, 0.16576796770095825, -0.1852545589208603, -0.14533422887325287, -0.5602229833602905, -0.36298033595085144, 0.39052778482437134, -0.06179918348789215, 0.042038965970277786, -0.300534188747406, -0.1574251502752304, -0.26641830801963806, 0.25404566526412964, 0.17186737060546875, -0.016913097351789474, 0.30633407831192017, -0.10734033584594727, 0.5482038855552673, 0.23763930797576904, 0.14511199295520782, -0.30867788195610046, 0.16761817038059235, 0.47501659393310547, -0.2120765596628189, -0.2969588339328766, 0.36103713512420654, -0.31991103291511536, 0.1028575673699379, 0.3066387474536896, -0.07691800594329834, 0.6109768152236938, -0.5626851320266724, 0.33434176445007324, 0.1769726276397705, 0.34724169969558716, -0.3141155540943146, -0.38680747151374817, -0.173161581158638, -0.06949931383132935, -0.09286726266145706, 0.20587857067584991, -0.09217275679111481, -0.3756277859210968, 0.19141918420791626, -0.7989657521247864, -0.1072390228509903, -0.23272085189819336, 0.24829557538032532, 0.10759685188531876, 0.22891023755073547, -0.07189040631055832, 0.09634887427091599, 0.0785071924328804, -0.12189596146345139, 0.1031515896320343, -0.21710936725139618, 0.0044041965156793594, 0.24919530749320984, -0.514139711856842, -0.10635242611169815, 0.3615427613258362, 0.07199876755475998, 0.15682972967624664, -0.05956871062517166, -0.18638308346271515, 0.21915121376514435, 0.11588935554027557, 0.13400033116340637, 0.25540629029273987, 0.1776842176914215, 0.5470437407493591, 0.23772373795509338, 0.2636429965496063, 0.12370912730693817, 0.150648832321167, 0.20266102254390717, 0.39756718277931213, -0.43578821420669556, 0.44973069429397583, 0.37337905168533325, 0.32583197951316833, -0.27832743525505066, 0.007087511941790581, 0.09318798780441284, -0.3374131917953491, -0.03806658461689949, 0.23725338280200958, -0.08666644990444183, 0.4455685615539551, -0.2540479898452759, 0.14595745503902435, 0.26787322759628296, -0.18960312008857727, 0.02221887744963169, 0.0186258926987648, -0.2887335419654846, -0.25597259402275085, 0.18819323182106018, 0.24046669900417328, -0.1552523374557495, 0.21490104496479034, 0.13607488572597504, -0.14729556441307068, 0.03885593265295029, 0.3051348626613617, -0.019165130332112312, 0.5638688802719116, 0.43353769183158875, -0.2885812222957611, 0.2676410973072052, 0.02486596070230007, 0.025225559249520302, -0.09636662900447845, 0.47030797600746155, -0.05859037861227989, -0.4574697017669678, -0.18706679344177246, -0.06715895235538483, -0.4046754837036133, 0.1836804449558258, -0.5151899456977844, 0.3845127820968628, 0.2827964127063751, -0.00905014481395483, 0.40245944261550903, -0.1470164805650711, -0.5378503203392029, -0.08802614361047745, 0.23016998171806335, 0.5276051163673401, -0.6987103223800659, -0.17686079442501068, -0.342105507850647, -0.24912488460540771, 0.1895650327205658, 0.03269745409488678, -0.20991186797618866, 0.054027482867240906, -0.09551073610782623, 0.314859002828598, 0.07230883836746216, -0.16709573566913605, -0.3650946021080017, 0.3568647801876068, -0.06522214412689209, 0.11534465104341507, 0.07759612053632736, -0.21853217482566833, -0.11567841470241547, -0.2229299545288086, 0.06757119297981262, -0.06154641509056091, 0.17154720425605774, -0.2080005705356598, -0.2356216162443161, -0.26070737838745117, 0.05449599027633667, -0.006711096502840519, -0.08514947444200516, 0.14192180335521698, 0.1761009395122528, -0.4356425106525421, 0.45536306500434875, 0.0739697515964508, 0.1693071722984314, 0.25822755694389343, 0.33390218019485474, -0.4463590979576111, -0.04265940934419632, -0.10580617934465408, -0.16394561529159546, 0.20828485488891602, -0.10326281934976578, -0.09458773583173752, -0.28950241208076477, -0.3256097435951233, 0.07065827399492264, 0.006435168441385031, -0.2393782138824463, -0.20695944130420685, -0.15215998888015747, -0.23380446434020996, -0.1510627418756485, -0.20363664627075195, -0.3345767855644226, -0.17617107927799225, -0.33204999566078186, 0.04178030043840408, -0.10157807171344757, 0.05621330440044403, 0.30760616064071655, -0.3617401719093323, 0.05210211127996445, 0.17816250026226044, 0.22827687859535217, 0.10353788733482361, -0.12188763171434402, 0.3652699887752533, -0.1437884271144867, 0.5218514204025269, -0.04763669893145561, 0.19860835373401642, 0.11010905355215073, -0.16104398667812347, 0.005875410512089729, 0.17503081262111664, -0.2611900866031647, 0.279023140668869, 0.15034519135951996, 0.06619737297296524, 0.39308643341064453, 0.2827357053756714, -0.09471237659454346, -0.01672682911157608, 0.0013399209128692746, -0.12630465626716614, -0.28207477927207947, -0.43694454431533813, 0.24767214059829712, 0.26226115226745605, 0.3680637776851654, -0.10686701536178589, 0.10749845951795578, 0.07353638857603073, 0.4914250373840332, 0.05190059170126915, 0.10975171625614166, -0.0605800598859787, -0.21028375625610352, -0.1543627828359604, 0.2606513500213623, -0.09560252726078033, 0.43118971586227417, 0.09335339814424515, 0.22506266832351685, 0.18791811168193817, 0.007255096919834614, -0.04697307571768761, 0.11445215344429016, 0.2845511734485626, 0.037974465638399124, 0.3296859562397003, 0.07634468376636505, -0.11056555807590485, -0.15640589594841003, -0.16017502546310425, -0.14600147306919098, 0.024058125913143158, -0.5067862868309021, 0.13013240694999695, -0.3039040267467499, -0.17413586378097534, -0.02954251505434513, 0.043174657970666885, -0.2786381244659424, -0.01104812417179346, 0.18118040263652802, 0.07007099688053131, -0.2074577510356903, 0.4660840630531311, 0.20940165221691132, -0.08737988024950027, 0.1957889050245285, -0.12631753087043762, -0.47036439180374146, -0.057853661477565765, -0.11955978721380234, -0.1912759244441986, -0.04446513578295708, -0.1912553608417511, -0.1227569729089737, 0.16090132296085358, -0.1007063239812851, -0.2174820601940155, -0.05130315572023392, -0.04209503158926964, -0.07917642593383789, 0.30410921573638916, 0.023887673392891884, 0.06571182608604431, -0.12461679428815842, 0.2760339081287384, -0.05700376629829407, -0.3113238215446472, -0.0033399672247469425, -0.12410611659288406, -0.24160008132457733, 0.19213151931762695, -0.165009543299675, 0.08018509298563004, -0.2275785356760025, -0.14456623792648315, -0.14527186751365662, -0.4155721068382263, 0.1291884183883667, 0.2729186713695526, 0.12855973839759827, 0.3616064786911011, -0.1745835691690445, -0.2520790994167328, 0.076821468770504, -0.5869484543800354, 0.2583816647529602, -0.028688615188002586, 0.0308611448854208, -0.04570144787430763, 0.0982179343700409, -0.032049622386693954, 0.27122730016708374, -0.36571818590164185, -0.11378303170204163, -0.21948891878128052, 0.04202181100845337, 0.05286021530628204, 0.049505334347486496, 0.21273794770240784, 0.01709863170981407, 0.03311268985271454, -0.08137960731983185, -0.39528658986091614, -0.05477328971028328, 0.20420022308826447, 0.3584370017051697, 0.14973196387290955, 0.27889111638069153, 0.06660088896751404, 0.523348331451416, 0.5273799896240234, 0.018226776272058487, 0.07999607175588608, 0.20117852091789246, 0.2599043548107147, 0.08844377845525742, -0.1507945954799652, -0.25430983304977417, 0.06421513110399246, -0.16099655628204346, 0.13072983920574188, 0.055192649364471436, -0.15447235107421875, 0.14478269219398499, -0.43460962176322937, -0.004978611133992672, -0.3219951093196869, -0.23290637135505676, -0.17153088748455048, 0.35730424523353577, -0.11106093972921371, 0.2786037027835846, -0.12469321489334106, -0.1973201185464859, -0.1406458169221878, 0.19760838150978088, 0.24909280240535736, -0.01530465204268694, -0.050352469086647034, -0.11228621751070023, -0.7124314308166504, 0.35198974609375, 0.0758897215127945, 0.28596654534339905, -0.24448995292186737, 0.011980856768786907, 0.12276175618171692, 0.35034191608428955, 0.28005561232566833, -0.4966640770435333, 0.5247848629951477, -0.09292635321617126, 0.019452063366770744, -0.4260508418083191, -0.14608821272850037, -0.04236939549446106, 0.45498377084732056, 0.30694058537483215, 0.34576261043548584, 0.07297908514738083, -0.280936598777771, -0.03872494772076607, 0.1553352326154709, 0.06935711950063705, -0.3266053795814514, -0.5476043224334717, 0.1364569216966629, -0.09818612039089203, 0.15749242901802063, 0.12470200657844543, -0.14160872995853424, -0.2728045880794525, -0.37687283754348755, 0.3726086914539337, -0.25678569078445435, -0.015118343755602837, 0.04301800578832626, 0.03346923366189003, 0.01620650477707386, -0.15539364516735077, 0.32705551385879517, -0.14853504300117493, 0.09307204931974411, 0.38589444756507874, 0.12865908443927765, -0.3814191222190857, 0.00956085603684187, -0.22514821588993073, 0.26443442702293396, 0.4158937931060791, -0.3462156653404236, 0.2357858419418335, 0.27548250555992126, 0.25107166171073914, -0.019245881587266922, -0.3622414171695709, 0.3614005744457245, 0.08450313657522202, -0.2436751127243042, 0.07305515557527542, 0.3501393496990204, 0.22302670776844025, 0.031557731330394745, 0.347616583108902, -0.14591127634048462, -0.2988952696323395, 0.06855323910713196, 0.14009420573711395, 0.7327122092247009, 0.061793938279151917, -0.014404059387743473, -0.08608648180961609, 0.018006836995482445, 0.14297489821910858, 0.2686701714992523, 0.3113039433956146, -0.07860243320465088, -0.07178717106580734, -0.10810687392950058, -0.23148807883262634, 0.37629544734954834, 0.40702006220817566, -0.058479711413383484, 0.15552200376987457, -0.3735051453113556, 0.19734416902065277, 0.025992510840296745, 0.06885930150747299, 0.05706750229001045, -0.09090481698513031, -0.5662989616394043, -0.11674551665782928, 0.2005322128534317, 0.10181405395269394, 0.05230202153325081, 0.032077543437480927, 0.26478007435798645, -0.1404695361852646, -0.2725670635700226, 0.0908147469162941, -0.06597936153411865, -0.03484605252742767, 0.029049210250377655, -0.47814440727233887, 0.35780808329582214, 0.1115504801273346, 0.05084811523556709, 0.025351034477353096, -0.3542466163635254, -0.1177041232585907, 0.1660962998867035, 0.3358997702598572, -0.061947051435709, -0.08079780638217926, 0.3207853436470032, -0.006727957632392645, -0.3636157810688019, 0.37606698274612427, -0.04155904799699783, -0.33071762323379517, -0.04056446999311447, 0.03477982059121132, 0.20503675937652588, -0.02300264872610569, 0.3666192591190338, -0.09514155983924866, 0.26708826422691345, -0.09231985360383987, -0.02941351756453514, 0.26346027851104736, -0.05885167419910431, 0.40017929673194885, -0.40392351150512695, -0.5432719588279724, -0.08820478618144989, 0.3998922109603882, -0.07735224813222885, 0.1587752401828766, 0.39895570278167725, 0.1926054209470749, -0.09058915078639984, -0.1487976759672165, -0.024290118366479874, 0.5724534392356873, -0.24458934366703033, 0.08556432276964188, 0.2558705508708954, 0.28152450919151306, 0.17191082239151, 0.0982375293970108, -0.23008018732070923, 0.16940446197986603, -0.4567413628101349, -0.28375309705734253, -0.33068785071372986, -0.03205210715532303, -0.11250708997249603, 0.21954947710037231, -0.18102404475212097, 0.23989459872245789, 0.3140033781528473, -0.12776625156402588, -0.06332309544086456, -0.17045125365257263, -0.05806227773427963, -0.09970228374004364, 0.01530569326132536, 0.4879111349582672, 0.3068167269229889, -0.02226787805557251, -0.24220840632915497, -0.04111054539680481, -0.2885690927505493, 0.0003656894259620458, -0.047263700515031815, 0.22289474308490753, 0.05536600947380066, -0.21788474917411804, 0.10970079898834229, -0.12694422900676727, -0.050903692841529846, -0.06074102222919464, 0.3688480257987976, 0.4017435312271118, 0.212019145488739, 0.4640008807182312, -0.16593815386295319, 0.01083904318511486, -0.21963322162628174, -0.16156511008739471, -0.1266145259141922, 0.10386409610509872, -0.017162224277853966, 0.23662695288658142, 0.23756076395511627, 0.0850827693939209, 0.12051425129175186, -0.1252826303243637, 0.025288203731179237, 0.5037800669670105, -0.10735215246677399, 0.0316259041428566, -0.0593666173517704, -0.13734568655490875, 0.26533371210098267, 0.2075212150812149, -0.26959094405174255, -0.40001893043518066, -0.15475395321846008, -0.029150240123271942, -0.1095416471362114, -0.2723487615585327, 0.20481543242931366, 0.15510490536689758, 0.09839311987161636, 0.09574085474014282, -0.28275352716445923, 0.010235651396214962, 0.2798992097377777, 0.22017346322536469, -0.14660918712615967, -0.2405668944120407, 0.19621652364730835, 0.3295648396015167, -0.13323533535003662, 0.03162601590156555, 0.4858594536781311, 0.2517431974411011, 0.14962875843048096, 0.27345678210258484, 0.21903157234191895, 0.4766218364238739, 0.1542241871356964, 0.09105027467012405, -0.24957992136478424, -0.2548617124557495, -0.278721421957016, 0.21030861139297485, -0.34672772884368896, -0.155412957072258, 0.1416514366865158, 0.2543244957923889, -0.11715255677700043, -0.17730282247066498, 0.08332546800374985, -0.16626334190368652, -0.0445052832365036, -0.03228006139397621, -0.03870635852217674, 0.06992138922214508, 0.11474166810512543, -0.07318217307329178, -0.043607428669929504, 0.36930832266807556, 0.3610856235027313, -0.07912255078554153, -0.01254044659435749, -0.0775739848613739, -0.047796133905649185, 0.23933081328868866, 0.29270997643470764, 0.03559521958231926, -0.2087337076663971, -0.18452705442905426, 0.08053778856992722, 0.18343645334243774, 0.3068999946117401, 0.3027544319629669, 0.2926494777202606, 0.12028618901968002, -0.09028090536594391, 0.12536899745464325, -0.08830645680427551, -0.06260588765144348, 0.4116553068161011, -0.008298870176076889, -0.15072548389434814, 0.19036266207695007, -0.12473287433385849, 0.12036029994487762, 0.19952431321144104, 0.12332324683666229, 0.3067183494567871, -0.38736751675605774, 0.4715420603752136, 0.1450253576040268, -0.22994795441627502, 0.22433869540691376, -0.10974684357643127, -0.16567978262901306, -0.06174945458769798, 0.6827008724212646, -0.030215885490179062, 0.007648920640349388, -0.3466838002204895, -0.03459877893328667, -0.2770446538925171, 0.19142621755599976, 0.44151368737220764, 0.14709307253360748, -0.26286938786506653, 0.10241518914699554, -0.4719315767288208, 0.0841681957244873, 0.21587228775024414, -0.015002349391579628, 0.08239101618528366, 0.02882367931306362, -0.3979294002056122, 0.3991670608520508, 0.5172960162162781, -0.6161113977432251, -0.15610992908477783, -0.23292230069637299, -0.08298444747924805, -0.04204810783267021, -0.017336703836917877, 0.1415514200925827, -0.1652451753616333, -0.30959656834602356, 0.2503562569618225, -0.20926831662654877, -0.1735658198595047, -0.1356934905052185, -0.2915957272052765, 0.35952433943748474, 0.1325262039899826, 0.4981567859649658, 0.23617427051067352, 0.03760240599513054, -0.01768587902188301, -0.03246792033314705, -0.17561297118663788, 0.15702523291110992, -0.21058279275894165, 0.2739691734313965, -0.04590500146150589, 0.3700999617576599, -0.514969527721405, 0.1676444709300995, -0.1559266448020935, 0.0654425323009491, -0.2289649248123169, 0.006913545075803995, 0.03994973003864288, 0.17373186349868774, 0.1414281725883484, -0.0992361456155777, -0.18702945113182068, 0.03740452229976654, 0.06067020446062088, 0.36106616258621216, -0.311211496591568, -0.1599254161119461, 0.39003661274909973, -0.5684539675712585, -0.2624584138393402, -0.21463099122047424, 0.5193518400192261, 0.06409410387277603, -0.28252509236335754, -0.584155261516571, -0.15470008552074432, 0.21839872002601624, 0.06636368483304977, -0.20014996826648712, 0.36235108971595764, -0.2834412157535553, 0.39498820900917053, -0.06305587291717529, 0.15361696481704712, 0.26501160860061646, 0.18302908539772034, 0.021701952442526817, -0.30926933884620667 ]
https://github.com/huggingface/datasets/issues/2646
downloading of yahoo_answers_topics dataset failed
Hi ! I just tested and it worked fine today for me. I think this is because the dataset is stored on Google Drive which has a quota limit for the number of downloads per day, see this similar issue https://github.com/huggingface/datasets/issues/996 Feel free to try again today, now that the quota was reset
## Describe the bug I get an error datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files when I try to download the yahoo_answers_topics dataset ## Steps to reproduce the bug self.dataset = load_dataset( 'yahoo_answers_topics', cache_dir=self.config['yahoo_cache_dir'], split='train[:90%]') # Sample code to reproduce the bug self.dataset = load_dataset( 'yahoo_answers_topics', cache_dir=self.config['yahoo_cache_dir'], split='train[:90%]') ## Expected results A clear and concise description of the expected results. ## Actual results Specify the actual results or traceback. datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files
53
downloading of yahoo_answers_topics dataset failed ## Describe the bug I get an error datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files when I try to download the yahoo_answers_topics dataset ## Steps to reproduce the bug self.dataset = load_dataset( 'yahoo_answers_topics', cache_dir=self.config['yahoo_cache_dir'], split='train[:90%]') # Sample code to reproduce the bug self.dataset = load_dataset( 'yahoo_answers_topics', cache_dir=self.config['yahoo_cache_dir'], split='train[:90%]') ## Expected results A clear and concise description of the expected results. ## Actual results Specify the actual results or traceback. datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files Hi ! I just tested and it worked fine today for me. I think this is because the dataset is stored on Google Drive which has a quota limit for the number of downloads per day, see this similar issue https://github.com/huggingface/datasets/issues/996 Feel free to try again today, now that the quota was reset
[ -0.4173348546028137, 0.1438477337360382, -0.0522664412856102, 0.21039234101772308, 0.2381458580493927, -0.05664842948317528, 0.23771090805530548, 0.29057973623275757, 0.14424440264701843, 0.05731525644659996, -0.0823221430182457, -0.03472300246357918, 0.009593245573341846, 0.2967813014984131, -0.11418528109788895, 0.15321962535381317, 0.12071223556995392, -0.24233399331569672, -0.32901957631111145, 0.18728215992450714, 0.008297222666442394, 0.3475177586078644, -0.13651201128959656, -0.18602794408798218, -0.22259466350078583, 0.08021339029073715, 0.032427266240119934, 0.18776820600032806, -0.30601826310157776, -0.19396230578422546, 0.49986332654953003, 0.16810905933380127, 0.04849848523736, 0.24203290045261383, -0.00011594979878282174, -0.045645203441381454, 0.35649174451828003, -0.023051820695400238, -0.27545759081840515, -0.17193669080734253, -0.6136643290519714, -0.36410751938819885, -0.16250330209732056, -0.051016274839639664, 0.2578030526638031, 0.44851481914520264, -0.07898826897144318, -0.07274021208286285, 0.2911606431007385, 0.3613382875919342, 0.2246931493282318, 0.5078262686729431, 0.523313045501709, 0.021283239126205444, 0.6007751226425171, 0.028428146615624428, -0.1523158848285675, 0.3020835816860199, 0.04853473976254463, 0.09556848555803299, 0.03578924387693405, 0.2261752188205719, -0.05477159470319748, 0.20722931623458862, 0.05097774416208267, -0.1315069943666458, 0.010116162709891796, -0.26432177424430847, 0.18099896609783173, 0.37614718079566956, 0.7534171342849731, -0.06762421131134033, -0.386615127325058, -0.23356753587722778, -0.13775311410427094, -0.0953434631228447, 0.36242493987083435, 0.1967543214559555, -0.1790941059589386, 0.11823542416095734, -0.3431765139102936, -0.05590182542800903, -0.1109953224658966, 0.22989965975284576, 0.1896435171365738, -0.05891931429505348, -0.20492136478424072, -0.024371573701500893, -0.07471456378698349, -0.11851334571838379, 0.3572818338871002, -0.27740001678466797, -0.027352547273039818, 0.1389753818511963, -0.592414915561676, -0.1630178540945053, -0.1472226083278656, 0.3785589933395386, 0.5116469860076904, 0.5190516710281372, 0.012361257337033749, 0.1149434819817543, -0.2776392698287964, -0.10243331640958786, 0.3908930718898773, 0.40256375074386597, -0.02154410444200039, 0.1509062796831131, 0.43782180547714233, 0.35996413230895996, 0.044259198009967804, 0.09894447028636932, 0.06065677851438522, -0.12731365859508514, 0.39560091495513916, -0.04895220696926117, 0.28840172290802, -0.4871147572994232, -0.30834120512008667, 0.26668745279312134, -0.2881491780281067, -0.2556786835193634, -0.0349380299448967, 0.12877359986305237, -0.2728326916694641, 0.31936609745025635, -0.15816329419612885, 0.2316349595785141, 0.07612089812755585, -0.10683111101388931, -0.26612505316734314, -0.04572949931025505, -0.19171473383903503, 0.12518000602722168, 0.4090272784233093, -0.3089474141597748, 0.38473963737487793, 0.05831335857510567, -0.036622337996959686, -0.10107649862766266, 0.07025054842233658, -0.009757369756698608, -0.3626898527145386, 0.4796494245529175, -0.02837609313428402, 0.3199995756149292, 0.0633888840675354, 0.2056986689567566, -0.0027632222045212984, 0.1886623650789261, -0.3618536591529846, -0.35215163230895996, 0.04515916481614113, 0.19000956416130066, -0.3650647699832916, -0.14905023574829102, -0.2103966623544693, -0.09858951717615128, 0.08869002759456635, -0.09896329790353775, -0.0011393568711355329, -0.0808662623167038, -0.1798318326473236, -0.18776051700115204, 0.17093418538570404, 0.2947297990322113, -0.12140344083309174, 0.04928039386868477, -0.21265439689159393, -0.22955675423145294, 0.00756025779992342, 0.09889818727970123, -0.10212099552154541, 0.05160406604409218, -0.31215688586235046, 0.19101646542549133, -0.030474809929728508, -0.044129304587841034, -0.8213796019554138, 0.11200747638940811, 0.2127331644296646, 0.19958552718162537, 0.0226959977298975, 0.11586051434278488, -0.011539551429450512, -0.055877286940813065, 0.06831296533346176, 0.2879427969455719, -0.11135628819465637, 0.05319816619157791, -0.21354876458644867, -0.21468214690685272, -0.14122793078422546, 0.19240744411945343, 0.21788440644741058, 0.17952704429626465, 0.14983436465263367, -0.0014781758654862642, 0.20002928376197815, 0.0601046085357666, 0.026465529575943947, 0.4225364327430725, 0.23250898718833923, 0.12644293904304504, -0.1791842132806778, -0.4266206622123718, -0.6495072841644287, 0.27391329407691956, -0.15104468166828156, -0.11017214506864548, -0.01695133186876774, -0.10825421661138535, -0.48121514916419983, -0.13967882096767426, -0.06710399687290192, -0.1208609789609909, 0.05439141020178795, 0.11840104311704636, 0.19212931394577026, 0.04739611595869064, -0.08080880343914032, 0.6759992241859436, -0.2277868241071701, 0.12510086596012115, -0.2809182405471802, 0.36506980657577515, -0.14652639627456665, -0.11498244851827621, 0.1866229623556137, -0.05708185210824013, 0.15391942858695984, 0.026279622688889503, -0.16387201845645905, 0.34056663513183594, 0.08175861090421677, -0.04817681387066841, 0.15897423028945923, 0.3192980885505676, 0.13570547103881836, -0.20034454762935638, -0.10710208863019943, 0.268632709980011, 0.088812455534935, -0.019364705309271812, -0.3108481764793396, 0.1076376810669899, -0.3952946364879608, 0.08627573400735855, -0.0847248062491417, 0.274888813495636, 0.24876874685287476, -0.15296518802642822, -0.2354714423418045, 0.07560183852910995, 0.490282267332077, 0.1661132276058197, -0.015917928889393806, 0.02761305496096611, -0.23708294332027435, 0.07203098386526108, 0.38166511058807373, -0.1854066401720047, -0.023677639663219452, 0.23152969777584076, -0.04244319349527359, -0.08485914021730423, 0.05249328538775444, 0.34924474358558655, 0.4121185541152954, 0.07744988054037094, 0.1270793378353119, 0.019257718697190285, -0.0698235034942627, -0.21192793548107147, -0.009726915508508682, 0.10506844520568848, 0.05166275426745415, 0.3873598277568817, 0.08917587250471115, 0.020165199413895607, -0.3156520426273346, 0.017886370420455933, 0.06627390533685684, 0.2733682692050934, -0.4959609806537628, -0.0993698313832283, -0.225748673081398, -0.008332989178597927, -0.17963722348213196, -0.22728711366653442, -0.4338911175727844, -0.4144545793533325, -0.041473109275102615, 0.4321182668209076, -0.007369532249867916, 0.15849730372428894, -0.1760050654411316, 0.07660145312547684, 0.12989826500415802, -0.12989173829555511, -0.011058817617595196, 0.1239376962184906, -0.030557896941900253, 0.06747704744338989, 0.4870755076408386, -0.12002035975456238, 0.2683667242527008, -0.37970849871635437, 0.005756844766438007, -0.5876281261444092, -0.02524198591709137, 0.03194517269730568, -0.04297541826963425, 0.3296525776386261, 0.06819991767406464, 0.3912464380264282, -0.33512264490127563, 0.08925844728946686, 0.041282959282398224, 0.030080042779445648, -0.28070712089538574, 0.17206668853759766, 0.05882534384727478, 0.04290320351719856, 0.07939697057008743, -0.16391392052173615, -0.15928864479064941, -0.28478357195854187, 0.024616578593850136, -0.10460307449102402, 0.04293717071413994, 0.33334484696388245, -0.059633444994688034, -0.005599141586571932, 0.030697425827383995, 0.023364735767245293, -0.3865581154823303, -0.6483179926872253, 0.5215478539466858, 0.0017796552274376154, -0.41738268733024597, 0.0635494589805603, 0.10823030024766922, -0.13241086900234222, 0.3234139680862427, -0.5212419033050537, -0.0796862244606018, -0.34604915976524353, 0.20914962887763977, 0.10916654765605927, 0.1893136203289032, 0.411470502614975, -0.21022512018680573, -0.05873826891183853, -0.005290253087878227, -0.1677406281232834, 0.09513697773218155, -0.056581635028123856, 0.2765410244464874, 0.07609212398529053, 0.09334006905555725, -0.03370499238371849, 0.6843776702880859, 0.2569458484649658, 0.33063679933547974, 0.49929919838905334, 0.15539686381816864, 0.34062090516090393, 0.014070305973291397, -0.13944540917873383, 0.030078396201133728, -0.2988120913505554, 0.11100894212722778, 0.08002109825611115, 0.17965887486934662, 0.21047724783420563, -0.24740801751613617, -0.10856255888938904, -0.2964664697647095, -0.16315816342830658, 0.061719588935375214, -0.1888987123966217, 0.3915339410305023, 0.22359447181224823, 0.00872101541608572, 0.15509489178657532, -0.3679836392402649, 0.14915958046913147, 0.16195081174373627, -0.04544932022690773, -0.07424210757017136, -0.508907675743103, -0.05375126004219055, -0.3977300822734833, 0.22917774319648743, 0.06533822417259216, 0.40778347849845886, -0.08085956424474716, 0.0933065190911293, -0.012724507600069046, -0.030802296474575996, 0.4612419903278351, -0.16707614064216614, 0.226189523935318, -0.05589316785335541, -0.00660846009850502, -0.2543904185295105, -0.29473185539245605, -0.041011374443769455, 0.09760396927595139, 0.0445079505443573, 0.2930549681186676, -0.5040321946144104, 0.08144286274909973, 0.20378632843494415, 0.3086688220500946, 0.008998294360935688, -0.2055961638689041, -0.22821961343288422, -0.21562446653842926, -0.46260547637939453, 0.01304796151816845, 0.12287329882383347, 0.1912577897310257, -0.09616319835186005, -0.05546334385871887, 0.06833267211914062, -0.02950751781463623, 0.0314827598631382, -0.3027847707271576, 0.22119908034801483, 0.1362631618976593, 0.2531530261039734, 0.049770306795835495, -0.003373106475919485, 0.02103482559323311, 0.8041914701461792, -0.07977622747421265, -0.24889864027500153, 0.18162797391414642, -0.23810426890850067, -0.22770246863365173, 0.24971549212932587, -0.10226975381374359, -0.10964607447385788, 0.28628429770469666, 0.011994356289505959, -0.004021025728434324, -0.08686880767345428, 0.3564192056655884, 0.08563439548015594, -0.29895639419555664, -0.32461056113243103, 0.3209981918334961, 0.08312661200761795, -0.04250652343034744, 0.39911171793937683, 0.27254462242126465, 0.0491185262799263, -0.1712506264448166, -0.03998660668730736, 0.8578283786773682, 0.04983299970626831, 0.08521918952465057, 0.02026146650314331, -0.0567886158823967, 0.43422356247901917, -0.24643786251544952, -0.07296392321586609, -0.2406996786594391, -0.3326307237148285, -0.08466411381959915, -0.209235280752182, 0.08274045586585999, -0.0030933942180126905, -0.06268862634897232, 0.3957352936267853, -0.2062758207321167, 0.3918377161026001, 0.14504413306713104, 0.16941207647323608, -0.3521955609321594, 0.12403261661529541, -0.15809042751789093, 0.15504465997219086, -0.20776429772377014, 0.41879749298095703, -0.13723133504390717, -0.007183931302279234, -0.3030923008918762, -0.17014473676681519, -0.7933593988418579, 0.13838203251361847, 0.04771045595407486, 0.014850275591015816, 0.3436414897441864, -0.10294697433710098, 0.010862917639315128, 0.21927841007709503, 0.5752386450767517, 0.020420560613274574, -0.36397913098335266, 0.1980460286140442, -0.07578063756227493, -0.02541695162653923, -0.013243336230516434, -0.07633593678474426, 0.3167341351509094, -0.33354607224464417, -0.2046465277671814, 0.10105480998754501, -0.11295220255851746, -0.4047100245952606, -0.16548632085323334, -0.1741243153810501, 0.15974406898021698, -0.4395293593406677, -0.11076021939516068, -0.16576246917247772, 0.11473310738801956, -0.29087167978286743, 0.14865204691886902, 0.2463241070508957, 0.004293263889849186, 0.1918426752090454, 0.11457359045743942, -0.08752842992544174, -0.22224493324756622, 0.5563125610351562, -0.10805130749940872, 0.004346135538071394, 0.3435761034488678, 0.21703071892261505, -0.23110345005989075, -0.16219289600849152, 0.17013393342494965, -0.01658087596297264, -0.5097994208335876, 0.03853395953774452, -0.3021155893802643, 0.20160721242427826, -0.2905811667442322, 0.47397691011428833, 0.3647392690181732, 0.2416929453611374, 0.3363364636898041, -0.7355577945709229, 0.038639288395643234, -0.03772855922579765, 0.05337958782911301, 0.22918249666690826, -0.2330828160047531, -0.39010509848594666, 0.21198737621307373, -0.2208043485879898, -0.2780774235725403, -0.055771734565496445, -0.3257579505443573, -0.07682406902313232, 0.004998791962862015, 0.017316579818725586, 0.35890722274780273, -0.21683759987354279, 0.11065799742937088, 0.018686125054955482, -0.1566239297389984, -0.21690331399440765, -0.1430363953113556, 0.12129262834787369, 0.057818155735731125, -0.2803614139556885, 0.14901910722255707, -0.2365238219499588, -0.12924721837043762, 0.1539890319108963, 0.013159895315766335, 0.2773078680038452, 0.03675686940550804, 0.011302853003144264, -0.07222561538219452, -0.060302697122097015, -0.2676009237766266, 0.11692231148481369, -0.1861577033996582, 0.2702556252479553, 0.03706934303045273, 0.2360316812992096, 0.3051556646823883, -0.043076884001493454, -0.40351951122283936, 0.09675981104373932, 0.0711779072880745, -0.08676588535308838, 0.23323410749435425, -0.45935365557670593, -0.08462407439947128, 0.24118122458457947, 0.4229108989238739, 0.30796679854393005, -0.29834043979644775, 0.03827338665723801, 0.20609857141971588, 0.24269573390483856, -0.27960339188575745, -0.13084176182746887, 0.257413774728775, -0.03317595645785332, -0.06990625709295273, -0.08074712753295898, 0.33952465653419495, -0.29813212156295776, 0.2762933373451233, 0.13780780136585236, 0.18260174989700317, 0.23483234643936157, 0.16144435107707977, 0.39459162950515747, 0.07804915308952332, 0.10839439183473587, 0.23433344066143036, -0.1447656899690628, -0.0748584195971489, 0.06264142692089081, 0.02934988960623741, 0.021352117881178856, -0.25436943769454956, 0.25253602862358093, -0.15747055411338806, -0.44553142786026, 0.28433355689048767, 0.19481247663497925, -0.14933708310127258, -0.07749376446008682, -0.09526529908180237, 0.4345991611480713, -0.19617249071598053, 0.027762388810515404, -0.4497288465499878, 0.05999184399843216, -0.028885820880532265, 0.1380895972251892, -0.013411312364041805, -0.3608104884624481, -0.1873147338628769, 0.31624147295951843, -0.12228730320930481, -0.08870729804039001, 0.4075278639793396, 0.06354207545518875, -0.30093178153038025, -0.5092542767524719, 0.22086894512176514, 0.01102496962994337, 0.023164281621575356, -0.19124950468540192, 0.1664220541715622, -0.03327653557062149, -0.19033204019069672, 0.09440341591835022, 0.4231262803077698, 0.29818108677864075, 0.19585072994232178, 0.06105450540781021, -0.030747782438993454, 0.0787224993109703, -0.05981491133570671, 0.08525620400905609, 0.3819751739501953, 0.14421960711479187, -0.18782930076122284, 0.3243119418621063, 0.1266501396894455, -0.20774172246456146, 0.16123436391353607, -0.1640617996454239, -0.07607650756835938, -0.16650356352329254, 0.10689155757427216, -0.21393102407455444, 0.2273305505514145, -0.03712661564350128, -0.05360278859734535, -0.24775394797325134, -0.2532760202884674, 0.1240263357758522, -0.03563042730093002, 0.053244102746248245, -0.21846231818199158, 0.07322326302528381, -0.21176357567310333, 0.43915846943855286, 0.5012015700340271, 0.22038540244102478, -0.198935404419899, -0.35397347807884216, -0.7645018696784973, 0.07551313191652298, -0.10555766522884369, 0.1795700490474701, 0.16481122374534607, 0.059052810072898865, -0.23504216969013214, 0.30775925517082214, 0.2918086647987366, -0.16637317836284637, -0.21675331890583038, 0.15518125891685486, -0.28011462092399597, 0.02781836688518524, -0.0017779786139726639, 0.03929082304239273, -0.10635527968406677, -0.32701805233955383, 0.4496088922023773, -0.017486603930592537, -0.051839131861925125, 0.057967133820056915, -0.1573752909898758, -0.022429462522268295, -0.06601084768772125, 0.12939363718032837, 0.13142000138759613, 0.41327527165412903, 0.11155823618173599, -0.20582537353038788, -0.16116763651371002, -0.12335071712732315, -0.08852542191743851, 0.02456704154610634, -0.19098658859729767, 0.4489952027797699, -0.07435598224401474, 0.014036321081221104, -0.2581719756126404, 0.44580399990081787, 0.07537080347537994, -0.1675119251012802, -0.23999297618865967, -0.05710044130682945, -0.03090064786374569, 0.023736529052257538, 0.11772996187210083, -0.05773589015007019, -0.16646713018417358, 0.20779351890087128, -0.22802473604679108, -0.14090247452259064, 0.29951974749565125, -0.026036441326141357, -0.12052349001169205, -0.21137754619121552, 0.08014590293169022, 0.13705027103424072, -0.21186420321464539, -0.4640902280807495, 0.19631893932819366, 0.38028430938720703, 0.14719319343566895, -0.2640032172203064, 0.25811636447906494, -0.1581692099571228, 0.15857338905334473, 0.12852872908115387, 0.38422688841819763, 0.0633041113615036, -0.2160656750202179, 0.319385826587677, -0.1347646415233612 ]
https://github.com/huggingface/datasets/issues/2645
load_dataset processing failed with OS error after downloading a dataset
Hi ! It looks like an issue with pytorch. Could you try to run `import torch` and see if it raises an error ?
## Describe the bug After downloading a dataset like opus100, there is a bug that OSError: Cannot find data file. Original error: dlopen: cannot load any more object with static TLS ## Steps to reproduce the bug ```python from datasets import load_dataset this_dataset = load_dataset('opus100', 'af-en') ``` ## Expected results there is no error when running load_dataset. ## Actual results Specify the actual results or traceback. Traceback (most recent call last): File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 652, in _download_and_prep self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 989, in _prepare_split example = self.info.features.encode_example(record) File "/home/anaconda3/lib/python3.6/site-packages/datasets/features.py", line 952, in encode_example example = cast_to_python_objects(example) File "/home/anaconda3/lib/python3.6/site-packages/datasets/features.py", line 219, in cast_to_python_ob return _cast_to_python_objects(obj)[0] File "/home/anaconda3/lib/python3.6/site-packages/datasets/features.py", line 165, in _cast_to_python_o import torch File "/home/anaconda3/lib/python3.6/site-packages/torch/__init__.py", line 188, in <module> _load_global_deps() File "/home/anaconda3/lib/python3.6/site-packages/torch/__init__.py", line 141, in _load_global_deps ctypes.CDLL(lib_path, mode=ctypes.RTLD_GLOBAL) File "/home/anaconda3/lib/python3.6/ctypes/__init__.py", line 348, in __init__ self._handle = _dlopen(self._name, mode) OSError: dlopen: cannot load any more object with static TLS During handling of the above exception, another exception occurred: Traceback (most recent call last): File "download_hub_opus100.py", line 9, in <module> this_dataset = load_dataset('opus100', language_pair) File "/home/anaconda3/lib/python3.6/site-packages/datasets/load.py", line 748, in load_dataset use_auth_token=use_auth_token, File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 575, in download_and_prepa dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 658, in _download_and_prep + str(e) OSError: Cannot find data file. Original error: dlopen: cannot load any more object with static TLS ## Environment info - `datasets` version: 1.8.0 - Platform: Linux-3.13.0-32-generic-x86_64-with-debian-jessie-sid - Python version: 3.6.6 - PyArrow version: 3.0.0
24
load_dataset processing failed with OS error after downloading a dataset ## Describe the bug After downloading a dataset like opus100, there is a bug that OSError: Cannot find data file. Original error: dlopen: cannot load any more object with static TLS ## Steps to reproduce the bug ```python from datasets import load_dataset this_dataset = load_dataset('opus100', 'af-en') ``` ## Expected results there is no error when running load_dataset. ## Actual results Specify the actual results or traceback. Traceback (most recent call last): File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 652, in _download_and_prep self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 989, in _prepare_split example = self.info.features.encode_example(record) File "/home/anaconda3/lib/python3.6/site-packages/datasets/features.py", line 952, in encode_example example = cast_to_python_objects(example) File "/home/anaconda3/lib/python3.6/site-packages/datasets/features.py", line 219, in cast_to_python_ob return _cast_to_python_objects(obj)[0] File "/home/anaconda3/lib/python3.6/site-packages/datasets/features.py", line 165, in _cast_to_python_o import torch File "/home/anaconda3/lib/python3.6/site-packages/torch/__init__.py", line 188, in <module> _load_global_deps() File "/home/anaconda3/lib/python3.6/site-packages/torch/__init__.py", line 141, in _load_global_deps ctypes.CDLL(lib_path, mode=ctypes.RTLD_GLOBAL) File "/home/anaconda3/lib/python3.6/ctypes/__init__.py", line 348, in __init__ self._handle = _dlopen(self._name, mode) OSError: dlopen: cannot load any more object with static TLS During handling of the above exception, another exception occurred: Traceback (most recent call last): File "download_hub_opus100.py", line 9, in <module> this_dataset = load_dataset('opus100', language_pair) File "/home/anaconda3/lib/python3.6/site-packages/datasets/load.py", line 748, in load_dataset use_auth_token=use_auth_token, File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 575, in download_and_prepa dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 658, in _download_and_prep + str(e) OSError: Cannot find data file. Original error: dlopen: cannot load any more object with static TLS ## Environment info - `datasets` version: 1.8.0 - Platform: Linux-3.13.0-32-generic-x86_64-with-debian-jessie-sid - Python version: 3.6.6 - PyArrow version: 3.0.0 Hi ! It looks like an issue with pytorch. Could you try to run `import torch` and see if it raises an error ?
[ -0.4430501461029053, 0.2031196504831314, -0.04543613642454147, 0.48477545380592346, 0.30398207902908325, -0.0233756173402071, 0.23496906459331512, 0.3660460412502289, -0.10822874307632446, 0.09275264292955399, -0.16256912052631378, 0.4678145945072174, -0.007434893399477005, -0.08360837399959564, -0.01741691306233406, -0.13232527673244476, 0.03872225806117058, 0.27786436676979065, -0.6045761704444885, -0.04826763644814491, -0.43124669790267944, 0.31153780221939087, -0.10302940011024475, -0.09901594370603561, 0.037861187011003494, 0.07491328567266464, -0.19062982499599457, 0.3197152018547058, -0.09478860348463058, -0.26025065779685974, -0.020933430641889572, -0.1710367351770401, 0.2840122580528259, 0.5108675360679626, -0.00011839857324957848, 0.29027435183525085, 0.09254612028598785, -0.09077131748199463, -0.40238749980926514, -0.11114546656608582, -0.08325859904289246, -0.10315969586372375, 0.1482376605272293, -0.3790363073348999, -0.042458854615688324, -0.21750032901763916, -0.028211122378706932, -0.5162993669509888, 0.21042078733444214, 0.33793359994888306, 0.17462164163589478, 0.3742225170135498, 0.29021403193473816, -0.14841195940971375, 0.2540624439716339, -0.028348391875624657, -0.04140767455101013, 0.04845535382628441, 0.15569539368152618, -0.05658094212412834, 0.06519612669944763, 0.2920297384262085, -0.1614060401916504, 0.14696408808231354, 0.20899048447608948, 0.05813625827431679, 0.2701869308948517, -0.3370184898376465, 0.35683703422546387, 0.15774427354335785, 0.5403918027877808, -0.028047144412994385, -0.33318614959716797, -0.18784844875335693, 0.01304937619715929, -0.429811030626297, 0.24357792735099792, 0.22146061062812805, -0.02859118953347206, 0.08683493733406067, 0.14127449691295624, -0.1238945946097374, -0.09403392672538757, 0.30540192127227783, -0.04206037148833275, 0.200121209025383, -0.05761865898966789, -0.05916386470198631, 0.06311535835266113, 0.22395847737789154, 0.27935194969177246, 0.04977966845035553, -0.010078161023557186, 0.31725743412971497, -0.4745253026485443, 0.17731007933616638, 0.17190028727054596, 0.004030511248856783, 0.09337092190980911, -0.06502772122621536, 0.10361328721046448, -0.23186251521110535, -0.023011017590761185, -0.07365362346172333, 0.20525240898132324, 0.04714711755514145, -0.2928021550178528, -0.19846943020820618, 0.1404685229063034, 0.06259290128946304, -0.18181635439395905, -0.09568474441766739, -0.19329272210597992, -0.3410634398460388, 0.07598521560430527, 0.13471615314483643, 0.5756460428237915, -0.1788666993379593, -0.35670536756515503, -0.05379430949687958, -0.18812331557273865, -0.053214773535728455, 0.10692331194877625, 0.289192795753479, -0.06075562164187431, 0.42051535844802856, 0.2440236508846283, 0.1303144246339798, -0.3833310306072235, 0.015702765434980392, -0.11939696222543716, -0.2396056056022644, -0.17519040405750275, -0.018225809559226036, 0.0644400417804718, -0.4865529239177704, 0.31543195247650146, 0.17321844398975372, -0.07354377210140228, -0.36237064003944397, 0.3777587413787842, -0.07942145317792892, -0.09546181559562683, 0.231108620762825, -0.0021410533227026463, -0.12617141008377075, 0.14796432852745056, -0.013793307356536388, 0.0977248102426529, 0.4053344130516052, -0.49590036273002625, -0.5249581933021545, -0.4787272810935974, 0.17132869362831116, -0.30533796548843384, 0.13985246419906616, 0.3070879578590393, -0.17518997192382812, 0.15074026584625244, -0.15448985993862152, -0.09859173744916916, -0.20918557047843933, -0.3328261971473694, -0.19358821213245392, 0.408157080411911, 0.4952767789363861, -0.3194480538368225, 0.05533457547426224, -0.2524329423904419, -0.18812714517116547, -0.10420218855142593, -0.02304668352007866, -0.0677802786231041, 0.38774386048316956, -0.5029059648513794, -0.26135826110839844, 0.28531721234321594, -0.44295188784599304, -0.6753493547439575, 0.029426733031868935, -0.2476944774389267, 0.042423468083143234, 0.3182738423347473, 0.0589965283870697, 0.3740205466747284, -0.009453605860471725, -0.13032212853431702, 0.21319414675235748, 0.13549092411994934, 0.01859835721552372, -0.14829657971858978, -0.14800994098186493, 0.045319169759750366, 0.24368755519390106, 0.07383453845977783, 0.07524045556783676, 0.12761327624320984, 0.11370635777711868, 0.2993845045566559, -0.1438608169555664, -0.18325485289096832, 0.10969296097755432, 0.2658593952655792, 0.13968798518180847, 0.24375545978546143, -0.08726950734853745, -0.4674578309059143, 0.0827426165342331, -0.05334996432065964, 0.03266735374927521, -0.2187165468931198, -0.04481295868754387, -0.1293058842420578, 0.09564317017793655, -0.2936308681964874, -0.3219188153743744, 0.07301808148622513, 0.1981947422027588, 0.006688285153359175, 0.015833377838134766, -0.08682575821876526, 0.3457706570625305, 0.11645133048295975, 0.16742978990077972, -0.25083664059638977, 0.3303534686565399, 0.12076675891876221, -0.0379178524017334, -0.08129143714904785, 0.32041314244270325, 0.04530619457364082, -0.21025004982948303, -0.27880439162254333, 0.45936667919158936, 0.14847996830940247, -0.022525984793901443, -0.09866084158420563, 0.17531809210777283, 0.23589664697647095, -0.26456525921821594, -0.09821809083223343, 0.04093726724386215, 0.2143254578113556, 0.07084416598081589, 0.10047833621501923, 0.004271108657121658, -0.10083901882171631, 0.13193830847740173, 0.1286810338497162, -0.004212620202451944, 0.05995503067970276, -0.2399791181087494, 0.03504881262779236, -0.09277908504009247, 0.3647743761539459, -0.010067314840853214, 0.3398684561252594, 0.11484189331531525, -0.24863538146018982, -0.11684086918830872, 0.44876357913017273, -0.04094909131526947, 0.22450794279575348, 0.10496901720762253, -0.21054962277412415, 0.23303554952144623, -0.058260899037122726, 0.1338372826576233, 0.7634179592132568, 0.11589258909225464, -0.30874189734458923, 0.030317077413201332, 0.15680459141731262, -0.05605935677886009, 0.30471500754356384, 0.21357768774032593, 0.5176041722297668, 0.4227156341075897, 0.05485501140356064, 0.2111869603395462, -0.10410792380571365, -0.43727102875709534, 0.1301833540201187, 0.242952361702919, -0.3268972337245941, -0.028236811980605125, -0.22753219306468964, -0.0035176470410078764, -0.174534410238266, -0.0063031394965946674, -0.19773975014686584, -0.1105286031961441, -0.0038942841347306967, 0.11990639567375183, -0.05413488298654556, 0.05216249078512192, -0.2768765985965729, 0.0833761990070343, 0.23966073989868164, -0.22750329971313477, 0.17650975286960602, -0.07878763973712921, -0.12283399701118469, -0.07989469915628433, 0.3425706923007965, -0.12984482944011688, 0.25657889246940613, -0.3259461522102356, 0.13476575911045074, -0.17519783973693848, -0.2120327651500702, 0.15609721839427948, 0.28709182143211365, 0.15855175256729126, 0.12684068083763123, 0.212009459733963, 0.17119599878787994, -0.2368268519639969, 0.2334580272436142, -0.12233339250087738, -0.055189572274684906, 0.11134573817253113, -0.012025064788758755, 0.2442091703414917, -0.04728981480002403, -0.4643702805042267, -0.34887731075286865, -0.48882633447647095, -0.08741609752178192, -0.06712831556797028, 0.2688058912754059, 0.19940230250358582, 0.12610194087028503, 0.26293879747390747, 0.2930872440338135, 0.047304436564445496, -0.019613992422819138, -0.18872253596782684, 0.21649818122386932, -0.30332422256469727, -0.21782027184963226, -0.2564584016799927, 0.07126826792955399, 0.2940009832382202, 0.03164782375097275, -0.6996409296989441, -0.36880379915237427, -0.09585966914892197, 0.1920548975467682, -0.47362226247787476, -0.02184089832007885, 0.22433367371559143, 0.0982547253370285, 0.023131946101784706, -0.3120465576648712, 0.08905376493930817, 0.08111903071403503, -0.15092842280864716, 0.2234877645969391, -0.10417497158050537, 0.45055559277534485, -0.2182898074388504, 0.5835212469100952, -0.0896608978509903, -0.2326279580593109, 0.49435660243034363, -0.15221652388572693, 0.35611677169799805, -0.1552247852087021, -0.2526458501815796, -0.20445369184017181, -0.09172745048999786, 0.01184116955846548, 0.29499945044517517, 0.0903792604804039, 0.00965100061148405, -0.26924803853034973, 0.020411837846040726, -0.4474090039730072, -0.21610265970230103, 0.13285525143146515, -0.10353324562311172, 0.2543562948703766, -0.0747547522187233, 0.2682155668735504, -0.1886684000492096, -0.08505497872829437, 0.11541085690259933, 0.27353495359420776, 0.11695107072591782, -0.042716749012470245, 0.006860148627310991, -0.04283000901341438, -0.11970383673906326, 0.24232834577560425, -0.16726435720920563, 0.3011178970336914, -0.039649173617362976, -0.10389313846826553, 0.01681249774992466, 0.0017574286321178079, 0.8671809434890747, 0.16163399815559387, 0.06117572635412216, 0.07444965839385986, 0.0017683429177850485, -0.20961235463619232, -0.1531897336244583, -0.048699937760829926, 0.5598670840263367, 0.47524741291999817, 0.6100466847419739, -0.13610373437404633, -0.20626260340213776, 0.19899412989616394, 0.24311599135398865, -0.09537418186664581, -0.43674954771995544, -0.32781872153282166, -0.33208268880844116, -0.26505666971206665, -0.056036632508039474, -0.05219137296080589, 0.45726722478866577, -0.19830010831356049, 0.020834501832723618, -0.17824216187000275, -0.40051642060279846, -0.11744880676269531, 0.07239773869514465, 0.40807172656059265, -0.04514576122164726, 0.3436600863933563, 0.19632208347320557, 0.3403640687465668, 0.30593031644821167, 0.6303960680961609, -0.1995367556810379, -0.5900693535804749, 0.3027576208114624, -0.1965072751045227, 0.06575965881347656, 0.14682848751544952, -0.05962030217051506, -0.11455150693655014, 0.0031645905692130327, 0.18440507352352142, -0.09195955842733383, 0.009286545217037201, 0.23381581902503967, 0.03459379822015762, -0.3580455183982849, -0.3023238480091095, 0.35594555735588074, -0.025090450420975685, 0.0034083856735378504, 0.33424872159957886, -0.24283923208713531, -0.15916669368743896, 0.5583694577217102, -0.022191697731614113, 0.8753305077552795, -0.19544455409049988, -0.04615464434027672, 0.033942122012376785, -0.2444017082452774, 0.7470533847808838, -0.44424235820770264, 0.13048167526721954, -0.309565931558609, -0.38407430052757263, 0.04184119030833244, -0.2273295819759369, 0.19170062243938446, 0.012624205090105534, -0.15387675166130066, 0.10415326058864594, -0.1464485079050064, 0.12133362889289856, 0.16882295906543732, 0.35859060287475586, -0.1928757280111313, -0.15478192269802094, -0.20132002234458923, -0.006766078062355518, 0.07250003516674042, 0.4714585840702057, -0.15762725472450256, -0.2567611038684845, -0.18169087171554565, -0.02512943372130394, -0.058086588978767395, 0.182036891579628, -0.5054660439491272, 0.26357537508010864, -0.03943462297320366, -0.5898028016090393, 0.0116448774933815, 0.7242993116378784, 0.000002103102588080219, 0.10093016922473907, -0.09026346355676651, 0.27223363518714905, 0.1893349438905716, 0.008151109330356121, 0.2704314589500427, -0.09077320247888565, 0.2482924908399582, -0.07753928750753403, -0.18948529660701752, 0.06359346210956573, -0.22812950611114502, -0.2401605099439621, 0.44696977734565735, -0.0698915347456932, 0.3370923399925232, -0.24193957448005676, -0.1958489716053009, -0.18468032777309418, -0.0030678308103233576, -0.1061994731426239, 0.0852934792637825, 0.08610743284225464, -0.2696993052959442, 0.003232151037082076, -0.17891374230384827, -0.41704291105270386, -0.030386943370103836, 0.34359896183013916, -0.10276775062084198, 0.19585901498794556, 0.5353898406028748, 0.24962297081947327, 0.07004697620868683, -0.1286618560552597, 0.08761351555585861, -0.07888257503509521, -0.8638370633125305, 0.0030894840601831675, 0.13294270634651184, 0.1910303384065628, -0.13249631226062775, -0.38800132274627686, -0.04160859435796738, 0.024645142257213593, -0.25920119881629944, -0.8063878417015076, -0.12798692286014557, 0.0003277437062934041, -0.05551360920071602, 0.12090592831373215, 0.012571937404572964, 0.18140031397342682, -0.1055716723203659, -0.12669198215007782, -0.2139291763305664, 0.11383660137653351, -0.0415835827589035, -0.03509009629487991, 0.20873740315437317, -0.026192113757133484, 0.052215006202459335, -0.1148366630077362, 0.12241322547197342, 0.13228127360343933, -0.054590534418821335, -0.15929803252220154, -0.19863729178905487, 0.19145946204662323, -0.1697370558977127, -0.19016334414482117, -0.06949859112501144, -0.26038748025894165, -0.08234643936157227, -0.030807264149188995, 0.13417068123817444, -0.12804026901721954, -0.1342075914144516, -0.18077504634857178, 0.05295401066541672, 0.1350380778312683, -0.25873517990112305, 0.301479697227478, -0.1523778736591339, 0.15339811146259308, -0.04651710018515587, 0.34444189071655273, -0.12781815230846405, 0.060122691094875336, -0.283170610666275, -0.21503405272960663, -0.0194683987647295, 0.05413060262799263, 0.292199045419693, -0.261203795671463, 0.04374276474118233, 0.23450680077075958, 0.0612109899520874, 0.23893772065639496, -0.22383694350719452, 0.04803452268242836, 0.15480513870716095, 0.21381737291812897, -0.20071719586849213, 0.04651212692260742, 0.22981031239032745, 0.22547653317451477, -0.01679861918091774, 0.12261863797903061, 0.12258519977331161, -0.06048524007201195, -0.029884422197937965, 0.07910668104887009, 0.2626872956752777, 0.4071723520755768, 0.3707689046859741, 0.8125104308128357, 0.03199130296707153, 0.22672830522060394, -0.16816872358322144, -0.2003171592950821, -0.013750900514423847, 0.5678646564483643, -0.1570243090391159, 0.14884161949157715, 0.1619776338338852, 0.1495593935251236, 0.0736275389790535, -0.4403558671474457, -0.1011141985654831, -0.054724592715501785, -0.017109552398324013, 0.17525888979434967, -0.2550029754638672, 0.5106300115585327, -0.22628425061702728, 0.0769670158624649, -0.25330477952957153, 0.3183324337005615, -0.10501087456941605, 0.08239767700433731, -0.06454186886548996, -0.17114177346229553, 0.15845362842082977, 0.06100350245833397, -0.009204769507050514, 0.04081866145133972, -0.2774719297885895, 0.22813060879707336, -0.25493156909942627, -0.1301790475845337, -0.31340450048446655, 0.3595227599143982, -0.05395084619522095, -0.1707005500793457, 0.3595724403858185, 0.30495932698249817, 0.17471826076507568, 0.18919937312602997, 0.36371394991874695, 0.48313578963279724, 0.45031851530075073, -0.32251057028770447, 0.03588759899139404, 0.1269647777080536, 0.08912172168493271, -0.023631740361452103, -0.006764903198927641, 0.01396870519965887, 0.2668420076370239, 0.3173694610595703, 0.06361520290374756, -0.16357974708080292, 0.050705574452877045, 0.02744828723371029, 0.18043152987957, -0.25322750210762024, -0.026646969839930534, -0.036783091723918915, -0.17808747291564941, -0.11434313654899597, 0.0704004094004631, -0.22778379917144775, -0.1253746747970581, 0.35111871361732483, -0.04951249063014984, -0.002005618764087558, 0.0596436932682991, 0.021805452182888985, -0.25923973321914673, 0.3652290999889374, 0.21829316020011902, 0.5810964703559875, -0.2674713134765625, -0.21735742688179016, -0.6972262859344482, 0.37477797269821167, -0.019284648820757866, -0.2902255654335022, 0.21666987240314484, -0.06114453822374344, -0.03554471954703331, 0.15558193624019623, 0.35504743456840515, -0.0920131579041481, 0.3595956563949585, 0.2411307692527771, -0.48582831025123596, -0.33351850509643555, -0.4250917136669159, 0.20828624069690704, -0.05540131404995918, -0.43264591693878174, 0.07480376213788986, 0.035240765661001205, 0.0519152395427227, -0.19041578471660614, -0.1346188634634018, -0.024872153997421265, -0.07959933578968048, 0.4432128071784973, -0.004205415956676006, 0.4430548846721649, -0.08528285473585129, -0.05739056318998337, 0.003982699476182461, -0.17294862866401672, -0.13894006609916687, 0.16092979907989502, 0.32594314217567444, 0.06456960737705231, -0.1252213567495346, -0.3071175813674927, -0.29258906841278076, 0.41479191184043884, -0.06716374307870865, 0.35461562871932983, -0.3536362648010254, 0.09400549530982971, -0.12472765147686005, 0.06841995567083359, 0.29276615381240845, 0.18029843270778656, -0.15068991482257843, 0.15510761737823486, -0.25952836871147156, -0.18466930091381073, 0.41246116161346436, -0.6139752864837646, 0.06592871248722076, -0.061922620981931686, 0.35004737973213196, 0.03162321075797081, 0.14756561815738678, -0.361076682806015, 0.07412803918123245, 0.44866982102394104, 0.03582030162215233, -0.30805420875549316, -0.003214561380445957, 0.11850281804800034, 0.17007938027381897, 0.0924641564488411, 0.3108469247817993, -0.04263077676296234, -0.3124412000179291, 0.08733689785003662, -0.12599636614322662 ]
https://github.com/huggingface/datasets/issues/2645
load_dataset processing failed with OS error after downloading a dataset
> Hi ! It looks like an issue with pytorch. > > Could you try to run `import torch` and see if it raises an error ? It works. Thank you!
## Describe the bug After downloading a dataset like opus100, there is a bug that OSError: Cannot find data file. Original error: dlopen: cannot load any more object with static TLS ## Steps to reproduce the bug ```python from datasets import load_dataset this_dataset = load_dataset('opus100', 'af-en') ``` ## Expected results there is no error when running load_dataset. ## Actual results Specify the actual results or traceback. Traceback (most recent call last): File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 652, in _download_and_prep self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 989, in _prepare_split example = self.info.features.encode_example(record) File "/home/anaconda3/lib/python3.6/site-packages/datasets/features.py", line 952, in encode_example example = cast_to_python_objects(example) File "/home/anaconda3/lib/python3.6/site-packages/datasets/features.py", line 219, in cast_to_python_ob return _cast_to_python_objects(obj)[0] File "/home/anaconda3/lib/python3.6/site-packages/datasets/features.py", line 165, in _cast_to_python_o import torch File "/home/anaconda3/lib/python3.6/site-packages/torch/__init__.py", line 188, in <module> _load_global_deps() File "/home/anaconda3/lib/python3.6/site-packages/torch/__init__.py", line 141, in _load_global_deps ctypes.CDLL(lib_path, mode=ctypes.RTLD_GLOBAL) File "/home/anaconda3/lib/python3.6/ctypes/__init__.py", line 348, in __init__ self._handle = _dlopen(self._name, mode) OSError: dlopen: cannot load any more object with static TLS During handling of the above exception, another exception occurred: Traceback (most recent call last): File "download_hub_opus100.py", line 9, in <module> this_dataset = load_dataset('opus100', language_pair) File "/home/anaconda3/lib/python3.6/site-packages/datasets/load.py", line 748, in load_dataset use_auth_token=use_auth_token, File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 575, in download_and_prepa dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 658, in _download_and_prep + str(e) OSError: Cannot find data file. Original error: dlopen: cannot load any more object with static TLS ## Environment info - `datasets` version: 1.8.0 - Platform: Linux-3.13.0-32-generic-x86_64-with-debian-jessie-sid - Python version: 3.6.6 - PyArrow version: 3.0.0
31
load_dataset processing failed with OS error after downloading a dataset ## Describe the bug After downloading a dataset like opus100, there is a bug that OSError: Cannot find data file. Original error: dlopen: cannot load any more object with static TLS ## Steps to reproduce the bug ```python from datasets import load_dataset this_dataset = load_dataset('opus100', 'af-en') ``` ## Expected results there is no error when running load_dataset. ## Actual results Specify the actual results or traceback. Traceback (most recent call last): File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 652, in _download_and_prep self._prepare_split(split_generator, **prepare_split_kwargs) File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 989, in _prepare_split example = self.info.features.encode_example(record) File "/home/anaconda3/lib/python3.6/site-packages/datasets/features.py", line 952, in encode_example example = cast_to_python_objects(example) File "/home/anaconda3/lib/python3.6/site-packages/datasets/features.py", line 219, in cast_to_python_ob return _cast_to_python_objects(obj)[0] File "/home/anaconda3/lib/python3.6/site-packages/datasets/features.py", line 165, in _cast_to_python_o import torch File "/home/anaconda3/lib/python3.6/site-packages/torch/__init__.py", line 188, in <module> _load_global_deps() File "/home/anaconda3/lib/python3.6/site-packages/torch/__init__.py", line 141, in _load_global_deps ctypes.CDLL(lib_path, mode=ctypes.RTLD_GLOBAL) File "/home/anaconda3/lib/python3.6/ctypes/__init__.py", line 348, in __init__ self._handle = _dlopen(self._name, mode) OSError: dlopen: cannot load any more object with static TLS During handling of the above exception, another exception occurred: Traceback (most recent call last): File "download_hub_opus100.py", line 9, in <module> this_dataset = load_dataset('opus100', language_pair) File "/home/anaconda3/lib/python3.6/site-packages/datasets/load.py", line 748, in load_dataset use_auth_token=use_auth_token, File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 575, in download_and_prepa dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs File "/home/anaconda3/lib/python3.6/site-packages/datasets/builder.py", line 658, in _download_and_prep + str(e) OSError: Cannot find data file. Original error: dlopen: cannot load any more object with static TLS ## Environment info - `datasets` version: 1.8.0 - Platform: Linux-3.13.0-32-generic-x86_64-with-debian-jessie-sid - Python version: 3.6.6 - PyArrow version: 3.0.0 > Hi ! It looks like an issue with pytorch. > > Could you try to run `import torch` and see if it raises an error ? It works. Thank you!
[ -0.4430501461029053, 0.2031196504831314, -0.04543613642454147, 0.48477545380592346, 0.30398207902908325, -0.0233756173402071, 0.23496906459331512, 0.3660460412502289, -0.10822874307632446, 0.09275264292955399, -0.16256912052631378, 0.4678145945072174, -0.007434893399477005, -0.08360837399959564, -0.01741691306233406, -0.13232527673244476, 0.03872225806117058, 0.27786436676979065, -0.6045761704444885, -0.04826763644814491, -0.43124669790267944, 0.31153780221939087, -0.10302940011024475, -0.09901594370603561, 0.037861187011003494, 0.07491328567266464, -0.19062982499599457, 0.3197152018547058, -0.09478860348463058, -0.26025065779685974, -0.020933430641889572, -0.1710367351770401, 0.2840122580528259, 0.5108675360679626, -0.00011839857324957848, 0.29027435183525085, 0.09254612028598785, -0.09077131748199463, -0.40238749980926514, -0.11114546656608582, -0.08325859904289246, -0.10315969586372375, 0.1482376605272293, -0.3790363073348999, -0.042458854615688324, -0.21750032901763916, -0.028211122378706932, -0.5162993669509888, 0.21042078733444214, 0.33793359994888306, 0.17462164163589478, 0.3742225170135498, 0.29021403193473816, -0.14841195940971375, 0.2540624439716339, -0.028348391875624657, -0.04140767455101013, 0.04845535382628441, 0.15569539368152618, -0.05658094212412834, 0.06519612669944763, 0.2920297384262085, -0.1614060401916504, 0.14696408808231354, 0.20899048447608948, 0.05813625827431679, 0.2701869308948517, -0.3370184898376465, 0.35683703422546387, 0.15774427354335785, 0.5403918027877808, -0.028047144412994385, -0.33318614959716797, -0.18784844875335693, 0.01304937619715929, -0.429811030626297, 0.24357792735099792, 0.22146061062812805, -0.02859118953347206, 0.08683493733406067, 0.14127449691295624, -0.1238945946097374, -0.09403392672538757, 0.30540192127227783, -0.04206037148833275, 0.200121209025383, -0.05761865898966789, -0.05916386470198631, 0.06311535835266113, 0.22395847737789154, 0.27935194969177246, 0.04977966845035553, -0.010078161023557186, 0.31725743412971497, -0.4745253026485443, 0.17731007933616638, 0.17190028727054596, 0.004030511248856783, 0.09337092190980911, -0.06502772122621536, 0.10361328721046448, -0.23186251521110535, -0.023011017590761185, -0.07365362346172333, 0.20525240898132324, 0.04714711755514145, -0.2928021550178528, -0.19846943020820618, 0.1404685229063034, 0.06259290128946304, -0.18181635439395905, -0.09568474441766739, -0.19329272210597992, -0.3410634398460388, 0.07598521560430527, 0.13471615314483643, 0.5756460428237915, -0.1788666993379593, -0.35670536756515503, -0.05379430949687958, -0.18812331557273865, -0.053214773535728455, 0.10692331194877625, 0.289192795753479, -0.06075562164187431, 0.42051535844802856, 0.2440236508846283, 0.1303144246339798, -0.3833310306072235, 0.015702765434980392, -0.11939696222543716, -0.2396056056022644, -0.17519040405750275, -0.018225809559226036, 0.0644400417804718, -0.4865529239177704, 0.31543195247650146, 0.17321844398975372, -0.07354377210140228, -0.36237064003944397, 0.3777587413787842, -0.07942145317792892, -0.09546181559562683, 0.231108620762825, -0.0021410533227026463, -0.12617141008377075, 0.14796432852745056, -0.013793307356536388, 0.0977248102426529, 0.4053344130516052, -0.49590036273002625, -0.5249581933021545, -0.4787272810935974, 0.17132869362831116, -0.30533796548843384, 0.13985246419906616, 0.3070879578590393, -0.17518997192382812, 0.15074026584625244, -0.15448985993862152, -0.09859173744916916, -0.20918557047843933, -0.3328261971473694, -0.19358821213245392, 0.408157080411911, 0.4952767789363861, -0.3194480538368225, 0.05533457547426224, -0.2524329423904419, -0.18812714517116547, -0.10420218855142593, -0.02304668352007866, -0.0677802786231041, 0.38774386048316956, -0.5029059648513794, -0.26135826110839844, 0.28531721234321594, -0.44295188784599304, -0.6753493547439575, 0.029426733031868935, -0.2476944774389267, 0.042423468083143234, 0.3182738423347473, 0.0589965283870697, 0.3740205466747284, -0.009453605860471725, -0.13032212853431702, 0.21319414675235748, 0.13549092411994934, 0.01859835721552372, -0.14829657971858978, -0.14800994098186493, 0.045319169759750366, 0.24368755519390106, 0.07383453845977783, 0.07524045556783676, 0.12761327624320984, 0.11370635777711868, 0.2993845045566559, -0.1438608169555664, -0.18325485289096832, 0.10969296097755432, 0.2658593952655792, 0.13968798518180847, 0.24375545978546143, -0.08726950734853745, -0.4674578309059143, 0.0827426165342331, -0.05334996432065964, 0.03266735374927521, -0.2187165468931198, -0.04481295868754387, -0.1293058842420578, 0.09564317017793655, -0.2936308681964874, -0.3219188153743744, 0.07301808148622513, 0.1981947422027588, 0.006688285153359175, 0.015833377838134766, -0.08682575821876526, 0.3457706570625305, 0.11645133048295975, 0.16742978990077972, -0.25083664059638977, 0.3303534686565399, 0.12076675891876221, -0.0379178524017334, -0.08129143714904785, 0.32041314244270325, 0.04530619457364082, -0.21025004982948303, -0.27880439162254333, 0.45936667919158936, 0.14847996830940247, -0.022525984793901443, -0.09866084158420563, 0.17531809210777283, 0.23589664697647095, -0.26456525921821594, -0.09821809083223343, 0.04093726724386215, 0.2143254578113556, 0.07084416598081589, 0.10047833621501923, 0.004271108657121658, -0.10083901882171631, 0.13193830847740173, 0.1286810338497162, -0.004212620202451944, 0.05995503067970276, -0.2399791181087494, 0.03504881262779236, -0.09277908504009247, 0.3647743761539459, -0.010067314840853214, 0.3398684561252594, 0.11484189331531525, -0.24863538146018982, -0.11684086918830872, 0.44876357913017273, -0.04094909131526947, 0.22450794279575348, 0.10496901720762253, -0.21054962277412415, 0.23303554952144623, -0.058260899037122726, 0.1338372826576233, 0.7634179592132568, 0.11589258909225464, -0.30874189734458923, 0.030317077413201332, 0.15680459141731262, -0.05605935677886009, 0.30471500754356384, 0.21357768774032593, 0.5176041722297668, 0.4227156341075897, 0.05485501140356064, 0.2111869603395462, -0.10410792380571365, -0.43727102875709534, 0.1301833540201187, 0.242952361702919, -0.3268972337245941, -0.028236811980605125, -0.22753219306468964, -0.0035176470410078764, -0.174534410238266, -0.0063031394965946674, -0.19773975014686584, -0.1105286031961441, -0.0038942841347306967, 0.11990639567375183, -0.05413488298654556, 0.05216249078512192, -0.2768765985965729, 0.0833761990070343, 0.23966073989868164, -0.22750329971313477, 0.17650975286960602, -0.07878763973712921, -0.12283399701118469, -0.07989469915628433, 0.3425706923007965, -0.12984482944011688, 0.25657889246940613, -0.3259461522102356, 0.13476575911045074, -0.17519783973693848, -0.2120327651500702, 0.15609721839427948, 0.28709182143211365, 0.15855175256729126, 0.12684068083763123, 0.212009459733963, 0.17119599878787994, -0.2368268519639969, 0.2334580272436142, -0.12233339250087738, -0.055189572274684906, 0.11134573817253113, -0.012025064788758755, 0.2442091703414917, -0.04728981480002403, -0.4643702805042267, -0.34887731075286865, -0.48882633447647095, -0.08741609752178192, -0.06712831556797028, 0.2688058912754059, 0.19940230250358582, 0.12610194087028503, 0.26293879747390747, 0.2930872440338135, 0.047304436564445496, -0.019613992422819138, -0.18872253596782684, 0.21649818122386932, -0.30332422256469727, -0.21782027184963226, -0.2564584016799927, 0.07126826792955399, 0.2940009832382202, 0.03164782375097275, -0.6996409296989441, -0.36880379915237427, -0.09585966914892197, 0.1920548975467682, -0.47362226247787476, -0.02184089832007885, 0.22433367371559143, 0.0982547253370285, 0.023131946101784706, -0.3120465576648712, 0.08905376493930817, 0.08111903071403503, -0.15092842280864716, 0.2234877645969391, -0.10417497158050537, 0.45055559277534485, -0.2182898074388504, 0.5835212469100952, -0.0896608978509903, -0.2326279580593109, 0.49435660243034363, -0.15221652388572693, 0.35611677169799805, -0.1552247852087021, -0.2526458501815796, -0.20445369184017181, -0.09172745048999786, 0.01184116955846548, 0.29499945044517517, 0.0903792604804039, 0.00965100061148405, -0.26924803853034973, 0.020411837846040726, -0.4474090039730072, -0.21610265970230103, 0.13285525143146515, -0.10353324562311172, 0.2543562948703766, -0.0747547522187233, 0.2682155668735504, -0.1886684000492096, -0.08505497872829437, 0.11541085690259933, 0.27353495359420776, 0.11695107072591782, -0.042716749012470245, 0.006860148627310991, -0.04283000901341438, -0.11970383673906326, 0.24232834577560425, -0.16726435720920563, 0.3011178970336914, -0.039649173617362976, -0.10389313846826553, 0.01681249774992466, 0.0017574286321178079, 0.8671809434890747, 0.16163399815559387, 0.06117572635412216, 0.07444965839385986, 0.0017683429177850485, -0.20961235463619232, -0.1531897336244583, -0.048699937760829926, 0.5598670840263367, 0.47524741291999817, 0.6100466847419739, -0.13610373437404633, -0.20626260340213776, 0.19899412989616394, 0.24311599135398865, -0.09537418186664581, -0.43674954771995544, -0.32781872153282166, -0.33208268880844116, -0.26505666971206665, -0.056036632508039474, -0.05219137296080589, 0.45726722478866577, -0.19830010831356049, 0.020834501832723618, -0.17824216187000275, -0.40051642060279846, -0.11744880676269531, 0.07239773869514465, 0.40807172656059265, -0.04514576122164726, 0.3436600863933563, 0.19632208347320557, 0.3403640687465668, 0.30593031644821167, 0.6303960680961609, -0.1995367556810379, -0.5900693535804749, 0.3027576208114624, -0.1965072751045227, 0.06575965881347656, 0.14682848751544952, -0.05962030217051506, -0.11455150693655014, 0.0031645905692130327, 0.18440507352352142, -0.09195955842733383, 0.009286545217037201, 0.23381581902503967, 0.03459379822015762, -0.3580455183982849, -0.3023238480091095, 0.35594555735588074, -0.025090450420975685, 0.0034083856735378504, 0.33424872159957886, -0.24283923208713531, -0.15916669368743896, 0.5583694577217102, -0.022191697731614113, 0.8753305077552795, -0.19544455409049988, -0.04615464434027672, 0.033942122012376785, -0.2444017082452774, 0.7470533847808838, -0.44424235820770264, 0.13048167526721954, -0.309565931558609, -0.38407430052757263, 0.04184119030833244, -0.2273295819759369, 0.19170062243938446, 0.012624205090105534, -0.15387675166130066, 0.10415326058864594, -0.1464485079050064, 0.12133362889289856, 0.16882295906543732, 0.35859060287475586, -0.1928757280111313, -0.15478192269802094, -0.20132002234458923, -0.006766078062355518, 0.07250003516674042, 0.4714585840702057, -0.15762725472450256, -0.2567611038684845, -0.18169087171554565, -0.02512943372130394, -0.058086588978767395, 0.182036891579628, -0.5054660439491272, 0.26357537508010864, -0.03943462297320366, -0.5898028016090393, 0.0116448774933815, 0.7242993116378784, 0.000002103102588080219, 0.10093016922473907, -0.09026346355676651, 0.27223363518714905, 0.1893349438905716, 0.008151109330356121, 0.2704314589500427, -0.09077320247888565, 0.2482924908399582, -0.07753928750753403, -0.18948529660701752, 0.06359346210956573, -0.22812950611114502, -0.2401605099439621, 0.44696977734565735, -0.0698915347456932, 0.3370923399925232, -0.24193957448005676, -0.1958489716053009, -0.18468032777309418, -0.0030678308103233576, -0.1061994731426239, 0.0852934792637825, 0.08610743284225464, -0.2696993052959442, 0.003232151037082076, -0.17891374230384827, -0.41704291105270386, -0.030386943370103836, 0.34359896183013916, -0.10276775062084198, 0.19585901498794556, 0.5353898406028748, 0.24962297081947327, 0.07004697620868683, -0.1286618560552597, 0.08761351555585861, -0.07888257503509521, -0.8638370633125305, 0.0030894840601831675, 0.13294270634651184, 0.1910303384065628, -0.13249631226062775, -0.38800132274627686, -0.04160859435796738, 0.024645142257213593, -0.25920119881629944, -0.8063878417015076, -0.12798692286014557, 0.0003277437062934041, -0.05551360920071602, 0.12090592831373215, 0.012571937404572964, 0.18140031397342682, -0.1055716723203659, -0.12669198215007782, -0.2139291763305664, 0.11383660137653351, -0.0415835827589035, -0.03509009629487991, 0.20873740315437317, -0.026192113757133484, 0.052215006202459335, -0.1148366630077362, 0.12241322547197342, 0.13228127360343933, -0.054590534418821335, -0.15929803252220154, -0.19863729178905487, 0.19145946204662323, -0.1697370558977127, -0.19016334414482117, -0.06949859112501144, -0.26038748025894165, -0.08234643936157227, -0.030807264149188995, 0.13417068123817444, -0.12804026901721954, -0.1342075914144516, -0.18077504634857178, 0.05295401066541672, 0.1350380778312683, -0.25873517990112305, 0.301479697227478, -0.1523778736591339, 0.15339811146259308, -0.04651710018515587, 0.34444189071655273, -0.12781815230846405, 0.060122691094875336, -0.283170610666275, -0.21503405272960663, -0.0194683987647295, 0.05413060262799263, 0.292199045419693, -0.261203795671463, 0.04374276474118233, 0.23450680077075958, 0.0612109899520874, 0.23893772065639496, -0.22383694350719452, 0.04803452268242836, 0.15480513870716095, 0.21381737291812897, -0.20071719586849213, 0.04651212692260742, 0.22981031239032745, 0.22547653317451477, -0.01679861918091774, 0.12261863797903061, 0.12258519977331161, -0.06048524007201195, -0.029884422197937965, 0.07910668104887009, 0.2626872956752777, 0.4071723520755768, 0.3707689046859741, 0.8125104308128357, 0.03199130296707153, 0.22672830522060394, -0.16816872358322144, -0.2003171592950821, -0.013750900514423847, 0.5678646564483643, -0.1570243090391159, 0.14884161949157715, 0.1619776338338852, 0.1495593935251236, 0.0736275389790535, -0.4403558671474457, -0.1011141985654831, -0.054724592715501785, -0.017109552398324013, 0.17525888979434967, -0.2550029754638672, 0.5106300115585327, -0.22628425061702728, 0.0769670158624649, -0.25330477952957153, 0.3183324337005615, -0.10501087456941605, 0.08239767700433731, -0.06454186886548996, -0.17114177346229553, 0.15845362842082977, 0.06100350245833397, -0.009204769507050514, 0.04081866145133972, -0.2774719297885895, 0.22813060879707336, -0.25493156909942627, -0.1301790475845337, -0.31340450048446655, 0.3595227599143982, -0.05395084619522095, -0.1707005500793457, 0.3595724403858185, 0.30495932698249817, 0.17471826076507568, 0.18919937312602997, 0.36371394991874695, 0.48313578963279724, 0.45031851530075073, -0.32251057028770447, 0.03588759899139404, 0.1269647777080536, 0.08912172168493271, -0.023631740361452103, -0.006764903198927641, 0.01396870519965887, 0.2668420076370239, 0.3173694610595703, 0.06361520290374756, -0.16357974708080292, 0.050705574452877045, 0.02744828723371029, 0.18043152987957, -0.25322750210762024, -0.026646969839930534, -0.036783091723918915, -0.17808747291564941, -0.11434313654899597, 0.0704004094004631, -0.22778379917144775, -0.1253746747970581, 0.35111871361732483, -0.04951249063014984, -0.002005618764087558, 0.0596436932682991, 0.021805452182888985, -0.25923973321914673, 0.3652290999889374, 0.21829316020011902, 0.5810964703559875, -0.2674713134765625, -0.21735742688179016, -0.6972262859344482, 0.37477797269821167, -0.019284648820757866, -0.2902255654335022, 0.21666987240314484, -0.06114453822374344, -0.03554471954703331, 0.15558193624019623, 0.35504743456840515, -0.0920131579041481, 0.3595956563949585, 0.2411307692527771, -0.48582831025123596, -0.33351850509643555, -0.4250917136669159, 0.20828624069690704, -0.05540131404995918, -0.43264591693878174, 0.07480376213788986, 0.035240765661001205, 0.0519152395427227, -0.19041578471660614, -0.1346188634634018, -0.024872153997421265, -0.07959933578968048, 0.4432128071784973, -0.004205415956676006, 0.4430548846721649, -0.08528285473585129, -0.05739056318998337, 0.003982699476182461, -0.17294862866401672, -0.13894006609916687, 0.16092979907989502, 0.32594314217567444, 0.06456960737705231, -0.1252213567495346, -0.3071175813674927, -0.29258906841278076, 0.41479191184043884, -0.06716374307870865, 0.35461562871932983, -0.3536362648010254, 0.09400549530982971, -0.12472765147686005, 0.06841995567083359, 0.29276615381240845, 0.18029843270778656, -0.15068991482257843, 0.15510761737823486, -0.25952836871147156, -0.18466930091381073, 0.41246116161346436, -0.6139752864837646, 0.06592871248722076, -0.061922620981931686, 0.35004737973213196, 0.03162321075797081, 0.14756561815738678, -0.361076682806015, 0.07412803918123245, 0.44866982102394104, 0.03582030162215233, -0.30805420875549316, -0.003214561380445957, 0.11850281804800034, 0.17007938027381897, 0.0924641564488411, 0.3108469247817993, -0.04263077676296234, -0.3124412000179291, 0.08733689785003662, -0.12599636614322662 ]
https://github.com/huggingface/datasets/issues/2644
Batched `map` not allowed to return 0 items
Hi ! Thanks for reporting. Indeed it looks like type inference makes it fail. We should probably just ignore this step until a non-empty batch is passed.
## Describe the bug I'm trying to use `map` to filter a large dataset by selecting rows that match an expensive condition (files referenced by one of the columns need to exist in the filesystem, so we have to `stat` them). According to [the documentation](https://huggingface.co/docs/datasets/processing.html#augmenting-the-dataset), `a batch mapped function can take as input a batch of size N and return a batch of size M where M can be greater or less than N and can even be zero`. However, when the returned batch has a size of zero (neither item in the batch fulfilled the condition), we get an `index out of bounds` error. I think that `arrow_writer.py` is [trying to infer the returned types using the first element returned](https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_writer.py#L100), but no elements were returned in this case. For this error to happen, I'm returning a dictionary that contains empty lists for the keys I want to keep, see below. If I return an empty dictionary instead (no keys), then a different error eventually occurs. ## Steps to reproduce the bug ```python def select_rows(examples): # `key` is a column name that exists in the original dataset # The following line simulates no matches found, so we return an empty batch result = {'key': []} return result filtered_dataset = dataset.map( select_rows, remove_columns = dataset.column_names, batched = True, num_proc = 1, desc = "Selecting rows with images that exist" ) ``` The code above immediately triggers the exception. If we use the following instead: ```python def select_rows(examples): # `key` is a column name that exists in the original dataset result = {'key': []} # or defaultdict or whatever # code to check for condition and append elements to result # some_items_found will be set to True if there were any matching elements in the batch return result if some_items_found else {} ``` Then it _seems_ to work, but it eventually fails with some sort of schema error. I believe it may happen when an empty batch is followed by a non-empty one, but haven't set up a test to verify it. In my opinion, returning a dictionary with empty lists and valid column names should be accepted as a valid result with zero items. ## Expected results The dataset would be filtered and only the matching fields would be returned. ## Actual results An exception is encountered, as described. Using a workaround makes it fail further along the line. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.1.dev0 - Platform: Linux-5.4.0-53-generic-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 4.0.1
27
Batched `map` not allowed to return 0 items ## Describe the bug I'm trying to use `map` to filter a large dataset by selecting rows that match an expensive condition (files referenced by one of the columns need to exist in the filesystem, so we have to `stat` them). According to [the documentation](https://huggingface.co/docs/datasets/processing.html#augmenting-the-dataset), `a batch mapped function can take as input a batch of size N and return a batch of size M where M can be greater or less than N and can even be zero`. However, when the returned batch has a size of zero (neither item in the batch fulfilled the condition), we get an `index out of bounds` error. I think that `arrow_writer.py` is [trying to infer the returned types using the first element returned](https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_writer.py#L100), but no elements were returned in this case. For this error to happen, I'm returning a dictionary that contains empty lists for the keys I want to keep, see below. If I return an empty dictionary instead (no keys), then a different error eventually occurs. ## Steps to reproduce the bug ```python def select_rows(examples): # `key` is a column name that exists in the original dataset # The following line simulates no matches found, so we return an empty batch result = {'key': []} return result filtered_dataset = dataset.map( select_rows, remove_columns = dataset.column_names, batched = True, num_proc = 1, desc = "Selecting rows with images that exist" ) ``` The code above immediately triggers the exception. If we use the following instead: ```python def select_rows(examples): # `key` is a column name that exists in the original dataset result = {'key': []} # or defaultdict or whatever # code to check for condition and append elements to result # some_items_found will be set to True if there were any matching elements in the batch return result if some_items_found else {} ``` Then it _seems_ to work, but it eventually fails with some sort of schema error. I believe it may happen when an empty batch is followed by a non-empty one, but haven't set up a test to verify it. In my opinion, returning a dictionary with empty lists and valid column names should be accepted as a valid result with zero items. ## Expected results The dataset would be filtered and only the matching fields would be returned. ## Actual results An exception is encountered, as described. Using a workaround makes it fail further along the line. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.1.dev0 - Platform: Linux-5.4.0-53-generic-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 4.0.1 Hi ! Thanks for reporting. Indeed it looks like type inference makes it fail. We should probably just ignore this step until a non-empty batch is passed.
[ -0.23283597826957703, -0.39038851857185364, -0.044456783682107925, 0.1644899994134903, -0.10854469239711761, -0.06876874715089798, 0.1163392886519432, 0.4056323170661926, 0.6400412917137146, 0.11788103729486465, -0.05657173693180084, 0.24608521163463593, -0.39544159173965454, 0.10435476154088974, -0.16292142868041992, 0.16080263257026672, -0.04493316262960434, 0.1405794322490692, -0.169117271900177, -0.19149209558963776, -0.33629316091537476, 0.1631997674703598, -0.3979262709617615, -0.05010485276579857, -0.14877130091190338, -0.2919760048389435, 0.28648003935813904, -0.036210428923368454, -0.16281436383724213, -0.2454048991203308, 0.20609140396118164, -0.2328297644853592, -0.20913547277450562, 0.5783206224441528, -0.00012992756091989577, -0.0231366865336895, 0.15059389173984528, -0.18518862128257751, -0.08976132422685623, -0.30296096205711365, -0.19081804156303406, -0.17153042554855347, -0.11571866273880005, -0.2824649512767792, 0.18194611370563507, -0.2716504633426666, -0.1956348866224289, -0.4482399523258209, 0.10719629377126694, 0.2587008774280548, 0.04332179203629494, 0.41881757974624634, 0.0030658117029815912, 0.1764480173587799, 0.33124831318855286, 0.2664010226726532, -0.07535190135240555, 0.12881065905094147, 0.7205765843391418, -0.28810131549835205, 0.022627277299761772, 0.3385903835296631, -0.39218366146087646, 0.07090646773576736, 0.13675545156002045, -0.030903520062565804, 0.23016871511936188, -0.5515583157539368, 0.26975107192993164, 0.36756742000579834, -0.08999979496002197, 0.06078554317355156, -0.43333759903907776, -0.6687819361686707, -0.04030377045273781, -0.09549863636493683, -0.03889784961938858, 0.2810004949569702, -0.4210391640663147, -0.056459516286849976, -0.4846191704273224, 0.12179484218358994, 0.007894966751337051, 0.1618543118238449, 0.030675478279590607, 0.458953857421875, -0.09304078668355942, 0.20032405853271484, 0.34510961174964905, -0.16183270514011383, -0.09940209984779358, -0.167270690202713, -0.2236279994249344, 0.5847225785255432, -0.036699045449495316, -0.14598773419857025, 0.3893202841281891, 0.21976807713508606, 0.2230357527732849, -0.3132420480251312, -0.050306182354688644, -0.0742756575345993, 0.26467981934547424, -0.023432038724422455, 0.4159455895423889, 0.0793759822845459, 0.2686936557292938, 0.34932011365890503, -0.0050523169338703156, -0.059094078838825226, 0.06769024580717087, 0.11316929757595062, 0.11344229429960251, -0.08908410370349884, -0.009651708416640759, -0.07640824466943741, 0.25678548216819763, -0.0787527859210968, -0.12189867347478867, 0.23410041630268097, -0.41001707315444946, 0.13690710067749023, 0.06204786151647568, 0.12508265674114227, 0.17005783319473267, -0.1776704341173172, 0.1202128604054451, 0.11262885481119156, -0.1570281684398651, 0.18971119821071625, -0.07724679261445999, -0.1316175013780594, -0.1925022453069687, -0.3208245635032654, 0.19647884368896484, -0.33428606390953064, 0.24181634187698364, -0.15858295559883118, 0.01982787251472473, -0.06153290346264839, 0.09574022144079208, -0.2645619809627533, 0.7512268424034119, 0.4937877953052521, -0.1195114403963089, 0.2913582921028137, 0.39662373065948486, -0.2185574769973755, -0.1752832680940628, 0.4062904715538025, -0.3826131224632263, -0.27773505449295044, 0.210041806101799, -0.04018622636795044, -0.23807594180107117, 0.3465701937675476, -0.5073060393333435, 0.2185847908258438, 0.17824581265449524, 0.08225078135728836, 0.291472464799881, -0.2697470784187317, -0.10539443790912628, -0.23601171374320984, 0.04256228357553482, 0.6938401460647583, -0.6387726664543152, -0.049924593418836594, 0.11018934845924377, 0.10137918591499329, -0.061366111040115356, 0.347880095243454, -0.04546063020825386, 0.34810999035835266, -0.41073542833328247, 0.3059868812561035, 0.0873119905591011, -0.12647084891796112, -0.32756325602531433, 0.31341999769210815, -0.03581523150205612, 0.23563958704471588, -0.021055109798908234, -0.06424815207719803, 0.5519378185272217, -0.18738889694213867, 0.3676522374153137, -0.1700584441423416, -0.27995744347572327, 0.10416289418935776, -0.05038169398903847, -0.03984377905726433, 0.06038003787398338, -0.24208202958106995, 0.1949242502450943, 0.01658741943538189, 0.039078135043382645, -0.5488615036010742, 0.12863896787166595, -0.1508789211511612, 0.3383629024028778, 0.24017028510570526, 0.2621084451675415, 0.12333148717880249, 0.018251709640026093, -0.25635212659835815, -0.4713619351387024, 0.3001762330532074, -0.4880331754684448, 0.02124893292784691, -0.4338341951370239, -0.10330409556627274, 0.030964938923716545, 0.18347400426864624, -0.03502006456255913, 0.0330955944955349, -0.07492069900035858, -0.4975805878639221, 0.17657095193862915, -0.021343884989619255, -0.2262367159128189, -0.23706987500190735, -0.13586461544036865, -0.008438926190137863, -0.3567229211330414, 0.07136016339063644, 0.2501082420349121, -0.2921575903892517, -0.25420457124710083, 0.24663028120994568, 0.11493192613124847, -0.11761078983545303, 0.11735449731349945, 0.1758529394865036, -0.03481614217162132, -0.1673574596643448, -0.1400129348039627, 0.1312534660100937, 0.011728363111615181, -0.04580065980553627, 0.10183721035718918, 0.14501351118087769, 0.3444770872592926, -0.23784340918064117, -0.06940686702728271, 0.5054207444190979, -0.18761460483074188, 0.535930335521698, -0.17968632280826569, 0.051238417625427246, -0.19963201880455017, 0.04260646551847458, -0.2059214562177658, -0.3850511908531189, 0.07628374546766281, -0.15773700177669525, 0.05133737996220589, 0.03191465511918068, 0.0012567437952384353, -0.198919415473938, 0.08561693131923676, -0.04696207866072655, 0.1647791564464569, 0.014488167129456997, -0.063052237033844, 0.22668950259685516, 0.044692669063806534, -0.014277230948209763, 0.3432696759700775, 0.2191428393125534, -0.08872583508491516, -0.15218238532543182, 0.2504402697086334, 0.00012215517926961184, 0.413918137550354, 0.1816675066947937, 0.026053156703710556, 0.15500938892364502, -0.0036409473977983, -0.06571999937295914, -0.25283360481262207, -0.18143075704574585, 0.005715363193303347, 0.14953412115573883, -0.3952978551387787, -0.0354202575981617, 0.11011457443237305, -0.15850429236888885, 0.06897620111703873, -0.076503224670887, -0.2908565104007721, -0.3032287359237671, -0.045333728194236755, 0.260157972574234, -0.27227142453193665, -0.024007774889469147, -0.40131354331970215, 0.011653460562229156, 0.1975092887878418, -0.27472010254859924, -0.28129974007606506, -0.1685466468334198, -0.07561113685369492, -0.07415890693664551, 0.07311375439167023, -0.1339879333972931, 0.361563116312027, 0.2521374523639679, -0.26128196716308594, -0.24377140402793884, -0.09511370211839676, 0.0065135350450873375, -0.537039577960968, 0.20540335774421692, 0.41009271144866943, 0.39817070960998535, -0.29238462448120117, 0.1470613330602646, 0.2793859541416168, -0.107142873108387, -0.24806787073612213, -0.007905746810138226, 0.022333964705467224, 0.15326277911663055, -0.17921525239944458, 0.14743168652057648, 0.06446149945259094, -0.320930153131485, 0.1781851202249527, -0.1891590654850006, 0.2615511119365692, 0.21945330500602722, 0.2780078053474426, 0.15385735034942627, -0.3693771958351135, -0.4285494387149811, 0.12235145270824432, -0.14167656004428864, 0.4460209906101227, 0.039022888988256454, -0.14693079888820648, 0.1844053715467453, 0.026218721643090248, -0.18531933426856995, 0.2405572384595871, -0.09668570011854172, 0.0939638614654541, -0.05627404898405075, 0.12348305433988571, 0.19000624120235443, 0.36680012941360474, 0.4985278844833374, 0.0864882543683052, 0.04604468494653702, -0.2846720814704895, -0.10895585268735886, 0.08126389235258102, 0.022276844829320908, -0.06451409310102463, 0.4225294888019562, 0.32178956270217896, 0.028700489550828934, 0.7504062056541443, 0.36547672748565674, 0.12721356749534607, 0.09464516490697861, 0.07253672182559967, 0.38223639130592346, -0.11400629580020905, -0.3796921968460083, -0.208224818110466, 0.15388476848602295, -0.08407841622829437, 0.03251299634575844, 0.05505530908703804, -0.06203438714146614, -0.0012851920910179615, 0.061900340020656586, -0.4879450500011444, -0.18903687596321106, 0.4240105450153351, -0.30936333537101746, 0.07615630328655243, -0.07491468638181686, 0.09561686217784882, -0.27881020307540894, -0.18202699720859528, -0.16371484100818634, -0.30362457036972046, 0.6426758766174316, -0.08232482522726059, -0.07537891715765, -0.1154969334602356, -0.6797443628311157, 0.33253392577171326, 0.22117996215820312, -0.08481092751026154, 0.10671643912792206, -0.1852942705154419, 0.06875630468130112, 0.3100571036338806, 0.9494888186454773, -0.19327247142791748, 0.15665532648563385, 0.08142618089914322, -0.02484363317489624, -0.44353482127189636, 0.09980637580156326, -0.32794150710105896, 0.25508707761764526, 0.2495422065258026, 0.5071648955345154, -0.3575255572795868, -0.0723436251282692, -0.04205319657921791, -0.027732960879802704, 0.03472249209880829, -0.026486486196517944, -0.1733802706003189, -0.149541974067688, -0.1380317658185959, 0.3645794987678528, 0.44694605469703674, 0.07268571853637695, 0.13567028939723969, -0.20947113633155823, -0.09888684749603271, 0.04817071929574013, 0.01759950816631317, -0.13403019309043884, 0.4707484245300293, 0.01583368144929409, 0.05059855058789253, 0.27013731002807617, 0.11173496395349503, 0.22063037753105164, 0.4900631308555603, -0.15343059599399567, 0.20740757882595062, -0.18158678710460663, 0.030591165646910667, 0.3123360276222229, 0.43981632590293884, 0.00996522605419159, 0.057914700359106064, 0.3812752962112427, 0.35221725702285767, -0.05150436982512474, -0.2942023277282715, 0.1262357383966446, 0.046404145658016205, -0.5417701601982117, 0.003656748915091157, 0.11587844043970108, -0.09958216547966003, 0.08497065305709839, 0.6082314252853394, 0.5790844559669495, -0.3638048470020294, 0.36096635460853577, 0.04329182207584381, 0.8923070430755615, -0.01489314902573824, 0.10762739926576614, 0.14868082106113434, 0.07094895094633102, 0.24982883036136627, 0.5552585124969482, 0.0943637490272522, 0.008422152139246464, 0.09743867814540863, -0.040766362100839615, -0.008215597830712795, 0.16687442362308502, 0.3400381803512573, 0.10278644412755966, 0.27085936069488525, 0.08195740729570389, 0.12089386582374573, -0.15034633874893188, -0.2895897626876831, 0.28774577379226685, -0.3301817774772644, -0.3449304699897766, -0.07553864270448685, 0.07857118546962738, 0.2657669484615326, -0.057930149137973785, -0.10584910213947296, -0.030924204736948013, -0.403766930103302, -0.19284598529338837, -0.18520252406597137, -0.44499003887176514, 0.021173939108848572, 0.26389291882514954, -0.2862427532672882, -0.032858699560165405, 0.051584962755441666, -0.4806172251701355, 0.1447318196296692, -0.11111192405223846, -0.1330835521221161, 0.3892787992954254, 0.17192380130290985, 0.02182278223335743, -0.15219275653362274, 0.1726178526878357, 0.19981709122657776, -0.1803181916475296, 0.05755346268415451, -0.4518599808216095, -0.17299474775791168, 0.06446658819913864, 0.40836581587791443, -0.20234113931655884, -0.22290021181106567, -0.39682045578956604, -0.19215919077396393, 0.10154248774051666, 0.0394880548119545, -0.08833836019039154, 0.2670641541481018, -0.07576559484004974, 0.39075037837028503, -0.19200913608074188, -0.45341864228248596, -0.04374232143163681, 0.5255671739578247, 0.0346294529736042, -0.19231894612312317, 0.4125707149505615, 0.15918537974357605, -0.1644420474767685, -0.06954287737607956, 0.13838936388492584, 0.3426441550254822, -0.6278498768806458, 0.5433273315429688, 0.24986937642097473, 0.03698979318141937, 0.1378326714038849, 0.4185105562210083, 0.1368645280599594, 0.2798646092414856, -0.3155888020992279, -0.1867186278104782, -0.2580823302268982, 0.40863800048828125, 0.10354253649711609, 0.03598066791892052, -0.14204637706279755, -0.2367398589849472, 0.3288380205631256, -0.1956319808959961, -0.15207555890083313, 0.06600501388311386, -0.08657663315534592, 0.3288321793079376, 0.21843352913856506, 0.2640419900417328, 0.35698387026786804, -0.08181171119213104, -0.10281669348478317, 0.13153116405010223, -0.2793508768081665, -0.07360569387674332, -0.04670882225036621, 0.17635488510131836, 0.10426028072834015, -0.22039884328842163, 0.16272296011447906, -0.4074193835258484, -0.046006862074136734, -0.406266450881958, 0.2619495093822479, 0.4909597635269165, -0.004014009144157171, -0.2378339320421219, 0.3719465136528015, 0.060078416019678116, -0.029745949432253838, 0.20644626021385193, -0.17768742144107819, -0.07059662789106369, -0.06777848303318024, 0.3043539524078369, 0.16345907747745514, 0.03375052288174629, 0.08297407627105713, 0.07204835116863251, 0.014262212440371513, 0.003094608196988702, 0.4227866530418396, -0.2046114057302475, -0.21244634687900543, 0.3322145938873291, 0.2543899714946747, 0.018418841063976288, -0.020860841497778893, -0.15182912349700928, 0.2098124772310257, 0.006032036617398262, -0.1523621529340744, 0.028843628242611885, 0.15505161881446838, 0.34181076288223267, 0.26052606105804443, 0.36461421847343445, -0.16854210197925568, -0.2591930329799652, 0.017468314617872238, 0.18861569464206696, 0.02110378071665764, 0.0309399776160717, 0.188058540225029, 0.39068499207496643, 0.3334284722805023, -0.09894293546676636, 0.3222147822380066, 0.07886946946382523, 0.2825945019721985, 0.2901286482810974, 0.23771046102046967, 0.2660045325756073, 0.013971048407256603, 0.08644552528858185, -0.2048540860414505, -0.5083087086677551, 0.03778552636504173, 0.08903414756059647, -0.0027336226776242256, 0.33608415722846985, 0.1234637051820755, 0.15381141006946564, -0.1924225389957428, -0.27505746483802795, 0.04185962677001953, 0.0021715464536100626, -0.3454616665840149, -0.061833810061216354, -0.31367549300193787, -0.2561423182487488, 0.4150928556919098, -0.16091634333133698, 0.06273652613162994, -0.34548667073249817, 0.3650221824645996, -0.07760758697986603, -0.0953703299164772, -0.14416512846946716, -0.36772558093070984, 0.024002935737371445, 0.229259192943573, -0.11037924885749817, 0.1378631889820099, -0.09132414311170578, -0.04632900282740593, 0.05049232766032219, 0.5798315405845642, 0.5111634731292725, 0.39856860041618347, -0.024610500782728195, 0.40082505345344543, 0.13015758991241455, -0.24362564086914062, -0.286192923784256, 0.36318957805633545, -0.059528857469558716, -0.025094231590628624, 0.2001093029975891, -0.0104518448933959, -0.04692601412534714, -0.06305475533008575, -0.0026363388169556856, 0.10762563347816467, 0.16351501643657684, -0.19085542857646942, -0.19742171466350555, -0.23625369369983673, -0.26874735951423645, -0.04919450357556343, -0.08179503679275513, 0.01605328731238842, 0.29386427998542786, -0.09964156895875931, 0.046356238424777985, 0.07786119729280472, -0.0013327529886737466, -0.04151930287480354, 0.2583118677139282, 0.45365965366363525, 0.003588515566661954, -0.4841512441635132, 0.17722256481647491, -0.3718905448913574, -0.030173378065228462, -0.4928690195083618, 0.2783646881580353, 0.03891861066222191, 0.19725842773914337, 0.11981739103794098, -0.12264230102300644, 0.31830719113349915, -0.050173211842775345, -0.04383484274148941, 0.354549765586853, 0.06481387466192245, -0.2790631055831909, -0.1928180605173111, -0.013535566627979279, 0.010154712945222855, -0.38427072763442993, 0.10624606907367706, -0.11351074278354645, -0.07535988837480545, -0.10560964792966843, 0.169926717877388, -0.15767186880111694, 0.0275924913585186, 0.1774147003889084, 0.33601659536361694, -0.04189559072256088, 0.029431622475385666, -0.017705515027046204, -0.35040387511253357, 0.1464197188615799, -0.12648999691009521, 0.13943694531917572, 0.35960039496421814, 0.4612444341182709, -0.3284623622894287, -0.20270587503910065, -0.02407541126012802, 0.0423462800681591, 0.004644832108169794, 0.036162253469228745, -0.18189294636249542, 0.14358484745025635, -0.3938451409339905, -0.03584033623337746, -0.12207399308681488, 0.022270813584327698, 0.08602324873209, 0.02708587236702442, -0.2525871992111206, -0.35494333505630493, 0.3827643394470215, -0.6531072854995728, -0.26200708746910095, -0.06931859999895096, 0.3420596122741699, 0.21151070296764374, -0.22564071416854858, -0.3928543031215668, -0.17192047834396362, 0.2626016438007355, -0.06935819238424301, -0.06165432557463646, -0.18479108810424805, -0.503738522529602, -0.03442920744419098, -0.15762393176555634, 0.1152828261256218, 0.03572043403983116, 0.006658793427050114, 0.23119652271270752, -0.3098658621311188 ]
https://github.com/huggingface/datasets/issues/2644
Batched `map` not allowed to return 0 items
Sounds good! Do you want me to propose a PR? I'm quite busy right now, but if it's not too urgent I could take a look next week.
## Describe the bug I'm trying to use `map` to filter a large dataset by selecting rows that match an expensive condition (files referenced by one of the columns need to exist in the filesystem, so we have to `stat` them). According to [the documentation](https://huggingface.co/docs/datasets/processing.html#augmenting-the-dataset), `a batch mapped function can take as input a batch of size N and return a batch of size M where M can be greater or less than N and can even be zero`. However, when the returned batch has a size of zero (neither item in the batch fulfilled the condition), we get an `index out of bounds` error. I think that `arrow_writer.py` is [trying to infer the returned types using the first element returned](https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_writer.py#L100), but no elements were returned in this case. For this error to happen, I'm returning a dictionary that contains empty lists for the keys I want to keep, see below. If I return an empty dictionary instead (no keys), then a different error eventually occurs. ## Steps to reproduce the bug ```python def select_rows(examples): # `key` is a column name that exists in the original dataset # The following line simulates no matches found, so we return an empty batch result = {'key': []} return result filtered_dataset = dataset.map( select_rows, remove_columns = dataset.column_names, batched = True, num_proc = 1, desc = "Selecting rows with images that exist" ) ``` The code above immediately triggers the exception. If we use the following instead: ```python def select_rows(examples): # `key` is a column name that exists in the original dataset result = {'key': []} # or defaultdict or whatever # code to check for condition and append elements to result # some_items_found will be set to True if there were any matching elements in the batch return result if some_items_found else {} ``` Then it _seems_ to work, but it eventually fails with some sort of schema error. I believe it may happen when an empty batch is followed by a non-empty one, but haven't set up a test to verify it. In my opinion, returning a dictionary with empty lists and valid column names should be accepted as a valid result with zero items. ## Expected results The dataset would be filtered and only the matching fields would be returned. ## Actual results An exception is encountered, as described. Using a workaround makes it fail further along the line. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.1.dev0 - Platform: Linux-5.4.0-53-generic-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 4.0.1
28
Batched `map` not allowed to return 0 items ## Describe the bug I'm trying to use `map` to filter a large dataset by selecting rows that match an expensive condition (files referenced by one of the columns need to exist in the filesystem, so we have to `stat` them). According to [the documentation](https://huggingface.co/docs/datasets/processing.html#augmenting-the-dataset), `a batch mapped function can take as input a batch of size N and return a batch of size M where M can be greater or less than N and can even be zero`. However, when the returned batch has a size of zero (neither item in the batch fulfilled the condition), we get an `index out of bounds` error. I think that `arrow_writer.py` is [trying to infer the returned types using the first element returned](https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_writer.py#L100), but no elements were returned in this case. For this error to happen, I'm returning a dictionary that contains empty lists for the keys I want to keep, see below. If I return an empty dictionary instead (no keys), then a different error eventually occurs. ## Steps to reproduce the bug ```python def select_rows(examples): # `key` is a column name that exists in the original dataset # The following line simulates no matches found, so we return an empty batch result = {'key': []} return result filtered_dataset = dataset.map( select_rows, remove_columns = dataset.column_names, batched = True, num_proc = 1, desc = "Selecting rows with images that exist" ) ``` The code above immediately triggers the exception. If we use the following instead: ```python def select_rows(examples): # `key` is a column name that exists in the original dataset result = {'key': []} # or defaultdict or whatever # code to check for condition and append elements to result # some_items_found will be set to True if there were any matching elements in the batch return result if some_items_found else {} ``` Then it _seems_ to work, but it eventually fails with some sort of schema error. I believe it may happen when an empty batch is followed by a non-empty one, but haven't set up a test to verify it. In my opinion, returning a dictionary with empty lists and valid column names should be accepted as a valid result with zero items. ## Expected results The dataset would be filtered and only the matching fields would be returned. ## Actual results An exception is encountered, as described. Using a workaround makes it fail further along the line. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.1.dev0 - Platform: Linux-5.4.0-53-generic-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 4.0.1 Sounds good! Do you want me to propose a PR? I'm quite busy right now, but if it's not too urgent I could take a look next week.
[ -0.23283597826957703, -0.39038851857185364, -0.044456783682107925, 0.1644899994134903, -0.10854469239711761, -0.06876874715089798, 0.1163392886519432, 0.4056323170661926, 0.6400412917137146, 0.11788103729486465, -0.05657173693180084, 0.24608521163463593, -0.39544159173965454, 0.10435476154088974, -0.16292142868041992, 0.16080263257026672, -0.04493316262960434, 0.1405794322490692, -0.169117271900177, -0.19149209558963776, -0.33629316091537476, 0.1631997674703598, -0.3979262709617615, -0.05010485276579857, -0.14877130091190338, -0.2919760048389435, 0.28648003935813904, -0.036210428923368454, -0.16281436383724213, -0.2454048991203308, 0.20609140396118164, -0.2328297644853592, -0.20913547277450562, 0.5783206224441528, -0.00012992756091989577, -0.0231366865336895, 0.15059389173984528, -0.18518862128257751, -0.08976132422685623, -0.30296096205711365, -0.19081804156303406, -0.17153042554855347, -0.11571866273880005, -0.2824649512767792, 0.18194611370563507, -0.2716504633426666, -0.1956348866224289, -0.4482399523258209, 0.10719629377126694, 0.2587008774280548, 0.04332179203629494, 0.41881757974624634, 0.0030658117029815912, 0.1764480173587799, 0.33124831318855286, 0.2664010226726532, -0.07535190135240555, 0.12881065905094147, 0.7205765843391418, -0.28810131549835205, 0.022627277299761772, 0.3385903835296631, -0.39218366146087646, 0.07090646773576736, 0.13675545156002045, -0.030903520062565804, 0.23016871511936188, -0.5515583157539368, 0.26975107192993164, 0.36756742000579834, -0.08999979496002197, 0.06078554317355156, -0.43333759903907776, -0.6687819361686707, -0.04030377045273781, -0.09549863636493683, -0.03889784961938858, 0.2810004949569702, -0.4210391640663147, -0.056459516286849976, -0.4846191704273224, 0.12179484218358994, 0.007894966751337051, 0.1618543118238449, 0.030675478279590607, 0.458953857421875, -0.09304078668355942, 0.20032405853271484, 0.34510961174964905, -0.16183270514011383, -0.09940209984779358, -0.167270690202713, -0.2236279994249344, 0.5847225785255432, -0.036699045449495316, -0.14598773419857025, 0.3893202841281891, 0.21976807713508606, 0.2230357527732849, -0.3132420480251312, -0.050306182354688644, -0.0742756575345993, 0.26467981934547424, -0.023432038724422455, 0.4159455895423889, 0.0793759822845459, 0.2686936557292938, 0.34932011365890503, -0.0050523169338703156, -0.059094078838825226, 0.06769024580717087, 0.11316929757595062, 0.11344229429960251, -0.08908410370349884, -0.009651708416640759, -0.07640824466943741, 0.25678548216819763, -0.0787527859210968, -0.12189867347478867, 0.23410041630268097, -0.41001707315444946, 0.13690710067749023, 0.06204786151647568, 0.12508265674114227, 0.17005783319473267, -0.1776704341173172, 0.1202128604054451, 0.11262885481119156, -0.1570281684398651, 0.18971119821071625, -0.07724679261445999, -0.1316175013780594, -0.1925022453069687, -0.3208245635032654, 0.19647884368896484, -0.33428606390953064, 0.24181634187698364, -0.15858295559883118, 0.01982787251472473, -0.06153290346264839, 0.09574022144079208, -0.2645619809627533, 0.7512268424034119, 0.4937877953052521, -0.1195114403963089, 0.2913582921028137, 0.39662373065948486, -0.2185574769973755, -0.1752832680940628, 0.4062904715538025, -0.3826131224632263, -0.27773505449295044, 0.210041806101799, -0.04018622636795044, -0.23807594180107117, 0.3465701937675476, -0.5073060393333435, 0.2185847908258438, 0.17824581265449524, 0.08225078135728836, 0.291472464799881, -0.2697470784187317, -0.10539443790912628, -0.23601171374320984, 0.04256228357553482, 0.6938401460647583, -0.6387726664543152, -0.049924593418836594, 0.11018934845924377, 0.10137918591499329, -0.061366111040115356, 0.347880095243454, -0.04546063020825386, 0.34810999035835266, -0.41073542833328247, 0.3059868812561035, 0.0873119905591011, -0.12647084891796112, -0.32756325602531433, 0.31341999769210815, -0.03581523150205612, 0.23563958704471588, -0.021055109798908234, -0.06424815207719803, 0.5519378185272217, -0.18738889694213867, 0.3676522374153137, -0.1700584441423416, -0.27995744347572327, 0.10416289418935776, -0.05038169398903847, -0.03984377905726433, 0.06038003787398338, -0.24208202958106995, 0.1949242502450943, 0.01658741943538189, 0.039078135043382645, -0.5488615036010742, 0.12863896787166595, -0.1508789211511612, 0.3383629024028778, 0.24017028510570526, 0.2621084451675415, 0.12333148717880249, 0.018251709640026093, -0.25635212659835815, -0.4713619351387024, 0.3001762330532074, -0.4880331754684448, 0.02124893292784691, -0.4338341951370239, -0.10330409556627274, 0.030964938923716545, 0.18347400426864624, -0.03502006456255913, 0.0330955944955349, -0.07492069900035858, -0.4975805878639221, 0.17657095193862915, -0.021343884989619255, -0.2262367159128189, -0.23706987500190735, -0.13586461544036865, -0.008438926190137863, -0.3567229211330414, 0.07136016339063644, 0.2501082420349121, -0.2921575903892517, -0.25420457124710083, 0.24663028120994568, 0.11493192613124847, -0.11761078983545303, 0.11735449731349945, 0.1758529394865036, -0.03481614217162132, -0.1673574596643448, -0.1400129348039627, 0.1312534660100937, 0.011728363111615181, -0.04580065980553627, 0.10183721035718918, 0.14501351118087769, 0.3444770872592926, -0.23784340918064117, -0.06940686702728271, 0.5054207444190979, -0.18761460483074188, 0.535930335521698, -0.17968632280826569, 0.051238417625427246, -0.19963201880455017, 0.04260646551847458, -0.2059214562177658, -0.3850511908531189, 0.07628374546766281, -0.15773700177669525, 0.05133737996220589, 0.03191465511918068, 0.0012567437952384353, -0.198919415473938, 0.08561693131923676, -0.04696207866072655, 0.1647791564464569, 0.014488167129456997, -0.063052237033844, 0.22668950259685516, 0.044692669063806534, -0.014277230948209763, 0.3432696759700775, 0.2191428393125534, -0.08872583508491516, -0.15218238532543182, 0.2504402697086334, 0.00012215517926961184, 0.413918137550354, 0.1816675066947937, 0.026053156703710556, 0.15500938892364502, -0.0036409473977983, -0.06571999937295914, -0.25283360481262207, -0.18143075704574585, 0.005715363193303347, 0.14953412115573883, -0.3952978551387787, -0.0354202575981617, 0.11011457443237305, -0.15850429236888885, 0.06897620111703873, -0.076503224670887, -0.2908565104007721, -0.3032287359237671, -0.045333728194236755, 0.260157972574234, -0.27227142453193665, -0.024007774889469147, -0.40131354331970215, 0.011653460562229156, 0.1975092887878418, -0.27472010254859924, -0.28129974007606506, -0.1685466468334198, -0.07561113685369492, -0.07415890693664551, 0.07311375439167023, -0.1339879333972931, 0.361563116312027, 0.2521374523639679, -0.26128196716308594, -0.24377140402793884, -0.09511370211839676, 0.0065135350450873375, -0.537039577960968, 0.20540335774421692, 0.41009271144866943, 0.39817070960998535, -0.29238462448120117, 0.1470613330602646, 0.2793859541416168, -0.107142873108387, -0.24806787073612213, -0.007905746810138226, 0.022333964705467224, 0.15326277911663055, -0.17921525239944458, 0.14743168652057648, 0.06446149945259094, -0.320930153131485, 0.1781851202249527, -0.1891590654850006, 0.2615511119365692, 0.21945330500602722, 0.2780078053474426, 0.15385735034942627, -0.3693771958351135, -0.4285494387149811, 0.12235145270824432, -0.14167656004428864, 0.4460209906101227, 0.039022888988256454, -0.14693079888820648, 0.1844053715467453, 0.026218721643090248, -0.18531933426856995, 0.2405572384595871, -0.09668570011854172, 0.0939638614654541, -0.05627404898405075, 0.12348305433988571, 0.19000624120235443, 0.36680012941360474, 0.4985278844833374, 0.0864882543683052, 0.04604468494653702, -0.2846720814704895, -0.10895585268735886, 0.08126389235258102, 0.022276844829320908, -0.06451409310102463, 0.4225294888019562, 0.32178956270217896, 0.028700489550828934, 0.7504062056541443, 0.36547672748565674, 0.12721356749534607, 0.09464516490697861, 0.07253672182559967, 0.38223639130592346, -0.11400629580020905, -0.3796921968460083, -0.208224818110466, 0.15388476848602295, -0.08407841622829437, 0.03251299634575844, 0.05505530908703804, -0.06203438714146614, -0.0012851920910179615, 0.061900340020656586, -0.4879450500011444, -0.18903687596321106, 0.4240105450153351, -0.30936333537101746, 0.07615630328655243, -0.07491468638181686, 0.09561686217784882, -0.27881020307540894, -0.18202699720859528, -0.16371484100818634, -0.30362457036972046, 0.6426758766174316, -0.08232482522726059, -0.07537891715765, -0.1154969334602356, -0.6797443628311157, 0.33253392577171326, 0.22117996215820312, -0.08481092751026154, 0.10671643912792206, -0.1852942705154419, 0.06875630468130112, 0.3100571036338806, 0.9494888186454773, -0.19327247142791748, 0.15665532648563385, 0.08142618089914322, -0.02484363317489624, -0.44353482127189636, 0.09980637580156326, -0.32794150710105896, 0.25508707761764526, 0.2495422065258026, 0.5071648955345154, -0.3575255572795868, -0.0723436251282692, -0.04205319657921791, -0.027732960879802704, 0.03472249209880829, -0.026486486196517944, -0.1733802706003189, -0.149541974067688, -0.1380317658185959, 0.3645794987678528, 0.44694605469703674, 0.07268571853637695, 0.13567028939723969, -0.20947113633155823, -0.09888684749603271, 0.04817071929574013, 0.01759950816631317, -0.13403019309043884, 0.4707484245300293, 0.01583368144929409, 0.05059855058789253, 0.27013731002807617, 0.11173496395349503, 0.22063037753105164, 0.4900631308555603, -0.15343059599399567, 0.20740757882595062, -0.18158678710460663, 0.030591165646910667, 0.3123360276222229, 0.43981632590293884, 0.00996522605419159, 0.057914700359106064, 0.3812752962112427, 0.35221725702285767, -0.05150436982512474, -0.2942023277282715, 0.1262357383966446, 0.046404145658016205, -0.5417701601982117, 0.003656748915091157, 0.11587844043970108, -0.09958216547966003, 0.08497065305709839, 0.6082314252853394, 0.5790844559669495, -0.3638048470020294, 0.36096635460853577, 0.04329182207584381, 0.8923070430755615, -0.01489314902573824, 0.10762739926576614, 0.14868082106113434, 0.07094895094633102, 0.24982883036136627, 0.5552585124969482, 0.0943637490272522, 0.008422152139246464, 0.09743867814540863, -0.040766362100839615, -0.008215597830712795, 0.16687442362308502, 0.3400381803512573, 0.10278644412755966, 0.27085936069488525, 0.08195740729570389, 0.12089386582374573, -0.15034633874893188, -0.2895897626876831, 0.28774577379226685, -0.3301817774772644, -0.3449304699897766, -0.07553864270448685, 0.07857118546962738, 0.2657669484615326, -0.057930149137973785, -0.10584910213947296, -0.030924204736948013, -0.403766930103302, -0.19284598529338837, -0.18520252406597137, -0.44499003887176514, 0.021173939108848572, 0.26389291882514954, -0.2862427532672882, -0.032858699560165405, 0.051584962755441666, -0.4806172251701355, 0.1447318196296692, -0.11111192405223846, -0.1330835521221161, 0.3892787992954254, 0.17192380130290985, 0.02182278223335743, -0.15219275653362274, 0.1726178526878357, 0.19981709122657776, -0.1803181916475296, 0.05755346268415451, -0.4518599808216095, -0.17299474775791168, 0.06446658819913864, 0.40836581587791443, -0.20234113931655884, -0.22290021181106567, -0.39682045578956604, -0.19215919077396393, 0.10154248774051666, 0.0394880548119545, -0.08833836019039154, 0.2670641541481018, -0.07576559484004974, 0.39075037837028503, -0.19200913608074188, -0.45341864228248596, -0.04374232143163681, 0.5255671739578247, 0.0346294529736042, -0.19231894612312317, 0.4125707149505615, 0.15918537974357605, -0.1644420474767685, -0.06954287737607956, 0.13838936388492584, 0.3426441550254822, -0.6278498768806458, 0.5433273315429688, 0.24986937642097473, 0.03698979318141937, 0.1378326714038849, 0.4185105562210083, 0.1368645280599594, 0.2798646092414856, -0.3155888020992279, -0.1867186278104782, -0.2580823302268982, 0.40863800048828125, 0.10354253649711609, 0.03598066791892052, -0.14204637706279755, -0.2367398589849472, 0.3288380205631256, -0.1956319808959961, -0.15207555890083313, 0.06600501388311386, -0.08657663315534592, 0.3288321793079376, 0.21843352913856506, 0.2640419900417328, 0.35698387026786804, -0.08181171119213104, -0.10281669348478317, 0.13153116405010223, -0.2793508768081665, -0.07360569387674332, -0.04670882225036621, 0.17635488510131836, 0.10426028072834015, -0.22039884328842163, 0.16272296011447906, -0.4074193835258484, -0.046006862074136734, -0.406266450881958, 0.2619495093822479, 0.4909597635269165, -0.004014009144157171, -0.2378339320421219, 0.3719465136528015, 0.060078416019678116, -0.029745949432253838, 0.20644626021385193, -0.17768742144107819, -0.07059662789106369, -0.06777848303318024, 0.3043539524078369, 0.16345907747745514, 0.03375052288174629, 0.08297407627105713, 0.07204835116863251, 0.014262212440371513, 0.003094608196988702, 0.4227866530418396, -0.2046114057302475, -0.21244634687900543, 0.3322145938873291, 0.2543899714946747, 0.018418841063976288, -0.020860841497778893, -0.15182912349700928, 0.2098124772310257, 0.006032036617398262, -0.1523621529340744, 0.028843628242611885, 0.15505161881446838, 0.34181076288223267, 0.26052606105804443, 0.36461421847343445, -0.16854210197925568, -0.2591930329799652, 0.017468314617872238, 0.18861569464206696, 0.02110378071665764, 0.0309399776160717, 0.188058540225029, 0.39068499207496643, 0.3334284722805023, -0.09894293546676636, 0.3222147822380066, 0.07886946946382523, 0.2825945019721985, 0.2901286482810974, 0.23771046102046967, 0.2660045325756073, 0.013971048407256603, 0.08644552528858185, -0.2048540860414505, -0.5083087086677551, 0.03778552636504173, 0.08903414756059647, -0.0027336226776242256, 0.33608415722846985, 0.1234637051820755, 0.15381141006946564, -0.1924225389957428, -0.27505746483802795, 0.04185962677001953, 0.0021715464536100626, -0.3454616665840149, -0.061833810061216354, -0.31367549300193787, -0.2561423182487488, 0.4150928556919098, -0.16091634333133698, 0.06273652613162994, -0.34548667073249817, 0.3650221824645996, -0.07760758697986603, -0.0953703299164772, -0.14416512846946716, -0.36772558093070984, 0.024002935737371445, 0.229259192943573, -0.11037924885749817, 0.1378631889820099, -0.09132414311170578, -0.04632900282740593, 0.05049232766032219, 0.5798315405845642, 0.5111634731292725, 0.39856860041618347, -0.024610500782728195, 0.40082505345344543, 0.13015758991241455, -0.24362564086914062, -0.286192923784256, 0.36318957805633545, -0.059528857469558716, -0.025094231590628624, 0.2001093029975891, -0.0104518448933959, -0.04692601412534714, -0.06305475533008575, -0.0026363388169556856, 0.10762563347816467, 0.16351501643657684, -0.19085542857646942, -0.19742171466350555, -0.23625369369983673, -0.26874735951423645, -0.04919450357556343, -0.08179503679275513, 0.01605328731238842, 0.29386427998542786, -0.09964156895875931, 0.046356238424777985, 0.07786119729280472, -0.0013327529886737466, -0.04151930287480354, 0.2583118677139282, 0.45365965366363525, 0.003588515566661954, -0.4841512441635132, 0.17722256481647491, -0.3718905448913574, -0.030173378065228462, -0.4928690195083618, 0.2783646881580353, 0.03891861066222191, 0.19725842773914337, 0.11981739103794098, -0.12264230102300644, 0.31830719113349915, -0.050173211842775345, -0.04383484274148941, 0.354549765586853, 0.06481387466192245, -0.2790631055831909, -0.1928180605173111, -0.013535566627979279, 0.010154712945222855, -0.38427072763442993, 0.10624606907367706, -0.11351074278354645, -0.07535988837480545, -0.10560964792966843, 0.169926717877388, -0.15767186880111694, 0.0275924913585186, 0.1774147003889084, 0.33601659536361694, -0.04189559072256088, 0.029431622475385666, -0.017705515027046204, -0.35040387511253357, 0.1464197188615799, -0.12648999691009521, 0.13943694531917572, 0.35960039496421814, 0.4612444341182709, -0.3284623622894287, -0.20270587503910065, -0.02407541126012802, 0.0423462800681591, 0.004644832108169794, 0.036162253469228745, -0.18189294636249542, 0.14358484745025635, -0.3938451409339905, -0.03584033623337746, -0.12207399308681488, 0.022270813584327698, 0.08602324873209, 0.02708587236702442, -0.2525871992111206, -0.35494333505630493, 0.3827643394470215, -0.6531072854995728, -0.26200708746910095, -0.06931859999895096, 0.3420596122741699, 0.21151070296764374, -0.22564071416854858, -0.3928543031215668, -0.17192047834396362, 0.2626016438007355, -0.06935819238424301, -0.06165432557463646, -0.18479108810424805, -0.503738522529602, -0.03442920744419098, -0.15762393176555634, 0.1152828261256218, 0.03572043403983116, 0.006658793427050114, 0.23119652271270752, -0.3098658621311188 ]
https://github.com/huggingface/datasets/issues/2644
Batched `map` not allowed to return 0 items
Sure if you're interested feel free to open a PR :) You can also ping me anytime if you have questions or if I can help !
## Describe the bug I'm trying to use `map` to filter a large dataset by selecting rows that match an expensive condition (files referenced by one of the columns need to exist in the filesystem, so we have to `stat` them). According to [the documentation](https://huggingface.co/docs/datasets/processing.html#augmenting-the-dataset), `a batch mapped function can take as input a batch of size N and return a batch of size M where M can be greater or less than N and can even be zero`. However, when the returned batch has a size of zero (neither item in the batch fulfilled the condition), we get an `index out of bounds` error. I think that `arrow_writer.py` is [trying to infer the returned types using the first element returned](https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_writer.py#L100), but no elements were returned in this case. For this error to happen, I'm returning a dictionary that contains empty lists for the keys I want to keep, see below. If I return an empty dictionary instead (no keys), then a different error eventually occurs. ## Steps to reproduce the bug ```python def select_rows(examples): # `key` is a column name that exists in the original dataset # The following line simulates no matches found, so we return an empty batch result = {'key': []} return result filtered_dataset = dataset.map( select_rows, remove_columns = dataset.column_names, batched = True, num_proc = 1, desc = "Selecting rows with images that exist" ) ``` The code above immediately triggers the exception. If we use the following instead: ```python def select_rows(examples): # `key` is a column name that exists in the original dataset result = {'key': []} # or defaultdict or whatever # code to check for condition and append elements to result # some_items_found will be set to True if there were any matching elements in the batch return result if some_items_found else {} ``` Then it _seems_ to work, but it eventually fails with some sort of schema error. I believe it may happen when an empty batch is followed by a non-empty one, but haven't set up a test to verify it. In my opinion, returning a dictionary with empty lists and valid column names should be accepted as a valid result with zero items. ## Expected results The dataset would be filtered and only the matching fields would be returned. ## Actual results An exception is encountered, as described. Using a workaround makes it fail further along the line. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.1.dev0 - Platform: Linux-5.4.0-53-generic-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 4.0.1
27
Batched `map` not allowed to return 0 items ## Describe the bug I'm trying to use `map` to filter a large dataset by selecting rows that match an expensive condition (files referenced by one of the columns need to exist in the filesystem, so we have to `stat` them). According to [the documentation](https://huggingface.co/docs/datasets/processing.html#augmenting-the-dataset), `a batch mapped function can take as input a batch of size N and return a batch of size M where M can be greater or less than N and can even be zero`. However, when the returned batch has a size of zero (neither item in the batch fulfilled the condition), we get an `index out of bounds` error. I think that `arrow_writer.py` is [trying to infer the returned types using the first element returned](https://github.com/huggingface/datasets/blob/master/src/datasets/arrow_writer.py#L100), but no elements were returned in this case. For this error to happen, I'm returning a dictionary that contains empty lists for the keys I want to keep, see below. If I return an empty dictionary instead (no keys), then a different error eventually occurs. ## Steps to reproduce the bug ```python def select_rows(examples): # `key` is a column name that exists in the original dataset # The following line simulates no matches found, so we return an empty batch result = {'key': []} return result filtered_dataset = dataset.map( select_rows, remove_columns = dataset.column_names, batched = True, num_proc = 1, desc = "Selecting rows with images that exist" ) ``` The code above immediately triggers the exception. If we use the following instead: ```python def select_rows(examples): # `key` is a column name that exists in the original dataset result = {'key': []} # or defaultdict or whatever # code to check for condition and append elements to result # some_items_found will be set to True if there were any matching elements in the batch return result if some_items_found else {} ``` Then it _seems_ to work, but it eventually fails with some sort of schema error. I believe it may happen when an empty batch is followed by a non-empty one, but haven't set up a test to verify it. In my opinion, returning a dictionary with empty lists and valid column names should be accepted as a valid result with zero items. ## Expected results The dataset would be filtered and only the matching fields would be returned. ## Actual results An exception is encountered, as described. Using a workaround makes it fail further along the line. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.9.1.dev0 - Platform: Linux-5.4.0-53-generic-x86_64-with-glibc2.17 - Python version: 3.8.10 - PyArrow version: 4.0.1 Sure if you're interested feel free to open a PR :) You can also ping me anytime if you have questions or if I can help !
[ -0.23283597826957703, -0.39038851857185364, -0.044456783682107925, 0.1644899994134903, -0.10854469239711761, -0.06876874715089798, 0.1163392886519432, 0.4056323170661926, 0.6400412917137146, 0.11788103729486465, -0.05657173693180084, 0.24608521163463593, -0.39544159173965454, 0.10435476154088974, -0.16292142868041992, 0.16080263257026672, -0.04493316262960434, 0.1405794322490692, -0.169117271900177, -0.19149209558963776, -0.33629316091537476, 0.1631997674703598, -0.3979262709617615, -0.05010485276579857, -0.14877130091190338, -0.2919760048389435, 0.28648003935813904, -0.036210428923368454, -0.16281436383724213, -0.2454048991203308, 0.20609140396118164, -0.2328297644853592, -0.20913547277450562, 0.5783206224441528, -0.00012992756091989577, -0.0231366865336895, 0.15059389173984528, -0.18518862128257751, -0.08976132422685623, -0.30296096205711365, -0.19081804156303406, -0.17153042554855347, -0.11571866273880005, -0.2824649512767792, 0.18194611370563507, -0.2716504633426666, -0.1956348866224289, -0.4482399523258209, 0.10719629377126694, 0.2587008774280548, 0.04332179203629494, 0.41881757974624634, 0.0030658117029815912, 0.1764480173587799, 0.33124831318855286, 0.2664010226726532, -0.07535190135240555, 0.12881065905094147, 0.7205765843391418, -0.28810131549835205, 0.022627277299761772, 0.3385903835296631, -0.39218366146087646, 0.07090646773576736, 0.13675545156002045, -0.030903520062565804, 0.23016871511936188, -0.5515583157539368, 0.26975107192993164, 0.36756742000579834, -0.08999979496002197, 0.06078554317355156, -0.43333759903907776, -0.6687819361686707, -0.04030377045273781, -0.09549863636493683, -0.03889784961938858, 0.2810004949569702, -0.4210391640663147, -0.056459516286849976, -0.4846191704273224, 0.12179484218358994, 0.007894966751337051, 0.1618543118238449, 0.030675478279590607, 0.458953857421875, -0.09304078668355942, 0.20032405853271484, 0.34510961174964905, -0.16183270514011383, -0.09940209984779358, -0.167270690202713, -0.2236279994249344, 0.5847225785255432, -0.036699045449495316, -0.14598773419857025, 0.3893202841281891, 0.21976807713508606, 0.2230357527732849, -0.3132420480251312, -0.050306182354688644, -0.0742756575345993, 0.26467981934547424, -0.023432038724422455, 0.4159455895423889, 0.0793759822845459, 0.2686936557292938, 0.34932011365890503, -0.0050523169338703156, -0.059094078838825226, 0.06769024580717087, 0.11316929757595062, 0.11344229429960251, -0.08908410370349884, -0.009651708416640759, -0.07640824466943741, 0.25678548216819763, -0.0787527859210968, -0.12189867347478867, 0.23410041630268097, -0.41001707315444946, 0.13690710067749023, 0.06204786151647568, 0.12508265674114227, 0.17005783319473267, -0.1776704341173172, 0.1202128604054451, 0.11262885481119156, -0.1570281684398651, 0.18971119821071625, -0.07724679261445999, -0.1316175013780594, -0.1925022453069687, -0.3208245635032654, 0.19647884368896484, -0.33428606390953064, 0.24181634187698364, -0.15858295559883118, 0.01982787251472473, -0.06153290346264839, 0.09574022144079208, -0.2645619809627533, 0.7512268424034119, 0.4937877953052521, -0.1195114403963089, 0.2913582921028137, 0.39662373065948486, -0.2185574769973755, -0.1752832680940628, 0.4062904715538025, -0.3826131224632263, -0.27773505449295044, 0.210041806101799, -0.04018622636795044, -0.23807594180107117, 0.3465701937675476, -0.5073060393333435, 0.2185847908258438, 0.17824581265449524, 0.08225078135728836, 0.291472464799881, -0.2697470784187317, -0.10539443790912628, -0.23601171374320984, 0.04256228357553482, 0.6938401460647583, -0.6387726664543152, -0.049924593418836594, 0.11018934845924377, 0.10137918591499329, -0.061366111040115356, 0.347880095243454, -0.04546063020825386, 0.34810999035835266, -0.41073542833328247, 0.3059868812561035, 0.0873119905591011, -0.12647084891796112, -0.32756325602531433, 0.31341999769210815, -0.03581523150205612, 0.23563958704471588, -0.021055109798908234, -0.06424815207719803, 0.5519378185272217, -0.18738889694213867, 0.3676522374153137, -0.1700584441423416, -0.27995744347572327, 0.10416289418935776, -0.05038169398903847, -0.03984377905726433, 0.06038003787398338, -0.24208202958106995, 0.1949242502450943, 0.01658741943538189, 0.039078135043382645, -0.5488615036010742, 0.12863896787166595, -0.1508789211511612, 0.3383629024028778, 0.24017028510570526, 0.2621084451675415, 0.12333148717880249, 0.018251709640026093, -0.25635212659835815, -0.4713619351387024, 0.3001762330532074, -0.4880331754684448, 0.02124893292784691, -0.4338341951370239, -0.10330409556627274, 0.030964938923716545, 0.18347400426864624, -0.03502006456255913, 0.0330955944955349, -0.07492069900035858, -0.4975805878639221, 0.17657095193862915, -0.021343884989619255, -0.2262367159128189, -0.23706987500190735, -0.13586461544036865, -0.008438926190137863, -0.3567229211330414, 0.07136016339063644, 0.2501082420349121, -0.2921575903892517, -0.25420457124710083, 0.24663028120994568, 0.11493192613124847, -0.11761078983545303, 0.11735449731349945, 0.1758529394865036, -0.03481614217162132, -0.1673574596643448, -0.1400129348039627, 0.1312534660100937, 0.011728363111615181, -0.04580065980553627, 0.10183721035718918, 0.14501351118087769, 0.3444770872592926, -0.23784340918064117, -0.06940686702728271, 0.5054207444190979, -0.18761460483074188, 0.535930335521698, -0.17968632280826569, 0.051238417625427246, -0.19963201880455017, 0.04260646551847458, -0.2059214562177658, -0.3850511908531189, 0.07628374546766281, -0.15773700177669525, 0.05133737996220589, 0.03191465511918068, 0.0012567437952384353, -0.198919415473938, 0.08561693131923676, -0.04696207866072655, 0.1647791564464569, 0.014488167129456997, -0.063052237033844, 0.22668950259685516, 0.044692669063806534, -0.014277230948209763, 0.3432696759700775, 0.2191428393125534, -0.08872583508491516, -0.15218238532543182, 0.2504402697086334, 0.00012215517926961184, 0.413918137550354, 0.1816675066947937, 0.026053156703710556, 0.15500938892364502, -0.0036409473977983, -0.06571999937295914, -0.25283360481262207, -0.18143075704574585, 0.005715363193303347, 0.14953412115573883, -0.3952978551387787, -0.0354202575981617, 0.11011457443237305, -0.15850429236888885, 0.06897620111703873, -0.076503224670887, -0.2908565104007721, -0.3032287359237671, -0.045333728194236755, 0.260157972574234, -0.27227142453193665, -0.024007774889469147, -0.40131354331970215, 0.011653460562229156, 0.1975092887878418, -0.27472010254859924, -0.28129974007606506, -0.1685466468334198, -0.07561113685369492, -0.07415890693664551, 0.07311375439167023, -0.1339879333972931, 0.361563116312027, 0.2521374523639679, -0.26128196716308594, -0.24377140402793884, -0.09511370211839676, 0.0065135350450873375, -0.537039577960968, 0.20540335774421692, 0.41009271144866943, 0.39817070960998535, -0.29238462448120117, 0.1470613330602646, 0.2793859541416168, -0.107142873108387, -0.24806787073612213, -0.007905746810138226, 0.022333964705467224, 0.15326277911663055, -0.17921525239944458, 0.14743168652057648, 0.06446149945259094, -0.320930153131485, 0.1781851202249527, -0.1891590654850006, 0.2615511119365692, 0.21945330500602722, 0.2780078053474426, 0.15385735034942627, -0.3693771958351135, -0.4285494387149811, 0.12235145270824432, -0.14167656004428864, 0.4460209906101227, 0.039022888988256454, -0.14693079888820648, 0.1844053715467453, 0.026218721643090248, -0.18531933426856995, 0.2405572384595871, -0.09668570011854172, 0.0939638614654541, -0.05627404898405075, 0.12348305433988571, 0.19000624120235443, 0.36680012941360474, 0.4985278844833374, 0.0864882543683052, 0.04604468494653702, -0.2846720814704895, -0.10895585268735886, 0.08126389235258102, 0.022276844829320908, -0.06451409310102463, 0.4225294888019562, 0.32178956270217896, 0.028700489550828934, 0.7504062056541443, 0.36547672748565674, 0.12721356749534607, 0.09464516490697861, 0.07253672182559967, 0.38223639130592346, -0.11400629580020905, -0.3796921968460083, -0.208224818110466, 0.15388476848602295, -0.08407841622829437, 0.03251299634575844, 0.05505530908703804, -0.06203438714146614, -0.0012851920910179615, 0.061900340020656586, -0.4879450500011444, -0.18903687596321106, 0.4240105450153351, -0.30936333537101746, 0.07615630328655243, -0.07491468638181686, 0.09561686217784882, -0.27881020307540894, -0.18202699720859528, -0.16371484100818634, -0.30362457036972046, 0.6426758766174316, -0.08232482522726059, -0.07537891715765, -0.1154969334602356, -0.6797443628311157, 0.33253392577171326, 0.22117996215820312, -0.08481092751026154, 0.10671643912792206, -0.1852942705154419, 0.06875630468130112, 0.3100571036338806, 0.9494888186454773, -0.19327247142791748, 0.15665532648563385, 0.08142618089914322, -0.02484363317489624, -0.44353482127189636, 0.09980637580156326, -0.32794150710105896, 0.25508707761764526, 0.2495422065258026, 0.5071648955345154, -0.3575255572795868, -0.0723436251282692, -0.04205319657921791, -0.027732960879802704, 0.03472249209880829, -0.026486486196517944, -0.1733802706003189, -0.149541974067688, -0.1380317658185959, 0.3645794987678528, 0.44694605469703674, 0.07268571853637695, 0.13567028939723969, -0.20947113633155823, -0.09888684749603271, 0.04817071929574013, 0.01759950816631317, -0.13403019309043884, 0.4707484245300293, 0.01583368144929409, 0.05059855058789253, 0.27013731002807617, 0.11173496395349503, 0.22063037753105164, 0.4900631308555603, -0.15343059599399567, 0.20740757882595062, -0.18158678710460663, 0.030591165646910667, 0.3123360276222229, 0.43981632590293884, 0.00996522605419159, 0.057914700359106064, 0.3812752962112427, 0.35221725702285767, -0.05150436982512474, -0.2942023277282715, 0.1262357383966446, 0.046404145658016205, -0.5417701601982117, 0.003656748915091157, 0.11587844043970108, -0.09958216547966003, 0.08497065305709839, 0.6082314252853394, 0.5790844559669495, -0.3638048470020294, 0.36096635460853577, 0.04329182207584381, 0.8923070430755615, -0.01489314902573824, 0.10762739926576614, 0.14868082106113434, 0.07094895094633102, 0.24982883036136627, 0.5552585124969482, 0.0943637490272522, 0.008422152139246464, 0.09743867814540863, -0.040766362100839615, -0.008215597830712795, 0.16687442362308502, 0.3400381803512573, 0.10278644412755966, 0.27085936069488525, 0.08195740729570389, 0.12089386582374573, -0.15034633874893188, -0.2895897626876831, 0.28774577379226685, -0.3301817774772644, -0.3449304699897766, -0.07553864270448685, 0.07857118546962738, 0.2657669484615326, -0.057930149137973785, -0.10584910213947296, -0.030924204736948013, -0.403766930103302, -0.19284598529338837, -0.18520252406597137, -0.44499003887176514, 0.021173939108848572, 0.26389291882514954, -0.2862427532672882, -0.032858699560165405, 0.051584962755441666, -0.4806172251701355, 0.1447318196296692, -0.11111192405223846, -0.1330835521221161, 0.3892787992954254, 0.17192380130290985, 0.02182278223335743, -0.15219275653362274, 0.1726178526878357, 0.19981709122657776, -0.1803181916475296, 0.05755346268415451, -0.4518599808216095, -0.17299474775791168, 0.06446658819913864, 0.40836581587791443, -0.20234113931655884, -0.22290021181106567, -0.39682045578956604, -0.19215919077396393, 0.10154248774051666, 0.0394880548119545, -0.08833836019039154, 0.2670641541481018, -0.07576559484004974, 0.39075037837028503, -0.19200913608074188, -0.45341864228248596, -0.04374232143163681, 0.5255671739578247, 0.0346294529736042, -0.19231894612312317, 0.4125707149505615, 0.15918537974357605, -0.1644420474767685, -0.06954287737607956, 0.13838936388492584, 0.3426441550254822, -0.6278498768806458, 0.5433273315429688, 0.24986937642097473, 0.03698979318141937, 0.1378326714038849, 0.4185105562210083, 0.1368645280599594, 0.2798646092414856, -0.3155888020992279, -0.1867186278104782, -0.2580823302268982, 0.40863800048828125, 0.10354253649711609, 0.03598066791892052, -0.14204637706279755, -0.2367398589849472, 0.3288380205631256, -0.1956319808959961, -0.15207555890083313, 0.06600501388311386, -0.08657663315534592, 0.3288321793079376, 0.21843352913856506, 0.2640419900417328, 0.35698387026786804, -0.08181171119213104, -0.10281669348478317, 0.13153116405010223, -0.2793508768081665, -0.07360569387674332, -0.04670882225036621, 0.17635488510131836, 0.10426028072834015, -0.22039884328842163, 0.16272296011447906, -0.4074193835258484, -0.046006862074136734, -0.406266450881958, 0.2619495093822479, 0.4909597635269165, -0.004014009144157171, -0.2378339320421219, 0.3719465136528015, 0.060078416019678116, -0.029745949432253838, 0.20644626021385193, -0.17768742144107819, -0.07059662789106369, -0.06777848303318024, 0.3043539524078369, 0.16345907747745514, 0.03375052288174629, 0.08297407627105713, 0.07204835116863251, 0.014262212440371513, 0.003094608196988702, 0.4227866530418396, -0.2046114057302475, -0.21244634687900543, 0.3322145938873291, 0.2543899714946747, 0.018418841063976288, -0.020860841497778893, -0.15182912349700928, 0.2098124772310257, 0.006032036617398262, -0.1523621529340744, 0.028843628242611885, 0.15505161881446838, 0.34181076288223267, 0.26052606105804443, 0.36461421847343445, -0.16854210197925568, -0.2591930329799652, 0.017468314617872238, 0.18861569464206696, 0.02110378071665764, 0.0309399776160717, 0.188058540225029, 0.39068499207496643, 0.3334284722805023, -0.09894293546676636, 0.3222147822380066, 0.07886946946382523, 0.2825945019721985, 0.2901286482810974, 0.23771046102046967, 0.2660045325756073, 0.013971048407256603, 0.08644552528858185, -0.2048540860414505, -0.5083087086677551, 0.03778552636504173, 0.08903414756059647, -0.0027336226776242256, 0.33608415722846985, 0.1234637051820755, 0.15381141006946564, -0.1924225389957428, -0.27505746483802795, 0.04185962677001953, 0.0021715464536100626, -0.3454616665840149, -0.061833810061216354, -0.31367549300193787, -0.2561423182487488, 0.4150928556919098, -0.16091634333133698, 0.06273652613162994, -0.34548667073249817, 0.3650221824645996, -0.07760758697986603, -0.0953703299164772, -0.14416512846946716, -0.36772558093070984, 0.024002935737371445, 0.229259192943573, -0.11037924885749817, 0.1378631889820099, -0.09132414311170578, -0.04632900282740593, 0.05049232766032219, 0.5798315405845642, 0.5111634731292725, 0.39856860041618347, -0.024610500782728195, 0.40082505345344543, 0.13015758991241455, -0.24362564086914062, -0.286192923784256, 0.36318957805633545, -0.059528857469558716, -0.025094231590628624, 0.2001093029975891, -0.0104518448933959, -0.04692601412534714, -0.06305475533008575, -0.0026363388169556856, 0.10762563347816467, 0.16351501643657684, -0.19085542857646942, -0.19742171466350555, -0.23625369369983673, -0.26874735951423645, -0.04919450357556343, -0.08179503679275513, 0.01605328731238842, 0.29386427998542786, -0.09964156895875931, 0.046356238424777985, 0.07786119729280472, -0.0013327529886737466, -0.04151930287480354, 0.2583118677139282, 0.45365965366363525, 0.003588515566661954, -0.4841512441635132, 0.17722256481647491, -0.3718905448913574, -0.030173378065228462, -0.4928690195083618, 0.2783646881580353, 0.03891861066222191, 0.19725842773914337, 0.11981739103794098, -0.12264230102300644, 0.31830719113349915, -0.050173211842775345, -0.04383484274148941, 0.354549765586853, 0.06481387466192245, -0.2790631055831909, -0.1928180605173111, -0.013535566627979279, 0.010154712945222855, -0.38427072763442993, 0.10624606907367706, -0.11351074278354645, -0.07535988837480545, -0.10560964792966843, 0.169926717877388, -0.15767186880111694, 0.0275924913585186, 0.1774147003889084, 0.33601659536361694, -0.04189559072256088, 0.029431622475385666, -0.017705515027046204, -0.35040387511253357, 0.1464197188615799, -0.12648999691009521, 0.13943694531917572, 0.35960039496421814, 0.4612444341182709, -0.3284623622894287, -0.20270587503910065, -0.02407541126012802, 0.0423462800681591, 0.004644832108169794, 0.036162253469228745, -0.18189294636249542, 0.14358484745025635, -0.3938451409339905, -0.03584033623337746, -0.12207399308681488, 0.022270813584327698, 0.08602324873209, 0.02708587236702442, -0.2525871992111206, -0.35494333505630493, 0.3827643394470215, -0.6531072854995728, -0.26200708746910095, -0.06931859999895096, 0.3420596122741699, 0.21151070296764374, -0.22564071416854858, -0.3928543031215668, -0.17192047834396362, 0.2626016438007355, -0.06935819238424301, -0.06165432557463646, -0.18479108810424805, -0.503738522529602, -0.03442920744419098, -0.15762393176555634, 0.1152828261256218, 0.03572043403983116, 0.006658793427050114, 0.23119652271270752, -0.3098658621311188 ]