html_url
stringlengths
48
51
title
stringlengths
5
268
comments
stringlengths
70
51.8k
body
stringlengths
0
29.8k
comment_length
int64
16
1.52k
text
stringlengths
164
54.1k
embeddings
sequence
https://github.com/huggingface/datasets/issues/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.32295507192611694, -0.1548747718334198, -0.09585146605968475, 0.21227671205997467, 0.17278388142585754, 0.20890825986862183, 0.031166115775704384, 0.22009478509426117, -0.043006133288145065, -0.05646970868110657, -0.07228467613458633, 0.10256943106651306, 0.26303717494010925, -0.028435850515961647, -0.1015668585896492, 0.25914430618286133, 0.07518613338470459, -0.15328991413116455, -0.13400299847126007, 0.0937623381614685, -0.04535924270749092, 0.12738634645938873, -0.15220288932323456, -0.15180720388889313, -0.25158455967903137, -0.08133748173713684, -0.11239499598741531, -0.013346783816814423, -0.24176408350467682, -0.3136619031429291, 0.22177822887897491, 0.19771482050418854, -0.06703322380781174, 0.6311790943145752, -0.0001082193193724379, -0.16610658168792725, 0.297005832195282, 0.06070031225681305, -0.4434759020805359, -0.5188806653022766, -0.21586140990257263, -0.18760214745998383, 0.024374254047870636, 0.018410980701446533, 0.13358557224273682, 0.07640641182661057, 0.06715529412031174, -0.360951691865921, 0.3123515844345093, 0.3766123354434967, 0.2216305136680603, 0.2938494384288788, 0.18556323647499084, -0.10556598752737045, 0.15518221259117126, 0.023680031299591064, 0.08088687062263489, 0.4364553987979889, 0.14423751831054688, -0.13474969565868378, 0.16966137290000916, 0.0660865306854248, -0.09954289346933365, 0.22067737579345703, -0.11142613738775253, -0.008921674452722073, 0.18440359830856323, -0.4553859531879425, -0.0359131395816803, 0.12947231531143188, 0.8906868696212769, -0.03976839780807495, -0.37601423263549805, -0.296823650598526, 0.13374067842960358, 0.02706865780055523, 0.4262501001358032, 0.42833223938941956, -0.3859821856021881, 0.23892742395401, -0.26632317900657654, -0.022859567776322365, 0.0520486906170845, 0.33684974908828735, 0.09472206234931946, -0.022937394678592682, -0.007630899548530579, 0.19022655487060547, 0.19247004389762878, -0.04769302159547806, 0.3261297941207886, -0.3512670397758484, 0.025116080418229103, -0.0928473249077797, -0.38121718168258667, -0.08577136695384979, 0.013808630406856537, 0.17820295691490173, 0.16652587056159973, 0.05689185857772827, -0.03615036606788635, -0.2665974497795105, -0.15613049268722534, 0.15700529515743256, 0.4282906651496887, 0.016672801226377487, -0.035877130925655365, 0.14702294766902924, 0.22359323501586914, -0.05978028103709221, -0.045406341552734375, 0.07352389395236969, 0.05018442124128342, -0.03424236550927162, 0.10984303057193756, -0.09828758984804153, 0.2976776361465454, -0.16935892403125763, -0.25740841031074524, -0.02964996173977852, 0.15538525581359863, -0.11377580463886261, -0.25343140959739685, 0.17212402820587158, -0.4568338990211487, 0.30149024724960327, -0.07334885001182556, 0.10334953665733337, -0.3224067986011505, -0.37155377864837646, -0.07703261077404022, 0.017843089997768402, -0.25355297327041626, -0.1150001510977745, -0.047827303409576416, -0.08659078180789948, 0.055659517645835876, 0.2549181580543518, -0.0034712105989456177, -0.3169320225715637, -0.002110779285430908, -0.23429711163043976, -0.09617669135332108, 0.22818410396575928, -0.08994270861148834, 0.4282735586166382, 0.05636417120695114, 0.13155390322208405, -0.056719858199357986, -0.0037879422307014465, -0.3410363793373108, -0.28454869985580444, -0.13759920001029968, 0.24813692271709442, -0.22556941211223602, -0.2428172528743744, -0.1524554193019867, -0.08708731830120087, 0.12952251732349396, 0.04389355704188347, -0.09516001492738724, -0.03794606029987335, 0.12157396972179413, -0.11298603564500809, -0.08052345365285873, 0.3380511403083801, -0.4335286319255829, 0.2870419919490814, -0.26118025183677673, 0.06535070389509201, 0.23869505524635315, 0.29525649547576904, -0.2074877917766571, 0.020777668803930283, -0.25333157181739807, -0.14450614154338837, 0.2831653952598572, -0.16603729128837585, -0.7092907428741455, 0.06703275442123413, -0.3865571618080139, 0.05449336767196655, -0.09515660256147385, 0.26934516429901123, 0.23800769448280334, -0.132806196808815, 0.0359671451151371, 0.4281701445579529, -0.24065423011779785, 0.06881184130907059, -0.38967379927635193, -0.2089085578918457, 0.05800741910934448, 0.12211349606513977, -0.06808200478553772, 0.038422804325819016, -0.14750155806541443, -0.03060568869113922, 0.30821678042411804, 0.39101162552833557, 0.09567306935787201, 0.30663222074508667, -0.008559443056583405, 0.26781827211380005, 0.017575042322278023, -0.16690734028816223, -0.36979544162750244, 0.1816893219947815, 0.47220703959465027, 0.06372960656881332, -0.2675579786300659, -0.038968246430158615, -0.4558925926685333, 0.008036868646740913, -0.018616829067468643, 0.04512004554271698, 0.06060492992401123, 0.20658491551876068, 0.2361152172088623, 0.20357871055603027, -0.018946684896945953, 0.5488881468772888, 0.047995999455451965, 0.29369035363197327, -0.1253660023212433, 0.1977767050266266, -0.17986631393432617, -0.12050892412662506, 0.18510977923870087, -0.3631322979927063, 0.181633859872818, -0.2229933738708496, -0.17260399460792542, 0.3127634823322296, 0.054052259773015976, 0.19438469409942627, 0.047730784863233566, -0.21528013050556183, 0.26178300380706787, -0.14476098120212555, -0.14802508056163788, 0.40778982639312744, 0.10122233629226685, 0.059216149151325226, -0.2254852056503296, 0.00572533905506134, 0.21134284138679504, 0.17350444197654724, -0.2585219740867615, 0.13319239020347595, 0.10471117496490479, -0.004723347723484039, 0.2456095814704895, -0.09349115192890167, 0.33879750967025757, -0.24894706904888153, 0.10249298810958862, -0.16535678505897522, 0.07179400324821472, 0.3274756669998169, 0.31015968322753906, 0.054316941648721695, -0.20264369249343872, 0.2211819589138031, 0.08654548972845078, -0.12842656672000885, -0.018728366121649742, 0.43581584095954895, 0.26321691274642944, 0.1839120239019394, 0.2763884961605072, -0.06526785343885422, -0.14045478403568268, -0.14866791665554047, 0.1811482012271881, 0.020121105015277863, -0.0072499774396419525, -0.046074554324150085, 0.13014532625675201, -0.0028619980439543724, -0.10052937269210815, -0.3409174978733063, 0.16318489611148834, 0.30608120560646057, -0.027006758376955986, -0.014439636841416359, -0.3174678087234497, -0.1755043864250183, 0.2243022322654724, -0.050729554146528244, -0.2910989224910736, -0.544131875038147, -0.06664573401212692, 0.27324777841567993, -0.06217282637953758, 0.07195992022752762, -0.10983254015445709, -0.11642353236675262, 0.37500855326652527, -0.1574857383966446, -0.023602694272994995, -0.12773290276527405, 0.017501620575785637, 0.10863025486469269, 0.23450911045074463, -0.20081490278244019, 0.3059837520122528, -0.2675749361515045, -0.2694888114929199, -0.4199398159980774, -0.0039958655834198, 0.020578861236572266, -0.1766991913318634, 0.27040553092956543, -0.17384549975395203, 0.469563364982605, 0.10409796237945557, 0.13716822862625122, 0.11682579666376114, -0.19854429364204407, -0.07143750786781311, -0.07630684971809387, 0.08818238973617554, 0.15463609993457794, -0.06201404333114624, -0.3198416531085968, -0.2525848150253296, -0.3489465117454529, 0.14292091131210327, -0.1798456460237503, -0.010337047278881073, 0.08102545887231827, 0.19577088952064514, -0.004221018403768539, -0.06974399834871292, 0.10014977306127548, -0.20808376371860504, -0.4533274173736572, 0.4969058930873871, -0.07525068521499634, -0.2108905017375946, 0.06717433035373688, 0.2153128683567047, -0.034747060388326645, 0.25234198570251465, -0.69853675365448, 0.1177356168627739, -0.34172847867012024, 0.23115846514701843, -0.0959615409374237, -0.09153985232114792, 0.18491703271865845, -0.4445739984512329, -0.13775727152824402, 0.05780027061700821, 0.015867888927459717, -0.11996456235647202, 0.18289321660995483, 0.4253915548324585, -0.1589238941669464, 0.23614242672920227, 0.009674716740846634, 0.14785397052764893, 0.1611282080411911, 0.09447456896305084, 0.1329370141029358, 0.09862621873617172, 0.31163299083709717, 0.038288187235593796, -0.23671895265579224, -0.008221548981964588, -0.05215780436992645, -0.16884523630142212, 0.05568394809961319, 0.0042462823912501335, -0.19783759117126465, -0.17288076877593994, -0.04914163053035736, -0.30310124158859253, -0.28267642855644226, -0.0783570185303688, -0.20051251351833344, -0.024578198790550232, 0.2768309414386749, 0.09612996131181717, 0.027089647948741913, -0.2244979739189148, -0.06824056804180145, 0.022305861115455627, -0.03164965659379959, -0.18805116415023804, -0.4782494604587555, 0.16400718688964844, -0.3637949824333191, 0.21388745307922363, -0.07821519672870636, 0.2673683762550354, -0.060145676136016846, 0.06914836168289185, 0.18002811074256897, 0.009743383154273033, 0.5972943902015686, -0.12286976724863052, 0.07111610472202301, -0.042120806872844696, 0.2663247585296631, -0.3959362804889679, -0.07732276618480682, 0.1307685226202011, 0.237125426530838, 0.4672713577747345, -0.07708904147148132, -0.2989767789840698, 0.039382122457027435, 0.010947516188025475, 0.3277231752872467, 0.08523450791835785, -0.43797844648361206, 0.04094819352030754, -0.15643414855003357, -0.22099225223064423, 0.1038958877325058, 0.09664458781480789, 0.0743279680609703, -0.01876949891448021, -0.19254592061042786, 0.215898796916008, 0.13838863372802734, 0.10509958863258362, -0.11866310238838196, 0.22499629855155945, -0.28835329413414, 0.456615149974823, 0.11703185737133026, -0.17513443529605865, 0.31433039903640747, 0.7368864417076111, 0.24885429441928864, -0.4469802975654602, 0.07109923660755157, -0.02047966793179512, -0.13050854206085205, 0.30006837844848633, 0.06142506003379822, -0.03964181989431381, -0.21858440339565277, 0.4220646023750305, -0.021240517497062683, 0.15746626257896423, 0.29102587699890137, 0.03611261397600174, -0.4399992525577545, -0.45560386776924133, 0.16722062230110168, 0.09910884499549866, 0.03981369733810425, 0.7080280780792236, -0.10606245696544647, 0.1349107027053833, 0.2072746753692627, -0.0953415259718895, 1.0428037643432617, -0.2065400928258896, 0.14182330667972565, 0.039207860827445984, -0.09409718215465546, 0.4687248170375824, -0.3534323573112488, 0.08537565916776657, -0.04336567595601082, 0.030495457351207733, 0.03440423309803009, -0.08453323692083359, -0.18178164958953857, 0.3168216943740845, -0.28181344270706177, 0.1816871017217636, -0.23669777810573578, 0.12145249545574188, -0.15761001408100128, 0.1928669512271881, -0.3748885691165924, -0.024316035211086273, -0.1379537284374237, 0.24955293536186218, 0.0385158471763134, 0.23643775284290314, 0.025989368557929993, 0.12129395455121994, -0.12470369040966034, -0.05372051149606705, -0.6156314015388489, 0.05174580216407776, -0.16980740427970886, -0.03851454332470894, -0.38000354170799255, -0.23482587933540344, -0.06059274822473526, 0.15361575782299042, 0.11285469681024551, 0.21161474287509918, -0.04903343319892883, 0.24278046190738678, -0.14403247833251953, -0.043915942311286926, -0.04717974364757538, -0.18070928752422333, 0.1273680329322815, 0.02319779247045517, -0.3375999629497528, 0.22210446000099182, -0.05651434138417244, -0.16358250379562378, 0.23099946975708008, 0.2578210234642029, 0.09681865572929382, -0.10434337705373764, 0.060570452362298965, -0.08695113658905029, 0.15474416315555573, -0.2690960466861725, 0.17428629100322723, 0.2979969382286072, 0.15704107284545898, 0.22754952311515808, -0.1475706696510315, -0.33829766511917114, -0.3909547030925751, 0.38645535707473755, 0.03568989783525467, -0.08698345720767975, 0.2533663511276245, 0.22305764257907867, -0.3960118889808655, -0.3125070333480835, 0.11027655750513077, -0.5467653870582581, -0.3165748715400696, 0.2736467123031616, -0.42071229219436646, 0.2876583933830261, -0.043381720781326294, -0.15753290057182312, 0.21233458817005157, 0.08395357429981232, 0.1333034187555313, -0.5559976100921631, -0.10510852187871933, -0.11521559953689575, -0.278617262840271, 0.031419552862644196, -0.11339736729860306, -0.14512717723846436, 0.23148491978645325, -0.045520320534706116, -0.33303365111351013, 0.10121235996484756, -0.248874694108963, 0.12804245948791504, 0.2624688744544983, -0.09278080612421036, 0.34426194429397583, -0.13488276302814484, 0.11497078835964203, 0.1428753137588501, -0.1397121697664261, -0.18040215969085693, -0.013779181987047195, 0.11844532936811447, -0.10724475234746933, -0.12021610885858536, 0.096537284553051, -0.4541836380958557, -0.08196717500686646, 0.07036048918962479, -0.01918470673263073, 0.09943916648626328, 0.09887753427028656, -0.22017918527126312, 0.17303675413131714, -0.05240354686975479, -0.07016012817621231, 0.16506074368953705, -0.07728070020675659, 0.5235565304756165, 0.20178291201591492, 0.2585536241531372, 0.1099744439125061, 0.045943424105644226, -0.5424669981002808, -0.016670599579811096, -0.06235559284687042, 0.04094365984201431, 0.43547073006629944, -0.25624221563339233, 0.031166311353445053, 0.30484873056411743, 0.4342501163482666, 0.5167416334152222, -0.020780647173523903, -0.18357490003108978, 0.3832830488681793, 0.29855039715766907, -0.015960795804858208, -0.15106886625289917, 0.2647128105163574, 0.17172077298164368, -0.007141537964344025, 0.1411253809928894, -0.03285323455929756, -0.048201821744441986, 0.12857025861740112, 0.2093431055545807, 0.6953505277633667, 0.03865411505103111, 0.22733761370182037, 0.1782868206501007, 0.13881328701972961, -0.028627347201108932, 0.46835780143737793, 0.24742795526981354, 0.025302208960056305, 0.1073257178068161, -0.1378978192806244, -0.03692662715911865, 0.0003928765654563904, 0.14077359437942505, -0.11275861412286758, -0.3116641044616699, 0.04225443676114082, 0.21483716368675232, -0.23251357674598694, -0.029979631304740906, 0.13224655389785767, 0.17980650067329407, -0.2827196419239044, -0.167620450258255, -0.16447781026363373, 0.2919861376285553, 0.06412296742200851, 0.2669750452041626, 0.2639371156692505, -0.09237806499004364, -0.16877387464046478, 0.08136504888534546, 0.037109069526195526, -0.22847314178943634, 0.39853397011756897, 0.2368309199810028, 0.13046930730342865, -0.5860459208488464, -0.05408089607954025, -0.05302110314369202, 0.1957157403230667, -0.47798338532447815, 0.026410145685076714, 0.03056476265192032, -0.2674979865550995, -0.018598981201648712, 0.2658749222755432, 0.5785306692123413, 0.1724974513053894, -0.06613346934318542, 0.07944931089878082, -0.030738018453121185, -0.05512125790119171, -0.08009401708841324, 0.44037604331970215, 0.03437671810388565, -0.09340791404247284, 0.3708049952983856, 0.15272796154022217, -0.26079562306404114, 0.11642076075077057, 0.09443700313568115, 0.26666322350502014, -0.24548377096652985, -0.030716292560100555, -0.036030322313308716, -0.10371311753988266, -0.32336118817329407, -0.21969890594482422, -0.20767825841903687, 0.010185334831476212, 0.5007896423339844, -0.33257195353507996, -0.006365959532558918, -0.2588772177696228, 0.12012256681919098, -0.11173388361930847, 0.32750409841537476, 0.5890836119651794, 0.23209205269813538, -0.16203252971172333, -0.33756476640701294, -0.5112204551696777, 0.11021744459867477, -0.5844733715057373, -0.19858171045780182, -0.14814098179340363, 0.4136400818824768, 0.1261541098356247, 0.41577082872390747, 0.3685454726219177, 0.11260118335485458, -0.3510934114456177, 0.42303791642189026, -0.3570309579372406, -0.3375178575515747, -0.02062147855758667, 0.036857396364212036, 0.05415434390306473, -0.3038409352302551, 0.19736617803573608, -0.2808122932910919, 0.01787371188402176, -0.1091543585062027, -0.1492460072040558, 0.17509578168392181, -0.038271382451057434, 0.5005347728729248, 0.07380679994821548, 0.23180711269378662, 0.18095004558563232, -0.5287168025970459, -0.4906197190284729, -0.2379535436630249, -0.018839819356799126, -0.03217150270938873, 0.113835409283638, 0.34603822231292725, -0.3993893265724182, 0.08922378718852997, -0.1867889016866684, 0.20271924138069153, -0.08211864531040192, -0.23600392043590546, 0.1945284903049469, -0.22778378427028656, 0.002983182668685913, 0.3618306815624237, 0.03153515234589577, 0.22275030612945557, -0.017869628965854645, 0.20734068751335144, -0.24778203666210175, -0.35703039169311523, 0.2816215753555298, 0.10056920349597931, -0.4137587249279022, 0.05359239876270294, 0.17009587585926056, 0.11506842076778412, -0.0047735366970300674, -0.23954921960830688, 0.16500696539878845, 0.365357905626297, -0.013798326253890991, -0.2470390647649765, 0.15750209987163544, 0.0031553939916193485, 0.14861565828323364, -0.019963126629590988, 0.5151888132095337, 0.09584349393844604, -0.29338204860687256, 0.3243209421634674, -0.09788520634174347 ]
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.34433284401893616, -0.14099769294261932, -0.08831918239593506, 0.10771939158439636, 0.13446825742721558, 0.14192184805870056, 0.029093673452734947, 0.23051318526268005, -0.05004626512527466, -0.14884255826473236, -0.06510097533464432, 0.13194341957569122, 0.2865745723247528, 0.04486644268035889, -0.055188730359077454, 0.2586464583873749, 0.09156424552202225, -0.21184393763542175, -0.07096797227859497, 0.06414686888456345, -0.01599961891770363, 0.11668042838573456, -0.18662865459918976, -0.1631229668855667, -0.223613440990448, -0.025841722264885902, -0.1102018728852272, -0.09716806560754776, -0.21121396124362946, -0.2538018822669983, 0.24250908195972443, 0.1964346021413803, -0.10589892417192459, 0.5974950790405273, -0.00011017121869372204, -0.19012922048568726, 0.30145877599716187, 0.07492005825042725, -0.3920442759990692, -0.5111638903617859, -0.1665060818195343, -0.1499352604150772, 0.06775107979774475, 0.05895226448774338, 0.12190214544534683, 0.10881400108337402, 0.04313424229621887, -0.34569013118743896, 0.25247523188591003, 0.4062389135360718, 0.19744282960891724, 0.3186732530593872, 0.23568947613239288, -0.06500924378633499, 0.18895091116428375, 0.009073600172996521, 0.06127023696899414, 0.4360191524028778, 0.241387277841568, -0.14823758602142334, 0.28630781173706055, 0.02810262329876423, -0.12038496136665344, 0.24676768481731415, -0.10537832230329514, 0.008809053339064121, 0.14431199431419373, -0.45005470514297485, -0.06674365699291229, 0.16568374633789062, 0.8530223369598389, 0.038039859384298325, -0.4033244252204895, -0.28404486179351807, 0.1371210664510727, 0.018461326137185097, 0.37364304065704346, 0.4260645806789398, -0.4110420346260071, 0.17740538716316223, -0.2858320474624634, -0.008682341314852238, 0.016007520258426666, 0.3706650733947754, 0.10456405580043793, -0.033581897616386414, 0.056366682052612305, 0.2642195522785187, 0.1433647871017456, -0.044407978653907776, 0.2508082687854767, -0.3367398679256439, 0.05692940577864647, -0.083620086312294, -0.42666637897491455, -0.06965868175029755, 0.005450189113616943, 0.23711547255516052, 0.199317067861557, 0.01098259910941124, -0.036541953682899475, -0.20650380849838257, -0.12578079104423523, 0.14879262447357178, 0.390325665473938, -0.017384443432092667, -0.038220956921577454, 0.15595458447933197, 0.24827630817890167, -0.15214861929416656, -0.07256926596164703, 0.08172305673360825, 0.04988749325275421, -0.0067604910582304, 0.05523443594574928, -0.16088387370109558, 0.2735027074813843, -0.2745932638645172, -0.19095006585121155, -0.03401540219783783, 0.13569414615631104, -0.09710889309644699, -0.26487860083580017, 0.18212643265724182, -0.4788564443588257, 0.2605329751968384, -0.06544363498687744, 0.10633734613656998, -0.33264580368995667, -0.39250582456588745, -0.06179650127887726, 0.016522729769349098, -0.23318348824977875, -0.09920842945575714, -0.037682872265577316, -0.05094730481505394, 0.03693394362926483, 0.16245292127132416, 0.042984023690223694, -0.29289519786834717, 0.0006363335996866226, -0.1750112771987915, -0.1017821654677391, 0.18384237587451935, -0.14024153351783752, 0.4254392087459564, 0.02673380635678768, 0.18410292267799377, -0.06586465984582901, 0.05605115741491318, -0.2824711799621582, -0.24726450443267822, -0.11459477245807648, 0.2255193144083023, -0.26304781436920166, -0.3427591621875763, -0.19066226482391357, -0.03059006854891777, 0.17232745885849, 0.04544489458203316, -0.12566742300987244, -0.04347340017557144, 0.1271687150001526, -0.070954330265522, -0.08585833013057709, 0.30164411664009094, -0.5062196254730225, 0.291212260723114, -0.194013312458992, 0.1040053516626358, 0.2185685634613037, 0.2560478746891022, -0.1935179978609085, -0.02091699093580246, -0.202359139919281, -0.11257702112197876, 0.2611096501350403, -0.1710774004459381, -0.6848200559616089, 0.051965486258268356, -0.3113510310649872, 0.017857851460576057, -0.17787480354309082, 0.2989579737186432, 0.24754349887371063, -0.06318854540586472, 0.011418156325817108, 0.4559704661369324, -0.20546668767929077, 0.06136343628168106, -0.3999531865119934, -0.20404472947120667, 0.0406918078660965, 0.2002241015434265, 0.011811476200819016, -0.017857804894447327, -0.16792425513267517, -0.05608778074383736, 0.33445122838020325, 0.410845547914505, 0.09950459748506546, 0.2582985758781433, 0.01895182952284813, 0.2807391583919525, -0.00703241303563118, -0.17410722374916077, -0.3393329679965973, 0.18167415261268616, 0.5479779243469238, 0.07013116776943207, -0.21652467548847198, -0.0037393830716609955, -0.37841716408729553, 0.03113161213696003, 0.01227480173110962, 0.04929009824991226, 0.01648864895105362, 0.15531790256500244, 0.25970786809921265, 0.2316703349351883, -0.033296190202236176, 0.5538896322250366, 0.00018526241183280945, 0.3040786385536194, -0.08716776967048645, 0.2223832607269287, -0.17372286319732666, -0.12359738349914551, 0.17658673226833344, -0.3450005352497101, 0.1806226372718811, -0.20681002736091614, -0.15025049448013306, 0.29955384135246277, 0.04293201491236687, 0.09239236265420914, 0.03193504363298416, -0.19282226264476776, 0.2773079574108124, -0.15186332166194916, -0.18485552072525024, 0.3243629038333893, 0.10119173675775528, 0.029574669897556305, -0.25264596939086914, -0.003410235047340393, 0.21281780302524567, 0.22317665815353394, -0.22870054841041565, 0.1309569925069809, 0.06966715306043625, 0.032492268830537796, 0.19438768923282623, 0.014469742774963379, 0.3520644009113312, -0.28597813844680786, 0.08150622248649597, -0.17786820232868195, -0.0075533390045166016, 0.35571926832199097, 0.34316733479499817, 0.08433851599693298, -0.21393442153930664, 0.2109951376914978, 0.11866319179534912, -0.15276509523391724, 0.0064593348652124405, 0.3508168160915375, 0.26078253984451294, 0.1872294694185257, 0.2359098345041275, -0.10300032049417496, -0.180516317486763, -0.15315458178520203, 0.14409175515174866, 0.04763602465391159, -0.04206284135580063, -0.08481273800134659, 0.12747478485107422, -0.029842622578144073, -0.07005100697278976, -0.38752511143684387, 0.15509048104286194, 0.3091115355491638, 0.01009538397192955, -0.04074510186910629, -0.23865732550621033, -0.1384449005126953, 0.23395892977714539, -0.11198768019676208, -0.3209643065929413, -0.5685396194458008, -0.08827217668294907, 0.24177896976470947, -0.051728203892707825, 0.07450363039970398, -0.14126862585544586, -0.16991277039051056, 0.3960916996002197, -0.23231147229671478, 0.029600270092487335, -0.2021951526403427, -0.012911103665828705, 0.0996214747428894, 0.22638067603111267, -0.1435125470161438, 0.29541125893592834, -0.21676945686340332, -0.2845125198364258, -0.40605708956718445, -0.06274726241827011, 0.01891219988465309, -0.19319628179073334, 0.3072677254676819, -0.2622005343437195, 0.4708538055419922, 0.02971486747264862, 0.19165734946727753, 0.11113543063402176, -0.21692483127117157, -0.05935569107532501, -0.08596613258123398, 0.06157757714390755, 0.10417034476995468, -0.024069592356681824, -0.29711827635765076, -0.278585284948349, -0.3193436861038208, 0.19209401309490204, -0.12849368155002594, -0.057202212512493134, 0.08822645246982574, 0.23023487627506256, 0.0005929316394031048, -0.08599726110696793, 0.09640812128782272, -0.18587571382522583, -0.4200665056705475, 0.5475696325302124, -0.0646042451262474, -0.23592396080493927, 0.09556874632835388, 0.23885299265384674, -0.06941454112529755, 0.26518869400024414, -0.6985398530960083, 0.10343263298273087, -0.34456250071525574, 0.2580445408821106, -0.06913244724273682, -0.17568618059158325, 0.18533283472061157, -0.513716459274292, -0.10900165140628815, 0.07570540904998779, 0.031174413859844208, -0.07867825776338577, 0.1408202350139618, 0.39283502101898193, -0.11350417882204056, 0.2219337821006775, 0.0011656470596790314, 0.16335895657539368, 0.14114691317081451, 0.03616552799940109, 0.08606629818677902, 0.10885964334011078, 0.2694686949253082, 0.013349533081054688, -0.24489587545394897, 0.04329334944486618, -0.02458260953426361, -0.13019520044326782, 0.0362735390663147, -0.02280181273818016, -0.2440941482782364, -0.17823725938796997, -0.03178628161549568, -0.2656557857990265, -0.25092029571533203, -0.07188861817121506, -0.17112982273101807, -0.059067122638225555, 0.350545197725296, 0.1751360297203064, 0.028638571500778198, -0.2856181263923645, -0.07591889798641205, -0.014111503958702087, -0.08571036905050278, -0.18879245221614838, -0.5308372378349304, 0.15197719633579254, -0.39586254954338074, 0.24774114787578583, -0.11284998059272766, 0.28134262561798096, -0.057308368384838104, 0.041285090148448944, 0.18407957255840302, -0.009179025888442993, 0.5779333114624023, -0.09784878045320511, 0.026522306725382805, -0.04646560922265053, 0.270194411277771, -0.4184790253639221, -0.10230638086795807, 0.17670130729675293, 0.2083655446767807, 0.5239055752754211, -0.03587905317544937, -0.3270118832588196, 0.12323062121868134, 0.0759911984205246, 0.33333954215049744, 0.16164101660251617, -0.43447279930114746, 0.040691349655389786, -0.11408524960279465, -0.19646094739437103, 0.14500385522842407, 0.06933985650539398, 0.0846051350235939, -0.04927805811166763, -0.19608986377716064, 0.2146626114845276, 0.13629913330078125, 0.08595594763755798, -0.11181564629077911, 0.18462195992469788, -0.33888283371925354, 0.4967479705810547, 0.09810984879732132, -0.1820317655801773, 0.29650548100471497, 0.6978912353515625, 0.2273455560207367, -0.47421497106552124, 0.029900290071964264, -0.05654270201921463, -0.09248492866754532, 0.3000580072402954, 0.0675782710313797, -0.026383139193058014, -0.21501101553440094, 0.4110400676727295, 0.07907049357891083, 0.19839902222156525, 0.2396908402442932, 0.08640079945325851, -0.47091808915138245, -0.4800221025943756, 0.14045776426792145, 0.0652400553226471, 0.02557498961687088, 0.7254693508148193, -0.10114292800426483, 0.18644966185092926, 0.24296702444553375, -0.11385894566774368, 1.0272655487060547, -0.20834095776081085, 0.1298525333404541, 0.008440379053354263, -0.09490761160850525, 0.4633690416812897, -0.3317200541496277, 0.0691339373588562, -0.06282877177000046, 0.0812855213880539, 0.06802885234355927, -0.06846064329147339, -0.17823639512062073, 0.3203909993171692, -0.2527102828025818, 0.1336236447095871, -0.16565465927124023, 0.141855850815773, -0.15555749833583832, 0.22589921951293945, -0.29607173800468445, -0.016166698187589645, -0.06942208856344223, 0.23296025395393372, -0.012522228062152863, 0.2096317708492279, 0.05718892812728882, 0.13086552917957306, -0.22419458627700806, -0.03929009288549423, -0.6747106909751892, 0.05349431186914444, -0.11911880224943161, -0.05416110157966614, -0.34417569637298584, -0.2679920792579651, -0.04995398968458176, 0.12428732216358185, 0.10853021591901779, 0.2949836552143097, -0.07227560877799988, 0.31721746921539307, -0.15738549828529358, -0.06843031942844391, 0.008983710780739784, -0.23845107853412628, 0.11200808733701706, 0.005992036312818527, -0.39475029706954956, 0.2043994665145874, -0.03802444040775299, -0.21800236403942108, 0.14716458320617676, 0.2849785089492798, 0.20829357206821442, -0.0738227516412735, 0.061934780329465866, -0.032831981778144836, 0.17005863785743713, -0.2620549499988556, 0.1565246731042862, 0.3397984504699707, 0.15251556038856506, 0.2784982919692993, -0.12704555690288544, -0.339421808719635, -0.4096658527851105, 0.4108079671859741, 0.011102447286248207, -0.03996983915567398, 0.23744621872901917, 0.2874159812927246, -0.4115638732910156, -0.2906267046928406, 0.060826972126960754, -0.5332089066505432, -0.3351151645183563, 0.24903742969036102, -0.4125123918056488, 0.3651679754257202, -0.05055006593465805, -0.14699390530586243, 0.14692828059196472, 0.07750020921230316, 0.19686263799667358, -0.5906018614768982, -0.06263002008199692, -0.10935811698436737, -0.2917642891407013, 0.025507831946015358, -0.1097736731171608, -0.09305170178413391, 0.21420106291770935, -0.05523613840341568, -0.2938354015350342, 0.10413578152656555, -0.23431243002414703, 0.1285981833934784, 0.31872937083244324, -0.1083916500210762, 0.3753848373889923, -0.14325577020645142, 0.08878578245639801, 0.19327037036418915, -0.10474979132413864, -0.17106878757476807, 0.011099990457296371, 0.12297144532203674, -0.04849284887313843, -0.16175730526447296, 0.11116127669811249, -0.44279301166534424, -0.0904797613620758, 0.1024804562330246, -0.04717066511511803, 0.13145864009857178, 0.06538107991218567, -0.23334424197673798, 0.23940370976924896, -0.0071451663970947266, 0.0015382766723632812, 0.20369747281074524, -0.05337733030319214, 0.5051438808441162, 0.22512304782867432, 0.2564188241958618, 0.1778496652841568, 0.06642547249794006, -0.4852140545845032, -0.016063228249549866, -0.10810227692127228, 0.056637682020664215, 0.4679363965988159, -0.28626513481140137, 0.04925663396716118, 0.31049561500549316, 0.4150468111038208, 0.5625917315483093, 0.03138289973139763, -0.18462571501731873, 0.4165695309638977, 0.28022468090057373, -0.01112435944378376, -0.1266767829656601, 0.34468868374824524, 0.15876173973083496, 0.012002270668745041, 0.12860500812530518, -0.04943958669900894, -0.04306827113032341, 0.14446747303009033, 0.23528045415878296, 0.6867428421974182, 0.05690992623567581, 0.183684840798378, 0.10029815137386322, 0.11042244732379913, -0.04052327200770378, 0.4586597979068756, 0.2718210220336914, -0.00800970196723938, 0.14915961027145386, -0.17660978436470032, -0.13742907345294952, -0.02250959351658821, 0.11136691272258759, -0.08612144738435745, -0.2771996855735779, 0.02292719855904579, 0.18497177958488464, -0.24806809425354004, -0.036436229944229126, 0.16233915090560913, 0.1757764220237732, -0.22522546350955963, -0.14156560599803925, -0.15626531839370728, 0.28235331177711487, 0.11314041912555695, 0.26388925313949585, 0.24924927949905396, -0.11777211725711823, -0.1352325975894928, 0.10943253338336945, 0.05313362181186676, -0.29016023874282837, 0.3783888518810272, 0.23523858189582825, 0.11873422563076019, -0.6347622275352478, -0.013238556683063507, -0.1434110403060913, 0.16926166415214539, -0.45139893889427185, 0.008548203855752945, -0.03732827305793762, -0.23548313975334167, 0.019348224624991417, 0.1819727122783661, 0.5284034609794617, 0.16569136083126068, -0.08570264279842377, 0.13865649700164795, -0.05802401527762413, -0.04622157663106918, -0.0590849444270134, 0.4760381877422333, 0.08334512263536453, -0.08542117476463318, 0.4278463125228882, 0.12603934109210968, -0.2391672134399414, 0.13761767745018005, 0.07268290966749191, 0.2613369822502136, -0.27986425161361694, -0.08904769271612167, -0.02379031851887703, -0.14423947036266327, -0.4345557987689972, -0.1916848123073578, -0.19449454545974731, -0.011577676050364971, 0.4266686737537384, -0.32570183277130127, -0.04171347618103027, -0.3187479078769684, 0.1037226989865303, -0.1676359474658966, 0.3223068416118622, 0.5741571187973022, 0.27558663487434387, -0.16998431086540222, -0.2984004020690918, -0.4349106550216675, 0.07118287682533264, -0.5885074734687805, -0.17531554400920868, -0.19173964858055115, 0.46499142050743103, 0.13739149272441864, 0.38792693614959717, 0.3642197251319885, 0.09242216497659683, -0.39979878067970276, 0.4755356013774872, -0.3340262472629547, -0.2970173954963684, -0.049394652247428894, 0.0344093032181263, 0.07813944667577744, -0.2549125850200653, 0.1945788711309433, -0.2697488069534302, 0.003186538815498352, -0.15643323957920074, -0.24451225996017456, 0.18968527019023895, -0.04704314470291138, 0.5041048526763916, 0.06492945551872253, 0.3030162453651428, 0.2709481716156006, -0.4769490659236908, -0.49493908882141113, -0.24788732826709747, -0.022742170840501785, 0.037045858800411224, 0.032242994755506516, 0.34412190318107605, -0.34690865874290466, 0.03265444561839104, -0.13356421887874603, 0.21371036767959595, -0.14224815368652344, -0.3069441020488739, 0.21983933448791504, -0.2569904029369354, 0.02205527573823929, 0.40162259340286255, -0.017702989280223846, 0.15670593082904816, -0.03455539047718048, 0.1839783936738968, -0.27892571687698364, -0.3133026659488678, 0.2667180299758911, 0.03989168629050255, -0.39342930912971497, 0.03928761184215546, 0.09852077066898346, 0.17165327072143555, -0.003862569108605385, -0.23050612211227417, 0.10698271542787552, 0.395353764295578, -0.024819117039442062, -0.2134455442428589, 0.19076962769031525, 0.03783378750085831, 0.16859042644500732, -0.08266627043485641, 0.49056243896484375, 0.017423365265130997, -0.29012173414230347, 0.2927946448326111, -0.11835779994726181 ]
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.057439252734184265, -0.015885859727859497, 0.07422012090682983, 0.5506061911582947, 0.3027433753013611, -0.19356638193130493, 0.41470572352409363, 0.07691343128681183, 0.08254601061344147, 0.06389312446117401, -0.008926830254495144, 0.5863602757453918, 0.012283718213438988, -0.028452148661017418, 0.11384213715791702, -0.014679007232189178, 0.187394380569458, 0.08552835136651993, -0.124116912484169, -0.25602686405181885, -0.3155730068683624, 0.16885805130004883, -0.14607495069503784, 0.19019433856010437, -0.06997047364711761, 0.21094301342964172, -0.28220468759536743, 0.4675115644931793, 0.022766027599573135, -0.2501045763492584, 0.4729168117046356, -0.28092122077941895, 0.4408830404281616, 0.46458491683006287, -0.00011515610094647855, -0.009730946272611618, 0.4755377173423767, 0.037579476833343506, -0.2390369176864624, -0.6072431802749634, -0.16621288657188416, -0.2815757691860199, 0.4258595407009125, -0.19368290901184082, -0.06654201447963715, -0.11743622273206711, -0.22350670397281647, -0.16845424473285675, 0.41064757108688354, 0.4155718982219696, 0.17829343676567078, 0.1498643308877945, -0.21418245136737823, -0.16903118789196014, 0.3525311052799225, 0.17420236766338348, 0.04614853113889694, 0.4088490605354309, 0.00370807945728302, -0.2516213357448578, 0.10688116401433945, -0.0742010772228241, -0.13789960741996765, 0.032406289130449295, 0.25639909505844116, 0.21064594388008118, -0.058317266404628754, 0.0022793374955654144, 0.17975285649299622, 0.3070548176765442, 0.511680543422699, -0.0626179650425911, -0.30277207493782043, -0.09755541384220123, -0.03893519192934036, -0.11132940649986267, 0.2599179446697235, 0.0741586834192276, 0.01590290479362011, 0.1967168152332306, 0.11754821985960007, 0.20565947890281677, -0.06503380835056305, 0.4197383522987366, -0.14612719416618347, 0.16398504376411438, -0.13121169805526733, 0.08892500400543213, 0.01166488230228424, 0.16904900968074799, 0.6599964499473572, -0.07523133605718613, 0.047210659831762314, 0.3930090069770813, -0.1994348019361496, 0.12794555723667145, 0.3355500400066376, 0.18518230319023132, -0.05194852873682976, -0.053126655519008636, 0.3470773994922638, -0.1044924333691597, -0.18620896339416504, 0.007926277816295624, 0.36117470264434814, 0.19856160879135132, -0.3046007454395294, 0.21343569457530975, 0.18997196853160858, 0.2259812206029892, -0.0859130471944809, -0.16025084257125854, -0.24203626811504364, -0.20134715735912323, -0.1269371658563614, 0.1843211054801941, 0.3140102028846741, -0.3728863298892975, -0.2214428335428238, -0.058182425796985626, 0.03460963815450668, 0.18361720442771912, 0.21194589138031006, 0.5136289596557617, -0.2088438719511032, 0.5151554942131042, 0.022507552057504654, 0.2508968114852905, -0.0922638326883316, 0.17840276658535004, -0.2614133954048157, 0.06943841278553009, -0.1460299789905548, -0.11265084892511368, -0.04300995543599129, 0.021556159481406212, 0.25218749046325684, -0.009621778503060341, -0.1722259670495987, -0.3173290491104126, -0.34923332929611206, -0.4206423759460449, 0.08612699806690216, 0.07467275857925415, -0.03923959285020828, 0.09501495212316513, 0.2757532596588135, -0.09331372380256653, -0.2179805040359497, 0.1728488951921463, -0.22471481561660767, -0.4391546845436096, -0.32282474637031555, 0.13128720223903656, -0.2310706377029419, 0.04014689475297928, 0.0886218398809433, -0.27258893847465515, 0.058815766125917435, 0.3045937716960907, -0.13777971267700195, 0.12181483954191208, -0.3652857840061188, -0.2556677758693695, 0.44194358587265015, 0.6512075662612915, -0.4164172112941742, 0.22174522280693054, -0.26362377405166626, 0.07696205377578735, 0.4102804958820343, 0.1699589341878891, -0.3566012382507324, 0.38139188289642334, -0.11618051677942276, -0.1510990858078003, 0.3857576549053192, -0.5012977123260498, -0.37146368622779846, 0.599516749382019, -0.056073784828186035, -0.23752327263355255, -0.05141671746969223, -0.0200656745582819, -0.12403982877731323, 0.08449003845453262, 0.3112472593784332, 0.49831122159957886, 0.18648429214954376, 0.15233470499515533, -0.40688300132751465, -0.4395463764667511, -0.12645073235034943, 0.24806921184062958, -0.118607297539711, 0.05363510549068451, 0.2413356900215149, -0.39439326524734497, 0.30471155047416687, -0.059420857578516006, -0.21682021021842957, 0.4881593585014343, 0.3690142333507538, 0.0848214402794838, -0.0759773850440979, 0.19725152850151062, -0.23462516069412231, 0.22985228896141052, -0.061797332018613815, -0.1506754457950592, -0.12907090783119202, -0.003085814416408539, -0.4466371536254883, 0.09662366658449173, -0.2612616717815399, -0.1387728452682495, 0.05273733288049698, 0.1784127950668335, -0.00792294554412365, 0.07836034893989563, -0.19657301902770996, 0.15757396817207336, -0.12028307467699051, -0.17580381035804749, -0.12132653594017029, 0.23042868077754974, -0.08531197905540466, 0.07546886056661606, 0.06994781643152237, 0.4098208248615265, 0.2167421281337738, -0.03331633657217026, -0.06576097756624222, 0.3856571316719055, 0.1693178117275238, 0.28630098700523376, -0.11661887913942337, -0.38044190406799316, 0.20693595707416534, -0.06978125870227814, 0.09482729434967041, 0.03719496726989746, 0.2641211152076721, 0.1456112563610077, -0.20785343647003174, 0.15324895083904266, -0.11239039897918701, 0.06516889482736588, 0.04518026113510132, 0.000537235289812088, 0.5214228630065918, -0.24304914474487305, 0.034696340560913086, -0.31208717823028564, 0.2649814784526825, 0.404384046792984, 0.5120337009429932, 0.17545141279697418, -0.33314552903175354, -0.08029047399759293, 0.19670604169368744, 0.16121220588684082, 0.059239067137241364, 0.07054299116134644, -0.07835153490304947, -0.016879742965102196, -0.0027853697538375854, 0.46945467591285706, 0.4198947548866272, 0.11775112897157669, 0.14666296541690826, 0.16811567544937134, 0.06415712833404541, -0.16892008483409882, 0.2062520682811737, -0.047429680824279785, 0.2692142128944397, 0.05391315743327141, -0.01482924073934555, 0.30343976616859436, -0.12368204444646835, 0.026817772537469864, 0.002871273085474968, 0.2994595468044281, -0.32734552025794983, 0.06143084168434143, -0.37525779008865356, -0.1776738166809082, -0.14560632407665253, -0.33127090334892273, 0.20786379277706146, -0.13526304066181183, -0.32298070192337036, 0.03282669186592102, -0.1912079006433487, -0.03766937553882599, -0.12183350324630737, 0.05666777491569519, -0.059435710310935974, -0.27320995926856995, -0.20220808684825897, -0.17799805104732513, -0.5250953435897827, -0.07828198373317719, 0.3557383418083191, 0.15700852870941162, -0.08732014894485474, -0.17721842229366302, -0.013318703509867191, -0.09975837916135788, 0.12382040172815323, 0.022848542779684067, 0.17898616194725037, 0.6002942323684692, 0.171473890542984, 0.039560820907354355, 0.17908424139022827, -0.16263285279273987, 0.264568030834198, -0.25575193762779236, -0.16629867255687714, 0.006234731525182724, 0.09913205355405807, -0.11684498935937881, -0.19665375351905823, -0.13833743333816528, -0.37821242213249207, -0.2874899208545685, -0.03894943743944168, 0.09850139915943146, 0.1825949251651764, 0.18451333045959473, 0.21690581738948822, 0.23369742929935455, 0.11985109746456146, -0.07779347896575928, -0.16042560338974, -0.44170644879341125, 0.21584635972976685, -0.028256142511963844, -0.5365149974822998, -0.3180678188800812, -0.16497580707073212, 0.38787004351615906, -0.15240934491157532, -0.5176630020141602, -0.08886101841926575, -0.2314540594816208, 0.12019030749797821, -0.08136114478111267, -0.13041375577449799, 0.34633755683898926, -0.1021285131573677, -0.0298764668405056, -0.09780141711235046, -0.0786360576748848, 0.0038154274225234985, 0.18300065398216248, 0.08563084155321121, 0.147883340716362, 0.39215368032455444, -0.1356147825717926, 0.631462037563324, 0.02748940885066986, -0.05417162552475929, 0.5767685174942017, -0.16611650586128235, 0.44689127802848816, -0.1700376570224762, -0.39501357078552246, -0.29455578327178955, 0.013006359338760376, -0.24211642146110535, 0.31093692779541016, 0.05546167120337486, -0.34753355383872986, -0.36552366614341736, 0.021855972707271576, -0.4551159143447876, -0.17477811872959137, -0.15832500159740448, -0.2738882601261139, 0.021792255342006683, -0.1425587385892868, 0.1417827606201172, -0.07412856817245483, -0.037882089614868164, 0.021016035228967667, 0.031329117715358734, 0.03297025337815285, -0.06281471252441406, 0.12785997986793518, -0.032914455980062485, -0.43520915508270264, 0.10978797823190689, -0.047818735241889954, 0.4363664984703064, 0.006619114428758621, -0.28622353076934814, 0.07815292477607727, -0.05846067890524864, 0.6754683256149292, 0.022382870316505432, 0.1359008550643921, 0.18148714303970337, -0.021142158657312393, -0.6554039716720581, -0.029550185427069664, 0.12112322449684143, 0.0229194238781929, 0.07676208019256592, 0.7966448068618774, 0.10240942984819412, -0.12370414286851883, 0.025263523682951927, 0.08597739040851593, 0.01820388063788414, -0.4049772322177887, -0.34971117973327637, -0.3659108579158783, 0.09848199784755707, -0.1340126395225525, -0.08360505849123001, 0.3783419132232666, -0.021298246458172798, -0.15522928535938263, -0.08615011721849442, -0.20019516348838806, -0.2223159819841385, 0.10054236650466919, 0.3425103724002838, -0.01692609302699566, 0.27567175030708313, -0.0321042537689209, 0.3114456236362457, -0.17486360669136047, 0.6477407813072205, -0.11714062094688416, -0.3216337561607361, 0.07883937656879425, -0.32340824604034424, 0.09866154938936234, 0.2470766007900238, -0.14656201004981995, 0.04782598093152046, 0.01740153692662716, -0.2901133894920349, -0.03253113850951195, 0.1599934846162796, -0.027031952515244484, 0.025243204087018967, 0.0956064909696579, -0.22980448603630066, 0.5176447033882141, 0.11836065351963043, -0.11038094013929367, 0.3470821976661682, -0.555088222026825, -0.2694754898548126, 0.23093180358409882, 0.23963266611099243, 0.8387873768806458, -0.1660594791173935, 0.16180916130542755, 0.32060012221336365, -0.2457159161567688, 0.2124185860157013, 0.17302140593528748, -0.1323702484369278, -0.4516250193119049, -0.19490261375904083, 0.06923483312129974, -0.14575909078121185, 0.15589183568954468, -0.06421276926994324, 0.0811743289232254, 0.07789217680692673, -0.18189017474651337, 0.3544172942638397, 0.33187219500541687, 0.08350318670272827, 0.054602205753326416, -0.13417185842990875, -0.3800004720687866, 0.053745754063129425, 0.2156202346086502, 0.10673835873603821, -0.08132646977901459, 0.03501705080270767, -0.2643416225910187, -0.17049331963062286, 0.046856075525283813, 0.35535669326782227, -0.34302303194999695, 0.01825357787311077, -0.10767318308353424, -0.47118568420410156, -0.3164745271205902, 0.6356463432312012, 0.23033422231674194, 0.04929306358098984, -0.24968993663787842, 0.0883890837430954, 0.03573373332619667, 0.1797047108411789, -0.013868735171854496, -0.15860635042190552, -0.05130314081907272, -0.1195736676454544, -0.125287264585495, -0.19876736402511597, -0.23850156366825104, -0.17232882976531982, 0.17574959993362427, 0.3630547523498535, 0.19825153052806854, -0.002616780810058117, -0.3738721013069153, 0.0690089762210846, 0.3177501857280731, -0.20050209760665894, 0.11599206924438477, -0.01857205480337143, -0.0291249081492424, -0.1364462673664093, -0.16683650016784668, -0.46783310174942017, 0.019284751266241074, 0.5623623132705688, 0.006112830713391304, 0.5865510702133179, 0.4906971752643585, -0.058114681392908096, 0.09343492984771729, -0.15087562799453735, 0.2538246810436249, 0.09140615910291672, -0.14450892806053162, -0.18396393954753876, -0.18030676245689392, 0.012187570333480835, -0.11383667588233948, 0.09619397670030594, 0.34516602754592896, -0.10798362642526627, -0.11196336895227432, -0.6838931441307068, -0.44848284125328064, 0.040483277291059494, -0.18647152185440063, 0.06387090682983398, 0.07370349019765854, 0.1408950388431549, -0.0244402214884758, -0.25540879368782043, -0.22263668477535248, 0.2571769058704376, -0.4180104732513428, 0.019802723079919815, -0.14122788608074188, -0.04130467772483826, 0.24452246725559235, -0.01539967767894268, 0.15083329379558563, -0.16395419836044312, 0.07083423435688019, -0.18377864360809326, -0.10562090575695038, 0.1013326421380043, 0.085904061794281, -0.18475280702114105, -0.1455664485692978, -0.2703589200973511, -0.08906006813049316, -0.08554074168205261, -0.22526387870311737, 0.203904926776886, -0.04064512252807617, 0.09504197537899017, -0.1309645026922226, 0.3166349530220032, -0.20542961359024048, 0.34599569439888, -0.3354078531265259, 0.010913640260696411, 0.14989452064037323, 0.19738134741783142, 0.07087389379739761, -0.002660490572452545, 0.18824580311775208, -0.28349387645721436, -0.20060206949710846, 0.13941776752471924, 0.2105657160282135, -0.09219232201576233, 0.05995074287056923, 0.18986956775188446, 0.07456294447183609, 0.29245564341545105, -0.18366120755672455, 0.09922589361667633, 0.5471073389053345, 0.1454543024301529, -0.29374781250953674, -0.06042702496051788, -0.062863290309906, -0.10812069475650787, -0.01551797240972519, 0.18011754751205444, 0.12191829085350037, -0.2686046361923218, 0.08435159176588058, -0.060759417712688446, 0.4588407278060913, 0.09937961399555206, 0.1458260416984558, 0.3395938575267792, -0.2543950080871582, 0.162672221660614, -0.04289811849594116, 0.2295003980398178, 0.03367946296930313, 0.5187295079231262, 0.048608843237161636, -0.08067116141319275, -0.29989093542099, 0.40482333302497864, -0.07875243574380875, -0.641754686832428, 0.3375592827796936, 0.048576101660728455, -0.34389880299568176, -0.25752997398376465, -0.2667195796966553, 0.23724529147148132, -0.09334366023540497, 0.11502503603696823, -0.12764494121074677, 0.10207986831665039, -0.070574551820755, -0.2714786231517792, -0.4754413068294525, -0.15348078310489655, 0.1385408341884613, -0.03634835407137871, -0.009251788258552551, -0.19106625020503998, -0.08415420353412628, 0.10592211782932281, -0.21274550259113312, -0.20711444318294525, 0.1263236105442047, 0.31505265831947327, -0.127241313457489, -0.31639835238456726, 0.4282384216785431, -0.24561245739459991, 0.2148880511522293, -0.013960566371679306, -0.0502043291926384, 0.2021695375442505, 0.6500503420829773, -0.050027478486299515, -0.1874510943889618, 0.12737132608890533, -0.19518329203128815, -0.16541096568107605, 0.12448478490114212, 0.09869372844696045, 0.4059472382068634, 0.5674875974655151, 0.1458258330821991, -0.12572649121284485, 0.3826640844345093, 0.050228364765644073, 0.4492843449115753, -0.2906239628791809, 0.31946834921836853, -0.08976814895868301, -0.007834531366825104, -0.04424126446247101, 0.2483794391155243, -0.4166395664215088, 0.07398789376020432, 0.23093239963054657, -0.046946946531534195, 0.36814817786216736, 0.07150520384311676, 0.06086522340774536, 0.014621753245592117, 0.45133882761001587, 0.48408132791519165, 0.3376538157463074, -0.21963419020175934, -0.261114239692688, -0.6287822127342224, 0.12541669607162476, 0.033074453473091125, 0.10066245496273041, -0.036278996616601944, 0.174626886844635, -0.1181015595793724, 0.034803226590156555, -0.045157477259635925, 0.34804767370224, 0.0746769830584526, -0.003219161182641983, -0.18264789879322052, -0.3485901355743408, -0.395317018032074, 0.047314323484897614, -0.09429801255464554, -0.43568626046180725, -0.012179706245660782, 0.11429064720869064, 0.03364443778991699, 0.1058664321899414, -0.2598716616630554, -0.17448647320270538, 0.10397344082593918, 0.31861069798469543, 0.1113506481051445, 0.10917546600103378, 0.03125510364770889, 0.10024861246347427, -0.3792976140975952, -0.11528520286083221, -0.07372031360864639, 0.21653053164482117, 0.02787947654724121, -0.3506174087524414, -0.19000117480754852, 0.10971418023109436, -0.397458553314209, 0.1685299128293991, 0.08213990926742554, 0.11952473223209381, 0.004653383046388626, -0.16975371539592743, -0.0053001753985881805, -0.09393614530563354, -0.022213004529476166, 0.008434578776359558, -0.29146450757980347, 0.04134639352560043, -0.06851209700107574, -0.05350956320762634, 0.332034170627594, -0.4292966425418854, -0.05427955090999603, -0.002785939257591963, 0.18542522192001343, -0.052151985466480255, 0.11162479221820831, -0.056281596422195435, -0.1143694743514061, 0.47932326793670654, -0.09753600507974625, -0.0052543748170137405, -0.0017487984150648117, -0.17608390748500824, 0.2696338891983032, -0.10274335741996765, 0.17228803038597107, 0.020820245146751404, 0.006608327850699425, 0.00376337394118309, -0.35541290044784546 ]
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.4191695749759674, -0.006903856992721558, 0.005912661552429199, 0.023857850581407547, 0.12481725215911865, -0.32568830251693726, -0.2292778640985489, 0.4713348150253296, 0.0886649489402771, 0.24094633758068085, -0.24715478718280792, 0.4001298248767853, 0.08196694403886795, 0.13719360530376434, -0.022664673626422882, -0.1370156854391098, -0.027831070125102997, 0.13313047587871552, 0.0882360190153122, -0.005411054939031601, -0.47905391454696655, 0.19090613722801208, -0.1340043991804123, -0.01067199558019638, 0.24459494650363922, 0.03562047705054283, 0.25562646985054016, 0.21884045004844666, -0.3985927402973175, -0.14976494014263153, -0.13082511723041534, 0.14954929053783417, 0.022596891969442368, 0.08694477379322052, -0.00011308879038551822, 0.026687011122703552, 0.2988416850566864, -0.195408433675766, -0.2381746619939804, -0.2629084587097168, -0.11785699427127838, -0.08894370496273041, 0.08253060281276703, -0.0007842406630516052, 0.10028351098299026, -0.7044273018836975, 0.020754288882017136, -0.8813657164573669, 0.5043368935585022, 0.2567867040634155, 0.12201240658760071, 0.1561301350593567, 0.059626538306474686, 0.0020172728691250086, 0.27504807710647583, -0.09951405227184296, -0.19076040387153625, -0.10441522300243378, 0.22032777965068817, 0.33213189244270325, -0.1137181892991066, 0.4235125482082367, -0.18983347713947296, -0.18895195424556732, 0.3292142450809479, -0.250993937253952, 0.07508295774459839, -0.22733518481254578, -0.18073192238807678, 0.10747037827968597, 0.1452673226594925, -0.1285865604877472, -0.5220017433166504, -0.18545660376548767, 0.06885810196399689, -0.512043297290802, 0.13855409622192383, 0.359174519777298, 0.04782592132687569, 0.16164571046829224, -0.08509299904108047, -0.2431393265724182, 0.007068820297718048, 0.04689447581768036, 0.19727319478988647, 0.2863028049468994, -0.08038315176963806, 0.001711774617433548, 0.38521599769592285, 0.1243220791220665, 0.1140473410487175, -0.2616315186023712, -0.02759196236729622, -0.09735644608736038, -0.2123512178659439, 0.02729276567697525, 0.13814780116081238, 0.057102054357528687, 0.08165796101093292, 0.436303973197937, 0.2570685148239136, 0.2995758354663849, -0.12123511731624603, 0.02566845715045929, 0.05121520161628723, 0.15650135278701782, -0.021838925778865814, -0.1820714920759201, 0.037639789283275604, 0.18231624364852905, 0.21867674589157104, -0.2348977029323578, 0.24535953998565674, -0.16518040001392365, -0.36472365260124207, 0.322506844997406, 0.6144120693206787, 0.007971499115228653, -0.1655445545911789, -0.09979252517223358, -0.1505316197872162, -0.21090976893901825, 0.053346846252679825, 0.08979308605194092, -0.06469976902008057, 0.3352431356906891, 0.01727459579706192, 0.31135159730911255, -0.214247927069664, -0.017415618523955345, -0.18733033537864685, -0.05472586676478386, -0.13139529526233673, 0.22167247533798218, 0.05506192520260811, -0.7223925590515137, 0.039294637739658356, 0.22719155251979828, 0.5497028827667236, -0.09756828844547272, 0.1636149287223816, -0.04679425060749054, 0.2022964358329773, 0.24468685686588287, -0.07804170250892639, -0.05809757113456726, 0.23795771598815918, 0.05526269972324371, -0.22827330231666565, 0.175703763961792, -0.5017322301864624, -0.23789195716381073, -0.10617242753505707, 0.15848900377750397, -0.020717216655611992, 0.19469931721687317, 0.025213070213794708, 0.04116477072238922, -0.4355076849460602, -0.43087130784988403, 0.03437337279319763, -0.02433144673705101, -0.27500805258750916, -0.12445756793022156, 0.32722046971321106, 0.02927437424659729, 0.04159590229392052, -0.21974986791610718, -0.16320139169692993, 0.17865462601184845, 0.5669167041778564, 0.2861436903476715, -0.3046617805957794, -0.3236413896083832, -0.21751801669597626, 0.035434454679489136, 0.5478261113166809, -0.22866223752498627, -0.4149608016014099, 0.37349069118499756, 0.007339946925640106, 0.39613500237464905, 0.28596019744873047, -0.3961555063724518, 0.4834240972995758, -0.1646110862493515, 0.14457882940769196, 0.2205342948436737, 0.13592173159122467, 0.1277274489402771, -0.24632427096366882, -0.09445104002952576, 0.09221865236759186, -0.08831197768449783, -0.10494288802146912, 0.1127612292766571, -0.009959660470485687, -0.05841884762048721, 0.1922488510608673, -0.08923031389713287, 0.04228857159614563, -0.24041862785816193, 0.1896112561225891, -0.026508085429668427, -0.027018819004297256, 0.012716971337795258, 0.11640506982803345, -0.09617462754249573, -0.15983808040618896, -0.1996873915195465, -0.13205841183662415, -0.24835066497325897, -0.08095843344926834, 0.023857614025473595, 0.03419630974531174, -0.22375673055648804, 0.06486130505800247, 0.1565394401550293, -0.2515931725502014, 0.039119135588407516, -0.2730352282524109, 0.23720680177211761, 0.020657332614064217, 0.022600440308451653, -0.25852784514427185, -0.028027765452861786, 0.15244843065738678, -0.03544403612613678, 0.07424599677324295, -0.029815979301929474, 0.20515212416648865, -0.13112716376781464, -0.3151763379573822, 0.44241073727607727, -0.06842666119337082, 0.3711242079734802, -0.2005504071712494, 0.044054046273231506, 0.2904272675514221, -0.32422807812690735, 0.1412653923034668, 0.5436945557594299, 0.1446818858385086, 0.18299740552902222, -0.11142507940530777, 0.34219086170196533, 0.029989756643772125, -0.04500202089548111, 0.1369953751564026, -0.05215505510568619, -0.012032868340611458, 0.007030166685581207, -0.5576584339141846, 0.039945729076862335, -0.10612490773200989, 0.15983058512210846, 0.3208058476448059, 0.14018459618091583, -0.14375029504299164, -0.08270298689603806, 0.5054669380187988, -0.16502930223941803, -0.17050695419311523, 0.4521295428276062, 0.024848848581314087, -0.24511569738388062, 0.14359381794929504, 0.1345316767692566, 0.6052960753440857, 0.2483295500278473, 0.1698981374502182, 0.10756070911884308, 0.10869020223617554, -0.24640236794948578, 0.5393251180648804, 0.15734592080116272, 0.1208358183503151, 0.20463940501213074, 0.08830089867115021, 0.3496355712413788, -0.47632306814193726, -0.15779311954975128, -0.01889108307659626, -0.3481450378894806, -0.27099093794822693, 0.15047836303710938, -0.5044307112693787, -0.16206318140029907, 0.11403901875019073, 0.11265823245048523, 0.08048386126756668, -0.18302150070667267, 0.15745298564434052, 0.21602275967597961, -0.2817358374595642, 0.35895538330078125, -0.2321251481771469, 0.3441580533981323, -0.061100006103515625, -0.2766939401626587, -0.16153201460838318, 0.10910920053720474, 0.10535833984613419, 0.052579883486032486, -0.0900602713227272, -0.44458577036857605, 0.1202622503042221, 0.2227395921945572, 0.049090005457401276, -0.20630180835723877, -0.19728416204452515, 0.0614701509475708, -0.06342029571533203, -0.12607347965240479, -0.05455724895000458, -0.1704527586698532, -0.0619698092341423, -0.4755953252315521, 0.08862153440713882, -0.26059937477111816, 0.09252510219812393, -0.22699950635433197, -0.07095631211996078, 0.28122344613075256, -0.4269396662712097, -0.14828363060951233, 0.053946882486343384, -0.5750753879547119, 0.363308310508728, -0.3330132067203522, 0.10322879254817963, 0.3552737534046173, -0.1464027613401413, -0.2642795741558075, 0.11230636388063431, 0.10839684307575226, -0.36499232053756714, -0.6582285761833191, 0.3468931317329407, -0.12035571783781052, -0.32563087344169617, -0.13684840500354767, 0.031241409480571747, -0.027497436851263046, 0.5976179838180542, -0.07176189124584198, 0.07248163223266602, -0.1209237277507782, -0.1464294046163559, -0.17313987016677856, -0.06129888445138931, 0.3393908739089966, 0.1769471913576126, -0.2226407825946808, -0.3091016113758087, -0.10570618510246277, -0.11214268952608109, 0.16431590914726257, 0.20355239510536194, 0.060409802943468094, 0.21593445539474487, -0.036429502069950104, 0.22968143224716187, 0.11895926296710968, 0.37985873222351074, 0.615140438079834, 0.29079365730285645, 0.4680995047092438, -0.12080841511487961, -0.06920462101697922, 0.2056083083152771, -0.1757378876209259, -0.023804906755685806, 0.10300787538290024, 0.11635845899581909, -0.11730862408876419, -0.1242898628115654, 0.13890722393989563, -0.34192490577697754, -0.3283255100250244, 0.027463704347610474, -0.08664613962173462, 0.13993385434150696, 0.05375581607222557, 0.25111818313598633, -0.1893436759710312, 0.15278151631355286, 0.091698557138443, 0.23831462860107422, 0.6755876541137695, -0.15241125226020813, 0.10701364278793335, 0.3319435119628906, -0.40489494800567627, 0.35040563344955444, -0.12242554128170013, 0.018325848504900932, -0.03971458226442337, -0.20397809147834778, 0.05018649995326996, 0.1413898468017578, 0.34630924463272095, -0.07633457332849503, -0.26478201150894165, 0.28321272134780884, -0.04061858355998993, -0.5618646740913391, 0.0392824225127697, -0.05225500464439392, -0.13687698543071747, -0.011773694306612015, 0.3609432280063629, -0.2811944782733917, -0.3290461003780365, -0.04025886207818985, -0.2512143850326538, 0.15118002891540527, -0.06449224799871445, -0.20484820008277893, -0.36170870065689087, -0.1570332646369934, -0.28120478987693787, 0.15255862474441528, 0.25507792830467224, -0.25279155373573303, -0.010883893817663193, -0.1123664528131485, -0.005325987935066223, 0.34477388858795166, -0.29168614745140076, 0.42915526032447815, 0.22510576248168945, -0.15020249783992767, -0.014623191207647324, 0.4382826089859009, -0.12710583209991455, 0.39876100420951843, 0.1898755133152008, -0.6032571196556091, 0.16462662816047668, 0.3104473650455475, 0.11715292185544968, 0.36497926712036133, -0.3255358636379242, -0.049420423805713654, -0.22896727919578552, 0.3229525089263916, -0.34552282094955444, 0.3161301016807556, 0.3063814043998718, -0.2636548578739166, -0.044363971799612045, -0.43989303708076477, 0.21755170822143555, 0.16427943110466003, -0.18902252614498138, 0.8254836201667786, 0.035271964967250824, -0.17732448875904083, 0.12257950007915497, 0.1263158768415451, 1.027182936668396, 0.0779230147600174, -0.017292048782110214, 0.5256335735321045, -0.17895978689193726, 0.22321665287017822, -0.25249621272087097, 0.1508208066225052, 0.41473138332366943, -0.6663113832473755, 0.011624569073319435, 0.06355081498622894, 0.2472863495349884, -0.22370360791683197, -0.3131400942802429, 0.194785937666893, 0.1261044144630432, -0.3749627470970154, 0.23409847915172577, 0.16402631998062134, -0.49825483560562134, -0.5518417358398438, -0.6275801658630371, 0.13328991830348969, -0.12510433793067932, 0.1028633713722229, 0.15144824981689453, -0.4420360326766968, 0.3490980565547943, -0.24423742294311523, 0.06934662163257599, 0.362832248210907, -0.24729987978935242, -0.008076466619968414, -0.3074162006378174, -0.22759318351745605, 0.11192968487739563, 0.14079943299293518, -0.19504301249980927, -0.17917115986347198, -0.0038056299090385437, 0.2187354415655136, -0.2408134937286377, 0.2785661816596985, -0.09777470678091049, -0.020497610792517662, 0.0606456995010376, -0.028523027896881104, -0.02981334924697876, 0.18143784999847412, -0.10007108747959137, -0.23718522489070892, 0.24758362770080566, -0.06362520158290863, 0.1865834891796112, -0.06235796958208084, -0.08959689736366272, -0.25738099217414856, -0.10821852087974548, -0.08053566515445709, 0.07914865761995316, -0.1657523661851883, 0.058398596942424774, 0.07626061886548996, -0.10580474138259888, -0.43363451957702637, -0.13764813542366028, 0.24259436130523682, -0.03836158663034439, 0.08196929097175598, 0.2414814531803131, -0.4261104464530945, -0.23488707840442657, -0.010145872831344604, -0.036151692271232605, -0.3330215811729431, -0.14683745801448822, 0.04558840021491051, -0.01849447377026081, -0.10308361798524857, -0.16382993757724762, 0.15807528793811798, -0.08490854501724243, 0.3173321783542633, 0.02151741459965706, -0.20940719544887543, -0.03819800913333893, 0.1747950166463852, -0.3201451301574707, 0.06181509792804718, 0.23440805077552795, 0.1284124106168747, -0.03250468522310257, -0.08681239187717438, -0.28918910026550293, 0.13446618616580963, 0.41742366552352905, -0.07731325924396515, -0.15339089930057526, -0.005063354969024658, 0.4084661602973938, -0.11253386735916138, 0.042986564338207245, 0.2514643669128418, -0.21608127653598785, -0.13840420544147491, -0.2821725606918335, 0.21246857941150665, -0.00944465771317482, -0.3162379264831543, -0.12140654772520065, -0.016803890466690063, -0.05275522544980049, -0.31523045897483826, 0.3412930965423584, 0.005423940718173981, 0.026856154203414917, -0.09399894624948502, 0.21267245709896088, -0.012406967580318451, 0.03561079502105713, 0.03621702641248703, 0.05727950856089592, 0.6462951898574829, -0.06968623399734497, -0.03768307715654373, -0.18342936038970947, -0.17237001657485962, -0.3989313244819641, -0.12850245833396912, 0.3483402132987976, 0.3660278022289276, 0.5126977562904358, 0.17583487927913666, -0.19102907180786133, -0.12423709034919739, 0.3427618741989136, 0.11253729462623596, -0.045645590871572495, -0.1857050657272339, -0.06850370019674301, 0.15234026312828064, -0.16646955907344818, 0.004521074704825878, -0.028066933155059814, 0.4545365273952484, 0.003606639802455902, -0.03218982368707657, -0.0679435133934021, 0.07963824272155762, 0.021242357790470123, -0.08787234872579575, 0.11408472806215286, 0.32006198167800903, 0.5746148824691772, 0.21702228486537933, 0.11675950884819031, 0.23040743172168732, -0.06402037292718887, -0.026594486087560654, 0.05755886435508728, -0.19540701806545258, -0.11655903607606888, 0.44380903244018555, 0.2932679355144501, 0.26821306347846985, -0.18622586131095886, -0.49402502179145813, -0.08666400611400604, 0.10548192262649536, -0.1801447570323944, 0.45869916677474976, 0.2597760260105133, 0.13445749878883362, -0.20594918727874756, -0.17860274016857147, 0.05938904732465744, 0.4335688650608063, 0.2376701533794403, -0.2742598056793213, 0.08186476677656174, 0.08735267072916031, 0.0576242059469223, 0.15918175876140594, 0.0930178165435791, 0.3212277889251709, 0.23386970162391663, 0.12017497420310974, 0.056483976542949677, 0.14188897609710693, -0.3399510085582733, 0.03454677015542984, 0.5236918926239014, -0.1745193898677826, 0.11155655235052109, 0.30713608860969543, 0.008091650903224945, 0.21470606327056885, 0.4515010118484497, 0.28826794028282166, -0.0392867773771286, -0.00572611391544342, 0.14686767756938934, 0.14934179186820984, 0.09000400453805923, 0.02580321952700615, 0.09697621315717697, 0.5032494068145752, 0.12156389653682709, 0.27952998876571655, 0.17648839950561523, -0.07030492275953293, 0.2152402251958847, -0.11542432010173798, 0.348960816860199, -0.2589483857154846, 0.2532714009284973, 0.16753868758678436, 0.18096542358398438, 0.06717002391815186, -0.2221701443195343, -0.24540755152702332, 0.12459168583154678, 0.18265283107757568, 0.18454541265964508, 0.014903964474797249, -0.14293156564235687, 0.08689845353364944, 0.24952377378940582, 0.1764584183692932, -0.10614234209060669, -0.14126160740852356, -0.22669339179992676, -0.39379316568374634, -0.3562118411064148, 0.23760643601417542, 0.1957731693983078, -0.07605160772800446, 0.2027980387210846, -0.015142999589443207, 0.3195677697658539, 0.2645491063594818, -0.22843767702579498, -0.0823649913072586, 0.220381498336792, -0.08182328939437866, -0.16189830005168915, 0.13886022567749023, 0.3744248151779175, 0.10847856849431992, -0.0013731177896261215, -0.17354580760002136, 0.24236848950386047, -0.19277901947498322, 0.08125937730073929, 0.007002672180533409, 0.011238545179367065, -0.3363494873046875, -0.1374458521604538, 0.3763557970523834, 0.25800636410713196, -0.0482209175825119, -0.4752650558948517, -0.15291368961334229, 0.0744280219078064, 0.05430884286761284, -0.007446418981999159, -0.11399348825216293, -0.07797646522521973, 0.24172234535217285, -0.08264647424221039, -0.008401352912187576, -0.4220412075519562, 0.6201140880584717, -0.12555456161499023, -0.40730318427085876, -0.4189607501029968, 0.013686498627066612, -0.05031498149037361, -0.11094571650028229, -0.1100524440407753, 0.33061596751213074, -0.12013925611972809, 0.20108230412006378, -0.10849370807409286, -0.4842885732650757, 0.721275806427002, -0.30658969283103943, -0.01802080310881138, 0.06007843464612961, 0.34017306566238403, 0.0934051126241684, 0.004434678703546524, -0.35612499713897705, 0.16655895113945007, 0.11131536215543747, -0.03603809326887131, -0.07977175712585449, 0.12271861732006073, -0.17045286297798157, -0.13750900328159332, -0.06296991556882858, 0.23429815471172333, 0.18409404158592224, -0.28127947449684143, 0.0636584460735321, -0.16418087482452393 ]
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.06818746030330658, 0.18416160345077515, 0.03641561046242714, 0.3780701160430908, 0.2355371117591858, -0.006270997226238251, 0.4846678078174591, 0.36706268787384033, 0.4180770516395569, -0.002838723361492157, 0.060554154217243195, 0.5898874998092651, 0.027620885521173477, -0.1488579958677292, -0.2172115594148636, -0.18387238681316376, 0.03135593235492706, 0.19051602482795715, 0.1274455487728119, 0.028585053980350494, -0.31223276257514954, 0.2942066788673401, -0.21481618285179138, 0.10177437961101532, -0.039127543568611145, -0.09522668272256851, 0.10416208207607269, 0.3933393359184265, -0.12641870975494385, -0.3826468884944916, 0.4134071171283722, -0.013034913688898087, 0.21611659228801727, 0.5308529138565063, -0.00012035989493597299, 0.1964655965566635, 0.4152528643608093, -0.0924442857503891, -0.2868109345436096, -0.4780595302581787, -0.2790302038192749, -0.3253922462463379, 0.537476122379303, -0.12003831565380096, 0.10520455986261368, -0.24374713003635406, -0.04976940155029297, -0.22078175842761993, 0.6015408039093018, 0.23072274029254913, 0.10480254143476486, 0.4299403131008148, 0.026029597967863083, 0.019219573587179184, 0.06372802704572678, 0.21083812415599823, -0.12177571654319763, 0.45420458912849426, 0.008248060941696167, 0.12705372273921967, -0.17159685492515564, -0.0036357780918478966, -0.10264156758785248, 0.1538671851158142, 0.21912214159965515, 0.047601498663425446, -0.17040175199508667, 0.08183428645133972, 0.04925008490681648, 0.29463207721710205, 0.28457656502723694, -0.05088045448064804, -0.4122373163700104, -0.3489946722984314, -0.12078537046909332, 0.13027313351631165, 0.23882171511650085, 0.24736101925373077, -0.1509169191122055, 0.12593421339988708, 0.03288290649652481, -0.018471665680408478, -0.27419745922088623, 0.2383800595998764, 0.003644324839115143, 0.011187776923179626, -0.15821924805641174, 0.10729219019412994, -0.12958580255508423, -0.02082463726401329, -0.14993400871753693, -0.22448334097862244, -0.30575913190841675, 0.12837819755077362, 0.03749896585941315, 0.1160036027431488, -0.0355980321764946, -0.41007718443870544, 0.2355835735797882, 0.35584747791290283, 0.3206699788570404, 0.20801937580108643, -0.2673647105693817, 0.20784637331962585, 0.590324878692627, 0.20161306858062744, -0.0549013689160347, 0.011498847045004368, 0.2565004229545593, 0.3305143713951111, 0.06072982773184776, -0.043552786111831665, -0.26379942893981934, -0.11083295941352844, 0.010377220809459686, -0.19745087623596191, 0.30868083238601685, -0.17262572050094604, -0.22385260462760925, 0.07556349784135818, -0.6134256720542908, -0.057321418076753616, -0.00021823309361934662, 0.36729204654693604, -0.19718824326992035, 0.498776912689209, 0.27442824840545654, 0.486838698387146, 0.044216953217983246, 0.031728196889162064, -0.10223811864852905, -0.0353483147919178, -0.163483127951622, -0.29622796177864075, 0.23716621100902557, 0.052543651312589645, 0.08610597252845764, 0.1265186369419098, -0.06300218403339386, -0.41263970732688904, -0.07425940781831741, 0.047715071588754654, -0.09740520268678665, 0.16696688532829285, 0.1920517534017563, 0.13287152349948883, 0.1559261679649353, -0.4045026898384094, -0.13764643669128418, 0.03230258822441101, -0.3769201934337616, 0.005557265132665634, -0.3176858127117157, 0.05463000386953354, -0.2702917754650116, -0.012081623077392578, -0.7623520493507385, -0.05212044343352318, -0.11227849870920181, 0.06602734327316284, 0.06387490034103394, -0.024416547268629074, 0.22275856137275696, -0.2470850646495819, 0.07498279213905334, 0.28331393003463745, -0.30055713653564453, -0.237823948264122, -0.06292804330587387, -0.0374925397336483, 0.1896342933177948, 0.2650883197784424, -0.20057684183120728, 0.2845460772514343, -0.16373547911643982, 0.2106703668832779, 0.3121519386768341, -0.3327314555644989, -0.22192609310150146, 0.6055203676223755, 0.019304923713207245, 0.5248497724533081, 0.0198843851685524, -0.23089532554149628, -0.00920121744275093, 0.18840482831001282, 0.3035944104194641, 0.40137070417404175, 0.14228790998458862, 0.0679159089922905, -0.24570538103580475, -0.2022639960050583, -0.1346425712108612, 0.3127696216106415, 0.048766836524009705, 0.18894007802009583, 0.09953584522008896, 0.024478182196617126, 0.25068745017051697, -0.19513940811157227, -0.026667313650250435, 0.16242356598377228, 0.09113357961177826, 0.028215188533067703, -0.005725775845348835, -0.004411516711115837, -0.6142935156822205, 0.1499556601047516, -0.05112329497933388, 0.10920243710279465, -0.40808624029159546, 0.009321510791778564, -0.25478342175483704, 0.12606734037399292, -0.12807583808898926, 0.18476757407188416, 0.03745242953300476, 0.1086537092924118, -0.18218670785427094, 0.21080227196216583, -0.18389320373535156, 0.3152328133583069, 0.1626443713903427, 0.2816525995731354, -0.4834643006324768, 0.43770748376846313, 0.21025541424751282, -0.12123847007751465, 0.027117498219013214, 0.18537119030952454, -0.09781777113676071, -0.16267116367816925, -0.23913565278053284, 0.1727544665336609, 0.1394183486700058, 0.17971430718898773, -0.05627702921628952, -0.23757164180278778, -0.08228324353694916, 0.08385907113552094, -0.1951911300420761, 0.30687740445137024, 0.22172389924526215, -0.024583838880062103, -0.028096318244934082, 0.8052093386650085, -0.07410740852355957, 0.44319722056388855, -0.015723533928394318, -0.02055114321410656, 0.45617198944091797, 0.06156548485159874, -0.36415350437164307, -0.3053399324417114, 0.23883548378944397, 0.31862515211105347, 0.060367364436388016, 0.004004640504717827, -0.37942999601364136, -0.1885230541229248, 0.3982873260974884, 0.005180183798074722, 0.24246254563331604, 0.15323463082313538, -0.09535709768533707, -0.09967201203107834, 0.015859581530094147, 0.14017842710018158, 0.23829898238182068, 0.07587647438049316, -0.2070479393005371, -0.04344576597213745, -0.0409475713968277, -0.024744730442762375, 0.15559929609298706, 0.3065353035926819, 0.2641778886318207, 0.09334783256053925, 0.15588931739330292, -0.020961876958608627, -0.28154662251472473, -0.23800356686115265, -0.28635984659194946, 0.11893855780363083, -0.6182568669319153, 0.29913827776908875, -0.47434723377227783, 0.11889145523309708, 0.035332612693309784, -0.3410828113555908, -0.12629945576190948, -0.32297053933143616, -0.30074256658554077, 0.2734282910823822, -0.1147489845752716, -0.13416652381420135, -0.26672300696372986, 0.31516966223716736, -0.023213179782032967, -0.34634748101234436, -0.21134185791015625, -0.0117185078561306, -0.1846482753753662, -0.023406291380524635, 0.3875873386859894, 0.10929727554321289, 0.1544726938009262, -0.1289406716823578, 0.047313615679740906, 0.14181813597679138, -0.08639765530824661, 0.14820027351379395, -0.19949859380722046, 0.28899386525154114, 0.21547093987464905, 0.19691044092178345, -0.09785348176956177, -0.1516469419002533, 0.28866589069366455, 0.09575174003839493, -0.34277138113975525, 0.32419225573539734, -0.13549940288066864, 0.027899345383048058, -0.14921680092811584, -0.029169082641601562, 0.12195485085248947, -0.4392542541027069, 0.5247156620025635, 0.24586845934391022, 0.05813877657055855, -0.01700688526034355, 0.02426106482744217, 0.1799216866493225, 0.1687059849500656, 0.015911445021629333, -0.11074601858854294, -0.15468592941761017, 0.23265735805034637, -0.1608329564332962, -0.25017648935317993, 0.07645510137081146, -0.1965515911579132, 0.16859063506126404, -0.08651360124349594, -0.3909761905670166, 0.025942586362361908, 0.070719413459301, 0.1136566698551178, -0.044404223561286926, -0.2952394187450409, 0.05882471427321434, -0.012750944122672081, 0.08519092202186584, -0.18557146191596985, -0.2022252231836319, 0.1206313893198967, -0.04381242394447327, 0.021603494882583618, 0.05651474744081497, 0.7252902984619141, -0.09429606795310974, 0.18077541887760162, 0.31180065870285034, -0.03827173635363579, 0.39497503638267517, -0.026444008573889732, 0.10300850123167038, -0.4057943820953369, -0.1191260889172554, -0.3808177411556244, -0.09711283445358276, 0.07863800972700119, 0.2193034589290619, 0.109642393887043, -0.2879478931427002, -0.24056051671504974, -0.06228504702448845, -0.45870524644851685, -0.3489455282688141, 0.1333789825439453, -0.35432538390159607, -0.33824920654296875, 0.03203330188989639, 0.22056397795677185, -0.058730222284793854, -0.05810185521841049, -0.030362417921423912, 0.40141522884368896, 0.20627892017364502, -0.04549991339445114, -0.20571184158325195, 0.03436759486794472, -0.35445407032966614, 0.360694944858551, 0.0746535137295723, 0.3657505512237549, 0.19745846092700958, -0.028096891939640045, 0.24474962055683136, -0.2093999683856964, 0.44907253980636597, -0.120010606944561, 0.02272782102227211, 0.02809552103281021, -0.12366526573896408, -0.6418697237968445, 0.1011509895324707, -0.12713098526000977, 0.2907666265964508, 0.23598304390907288, 0.20954836905002594, -0.4572594165802002, -0.29614222049713135, 0.10186870396137238, -0.15043924748897552, -0.10587044805288315, -0.10647602379322052, -0.3640390932559967, -0.29237768054008484, -0.24482963979244232, -0.1525718867778778, 0.02746974490582943, 0.2387116402387619, 0.08743756264448166, -0.09870682656764984, -0.2664903998374939, -0.06908459216356277, 0.12258430570363998, 0.21641606092453003, 0.188088059425354, -0.21739234030246735, 0.04097948595881462, 0.00611225888133049, 0.3643351197242737, 0.3959251642227173, 0.8496595025062561, 0.25615549087524414, -0.5346415042877197, 0.20925292372703552, -0.02454850822687149, 0.042045511305332184, 0.18659575283527374, 0.023035336285829544, 0.08351059257984161, 0.28506526350975037, 0.14488060772418976, -0.2175285369157791, -0.17658860981464386, 0.4804267883300781, -0.17388440668582916, -0.46211811900138855, -0.346392422914505, 0.49069011211395264, -0.11688166856765747, 0.02132999897003174, 0.22633929550647736, 0.26789864897727966, -0.1467054933309555, 0.7589287161827087, 0.0028836652636528015, 0.7930402159690857, 0.1487375795841217, 0.19805246591567993, 0.722146213054657, -0.5317476987838745, 0.40048328042030334, -0.03222978487610817, -0.07088629901409149, -0.23835356533527374, 0.598779022693634, -0.1820172518491745, -0.1515832543373108, -0.009593449532985687, 0.19250859320163727, -0.103069007396698, 0.022575195878744125, -0.3046777844429016, -0.016251977533102036, 0.07874850183725357, 0.12859773635864258, -0.11410646885633469, -0.2810198664665222, -0.7139281630516052, -0.013922136276960373, -0.12063425779342651, 0.03402134031057358, -0.0035201432183384895, -0.3064057230949402, -0.25588876008987427, -0.18885263800621033, -0.3464413285255432, 0.25798511505126953, 0.1630951315164566, -0.01847412809729576, 0.22303752601146698, -0.04961401969194412, 0.09468156099319458, -0.05247896537184715, 0.2925059497356415, -0.09333884716033936, -0.17544642090797424, 0.18701091408729553, -0.13640406727790833, -0.09913806617259979, -0.09244642406702042, -0.016064805909991264, 0.500575602054596, -0.07688353955745697, -0.1589546948671341, -0.20509999990463257, -0.2627158761024475, -0.5380346775054932, 0.26469236612319946, 0.41636544466018677, -0.346607506275177, -0.24097517132759094, -0.39311477541923523, -0.047527819871902466, 0.2723068296909332, -0.15706679224967957, 0.04984753578901291, 0.2624666690826416, 0.18393574655056, -0.0674581453204155, 0.2908506989479065, -0.36090368032455444, -0.10872894525527954, 0.3222660422325134, -0.03530958294868469, 0.05649521201848984, 0.5033448934555054, 0.2862294912338257, -0.21799607574939728, -0.19046145677566528, 0.2036413550376892, 0.8105597496032715, -0.6269248127937317, 0.3065251410007477, -0.17307719588279724, -0.05357924848794937, -0.04724163934588432, 0.3028700053691864, 0.06995413452386856, -0.023221351206302643, 0.05662162974476814, -0.6213235259056091, -0.10620085895061493, 0.4122465252876282, -0.15431369841098785, -0.021445337682962418, 0.1351444125175476, -0.016933590173721313, -0.2405518740415573, -0.17206165194511414, -0.17293524742126465, 0.21926286816596985, -0.1576310694217682, -0.20457801222801208, -0.30864351987838745, 0.06320490688085556, 0.578815221786499, 0.006806055083870888, 0.08658593893051147, 0.0817483440041542, -0.14363232254981995, -0.08859847486019135, -0.30098840594291687, 0.2072959989309311, 0.10435601323843002, -0.0927102267742157, -0.07845999300479889, 0.010122284293174744, -0.17902348935604095, -0.13574852049350739, 0.2507115602493286, 0.2667551338672638, -0.047717221081256866, -0.13315586745738983, 0.08134956657886505, 0.15249690413475037, -0.24473538994789124, 0.1382136344909668, -0.15908394753932953, 0.5401732921600342, 0.08584724366664886, -0.04767227917909622, -0.2291521281003952, 0.14430372416973114, -0.23546220362186432, 0.288127064704895, 0.2030770480632782, 0.21647119522094727, 0.4846537411212921, -0.4272494316101074, 0.03828272596001625, -0.20709340274333954, 0.0976068302989006, 0.31631648540496826, -0.2574576139450073, 0.05045739561319351, -0.16220176219940186, 0.05478840321302414, 0.013152189552783966, 0.052510350942611694, 0.139628604054451, -0.03898325935006142, 0.04270714893937111, 0.3336881399154663, -0.13881884515285492, 0.042832180857658386, -0.23344124853610992, 0.04584386944770813, 0.4255116283893585, 0.15897713601589203, 0.051013655960559845, 0.2905641198158264, -0.2684133052825928, 0.0809304416179657, 0.015853935852646828, 0.1407574862241745, 0.298078715801239, -0.007115654647350311, 0.06808746606111526, 0.021724941208958626, 0.14912360906600952, 0.2423139065504074, 0.0005277395248413086, -0.41590559482574463, -0.04208224639296532, 0.3158296048641205, -0.05004313588142395, 0.30922913551330566, 0.168863907456398, 0.33337339758872986, -0.18927663564682007, 0.09698616713285446, -0.4036628305912018, -0.16702213883399963, -0.053814224898815155, -0.22119928896427155, -0.5511426329612732, -0.20695221424102783, -0.3715265095233917, -0.11091694235801697, -0.1350989043712616, -0.061506837606430054, -0.2741716504096985, 0.18862277269363403, 0.05034477636218071, -0.33036261796951294, 0.08140771090984344, -0.19553878903388977, 0.20416927337646484, -0.15234705805778503, 0.22637058794498444, -0.009327307343482971, 0.03624469041824341, 0.31887948513031006, 0.0760156661272049, 0.5093177556991577, 0.22838078439235687, -0.0963350236415863, -0.24879470467567444, -0.02412388101220131, -0.1421782523393631, 0.04037827253341675, 0.34687888622283936, 0.18573231995105743, 0.03956321254372597, 0.24208228290081024, 0.1516416221857071, -0.1133229061961174, 0.3565618693828583, 0.0022537410259246826, 0.2634565830230713, -0.09924830496311188, 0.5178785920143127, -0.4676595628261566, 0.10009332746267319, -0.16723133623600006, -0.35254472494125366, -0.14604611694812775, -0.31882572174072266, -0.1780053973197937, -0.1945902705192566, -0.023563722148537636, -0.05869758129119873, 0.023275747895240784, -0.08691757917404175, 0.41792964935302734, 0.3949696719646454, 0.1819579154253006, 0.15318375825881958, -0.033079829066991806, -0.29729920625686646, 0.23512381315231323, -0.1318948119878769, 0.030758561566472054, 0.21575447916984558, 0.2165420800447464, 0.07676729559898376, 0.1726399064064026, 0.041249796748161316, 0.03877457603812218, 0.011110707186162472, 0.2165725976228714, -0.2433100938796997, -0.060974787920713425, 0.2753140926361084, 0.017352288588881493, -0.13577458262443542, -0.28093698620796204, -0.08887374401092529, -0.058575794100761414, -0.05983319133520126, 0.1518501341342926, -0.059538476169109344, -0.0654158666729927, -0.16986960172653198, 0.442549467086792, 0.1324360966682434, 0.20110934972763062, -0.05750926956534386, -0.4760093688964844, -0.26894280314445496, -0.41445228457450867, -0.13085050880908966, 0.37078407406806946, -0.1804433912038803, 0.6111353635787964, 0.03422299772500992, 0.14840470254421234, -0.01851939782500267, -0.04486341401934624, -0.18750707805156708, -0.09821821749210358, -0.5277866125106812, 0.29389965534210205, -0.39578428864479065, 0.14473490417003632, -0.13155721127986908, 0.10573180764913559, 0.12398523837327957, 0.19363175332546234, -0.07723544538021088, -0.23171401023864746, 0.4982312321662903, -0.2602385878562927, -0.31335946917533875, 0.2727922797203064, 0.08891452848911285, -0.13259083032608032, -0.2973821461200714, -0.6104027032852173, 0.010996662080287933, 0.21890543401241302, 0.030551383271813393, -0.21782709658145905, -0.11244949698448181, -0.12426020205020905, -0.05467698723077774, -0.13633468747138977, 0.22239869832992554, 0.01366947777569294, -0.11380717158317566, 0.1441098302602768, -0.1869696080684662 ]
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.06818746030330658, 0.18416160345077515, 0.03641561046242714, 0.3780701160430908, 0.2355371117591858, -0.006270997226238251, 0.4846678078174591, 0.36706268787384033, 0.4180770516395569, -0.002838723361492157, 0.060554154217243195, 0.5898874998092651, 0.027620885521173477, -0.1488579958677292, -0.2172115594148636, -0.18387238681316376, 0.03135593235492706, 0.19051602482795715, 0.1274455487728119, 0.028585053980350494, -0.31223276257514954, 0.2942066788673401, -0.21481618285179138, 0.10177437961101532, -0.039127543568611145, -0.09522668272256851, 0.10416208207607269, 0.3933393359184265, -0.12641870975494385, -0.3826468884944916, 0.4134071171283722, -0.013034913688898087, 0.21611659228801727, 0.5308529138565063, -0.00012035989493597299, 0.1964655965566635, 0.4152528643608093, -0.0924442857503891, -0.2868109345436096, -0.4780595302581787, -0.2790302038192749, -0.3253922462463379, 0.537476122379303, -0.12003831565380096, 0.10520455986261368, -0.24374713003635406, -0.04976940155029297, -0.22078175842761993, 0.6015408039093018, 0.23072274029254913, 0.10480254143476486, 0.4299403131008148, 0.026029597967863083, 0.019219573587179184, 0.06372802704572678, 0.21083812415599823, -0.12177571654319763, 0.45420458912849426, 0.008248060941696167, 0.12705372273921967, -0.17159685492515564, -0.0036357780918478966, -0.10264156758785248, 0.1538671851158142, 0.21912214159965515, 0.047601498663425446, -0.17040175199508667, 0.08183428645133972, 0.04925008490681648, 0.29463207721710205, 0.28457656502723694, -0.05088045448064804, -0.4122373163700104, -0.3489946722984314, -0.12078537046909332, 0.13027313351631165, 0.23882171511650085, 0.24736101925373077, -0.1509169191122055, 0.12593421339988708, 0.03288290649652481, -0.018471665680408478, -0.27419745922088623, 0.2383800595998764, 0.003644324839115143, 0.011187776923179626, -0.15821924805641174, 0.10729219019412994, -0.12958580255508423, -0.02082463726401329, -0.14993400871753693, -0.22448334097862244, -0.30575913190841675, 0.12837819755077362, 0.03749896585941315, 0.1160036027431488, -0.0355980321764946, -0.41007718443870544, 0.2355835735797882, 0.35584747791290283, 0.3206699788570404, 0.20801937580108643, -0.2673647105693817, 0.20784637331962585, 0.590324878692627, 0.20161306858062744, -0.0549013689160347, 0.011498847045004368, 0.2565004229545593, 0.3305143713951111, 0.06072982773184776, -0.043552786111831665, -0.26379942893981934, -0.11083295941352844, 0.010377220809459686, -0.19745087623596191, 0.30868083238601685, -0.17262572050094604, -0.22385260462760925, 0.07556349784135818, -0.6134256720542908, -0.057321418076753616, -0.00021823309361934662, 0.36729204654693604, -0.19718824326992035, 0.498776912689209, 0.27442824840545654, 0.486838698387146, 0.044216953217983246, 0.031728196889162064, -0.10223811864852905, -0.0353483147919178, -0.163483127951622, -0.29622796177864075, 0.23716621100902557, 0.052543651312589645, 0.08610597252845764, 0.1265186369419098, -0.06300218403339386, -0.41263970732688904, -0.07425940781831741, 0.047715071588754654, -0.09740520268678665, 0.16696688532829285, 0.1920517534017563, 0.13287152349948883, 0.1559261679649353, -0.4045026898384094, -0.13764643669128418, 0.03230258822441101, -0.3769201934337616, 0.005557265132665634, -0.3176858127117157, 0.05463000386953354, -0.2702917754650116, -0.012081623077392578, -0.7623520493507385, -0.05212044343352318, -0.11227849870920181, 0.06602734327316284, 0.06387490034103394, -0.024416547268629074, 0.22275856137275696, -0.2470850646495819, 0.07498279213905334, 0.28331393003463745, -0.30055713653564453, -0.237823948264122, -0.06292804330587387, -0.0374925397336483, 0.1896342933177948, 0.2650883197784424, -0.20057684183120728, 0.2845460772514343, -0.16373547911643982, 0.2106703668832779, 0.3121519386768341, -0.3327314555644989, -0.22192609310150146, 0.6055203676223755, 0.019304923713207245, 0.5248497724533081, 0.0198843851685524, -0.23089532554149628, -0.00920121744275093, 0.18840482831001282, 0.3035944104194641, 0.40137070417404175, 0.14228790998458862, 0.0679159089922905, -0.24570538103580475, -0.2022639960050583, -0.1346425712108612, 0.3127696216106415, 0.048766836524009705, 0.18894007802009583, 0.09953584522008896, 0.024478182196617126, 0.25068745017051697, -0.19513940811157227, -0.026667313650250435, 0.16242356598377228, 0.09113357961177826, 0.028215188533067703, -0.005725775845348835, -0.004411516711115837, -0.6142935156822205, 0.1499556601047516, -0.05112329497933388, 0.10920243710279465, -0.40808624029159546, 0.009321510791778564, -0.25478342175483704, 0.12606734037399292, -0.12807583808898926, 0.18476757407188416, 0.03745242953300476, 0.1086537092924118, -0.18218670785427094, 0.21080227196216583, -0.18389320373535156, 0.3152328133583069, 0.1626443713903427, 0.2816525995731354, -0.4834643006324768, 0.43770748376846313, 0.21025541424751282, -0.12123847007751465, 0.027117498219013214, 0.18537119030952454, -0.09781777113676071, -0.16267116367816925, -0.23913565278053284, 0.1727544665336609, 0.1394183486700058, 0.17971430718898773, -0.05627702921628952, -0.23757164180278778, -0.08228324353694916, 0.08385907113552094, -0.1951911300420761, 0.30687740445137024, 0.22172389924526215, -0.024583838880062103, -0.028096318244934082, 0.8052093386650085, -0.07410740852355957, 0.44319722056388855, -0.015723533928394318, -0.02055114321410656, 0.45617198944091797, 0.06156548485159874, -0.36415350437164307, -0.3053399324417114, 0.23883548378944397, 0.31862515211105347, 0.060367364436388016, 0.004004640504717827, -0.37942999601364136, -0.1885230541229248, 0.3982873260974884, 0.005180183798074722, 0.24246254563331604, 0.15323463082313538, -0.09535709768533707, -0.09967201203107834, 0.015859581530094147, 0.14017842710018158, 0.23829898238182068, 0.07587647438049316, -0.2070479393005371, -0.04344576597213745, -0.0409475713968277, -0.024744730442762375, 0.15559929609298706, 0.3065353035926819, 0.2641778886318207, 0.09334783256053925, 0.15588931739330292, -0.020961876958608627, -0.28154662251472473, -0.23800356686115265, -0.28635984659194946, 0.11893855780363083, -0.6182568669319153, 0.29913827776908875, -0.47434723377227783, 0.11889145523309708, 0.035332612693309784, -0.3410828113555908, -0.12629945576190948, -0.32297053933143616, -0.30074256658554077, 0.2734282910823822, -0.1147489845752716, -0.13416652381420135, -0.26672300696372986, 0.31516966223716736, -0.023213179782032967, -0.34634748101234436, -0.21134185791015625, -0.0117185078561306, -0.1846482753753662, -0.023406291380524635, 0.3875873386859894, 0.10929727554321289, 0.1544726938009262, -0.1289406716823578, 0.047313615679740906, 0.14181813597679138, -0.08639765530824661, 0.14820027351379395, -0.19949859380722046, 0.28899386525154114, 0.21547093987464905, 0.19691044092178345, -0.09785348176956177, -0.1516469419002533, 0.28866589069366455, 0.09575174003839493, -0.34277138113975525, 0.32419225573539734, -0.13549940288066864, 0.027899345383048058, -0.14921680092811584, -0.029169082641601562, 0.12195485085248947, -0.4392542541027069, 0.5247156620025635, 0.24586845934391022, 0.05813877657055855, -0.01700688526034355, 0.02426106482744217, 0.1799216866493225, 0.1687059849500656, 0.015911445021629333, -0.11074601858854294, -0.15468592941761017, 0.23265735805034637, -0.1608329564332962, -0.25017648935317993, 0.07645510137081146, -0.1965515911579132, 0.16859063506126404, -0.08651360124349594, -0.3909761905670166, 0.025942586362361908, 0.070719413459301, 0.1136566698551178, -0.044404223561286926, -0.2952394187450409, 0.05882471427321434, -0.012750944122672081, 0.08519092202186584, -0.18557146191596985, -0.2022252231836319, 0.1206313893198967, -0.04381242394447327, 0.021603494882583618, 0.05651474744081497, 0.7252902984619141, -0.09429606795310974, 0.18077541887760162, 0.31180065870285034, -0.03827173635363579, 0.39497503638267517, -0.026444008573889732, 0.10300850123167038, -0.4057943820953369, -0.1191260889172554, -0.3808177411556244, -0.09711283445358276, 0.07863800972700119, 0.2193034589290619, 0.109642393887043, -0.2879478931427002, -0.24056051671504974, -0.06228504702448845, -0.45870524644851685, -0.3489455282688141, 0.1333789825439453, -0.35432538390159607, -0.33824920654296875, 0.03203330188989639, 0.22056397795677185, -0.058730222284793854, -0.05810185521841049, -0.030362417921423912, 0.40141522884368896, 0.20627892017364502, -0.04549991339445114, -0.20571184158325195, 0.03436759486794472, -0.35445407032966614, 0.360694944858551, 0.0746535137295723, 0.3657505512237549, 0.19745846092700958, -0.028096891939640045, 0.24474962055683136, -0.2093999683856964, 0.44907253980636597, -0.120010606944561, 0.02272782102227211, 0.02809552103281021, -0.12366526573896408, -0.6418697237968445, 0.1011509895324707, -0.12713098526000977, 0.2907666265964508, 0.23598304390907288, 0.20954836905002594, -0.4572594165802002, -0.29614222049713135, 0.10186870396137238, -0.15043924748897552, -0.10587044805288315, -0.10647602379322052, -0.3640390932559967, -0.29237768054008484, -0.24482963979244232, -0.1525718867778778, 0.02746974490582943, 0.2387116402387619, 0.08743756264448166, -0.09870682656764984, -0.2664903998374939, -0.06908459216356277, 0.12258430570363998, 0.21641606092453003, 0.188088059425354, -0.21739234030246735, 0.04097948595881462, 0.00611225888133049, 0.3643351197242737, 0.3959251642227173, 0.8496595025062561, 0.25615549087524414, -0.5346415042877197, 0.20925292372703552, -0.02454850822687149, 0.042045511305332184, 0.18659575283527374, 0.023035336285829544, 0.08351059257984161, 0.28506526350975037, 0.14488060772418976, -0.2175285369157791, -0.17658860981464386, 0.4804267883300781, -0.17388440668582916, -0.46211811900138855, -0.346392422914505, 0.49069011211395264, -0.11688166856765747, 0.02132999897003174, 0.22633929550647736, 0.26789864897727966, -0.1467054933309555, 0.7589287161827087, 0.0028836652636528015, 0.7930402159690857, 0.1487375795841217, 0.19805246591567993, 0.722146213054657, -0.5317476987838745, 0.40048328042030334, -0.03222978487610817, -0.07088629901409149, -0.23835356533527374, 0.598779022693634, -0.1820172518491745, -0.1515832543373108, -0.009593449532985687, 0.19250859320163727, -0.103069007396698, 0.022575195878744125, -0.3046777844429016, -0.016251977533102036, 0.07874850183725357, 0.12859773635864258, -0.11410646885633469, -0.2810198664665222, -0.7139281630516052, -0.013922136276960373, -0.12063425779342651, 0.03402134031057358, -0.0035201432183384895, -0.3064057230949402, -0.25588876008987427, -0.18885263800621033, -0.3464413285255432, 0.25798511505126953, 0.1630951315164566, -0.01847412809729576, 0.22303752601146698, -0.04961401969194412, 0.09468156099319458, -0.05247896537184715, 0.2925059497356415, -0.09333884716033936, -0.17544642090797424, 0.18701091408729553, -0.13640406727790833, -0.09913806617259979, -0.09244642406702042, -0.016064805909991264, 0.500575602054596, -0.07688353955745697, -0.1589546948671341, -0.20509999990463257, -0.2627158761024475, -0.5380346775054932, 0.26469236612319946, 0.41636544466018677, -0.346607506275177, -0.24097517132759094, -0.39311477541923523, -0.047527819871902466, 0.2723068296909332, -0.15706679224967957, 0.04984753578901291, 0.2624666690826416, 0.18393574655056, -0.0674581453204155, 0.2908506989479065, -0.36090368032455444, -0.10872894525527954, 0.3222660422325134, -0.03530958294868469, 0.05649521201848984, 0.5033448934555054, 0.2862294912338257, -0.21799607574939728, -0.19046145677566528, 0.2036413550376892, 0.8105597496032715, -0.6269248127937317, 0.3065251410007477, -0.17307719588279724, -0.05357924848794937, -0.04724163934588432, 0.3028700053691864, 0.06995413452386856, -0.023221351206302643, 0.05662162974476814, -0.6213235259056091, -0.10620085895061493, 0.4122465252876282, -0.15431369841098785, -0.021445337682962418, 0.1351444125175476, -0.016933590173721313, -0.2405518740415573, -0.17206165194511414, -0.17293524742126465, 0.21926286816596985, -0.1576310694217682, -0.20457801222801208, -0.30864351987838745, 0.06320490688085556, 0.578815221786499, 0.006806055083870888, 0.08658593893051147, 0.0817483440041542, -0.14363232254981995, -0.08859847486019135, -0.30098840594291687, 0.2072959989309311, 0.10435601323843002, -0.0927102267742157, -0.07845999300479889, 0.010122284293174744, -0.17902348935604095, -0.13574852049350739, 0.2507115602493286, 0.2667551338672638, -0.047717221081256866, -0.13315586745738983, 0.08134956657886505, 0.15249690413475037, -0.24473538994789124, 0.1382136344909668, -0.15908394753932953, 0.5401732921600342, 0.08584724366664886, -0.04767227917909622, -0.2291521281003952, 0.14430372416973114, -0.23546220362186432, 0.288127064704895, 0.2030770480632782, 0.21647119522094727, 0.4846537411212921, -0.4272494316101074, 0.03828272596001625, -0.20709340274333954, 0.0976068302989006, 0.31631648540496826, -0.2574576139450073, 0.05045739561319351, -0.16220176219940186, 0.05478840321302414, 0.013152189552783966, 0.052510350942611694, 0.139628604054451, -0.03898325935006142, 0.04270714893937111, 0.3336881399154663, -0.13881884515285492, 0.042832180857658386, -0.23344124853610992, 0.04584386944770813, 0.4255116283893585, 0.15897713601589203, 0.051013655960559845, 0.2905641198158264, -0.2684133052825928, 0.0809304416179657, 0.015853935852646828, 0.1407574862241745, 0.298078715801239, -0.007115654647350311, 0.06808746606111526, 0.021724941208958626, 0.14912360906600952, 0.2423139065504074, 0.0005277395248413086, -0.41590559482574463, -0.04208224639296532, 0.3158296048641205, -0.05004313588142395, 0.30922913551330566, 0.168863907456398, 0.33337339758872986, -0.18927663564682007, 0.09698616713285446, -0.4036628305912018, -0.16702213883399963, -0.053814224898815155, -0.22119928896427155, -0.5511426329612732, -0.20695221424102783, -0.3715265095233917, -0.11091694235801697, -0.1350989043712616, -0.061506837606430054, -0.2741716504096985, 0.18862277269363403, 0.05034477636218071, -0.33036261796951294, 0.08140771090984344, -0.19553878903388977, 0.20416927337646484, -0.15234705805778503, 0.22637058794498444, -0.009327307343482971, 0.03624469041824341, 0.31887948513031006, 0.0760156661272049, 0.5093177556991577, 0.22838078439235687, -0.0963350236415863, -0.24879470467567444, -0.02412388101220131, -0.1421782523393631, 0.04037827253341675, 0.34687888622283936, 0.18573231995105743, 0.03956321254372597, 0.24208228290081024, 0.1516416221857071, -0.1133229061961174, 0.3565618693828583, 0.0022537410259246826, 0.2634565830230713, -0.09924830496311188, 0.5178785920143127, -0.4676595628261566, 0.10009332746267319, -0.16723133623600006, -0.35254472494125366, -0.14604611694812775, -0.31882572174072266, -0.1780053973197937, -0.1945902705192566, -0.023563722148537636, -0.05869758129119873, 0.023275747895240784, -0.08691757917404175, 0.41792964935302734, 0.3949696719646454, 0.1819579154253006, 0.15318375825881958, -0.033079829066991806, -0.29729920625686646, 0.23512381315231323, -0.1318948119878769, 0.030758561566472054, 0.21575447916984558, 0.2165420800447464, 0.07676729559898376, 0.1726399064064026, 0.041249796748161316, 0.03877457603812218, 0.011110707186162472, 0.2165725976228714, -0.2433100938796997, -0.060974787920713425, 0.2753140926361084, 0.017352288588881493, -0.13577458262443542, -0.28093698620796204, -0.08887374401092529, -0.058575794100761414, -0.05983319133520126, 0.1518501341342926, -0.059538476169109344, -0.0654158666729927, -0.16986960172653198, 0.442549467086792, 0.1324360966682434, 0.20110934972763062, -0.05750926956534386, -0.4760093688964844, -0.26894280314445496, -0.41445228457450867, -0.13085050880908966, 0.37078407406806946, -0.1804433912038803, 0.6111353635787964, 0.03422299772500992, 0.14840470254421234, -0.01851939782500267, -0.04486341401934624, -0.18750707805156708, -0.09821821749210358, -0.5277866125106812, 0.29389965534210205, -0.39578428864479065, 0.14473490417003632, -0.13155721127986908, 0.10573180764913559, 0.12398523837327957, 0.19363175332546234, -0.07723544538021088, -0.23171401023864746, 0.4982312321662903, -0.2602385878562927, -0.31335946917533875, 0.2727922797203064, 0.08891452848911285, -0.13259083032608032, -0.2973821461200714, -0.6104027032852173, 0.010996662080287933, 0.21890543401241302, 0.030551383271813393, -0.21782709658145905, -0.11244949698448181, -0.12426020205020905, -0.05467698723077774, -0.13633468747138977, 0.22239869832992554, 0.01366947777569294, -0.11380717158317566, 0.1441098302602768, -0.1869696080684662 ]
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.06818746030330658, 0.18416160345077515, 0.03641561046242714, 0.3780701160430908, 0.2355371117591858, -0.006270997226238251, 0.4846678078174591, 0.36706268787384033, 0.4180770516395569, -0.002838723361492157, 0.060554154217243195, 0.5898874998092651, 0.027620885521173477, -0.1488579958677292, -0.2172115594148636, -0.18387238681316376, 0.03135593235492706, 0.19051602482795715, 0.1274455487728119, 0.028585053980350494, -0.31223276257514954, 0.2942066788673401, -0.21481618285179138, 0.10177437961101532, -0.039127543568611145, -0.09522668272256851, 0.10416208207607269, 0.3933393359184265, -0.12641870975494385, -0.3826468884944916, 0.4134071171283722, -0.013034913688898087, 0.21611659228801727, 0.5308529138565063, -0.00012035989493597299, 0.1964655965566635, 0.4152528643608093, -0.0924442857503891, -0.2868109345436096, -0.4780595302581787, -0.2790302038192749, -0.3253922462463379, 0.537476122379303, -0.12003831565380096, 0.10520455986261368, -0.24374713003635406, -0.04976940155029297, -0.22078175842761993, 0.6015408039093018, 0.23072274029254913, 0.10480254143476486, 0.4299403131008148, 0.026029597967863083, 0.019219573587179184, 0.06372802704572678, 0.21083812415599823, -0.12177571654319763, 0.45420458912849426, 0.008248060941696167, 0.12705372273921967, -0.17159685492515564, -0.0036357780918478966, -0.10264156758785248, 0.1538671851158142, 0.21912214159965515, 0.047601498663425446, -0.17040175199508667, 0.08183428645133972, 0.04925008490681648, 0.29463207721710205, 0.28457656502723694, -0.05088045448064804, -0.4122373163700104, -0.3489946722984314, -0.12078537046909332, 0.13027313351631165, 0.23882171511650085, 0.24736101925373077, -0.1509169191122055, 0.12593421339988708, 0.03288290649652481, -0.018471665680408478, -0.27419745922088623, 0.2383800595998764, 0.003644324839115143, 0.011187776923179626, -0.15821924805641174, 0.10729219019412994, -0.12958580255508423, -0.02082463726401329, -0.14993400871753693, -0.22448334097862244, -0.30575913190841675, 0.12837819755077362, 0.03749896585941315, 0.1160036027431488, -0.0355980321764946, -0.41007718443870544, 0.2355835735797882, 0.35584747791290283, 0.3206699788570404, 0.20801937580108643, -0.2673647105693817, 0.20784637331962585, 0.590324878692627, 0.20161306858062744, -0.0549013689160347, 0.011498847045004368, 0.2565004229545593, 0.3305143713951111, 0.06072982773184776, -0.043552786111831665, -0.26379942893981934, -0.11083295941352844, 0.010377220809459686, -0.19745087623596191, 0.30868083238601685, -0.17262572050094604, -0.22385260462760925, 0.07556349784135818, -0.6134256720542908, -0.057321418076753616, -0.00021823309361934662, 0.36729204654693604, -0.19718824326992035, 0.498776912689209, 0.27442824840545654, 0.486838698387146, 0.044216953217983246, 0.031728196889162064, -0.10223811864852905, -0.0353483147919178, -0.163483127951622, -0.29622796177864075, 0.23716621100902557, 0.052543651312589645, 0.08610597252845764, 0.1265186369419098, -0.06300218403339386, -0.41263970732688904, -0.07425940781831741, 0.047715071588754654, -0.09740520268678665, 0.16696688532829285, 0.1920517534017563, 0.13287152349948883, 0.1559261679649353, -0.4045026898384094, -0.13764643669128418, 0.03230258822441101, -0.3769201934337616, 0.005557265132665634, -0.3176858127117157, 0.05463000386953354, -0.2702917754650116, -0.012081623077392578, -0.7623520493507385, -0.05212044343352318, -0.11227849870920181, 0.06602734327316284, 0.06387490034103394, -0.024416547268629074, 0.22275856137275696, -0.2470850646495819, 0.07498279213905334, 0.28331393003463745, -0.30055713653564453, -0.237823948264122, -0.06292804330587387, -0.0374925397336483, 0.1896342933177948, 0.2650883197784424, -0.20057684183120728, 0.2845460772514343, -0.16373547911643982, 0.2106703668832779, 0.3121519386768341, -0.3327314555644989, -0.22192609310150146, 0.6055203676223755, 0.019304923713207245, 0.5248497724533081, 0.0198843851685524, -0.23089532554149628, -0.00920121744275093, 0.18840482831001282, 0.3035944104194641, 0.40137070417404175, 0.14228790998458862, 0.0679159089922905, -0.24570538103580475, -0.2022639960050583, -0.1346425712108612, 0.3127696216106415, 0.048766836524009705, 0.18894007802009583, 0.09953584522008896, 0.024478182196617126, 0.25068745017051697, -0.19513940811157227, -0.026667313650250435, 0.16242356598377228, 0.09113357961177826, 0.028215188533067703, -0.005725775845348835, -0.004411516711115837, -0.6142935156822205, 0.1499556601047516, -0.05112329497933388, 0.10920243710279465, -0.40808624029159546, 0.009321510791778564, -0.25478342175483704, 0.12606734037399292, -0.12807583808898926, 0.18476757407188416, 0.03745242953300476, 0.1086537092924118, -0.18218670785427094, 0.21080227196216583, -0.18389320373535156, 0.3152328133583069, 0.1626443713903427, 0.2816525995731354, -0.4834643006324768, 0.43770748376846313, 0.21025541424751282, -0.12123847007751465, 0.027117498219013214, 0.18537119030952454, -0.09781777113676071, -0.16267116367816925, -0.23913565278053284, 0.1727544665336609, 0.1394183486700058, 0.17971430718898773, -0.05627702921628952, -0.23757164180278778, -0.08228324353694916, 0.08385907113552094, -0.1951911300420761, 0.30687740445137024, 0.22172389924526215, -0.024583838880062103, -0.028096318244934082, 0.8052093386650085, -0.07410740852355957, 0.44319722056388855, -0.015723533928394318, -0.02055114321410656, 0.45617198944091797, 0.06156548485159874, -0.36415350437164307, -0.3053399324417114, 0.23883548378944397, 0.31862515211105347, 0.060367364436388016, 0.004004640504717827, -0.37942999601364136, -0.1885230541229248, 0.3982873260974884, 0.005180183798074722, 0.24246254563331604, 0.15323463082313538, -0.09535709768533707, -0.09967201203107834, 0.015859581530094147, 0.14017842710018158, 0.23829898238182068, 0.07587647438049316, -0.2070479393005371, -0.04344576597213745, -0.0409475713968277, -0.024744730442762375, 0.15559929609298706, 0.3065353035926819, 0.2641778886318207, 0.09334783256053925, 0.15588931739330292, -0.020961876958608627, -0.28154662251472473, -0.23800356686115265, -0.28635984659194946, 0.11893855780363083, -0.6182568669319153, 0.29913827776908875, -0.47434723377227783, 0.11889145523309708, 0.035332612693309784, -0.3410828113555908, -0.12629945576190948, -0.32297053933143616, -0.30074256658554077, 0.2734282910823822, -0.1147489845752716, -0.13416652381420135, -0.26672300696372986, 0.31516966223716736, -0.023213179782032967, -0.34634748101234436, -0.21134185791015625, -0.0117185078561306, -0.1846482753753662, -0.023406291380524635, 0.3875873386859894, 0.10929727554321289, 0.1544726938009262, -0.1289406716823578, 0.047313615679740906, 0.14181813597679138, -0.08639765530824661, 0.14820027351379395, -0.19949859380722046, 0.28899386525154114, 0.21547093987464905, 0.19691044092178345, -0.09785348176956177, -0.1516469419002533, 0.28866589069366455, 0.09575174003839493, -0.34277138113975525, 0.32419225573539734, -0.13549940288066864, 0.027899345383048058, -0.14921680092811584, -0.029169082641601562, 0.12195485085248947, -0.4392542541027069, 0.5247156620025635, 0.24586845934391022, 0.05813877657055855, -0.01700688526034355, 0.02426106482744217, 0.1799216866493225, 0.1687059849500656, 0.015911445021629333, -0.11074601858854294, -0.15468592941761017, 0.23265735805034637, -0.1608329564332962, -0.25017648935317993, 0.07645510137081146, -0.1965515911579132, 0.16859063506126404, -0.08651360124349594, -0.3909761905670166, 0.025942586362361908, 0.070719413459301, 0.1136566698551178, -0.044404223561286926, -0.2952394187450409, 0.05882471427321434, -0.012750944122672081, 0.08519092202186584, -0.18557146191596985, -0.2022252231836319, 0.1206313893198967, -0.04381242394447327, 0.021603494882583618, 0.05651474744081497, 0.7252902984619141, -0.09429606795310974, 0.18077541887760162, 0.31180065870285034, -0.03827173635363579, 0.39497503638267517, -0.026444008573889732, 0.10300850123167038, -0.4057943820953369, -0.1191260889172554, -0.3808177411556244, -0.09711283445358276, 0.07863800972700119, 0.2193034589290619, 0.109642393887043, -0.2879478931427002, -0.24056051671504974, -0.06228504702448845, -0.45870524644851685, -0.3489455282688141, 0.1333789825439453, -0.35432538390159607, -0.33824920654296875, 0.03203330188989639, 0.22056397795677185, -0.058730222284793854, -0.05810185521841049, -0.030362417921423912, 0.40141522884368896, 0.20627892017364502, -0.04549991339445114, -0.20571184158325195, 0.03436759486794472, -0.35445407032966614, 0.360694944858551, 0.0746535137295723, 0.3657505512237549, 0.19745846092700958, -0.028096891939640045, 0.24474962055683136, -0.2093999683856964, 0.44907253980636597, -0.120010606944561, 0.02272782102227211, 0.02809552103281021, -0.12366526573896408, -0.6418697237968445, 0.1011509895324707, -0.12713098526000977, 0.2907666265964508, 0.23598304390907288, 0.20954836905002594, -0.4572594165802002, -0.29614222049713135, 0.10186870396137238, -0.15043924748897552, -0.10587044805288315, -0.10647602379322052, -0.3640390932559967, -0.29237768054008484, -0.24482963979244232, -0.1525718867778778, 0.02746974490582943, 0.2387116402387619, 0.08743756264448166, -0.09870682656764984, -0.2664903998374939, -0.06908459216356277, 0.12258430570363998, 0.21641606092453003, 0.188088059425354, -0.21739234030246735, 0.04097948595881462, 0.00611225888133049, 0.3643351197242737, 0.3959251642227173, 0.8496595025062561, 0.25615549087524414, -0.5346415042877197, 0.20925292372703552, -0.02454850822687149, 0.042045511305332184, 0.18659575283527374, 0.023035336285829544, 0.08351059257984161, 0.28506526350975037, 0.14488060772418976, -0.2175285369157791, -0.17658860981464386, 0.4804267883300781, -0.17388440668582916, -0.46211811900138855, -0.346392422914505, 0.49069011211395264, -0.11688166856765747, 0.02132999897003174, 0.22633929550647736, 0.26789864897727966, -0.1467054933309555, 0.7589287161827087, 0.0028836652636528015, 0.7930402159690857, 0.1487375795841217, 0.19805246591567993, 0.722146213054657, -0.5317476987838745, 0.40048328042030334, -0.03222978487610817, -0.07088629901409149, -0.23835356533527374, 0.598779022693634, -0.1820172518491745, -0.1515832543373108, -0.009593449532985687, 0.19250859320163727, -0.103069007396698, 0.022575195878744125, -0.3046777844429016, -0.016251977533102036, 0.07874850183725357, 0.12859773635864258, -0.11410646885633469, -0.2810198664665222, -0.7139281630516052, -0.013922136276960373, -0.12063425779342651, 0.03402134031057358, -0.0035201432183384895, -0.3064057230949402, -0.25588876008987427, -0.18885263800621033, -0.3464413285255432, 0.25798511505126953, 0.1630951315164566, -0.01847412809729576, 0.22303752601146698, -0.04961401969194412, 0.09468156099319458, -0.05247896537184715, 0.2925059497356415, -0.09333884716033936, -0.17544642090797424, 0.18701091408729553, -0.13640406727790833, -0.09913806617259979, -0.09244642406702042, -0.016064805909991264, 0.500575602054596, -0.07688353955745697, -0.1589546948671341, -0.20509999990463257, -0.2627158761024475, -0.5380346775054932, 0.26469236612319946, 0.41636544466018677, -0.346607506275177, -0.24097517132759094, -0.39311477541923523, -0.047527819871902466, 0.2723068296909332, -0.15706679224967957, 0.04984753578901291, 0.2624666690826416, 0.18393574655056, -0.0674581453204155, 0.2908506989479065, -0.36090368032455444, -0.10872894525527954, 0.3222660422325134, -0.03530958294868469, 0.05649521201848984, 0.5033448934555054, 0.2862294912338257, -0.21799607574939728, -0.19046145677566528, 0.2036413550376892, 0.8105597496032715, -0.6269248127937317, 0.3065251410007477, -0.17307719588279724, -0.05357924848794937, -0.04724163934588432, 0.3028700053691864, 0.06995413452386856, -0.023221351206302643, 0.05662162974476814, -0.6213235259056091, -0.10620085895061493, 0.4122465252876282, -0.15431369841098785, -0.021445337682962418, 0.1351444125175476, -0.016933590173721313, -0.2405518740415573, -0.17206165194511414, -0.17293524742126465, 0.21926286816596985, -0.1576310694217682, -0.20457801222801208, -0.30864351987838745, 0.06320490688085556, 0.578815221786499, 0.006806055083870888, 0.08658593893051147, 0.0817483440041542, -0.14363232254981995, -0.08859847486019135, -0.30098840594291687, 0.2072959989309311, 0.10435601323843002, -0.0927102267742157, -0.07845999300479889, 0.010122284293174744, -0.17902348935604095, -0.13574852049350739, 0.2507115602493286, 0.2667551338672638, -0.047717221081256866, -0.13315586745738983, 0.08134956657886505, 0.15249690413475037, -0.24473538994789124, 0.1382136344909668, -0.15908394753932953, 0.5401732921600342, 0.08584724366664886, -0.04767227917909622, -0.2291521281003952, 0.14430372416973114, -0.23546220362186432, 0.288127064704895, 0.2030770480632782, 0.21647119522094727, 0.4846537411212921, -0.4272494316101074, 0.03828272596001625, -0.20709340274333954, 0.0976068302989006, 0.31631648540496826, -0.2574576139450073, 0.05045739561319351, -0.16220176219940186, 0.05478840321302414, 0.013152189552783966, 0.052510350942611694, 0.139628604054451, -0.03898325935006142, 0.04270714893937111, 0.3336881399154663, -0.13881884515285492, 0.042832180857658386, -0.23344124853610992, 0.04584386944770813, 0.4255116283893585, 0.15897713601589203, 0.051013655960559845, 0.2905641198158264, -0.2684133052825928, 0.0809304416179657, 0.015853935852646828, 0.1407574862241745, 0.298078715801239, -0.007115654647350311, 0.06808746606111526, 0.021724941208958626, 0.14912360906600952, 0.2423139065504074, 0.0005277395248413086, -0.41590559482574463, -0.04208224639296532, 0.3158296048641205, -0.05004313588142395, 0.30922913551330566, 0.168863907456398, 0.33337339758872986, -0.18927663564682007, 0.09698616713285446, -0.4036628305912018, -0.16702213883399963, -0.053814224898815155, -0.22119928896427155, -0.5511426329612732, -0.20695221424102783, -0.3715265095233917, -0.11091694235801697, -0.1350989043712616, -0.061506837606430054, -0.2741716504096985, 0.18862277269363403, 0.05034477636218071, -0.33036261796951294, 0.08140771090984344, -0.19553878903388977, 0.20416927337646484, -0.15234705805778503, 0.22637058794498444, -0.009327307343482971, 0.03624469041824341, 0.31887948513031006, 0.0760156661272049, 0.5093177556991577, 0.22838078439235687, -0.0963350236415863, -0.24879470467567444, -0.02412388101220131, -0.1421782523393631, 0.04037827253341675, 0.34687888622283936, 0.18573231995105743, 0.03956321254372597, 0.24208228290081024, 0.1516416221857071, -0.1133229061961174, 0.3565618693828583, 0.0022537410259246826, 0.2634565830230713, -0.09924830496311188, 0.5178785920143127, -0.4676595628261566, 0.10009332746267319, -0.16723133623600006, -0.35254472494125366, -0.14604611694812775, -0.31882572174072266, -0.1780053973197937, -0.1945902705192566, -0.023563722148537636, -0.05869758129119873, 0.023275747895240784, -0.08691757917404175, 0.41792964935302734, 0.3949696719646454, 0.1819579154253006, 0.15318375825881958, -0.033079829066991806, -0.29729920625686646, 0.23512381315231323, -0.1318948119878769, 0.030758561566472054, 0.21575447916984558, 0.2165420800447464, 0.07676729559898376, 0.1726399064064026, 0.041249796748161316, 0.03877457603812218, 0.011110707186162472, 0.2165725976228714, -0.2433100938796997, -0.060974787920713425, 0.2753140926361084, 0.017352288588881493, -0.13577458262443542, -0.28093698620796204, -0.08887374401092529, -0.058575794100761414, -0.05983319133520126, 0.1518501341342926, -0.059538476169109344, -0.0654158666729927, -0.16986960172653198, 0.442549467086792, 0.1324360966682434, 0.20110934972763062, -0.05750926956534386, -0.4760093688964844, -0.26894280314445496, -0.41445228457450867, -0.13085050880908966, 0.37078407406806946, -0.1804433912038803, 0.6111353635787964, 0.03422299772500992, 0.14840470254421234, -0.01851939782500267, -0.04486341401934624, -0.18750707805156708, -0.09821821749210358, -0.5277866125106812, 0.29389965534210205, -0.39578428864479065, 0.14473490417003632, -0.13155721127986908, 0.10573180764913559, 0.12398523837327957, 0.19363175332546234, -0.07723544538021088, -0.23171401023864746, 0.4982312321662903, -0.2602385878562927, -0.31335946917533875, 0.2727922797203064, 0.08891452848911285, -0.13259083032608032, -0.2973821461200714, -0.6104027032852173, 0.010996662080287933, 0.21890543401241302, 0.030551383271813393, -0.21782709658145905, -0.11244949698448181, -0.12426020205020905, -0.05467698723077774, -0.13633468747138977, 0.22239869832992554, 0.01366947777569294, -0.11380717158317566, 0.1441098302602768, -0.1869696080684662 ]
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.06818746030330658, 0.18416160345077515, 0.03641561046242714, 0.3780701160430908, 0.2355371117591858, -0.006270997226238251, 0.4846678078174591, 0.36706268787384033, 0.4180770516395569, -0.002838723361492157, 0.060554154217243195, 0.5898874998092651, 0.027620885521173477, -0.1488579958677292, -0.2172115594148636, -0.18387238681316376, 0.03135593235492706, 0.19051602482795715, 0.1274455487728119, 0.028585053980350494, -0.31223276257514954, 0.2942066788673401, -0.21481618285179138, 0.10177437961101532, -0.039127543568611145, -0.09522668272256851, 0.10416208207607269, 0.3933393359184265, -0.12641870975494385, -0.3826468884944916, 0.4134071171283722, -0.013034913688898087, 0.21611659228801727, 0.5308529138565063, -0.00012035989493597299, 0.1964655965566635, 0.4152528643608093, -0.0924442857503891, -0.2868109345436096, -0.4780595302581787, -0.2790302038192749, -0.3253922462463379, 0.537476122379303, -0.12003831565380096, 0.10520455986261368, -0.24374713003635406, -0.04976940155029297, -0.22078175842761993, 0.6015408039093018, 0.23072274029254913, 0.10480254143476486, 0.4299403131008148, 0.026029597967863083, 0.019219573587179184, 0.06372802704572678, 0.21083812415599823, -0.12177571654319763, 0.45420458912849426, 0.008248060941696167, 0.12705372273921967, -0.17159685492515564, -0.0036357780918478966, -0.10264156758785248, 0.1538671851158142, 0.21912214159965515, 0.047601498663425446, -0.17040175199508667, 0.08183428645133972, 0.04925008490681648, 0.29463207721710205, 0.28457656502723694, -0.05088045448064804, -0.4122373163700104, -0.3489946722984314, -0.12078537046909332, 0.13027313351631165, 0.23882171511650085, 0.24736101925373077, -0.1509169191122055, 0.12593421339988708, 0.03288290649652481, -0.018471665680408478, -0.27419745922088623, 0.2383800595998764, 0.003644324839115143, 0.011187776923179626, -0.15821924805641174, 0.10729219019412994, -0.12958580255508423, -0.02082463726401329, -0.14993400871753693, -0.22448334097862244, -0.30575913190841675, 0.12837819755077362, 0.03749896585941315, 0.1160036027431488, -0.0355980321764946, -0.41007718443870544, 0.2355835735797882, 0.35584747791290283, 0.3206699788570404, 0.20801937580108643, -0.2673647105693817, 0.20784637331962585, 0.590324878692627, 0.20161306858062744, -0.0549013689160347, 0.011498847045004368, 0.2565004229545593, 0.3305143713951111, 0.06072982773184776, -0.043552786111831665, -0.26379942893981934, -0.11083295941352844, 0.010377220809459686, -0.19745087623596191, 0.30868083238601685, -0.17262572050094604, -0.22385260462760925, 0.07556349784135818, -0.6134256720542908, -0.057321418076753616, -0.00021823309361934662, 0.36729204654693604, -0.19718824326992035, 0.498776912689209, 0.27442824840545654, 0.486838698387146, 0.044216953217983246, 0.031728196889162064, -0.10223811864852905, -0.0353483147919178, -0.163483127951622, -0.29622796177864075, 0.23716621100902557, 0.052543651312589645, 0.08610597252845764, 0.1265186369419098, -0.06300218403339386, -0.41263970732688904, -0.07425940781831741, 0.047715071588754654, -0.09740520268678665, 0.16696688532829285, 0.1920517534017563, 0.13287152349948883, 0.1559261679649353, -0.4045026898384094, -0.13764643669128418, 0.03230258822441101, -0.3769201934337616, 0.005557265132665634, -0.3176858127117157, 0.05463000386953354, -0.2702917754650116, -0.012081623077392578, -0.7623520493507385, -0.05212044343352318, -0.11227849870920181, 0.06602734327316284, 0.06387490034103394, -0.024416547268629074, 0.22275856137275696, -0.2470850646495819, 0.07498279213905334, 0.28331393003463745, -0.30055713653564453, -0.237823948264122, -0.06292804330587387, -0.0374925397336483, 0.1896342933177948, 0.2650883197784424, -0.20057684183120728, 0.2845460772514343, -0.16373547911643982, 0.2106703668832779, 0.3121519386768341, -0.3327314555644989, -0.22192609310150146, 0.6055203676223755, 0.019304923713207245, 0.5248497724533081, 0.0198843851685524, -0.23089532554149628, -0.00920121744275093, 0.18840482831001282, 0.3035944104194641, 0.40137070417404175, 0.14228790998458862, 0.0679159089922905, -0.24570538103580475, -0.2022639960050583, -0.1346425712108612, 0.3127696216106415, 0.048766836524009705, 0.18894007802009583, 0.09953584522008896, 0.024478182196617126, 0.25068745017051697, -0.19513940811157227, -0.026667313650250435, 0.16242356598377228, 0.09113357961177826, 0.028215188533067703, -0.005725775845348835, -0.004411516711115837, -0.6142935156822205, 0.1499556601047516, -0.05112329497933388, 0.10920243710279465, -0.40808624029159546, 0.009321510791778564, -0.25478342175483704, 0.12606734037399292, -0.12807583808898926, 0.18476757407188416, 0.03745242953300476, 0.1086537092924118, -0.18218670785427094, 0.21080227196216583, -0.18389320373535156, 0.3152328133583069, 0.1626443713903427, 0.2816525995731354, -0.4834643006324768, 0.43770748376846313, 0.21025541424751282, -0.12123847007751465, 0.027117498219013214, 0.18537119030952454, -0.09781777113676071, -0.16267116367816925, -0.23913565278053284, 0.1727544665336609, 0.1394183486700058, 0.17971430718898773, -0.05627702921628952, -0.23757164180278778, -0.08228324353694916, 0.08385907113552094, -0.1951911300420761, 0.30687740445137024, 0.22172389924526215, -0.024583838880062103, -0.028096318244934082, 0.8052093386650085, -0.07410740852355957, 0.44319722056388855, -0.015723533928394318, -0.02055114321410656, 0.45617198944091797, 0.06156548485159874, -0.36415350437164307, -0.3053399324417114, 0.23883548378944397, 0.31862515211105347, 0.060367364436388016, 0.004004640504717827, -0.37942999601364136, -0.1885230541229248, 0.3982873260974884, 0.005180183798074722, 0.24246254563331604, 0.15323463082313538, -0.09535709768533707, -0.09967201203107834, 0.015859581530094147, 0.14017842710018158, 0.23829898238182068, 0.07587647438049316, -0.2070479393005371, -0.04344576597213745, -0.0409475713968277, -0.024744730442762375, 0.15559929609298706, 0.3065353035926819, 0.2641778886318207, 0.09334783256053925, 0.15588931739330292, -0.020961876958608627, -0.28154662251472473, -0.23800356686115265, -0.28635984659194946, 0.11893855780363083, -0.6182568669319153, 0.29913827776908875, -0.47434723377227783, 0.11889145523309708, 0.035332612693309784, -0.3410828113555908, -0.12629945576190948, -0.32297053933143616, -0.30074256658554077, 0.2734282910823822, -0.1147489845752716, -0.13416652381420135, -0.26672300696372986, 0.31516966223716736, -0.023213179782032967, -0.34634748101234436, -0.21134185791015625, -0.0117185078561306, -0.1846482753753662, -0.023406291380524635, 0.3875873386859894, 0.10929727554321289, 0.1544726938009262, -0.1289406716823578, 0.047313615679740906, 0.14181813597679138, -0.08639765530824661, 0.14820027351379395, -0.19949859380722046, 0.28899386525154114, 0.21547093987464905, 0.19691044092178345, -0.09785348176956177, -0.1516469419002533, 0.28866589069366455, 0.09575174003839493, -0.34277138113975525, 0.32419225573539734, -0.13549940288066864, 0.027899345383048058, -0.14921680092811584, -0.029169082641601562, 0.12195485085248947, -0.4392542541027069, 0.5247156620025635, 0.24586845934391022, 0.05813877657055855, -0.01700688526034355, 0.02426106482744217, 0.1799216866493225, 0.1687059849500656, 0.015911445021629333, -0.11074601858854294, -0.15468592941761017, 0.23265735805034637, -0.1608329564332962, -0.25017648935317993, 0.07645510137081146, -0.1965515911579132, 0.16859063506126404, -0.08651360124349594, -0.3909761905670166, 0.025942586362361908, 0.070719413459301, 0.1136566698551178, -0.044404223561286926, -0.2952394187450409, 0.05882471427321434, -0.012750944122672081, 0.08519092202186584, -0.18557146191596985, -0.2022252231836319, 0.1206313893198967, -0.04381242394447327, 0.021603494882583618, 0.05651474744081497, 0.7252902984619141, -0.09429606795310974, 0.18077541887760162, 0.31180065870285034, -0.03827173635363579, 0.39497503638267517, -0.026444008573889732, 0.10300850123167038, -0.4057943820953369, -0.1191260889172554, -0.3808177411556244, -0.09711283445358276, 0.07863800972700119, 0.2193034589290619, 0.109642393887043, -0.2879478931427002, -0.24056051671504974, -0.06228504702448845, -0.45870524644851685, -0.3489455282688141, 0.1333789825439453, -0.35432538390159607, -0.33824920654296875, 0.03203330188989639, 0.22056397795677185, -0.058730222284793854, -0.05810185521841049, -0.030362417921423912, 0.40141522884368896, 0.20627892017364502, -0.04549991339445114, -0.20571184158325195, 0.03436759486794472, -0.35445407032966614, 0.360694944858551, 0.0746535137295723, 0.3657505512237549, 0.19745846092700958, -0.028096891939640045, 0.24474962055683136, -0.2093999683856964, 0.44907253980636597, -0.120010606944561, 0.02272782102227211, 0.02809552103281021, -0.12366526573896408, -0.6418697237968445, 0.1011509895324707, -0.12713098526000977, 0.2907666265964508, 0.23598304390907288, 0.20954836905002594, -0.4572594165802002, -0.29614222049713135, 0.10186870396137238, -0.15043924748897552, -0.10587044805288315, -0.10647602379322052, -0.3640390932559967, -0.29237768054008484, -0.24482963979244232, -0.1525718867778778, 0.02746974490582943, 0.2387116402387619, 0.08743756264448166, -0.09870682656764984, -0.2664903998374939, -0.06908459216356277, 0.12258430570363998, 0.21641606092453003, 0.188088059425354, -0.21739234030246735, 0.04097948595881462, 0.00611225888133049, 0.3643351197242737, 0.3959251642227173, 0.8496595025062561, 0.25615549087524414, -0.5346415042877197, 0.20925292372703552, -0.02454850822687149, 0.042045511305332184, 0.18659575283527374, 0.023035336285829544, 0.08351059257984161, 0.28506526350975037, 0.14488060772418976, -0.2175285369157791, -0.17658860981464386, 0.4804267883300781, -0.17388440668582916, -0.46211811900138855, -0.346392422914505, 0.49069011211395264, -0.11688166856765747, 0.02132999897003174, 0.22633929550647736, 0.26789864897727966, -0.1467054933309555, 0.7589287161827087, 0.0028836652636528015, 0.7930402159690857, 0.1487375795841217, 0.19805246591567993, 0.722146213054657, -0.5317476987838745, 0.40048328042030334, -0.03222978487610817, -0.07088629901409149, -0.23835356533527374, 0.598779022693634, -0.1820172518491745, -0.1515832543373108, -0.009593449532985687, 0.19250859320163727, -0.103069007396698, 0.022575195878744125, -0.3046777844429016, -0.016251977533102036, 0.07874850183725357, 0.12859773635864258, -0.11410646885633469, -0.2810198664665222, -0.7139281630516052, -0.013922136276960373, -0.12063425779342651, 0.03402134031057358, -0.0035201432183384895, -0.3064057230949402, -0.25588876008987427, -0.18885263800621033, -0.3464413285255432, 0.25798511505126953, 0.1630951315164566, -0.01847412809729576, 0.22303752601146698, -0.04961401969194412, 0.09468156099319458, -0.05247896537184715, 0.2925059497356415, -0.09333884716033936, -0.17544642090797424, 0.18701091408729553, -0.13640406727790833, -0.09913806617259979, -0.09244642406702042, -0.016064805909991264, 0.500575602054596, -0.07688353955745697, -0.1589546948671341, -0.20509999990463257, -0.2627158761024475, -0.5380346775054932, 0.26469236612319946, 0.41636544466018677, -0.346607506275177, -0.24097517132759094, -0.39311477541923523, -0.047527819871902466, 0.2723068296909332, -0.15706679224967957, 0.04984753578901291, 0.2624666690826416, 0.18393574655056, -0.0674581453204155, 0.2908506989479065, -0.36090368032455444, -0.10872894525527954, 0.3222660422325134, -0.03530958294868469, 0.05649521201848984, 0.5033448934555054, 0.2862294912338257, -0.21799607574939728, -0.19046145677566528, 0.2036413550376892, 0.8105597496032715, -0.6269248127937317, 0.3065251410007477, -0.17307719588279724, -0.05357924848794937, -0.04724163934588432, 0.3028700053691864, 0.06995413452386856, -0.023221351206302643, 0.05662162974476814, -0.6213235259056091, -0.10620085895061493, 0.4122465252876282, -0.15431369841098785, -0.021445337682962418, 0.1351444125175476, -0.016933590173721313, -0.2405518740415573, -0.17206165194511414, -0.17293524742126465, 0.21926286816596985, -0.1576310694217682, -0.20457801222801208, -0.30864351987838745, 0.06320490688085556, 0.578815221786499, 0.006806055083870888, 0.08658593893051147, 0.0817483440041542, -0.14363232254981995, -0.08859847486019135, -0.30098840594291687, 0.2072959989309311, 0.10435601323843002, -0.0927102267742157, -0.07845999300479889, 0.010122284293174744, -0.17902348935604095, -0.13574852049350739, 0.2507115602493286, 0.2667551338672638, -0.047717221081256866, -0.13315586745738983, 0.08134956657886505, 0.15249690413475037, -0.24473538994789124, 0.1382136344909668, -0.15908394753932953, 0.5401732921600342, 0.08584724366664886, -0.04767227917909622, -0.2291521281003952, 0.14430372416973114, -0.23546220362186432, 0.288127064704895, 0.2030770480632782, 0.21647119522094727, 0.4846537411212921, -0.4272494316101074, 0.03828272596001625, -0.20709340274333954, 0.0976068302989006, 0.31631648540496826, -0.2574576139450073, 0.05045739561319351, -0.16220176219940186, 0.05478840321302414, 0.013152189552783966, 0.052510350942611694, 0.139628604054451, -0.03898325935006142, 0.04270714893937111, 0.3336881399154663, -0.13881884515285492, 0.042832180857658386, -0.23344124853610992, 0.04584386944770813, 0.4255116283893585, 0.15897713601589203, 0.051013655960559845, 0.2905641198158264, -0.2684133052825928, 0.0809304416179657, 0.015853935852646828, 0.1407574862241745, 0.298078715801239, -0.007115654647350311, 0.06808746606111526, 0.021724941208958626, 0.14912360906600952, 0.2423139065504074, 0.0005277395248413086, -0.41590559482574463, -0.04208224639296532, 0.3158296048641205, -0.05004313588142395, 0.30922913551330566, 0.168863907456398, 0.33337339758872986, -0.18927663564682007, 0.09698616713285446, -0.4036628305912018, -0.16702213883399963, -0.053814224898815155, -0.22119928896427155, -0.5511426329612732, -0.20695221424102783, -0.3715265095233917, -0.11091694235801697, -0.1350989043712616, -0.061506837606430054, -0.2741716504096985, 0.18862277269363403, 0.05034477636218071, -0.33036261796951294, 0.08140771090984344, -0.19553878903388977, 0.20416927337646484, -0.15234705805778503, 0.22637058794498444, -0.009327307343482971, 0.03624469041824341, 0.31887948513031006, 0.0760156661272049, 0.5093177556991577, 0.22838078439235687, -0.0963350236415863, -0.24879470467567444, -0.02412388101220131, -0.1421782523393631, 0.04037827253341675, 0.34687888622283936, 0.18573231995105743, 0.03956321254372597, 0.24208228290081024, 0.1516416221857071, -0.1133229061961174, 0.3565618693828583, 0.0022537410259246826, 0.2634565830230713, -0.09924830496311188, 0.5178785920143127, -0.4676595628261566, 0.10009332746267319, -0.16723133623600006, -0.35254472494125366, -0.14604611694812775, -0.31882572174072266, -0.1780053973197937, -0.1945902705192566, -0.023563722148537636, -0.05869758129119873, 0.023275747895240784, -0.08691757917404175, 0.41792964935302734, 0.3949696719646454, 0.1819579154253006, 0.15318375825881958, -0.033079829066991806, -0.29729920625686646, 0.23512381315231323, -0.1318948119878769, 0.030758561566472054, 0.21575447916984558, 0.2165420800447464, 0.07676729559898376, 0.1726399064064026, 0.041249796748161316, 0.03877457603812218, 0.011110707186162472, 0.2165725976228714, -0.2433100938796997, -0.060974787920713425, 0.2753140926361084, 0.017352288588881493, -0.13577458262443542, -0.28093698620796204, -0.08887374401092529, -0.058575794100761414, -0.05983319133520126, 0.1518501341342926, -0.059538476169109344, -0.0654158666729927, -0.16986960172653198, 0.442549467086792, 0.1324360966682434, 0.20110934972763062, -0.05750926956534386, -0.4760093688964844, -0.26894280314445496, -0.41445228457450867, -0.13085050880908966, 0.37078407406806946, -0.1804433912038803, 0.6111353635787964, 0.03422299772500992, 0.14840470254421234, -0.01851939782500267, -0.04486341401934624, -0.18750707805156708, -0.09821821749210358, -0.5277866125106812, 0.29389965534210205, -0.39578428864479065, 0.14473490417003632, -0.13155721127986908, 0.10573180764913559, 0.12398523837327957, 0.19363175332546234, -0.07723544538021088, -0.23171401023864746, 0.4982312321662903, -0.2602385878562927, -0.31335946917533875, 0.2727922797203064, 0.08891452848911285, -0.13259083032608032, -0.2973821461200714, -0.6104027032852173, 0.010996662080287933, 0.21890543401241302, 0.030551383271813393, -0.21782709658145905, -0.11244949698448181, -0.12426020205020905, -0.05467698723077774, -0.13633468747138977, 0.22239869832992554, 0.01366947777569294, -0.11380717158317566, 0.1441098302602768, -0.1869696080684662 ]
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.06818746030330658, 0.18416160345077515, 0.03641561046242714, 0.3780701160430908, 0.2355371117591858, -0.006270997226238251, 0.4846678078174591, 0.36706268787384033, 0.4180770516395569, -0.002838723361492157, 0.060554154217243195, 0.5898874998092651, 0.027620885521173477, -0.1488579958677292, -0.2172115594148636, -0.18387238681316376, 0.03135593235492706, 0.19051602482795715, 0.1274455487728119, 0.028585053980350494, -0.31223276257514954, 0.2942066788673401, -0.21481618285179138, 0.10177437961101532, -0.039127543568611145, -0.09522668272256851, 0.10416208207607269, 0.3933393359184265, -0.12641870975494385, -0.3826468884944916, 0.4134071171283722, -0.013034913688898087, 0.21611659228801727, 0.5308529138565063, -0.00012035989493597299, 0.1964655965566635, 0.4152528643608093, -0.0924442857503891, -0.2868109345436096, -0.4780595302581787, -0.2790302038192749, -0.3253922462463379, 0.537476122379303, -0.12003831565380096, 0.10520455986261368, -0.24374713003635406, -0.04976940155029297, -0.22078175842761993, 0.6015408039093018, 0.23072274029254913, 0.10480254143476486, 0.4299403131008148, 0.026029597967863083, 0.019219573587179184, 0.06372802704572678, 0.21083812415599823, -0.12177571654319763, 0.45420458912849426, 0.008248060941696167, 0.12705372273921967, -0.17159685492515564, -0.0036357780918478966, -0.10264156758785248, 0.1538671851158142, 0.21912214159965515, 0.047601498663425446, -0.17040175199508667, 0.08183428645133972, 0.04925008490681648, 0.29463207721710205, 0.28457656502723694, -0.05088045448064804, -0.4122373163700104, -0.3489946722984314, -0.12078537046909332, 0.13027313351631165, 0.23882171511650085, 0.24736101925373077, -0.1509169191122055, 0.12593421339988708, 0.03288290649652481, -0.018471665680408478, -0.27419745922088623, 0.2383800595998764, 0.003644324839115143, 0.011187776923179626, -0.15821924805641174, 0.10729219019412994, -0.12958580255508423, -0.02082463726401329, -0.14993400871753693, -0.22448334097862244, -0.30575913190841675, 0.12837819755077362, 0.03749896585941315, 0.1160036027431488, -0.0355980321764946, -0.41007718443870544, 0.2355835735797882, 0.35584747791290283, 0.3206699788570404, 0.20801937580108643, -0.2673647105693817, 0.20784637331962585, 0.590324878692627, 0.20161306858062744, -0.0549013689160347, 0.011498847045004368, 0.2565004229545593, 0.3305143713951111, 0.06072982773184776, -0.043552786111831665, -0.26379942893981934, -0.11083295941352844, 0.010377220809459686, -0.19745087623596191, 0.30868083238601685, -0.17262572050094604, -0.22385260462760925, 0.07556349784135818, -0.6134256720542908, -0.057321418076753616, -0.00021823309361934662, 0.36729204654693604, -0.19718824326992035, 0.498776912689209, 0.27442824840545654, 0.486838698387146, 0.044216953217983246, 0.031728196889162064, -0.10223811864852905, -0.0353483147919178, -0.163483127951622, -0.29622796177864075, 0.23716621100902557, 0.052543651312589645, 0.08610597252845764, 0.1265186369419098, -0.06300218403339386, -0.41263970732688904, -0.07425940781831741, 0.047715071588754654, -0.09740520268678665, 0.16696688532829285, 0.1920517534017563, 0.13287152349948883, 0.1559261679649353, -0.4045026898384094, -0.13764643669128418, 0.03230258822441101, -0.3769201934337616, 0.005557265132665634, -0.3176858127117157, 0.05463000386953354, -0.2702917754650116, -0.012081623077392578, -0.7623520493507385, -0.05212044343352318, -0.11227849870920181, 0.06602734327316284, 0.06387490034103394, -0.024416547268629074, 0.22275856137275696, -0.2470850646495819, 0.07498279213905334, 0.28331393003463745, -0.30055713653564453, -0.237823948264122, -0.06292804330587387, -0.0374925397336483, 0.1896342933177948, 0.2650883197784424, -0.20057684183120728, 0.2845460772514343, -0.16373547911643982, 0.2106703668832779, 0.3121519386768341, -0.3327314555644989, -0.22192609310150146, 0.6055203676223755, 0.019304923713207245, 0.5248497724533081, 0.0198843851685524, -0.23089532554149628, -0.00920121744275093, 0.18840482831001282, 0.3035944104194641, 0.40137070417404175, 0.14228790998458862, 0.0679159089922905, -0.24570538103580475, -0.2022639960050583, -0.1346425712108612, 0.3127696216106415, 0.048766836524009705, 0.18894007802009583, 0.09953584522008896, 0.024478182196617126, 0.25068745017051697, -0.19513940811157227, -0.026667313650250435, 0.16242356598377228, 0.09113357961177826, 0.028215188533067703, -0.005725775845348835, -0.004411516711115837, -0.6142935156822205, 0.1499556601047516, -0.05112329497933388, 0.10920243710279465, -0.40808624029159546, 0.009321510791778564, -0.25478342175483704, 0.12606734037399292, -0.12807583808898926, 0.18476757407188416, 0.03745242953300476, 0.1086537092924118, -0.18218670785427094, 0.21080227196216583, -0.18389320373535156, 0.3152328133583069, 0.1626443713903427, 0.2816525995731354, -0.4834643006324768, 0.43770748376846313, 0.21025541424751282, -0.12123847007751465, 0.027117498219013214, 0.18537119030952454, -0.09781777113676071, -0.16267116367816925, -0.23913565278053284, 0.1727544665336609, 0.1394183486700058, 0.17971430718898773, -0.05627702921628952, -0.23757164180278778, -0.08228324353694916, 0.08385907113552094, -0.1951911300420761, 0.30687740445137024, 0.22172389924526215, -0.024583838880062103, -0.028096318244934082, 0.8052093386650085, -0.07410740852355957, 0.44319722056388855, -0.015723533928394318, -0.02055114321410656, 0.45617198944091797, 0.06156548485159874, -0.36415350437164307, -0.3053399324417114, 0.23883548378944397, 0.31862515211105347, 0.060367364436388016, 0.004004640504717827, -0.37942999601364136, -0.1885230541229248, 0.3982873260974884, 0.005180183798074722, 0.24246254563331604, 0.15323463082313538, -0.09535709768533707, -0.09967201203107834, 0.015859581530094147, 0.14017842710018158, 0.23829898238182068, 0.07587647438049316, -0.2070479393005371, -0.04344576597213745, -0.0409475713968277, -0.024744730442762375, 0.15559929609298706, 0.3065353035926819, 0.2641778886318207, 0.09334783256053925, 0.15588931739330292, -0.020961876958608627, -0.28154662251472473, -0.23800356686115265, -0.28635984659194946, 0.11893855780363083, -0.6182568669319153, 0.29913827776908875, -0.47434723377227783, 0.11889145523309708, 0.035332612693309784, -0.3410828113555908, -0.12629945576190948, -0.32297053933143616, -0.30074256658554077, 0.2734282910823822, -0.1147489845752716, -0.13416652381420135, -0.26672300696372986, 0.31516966223716736, -0.023213179782032967, -0.34634748101234436, -0.21134185791015625, -0.0117185078561306, -0.1846482753753662, -0.023406291380524635, 0.3875873386859894, 0.10929727554321289, 0.1544726938009262, -0.1289406716823578, 0.047313615679740906, 0.14181813597679138, -0.08639765530824661, 0.14820027351379395, -0.19949859380722046, 0.28899386525154114, 0.21547093987464905, 0.19691044092178345, -0.09785348176956177, -0.1516469419002533, 0.28866589069366455, 0.09575174003839493, -0.34277138113975525, 0.32419225573539734, -0.13549940288066864, 0.027899345383048058, -0.14921680092811584, -0.029169082641601562, 0.12195485085248947, -0.4392542541027069, 0.5247156620025635, 0.24586845934391022, 0.05813877657055855, -0.01700688526034355, 0.02426106482744217, 0.1799216866493225, 0.1687059849500656, 0.015911445021629333, -0.11074601858854294, -0.15468592941761017, 0.23265735805034637, -0.1608329564332962, -0.25017648935317993, 0.07645510137081146, -0.1965515911579132, 0.16859063506126404, -0.08651360124349594, -0.3909761905670166, 0.025942586362361908, 0.070719413459301, 0.1136566698551178, -0.044404223561286926, -0.2952394187450409, 0.05882471427321434, -0.012750944122672081, 0.08519092202186584, -0.18557146191596985, -0.2022252231836319, 0.1206313893198967, -0.04381242394447327, 0.021603494882583618, 0.05651474744081497, 0.7252902984619141, -0.09429606795310974, 0.18077541887760162, 0.31180065870285034, -0.03827173635363579, 0.39497503638267517, -0.026444008573889732, 0.10300850123167038, -0.4057943820953369, -0.1191260889172554, -0.3808177411556244, -0.09711283445358276, 0.07863800972700119, 0.2193034589290619, 0.109642393887043, -0.2879478931427002, -0.24056051671504974, -0.06228504702448845, -0.45870524644851685, -0.3489455282688141, 0.1333789825439453, -0.35432538390159607, -0.33824920654296875, 0.03203330188989639, 0.22056397795677185, -0.058730222284793854, -0.05810185521841049, -0.030362417921423912, 0.40141522884368896, 0.20627892017364502, -0.04549991339445114, -0.20571184158325195, 0.03436759486794472, -0.35445407032966614, 0.360694944858551, 0.0746535137295723, 0.3657505512237549, 0.19745846092700958, -0.028096891939640045, 0.24474962055683136, -0.2093999683856964, 0.44907253980636597, -0.120010606944561, 0.02272782102227211, 0.02809552103281021, -0.12366526573896408, -0.6418697237968445, 0.1011509895324707, -0.12713098526000977, 0.2907666265964508, 0.23598304390907288, 0.20954836905002594, -0.4572594165802002, -0.29614222049713135, 0.10186870396137238, -0.15043924748897552, -0.10587044805288315, -0.10647602379322052, -0.3640390932559967, -0.29237768054008484, -0.24482963979244232, -0.1525718867778778, 0.02746974490582943, 0.2387116402387619, 0.08743756264448166, -0.09870682656764984, -0.2664903998374939, -0.06908459216356277, 0.12258430570363998, 0.21641606092453003, 0.188088059425354, -0.21739234030246735, 0.04097948595881462, 0.00611225888133049, 0.3643351197242737, 0.3959251642227173, 0.8496595025062561, 0.25615549087524414, -0.5346415042877197, 0.20925292372703552, -0.02454850822687149, 0.042045511305332184, 0.18659575283527374, 0.023035336285829544, 0.08351059257984161, 0.28506526350975037, 0.14488060772418976, -0.2175285369157791, -0.17658860981464386, 0.4804267883300781, -0.17388440668582916, -0.46211811900138855, -0.346392422914505, 0.49069011211395264, -0.11688166856765747, 0.02132999897003174, 0.22633929550647736, 0.26789864897727966, -0.1467054933309555, 0.7589287161827087, 0.0028836652636528015, 0.7930402159690857, 0.1487375795841217, 0.19805246591567993, 0.722146213054657, -0.5317476987838745, 0.40048328042030334, -0.03222978487610817, -0.07088629901409149, -0.23835356533527374, 0.598779022693634, -0.1820172518491745, -0.1515832543373108, -0.009593449532985687, 0.19250859320163727, -0.103069007396698, 0.022575195878744125, -0.3046777844429016, -0.016251977533102036, 0.07874850183725357, 0.12859773635864258, -0.11410646885633469, -0.2810198664665222, -0.7139281630516052, -0.013922136276960373, -0.12063425779342651, 0.03402134031057358, -0.0035201432183384895, -0.3064057230949402, -0.25588876008987427, -0.18885263800621033, -0.3464413285255432, 0.25798511505126953, 0.1630951315164566, -0.01847412809729576, 0.22303752601146698, -0.04961401969194412, 0.09468156099319458, -0.05247896537184715, 0.2925059497356415, -0.09333884716033936, -0.17544642090797424, 0.18701091408729553, -0.13640406727790833, -0.09913806617259979, -0.09244642406702042, -0.016064805909991264, 0.500575602054596, -0.07688353955745697, -0.1589546948671341, -0.20509999990463257, -0.2627158761024475, -0.5380346775054932, 0.26469236612319946, 0.41636544466018677, -0.346607506275177, -0.24097517132759094, -0.39311477541923523, -0.047527819871902466, 0.2723068296909332, -0.15706679224967957, 0.04984753578901291, 0.2624666690826416, 0.18393574655056, -0.0674581453204155, 0.2908506989479065, -0.36090368032455444, -0.10872894525527954, 0.3222660422325134, -0.03530958294868469, 0.05649521201848984, 0.5033448934555054, 0.2862294912338257, -0.21799607574939728, -0.19046145677566528, 0.2036413550376892, 0.8105597496032715, -0.6269248127937317, 0.3065251410007477, -0.17307719588279724, -0.05357924848794937, -0.04724163934588432, 0.3028700053691864, 0.06995413452386856, -0.023221351206302643, 0.05662162974476814, -0.6213235259056091, -0.10620085895061493, 0.4122465252876282, -0.15431369841098785, -0.021445337682962418, 0.1351444125175476, -0.016933590173721313, -0.2405518740415573, -0.17206165194511414, -0.17293524742126465, 0.21926286816596985, -0.1576310694217682, -0.20457801222801208, -0.30864351987838745, 0.06320490688085556, 0.578815221786499, 0.006806055083870888, 0.08658593893051147, 0.0817483440041542, -0.14363232254981995, -0.08859847486019135, -0.30098840594291687, 0.2072959989309311, 0.10435601323843002, -0.0927102267742157, -0.07845999300479889, 0.010122284293174744, -0.17902348935604095, -0.13574852049350739, 0.2507115602493286, 0.2667551338672638, -0.047717221081256866, -0.13315586745738983, 0.08134956657886505, 0.15249690413475037, -0.24473538994789124, 0.1382136344909668, -0.15908394753932953, 0.5401732921600342, 0.08584724366664886, -0.04767227917909622, -0.2291521281003952, 0.14430372416973114, -0.23546220362186432, 0.288127064704895, 0.2030770480632782, 0.21647119522094727, 0.4846537411212921, -0.4272494316101074, 0.03828272596001625, -0.20709340274333954, 0.0976068302989006, 0.31631648540496826, -0.2574576139450073, 0.05045739561319351, -0.16220176219940186, 0.05478840321302414, 0.013152189552783966, 0.052510350942611694, 0.139628604054451, -0.03898325935006142, 0.04270714893937111, 0.3336881399154663, -0.13881884515285492, 0.042832180857658386, -0.23344124853610992, 0.04584386944770813, 0.4255116283893585, 0.15897713601589203, 0.051013655960559845, 0.2905641198158264, -0.2684133052825928, 0.0809304416179657, 0.015853935852646828, 0.1407574862241745, 0.298078715801239, -0.007115654647350311, 0.06808746606111526, 0.021724941208958626, 0.14912360906600952, 0.2423139065504074, 0.0005277395248413086, -0.41590559482574463, -0.04208224639296532, 0.3158296048641205, -0.05004313588142395, 0.30922913551330566, 0.168863907456398, 0.33337339758872986, -0.18927663564682007, 0.09698616713285446, -0.4036628305912018, -0.16702213883399963, -0.053814224898815155, -0.22119928896427155, -0.5511426329612732, -0.20695221424102783, -0.3715265095233917, -0.11091694235801697, -0.1350989043712616, -0.061506837606430054, -0.2741716504096985, 0.18862277269363403, 0.05034477636218071, -0.33036261796951294, 0.08140771090984344, -0.19553878903388977, 0.20416927337646484, -0.15234705805778503, 0.22637058794498444, -0.009327307343482971, 0.03624469041824341, 0.31887948513031006, 0.0760156661272049, 0.5093177556991577, 0.22838078439235687, -0.0963350236415863, -0.24879470467567444, -0.02412388101220131, -0.1421782523393631, 0.04037827253341675, 0.34687888622283936, 0.18573231995105743, 0.03956321254372597, 0.24208228290081024, 0.1516416221857071, -0.1133229061961174, 0.3565618693828583, 0.0022537410259246826, 0.2634565830230713, -0.09924830496311188, 0.5178785920143127, -0.4676595628261566, 0.10009332746267319, -0.16723133623600006, -0.35254472494125366, -0.14604611694812775, -0.31882572174072266, -0.1780053973197937, -0.1945902705192566, -0.023563722148537636, -0.05869758129119873, 0.023275747895240784, -0.08691757917404175, 0.41792964935302734, 0.3949696719646454, 0.1819579154253006, 0.15318375825881958, -0.033079829066991806, -0.29729920625686646, 0.23512381315231323, -0.1318948119878769, 0.030758561566472054, 0.21575447916984558, 0.2165420800447464, 0.07676729559898376, 0.1726399064064026, 0.041249796748161316, 0.03877457603812218, 0.011110707186162472, 0.2165725976228714, -0.2433100938796997, -0.060974787920713425, 0.2753140926361084, 0.017352288588881493, -0.13577458262443542, -0.28093698620796204, -0.08887374401092529, -0.058575794100761414, -0.05983319133520126, 0.1518501341342926, -0.059538476169109344, -0.0654158666729927, -0.16986960172653198, 0.442549467086792, 0.1324360966682434, 0.20110934972763062, -0.05750926956534386, -0.4760093688964844, -0.26894280314445496, -0.41445228457450867, -0.13085050880908966, 0.37078407406806946, -0.1804433912038803, 0.6111353635787964, 0.03422299772500992, 0.14840470254421234, -0.01851939782500267, -0.04486341401934624, -0.18750707805156708, -0.09821821749210358, -0.5277866125106812, 0.29389965534210205, -0.39578428864479065, 0.14473490417003632, -0.13155721127986908, 0.10573180764913559, 0.12398523837327957, 0.19363175332546234, -0.07723544538021088, -0.23171401023864746, 0.4982312321662903, -0.2602385878562927, -0.31335946917533875, 0.2727922797203064, 0.08891452848911285, -0.13259083032608032, -0.2973821461200714, -0.6104027032852173, 0.010996662080287933, 0.21890543401241302, 0.030551383271813393, -0.21782709658145905, -0.11244949698448181, -0.12426020205020905, -0.05467698723077774, -0.13633468747138977, 0.22239869832992554, 0.01366947777569294, -0.11380717158317566, 0.1441098302602768, -0.1869696080684662 ]
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.06818746030330658, 0.18416160345077515, 0.03641561046242714, 0.3780701160430908, 0.2355371117591858, -0.006270997226238251, 0.4846678078174591, 0.36706268787384033, 0.4180770516395569, -0.002838723361492157, 0.060554154217243195, 0.5898874998092651, 0.027620885521173477, -0.1488579958677292, -0.2172115594148636, -0.18387238681316376, 0.03135593235492706, 0.19051602482795715, 0.1274455487728119, 0.028585053980350494, -0.31223276257514954, 0.2942066788673401, -0.21481618285179138, 0.10177437961101532, -0.039127543568611145, -0.09522668272256851, 0.10416208207607269, 0.3933393359184265, -0.12641870975494385, -0.3826468884944916, 0.4134071171283722, -0.013034913688898087, 0.21611659228801727, 0.5308529138565063, -0.00012035989493597299, 0.1964655965566635, 0.4152528643608093, -0.0924442857503891, -0.2868109345436096, -0.4780595302581787, -0.2790302038192749, -0.3253922462463379, 0.537476122379303, -0.12003831565380096, 0.10520455986261368, -0.24374713003635406, -0.04976940155029297, -0.22078175842761993, 0.6015408039093018, 0.23072274029254913, 0.10480254143476486, 0.4299403131008148, 0.026029597967863083, 0.019219573587179184, 0.06372802704572678, 0.21083812415599823, -0.12177571654319763, 0.45420458912849426, 0.008248060941696167, 0.12705372273921967, -0.17159685492515564, -0.0036357780918478966, -0.10264156758785248, 0.1538671851158142, 0.21912214159965515, 0.047601498663425446, -0.17040175199508667, 0.08183428645133972, 0.04925008490681648, 0.29463207721710205, 0.28457656502723694, -0.05088045448064804, -0.4122373163700104, -0.3489946722984314, -0.12078537046909332, 0.13027313351631165, 0.23882171511650085, 0.24736101925373077, -0.1509169191122055, 0.12593421339988708, 0.03288290649652481, -0.018471665680408478, -0.27419745922088623, 0.2383800595998764, 0.003644324839115143, 0.011187776923179626, -0.15821924805641174, 0.10729219019412994, -0.12958580255508423, -0.02082463726401329, -0.14993400871753693, -0.22448334097862244, -0.30575913190841675, 0.12837819755077362, 0.03749896585941315, 0.1160036027431488, -0.0355980321764946, -0.41007718443870544, 0.2355835735797882, 0.35584747791290283, 0.3206699788570404, 0.20801937580108643, -0.2673647105693817, 0.20784637331962585, 0.590324878692627, 0.20161306858062744, -0.0549013689160347, 0.011498847045004368, 0.2565004229545593, 0.3305143713951111, 0.06072982773184776, -0.043552786111831665, -0.26379942893981934, -0.11083295941352844, 0.010377220809459686, -0.19745087623596191, 0.30868083238601685, -0.17262572050094604, -0.22385260462760925, 0.07556349784135818, -0.6134256720542908, -0.057321418076753616, -0.00021823309361934662, 0.36729204654693604, -0.19718824326992035, 0.498776912689209, 0.27442824840545654, 0.486838698387146, 0.044216953217983246, 0.031728196889162064, -0.10223811864852905, -0.0353483147919178, -0.163483127951622, -0.29622796177864075, 0.23716621100902557, 0.052543651312589645, 0.08610597252845764, 0.1265186369419098, -0.06300218403339386, -0.41263970732688904, -0.07425940781831741, 0.047715071588754654, -0.09740520268678665, 0.16696688532829285, 0.1920517534017563, 0.13287152349948883, 0.1559261679649353, -0.4045026898384094, -0.13764643669128418, 0.03230258822441101, -0.3769201934337616, 0.005557265132665634, -0.3176858127117157, 0.05463000386953354, -0.2702917754650116, -0.012081623077392578, -0.7623520493507385, -0.05212044343352318, -0.11227849870920181, 0.06602734327316284, 0.06387490034103394, -0.024416547268629074, 0.22275856137275696, -0.2470850646495819, 0.07498279213905334, 0.28331393003463745, -0.30055713653564453, -0.237823948264122, -0.06292804330587387, -0.0374925397336483, 0.1896342933177948, 0.2650883197784424, -0.20057684183120728, 0.2845460772514343, -0.16373547911643982, 0.2106703668832779, 0.3121519386768341, -0.3327314555644989, -0.22192609310150146, 0.6055203676223755, 0.019304923713207245, 0.5248497724533081, 0.0198843851685524, -0.23089532554149628, -0.00920121744275093, 0.18840482831001282, 0.3035944104194641, 0.40137070417404175, 0.14228790998458862, 0.0679159089922905, -0.24570538103580475, -0.2022639960050583, -0.1346425712108612, 0.3127696216106415, 0.048766836524009705, 0.18894007802009583, 0.09953584522008896, 0.024478182196617126, 0.25068745017051697, -0.19513940811157227, -0.026667313650250435, 0.16242356598377228, 0.09113357961177826, 0.028215188533067703, -0.005725775845348835, -0.004411516711115837, -0.6142935156822205, 0.1499556601047516, -0.05112329497933388, 0.10920243710279465, -0.40808624029159546, 0.009321510791778564, -0.25478342175483704, 0.12606734037399292, -0.12807583808898926, 0.18476757407188416, 0.03745242953300476, 0.1086537092924118, -0.18218670785427094, 0.21080227196216583, -0.18389320373535156, 0.3152328133583069, 0.1626443713903427, 0.2816525995731354, -0.4834643006324768, 0.43770748376846313, 0.21025541424751282, -0.12123847007751465, 0.027117498219013214, 0.18537119030952454, -0.09781777113676071, -0.16267116367816925, -0.23913565278053284, 0.1727544665336609, 0.1394183486700058, 0.17971430718898773, -0.05627702921628952, -0.23757164180278778, -0.08228324353694916, 0.08385907113552094, -0.1951911300420761, 0.30687740445137024, 0.22172389924526215, -0.024583838880062103, -0.028096318244934082, 0.8052093386650085, -0.07410740852355957, 0.44319722056388855, -0.015723533928394318, -0.02055114321410656, 0.45617198944091797, 0.06156548485159874, -0.36415350437164307, -0.3053399324417114, 0.23883548378944397, 0.31862515211105347, 0.060367364436388016, 0.004004640504717827, -0.37942999601364136, -0.1885230541229248, 0.3982873260974884, 0.005180183798074722, 0.24246254563331604, 0.15323463082313538, -0.09535709768533707, -0.09967201203107834, 0.015859581530094147, 0.14017842710018158, 0.23829898238182068, 0.07587647438049316, -0.2070479393005371, -0.04344576597213745, -0.0409475713968277, -0.024744730442762375, 0.15559929609298706, 0.3065353035926819, 0.2641778886318207, 0.09334783256053925, 0.15588931739330292, -0.020961876958608627, -0.28154662251472473, -0.23800356686115265, -0.28635984659194946, 0.11893855780363083, -0.6182568669319153, 0.29913827776908875, -0.47434723377227783, 0.11889145523309708, 0.035332612693309784, -0.3410828113555908, -0.12629945576190948, -0.32297053933143616, -0.30074256658554077, 0.2734282910823822, -0.1147489845752716, -0.13416652381420135, -0.26672300696372986, 0.31516966223716736, -0.023213179782032967, -0.34634748101234436, -0.21134185791015625, -0.0117185078561306, -0.1846482753753662, -0.023406291380524635, 0.3875873386859894, 0.10929727554321289, 0.1544726938009262, -0.1289406716823578, 0.047313615679740906, 0.14181813597679138, -0.08639765530824661, 0.14820027351379395, -0.19949859380722046, 0.28899386525154114, 0.21547093987464905, 0.19691044092178345, -0.09785348176956177, -0.1516469419002533, 0.28866589069366455, 0.09575174003839493, -0.34277138113975525, 0.32419225573539734, -0.13549940288066864, 0.027899345383048058, -0.14921680092811584, -0.029169082641601562, 0.12195485085248947, -0.4392542541027069, 0.5247156620025635, 0.24586845934391022, 0.05813877657055855, -0.01700688526034355, 0.02426106482744217, 0.1799216866493225, 0.1687059849500656, 0.015911445021629333, -0.11074601858854294, -0.15468592941761017, 0.23265735805034637, -0.1608329564332962, -0.25017648935317993, 0.07645510137081146, -0.1965515911579132, 0.16859063506126404, -0.08651360124349594, -0.3909761905670166, 0.025942586362361908, 0.070719413459301, 0.1136566698551178, -0.044404223561286926, -0.2952394187450409, 0.05882471427321434, -0.012750944122672081, 0.08519092202186584, -0.18557146191596985, -0.2022252231836319, 0.1206313893198967, -0.04381242394447327, 0.021603494882583618, 0.05651474744081497, 0.7252902984619141, -0.09429606795310974, 0.18077541887760162, 0.31180065870285034, -0.03827173635363579, 0.39497503638267517, -0.026444008573889732, 0.10300850123167038, -0.4057943820953369, -0.1191260889172554, -0.3808177411556244, -0.09711283445358276, 0.07863800972700119, 0.2193034589290619, 0.109642393887043, -0.2879478931427002, -0.24056051671504974, -0.06228504702448845, -0.45870524644851685, -0.3489455282688141, 0.1333789825439453, -0.35432538390159607, -0.33824920654296875, 0.03203330188989639, 0.22056397795677185, -0.058730222284793854, -0.05810185521841049, -0.030362417921423912, 0.40141522884368896, 0.20627892017364502, -0.04549991339445114, -0.20571184158325195, 0.03436759486794472, -0.35445407032966614, 0.360694944858551, 0.0746535137295723, 0.3657505512237549, 0.19745846092700958, -0.028096891939640045, 0.24474962055683136, -0.2093999683856964, 0.44907253980636597, -0.120010606944561, 0.02272782102227211, 0.02809552103281021, -0.12366526573896408, -0.6418697237968445, 0.1011509895324707, -0.12713098526000977, 0.2907666265964508, 0.23598304390907288, 0.20954836905002594, -0.4572594165802002, -0.29614222049713135, 0.10186870396137238, -0.15043924748897552, -0.10587044805288315, -0.10647602379322052, -0.3640390932559967, -0.29237768054008484, -0.24482963979244232, -0.1525718867778778, 0.02746974490582943, 0.2387116402387619, 0.08743756264448166, -0.09870682656764984, -0.2664903998374939, -0.06908459216356277, 0.12258430570363998, 0.21641606092453003, 0.188088059425354, -0.21739234030246735, 0.04097948595881462, 0.00611225888133049, 0.3643351197242737, 0.3959251642227173, 0.8496595025062561, 0.25615549087524414, -0.5346415042877197, 0.20925292372703552, -0.02454850822687149, 0.042045511305332184, 0.18659575283527374, 0.023035336285829544, 0.08351059257984161, 0.28506526350975037, 0.14488060772418976, -0.2175285369157791, -0.17658860981464386, 0.4804267883300781, -0.17388440668582916, -0.46211811900138855, -0.346392422914505, 0.49069011211395264, -0.11688166856765747, 0.02132999897003174, 0.22633929550647736, 0.26789864897727966, -0.1467054933309555, 0.7589287161827087, 0.0028836652636528015, 0.7930402159690857, 0.1487375795841217, 0.19805246591567993, 0.722146213054657, -0.5317476987838745, 0.40048328042030334, -0.03222978487610817, -0.07088629901409149, -0.23835356533527374, 0.598779022693634, -0.1820172518491745, -0.1515832543373108, -0.009593449532985687, 0.19250859320163727, -0.103069007396698, 0.022575195878744125, -0.3046777844429016, -0.016251977533102036, 0.07874850183725357, 0.12859773635864258, -0.11410646885633469, -0.2810198664665222, -0.7139281630516052, -0.013922136276960373, -0.12063425779342651, 0.03402134031057358, -0.0035201432183384895, -0.3064057230949402, -0.25588876008987427, -0.18885263800621033, -0.3464413285255432, 0.25798511505126953, 0.1630951315164566, -0.01847412809729576, 0.22303752601146698, -0.04961401969194412, 0.09468156099319458, -0.05247896537184715, 0.2925059497356415, -0.09333884716033936, -0.17544642090797424, 0.18701091408729553, -0.13640406727790833, -0.09913806617259979, -0.09244642406702042, -0.016064805909991264, 0.500575602054596, -0.07688353955745697, -0.1589546948671341, -0.20509999990463257, -0.2627158761024475, -0.5380346775054932, 0.26469236612319946, 0.41636544466018677, -0.346607506275177, -0.24097517132759094, -0.39311477541923523, -0.047527819871902466, 0.2723068296909332, -0.15706679224967957, 0.04984753578901291, 0.2624666690826416, 0.18393574655056, -0.0674581453204155, 0.2908506989479065, -0.36090368032455444, -0.10872894525527954, 0.3222660422325134, -0.03530958294868469, 0.05649521201848984, 0.5033448934555054, 0.2862294912338257, -0.21799607574939728, -0.19046145677566528, 0.2036413550376892, 0.8105597496032715, -0.6269248127937317, 0.3065251410007477, -0.17307719588279724, -0.05357924848794937, -0.04724163934588432, 0.3028700053691864, 0.06995413452386856, -0.023221351206302643, 0.05662162974476814, -0.6213235259056091, -0.10620085895061493, 0.4122465252876282, -0.15431369841098785, -0.021445337682962418, 0.1351444125175476, -0.016933590173721313, -0.2405518740415573, -0.17206165194511414, -0.17293524742126465, 0.21926286816596985, -0.1576310694217682, -0.20457801222801208, -0.30864351987838745, 0.06320490688085556, 0.578815221786499, 0.006806055083870888, 0.08658593893051147, 0.0817483440041542, -0.14363232254981995, -0.08859847486019135, -0.30098840594291687, 0.2072959989309311, 0.10435601323843002, -0.0927102267742157, -0.07845999300479889, 0.010122284293174744, -0.17902348935604095, -0.13574852049350739, 0.2507115602493286, 0.2667551338672638, -0.047717221081256866, -0.13315586745738983, 0.08134956657886505, 0.15249690413475037, -0.24473538994789124, 0.1382136344909668, -0.15908394753932953, 0.5401732921600342, 0.08584724366664886, -0.04767227917909622, -0.2291521281003952, 0.14430372416973114, -0.23546220362186432, 0.288127064704895, 0.2030770480632782, 0.21647119522094727, 0.4846537411212921, -0.4272494316101074, 0.03828272596001625, -0.20709340274333954, 0.0976068302989006, 0.31631648540496826, -0.2574576139450073, 0.05045739561319351, -0.16220176219940186, 0.05478840321302414, 0.013152189552783966, 0.052510350942611694, 0.139628604054451, -0.03898325935006142, 0.04270714893937111, 0.3336881399154663, -0.13881884515285492, 0.042832180857658386, -0.23344124853610992, 0.04584386944770813, 0.4255116283893585, 0.15897713601589203, 0.051013655960559845, 0.2905641198158264, -0.2684133052825928, 0.0809304416179657, 0.015853935852646828, 0.1407574862241745, 0.298078715801239, -0.007115654647350311, 0.06808746606111526, 0.021724941208958626, 0.14912360906600952, 0.2423139065504074, 0.0005277395248413086, -0.41590559482574463, -0.04208224639296532, 0.3158296048641205, -0.05004313588142395, 0.30922913551330566, 0.168863907456398, 0.33337339758872986, -0.18927663564682007, 0.09698616713285446, -0.4036628305912018, -0.16702213883399963, -0.053814224898815155, -0.22119928896427155, -0.5511426329612732, -0.20695221424102783, -0.3715265095233917, -0.11091694235801697, -0.1350989043712616, -0.061506837606430054, -0.2741716504096985, 0.18862277269363403, 0.05034477636218071, -0.33036261796951294, 0.08140771090984344, -0.19553878903388977, 0.20416927337646484, -0.15234705805778503, 0.22637058794498444, -0.009327307343482971, 0.03624469041824341, 0.31887948513031006, 0.0760156661272049, 0.5093177556991577, 0.22838078439235687, -0.0963350236415863, -0.24879470467567444, -0.02412388101220131, -0.1421782523393631, 0.04037827253341675, 0.34687888622283936, 0.18573231995105743, 0.03956321254372597, 0.24208228290081024, 0.1516416221857071, -0.1133229061961174, 0.3565618693828583, 0.0022537410259246826, 0.2634565830230713, -0.09924830496311188, 0.5178785920143127, -0.4676595628261566, 0.10009332746267319, -0.16723133623600006, -0.35254472494125366, -0.14604611694812775, -0.31882572174072266, -0.1780053973197937, -0.1945902705192566, -0.023563722148537636, -0.05869758129119873, 0.023275747895240784, -0.08691757917404175, 0.41792964935302734, 0.3949696719646454, 0.1819579154253006, 0.15318375825881958, -0.033079829066991806, -0.29729920625686646, 0.23512381315231323, -0.1318948119878769, 0.030758561566472054, 0.21575447916984558, 0.2165420800447464, 0.07676729559898376, 0.1726399064064026, 0.041249796748161316, 0.03877457603812218, 0.011110707186162472, 0.2165725976228714, -0.2433100938796997, -0.060974787920713425, 0.2753140926361084, 0.017352288588881493, -0.13577458262443542, -0.28093698620796204, -0.08887374401092529, -0.058575794100761414, -0.05983319133520126, 0.1518501341342926, -0.059538476169109344, -0.0654158666729927, -0.16986960172653198, 0.442549467086792, 0.1324360966682434, 0.20110934972763062, -0.05750926956534386, -0.4760093688964844, -0.26894280314445496, -0.41445228457450867, -0.13085050880908966, 0.37078407406806946, -0.1804433912038803, 0.6111353635787964, 0.03422299772500992, 0.14840470254421234, -0.01851939782500267, -0.04486341401934624, -0.18750707805156708, -0.09821821749210358, -0.5277866125106812, 0.29389965534210205, -0.39578428864479065, 0.14473490417003632, -0.13155721127986908, 0.10573180764913559, 0.12398523837327957, 0.19363175332546234, -0.07723544538021088, -0.23171401023864746, 0.4982312321662903, -0.2602385878562927, -0.31335946917533875, 0.2727922797203064, 0.08891452848911285, -0.13259083032608032, -0.2973821461200714, -0.6104027032852173, 0.010996662080287933, 0.21890543401241302, 0.030551383271813393, -0.21782709658145905, -0.11244949698448181, -0.12426020205020905, -0.05467698723077774, -0.13633468747138977, 0.22239869832992554, 0.01366947777569294, -0.11380717158317566, 0.1441098302602768, -0.1869696080684662 ]
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.31387966871261597, -0.17968589067459106, -0.11428788304328918, 0.14546209573745728, -0.015787683427333832, 0.35745689272880554, 0.4449554681777954, 0.49487659335136414, 0.5567870140075684, 0.019508235156536102, -0.07451491802930832, 0.19857746362686157, 0.028143668547272682, 0.1434573382139206, 0.12763899564743042, -0.32373347878456116, -0.053454555571079254, 0.11875021457672119, 0.2718999683856964, 0.010106854140758514, -0.1883498877286911, 0.09186109900474548, -0.4363407492637634, -0.3013262152671814, -0.1955500841140747, 0.03350263833999634, -0.38322684168815613, 0.058688849210739136, 0.029834214597940445, -0.23220571875572205, 0.047616809606552124, 0.2474764585494995, 0.0852343738079071, 0.011206522583961487, -0.00011817483027698472, 0.0020296722650527954, 0.19295500218868256, -0.30495116114616394, -0.2270878255367279, -0.32929039001464844, -0.04616643488407135, 0.06328011304140091, -0.07713598012924194, -0.3171573579311371, -0.15424305200576782, -0.16016006469726562, -0.03165372461080551, -0.13857093453407288, 0.46436554193496704, 0.18265673518180847, 0.020330309867858887, 0.11051301658153534, -0.3269139528274536, -0.10888807475566864, 0.37466150522232056, 0.3522201180458069, 0.2187463641166687, 0.0444292277097702, 0.4358341693878174, -0.04708007723093033, -0.11414492875337601, -0.1930224746465683, -0.03407377004623413, 0.2639250159263611, 0.1277293860912323, 0.12466853857040405, -0.327638179063797, -0.332271009683609, -0.1635403335094452, 0.4533858001232147, 0.24877306818962097, 0.009119447320699692, -0.4796768128871918, -0.6428293585777283, 0.009505614638328552, -0.3940195143222809, -0.18484744429588318, 0.4530916213989258, -0.39959660172462463, 0.0952170342206955, 0.1818256676197052, -0.05720322206616402, 0.02196817845106125, 0.2663126587867737, 0.05693347007036209, 0.1254369467496872, -0.06765548139810562, 0.08104909956455231, 0.7294518947601318, 0.14164146780967712, -0.04211811348795891, -0.20767910778522491, -0.0797927975654602, 0.11882811039686203, -0.46367281675338745, -0.10481449216604233, -0.27715712785720825, -0.008905157446861267, 0.18929541110992432, 0.3294665813446045, 0.06800936907529831, -0.24144810438156128, 0.14941097795963287, 0.17003466188907623, 0.6460334062576294, -0.23813475668430328, -0.03473564237356186, 0.17129135131835938, -0.16953149437904358, 0.017624875530600548, 0.03319330886006355, -0.0454389750957489, -0.03810424730181694, -0.1814245581626892, -0.3282942771911621, 0.10581259429454803, -0.12743023037910461, 0.08603975176811218, -0.19482648372650146, -0.4890434443950653, -0.2440895140171051, -0.5034531950950623, 0.07628685235977173, 0.35990801453590393, 0.2342456579208374, -0.08387695252895355, -0.17355214059352875, 0.4428136944770813, -0.08892584592103958, -0.27470722794532776, -0.1148848682641983, 0.22234055399894714, -0.10898107290267944, 0.005718895234167576, 0.1465911567211151, -0.1884326934814453, 0.2893146276473999, -0.08655519038438797, 0.22696609795093536, -0.230608269572258, 0.30359452962875366, -0.13872608542442322, 0.15885648131370544, 0.13407549262046814, 0.2950136959552765, -0.011969677172601223, 0.26606833934783936, -0.03985035419464111, -0.1329246163368225, 0.2388458549976349, -0.25715088844299316, -0.19128583371639252, 0.2006831020116806, -0.022559110075235367, 0.010538693517446518, 0.1674264669418335, -0.36205166578292847, 0.2915102541446686, 0.11891516298055649, 0.13593648374080658, -0.11352703720331192, -0.15903231501579285, 0.0445086769759655, -0.0197431743144989, 0.15579918026924133, 0.3986881971359253, -0.23465828597545624, -0.12349128723144531, -0.20773233473300934, -0.171735942363739, 0.3626837432384491, 0.03508603572845459, -0.36348313093185425, 0.24145442247390747, -0.3660295903682709, 0.7993335127830505, 0.33450862765312195, 0.1338740587234497, -0.013738222420215607, 0.42712050676345825, 0.022096626460552216, 0.038051337003707886, 0.27310094237327576, 0.06325209140777588, 0.5865423679351807, -0.05185648053884506, 0.059800729155540466, 0.5053108930587769, -0.2618052065372467, 0.024047402665019035, 0.13772161304950714, -0.05134376883506775, 0.15421754121780396, 0.35517361760139465, -0.0846143513917923, 0.1678066849708557, -0.006304070353507996, 0.20482614636421204, 0.5283383131027222, -0.2432679533958435, -0.03670622408390045, 0.030486321076750755, -0.0026643313467502594, 0.27628082036972046, 0.003085041418671608, -0.20951485633850098, -0.15354064106941223, 0.11354226619005203, 0.2787366509437561, -0.5721085071563721, 0.3249299228191376, -0.38693296909332275, -0.12244781851768494, -0.0005191825330257416, -0.12410581111907959, 0.1367529332637787, 0.010197769850492477, 0.12567204236984253, -0.12886609137058258, -0.5308010578155518, -0.34295397996902466, -0.05419694632291794, -0.23818671703338623, 0.19406399130821228, -0.23538346588611603, 0.33344537019729614, 0.2488528937101364, 0.013088267296552658, 0.18357236683368683, -0.09258700162172318, -0.016957983374595642, -0.3653472363948822, 0.047487083822488785, 0.20366710424423218, 0.8958292007446289, -0.05550399422645569, 0.1376837193965912, -0.2449236959218979, 0.028220800682902336, 0.07093794643878937, -0.1368819624185562, -0.13413803279399872, -0.07894241064786911, -0.13619965314865112, -0.2074252963066101, 0.5919702053070068, -0.5605754852294922, 0.46327313780784607, -0.1452794075012207, 0.2544752359390259, 0.13498325645923615, -0.07276373356580734, -0.21497191488742828, -0.06778669357299805, 0.09116087853908539, -0.10497190058231354, 0.3877750337123871, 0.06206745654344559, -0.2700071632862091, -0.12361510843038559, 0.2264413684606552, -0.23515325784683228, -0.02159319818019867, 0.1420028954744339, 0.02507217973470688, 0.07693611085414886, 0.13430091738700867, 0.2210199385881424, 0.21903321146965027, 0.13670387864112854, 0.21973757445812225, -0.2373441457748413, 0.1761605143547058, -0.1678716391324997, 0.09048286080360413, 0.28048965334892273, -0.18486298620700836, 0.20347651839256287, -0.5162174105644226, -0.23495934903621674, -0.1231028214097023, 0.024249348789453506, 0.2009839564561844, -0.05003929138183594, -0.15048848092556, 0.056331127882003784, -0.154814213514328, 0.0014888904988765717, -0.17332428693771362, -0.22087274491786957, 0.10840551555156708, -0.01907483860850334, -0.21012841165065765, 0.17521001398563385, -0.014967089518904686, -0.04675158113241196, -0.050134479999542236, 0.30536675453186035, -0.04543818533420563, -0.1721080243587494, 0.08940848708152771, -0.14000250399112701, 0.12359102070331573, 0.04626045748591423, 0.5049257278442383, 0.5502219200134277, 0.13741138577461243, 0.041378289461135864, -0.2163085788488388, 0.20096027851104736, 0.3659946918487549, 0.0553421825170517, -0.10223078727722168, 0.1487472653388977, 0.09514285624027252, 0.39339011907577515, -0.06034405529499054, -0.39666178822517395, -0.2915036082267761, 0.4472601115703583, -0.05621569603681564, -0.12076811492443085, 0.15648595988750458, 0.02506122924387455, -0.17249244451522827, -0.2683093547821045, -0.33433425426483154, -0.17033430933952332, 0.10647952556610107, 0.10566021502017975, 0.0908496081829071, -0.06130765378475189, 0.04462071508169174, -0.12983576953411102, -0.2531607449054718, -0.30522337555885315, -0.0670006051659584, -0.17200042307376862, 0.028853386640548706, -0.058690838515758514, -0.14251679182052612, 0.0911056399345398, -0.1706532984972, -0.16989824175834656, 0.31513267755508423, 0.05654250085353851, -0.11900577694177628, 0.053604334592819214, -0.023191263899207115, -0.191958487033844, -0.04473617672920227, 0.023763544857501984, -0.2283337414264679, 0.17829789221286774, -0.12281490117311478, 0.07686327397823334, 0.3081638216972351, -0.1329174041748047, 0.23646363615989685, 0.23091274499893188, 0.07222635298967361, 0.028741504997015, 0.9346374869346619, 0.42599791288375854, 0.13375404477119446, 0.10548559576272964, -0.00508694164454937, -0.11131055653095245, 0.027770020067691803, -0.20918752253055573, 0.06960314512252808, -0.004083499312400818, -0.22232092916965485, 0.22786033153533936, -0.05333308130502701, -0.05108484625816345, -0.05433133244514465, 0.4830423891544342, -0.38781988620758057, -0.4113050401210785, 0.2514182925224304, -0.13396331667900085, 0.14303791522979736, -0.0634634792804718, 0.13520511984825134, 0.0034183207899332047, 0.051851850003004074, -0.323864609003067, 0.3723505735397339, 0.6840322613716125, 0.0787973701953888, -0.33356085419654846, -0.2034342736005783, 0.10916280746459961, -0.11889414489269257, 0.24299220740795135, 0.23602394759655, 0.033117059618234634, -0.17234990000724792, 0.18525725603103638, 0.21398809552192688, 1.0035451650619507, 0.0698850005865097, -0.07131560891866684, 0.17514240741729736, -0.10783923417329788, 0.22381460666656494, -0.07188969850540161, -0.17495784163475037, 0.18925833702087402, 0.0739925429224968, 0.13198348879814148, -0.4061219096183777, -0.2338043451309204, -0.0051986053586006165, 0.44611284136772156, -0.10552811622619629, -0.06119472160935402, 0.0108925960958004, 0.018028348684310913, -0.19268560409545898, 0.13120488822460175, 0.1845131665468216, 0.016277069225907326, -0.1188841462135315, -0.10929855704307556, 0.0061734626069664955, -0.2024414837360382, 0.16967511177062988, 0.10748203098773956, 0.40218621492385864, 0.11918050050735474, 0.21990138292312622, 0.2652857303619385, -0.2765381336212158, 0.22221410274505615, 0.30642345547676086, -0.38742268085479736, -0.3323570787906647, -0.13034754991531372, -0.502256453037262, 0.3288090229034424, 0.13138966262340546, -0.1304759979248047, 0.06956127285957336, -0.19696460664272308, -0.1734100729227066, -0.12046582251787186, 0.1301080882549286, 0.2851826250553131, -0.17366531491279602, -0.15305249392986298, -0.6710407733917236, 0.3475162088871002, 0.04271415248513222, -0.09046987444162369, 0.521625280380249, -0.3409271240234375, -0.15214674174785614, 0.43267786502838135, -0.09263581782579422, 0.5991629958152771, -0.17088985443115234, 0.0016941167414188385, 0.006422925740480423, 0.5374950170516968, 0.15723522007465363, -0.010516155511140823, 0.08575600385665894, -0.26938655972480774, -0.45925840735435486, -0.23165039718151093, -0.2514386773109436, 0.05912160128355026, 0.537787914276123, -0.08697286248207092, 0.05318219214677811, -0.22738642990589142, -0.10066673159599304, -0.15397746860980988, -0.010627306997776031, -0.045547425746917725, -0.11593249440193176, -0.01642107218503952, -0.04799903929233551, -0.14179252088069916, 0.17639775574207306, 0.18151059746742249, -0.15688128769397736, 0.028626706451177597, -0.004537805914878845, -0.3593703508377075, -0.020799675956368446, -0.04068901389837265, -0.16513215005397797, 0.01706940121948719, -0.08687924593687057, 0.005218302831053734, 0.28412896394729614, -0.22096474468708038, -0.0513923354446888, 0.1355528086423874, 0.13000337779521942, -0.11932332068681717, -0.012610186822712421, -0.34878891706466675, -0.07782372087240219, 0.31722065806388855, 0.1575840711593628, -0.1301666498184204, 0.10600897669792175, -0.05727066472172737, -0.4175536632537842, -0.14772097766399384, 0.2041465938091278, 0.2804664373397827, -0.26561054587364197, -0.5376279354095459, 0.10085703432559967, -0.06320155411958694, 0.043119195848703384, 0.0061472682282328606, 0.189674973487854, -0.22253970801830292, 0.3468301296234131, -0.09258478879928589, -0.00560673326253891, 0.032076988369226456, -0.18892619013786316, 0.06926389038562775, -0.16853472590446472, 0.3529902398586273, 0.08541880548000336, -0.05368559807538986, -0.2866613566875458, 0.08141548186540604, -0.13417358696460724, -0.05820726975798607, 0.27031761407852173, -0.060462381690740585, 0.3530203104019165, 0.03671393543481827, 0.06829708069562912, 0.21533475816249847, 0.1412830948829651, -0.18214665353298187, -0.6045985817909241, 0.24487565457820892, 0.14881959557533264, 0.09044162184000015, 0.3770521581172943, -0.08226713538169861, 0.2668084502220154, -0.10993405431509018, 0.26346856355667114, -0.11260645091533661, 0.09303755313158035, 0.2155734896659851, 0.18631169199943542, 0.13463100790977478, 0.13244572281837463, -0.032763950526714325, 0.07407201826572418, -0.010123886168003082, 0.10429048538208008, 0.028613105416297913, -0.10589706897735596, -0.06806293874979019, 0.11735028028488159, 0.11630802601575851, 0.10064131021499634, 0.10082665085792542, 0.022646814584732056, -0.2740139067173004, -0.3027724623680115, 0.17932768166065216, -0.2539675235748291, 0.05540669709444046, 0.15101945400238037, 0.7681528925895691, 0.06371848285198212, -0.3797902464866638, 0.04521965980529785, -0.18935537338256836, 0.15559273958206177, 0.09560345858335495, 0.21816664934158325, 0.10930751264095306, -0.004750825464725494, -0.47680428624153137, -0.00984424352645874, 0.24390080571174622, -0.10896862298250198, -0.09055035561323166, 0.08352213352918625, 0.2069999873638153, 0.027066489681601524, 0.43645942211151123, 0.740463376045227, 0.13014842569828033, 0.48488110303878784, 0.24632111191749573, 0.14928793907165527, -0.1434834599494934, 0.06820157170295715, 0.151239812374115, 0.12141203880310059, 0.0020375140011310577, 0.2861400544643402, -0.015208207070827484, 0.040955252945423126, -0.200786754488945, -0.25339365005493164, 0.24223069846630096, 0.25622445344924927, 0.48843953013420105, 0.9639604091644287, 0.07247389853000641, 0.036118581891059875, -0.11696385592222214, 0.1322026252746582, 0.378840833902359, 0.2384466826915741, -0.42922472953796387, 0.538477897644043, -0.004234470427036285, -0.16285444796085358, -0.08741796761751175, -0.7342129945755005, 0.21442165970802307, 0.37142354249954224, 0.17541897296905518, 0.1611475944519043, -0.04012812674045563, 0.760080099105835, -0.3678717613220215, -0.17508545517921448, -0.2595909833908081, 0.14562124013900757, 0.1086181178689003, -0.1780230551958084, -0.2276843637228012, -0.06626292318105698, -0.3687971532344818, -0.07195446640253067, 0.27318274974823, -0.31087857484817505, -0.06551282107830048, 0.05935925990343094, 0.1460465043783188, -0.15207378566265106, -0.005920063704252243, -0.03395160287618637, -0.24210810661315918, -0.4008651375770569, -0.2064206600189209, -0.10826677083969116, 0.2427564412355423, 0.6257146596908569, -0.33033445477485657, 0.008357148617506027, 0.049157045781612396, 0.08172054588794708, -0.23122571408748627, -0.3645607829093933, 0.011046448722481728, 0.0062821488827466965, -0.05710666626691818, -0.11676852405071259, 0.09569789469242096, 0.5006062984466553, 0.04931360483169556, -0.03624003380537033, 0.16015852987766266, 0.1043371930718422, -0.13224495947360992, -0.45737046003341675, 0.35254669189453125, 0.07186050713062286, 0.016215011477470398, -0.23914393782615662, -0.2917623519897461, -0.12118507921695709, -0.02447517216205597, -0.06471337378025055, -0.13211826980113983, 0.05044231563806534, 0.4550066292285919, 0.046403758227825165, -0.10499672591686249, -0.08721207082271576, -0.10872848331928253, 0.017495766282081604, -0.11546673625707626, -0.15338632464408875, -0.46835097670555115, -0.40396353602409363, -0.2181057631969452, -0.1178186908364296, 0.13837683200836182, 0.26900604367256165, 0.0030814558267593384, 0.23617412149906158, -0.10811305046081543, -0.017029372975230217, 0.1897273063659668, 0.40295660495758057, -0.18414926528930664, -0.3247697651386261, -0.14782387018203735, 0.3181467652320862, -0.1806170642375946, -0.26077744364738464, -0.051354747265577316, 0.08182317018508911, -0.12595412135124207, -0.03651267662644386, -0.14977478981018066, 0.3844507336616516, 0.04562420770525932, -0.1752365231513977, -0.20184588432312012, 0.4326038956642151, 0.04389018565416336, 0.23297962546348572, -0.1088433563709259, -0.09677751362323761, -0.22569605708122253, -0.09822583943605423, -0.02528434619307518, 0.5491043329238892, -0.154509037733078, 0.018927421420812607, -0.22236134111881256, 0.09390488266944885, 0.03280028700828552, -0.27339696884155273, -0.3613682687282562, 0.046682633459568024, -0.3458647131919861, 0.13287928700447083, 0.3630687892436981, 0.13269546627998352, -0.16922150552272797, -0.048282817006111145, -0.020722851157188416, -0.050895996391773224, 0.2685925364494324, -0.5031933188438416, -0.044531866908073425, -0.17227214574813843, 0.09020032733678818, -0.1271916925907135, 0.07175981253385544, 0.0037260055541992188, -0.034826137125492096, 0.41603532433509827, -0.19652923941612244, 0.2212652564048767, 0.08038739860057831, 0.3423401713371277, -0.0423949770629406, -0.12264542281627655, 0.0007278174161911011, 0.2510317862033844, -0.38870978355407715, 0.016231846064329147, -0.24824300408363342 ]
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.20387105643749237, -0.1601334810256958, -0.08192580938339233, 0.04690226912498474, 0.26654356718063354, -0.07231919467449188, 0.15469583868980408, 0.30124446749687195, 0.10906818509101868, -0.09559866786003113, -0.17694008350372314, -0.15693071484565735, 0.04242851212620735, 0.009808456525206566, 0.03537368401885033, -0.17579594254493713, -0.09559106081724167, -0.04629676043987274, -0.2514629364013672, 0.18778517842292786, -0.13793468475341797, 0.1785496175289154, -0.037973783910274506, 0.2863895297050476, -0.17776110768318176, -0.20449309051036835, -0.08353772014379501, 0.2092442512512207, -0.15270276367664337, -0.26657846570014954, 0.42618706822395325, -0.11041167378425598, 0.10238834470510483, 0.42765235900878906, -0.00011113022628705949, 0.21710245311260223, 0.4489409923553467, 0.0764487013220787, -0.15438412129878998, -0.30744343996047974, -0.037991125136613846, 0.06893058121204376, 0.21346573531627655, -0.22333559393882751, -0.19606956839561462, 0.3461776077747345, 0.049114666879177094, -0.18087711930274963, 0.47650498151779175, 0.27058762311935425, 0.24884210526943207, 0.3377014696598053, 0.44467419385910034, -0.2152070552110672, 0.03322070837020874, -0.2912709712982178, 0.0024017002433538437, 0.6216797828674316, 0.12133514881134033, -0.2661038637161255, 0.24261528253555298, 0.2062644362449646, -0.14335423707962036, -0.012036103755235672, 0.0456218495965004, -0.1558195948600769, 0.0829063355922699, -0.2861299216747284, 0.15282855927944183, 0.06862805783748627, -0.14181560277938843, -0.21921655535697937, -0.2591908872127533, -0.07373880594968796, -0.026295781135559082, -0.12968391180038452, 0.3319048583507538, 0.1610933393239975, -0.22131375968456268, 0.22776596248149872, -0.0923091247677803, -0.13911272585391998, -0.2099064439535141, 0.24669405817985535, 0.04545578360557556, 0.21283647418022156, -0.28568822145462036, 0.2644905149936676, 0.43374791741371155, -0.03783677518367767, -0.28526175022125244, 0.06967061012983322, 0.17324510216712952, 0.19208772480487823, -0.2251846045255661, 0.0389765202999115, -0.30480077862739563, 0.08181868493556976, 0.08585204184055328, 0.021191146224737167, -0.24929554760456085, -0.11872274428606033, 0.26687347888946533, 0.187360018491745, -0.08827517926692963, 0.3309413194656372, 0.0141424760222435, 0.10959739238023758, 0.3459489345550537, 0.3594099283218384, -0.11480842530727386, 0.03658303990960121, -0.26567673683166504, -0.46562206745147705, -0.35949280858039856, 0.065013587474823, 0.26118314266204834, 0.01852026954293251, -0.16966064274311066, 0.06986907869577408, -0.178401380777359, 0.03302749618887901, 0.1020842120051384, 0.5010194778442383, -0.2648860812187195, -0.36610233783721924, 0.03986667841672897, 0.2935800552368164, 0.018017305061221123, 0.021893002092838287, -0.17826656997203827, 0.15726050734519958, -0.2640620470046997, 0.09054331481456757, 0.06187282130122185, -0.25432056188583374, 0.2353602796792984, -0.20267130434513092, 0.023069970309734344, -0.17118942737579346, 0.12058643996715546, -0.20052114129066467, -0.1581449806690216, 0.33884114027023315, 0.07973690330982208, 0.1804753690958023, 0.4291985332965851, -0.3894386887550354, -0.059661541134119034, -0.07742828875780106, -0.21490338444709778, -0.4968360662460327, 0.023805541917681694, 0.15010948479175568, -0.06201197952032089, 0.1604389250278473, -0.09893830865621567, -0.2489262968301773, 0.20213228464126587, 0.19127045571804047, -0.01409585028886795, -0.010091755539178848, 0.1434958428144455, -0.28045281767845154, 0.5142772793769836, 0.4544941782951355, 0.17089882493019104, -0.10904766619205475, -0.00042130472138524055, 0.06402046978473663, -0.051797471940517426, 0.23295992612838745, -0.06997383385896683, 0.12797154486179352, -0.3756049871444702, 0.15517264604568481, 0.3715331554412842, -0.653388500213623, -0.284106969833374, 0.3186042010784149, -0.2741399109363556, -0.05401724949479103, 0.16688087582588196, -0.23218928277492523, -0.0450628437101841, 0.023941311985254288, 0.3900928199291229, 0.07403811812400818, 0.07009091973304749, -0.20524200797080994, -0.024182654917240143, -0.3783532977104187, 0.1280156522989273, 0.05183173343539238, 0.11795668303966522, 0.09410396218299866, 0.028958022594451904, -0.2993074059486389, 0.2291131317615509, 0.18043532967567444, 0.02323547936975956, 0.2225605994462967, 0.08758687973022461, 0.18445253372192383, -0.058912359178066254, -0.10223733633756638, -0.09820453077554703, 0.15692776441574097, -0.13933247327804565, 0.30220502614974976, -0.4215778112411499, 0.06522858142852783, -0.38411030173301697, 0.05166275054216385, -0.23094411194324493, -0.30408579111099243, 0.16363556683063507, -0.003432050347328186, 0.4423219561576843, 0.1496357023715973, -0.09362274408340454, 0.48740336298942566, -0.14707453548908234, 0.2835754156112671, -0.35973060131073, 0.23008443415164948, -0.30575597286224365, -0.10626737773418427, -0.1563721001148224, 0.16618794202804565, 0.3513624966144562, -0.23431305587291718, -0.026593171060085297, 0.4231657385826111, -0.2641437351703644, 0.09736129641532898, 0.2657682001590729, 0.09632198512554169, 0.031523026525974274, -0.21908283233642578, 0.02536354586482048, -0.10224612057209015, -0.016674011945724487, 0.0638589933514595, 0.637924313545227, 0.04799719899892807, 0.15134090185165405, 0.7245123982429504, 0.19067998230457306, 0.25673022866249084, 0.14176519215106964, -0.01721750944852829, -0.24469146132469177, 0.007280603051185608, 0.20527717471122742, 0.050915829837322235, 0.45241379737854004, -0.32653820514678955, 0.16779038310050964, -0.21140477061271667, 0.1441134810447693, -0.0354795828461647, 0.23449105024337769, 0.14916038513183594, -0.361724853515625, 0.2157287299633026, -0.11190846562385559, 0.3587546646595001, 0.35014134645462036, 0.08973926305770874, -0.01671607419848442, 0.27185043692588806, -0.10229583084583282, -0.07454550266265869, 0.34312769770622253, 0.06400202214717865, 0.07101588696241379, -0.18012934923171997, -0.03682602941989899, -0.1345118284225464, -0.1243026927113533, -0.2394789457321167, -0.19775813817977905, 0.1469751000404358, -0.28808754682540894, 0.16938059031963348, -0.11441843211650848, -0.30130571126937866, -0.15434366464614868, -0.3460412621498108, -0.41867294907569885, -0.24099279940128326, -0.3461468815803528, 0.04727352783083916, 0.0670882910490036, 0.2756144404411316, 0.10895450413227081, 0.010507583618164062, -0.005266822874546051, -0.18421027064323425, -0.034712664783000946, -0.1745297759771347, -0.1391938030719757, 0.020635541528463364, -0.0188448503613472, -0.2574251890182495, 0.27712297439575195, -0.1947552114725113, -0.11273562908172607, 0.0472358763217926, -0.23491933941841125, 0.04797256737947464, -0.09044261276721954, 0.1711955964565277, 0.32855361700057983, 0.3805791139602661, 0.18414783477783203, -0.3997786343097687, 0.5727689266204834, 0.06036192923784256, 0.11442412436008453, -0.15963691473007202, 0.10835618525743484, 0.016882408410310745, 0.17672790586948395, 0.00413532555103302, -0.6324495077133179, -0.3507916033267975, 0.3485682010650635, -0.026601754128932953, 0.15115781128406525, 0.17629894614219666, 0.059672337025403976, 0.2824334502220154, -0.3841686546802521, 0.05310552567243576, -0.2631133794784546, -0.43237799406051636, 0.14251524209976196, -0.24986211955547333, -0.22013689577579498, -0.018234413117170334, 0.19050531089305878, 0.2702793478965759, -0.21224644780158997, -0.3237493634223938, -0.3732510805130005, -0.22460311651229858, -0.03737694025039673, 0.10374321043491364, 0.1593063324689865, 0.29256904125213623, -0.11324910819530487, -0.03873308002948761, 0.126953125, -0.21876640617847443, 0.22004136443138123, -0.19796937704086304, 0.12819668650627136, 0.22862568497657776, 0.3870920240879059, 0.04139320179820061, 0.5444863438606262, 0.24364954233169556, -0.07968319952487946, 0.3192819356918335, -0.17455269396305084, 0.2922644019126892, -0.03789025545120239, -0.5508062243461609, -0.13442249596118927, -0.15217071771621704, 0.034569885581731796, 0.04393485188484192, 0.1621200442314148, 0.17053040862083435, -0.5553134679794312, -0.21989805996418, -0.19131973385810852, -0.27986928820610046, -0.0953928753733635, 0.008895818144083023, 0.17506998777389526, 0.026387758553028107, -0.1763017177581787, -0.2223939299583435, 0.19370335340499878, 0.23203237354755402, 0.5205137133598328, -0.038233645260334015, 0.060975782573223114, -0.15207341313362122, -0.39240244030952454, -0.46257680654525757, 0.4786421060562134, 0.03435852751135826, 0.19267834722995758, -0.29251688718795776, -0.016375558450818062, -0.04348544776439667, 0.10608281940221786, 0.708689272403717, -0.0712125301361084, 0.22197496891021729, 0.048551272600889206, -0.08633970469236374, -0.36455482244491577, -0.06299886107444763, 0.0806390792131424, 0.28955531120300293, 0.5007999539375305, 0.48495224118232727, -0.32781097292900085, 0.0968223363161087, 0.2301485687494278, -0.07664090394973755, -0.030821530148386955, -0.07397931814193726, -0.2963509261608124, -0.36564239859580994, -0.26780855655670166, 0.00530889630317688, 0.24383921921253204, 0.21239155530929565, 0.33087030053138733, -0.14666137099266052, 0.16232149302959442, -0.24275919795036316, -0.05958147346973419, -0.018147408962249756, 0.03823469206690788, -0.20164966583251953, -0.03265204653143883, 0.17813563346862793, 0.34605157375335693, -0.3148242235183716, 0.4281015992164612, -0.24021515250205994, -0.22358375787734985, 0.16842913627624512, 0.32092005014419556, 0.40583494305610657, 0.3009501099586487, -0.19912812113761902, 0.1601252555847168, 0.2677817642688751, 0.3612567186355591, -0.12620066106319427, 0.16133847832679749, 0.4501326084136963, 0.35500824451446533, -0.1951705366373062, -0.23291067779064178, 0.25282520055770874, -0.07291233539581299, 0.0030145272612571716, 0.24493034183979034, 0.4155489206314087, -0.22757688164710999, 0.16553480923175812, -0.2975747287273407, 1.197916030883789, 0.05733029916882515, -0.03917073830962181, 0.13368356227874756, -0.2379470020532608, 0.5808711647987366, -0.15659978985786438, 0.11319892853498459, -0.17663906514644623, -0.09177328646183014, 0.12189716100692749, -0.22357408702373505, 0.35051241517066956, -0.19809336960315704, -0.058933325111866, 0.25586050748825073, -0.11415313184261322, 0.3006232678890228, 0.20144520699977875, 0.2694348990917206, -0.09047384560108185, 0.004620539024472237, -0.25703945755958557, 0.1390344351530075, -0.0044751763343811035, 0.42499420046806335, -0.05809667706489563, -0.13843278586864471, 0.014674622565507889, -0.33706068992614746, -0.34432584047317505, 0.15447640419006348, -0.7144244909286499, 0.16644158959388733, 0.012158699333667755, -0.08223675191402435, -0.11780962347984314, -0.021112699061632156, 0.3912251591682434, 0.10993115603923798, -0.21932317316532135, 0.18423745036125183, -0.0037481337785720825, -0.3129954934120178, 0.10391504317522049, 0.12272235751152039, -0.06259549409151077, -0.2693060040473938, -0.20326770842075348, 0.1417405605316162, -0.17309555411338806, -0.42269617319107056, 0.20387166738510132, -0.14619900286197662, 0.15152966976165771, -0.18364310264587402, -0.02262692153453827, -0.1612546145915985, 0.024225927889347076, -0.14697596430778503, 0.11217066645622253, -0.06938017904758453, -0.2479238212108612, -0.10859710723161697, 0.022369716316461563, -0.36067259311676025, 0.017462976276874542, 0.42816227674484253, -0.14458048343658447, 0.07232064008712769, 0.4555261433124542, 0.12473946809768677, -0.13173186779022217, -0.12844663858413696, -0.21995243430137634, 0.04305534437298775, -0.4091942012310028, -0.0014769956469535828, -0.0063626887276768684, -0.14365720748901367, -0.230215385556221, -0.09128104150295258, 0.3861808776855469, 0.22693857550621033, -0.02494390867650509, -0.5732638835906982, -0.12366624176502228, 0.1283729374408722, -0.11132030189037323, -0.043666910380125046, 0.1352221667766571, 0.29214999079704285, 0.08139166980981827, 0.07727956026792526, -0.29492658376693726, -0.0582197904586792, -0.19803878664970398, -0.09098253399133682, 0.460460901260376, -0.4231756329536438, 0.5564392805099487, 0.24726031720638275, 0.18336328864097595, 0.018560605123639107, -0.17679330706596375, -0.1913491189479828, -0.08618186414241791, 0.12390194088220596, -0.10455084592103958, -0.29032936692237854, 0.019858192652463913, -0.3376125693321228, 0.0041408538818359375, -0.006702934391796589, 0.007722398266196251, 0.041878268122673035, 0.06653652340173721, -0.2817322611808777, -0.03206593170762062, -0.0895538404583931, -0.10538587719202042, 0.1841522455215454, -0.1359495222568512, 0.17845085263252258, 0.028757847845554352, -0.006141249090433121, -0.2754327356815338, -0.17577224969863892, -0.2360023409128189, -0.07979614287614822, 0.02973874658346176, 0.10815846174955368, 0.32976967096328735, -0.19428639113903046, -0.29231712222099304, -0.10878197103738785, 0.41730964183807373, -0.0037704482674598694, -0.14196163415908813, 0.05901940166950226, 0.16908133029937744, 0.16166900098323822, -0.1311534345149994, 0.07456998527050018, 0.16290701925754547, -0.15657714009284973, 0.11842723190784454, 0.20686772465705872, -0.0237025897949934, 0.16387403011322021, 0.039277780801057816, 0.019312061369419098, 0.8280627727508545, 0.21375232934951782, 0.08450698852539062, 0.13918015360832214, 0.04158153012394905, -0.06282050907611847, 0.15295645594596863, 0.0035155657678842545, 0.24652808904647827, -0.08917348086833954, -0.35493624210357666, -0.06147534400224686, -0.059323616325855255, -0.0681367814540863, 0.22970515489578247, -0.06997357308864594, 0.025114217773079872, 0.18383975327014923, -0.09884859621524811, -0.1319565773010254, -0.40801024436950684, 0.6134055852890015, -0.4409064054489136, -0.03570833429694176, -0.19962014257907867, 0.363047331571579, 0.03314719721674919, -0.17256273329257965, 0.14526258409023285, -0.142048180103302, -0.23196528851985931, -0.30375683307647705, 0.08966216444969177, -0.3973175883293152, 0.3674938976764679, -0.06796646118164062, 0.030708931386470795, -0.07294592261314392, -0.3076346814632416, 0.13283948600292206, 0.2419949471950531, -0.23331007361412048, 0.3818821907043457, 0.2886337637901306, -0.037628501653671265, -0.16054792702198029, 0.4000946581363678, 0.6762166619300842, 0.26996132731437683, -0.2351970374584198, 0.26749369502067566, 0.03328399360179901, -0.05285707116127014, -0.02593424916267395, -0.005995661020278931, 0.28129106760025024, -0.0034658946096897125, 0.2339329570531845, 0.23367643356323242, -0.22609777748584747, 0.05287493020296097, -0.19164921343326569, 0.3153736889362335, -0.01486806757748127, 0.4126878082752228, -0.32278716564178467, -0.14263643324375153, -0.32239165902137756, 0.13642889261245728, -0.8104318976402283, 0.17204760015010834, 0.26726797223091125, -0.4068024158477783, 0.02151598036289215, -0.17312760651111603, 0.08031542599201202, -0.07526600360870361, 0.7511894702911377, 0.20130369067192078, 0.3521660566329956, -0.49669283628463745, -0.31689947843551636, -0.2904438376426697, 0.20751400291919708, -0.12045447528362274, -0.1377052664756775, -0.05946749448776245, -0.07869895547628403, -0.13662564754486084, 0.1496257781982422, 0.12248608469963074, 0.1239461600780487, -0.2708899974822998, -0.1634468138217926, -0.016866067424416542, 0.04201251640915871, -0.06340312957763672, 0.10234671831130981, 0.2733124792575836, -0.22609472274780273, 0.23419345915317535, -0.0447949655354023, 0.038396939635276794, 0.21650677919387817, -0.01955677941441536, 0.17872494459152222, -0.36867672204971313, 0.37124574184417725, 0.12576760351657867, 0.34745335578918457, 0.16407695412635803, -0.057670958340168, -0.15084777772426605, -0.2002633959054947, -0.0525050051510334, 0.11811085045337677, -0.009458400309085846, 0.005407063290476799, -0.23456783592700958, -0.2379542738199234, -0.5355011224746704, 0.18844088912010193, 0.03245669603347778, -0.061544883996248245, 0.041002631187438965, -0.19774386286735535, 0.14530637860298157, 0.1729564368724823, 0.2607692778110504, 0.04376884549856186, -0.002930842339992523, 0.13175328075885773, -0.3068510890007019, -0.26663437485694885, 0.6317306756973267, -0.4022052586078644, -0.24217848479747772, 0.07185084372758865, 0.3609127998352051, 0.13837146759033203, 0.10802716016769409, -0.4578801393508911, 0.036779023706912994, 0.38186854124069214, 0.3051503896713257, -0.28071048855781555, 0.2636132538318634, -0.22063381969928741, 0.07509869337081909, 0.15701712667942047, 0.11334648728370667, -0.11423037201166153, -0.34790340065956116, -0.09011809527873993, -0.12728682160377502 ]
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.20387105643749237, -0.1601334810256958, -0.08192580938339233, 0.04690226912498474, 0.26654356718063354, -0.07231919467449188, 0.15469583868980408, 0.30124446749687195, 0.10906818509101868, -0.09559866786003113, -0.17694008350372314, -0.15693071484565735, 0.04242851212620735, 0.009808456525206566, 0.03537368401885033, -0.17579594254493713, -0.09559106081724167, -0.04629676043987274, -0.2514629364013672, 0.18778517842292786, -0.13793468475341797, 0.1785496175289154, -0.037973783910274506, 0.2863895297050476, -0.17776110768318176, -0.20449309051036835, -0.08353772014379501, 0.2092442512512207, -0.15270276367664337, -0.26657846570014954, 0.42618706822395325, -0.11041167378425598, 0.10238834470510483, 0.42765235900878906, -0.00011113022628705949, 0.21710245311260223, 0.4489409923553467, 0.0764487013220787, -0.15438412129878998, -0.30744343996047974, -0.037991125136613846, 0.06893058121204376, 0.21346573531627655, -0.22333559393882751, -0.19606956839561462, 0.3461776077747345, 0.049114666879177094, -0.18087711930274963, 0.47650498151779175, 0.27058762311935425, 0.24884210526943207, 0.3377014696598053, 0.44467419385910034, -0.2152070552110672, 0.03322070837020874, -0.2912709712982178, 0.0024017002433538437, 0.6216797828674316, 0.12133514881134033, -0.2661038637161255, 0.24261528253555298, 0.2062644362449646, -0.14335423707962036, -0.012036103755235672, 0.0456218495965004, -0.1558195948600769, 0.0829063355922699, -0.2861299216747284, 0.15282855927944183, 0.06862805783748627, -0.14181560277938843, -0.21921655535697937, -0.2591908872127533, -0.07373880594968796, -0.026295781135559082, -0.12968391180038452, 0.3319048583507538, 0.1610933393239975, -0.22131375968456268, 0.22776596248149872, -0.0923091247677803, -0.13911272585391998, -0.2099064439535141, 0.24669405817985535, 0.04545578360557556, 0.21283647418022156, -0.28568822145462036, 0.2644905149936676, 0.43374791741371155, -0.03783677518367767, -0.28526175022125244, 0.06967061012983322, 0.17324510216712952, 0.19208772480487823, -0.2251846045255661, 0.0389765202999115, -0.30480077862739563, 0.08181868493556976, 0.08585204184055328, 0.021191146224737167, -0.24929554760456085, -0.11872274428606033, 0.26687347888946533, 0.187360018491745, -0.08827517926692963, 0.3309413194656372, 0.0141424760222435, 0.10959739238023758, 0.3459489345550537, 0.3594099283218384, -0.11480842530727386, 0.03658303990960121, -0.26567673683166504, -0.46562206745147705, -0.35949280858039856, 0.065013587474823, 0.26118314266204834, 0.01852026954293251, -0.16966064274311066, 0.06986907869577408, -0.178401380777359, 0.03302749618887901, 0.1020842120051384, 0.5010194778442383, -0.2648860812187195, -0.36610233783721924, 0.03986667841672897, 0.2935800552368164, 0.018017305061221123, 0.021893002092838287, -0.17826656997203827, 0.15726050734519958, -0.2640620470046997, 0.09054331481456757, 0.06187282130122185, -0.25432056188583374, 0.2353602796792984, -0.20267130434513092, 0.023069970309734344, -0.17118942737579346, 0.12058643996715546, -0.20052114129066467, -0.1581449806690216, 0.33884114027023315, 0.07973690330982208, 0.1804753690958023, 0.4291985332965851, -0.3894386887550354, -0.059661541134119034, -0.07742828875780106, -0.21490338444709778, -0.4968360662460327, 0.023805541917681694, 0.15010948479175568, -0.06201197952032089, 0.1604389250278473, -0.09893830865621567, -0.2489262968301773, 0.20213228464126587, 0.19127045571804047, -0.01409585028886795, -0.010091755539178848, 0.1434958428144455, -0.28045281767845154, 0.5142772793769836, 0.4544941782951355, 0.17089882493019104, -0.10904766619205475, -0.00042130472138524055, 0.06402046978473663, -0.051797471940517426, 0.23295992612838745, -0.06997383385896683, 0.12797154486179352, -0.3756049871444702, 0.15517264604568481, 0.3715331554412842, -0.653388500213623, -0.284106969833374, 0.3186042010784149, -0.2741399109363556, -0.05401724949479103, 0.16688087582588196, -0.23218928277492523, -0.0450628437101841, 0.023941311985254288, 0.3900928199291229, 0.07403811812400818, 0.07009091973304749, -0.20524200797080994, -0.024182654917240143, -0.3783532977104187, 0.1280156522989273, 0.05183173343539238, 0.11795668303966522, 0.09410396218299866, 0.028958022594451904, -0.2993074059486389, 0.2291131317615509, 0.18043532967567444, 0.02323547936975956, 0.2225605994462967, 0.08758687973022461, 0.18445253372192383, -0.058912359178066254, -0.10223733633756638, -0.09820453077554703, 0.15692776441574097, -0.13933247327804565, 0.30220502614974976, -0.4215778112411499, 0.06522858142852783, -0.38411030173301697, 0.05166275054216385, -0.23094411194324493, -0.30408579111099243, 0.16363556683063507, -0.003432050347328186, 0.4423219561576843, 0.1496357023715973, -0.09362274408340454, 0.48740336298942566, -0.14707453548908234, 0.2835754156112671, -0.35973060131073, 0.23008443415164948, -0.30575597286224365, -0.10626737773418427, -0.1563721001148224, 0.16618794202804565, 0.3513624966144562, -0.23431305587291718, -0.026593171060085297, 0.4231657385826111, -0.2641437351703644, 0.09736129641532898, 0.2657682001590729, 0.09632198512554169, 0.031523026525974274, -0.21908283233642578, 0.02536354586482048, -0.10224612057209015, -0.016674011945724487, 0.0638589933514595, 0.637924313545227, 0.04799719899892807, 0.15134090185165405, 0.7245123982429504, 0.19067998230457306, 0.25673022866249084, 0.14176519215106964, -0.01721750944852829, -0.24469146132469177, 0.007280603051185608, 0.20527717471122742, 0.050915829837322235, 0.45241379737854004, -0.32653820514678955, 0.16779038310050964, -0.21140477061271667, 0.1441134810447693, -0.0354795828461647, 0.23449105024337769, 0.14916038513183594, -0.361724853515625, 0.2157287299633026, -0.11190846562385559, 0.3587546646595001, 0.35014134645462036, 0.08973926305770874, -0.01671607419848442, 0.27185043692588806, -0.10229583084583282, -0.07454550266265869, 0.34312769770622253, 0.06400202214717865, 0.07101588696241379, -0.18012934923171997, -0.03682602941989899, -0.1345118284225464, -0.1243026927113533, -0.2394789457321167, -0.19775813817977905, 0.1469751000404358, -0.28808754682540894, 0.16938059031963348, -0.11441843211650848, -0.30130571126937866, -0.15434366464614868, -0.3460412621498108, -0.41867294907569885, -0.24099279940128326, -0.3461468815803528, 0.04727352783083916, 0.0670882910490036, 0.2756144404411316, 0.10895450413227081, 0.010507583618164062, -0.005266822874546051, -0.18421027064323425, -0.034712664783000946, -0.1745297759771347, -0.1391938030719757, 0.020635541528463364, -0.0188448503613472, -0.2574251890182495, 0.27712297439575195, -0.1947552114725113, -0.11273562908172607, 0.0472358763217926, -0.23491933941841125, 0.04797256737947464, -0.09044261276721954, 0.1711955964565277, 0.32855361700057983, 0.3805791139602661, 0.18414783477783203, -0.3997786343097687, 0.5727689266204834, 0.06036192923784256, 0.11442412436008453, -0.15963691473007202, 0.10835618525743484, 0.016882408410310745, 0.17672790586948395, 0.00413532555103302, -0.6324495077133179, -0.3507916033267975, 0.3485682010650635, -0.026601754128932953, 0.15115781128406525, 0.17629894614219666, 0.059672337025403976, 0.2824334502220154, -0.3841686546802521, 0.05310552567243576, -0.2631133794784546, -0.43237799406051636, 0.14251524209976196, -0.24986211955547333, -0.22013689577579498, -0.018234413117170334, 0.19050531089305878, 0.2702793478965759, -0.21224644780158997, -0.3237493634223938, -0.3732510805130005, -0.22460311651229858, -0.03737694025039673, 0.10374321043491364, 0.1593063324689865, 0.29256904125213623, -0.11324910819530487, -0.03873308002948761, 0.126953125, -0.21876640617847443, 0.22004136443138123, -0.19796937704086304, 0.12819668650627136, 0.22862568497657776, 0.3870920240879059, 0.04139320179820061, 0.5444863438606262, 0.24364954233169556, -0.07968319952487946, 0.3192819356918335, -0.17455269396305084, 0.2922644019126892, -0.03789025545120239, -0.5508062243461609, -0.13442249596118927, -0.15217071771621704, 0.034569885581731796, 0.04393485188484192, 0.1621200442314148, 0.17053040862083435, -0.5553134679794312, -0.21989805996418, -0.19131973385810852, -0.27986928820610046, -0.0953928753733635, 0.008895818144083023, 0.17506998777389526, 0.026387758553028107, -0.1763017177581787, -0.2223939299583435, 0.19370335340499878, 0.23203237354755402, 0.5205137133598328, -0.038233645260334015, 0.060975782573223114, -0.15207341313362122, -0.39240244030952454, -0.46257680654525757, 0.4786421060562134, 0.03435852751135826, 0.19267834722995758, -0.29251688718795776, -0.016375558450818062, -0.04348544776439667, 0.10608281940221786, 0.708689272403717, -0.0712125301361084, 0.22197496891021729, 0.048551272600889206, -0.08633970469236374, -0.36455482244491577, -0.06299886107444763, 0.0806390792131424, 0.28955531120300293, 0.5007999539375305, 0.48495224118232727, -0.32781097292900085, 0.0968223363161087, 0.2301485687494278, -0.07664090394973755, -0.030821530148386955, -0.07397931814193726, -0.2963509261608124, -0.36564239859580994, -0.26780855655670166, 0.00530889630317688, 0.24383921921253204, 0.21239155530929565, 0.33087030053138733, -0.14666137099266052, 0.16232149302959442, -0.24275919795036316, -0.05958147346973419, -0.018147408962249756, 0.03823469206690788, -0.20164966583251953, -0.03265204653143883, 0.17813563346862793, 0.34605157375335693, -0.3148242235183716, 0.4281015992164612, -0.24021515250205994, -0.22358375787734985, 0.16842913627624512, 0.32092005014419556, 0.40583494305610657, 0.3009501099586487, -0.19912812113761902, 0.1601252555847168, 0.2677817642688751, 0.3612567186355591, -0.12620066106319427, 0.16133847832679749, 0.4501326084136963, 0.35500824451446533, -0.1951705366373062, -0.23291067779064178, 0.25282520055770874, -0.07291233539581299, 0.0030145272612571716, 0.24493034183979034, 0.4155489206314087, -0.22757688164710999, 0.16553480923175812, -0.2975747287273407, 1.197916030883789, 0.05733029916882515, -0.03917073830962181, 0.13368356227874756, -0.2379470020532608, 0.5808711647987366, -0.15659978985786438, 0.11319892853498459, -0.17663906514644623, -0.09177328646183014, 0.12189716100692749, -0.22357408702373505, 0.35051241517066956, -0.19809336960315704, -0.058933325111866, 0.25586050748825073, -0.11415313184261322, 0.3006232678890228, 0.20144520699977875, 0.2694348990917206, -0.09047384560108185, 0.004620539024472237, -0.25703945755958557, 0.1390344351530075, -0.0044751763343811035, 0.42499420046806335, -0.05809667706489563, -0.13843278586864471, 0.014674622565507889, -0.33706068992614746, -0.34432584047317505, 0.15447640419006348, -0.7144244909286499, 0.16644158959388733, 0.012158699333667755, -0.08223675191402435, -0.11780962347984314, -0.021112699061632156, 0.3912251591682434, 0.10993115603923798, -0.21932317316532135, 0.18423745036125183, -0.0037481337785720825, -0.3129954934120178, 0.10391504317522049, 0.12272235751152039, -0.06259549409151077, -0.2693060040473938, -0.20326770842075348, 0.1417405605316162, -0.17309555411338806, -0.42269617319107056, 0.20387166738510132, -0.14619900286197662, 0.15152966976165771, -0.18364310264587402, -0.02262692153453827, -0.1612546145915985, 0.024225927889347076, -0.14697596430778503, 0.11217066645622253, -0.06938017904758453, -0.2479238212108612, -0.10859710723161697, 0.022369716316461563, -0.36067259311676025, 0.017462976276874542, 0.42816227674484253, -0.14458048343658447, 0.07232064008712769, 0.4555261433124542, 0.12473946809768677, -0.13173186779022217, -0.12844663858413696, -0.21995243430137634, 0.04305534437298775, -0.4091942012310028, -0.0014769956469535828, -0.0063626887276768684, -0.14365720748901367, -0.230215385556221, -0.09128104150295258, 0.3861808776855469, 0.22693857550621033, -0.02494390867650509, -0.5732638835906982, -0.12366624176502228, 0.1283729374408722, -0.11132030189037323, -0.043666910380125046, 0.1352221667766571, 0.29214999079704285, 0.08139166980981827, 0.07727956026792526, -0.29492658376693726, -0.0582197904586792, -0.19803878664970398, -0.09098253399133682, 0.460460901260376, -0.4231756329536438, 0.5564392805099487, 0.24726031720638275, 0.18336328864097595, 0.018560605123639107, -0.17679330706596375, -0.1913491189479828, -0.08618186414241791, 0.12390194088220596, -0.10455084592103958, -0.29032936692237854, 0.019858192652463913, -0.3376125693321228, 0.0041408538818359375, -0.006702934391796589, 0.007722398266196251, 0.041878268122673035, 0.06653652340173721, -0.2817322611808777, -0.03206593170762062, -0.0895538404583931, -0.10538587719202042, 0.1841522455215454, -0.1359495222568512, 0.17845085263252258, 0.028757847845554352, -0.006141249090433121, -0.2754327356815338, -0.17577224969863892, -0.2360023409128189, -0.07979614287614822, 0.02973874658346176, 0.10815846174955368, 0.32976967096328735, -0.19428639113903046, -0.29231712222099304, -0.10878197103738785, 0.41730964183807373, -0.0037704482674598694, -0.14196163415908813, 0.05901940166950226, 0.16908133029937744, 0.16166900098323822, -0.1311534345149994, 0.07456998527050018, 0.16290701925754547, -0.15657714009284973, 0.11842723190784454, 0.20686772465705872, -0.0237025897949934, 0.16387403011322021, 0.039277780801057816, 0.019312061369419098, 0.8280627727508545, 0.21375232934951782, 0.08450698852539062, 0.13918015360832214, 0.04158153012394905, -0.06282050907611847, 0.15295645594596863, 0.0035155657678842545, 0.24652808904647827, -0.08917348086833954, -0.35493624210357666, -0.06147534400224686, -0.059323616325855255, -0.0681367814540863, 0.22970515489578247, -0.06997357308864594, 0.025114217773079872, 0.18383975327014923, -0.09884859621524811, -0.1319565773010254, -0.40801024436950684, 0.6134055852890015, -0.4409064054489136, -0.03570833429694176, -0.19962014257907867, 0.363047331571579, 0.03314719721674919, -0.17256273329257965, 0.14526258409023285, -0.142048180103302, -0.23196528851985931, -0.30375683307647705, 0.08966216444969177, -0.3973175883293152, 0.3674938976764679, -0.06796646118164062, 0.030708931386470795, -0.07294592261314392, -0.3076346814632416, 0.13283948600292206, 0.2419949471950531, -0.23331007361412048, 0.3818821907043457, 0.2886337637901306, -0.037628501653671265, -0.16054792702198029, 0.4000946581363678, 0.6762166619300842, 0.26996132731437683, -0.2351970374584198, 0.26749369502067566, 0.03328399360179901, -0.05285707116127014, -0.02593424916267395, -0.005995661020278931, 0.28129106760025024, -0.0034658946096897125, 0.2339329570531845, 0.23367643356323242, -0.22609777748584747, 0.05287493020296097, -0.19164921343326569, 0.3153736889362335, -0.01486806757748127, 0.4126878082752228, -0.32278716564178467, -0.14263643324375153, -0.32239165902137756, 0.13642889261245728, -0.8104318976402283, 0.17204760015010834, 0.26726797223091125, -0.4068024158477783, 0.02151598036289215, -0.17312760651111603, 0.08031542599201202, -0.07526600360870361, 0.7511894702911377, 0.20130369067192078, 0.3521660566329956, -0.49669283628463745, -0.31689947843551636, -0.2904438376426697, 0.20751400291919708, -0.12045447528362274, -0.1377052664756775, -0.05946749448776245, -0.07869895547628403, -0.13662564754486084, 0.1496257781982422, 0.12248608469963074, 0.1239461600780487, -0.2708899974822998, -0.1634468138217926, -0.016866067424416542, 0.04201251640915871, -0.06340312957763672, 0.10234671831130981, 0.2733124792575836, -0.22609472274780273, 0.23419345915317535, -0.0447949655354023, 0.038396939635276794, 0.21650677919387817, -0.01955677941441536, 0.17872494459152222, -0.36867672204971313, 0.37124574184417725, 0.12576760351657867, 0.34745335578918457, 0.16407695412635803, -0.057670958340168, -0.15084777772426605, -0.2002633959054947, -0.0525050051510334, 0.11811085045337677, -0.009458400309085846, 0.005407063290476799, -0.23456783592700958, -0.2379542738199234, -0.5355011224746704, 0.18844088912010193, 0.03245669603347778, -0.061544883996248245, 0.041002631187438965, -0.19774386286735535, 0.14530637860298157, 0.1729564368724823, 0.2607692778110504, 0.04376884549856186, -0.002930842339992523, 0.13175328075885773, -0.3068510890007019, -0.26663437485694885, 0.6317306756973267, -0.4022052586078644, -0.24217848479747772, 0.07185084372758865, 0.3609127998352051, 0.13837146759033203, 0.10802716016769409, -0.4578801393508911, 0.036779023706912994, 0.38186854124069214, 0.3051503896713257, -0.28071048855781555, 0.2636132538318634, -0.22063381969928741, 0.07509869337081909, 0.15701712667942047, 0.11334648728370667, -0.11423037201166153, -0.34790340065956116, -0.09011809527873993, -0.12728682160377502 ]
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.20387105643749237, -0.1601334810256958, -0.08192580938339233, 0.04690226912498474, 0.26654356718063354, -0.07231919467449188, 0.15469583868980408, 0.30124446749687195, 0.10906818509101868, -0.09559866786003113, -0.17694008350372314, -0.15693071484565735, 0.04242851212620735, 0.009808456525206566, 0.03537368401885033, -0.17579594254493713, -0.09559106081724167, -0.04629676043987274, -0.2514629364013672, 0.18778517842292786, -0.13793468475341797, 0.1785496175289154, -0.037973783910274506, 0.2863895297050476, -0.17776110768318176, -0.20449309051036835, -0.08353772014379501, 0.2092442512512207, -0.15270276367664337, -0.26657846570014954, 0.42618706822395325, -0.11041167378425598, 0.10238834470510483, 0.42765235900878906, -0.00011113022628705949, 0.21710245311260223, 0.4489409923553467, 0.0764487013220787, -0.15438412129878998, -0.30744343996047974, -0.037991125136613846, 0.06893058121204376, 0.21346573531627655, -0.22333559393882751, -0.19606956839561462, 0.3461776077747345, 0.049114666879177094, -0.18087711930274963, 0.47650498151779175, 0.27058762311935425, 0.24884210526943207, 0.3377014696598053, 0.44467419385910034, -0.2152070552110672, 0.03322070837020874, -0.2912709712982178, 0.0024017002433538437, 0.6216797828674316, 0.12133514881134033, -0.2661038637161255, 0.24261528253555298, 0.2062644362449646, -0.14335423707962036, -0.012036103755235672, 0.0456218495965004, -0.1558195948600769, 0.0829063355922699, -0.2861299216747284, 0.15282855927944183, 0.06862805783748627, -0.14181560277938843, -0.21921655535697937, -0.2591908872127533, -0.07373880594968796, -0.026295781135559082, -0.12968391180038452, 0.3319048583507538, 0.1610933393239975, -0.22131375968456268, 0.22776596248149872, -0.0923091247677803, -0.13911272585391998, -0.2099064439535141, 0.24669405817985535, 0.04545578360557556, 0.21283647418022156, -0.28568822145462036, 0.2644905149936676, 0.43374791741371155, -0.03783677518367767, -0.28526175022125244, 0.06967061012983322, 0.17324510216712952, 0.19208772480487823, -0.2251846045255661, 0.0389765202999115, -0.30480077862739563, 0.08181868493556976, 0.08585204184055328, 0.021191146224737167, -0.24929554760456085, -0.11872274428606033, 0.26687347888946533, 0.187360018491745, -0.08827517926692963, 0.3309413194656372, 0.0141424760222435, 0.10959739238023758, 0.3459489345550537, 0.3594099283218384, -0.11480842530727386, 0.03658303990960121, -0.26567673683166504, -0.46562206745147705, -0.35949280858039856, 0.065013587474823, 0.26118314266204834, 0.01852026954293251, -0.16966064274311066, 0.06986907869577408, -0.178401380777359, 0.03302749618887901, 0.1020842120051384, 0.5010194778442383, -0.2648860812187195, -0.36610233783721924, 0.03986667841672897, 0.2935800552368164, 0.018017305061221123, 0.021893002092838287, -0.17826656997203827, 0.15726050734519958, -0.2640620470046997, 0.09054331481456757, 0.06187282130122185, -0.25432056188583374, 0.2353602796792984, -0.20267130434513092, 0.023069970309734344, -0.17118942737579346, 0.12058643996715546, -0.20052114129066467, -0.1581449806690216, 0.33884114027023315, 0.07973690330982208, 0.1804753690958023, 0.4291985332965851, -0.3894386887550354, -0.059661541134119034, -0.07742828875780106, -0.21490338444709778, -0.4968360662460327, 0.023805541917681694, 0.15010948479175568, -0.06201197952032089, 0.1604389250278473, -0.09893830865621567, -0.2489262968301773, 0.20213228464126587, 0.19127045571804047, -0.01409585028886795, -0.010091755539178848, 0.1434958428144455, -0.28045281767845154, 0.5142772793769836, 0.4544941782951355, 0.17089882493019104, -0.10904766619205475, -0.00042130472138524055, 0.06402046978473663, -0.051797471940517426, 0.23295992612838745, -0.06997383385896683, 0.12797154486179352, -0.3756049871444702, 0.15517264604568481, 0.3715331554412842, -0.653388500213623, -0.284106969833374, 0.3186042010784149, -0.2741399109363556, -0.05401724949479103, 0.16688087582588196, -0.23218928277492523, -0.0450628437101841, 0.023941311985254288, 0.3900928199291229, 0.07403811812400818, 0.07009091973304749, -0.20524200797080994, -0.024182654917240143, -0.3783532977104187, 0.1280156522989273, 0.05183173343539238, 0.11795668303966522, 0.09410396218299866, 0.028958022594451904, -0.2993074059486389, 0.2291131317615509, 0.18043532967567444, 0.02323547936975956, 0.2225605994462967, 0.08758687973022461, 0.18445253372192383, -0.058912359178066254, -0.10223733633756638, -0.09820453077554703, 0.15692776441574097, -0.13933247327804565, 0.30220502614974976, -0.4215778112411499, 0.06522858142852783, -0.38411030173301697, 0.05166275054216385, -0.23094411194324493, -0.30408579111099243, 0.16363556683063507, -0.003432050347328186, 0.4423219561576843, 0.1496357023715973, -0.09362274408340454, 0.48740336298942566, -0.14707453548908234, 0.2835754156112671, -0.35973060131073, 0.23008443415164948, -0.30575597286224365, -0.10626737773418427, -0.1563721001148224, 0.16618794202804565, 0.3513624966144562, -0.23431305587291718, -0.026593171060085297, 0.4231657385826111, -0.2641437351703644, 0.09736129641532898, 0.2657682001590729, 0.09632198512554169, 0.031523026525974274, -0.21908283233642578, 0.02536354586482048, -0.10224612057209015, -0.016674011945724487, 0.0638589933514595, 0.637924313545227, 0.04799719899892807, 0.15134090185165405, 0.7245123982429504, 0.19067998230457306, 0.25673022866249084, 0.14176519215106964, -0.01721750944852829, -0.24469146132469177, 0.007280603051185608, 0.20527717471122742, 0.050915829837322235, 0.45241379737854004, -0.32653820514678955, 0.16779038310050964, -0.21140477061271667, 0.1441134810447693, -0.0354795828461647, 0.23449105024337769, 0.14916038513183594, -0.361724853515625, 0.2157287299633026, -0.11190846562385559, 0.3587546646595001, 0.35014134645462036, 0.08973926305770874, -0.01671607419848442, 0.27185043692588806, -0.10229583084583282, -0.07454550266265869, 0.34312769770622253, 0.06400202214717865, 0.07101588696241379, -0.18012934923171997, -0.03682602941989899, -0.1345118284225464, -0.1243026927113533, -0.2394789457321167, -0.19775813817977905, 0.1469751000404358, -0.28808754682540894, 0.16938059031963348, -0.11441843211650848, -0.30130571126937866, -0.15434366464614868, -0.3460412621498108, -0.41867294907569885, -0.24099279940128326, -0.3461468815803528, 0.04727352783083916, 0.0670882910490036, 0.2756144404411316, 0.10895450413227081, 0.010507583618164062, -0.005266822874546051, -0.18421027064323425, -0.034712664783000946, -0.1745297759771347, -0.1391938030719757, 0.020635541528463364, -0.0188448503613472, -0.2574251890182495, 0.27712297439575195, -0.1947552114725113, -0.11273562908172607, 0.0472358763217926, -0.23491933941841125, 0.04797256737947464, -0.09044261276721954, 0.1711955964565277, 0.32855361700057983, 0.3805791139602661, 0.18414783477783203, -0.3997786343097687, 0.5727689266204834, 0.06036192923784256, 0.11442412436008453, -0.15963691473007202, 0.10835618525743484, 0.016882408410310745, 0.17672790586948395, 0.00413532555103302, -0.6324495077133179, -0.3507916033267975, 0.3485682010650635, -0.026601754128932953, 0.15115781128406525, 0.17629894614219666, 0.059672337025403976, 0.2824334502220154, -0.3841686546802521, 0.05310552567243576, -0.2631133794784546, -0.43237799406051636, 0.14251524209976196, -0.24986211955547333, -0.22013689577579498, -0.018234413117170334, 0.19050531089305878, 0.2702793478965759, -0.21224644780158997, -0.3237493634223938, -0.3732510805130005, -0.22460311651229858, -0.03737694025039673, 0.10374321043491364, 0.1593063324689865, 0.29256904125213623, -0.11324910819530487, -0.03873308002948761, 0.126953125, -0.21876640617847443, 0.22004136443138123, -0.19796937704086304, 0.12819668650627136, 0.22862568497657776, 0.3870920240879059, 0.04139320179820061, 0.5444863438606262, 0.24364954233169556, -0.07968319952487946, 0.3192819356918335, -0.17455269396305084, 0.2922644019126892, -0.03789025545120239, -0.5508062243461609, -0.13442249596118927, -0.15217071771621704, 0.034569885581731796, 0.04393485188484192, 0.1621200442314148, 0.17053040862083435, -0.5553134679794312, -0.21989805996418, -0.19131973385810852, -0.27986928820610046, -0.0953928753733635, 0.008895818144083023, 0.17506998777389526, 0.026387758553028107, -0.1763017177581787, -0.2223939299583435, 0.19370335340499878, 0.23203237354755402, 0.5205137133598328, -0.038233645260334015, 0.060975782573223114, -0.15207341313362122, -0.39240244030952454, -0.46257680654525757, 0.4786421060562134, 0.03435852751135826, 0.19267834722995758, -0.29251688718795776, -0.016375558450818062, -0.04348544776439667, 0.10608281940221786, 0.708689272403717, -0.0712125301361084, 0.22197496891021729, 0.048551272600889206, -0.08633970469236374, -0.36455482244491577, -0.06299886107444763, 0.0806390792131424, 0.28955531120300293, 0.5007999539375305, 0.48495224118232727, -0.32781097292900085, 0.0968223363161087, 0.2301485687494278, -0.07664090394973755, -0.030821530148386955, -0.07397931814193726, -0.2963509261608124, -0.36564239859580994, -0.26780855655670166, 0.00530889630317688, 0.24383921921253204, 0.21239155530929565, 0.33087030053138733, -0.14666137099266052, 0.16232149302959442, -0.24275919795036316, -0.05958147346973419, -0.018147408962249756, 0.03823469206690788, -0.20164966583251953, -0.03265204653143883, 0.17813563346862793, 0.34605157375335693, -0.3148242235183716, 0.4281015992164612, -0.24021515250205994, -0.22358375787734985, 0.16842913627624512, 0.32092005014419556, 0.40583494305610657, 0.3009501099586487, -0.19912812113761902, 0.1601252555847168, 0.2677817642688751, 0.3612567186355591, -0.12620066106319427, 0.16133847832679749, 0.4501326084136963, 0.35500824451446533, -0.1951705366373062, -0.23291067779064178, 0.25282520055770874, -0.07291233539581299, 0.0030145272612571716, 0.24493034183979034, 0.4155489206314087, -0.22757688164710999, 0.16553480923175812, -0.2975747287273407, 1.197916030883789, 0.05733029916882515, -0.03917073830962181, 0.13368356227874756, -0.2379470020532608, 0.5808711647987366, -0.15659978985786438, 0.11319892853498459, -0.17663906514644623, -0.09177328646183014, 0.12189716100692749, -0.22357408702373505, 0.35051241517066956, -0.19809336960315704, -0.058933325111866, 0.25586050748825073, -0.11415313184261322, 0.3006232678890228, 0.20144520699977875, 0.2694348990917206, -0.09047384560108185, 0.004620539024472237, -0.25703945755958557, 0.1390344351530075, -0.0044751763343811035, 0.42499420046806335, -0.05809667706489563, -0.13843278586864471, 0.014674622565507889, -0.33706068992614746, -0.34432584047317505, 0.15447640419006348, -0.7144244909286499, 0.16644158959388733, 0.012158699333667755, -0.08223675191402435, -0.11780962347984314, -0.021112699061632156, 0.3912251591682434, 0.10993115603923798, -0.21932317316532135, 0.18423745036125183, -0.0037481337785720825, -0.3129954934120178, 0.10391504317522049, 0.12272235751152039, -0.06259549409151077, -0.2693060040473938, -0.20326770842075348, 0.1417405605316162, -0.17309555411338806, -0.42269617319107056, 0.20387166738510132, -0.14619900286197662, 0.15152966976165771, -0.18364310264587402, -0.02262692153453827, -0.1612546145915985, 0.024225927889347076, -0.14697596430778503, 0.11217066645622253, -0.06938017904758453, -0.2479238212108612, -0.10859710723161697, 0.022369716316461563, -0.36067259311676025, 0.017462976276874542, 0.42816227674484253, -0.14458048343658447, 0.07232064008712769, 0.4555261433124542, 0.12473946809768677, -0.13173186779022217, -0.12844663858413696, -0.21995243430137634, 0.04305534437298775, -0.4091942012310028, -0.0014769956469535828, -0.0063626887276768684, -0.14365720748901367, -0.230215385556221, -0.09128104150295258, 0.3861808776855469, 0.22693857550621033, -0.02494390867650509, -0.5732638835906982, -0.12366624176502228, 0.1283729374408722, -0.11132030189037323, -0.043666910380125046, 0.1352221667766571, 0.29214999079704285, 0.08139166980981827, 0.07727956026792526, -0.29492658376693726, -0.0582197904586792, -0.19803878664970398, -0.09098253399133682, 0.460460901260376, -0.4231756329536438, 0.5564392805099487, 0.24726031720638275, 0.18336328864097595, 0.018560605123639107, -0.17679330706596375, -0.1913491189479828, -0.08618186414241791, 0.12390194088220596, -0.10455084592103958, -0.29032936692237854, 0.019858192652463913, -0.3376125693321228, 0.0041408538818359375, -0.006702934391796589, 0.007722398266196251, 0.041878268122673035, 0.06653652340173721, -0.2817322611808777, -0.03206593170762062, -0.0895538404583931, -0.10538587719202042, 0.1841522455215454, -0.1359495222568512, 0.17845085263252258, 0.028757847845554352, -0.006141249090433121, -0.2754327356815338, -0.17577224969863892, -0.2360023409128189, -0.07979614287614822, 0.02973874658346176, 0.10815846174955368, 0.32976967096328735, -0.19428639113903046, -0.29231712222099304, -0.10878197103738785, 0.41730964183807373, -0.0037704482674598694, -0.14196163415908813, 0.05901940166950226, 0.16908133029937744, 0.16166900098323822, -0.1311534345149994, 0.07456998527050018, 0.16290701925754547, -0.15657714009284973, 0.11842723190784454, 0.20686772465705872, -0.0237025897949934, 0.16387403011322021, 0.039277780801057816, 0.019312061369419098, 0.8280627727508545, 0.21375232934951782, 0.08450698852539062, 0.13918015360832214, 0.04158153012394905, -0.06282050907611847, 0.15295645594596863, 0.0035155657678842545, 0.24652808904647827, -0.08917348086833954, -0.35493624210357666, -0.06147534400224686, -0.059323616325855255, -0.0681367814540863, 0.22970515489578247, -0.06997357308864594, 0.025114217773079872, 0.18383975327014923, -0.09884859621524811, -0.1319565773010254, -0.40801024436950684, 0.6134055852890015, -0.4409064054489136, -0.03570833429694176, -0.19962014257907867, 0.363047331571579, 0.03314719721674919, -0.17256273329257965, 0.14526258409023285, -0.142048180103302, -0.23196528851985931, -0.30375683307647705, 0.08966216444969177, -0.3973175883293152, 0.3674938976764679, -0.06796646118164062, 0.030708931386470795, -0.07294592261314392, -0.3076346814632416, 0.13283948600292206, 0.2419949471950531, -0.23331007361412048, 0.3818821907043457, 0.2886337637901306, -0.037628501653671265, -0.16054792702198029, 0.4000946581363678, 0.6762166619300842, 0.26996132731437683, -0.2351970374584198, 0.26749369502067566, 0.03328399360179901, -0.05285707116127014, -0.02593424916267395, -0.005995661020278931, 0.28129106760025024, -0.0034658946096897125, 0.2339329570531845, 0.23367643356323242, -0.22609777748584747, 0.05287493020296097, -0.19164921343326569, 0.3153736889362335, -0.01486806757748127, 0.4126878082752228, -0.32278716564178467, -0.14263643324375153, -0.32239165902137756, 0.13642889261245728, -0.8104318976402283, 0.17204760015010834, 0.26726797223091125, -0.4068024158477783, 0.02151598036289215, -0.17312760651111603, 0.08031542599201202, -0.07526600360870361, 0.7511894702911377, 0.20130369067192078, 0.3521660566329956, -0.49669283628463745, -0.31689947843551636, -0.2904438376426697, 0.20751400291919708, -0.12045447528362274, -0.1377052664756775, -0.05946749448776245, -0.07869895547628403, -0.13662564754486084, 0.1496257781982422, 0.12248608469963074, 0.1239461600780487, -0.2708899974822998, -0.1634468138217926, -0.016866067424416542, 0.04201251640915871, -0.06340312957763672, 0.10234671831130981, 0.2733124792575836, -0.22609472274780273, 0.23419345915317535, -0.0447949655354023, 0.038396939635276794, 0.21650677919387817, -0.01955677941441536, 0.17872494459152222, -0.36867672204971313, 0.37124574184417725, 0.12576760351657867, 0.34745335578918457, 0.16407695412635803, -0.057670958340168, -0.15084777772426605, -0.2002633959054947, -0.0525050051510334, 0.11811085045337677, -0.009458400309085846, 0.005407063290476799, -0.23456783592700958, -0.2379542738199234, -0.5355011224746704, 0.18844088912010193, 0.03245669603347778, -0.061544883996248245, 0.041002631187438965, -0.19774386286735535, 0.14530637860298157, 0.1729564368724823, 0.2607692778110504, 0.04376884549856186, -0.002930842339992523, 0.13175328075885773, -0.3068510890007019, -0.26663437485694885, 0.6317306756973267, -0.4022052586078644, -0.24217848479747772, 0.07185084372758865, 0.3609127998352051, 0.13837146759033203, 0.10802716016769409, -0.4578801393508911, 0.036779023706912994, 0.38186854124069214, 0.3051503896713257, -0.28071048855781555, 0.2636132538318634, -0.22063381969928741, 0.07509869337081909, 0.15701712667942047, 0.11334648728370667, -0.11423037201166153, -0.34790340065956116, -0.09011809527873993, -0.12728682160377502 ]
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.16224288940429688, -0.06068231910467148, 0.0938829630613327, 0.08360293507575989, 0.3144041895866394, -0.1429738998413086, 0.6139577627182007, 0.013212990015745163, -0.11961552500724792, 0.005816034972667694, 0.1650339663028717, 0.20179620385169983, -0.07878877222537994, 0.09452307969331741, -0.01900744065642357, 0.21308563649654388, 0.02787867933511734, -0.14028725028038025, -0.2763955295085907, -0.14106407761573792, -0.22847668826580048, 0.15234583616256714, -0.0874376967549324, -0.16173827648162842, -0.672646164894104, -0.10210184007883072, -0.1329011768102646, 0.1628415882587433, 0.17959067225456238, -0.41693946719169617, 0.19312666356563568, 0.23521454632282257, -0.10143464803695679, 0.3875523805618286, -0.00011994224769296125, -0.09373772144317627, 0.3522939085960388, -0.06502710282802582, -0.29040804505348206, -0.10390445590019226, 0.04166895151138306, 0.18742740154266357, -0.05347568541765213, -0.11911221593618393, -0.0600777268409729, 0.007090543396770954, 0.13240063190460205, -0.4158928394317627, 0.393730103969574, -0.12082371115684509, 0.1669468879699707, 0.27933239936828613, -0.11707907915115356, 0.09176825731992722, 0.12649159133434296, 0.7000270485877991, -0.24773000180721283, -0.0409511923789978, 0.003817938268184662, 0.03528054058551788, -0.29972612857818604, 0.2550402581691742, 0.14568877220153809, 0.11567322909832001, 0.5079760551452637, 0.19230309128761292, -0.1786676049232483, -0.1532365083694458, 0.11486288160085678, 0.27675557136535645, 0.2311251163482666, -0.3748754858970642, -0.33699023723602295, -0.6084518432617188, -0.23626765608787537, -0.23218247294425964, 0.15272016823291779, 0.00965451542288065, -0.15775446593761444, 0.07931596040725708, -0.3549191951751709, 0.12653279304504395, 0.07074394822120667, -0.19521339237689972, 0.24688920378684998, 0.22187897562980652, 0.007236786652356386, 0.1679404228925705, 0.1587354987859726, 0.06049857288599014, 0.16993531584739685, -0.11815845966339111, -0.0938742458820343, 0.03949640691280365, 0.01804269105195999, 0.10574331879615784, 0.15860515832901, 0.15346364676952362, 0.31891071796417236, 0.5014265775680542, 0.06100920960307121, 0.10238534212112427, 0.16774533689022064, -0.07384238392114639, 0.2467001974582672, 0.21972380578517914, -0.05806126445531845, 0.3566717803478241, 0.06708566099405289, 0.03704323247075081, -0.0029737688601017, 0.014272257685661316, 0.2652677297592163, -0.042603325098752975, 0.5014548897743225, -0.027012139558792114, 0.23976881802082062, -0.05103675276041031, 0.06508222967386246, 0.14982204139232635, 0.01213635504245758, -0.0750531405210495, -0.07793091982603073, 0.25013935565948486, -0.19820819795131683, -0.024247996509075165, -0.09562373161315918, -0.04490604251623154, -0.13488401472568512, -0.08266976475715637, -0.2837890088558197, -0.1389881819486618, -0.2515229284763336, 0.28137245774269104, -0.07130620628595352, -0.08077886700630188, 0.34109771251678467, 0.25195080041885376, 0.1854822039604187, -0.15563040971755981, 0.17853368818759918, -0.06226037070155144, 0.44979128241539, 0.13120119273662567, -0.1929616779088974, 0.15771067142486572, 0.1532047688961029, 0.07865969836711884, -0.16107326745986938, 0.08812489360570908, 0.08657164871692657, -0.23641422390937805, 0.11736831814050674, 0.052563171833753586, -0.5501570105552673, 0.12229212373495102, -0.0983978882431984, -0.03664979711174965, 0.49200618267059326, 0.17493538558483124, 0.26513227820396423, -0.18992488086223602, -0.43150123953819275, -0.29181909561157227, 0.07293447852134705, 0.780555784702301, 0.029277708381414413, -0.2914331257343292, 0.0271986685693264, 0.15184883773326874, 0.17881923913955688, 0.15702411532402039, -0.124175064265728, 0.22122591733932495, -0.46078845858573914, 0.22057737410068512, -0.2322387993335724, -0.14237476885318756, -0.23229338228702545, 0.3027461767196655, -0.09363336861133575, 0.38315349817276, 0.03836025297641754, 0.05611008405685425, -0.11149996519088745, -0.12546324729919434, -0.23886620998382568, 0.22451546788215637, -0.006819633767008781, 0.10983899980783463, -0.400564044713974, -0.38976266980171204, 0.06552993506193161, -0.048365212976932526, 0.051963865756988525, 0.009437032043933868, 0.13186968863010406, -0.1288129687309265, 0.28778818249702454, -0.10685111582279205, 0.15813744068145752, 0.15285342931747437, 0.15873026847839355, 0.2246328890323639, 0.035185806453228, 0.16891631484031677, -0.5419936180114746, 0.3820071518421173, -0.24104958772659302, -0.18935872614383698, -0.14942051470279694, -0.3210415244102478, -0.07530200481414795, 0.09607620537281036, -0.4060981571674347, -0.3152603805065155, -0.015451423823833466, 0.5506620407104492, 0.27086904644966125, -0.00519978255033493, 0.09682485461235046, 0.24030612409114838, 0.14232808351516724, -0.0027181627228856087, -0.9128633737564087, 0.05678548663854599, 0.09068241715431213, -0.17256291210651398, -0.23067116737365723, 0.07788613438606262, 0.09686850011348724, -0.22878828644752502, 0.03843601420521736, 0.35980698466300964, 0.15805667638778687, 0.2628178596496582, -0.09842177480459213, 0.19280889630317688, 0.007418901659548283, -0.10861840844154358, -0.03949414938688278, 0.15217715501785278, 0.055404674261808395, -0.10211699455976486, -0.09838023036718369, 0.4918054938316345, -0.212891086935997, 0.11599081754684448, -0.1526506245136261, -0.08623211830854416, -0.06280826777219772, -0.052596356719732285, -0.2161846160888672, -0.19715425372123718, 0.08998282253742218, -0.0390486940741539, 0.5391983985900879, 0.2282954752445221, -0.3941822648048401, 0.23121458292007446, -0.0016541704535484314, -0.04916974529623985, 0.14370086789131165, 0.085204117000103, 0.07124556601047516, -0.31313470005989075, 0.056009046733379364, 0.33893901109695435, 0.42759835720062256, 0.015995968133211136, 0.05836385115981102, 0.05122769623994827, -0.10640730708837509, -0.16651159524917603, -0.007132470607757568, 0.000593043863773346, -0.02984241582453251, 0.2195880115032196, 0.14125575125217438, 0.011257655918598175, -0.4387529790401459, -0.02868828922510147, 0.13569636642932892, -0.02731052227318287, -0.31918174028396606, 0.28996723890304565, -0.17555274069309235, 0.44555899500846863, -0.3127738833427429, -0.15450753271579742, -0.2895251214504242, -0.2514537572860718, -0.12136603891849518, 0.4109189510345459, -0.11663025617599487, 0.195009246468544, -0.1968611478805542, 0.2971336543560028, -0.0853327065706253, -0.2759706974029541, -0.2541818618774414, -0.10936294496059418, -0.2183862328529358, -0.06022961437702179, 0.12037526071071625, -0.003439495572820306, 0.23211131989955902, -0.11008065938949585, -0.07122683525085449, -0.30981844663619995, -0.10552945733070374, 0.22297553718090057, -0.10863405466079712, 0.5486393570899963, 0.24777193367481232, -0.21884538233280182, -0.17938077449798584, -0.21308128535747528, 0.2121199518442154, -0.19382725656032562, -0.08629051595926285, -0.17024819552898407, -0.09227018803358078, -0.05378014221787453, 0.029568906873464584, 0.06901543587446213, -0.09483984857797623, 0.012120384722948074, 0.2557661235332489, -0.0645924061536789, 0.040518321096897125, 0.5897517204284668, 0.02841315045952797, -0.05743664503097534, -0.10545414686203003, -0.04405362904071808, -0.514617383480072, -0.49496883153915405, 0.2611504793167114, -0.16340161859989166, -0.21638689935207367, -0.32583680748939514, -0.29722893238067627, 0.0188400000333786, 0.18888939917087555, -0.6068614721298218, -0.051664020866155624, -0.26852288842201233, 0.4238203465938568, -0.2032548040151596, 0.017774853855371475, 0.334409236907959, 0.09859663248062134, 0.10768096148967743, -0.02111039310693741, -0.04747997596859932, 0.2567799985408783, -0.38988491892814636, 0.3817117512226105, 0.10487530380487442, 0.060254283249378204, 0.08924727141857147, 1.0046874284744263, 0.2359316349029541, -0.36999985575675964, 0.19783441722393036, -0.06440958380699158, 0.474962055683136, -0.29798632860183716, -0.20793692767620087, 0.13105103373527527, -0.05903981626033783, -0.25289446115493774, 0.16061706840991974, -0.07951721549034119, 0.20314200222492218, 0.1621229201555252, 0.23740750551223755, -0.15798872709274292, -0.36369410157203674, 0.11796020716428757, -0.0183757022023201, 0.029055900871753693, 0.022085577249526978, 0.31205683946609497, -0.20992980897426605, -0.1583351194858551, 0.0411260686814785, 0.03567051142454147, 0.42217519879341125, 0.052292026579380035, -0.3100935220718384, 0.18761324882507324, -0.6171485185623169, 0.05409431457519531, 0.21874326467514038, 0.23804360628128052, -0.10982710123062134, -0.33856457471847534, 0.10949718952178955, -0.0808582678437233, 0.7635927796363831, -0.021158313378691673, 0.2726778984069824, 0.06458935141563416, -0.4564515948295593, -0.17785678803920746, -0.019479330629110336, 0.03873289003968239, -0.21185973286628723, 0.07436591386795044, 0.10870639979839325, -0.1690751314163208, 0.16451705992221832, -0.1442146897315979, 0.19735215604305267, -0.12989772856235504, -0.19459199905395508, -0.26626333594322205, -0.30793169140815735, -0.17888133227825165, 0.10337185859680176, 0.06400267779827118, -0.060818273574113846, -0.08260375261306763, 0.019687481224536896, -0.30177056789398193, -0.25996750593185425, 0.043525125831365585, 0.07066270709037781, 0.34439077973365784, 0.0018843677826225758, 0.4046283960342407, 0.4547138214111328, -0.19826650619506836, 0.0894351601600647, 0.4374313950538635, -0.21483513712882996, 0.008554928004741669, 0.2202310860157013, -0.03968162089586258, -0.23343700170516968, 0.5466160178184509, -0.1877536177635193, -0.08945272117853165, 0.058728668838739395, 0.010810032486915588, -0.4439823627471924, 0.06646469980478287, 0.14664115011692047, 0.11371570825576782, -0.028196537867188454, -0.26247870922088623, 0.3312920033931732, 0.027261432260274887, -0.2758755683898926, 0.439270555973053, -0.3099088668823242, -0.12392333149909973, 0.4247114062309265, 0.24714446067810059, 0.8804848194122314, -0.1272093504667282, 0.3180254101753235, 0.19071370363235474, 0.2768239378929138, 0.1486360728740692, 0.4829753041267395, 0.011516068130731583, -0.42813652753829956, -0.3656575679779053, 0.006081974133849144, -0.20244155824184418, 0.05559234321117401, 0.08699439465999603, 0.06656692922115326, 0.1132722720503807, -0.06304284930229187, 0.10322792828083038, -0.1567857712507248, 0.156046062707901, 0.024631517007946968, -0.21568620204925537, 0.17356455326080322, 0.0843447670340538, 0.17185449600219727, 0.5333358645439148, -0.06999033689498901, 0.09539644420146942, 0.060764919966459274, -0.2466627061367035, -0.3635309934616089, 0.20860621333122253, -0.27901458740234375, 0.20228402316570282, 0.36919549107551575, -0.02583625167608261, -0.25836604833602905, 0.13515739142894745, 0.5098418593406677, 0.15523043274879456, -0.10205177962779999, 0.14779658615589142, 0.25783267617225647, 0.19270096719264984, -0.13152781128883362, -0.13015006482601166, 0.21113133430480957, 0.12363602966070175, -0.12068280577659607, -0.15193548798561096, -0.04780479520559311, -0.2716754674911499, -0.45988965034484863, -0.012133300304412842, -0.09795337915420532, -0.3023131489753723, 0.07902906835079193, -0.1466926634311676, 0.02726512774825096, -0.15418410301208496, 0.028699662536382675, 0.22076502442359924, 0.022811055183410645, 0.12999725341796875, -0.17856396734714508, -0.40695253014564514, -0.22650198638439178, 0.4325014352798462, -0.061209581792354584, 0.07272478938102722, 0.26022374629974365, 0.09222398698329926, -0.03154347836971283, -0.10855701565742493, 0.23510760068893433, 0.13772578537464142, -0.5122729539871216, 0.24339993298053741, -0.2169807255268097, -0.019595250487327576, -0.0813559889793396, 0.23161739110946655, 0.11155930161476135, 0.03482361137866974, -0.06170261651277542, -0.15238307416439056, -0.3719462454319, -0.17046332359313965, 0.08219674229621887, 0.35191574692726135, 0.29289913177490234, 0.09904217720031738, -0.10512799769639969, 0.3124907910823822, -0.24333764612674713, -0.05023428797721863, 0.007626524195075035, 0.029681328684091568, 0.06706869602203369, -0.3035525679588318, 0.2867906987667084, -0.06814368814229965, -0.006358444690704346, 0.29466450214385986, -0.36886274814605713, -0.11842836439609528, -0.4529240131378174, 0.1593661904335022, 0.008884984068572521, -0.004895701073110104, -0.15719592571258545, 0.17797531187534332, 0.023718975484371185, -0.3966794013977051, 0.391792356967926, 0.5151255130767822, 0.014995571225881577, -0.08308563381433487, 0.4291325509548187, 0.0537453293800354, -0.09802456200122833, -0.1753571480512619, -0.184446781873703, 0.07485510408878326, 0.24807702004909515, 0.10791618376970291, -0.15067647397518158, 0.007183767855167389, -0.23143768310546875, 0.02881135791540146, 0.23021122813224792, -0.06765647232532501, 0.018018294125795364, -0.13433226943016052, -0.26811185479164124, -0.07233533263206482, 0.17030204832553864, 0.16116949915885925, -0.16351266205310822, -0.39357057213783264, 0.1354331076145172, 0.14979463815689087, -0.07259960472583771, -0.2825772166252136, -0.38760238885879517, 0.2493046075105667, 0.08689835667610168, 0.5509282946586609, 0.3141436278820038, -0.12256800383329391, 0.05723527818918228, 0.03461882844567299, 0.5128434300422668, -0.398712158203125, 0.2396620810031891, 0.3090466856956482, -0.23854120075702667, 0.025235258042812347, 0.49388259649276733, 0.2923136353492737, 0.20635652542114258, 0.17327375710010529, -0.03843081742525101, 0.5072752237319946, -0.3027765452861786, 0.09721850603818893, -0.13920682668685913, -0.645699679851532, 0.308238685131073, 0.440591424703598, -0.15164706110954285, 0.40868279337882996, 0.07743273675441742, 0.4832053482532501, -0.16603633761405945, -0.0858013704419136, -0.30036303400993347, 0.30243736505508423, 0.014399135485291481, -0.5353158116340637, 0.037778303027153015, -0.08343909680843353, -0.38263654708862305, 0.09004199504852295, -0.003548726439476013, -0.2081616371870041, 0.6144248247146606, -0.07520939409732819, -0.25159502029418945, -0.3642035722732544, -0.03783639520406723, 0.01426110602915287, 0.11976255476474762, -0.3115847706794739, 0.25055110454559326, 0.16059821844100952, -0.29697078466415405, 0.10138136148452759, 0.18869957327842712, 0.5075889229774475, 0.33880963921546936, 0.1338161826133728, 0.10759430378675461, -0.2951604723930359, 0.19070011377334595, -0.24812936782836914, 0.3066648244857788, -0.2367556095123291, -0.21218419075012207, 0.2729892432689667, 0.07830877602100372, -0.12301020324230194, 0.07552452385425568, 0.060489702969789505, 0.4505960941314697, -0.19694110751152039, 0.6952242255210876, -0.1496916562318802, 0.18838182091712952, -0.0011687949299812317, 0.34802037477493286, -0.36970284581184387, 0.05856011062860489, 0.2623932659626007, -0.1507822424173355, 0.1990688443183899, -0.132257878780365, 0.03402688726782799, -0.04889753833413124, 0.3877415955066681, 0.2560410797595978, -0.34836122393608093, -0.17920994758605957, 0.19576378166675568, -0.5142300128936768, 0.3533172309398651, -0.1999628096818924, 0.10052832961082458, 0.08040149509906769, 0.14553536474704742, -0.22769281268119812, -0.009682662785053253, -0.17147023975849152, 0.2559448182582855, 0.008133999072015285, 0.30904141068458557, -0.15683075785636902, 0.08803991973400116, -0.43921226263046265, -0.014475135132670403, 0.21304556727409363, -0.38414305448532104, 0.2073274850845337, 0.1999235898256302, -0.029707718640565872, 0.055027734488248825, -0.17302830517292023, -0.02778167463839054, -0.006821237504482269, 0.40174600481987, 0.265251100063324, 0.07998290657997131, -0.1851324737071991, -0.18267880380153656, -0.5771653652191162, -0.15515562891960144, -0.11464450508356094, 0.11606082320213318, 0.10479575395584106, 0.22329910099506378, -0.20687180757522583, -0.26768723130226135, -0.4154667854309082, 0.236545592546463, 0.259945809841156, -0.13951058685779572, -0.13626042008399963, 0.23889636993408203, -0.356155127286911, 0.3288772404193878, 0.09196115285158157, 0.47965914011001587, -0.02437298744916916, 0.28056392073631287, -0.13492828607559204, -0.40611377358436584, 0.7216506004333496, -0.5009361505508423, -0.2477233111858368, -0.32389017939567566, 0.04406125098466873, 0.07158913463354111, -0.45235928893089294, -0.4823095202445984, 0.16658592224121094, 0.1452370285987854, 0.09781325608491898, -0.0011372845619916916, -0.14856383204460144, -0.24830326437950134, 0.027590755373239517, -0.09752222895622253, 0.5400002002716064, 0.19598227739334106, -0.15169374644756317, 0.3653627038002014, -0.15052655339241028 ]
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.16224288940429688, -0.06068231910467148, 0.0938829630613327, 0.08360293507575989, 0.3144041895866394, -0.1429738998413086, 0.6139577627182007, 0.013212990015745163, -0.11961552500724792, 0.005816034972667694, 0.1650339663028717, 0.20179620385169983, -0.07878877222537994, 0.09452307969331741, -0.01900744065642357, 0.21308563649654388, 0.02787867933511734, -0.14028725028038025, -0.2763955295085907, -0.14106407761573792, -0.22847668826580048, 0.15234583616256714, -0.0874376967549324, -0.16173827648162842, -0.672646164894104, -0.10210184007883072, -0.1329011768102646, 0.1628415882587433, 0.17959067225456238, -0.41693946719169617, 0.19312666356563568, 0.23521454632282257, -0.10143464803695679, 0.3875523805618286, -0.00011994224769296125, -0.09373772144317627, 0.3522939085960388, -0.06502710282802582, -0.29040804505348206, -0.10390445590019226, 0.04166895151138306, 0.18742740154266357, -0.05347568541765213, -0.11911221593618393, -0.0600777268409729, 0.007090543396770954, 0.13240063190460205, -0.4158928394317627, 0.393730103969574, -0.12082371115684509, 0.1669468879699707, 0.27933239936828613, -0.11707907915115356, 0.09176825731992722, 0.12649159133434296, 0.7000270485877991, -0.24773000180721283, -0.0409511923789978, 0.003817938268184662, 0.03528054058551788, -0.29972612857818604, 0.2550402581691742, 0.14568877220153809, 0.11567322909832001, 0.5079760551452637, 0.19230309128761292, -0.1786676049232483, -0.1532365083694458, 0.11486288160085678, 0.27675557136535645, 0.2311251163482666, -0.3748754858970642, -0.33699023723602295, -0.6084518432617188, -0.23626765608787537, -0.23218247294425964, 0.15272016823291779, 0.00965451542288065, -0.15775446593761444, 0.07931596040725708, -0.3549191951751709, 0.12653279304504395, 0.07074394822120667, -0.19521339237689972, 0.24688920378684998, 0.22187897562980652, 0.007236786652356386, 0.1679404228925705, 0.1587354987859726, 0.06049857288599014, 0.16993531584739685, -0.11815845966339111, -0.0938742458820343, 0.03949640691280365, 0.01804269105195999, 0.10574331879615784, 0.15860515832901, 0.15346364676952362, 0.31891071796417236, 0.5014265775680542, 0.06100920960307121, 0.10238534212112427, 0.16774533689022064, -0.07384238392114639, 0.2467001974582672, 0.21972380578517914, -0.05806126445531845, 0.3566717803478241, 0.06708566099405289, 0.03704323247075081, -0.0029737688601017, 0.014272257685661316, 0.2652677297592163, -0.042603325098752975, 0.5014548897743225, -0.027012139558792114, 0.23976881802082062, -0.05103675276041031, 0.06508222967386246, 0.14982204139232635, 0.01213635504245758, -0.0750531405210495, -0.07793091982603073, 0.25013935565948486, -0.19820819795131683, -0.024247996509075165, -0.09562373161315918, -0.04490604251623154, -0.13488401472568512, -0.08266976475715637, -0.2837890088558197, -0.1389881819486618, -0.2515229284763336, 0.28137245774269104, -0.07130620628595352, -0.08077886700630188, 0.34109771251678467, 0.25195080041885376, 0.1854822039604187, -0.15563040971755981, 0.17853368818759918, -0.06226037070155144, 0.44979128241539, 0.13120119273662567, -0.1929616779088974, 0.15771067142486572, 0.1532047688961029, 0.07865969836711884, -0.16107326745986938, 0.08812489360570908, 0.08657164871692657, -0.23641422390937805, 0.11736831814050674, 0.052563171833753586, -0.5501570105552673, 0.12229212373495102, -0.0983978882431984, -0.03664979711174965, 0.49200618267059326, 0.17493538558483124, 0.26513227820396423, -0.18992488086223602, -0.43150123953819275, -0.29181909561157227, 0.07293447852134705, 0.780555784702301, 0.029277708381414413, -0.2914331257343292, 0.0271986685693264, 0.15184883773326874, 0.17881923913955688, 0.15702411532402039, -0.124175064265728, 0.22122591733932495, -0.46078845858573914, 0.22057737410068512, -0.2322387993335724, -0.14237476885318756, -0.23229338228702545, 0.3027461767196655, -0.09363336861133575, 0.38315349817276, 0.03836025297641754, 0.05611008405685425, -0.11149996519088745, -0.12546324729919434, -0.23886620998382568, 0.22451546788215637, -0.006819633767008781, 0.10983899980783463, -0.400564044713974, -0.38976266980171204, 0.06552993506193161, -0.048365212976932526, 0.051963865756988525, 0.009437032043933868, 0.13186968863010406, -0.1288129687309265, 0.28778818249702454, -0.10685111582279205, 0.15813744068145752, 0.15285342931747437, 0.15873026847839355, 0.2246328890323639, 0.035185806453228, 0.16891631484031677, -0.5419936180114746, 0.3820071518421173, -0.24104958772659302, -0.18935872614383698, -0.14942051470279694, -0.3210415244102478, -0.07530200481414795, 0.09607620537281036, -0.4060981571674347, -0.3152603805065155, -0.015451423823833466, 0.5506620407104492, 0.27086904644966125, -0.00519978255033493, 0.09682485461235046, 0.24030612409114838, 0.14232808351516724, -0.0027181627228856087, -0.9128633737564087, 0.05678548663854599, 0.09068241715431213, -0.17256291210651398, -0.23067116737365723, 0.07788613438606262, 0.09686850011348724, -0.22878828644752502, 0.03843601420521736, 0.35980698466300964, 0.15805667638778687, 0.2628178596496582, -0.09842177480459213, 0.19280889630317688, 0.007418901659548283, -0.10861840844154358, -0.03949414938688278, 0.15217715501785278, 0.055404674261808395, -0.10211699455976486, -0.09838023036718369, 0.4918054938316345, -0.212891086935997, 0.11599081754684448, -0.1526506245136261, -0.08623211830854416, -0.06280826777219772, -0.052596356719732285, -0.2161846160888672, -0.19715425372123718, 0.08998282253742218, -0.0390486940741539, 0.5391983985900879, 0.2282954752445221, -0.3941822648048401, 0.23121458292007446, -0.0016541704535484314, -0.04916974529623985, 0.14370086789131165, 0.085204117000103, 0.07124556601047516, -0.31313470005989075, 0.056009046733379364, 0.33893901109695435, 0.42759835720062256, 0.015995968133211136, 0.05836385115981102, 0.05122769623994827, -0.10640730708837509, -0.16651159524917603, -0.007132470607757568, 0.000593043863773346, -0.02984241582453251, 0.2195880115032196, 0.14125575125217438, 0.011257655918598175, -0.4387529790401459, -0.02868828922510147, 0.13569636642932892, -0.02731052227318287, -0.31918174028396606, 0.28996723890304565, -0.17555274069309235, 0.44555899500846863, -0.3127738833427429, -0.15450753271579742, -0.2895251214504242, -0.2514537572860718, -0.12136603891849518, 0.4109189510345459, -0.11663025617599487, 0.195009246468544, -0.1968611478805542, 0.2971336543560028, -0.0853327065706253, -0.2759706974029541, -0.2541818618774414, -0.10936294496059418, -0.2183862328529358, -0.06022961437702179, 0.12037526071071625, -0.003439495572820306, 0.23211131989955902, -0.11008065938949585, -0.07122683525085449, -0.30981844663619995, -0.10552945733070374, 0.22297553718090057, -0.10863405466079712, 0.5486393570899963, 0.24777193367481232, -0.21884538233280182, -0.17938077449798584, -0.21308128535747528, 0.2121199518442154, -0.19382725656032562, -0.08629051595926285, -0.17024819552898407, -0.09227018803358078, -0.05378014221787453, 0.029568906873464584, 0.06901543587446213, -0.09483984857797623, 0.012120384722948074, 0.2557661235332489, -0.0645924061536789, 0.040518321096897125, 0.5897517204284668, 0.02841315045952797, -0.05743664503097534, -0.10545414686203003, -0.04405362904071808, -0.514617383480072, -0.49496883153915405, 0.2611504793167114, -0.16340161859989166, -0.21638689935207367, -0.32583680748939514, -0.29722893238067627, 0.0188400000333786, 0.18888939917087555, -0.6068614721298218, -0.051664020866155624, -0.26852288842201233, 0.4238203465938568, -0.2032548040151596, 0.017774853855371475, 0.334409236907959, 0.09859663248062134, 0.10768096148967743, -0.02111039310693741, -0.04747997596859932, 0.2567799985408783, -0.38988491892814636, 0.3817117512226105, 0.10487530380487442, 0.060254283249378204, 0.08924727141857147, 1.0046874284744263, 0.2359316349029541, -0.36999985575675964, 0.19783441722393036, -0.06440958380699158, 0.474962055683136, -0.29798632860183716, -0.20793692767620087, 0.13105103373527527, -0.05903981626033783, -0.25289446115493774, 0.16061706840991974, -0.07951721549034119, 0.20314200222492218, 0.1621229201555252, 0.23740750551223755, -0.15798872709274292, -0.36369410157203674, 0.11796020716428757, -0.0183757022023201, 0.029055900871753693, 0.022085577249526978, 0.31205683946609497, -0.20992980897426605, -0.1583351194858551, 0.0411260686814785, 0.03567051142454147, 0.42217519879341125, 0.052292026579380035, -0.3100935220718384, 0.18761324882507324, -0.6171485185623169, 0.05409431457519531, 0.21874326467514038, 0.23804360628128052, -0.10982710123062134, -0.33856457471847534, 0.10949718952178955, -0.0808582678437233, 0.7635927796363831, -0.021158313378691673, 0.2726778984069824, 0.06458935141563416, -0.4564515948295593, -0.17785678803920746, -0.019479330629110336, 0.03873289003968239, -0.21185973286628723, 0.07436591386795044, 0.10870639979839325, -0.1690751314163208, 0.16451705992221832, -0.1442146897315979, 0.19735215604305267, -0.12989772856235504, -0.19459199905395508, -0.26626333594322205, -0.30793169140815735, -0.17888133227825165, 0.10337185859680176, 0.06400267779827118, -0.060818273574113846, -0.08260375261306763, 0.019687481224536896, -0.30177056789398193, -0.25996750593185425, 0.043525125831365585, 0.07066270709037781, 0.34439077973365784, 0.0018843677826225758, 0.4046283960342407, 0.4547138214111328, -0.19826650619506836, 0.0894351601600647, 0.4374313950538635, -0.21483513712882996, 0.008554928004741669, 0.2202310860157013, -0.03968162089586258, -0.23343700170516968, 0.5466160178184509, -0.1877536177635193, -0.08945272117853165, 0.058728668838739395, 0.010810032486915588, -0.4439823627471924, 0.06646469980478287, 0.14664115011692047, 0.11371570825576782, -0.028196537867188454, -0.26247870922088623, 0.3312920033931732, 0.027261432260274887, -0.2758755683898926, 0.439270555973053, -0.3099088668823242, -0.12392333149909973, 0.4247114062309265, 0.24714446067810059, 0.8804848194122314, -0.1272093504667282, 0.3180254101753235, 0.19071370363235474, 0.2768239378929138, 0.1486360728740692, 0.4829753041267395, 0.011516068130731583, -0.42813652753829956, -0.3656575679779053, 0.006081974133849144, -0.20244155824184418, 0.05559234321117401, 0.08699439465999603, 0.06656692922115326, 0.1132722720503807, -0.06304284930229187, 0.10322792828083038, -0.1567857712507248, 0.156046062707901, 0.024631517007946968, -0.21568620204925537, 0.17356455326080322, 0.0843447670340538, 0.17185449600219727, 0.5333358645439148, -0.06999033689498901, 0.09539644420146942, 0.060764919966459274, -0.2466627061367035, -0.3635309934616089, 0.20860621333122253, -0.27901458740234375, 0.20228402316570282, 0.36919549107551575, -0.02583625167608261, -0.25836604833602905, 0.13515739142894745, 0.5098418593406677, 0.15523043274879456, -0.10205177962779999, 0.14779658615589142, 0.25783267617225647, 0.19270096719264984, -0.13152781128883362, -0.13015006482601166, 0.21113133430480957, 0.12363602966070175, -0.12068280577659607, -0.15193548798561096, -0.04780479520559311, -0.2716754674911499, -0.45988965034484863, -0.012133300304412842, -0.09795337915420532, -0.3023131489753723, 0.07902906835079193, -0.1466926634311676, 0.02726512774825096, -0.15418410301208496, 0.028699662536382675, 0.22076502442359924, 0.022811055183410645, 0.12999725341796875, -0.17856396734714508, -0.40695253014564514, -0.22650198638439178, 0.4325014352798462, -0.061209581792354584, 0.07272478938102722, 0.26022374629974365, 0.09222398698329926, -0.03154347836971283, -0.10855701565742493, 0.23510760068893433, 0.13772578537464142, -0.5122729539871216, 0.24339993298053741, -0.2169807255268097, -0.019595250487327576, -0.0813559889793396, 0.23161739110946655, 0.11155930161476135, 0.03482361137866974, -0.06170261651277542, -0.15238307416439056, -0.3719462454319, -0.17046332359313965, 0.08219674229621887, 0.35191574692726135, 0.29289913177490234, 0.09904217720031738, -0.10512799769639969, 0.3124907910823822, -0.24333764612674713, -0.05023428797721863, 0.007626524195075035, 0.029681328684091568, 0.06706869602203369, -0.3035525679588318, 0.2867906987667084, -0.06814368814229965, -0.006358444690704346, 0.29466450214385986, -0.36886274814605713, -0.11842836439609528, -0.4529240131378174, 0.1593661904335022, 0.008884984068572521, -0.004895701073110104, -0.15719592571258545, 0.17797531187534332, 0.023718975484371185, -0.3966794013977051, 0.391792356967926, 0.5151255130767822, 0.014995571225881577, -0.08308563381433487, 0.4291325509548187, 0.0537453293800354, -0.09802456200122833, -0.1753571480512619, -0.184446781873703, 0.07485510408878326, 0.24807702004909515, 0.10791618376970291, -0.15067647397518158, 0.007183767855167389, -0.23143768310546875, 0.02881135791540146, 0.23021122813224792, -0.06765647232532501, 0.018018294125795364, -0.13433226943016052, -0.26811185479164124, -0.07233533263206482, 0.17030204832553864, 0.16116949915885925, -0.16351266205310822, -0.39357057213783264, 0.1354331076145172, 0.14979463815689087, -0.07259960472583771, -0.2825772166252136, -0.38760238885879517, 0.2493046075105667, 0.08689835667610168, 0.5509282946586609, 0.3141436278820038, -0.12256800383329391, 0.05723527818918228, 0.03461882844567299, 0.5128434300422668, -0.398712158203125, 0.2396620810031891, 0.3090466856956482, -0.23854120075702667, 0.025235258042812347, 0.49388259649276733, 0.2923136353492737, 0.20635652542114258, 0.17327375710010529, -0.03843081742525101, 0.5072752237319946, -0.3027765452861786, 0.09721850603818893, -0.13920682668685913, -0.645699679851532, 0.308238685131073, 0.440591424703598, -0.15164706110954285, 0.40868279337882996, 0.07743273675441742, 0.4832053482532501, -0.16603633761405945, -0.0858013704419136, -0.30036303400993347, 0.30243736505508423, 0.014399135485291481, -0.5353158116340637, 0.037778303027153015, -0.08343909680843353, -0.38263654708862305, 0.09004199504852295, -0.003548726439476013, -0.2081616371870041, 0.6144248247146606, -0.07520939409732819, -0.25159502029418945, -0.3642035722732544, -0.03783639520406723, 0.01426110602915287, 0.11976255476474762, -0.3115847706794739, 0.25055110454559326, 0.16059821844100952, -0.29697078466415405, 0.10138136148452759, 0.18869957327842712, 0.5075889229774475, 0.33880963921546936, 0.1338161826133728, 0.10759430378675461, -0.2951604723930359, 0.19070011377334595, -0.24812936782836914, 0.3066648244857788, -0.2367556095123291, -0.21218419075012207, 0.2729892432689667, 0.07830877602100372, -0.12301020324230194, 0.07552452385425568, 0.060489702969789505, 0.4505960941314697, -0.19694110751152039, 0.6952242255210876, -0.1496916562318802, 0.18838182091712952, -0.0011687949299812317, 0.34802037477493286, -0.36970284581184387, 0.05856011062860489, 0.2623932659626007, -0.1507822424173355, 0.1990688443183899, -0.132257878780365, 0.03402688726782799, -0.04889753833413124, 0.3877415955066681, 0.2560410797595978, -0.34836122393608093, -0.17920994758605957, 0.19576378166675568, -0.5142300128936768, 0.3533172309398651, -0.1999628096818924, 0.10052832961082458, 0.08040149509906769, 0.14553536474704742, -0.22769281268119812, -0.009682662785053253, -0.17147023975849152, 0.2559448182582855, 0.008133999072015285, 0.30904141068458557, -0.15683075785636902, 0.08803991973400116, -0.43921226263046265, -0.014475135132670403, 0.21304556727409363, -0.38414305448532104, 0.2073274850845337, 0.1999235898256302, -0.029707718640565872, 0.055027734488248825, -0.17302830517292023, -0.02778167463839054, -0.006821237504482269, 0.40174600481987, 0.265251100063324, 0.07998290657997131, -0.1851324737071991, -0.18267880380153656, -0.5771653652191162, -0.15515562891960144, -0.11464450508356094, 0.11606082320213318, 0.10479575395584106, 0.22329910099506378, -0.20687180757522583, -0.26768723130226135, -0.4154667854309082, 0.236545592546463, 0.259945809841156, -0.13951058685779572, -0.13626042008399963, 0.23889636993408203, -0.356155127286911, 0.3288772404193878, 0.09196115285158157, 0.47965914011001587, -0.02437298744916916, 0.28056392073631287, -0.13492828607559204, -0.40611377358436584, 0.7216506004333496, -0.5009361505508423, -0.2477233111858368, -0.32389017939567566, 0.04406125098466873, 0.07158913463354111, -0.45235928893089294, -0.4823095202445984, 0.16658592224121094, 0.1452370285987854, 0.09781325608491898, -0.0011372845619916916, -0.14856383204460144, -0.24830326437950134, 0.027590755373239517, -0.09752222895622253, 0.5400002002716064, 0.19598227739334106, -0.15169374644756317, 0.3653627038002014, -0.15052655339241028 ]
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.22741931676864624, -0.1898314654827118, -0.008905278518795967, 0.032509252429008484, 0.0982823297381401, 0.04157391935586929, 0.07285066694021225, 0.1837981641292572, 0.06048796698451042, 0.16475361585617065, 0.20483967661857605, 0.6761357188224792, 0.0139966681599617, -0.31388309597969055, 0.06910884380340576, -0.23144695162773132, 0.07802388817071915, 0.12259141355752945, -0.33082959055900574, -0.06523226201534271, -0.34971320629119873, 0.013275700621306896, -0.3354184031486511, -0.3151180148124695, -0.35253095626831055, -0.11372289806604385, -0.14771974086761475, -0.07664669305086136, -0.3253411054611206, -0.3277151882648468, 0.08159323781728745, -0.38400566577911377, 0.05513244867324829, 0.2379111647605896, -0.00012643782247323543, -0.11211277544498444, 0.23498114943504333, -0.10649730265140533, -0.27131545543670654, 0.09049692749977112, -0.13008464872837067, -0.3753255605697632, 0.14736832678318024, -0.1593494415283203, 0.186486154794693, -0.1655191034078598, -0.6239051818847656, -0.3172653019428253, -0.07591007649898529, 0.16528978943824768, 0.16145406663417816, 0.25179415941238403, 0.012039761990308762, -0.28050628304481506, -0.09702681750059128, 0.19605378806591034, -0.2620946764945984, 0.34488049149513245, 0.060267843306064606, -0.09416268765926361, 0.3812078535556793, 0.30982497334480286, 0.2030225545167923, -0.01772233471274376, 0.18558385968208313, -0.07064332067966461, -0.09063523262739182, -0.021048225462436676, 0.47857901453971863, -0.08473127335309982, 0.71431964635849, -0.22489574551582336, -0.24912524223327637, -0.173416405916214, 0.4096646010875702, -0.3938191831111908, -0.027173347771167755, -0.18620501458644867, 0.2897665500640869, 0.02066384255886078, -0.14053909480571747, 0.08480927348136902, 0.1604088544845581, 0.18992707133293152, -0.0069543831050395966, 0.5650573968887329, 0.20246972143650055, 0.37047117948532104, -0.1926409900188446, -0.17043234407901764, 0.008176323026418686, 0.09424275904893875, -0.23454725742340088, 0.3636329770088196, -0.38720202445983887, -0.20498234033584595, -0.2336309552192688, -0.21559372544288635, 0.12005021423101425, 0.33105355501174927, -0.13778869807720184, -0.2782107889652252, 0.3323398530483246, -0.20036950707435608, 0.29723337292671204, 0.3154062032699585, 0.044810254126787186, 0.6069290637969971, -0.34731918573379517, -0.21179288625717163, 0.3857116103172302, 0.00742887519299984, 0.16380175948143005, -0.2288600504398346, 0.35443276166915894, -0.2207026183605194, 0.10142748057842255, 0.04870173707604408, -0.21820323169231415, 0.21330629289150238, -0.1640477180480957, -0.08078186959028244, -0.16887587308883667, 0.1329706907272339, 0.11672455072402954, 0.09041404724121094, 0.12356944382190704, 0.3109090328216553, -0.11853059381246567, -0.016927309334278107, -0.20823000371456146, -0.06791292130947113, -0.03488193824887276, -0.029425067827105522, -0.06455794721841812, 0.3572280704975128, 0.2836543321609497, -0.07212258875370026, -0.2275487333536148, -0.22864075005054474, -0.14714446663856506, -0.054005566984415054, 0.15188705921173096, 0.20090243220329285, -0.24855926632881165, 0.0838378444314003, -0.06924910843372345, -0.3781670331954956, -0.18509145081043243, 0.36475318670272827, -0.22890183329582214, -0.29656344652175903, -0.6092186570167542, 0.04430592060089111, 0.02930980548262596, -0.141322061419487, 0.1089109405875206, 0.26886919140815735, 0.4819936156272888, -0.11844289302825928, 0.4236474633216858, -0.36213117837905884, -0.3157021105289459, -0.12693867087364197, 0.15145054459571838, 0.26860564947128296, -0.8413764238357544, -0.06525029987096786, 0.008248578757047653, 0.24858358502388, 0.14924867451190948, 0.24917824566364288, -0.031791672110557556, -0.11568299680948257, 0.10233205556869507, 0.2750093936920166, 0.4440482258796692, 0.22986575961112976, -0.8025736212730408, -0.12540586292743683, -0.4141766428947449, 0.10224413126707077, -0.11903902143239975, 0.1956774890422821, 0.08396954089403152, 0.2012970745563507, 0.35248178243637085, 0.09563867002725601, -0.08323699235916138, -0.1414688676595688, -0.3857782185077667, -0.10185203701257706, 0.20326340198516846, -0.13365128636360168, 0.043538276106119156, -0.010632999241352081, 0.3127959668636322, -0.06380583345890045, 0.3429015278816223, 0.3277744650840759, 0.2038770467042923, 0.3033580780029297, 0.2194061279296875, -0.03384947031736374, 0.26682108640670776, -0.23827999830245972, -0.271085262298584, 0.0977189913392067, 0.12231740355491638, -0.15197139978408813, -0.15631230175495148, -0.24034570157527924, -0.7025294899940491, 0.21834507584571838, 0.13641555607318878, 0.005338195711374283, -0.06923067569732666, -0.05904380977153778, 0.21809065341949463, -0.1341991275548935, -0.03268283233046532, -0.05486457049846649, -0.35583844780921936, 0.1471114605665207, -0.10493357479572296, 0.2896163761615753, 0.05344761908054352, -0.369304895401001, -0.28332239389419556, 0.1731363832950592, 0.1423821747303009, 0.1439744383096695, -0.33182916045188904, 0.5284390449523926, -0.025057313963770866, -0.18709538877010345, -0.0710233747959137, -0.3655415177345276, 0.18586231768131256, -0.049162235110998154, 0.2788013815879822, -0.07489794492721558, 0.1783834993839264, 0.004565484821796417, 0.011803906410932541, -0.06782686710357666, -0.23799221217632294, 0.2784346044063568, -0.34705519676208496, -0.1087520644068718, 0.05903581529855728, 0.1315246969461441, -0.11299129575490952, -0.33200502395629883, -0.28763875365257263, 0.012285326607525349, -0.03642704710364342, -0.015126289799809456, -0.22957776486873627, 0.060112886130809784, 0.21464043855667114, -0.026400890201330185, 0.1114845722913742, 0.16534346342086792, -0.2672158181667328, 0.10053976625204086, 0.3662686049938202, 0.24151618778705597, 0.743434727191925, 0.1991252601146698, 0.09392422437667847, -0.02433117665350437, -0.12020843476057053, -0.007924334146082401, 0.046592965722084045, -0.048389747738838196, 0.014867118559777737, 0.25917428731918335, 0.23370976746082306, -0.10831382125616074, -0.025379294529557228, 0.3794063627719879, 0.12653076648712158, 0.14636234939098358, -0.30060234665870667, 0.030423549935221672, -0.39645200967788696, 0.10900590568780899, -0.11381849646568298, -0.1068861111998558, -0.04723210260272026, -0.16776905953884125, 0.03502333536744118, 0.03380841761827469, -0.27297350764274597, 0.2755674719810486, -0.48874008655548096, 0.12870930135250092, 0.269668847322464, -0.11721298843622208, 0.13539820909500122, 0.10729311406612396, -0.16013503074645996, -0.025659669190645218, -0.34780046343803406, 0.07679906487464905, 0.1265491396188736, 0.35285770893096924, -0.0809803307056427, -0.18469582498073578, -0.6639271974563599, -0.09058848023414612, -0.16584524512290955, 0.13471263647079468, 0.10486586391925812, 0.10177217423915863, -0.17200951278209686, -0.10643071681261063, 0.14429724216461182, 0.2994411289691925, 0.007100975140929222, 0.05529852956533432, 0.05151853710412979, -0.12115077674388885, -0.10237853229045868, -0.41787704825401306, -0.2243615686893463, -0.2537752091884613, 0.2543551027774811, 0.16773493587970734, -0.09822596609592438, -0.19271665811538696, 0.49283677339553833, -0.3301517963409424, 0.015229320153594017, -0.0172036811709404, -0.31844815611839294, 0.36839577555656433, 0.4220626950263977, -0.06958726048469543, -0.14490960538387299, 0.033717166632413864, -0.24321991205215454, -0.02391420677304268, 0.0918511375784874, -0.1472075879573822, 0.09335356950759888, -0.13830728828907013, 0.1208331435918808, -0.032451093196868896, 0.21976830065250397, 0.5915471315383911, -0.07738788425922394, 0.10234832763671875, -0.12450436502695084, -0.401309996843338, 0.22739213705062866, 0.23494496941566467, 0.5312868356704712, -0.1336188018321991, 0.45299574732780457, -0.000040840357542037964, 0.28857457637786865, 0.09171976149082184, -0.218324676156044, -0.031642697751522064, -0.20980772376060486, 0.178276926279068, -0.3310297429561615, 0.030183104798197746, -0.22010421752929688, -0.053097814321517944, -0.037752095609903336, -0.03109307587146759, 0.0038570761680603027, -0.21965865790843964, 0.27381986379623413, 0.006901726126670837, 0.09543318301439285, 0.13206396996974945, 0.004728315398097038, -0.18695351481437683, -0.014224737882614136, 0.21182940900325775, 0.27937421202659607, -0.2753638029098511, 0.03340741619467735, -0.10570424795150757, -0.24048735201358795, -0.06809187680482864, -0.02632632665336132, -0.4333123564720154, -0.0451972596347332, -0.2838219702243805, 0.38992953300476074, 0.19408658146858215, 0.5467475056648254, 0.1754099577665329, -0.5557863116264343, 0.13115893304347992, 0.2818836271762848, 0.24103711545467377, -0.3274644911289215, -0.4251195192337036, 0.047025416046381, 0.19856080412864685, -0.4720602333545685, -0.1163351833820343, 0.08499293029308319, -0.02655636891722679, 0.05304203927516937, 0.1417153775691986, -0.18423646688461304, 0.3784879148006439, 0.5383033752441406, 0.2780970633029938, -0.1354469507932663, -0.1748771220445633, -0.21134285628795624, -0.11544528603553772, 0.03835666924715042, 0.2666170299053192, 0.05068821460008621, 0.11903857439756393, 0.3347775936126709, -0.05885075032711029, -0.2179216891527176, -0.41065776348114014, -0.23200459778308868, 0.10789167881011963, 0.5795091986656189, 0.13095226883888245, 0.34341591596603394, -0.17275001108646393, 0.17808467149734497, 0.14624135196208954, 0.6778900623321533, -0.31601670384407043, -0.1287682056427002, 0.1859259307384491, -0.25854766368865967, 0.285241037607193, 0.35646381974220276, 0.10482192784547806, 0.42737555503845215, -0.09761329740285873, 0.16154217720031738, -0.12369560450315475, -0.3316580057144165, 0.34830209612846375, -0.036490991711616516, 0.1592896729707718, -0.14290280640125275, 0.5838425159454346, 0.05574002489447594, -0.0640687495470047, 0.5355707406997681, 0.38552939891815186, -0.04773300886154175, 0.17898735404014587, 0.22905951738357544, 1.011982798576355, 0.3987327218055725, -0.2096714973449707, 0.14939159154891968, -0.6083498001098633, 0.1385127753019333, 0.1710827797651291, 0.04153475910425186, -0.194903165102005, -0.29674798250198364, 0.10629299283027649, -0.03846615552902222, 0.07788337767124176, -0.03835024684667587, -0.07418978214263916, -0.02251484990119934, -0.41111069917678833, -0.060863520950078964, -0.09941351413726807, 0.03563766926527023, -0.20629818737506866, -0.10184191167354584, 0.07683060318231583, 0.014452025294303894, 0.15411095321178436, 0.10619969666004181, -0.025900211185216904, 0.2839577794075012, -0.3806116282939911, -0.5120565295219421, -0.09943972527980804, 0.015670180320739746, 0.10890261083841324, 0.057573799043893814, 0.010258132591843605, -0.408905029296875, 0.14617586135864258, -0.15496471524238586, -0.08747488260269165, 0.13368652760982513, 0.14386647939682007, 0.3423861265182495, 0.27247753739356995, 0.22392256557941437, 0.1456787884235382, 0.11362473666667938, 0.09489916265010834, 0.21529167890548706, -0.2369091510772705, 0.09165541082620621, -0.08565273880958557, -0.16439786553382874, -0.2890010476112366, 0.14091932773590088, -0.03279773145914078, -0.5026825666427612, -0.31771978735923767, 0.10729855298995972, 0.18245159089565277, -0.1735685020685196, 0.037003643810749054, -0.25705379247665405, 0.01212407648563385, 0.2574307322502136, 0.12590615451335907, -0.32054662704467773, -0.12505082786083221, 0.7137435078620911, 0.2430967092514038, 0.03705712407827377, 0.5456559658050537, -0.06203685700893402, -0.20057402551174164, 0.05785457044839859, -0.2416694164276123, 0.1941673308610916, -0.4723759591579437, 0.038765713572502136, -0.31998753547668457, 0.1019134372472763, 0.010021545924246311, 0.07819508016109467, 0.2685825824737549, 0.2327026128768921, -0.36258676648139954, 0.1678188294172287, -0.34294524788856506, 0.3639064431190491, 0.14606155455112457, 0.3142031133174896, -0.16752535104751587, -0.20098887383937836, -0.06017189472913742, 0.377665251493454, -0.1690475344657898, -0.28575196862220764, 0.0747605562210083, 0.22110602259635925, 0.12004818767309189, 0.26127251982688904, -0.234920471906662, -0.16873608529567719, 0.0742570087313652, 0.41326677799224854, 0.18928706645965576, -0.04258180409669876, -0.017738644033670425, 0.1136993020772934, 0.1303785890340805, 0.11595991998910904, -0.1941680759191513, -0.3900865912437439, -0.022003434598445892, -0.07339514046907425, -0.013169495388865471, 0.04381906986236572, -0.18926073610782623, -0.16861242055892944, 0.17481499910354614, -0.2541194260120392, 0.04607206583023071, 0.3447577655315399, -0.10995325446128845, 0.16764986515045166, -0.06502268463373184, 0.18593497574329376, 0.26550623774528503, 0.1638244092464447, -0.3548041880130768, 0.010114841163158417, -0.22490869462490082, -0.025297101587057114, 0.23449406027793884, -0.21913044154644012, 0.10441607236862183, -0.09087633341550827, 0.25511130690574646, 0.2529679536819458, -0.001013577333651483, -0.330030232667923, 0.006134639959782362, 0.09208228439092636, -0.3814069628715515, -0.028109261766076088, -0.303581565618515, 0.24321117997169495, 0.09741976857185364, 0.30862662196159363, 0.09312774240970612, 0.1900101900100708, -0.32612574100494385, 0.18380260467529297, 0.27008628845214844, -0.16108383238315582, -0.049795448780059814, 0.8157373070716858, 0.02742992714047432, -0.06185207888484001, 0.37060514092445374, 0.22247172892093658, 0.2035600244998932, 0.06096543371677399, 0.003350093960762024, 0.47962015867233276, 0.29297056794166565, 0.08171708881855011, -0.12375005334615707, 0.059961456805467606, 0.1983153223991394, 0.08280820399522781, 0.03653688728809357, -0.09298326820135117, 0.41183650493621826, -0.02371465414762497, 0.07256808876991272, -0.3503091633319855, -0.0844895988702774, 0.07565642893314362, -0.1859806776046753, 0.000715525820851326, -0.6281945109367371, -0.18379563093185425, -0.31108319759368896, -0.35947224497795105, -0.10477538406848907, -0.056747615337371826, 0.7304558753967285, -0.2808414697647095, 0.04078969731926918, -0.2583076059818268, -0.2098979353904724, 0.003149360418319702, 0.07612090557813644, -0.31283581256866455, 0.24757711589336395, 0.22724145650863647, -0.059145793318748474, 0.33231034874916077, 0.04565149545669556, 0.3254358172416687, 0.13283562660217285, 0.20161522924900055, -0.09294164180755615, 0.23717446625232697, -0.2348899394273758, 0.227657750248909, 0.3966602087020874, 0.129301518201828, -0.16329249739646912, 0.17528708279132843, 0.05343466252088547, -0.09524542093276978, 0.2036035656929016, 0.1524488478899002, 0.42002853751182556, -0.3563268482685089, 0.14305900037288666, -0.13084375858306885, -0.33670511841773987, -0.07973910868167877, -0.04703240841627121, -0.03716104105114937, 0.08621832728385925, 0.09805652499198914, -0.09103986620903015, 0.029217861592769623, -0.16156378388404846, 0.003369677811861038, -0.1287706047296524, 0.1948777586221695, 0.21440720558166504, -0.2921982705593109, 0.05507824942469597, -0.1844688206911087, -0.2614019513130188, -0.06716903299093246, -0.5196347832679749, -0.5024816393852234, 0.039168719202280045, 0.2446737438440323, 0.20134073495864868, -0.0925036370754242, 0.47901761531829834, 0.23017092049121857, 0.013291156850755215, 0.46271225810050964, -0.018811605870723724, -0.2972557544708252, -0.14636066555976868, 0.04593004658818245, 0.043148159980773926, -0.18462562561035156, 0.04131457209587097, 0.2230606973171234, -0.12429531663656235, -0.08509479463100433, -0.11415097862482071, 0.18727365136146545, 0.22041550278663635, 0.40747809410095215, 0.02212202548980713, 0.548942506313324, 0.11264012008905411, 0.2246779352426529, -0.2629406452178955, -0.34249937534332275, -0.24194008111953735, 0.2906058728694916, 0.09790289402008057, 0.38729187846183777, 0.05800639092922211, 0.01271766982972622, 0.12507696449756622, 0.1995154768228531, -0.33702927827835083, 0.1343449205160141, -0.23466970026493073, -0.0472327321767807, -0.1939319670200348, 0.07654201984405518, 0.12497533857822418, 0.05014269798994064, 0.2796939015388489, 0.3591468930244446, 0.16477613151073456, -0.4475571811199188, 0.4196082055568695, 0.02770574390888214, -0.2497129887342453, -0.08749966323375702, 0.021965503692626953, 0.3229506015777588, -0.1594499945640564, -0.21853014826774597, -0.1609858274459839, 0.3049097955226898, -0.10446576029062271, 0.3495860695838928, 0.13984417915344238, -0.08411887288093567, 0.13836729526519775, -0.22828464210033417, 0.5186852812767029, -0.2141585350036621, 0.1019182801246643, -0.20326285064220428, -0.3424544930458069 ]
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.028677238151431084, -0.7930667400360107, 0.03352869302034378, -0.08184908330440521, -0.004916239529848099, -0.10334938764572144, 0.23047776520252228, -0.0015908442437648773, 0.4284726679325104, 0.2395394742488861, -0.32405778765678406, -0.045957017689943314, 0.023622969165444374, 0.46990349888801575, 0.17681533098220825, -0.23480525612831116, 0.07965178787708282, 0.1120871976017952, -0.2576465308666229, -0.07382785528898239, -0.1641770750284195, -0.021458996459841728, -0.5562422275543213, -0.18724866211414337, 0.3530067205429077, -0.32563820481300354, -0.1314142644405365, -0.23179814219474792, -0.1461287885904312, 0.31552496552467346, 0.39147913455963135, 0.3159993588924408, 0.14500238001346588, 0.43599435687065125, -0.00012499609147198498, 0.2683013677597046, -0.26838618516921997, -0.1601199507713318, 0.12413643300533295, -0.14578543603420258, -0.13186269998550415, -0.03086228109896183, -0.08613074570894241, -0.29094797372817993, -0.1553766131401062, 0.02471611276268959, 0.08380531519651413, -0.3370780646800995, 0.6689305901527405, 0.11635417491197586, 0.0033910758793354034, 0.20230218768119812, -0.0828152596950531, 0.06870158016681671, -0.09687677770853043, 0.06435117870569229, 0.0033195707947015762, 0.09441711008548737, 0.08198349922895432, -0.019663268700242043, 0.06916039437055588, 0.3062364161014557, -0.020752718672156334, -0.04878963902592659, 0.050820596516132355, 0.0709678903222084, 0.02946292981505394, -0.42448315024375916, 0.09951817244291306, 0.36011257767677307, 0.1911824494600296, -0.33352047204971313, -0.5461008548736572, -0.04248600825667381, 0.05931809917092323, -0.02933133766055107, -0.23616540431976318, 0.15739767253398895, -0.10509945452213287, 0.20684079825878143, -0.48607712984085083, -0.11990730464458466, -0.04014138504862785, 0.0794253796339035, 0.104041188955307, -0.08836430311203003, -0.31363192200660706, 0.30483365058898926, 0.08571040630340576, 0.0686640664935112, -0.15801945328712463, -0.1046704649925232, 0.15476004779338837, 0.22565947473049164, -0.6143543720245361, -0.2198619246482849, -0.25620436668395996, -0.018030837178230286, 0.3166291117668152, 0.3536270260810852, 0.5462893843650818, -0.05488532781600952, -0.08120764046907425, 0.1295621395111084, 0.08675763010978699, 0.5366972088813782, -0.08140026777982712, -0.24189889430999756, -0.012094303965568542, 0.13488684594631195, 0.03227519616484642, -0.019190803170204163, 0.31653323769569397, -0.07558686286211014, -0.3641890585422516, 0.15353065729141235, 0.3737844228744507, -0.07682129740715027, -0.32763785123825073, -0.20549215376377106, -0.35536885261535645, -0.11003033816814423, 0.013367587700486183, 0.1497778594493866, -0.17510338127613068, 0.032423581928014755, 0.18292321264743805, 0.058238402009010315, -0.2670661509037018, -0.06485845148563385, -0.15654617547988892, 0.23465122282505035, -0.16233424842357635, 0.030316824093461037, -0.0835500955581665, -0.1439889520406723, 0.014387963339686394, 0.4878038763999939, -0.013280361890792847, -0.049460504204034805, 0.22683298587799072, -0.1175183653831482, 0.3311547338962555, -0.012913983315229416, 0.17024338245391846, -0.10793260484933853, 0.13207945227622986, 0.04810541123151779, -0.04732365533709526, -0.02010968327522278, -0.11246060580015182, -0.25196877121925354, 0.07918110489845276, -0.034201446920633316, -0.2808183431625366, 0.04159807413816452, -0.22715628147125244, 0.342557430267334, -0.31508368253707886, 0.33202794194221497, 0.4480589032173157, 0.3958914279937744, -0.09266121685504913, -0.08121713995933533, 0.3662149906158447, 0.013523116707801819, -0.02993069216609001, -0.2975441813468933, 0.3306932747364044, -0.020619411021471024, 0.28461775183677673, 0.2693358063697815, -0.07723090797662735, 0.25605693459510803, -0.2479434609413147, -0.1416987180709839, 0.21709051728248596, -0.15508709847927094, -0.42266520857810974, 0.2669493556022644, -0.11168166995048523, 0.30419042706489563, -0.029344044625759125, 0.045369453728199005, -0.060651153326034546, 0.16916689276695251, -0.021125368773937225, 0.23455354571342468, -0.09760808944702148, -0.09169188886880875, -0.0077353306114673615, -0.15542137622833252, 0.36784809827804565, -0.12374924123287201, -0.11239446699619293, 0.337372362613678, 0.11415520310401917, -0.031168866902589798, 0.24005985260009766, -0.4657915532588959, 0.2133105844259262, 0.2559937834739685, 0.23005107045173645, 0.14415864646434784, 0.2475075125694275, -0.16223108768463135, -0.396697998046875, 0.11275885254144669, -0.3874378204345703, 0.10978575795888901, 0.13575223088264465, -0.31871849298477173, -0.11473815143108368, -0.20832866430282593, -0.11587527394294739, -0.027550388127565384, -0.09130647778511047, -0.07691614329814911, 0.4252490699291229, 0.014156080782413483, -0.40405791997909546, 0.28840896487236023, -0.12111914157867432, 0.11166758835315704, -0.4417365789413452, 0.05064326524734497, 0.28409385681152344, 0.0014724484644830227, -0.031242888420820236, 0.16961544752120972, -0.01431700587272644, -0.38512879610061646, 0.09389954805374146, 0.31675878167152405, -0.27169162034988403, -0.005070611834526062, -0.07308904826641083, 0.07145986706018448, 0.06497331708669662, -0.10723096132278442, -0.1467597484588623, 0.116151362657547, 0.07386307418346405, -0.06350871175527573, -0.11466031521558762, 0.7550526261329651, -0.06315070390701294, 0.15738822519779205, 0.10186992585659027, -0.04227248579263687, -0.1553645133972168, -0.25586453080177307, -0.1365821212530136, 0.2526305913925171, 0.18017475306987762, -0.20430351793766022, 0.25634315609931946, -0.13581033051013947, -0.2275710105895996, -0.29075443744659424, 0.27382487058639526, 0.007772311568260193, 0.30271849036216736, 0.1412794291973114, 0.06360681354999542, 0.1619970202445984, 0.016804849728941917, -0.16538554430007935, 0.35423678159713745, -0.030022822320461273, 0.22754034399986267, 0.33083978295326233, 0.28828686475753784, 0.14961545169353485, 0.031107619404792786, -0.2790496349334717, -0.040878862142562866, -0.0289255753159523, 0.017188942059874535, 0.08656656742095947, -0.33600807189941406, -0.011224806308746338, 0.08991552144289017, 0.1401434987783432, -0.02381884679198265, -0.07931613177061081, -0.12068034708499908, -0.15897542238235474, -0.19886146485805511, 0.03082997351884842, -0.22426989674568176, -0.028089290484786034, -0.0675443783402443, 0.09571897983551025, 0.08624288439750671, 0.4852782189846039, 0.3077240288257599, 0.4453638195991516, -0.049504607915878296, 0.39216580986976624, -0.08353094756603241, 0.040827397257089615, 0.09934024512767792, -0.04597853124141693, -0.12552429735660553, -0.2114320546388626, 0.20400911569595337, -0.0066480692476034164, -0.0031047584488987923, -0.5141182541847229, -0.2244875729084015, 0.23027952015399933, 0.0412573516368866, -0.2499297857284546, 0.3766581416130066, 0.02386428415775299, -0.5575550198554993, -0.1051274910569191, -0.029765300452709198, -0.09150562435388565, -0.5620678663253784, 0.2115030437707901, -0.17575077712535858, 0.14433439075946808, -0.2802775502204895, -0.33912619948387146, -0.07254650443792343, -0.2252957969903946, 0.9792706370353699, -0.36120033264160156, 0.04112151265144348, 0.1631678193807602, -0.22864307463169098, 0.06319079548120499, -0.02093958854675293, 0.11448825895786285, -0.09629512578248978, -0.5435050129890442, -0.17172060906887054, 0.001852081622928381, -0.11627225577831268, -0.1359865963459015, -0.05560752749443054, 0.07786178588867188, 0.5772349238395691, 0.005335427820682526, -0.19057030975818634, -0.395043283700943, -0.2697647213935852, -0.08623602986335754, 0.41260090470314026, 0.2028825581073761, -0.3294506371021271, 0.10593563318252563, -0.060616686940193176, -0.049835290759801865, 0.2333623170852661, 0.014945752918720245, -0.09655342251062393, 0.21602609753608704, -0.02818162739276886, 0.36223843693733215, 0.33417564630508423, 0.3676951825618744, -0.10231795907020569, 0.03321626037359238, -0.27088847756385803, -0.09478121995925903, 0.10315079987049103, -0.3197564482688904, 0.09537919610738754, 0.12446863204240799, 0.2572007179260254, 0.08730601519346237, -0.20405054092407227, 0.2834174335002899, -0.10262367129325867, -0.08830104768276215, -0.30750808119773865, -0.3365745544433594, 0.05346778780221939, -0.21007844805717468, 0.232092022895813, -0.14465786516666412, -0.24375686049461365, -0.036358434706926346, -0.10276930034160614, 0.2560215890407562, 0.22576995193958282, 0.1445205807685852, 0.10723632574081421, -0.4300122559070587, -0.2547134757041931, -0.44778722524642944, 0.6707226634025574, -0.08589117228984833, 0.23437778651714325, 0.06058816239237785, -0.10173032432794571, 0.10976152867078781, 0.06081822142004967, 1.0629655122756958, -0.1269092559814453, -0.11508013308048248, -0.4581473469734192, -0.5178854465484619, -0.35547924041748047, 0.22336603701114655, -0.2517984211444855, 0.5846661925315857, -0.22076494991779327, 0.49855896830558777, -0.3260098099708557, -0.2020832747220993, 0.3566172420978546, -0.02168743498623371, -0.11135224252939224, -0.11268852651119232, -0.05179039016366005, -0.5832822322845459, -0.1669633388519287, -0.00963418185710907, 0.13984869420528412, 0.10572823882102966, 0.07367507368326187, 0.08253079652786255, -0.3450145125389099, 0.2281895875930786, 0.3295398950576782, -0.12239496409893036, -0.053104646503925323, 0.23267154395580292, -0.11023418605327606, 0.1479375958442688, 0.30242210626602173, -0.15868857502937317, 0.13219746947288513, -0.0909588485956192, -0.4877896308898926, -0.2094702422618866, 0.19724887609481812, 0.4393361210823059, -0.006740644574165344, 0.1547268033027649, 0.5029058456420898, 0.3022933304309845, 0.2137039303779602, -0.18648655712604523, 0.07949204742908478, 0.06670384854078293, 0.4177776575088501, -0.2173389345407486, -0.368679016828537, 0.26209500432014465, 0.2697605490684509, -0.18369060754776, 0.3210771083831787, 0.35973119735717773, -0.1764512062072754, 0.062317557632923126, -0.03368700295686722, 0.9954259395599365, -0.23927666246891022, 0.03274204209446907, 0.09335441887378693, 0.09930123388767242, 0.5693774223327637, -0.3401602506637573, 0.1846490204334259, -0.12604500353336334, -0.48997679352760315, -0.13571643829345703, -0.07991938292980194, 0.09682880342006683, 0.19369900226593018, -0.3488979637622833, 0.38289737701416016, 0.28538620471954346, -0.08257748186588287, -0.06413685530424118, -0.028024723753333092, -0.1656278818845749, -0.10713332891464233, -0.14671657979488373, -0.10796815901994705, 0.022056441754102707, 0.5606479644775391, 0.005652762949466705, -0.018583307042717934, 0.23288485407829285, -0.015953678637742996, -0.022553615272045135, -0.19884079694747925, -0.5518343448638916, 0.2577762007713318, 0.24687106907367706, -0.0929160788655281, -0.0591978095471859, 0.6065939664840698, 0.5822292566299438, -0.1418754905462265, 0.04194048419594765, -0.15342001616954803, 0.06948895752429962, 0.000619121827185154, -0.2725735008716583, -0.06096549332141876, 0.16314803063869476, 0.04065284878015518, -0.2638314366340637, 0.0023187771439552307, 0.09611714631319046, 0.12852317094802856, -0.06290140002965927, 0.0654473528265953, -0.02980978786945343, -0.3008274734020233, -0.02184002473950386, 0.11219872534275055, -0.13069723546504974, 0.10831882059574127, -0.08720332384109497, -0.0722612738609314, -0.5252494812011719, 0.19371356070041656, -0.1698552370071411, -0.4661315381526947, 0.009429577738046646, 0.3949129283428192, 0.25239259004592896, -0.10133838653564453, 0.354148805141449, 0.010543789714574814, 0.12933996319770813, -0.07488317787647247, -0.2623840272426605, 0.3379653990268707, -0.42438849806785583, 0.4755452871322632, -0.3102806806564331, 0.29229551553726196, 0.07429558038711548, 0.1960972249507904, 0.10801093280315399, 0.20438554883003235, -0.2514820098876953, -0.2861180901527405, -0.1518702656030655, 0.09578580409288406, 0.2197878360748291, 0.1917155534029007, 0.07586699724197388, 0.2850635051727295, 0.10132165998220444, -0.14316877722740173, -0.16647523641586304, 0.2582516372203827, -0.29096758365631104, 0.25111323595046997, 0.1690477579832077, -0.026635318994522095, 0.19018733501434326, 0.23326604068279266, -0.05089240521192551, 0.2125866860151291, -0.12344866991043091, -0.08586480468511581, -0.03352357819676399, 0.16546332836151123, -0.07317552715539932, 0.012054475024342537, 0.22067469358444214, 0.27746808528900146, 0.0016317889094352722, -0.11564576625823975, 0.6620076298713684, 0.3135230839252472, 0.12423056364059448, 0.4530091881752014, -0.039235036820173264, -0.030065402388572693, -0.43027663230895996, -0.2596960663795471, 0.20562225580215454, 0.012927591800689697, -0.04194819927215576, 0.07905960083007812, -0.05808095261454582, -0.04847602918744087, -0.0968903973698616, -0.03157370537519455, 0.5867388844490051, -0.24566766619682312, -0.027760811150074005, 0.10221575200557709, -0.009898234158754349, -0.36023423075675964, 0.38589799404144287, -0.17299970984458923, -0.20828579366207123, 0.06136336922645569, -0.0469936728477478, 0.014611363410949707, -0.09978240728378296, 0.2281920611858368, 0.303363174200058, -0.28372177481651306, 0.024739567190408707, 0.3674827218055725, -0.11263483762741089, 0.2506150007247925, -0.1545870006084442, -0.23122721910476685, -0.01442678552120924, -0.1954030692577362, 0.10381342470645905, 0.45073050260543823, -0.04862300306558609, 0.07287806272506714, -0.07900036126375198, 0.11524485051631927, 0.33430057764053345, -0.08376987278461456, -0.18270251154899597, 0.47006821632385254, -0.2861004173755646, 0.2373531609773636, 0.3596653938293457, -0.4437972605228424, 0.13416345417499542, 0.4912837743759155, 0.010559611022472382, 0.4207005500793457, -0.07134652137756348, 0.5603381991386414, -0.014985200949013233, -0.28979870676994324, 0.1662006825208664, 0.46972665190696716, -0.1804600954055786, -0.1805511713027954, -0.14198358356952667, -0.14821788668632507, -0.14955660700798035, 0.0911206603050232, -0.06438226997852325, -0.014467410743236542, 0.3167574405670166, 0.04424107074737549, 0.11895443499088287, 0.0375942625105381, -0.1458500325679779, 0.3263545334339142, 0.3060723841190338, -0.0280868299305439, -0.19089514017105103, 0.3235078752040863, -0.2239842712879181, 0.06672178953886032, 0.6331106424331665, -0.04577677324414253, -0.015191033482551575, -0.33154287934303284, 0.6930217742919922, 0.2356727123260498, -0.12774930894374847, 0.048152387142181396, -0.02933661639690399, 0.0372455008327961, 0.015401232987642288, -0.0318475216627121, -0.00163266621530056, -0.028410330414772034, 0.19668814539909363, -0.11643032729625702, 0.1457049548625946, -0.4811043441295624, 0.07325288653373718, -0.05000285059213638, -0.07421024143695831, -0.21541070938110352, 0.22005397081375122, -0.22817334532737732, -0.366774320602417, 0.11724258959293365, -0.16666069626808167, 0.07502239942550659, 0.1193055585026741, -0.027011822909116745, -0.18345524370670319, 0.296208918094635, 0.33217546343803406, 0.40248754620552063, -0.10929027944803238, -0.18975472450256348, -0.07695817947387695, 0.038062237203121185, 0.20553003251552582, -0.23584531247615814, 0.32912641763687134, 0.06149227172136307, -0.02846657484769821, 0.022851575165987015, -0.043722063302993774, -0.17729325592517853, -0.25169625878334045, 0.11588966846466064, -0.34341946244239807, -0.20813101530075073, -0.08879129588603973, 0.23093421757221222, 0.2883773148059845, -0.33656173944473267, 0.08358190953731537, 0.33039021492004395, -0.21508502960205078, -0.06392717361450195, 0.440000057220459, -0.006996694952249527, 0.022878607735037804, 0.021018262952566147, 0.19094209372997284, -0.1019739955663681, -0.11593755334615707, -0.07354139536619186, 0.4731520116329193, 0.12084587663412094, -0.33821770548820496, 0.34094318747520447, -0.08893877267837524, 0.10219775140285492, -0.25329840183258057, -0.34996354579925537, -0.04326481744647026, 0.19768907129764557, 0.5831397771835327, -0.43779072165489197, -0.24458752572536469, 0.13924691081047058, 0.03417138010263443, -0.04715879634022713, 0.3726726770401001, 0.8478615880012512, -0.1141432672739029, -0.09203831106424332, -0.17281702160835266, -0.06305847316980362, 0.5526183843612671, -0.23914127051830292, -0.19330942630767822, 0.07688292115926743, 0.22885361313819885, -0.13468408584594727, -0.4252268970012665, -0.6996853351593018, 0.138109028339386, 0.2961442172527313, -0.08485633134841919, -0.10057806968688965, 0.3815334737300873, -0.05382147803902626, -0.16551540791988373, 0.0913759171962738, 0.07653947919607162, 0.35956478118896484, -0.3701275587081909, 0.25567588210105896, -0.32000505924224854 ]
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.04249822720885277, -0.7478790879249573, 0.044197503477334976, -0.0638008862733841, 0.0602152980864048, -0.07411988079547882, 0.21649202704429626, 0.023403717204928398, 0.4041273891925812, 0.23283270001411438, -0.3757917881011963, -0.03094678930938244, 0.008743836544454098, 0.4603344798088074, 0.22178831696510315, -0.23810091614723206, 0.049312420189380646, 0.09991773962974548, -0.21668943762779236, -0.06928858160972595, -0.07732273638248444, -0.011772667989134789, -0.5677037835121155, -0.16497255861759186, 0.3511190414428711, -0.2511506676673889, -0.1151805967092514, -0.2309320867061615, -0.12512658536434174, 0.28479382395744324, 0.47931545972824097, 0.24269719421863556, 0.16693933308124542, 0.44915395975112915, -0.00012562921619974077, 0.27733510732650757, -0.2205357700586319, -0.1515984833240509, 0.15759031474590302, -0.15104861557483673, -0.18505018949508667, -0.03841831907629967, -0.05398319661617279, -0.30683594942092896, -0.1764233410358429, -0.01845867559313774, 0.06310608237981796, -0.33450987935066223, 0.6362307667732239, 0.17196409404277802, 0.0013318508863449097, 0.2099074125289917, -0.07986385375261307, 0.08208486437797546, -0.10220440477132797, 0.03674391657114029, -0.02563593164086342, 0.11460460722446442, 0.08465255051851273, 0.04552484303712845, 0.06812843680381775, 0.23449555039405823, -0.056463152170181274, -0.02992914617061615, 0.03532292693853378, 0.10956937074661255, -0.032894738018512726, -0.3611132800579071, 0.13644039630889893, 0.39373648166656494, 0.21836119890213013, -0.3737195134162903, -0.5333194136619568, -0.026811163872480392, 0.07566234469413757, -0.06859225034713745, -0.20590990781784058, 0.24829886853694916, -0.09614208340644836, 0.23918572068214417, -0.449106901884079, -0.1502821147441864, -0.08606908470392227, 0.013712629675865173, 0.057409174740314484, -0.10048502683639526, -0.3021976351737976, 0.2693093717098236, 0.05768356844782829, 0.08200621604919434, -0.09206905961036682, -0.07700935006141663, 0.10636527836322784, 0.15840768814086914, -0.6728435158729553, -0.24407650530338287, -0.24140912294387817, 0.023915935307741165, 0.2683839201927185, 0.36676496267318726, 0.5453341603279114, -0.052471645176410675, -0.02625836804509163, 0.07172434777021408, 0.05092335119843483, 0.550459623336792, -0.09274891763925552, -0.2812037467956543, 0.03732190281152725, 0.1110849604010582, -0.013882728293538094, -0.05106654763221741, 0.3221219778060913, -0.05302448198199272, -0.3440648913383484, 0.14720487594604492, 0.39688390493392944, -0.10287053883075714, -0.3556041419506073, -0.17965535819530487, -0.3000114858150482, -0.1298767477273941, 0.06736160814762115, 0.12277086079120636, -0.1877586990594864, 0.016535192728042603, 0.1142912209033966, 0.041676975786685944, -0.2851558327674866, -0.07815231382846832, -0.1623557060956955, 0.29753369092941284, -0.15616145730018616, 0.02505035325884819, -0.028483401983976364, -0.24228492379188538, 0.010654488578438759, 0.48781633377075195, -0.024936214089393616, -0.0006235726177692413, 0.22138527035713196, -0.19168336689472198, 0.2998877763748169, -0.022122059017419815, 0.12743321061134338, -0.16723857820034027, 0.11758852005004883, 0.056334517896175385, -0.03607362136244774, 0.011005714535713196, -0.07500461488962173, -0.2657647132873535, 0.038136135786771774, -0.041655004024505615, -0.3246120810508728, 0.003248833119869232, -0.17932188510894775, 0.26971933245658875, -0.3805997967720032, 0.43138617277145386, 0.4621525704860687, 0.3615436553955078, -0.04201877862215042, -0.06874720752239227, 0.41440311074256897, -0.07492361962795258, -0.06794726103544235, -0.3054029941558838, 0.3379557132720947, -0.042189765721559525, 0.32595402002334595, 0.2724406123161316, -0.0680558830499649, 0.3023759722709656, -0.23110339045524597, -0.16209962964057922, 0.23518699407577515, -0.17557716369628906, -0.4458525478839874, 0.18760892748832703, -0.0978449285030365, 0.25074243545532227, -0.04810858517885208, 0.07291758805513382, -0.0773574486374855, 0.2221730351448059, -0.04416610300540924, 0.25551551580429077, -0.048725955188274384, -0.13832813501358032, -0.015506427735090256, -0.1830751597881317, 0.34811294078826904, -0.08249515295028687, -0.09418551623821259, 0.3812468945980072, 0.12711501121520996, -0.021774515509605408, 0.22187036275863647, -0.45532605051994324, 0.1601548194885254, 0.28631269931793213, 0.22747673094272614, 0.13335146009922028, 0.23195700347423553, -0.18239957094192505, -0.32668831944465637, 0.14169391989707947, -0.3598381280899048, 0.08892755210399628, 0.11572498083114624, -0.3049004077911377, -0.13051429390907288, -0.23496992886066437, -0.10132379829883575, 0.005927562713623047, -0.10831082612276077, -0.0970226377248764, 0.4688795208930969, 0.05136343464255333, -0.4691462218761444, 0.3537311851978302, -0.1237805187702179, 0.12769176065921783, -0.4118322730064392, 0.04136890172958374, 0.29548779129981995, -0.016928203403949738, -0.013537345454096794, 0.2284952700138092, -0.01551508903503418, -0.3583827614784241, 0.08197269588708878, 0.3086032569408417, -0.3341926336288452, 0.03361659497022629, -0.056882984936237335, 0.04627075791358948, 0.03544233366847038, -0.1527615636587143, -0.17863954603672028, 0.05358273163437843, 0.08922173827886581, -0.011261478066444397, -0.05504801124334335, 0.747779905796051, -0.09936220943927765, 0.1371471881866455, 0.14002138376235962, -0.05691163241863251, -0.17307411134243011, -0.3248525857925415, -0.12027251720428467, 0.27660998702049255, 0.22286243736743927, -0.2027982622385025, 0.2167757898569107, -0.14631295204162598, -0.2560456693172455, -0.3367418050765991, 0.31057870388031006, 0.0451074056327343, 0.3367253243923187, 0.13362929224967957, 0.04170440882444382, 0.20175263285636902, 0.012655314058065414, -0.14682979881763458, 0.42280030250549316, -0.030949946492910385, 0.25676485896110535, 0.37955382466316223, 0.31691038608551025, 0.1312442272901535, 0.08417970687150955, -0.2490984946489334, -0.07978136092424393, -0.014539122581481934, 0.05577181279659271, 0.06994856894016266, -0.3710452616214752, -0.004146561026573181, 0.07006175816059113, 0.1621101200580597, 0.024140480905771255, -0.10143770277500153, -0.17986108362674713, -0.20023566484451294, -0.20287731289863586, 0.009895982220768929, -0.1672869324684143, -0.013286169618368149, -0.09067018330097198, 0.0028242170810699463, 0.14917218685150146, 0.4050222337245941, 0.22132553160190582, 0.4259081482887268, -0.09626100957393646, 0.38107016682624817, -0.11735180020332336, 0.034156810492277145, 0.09191763401031494, -0.039295442402362823, -0.13898272812366486, -0.18747028708457947, 0.2197648137807846, 0.01473248191177845, 0.03984246402978897, -0.5104535222053528, -0.16326037049293518, 0.2542133331298828, 0.042633239179849625, -0.206179678440094, 0.355416476726532, 0.05679209157824516, -0.5357351303100586, -0.08460484445095062, -0.028251809999346733, -0.08852610737085342, -0.5490330457687378, 0.19301094114780426, -0.15962707996368408, 0.16915808618068695, -0.3059813976287842, -0.34062695503234863, -0.08382680267095566, -0.216371551156044, 0.9462255835533142, -0.31642764806747437, 0.020825114101171494, 0.15761922299861908, -0.31401506066322327, 0.12818032503128052, -0.0236972589045763, 0.15454579889774323, -0.053615666925907135, -0.572329044342041, -0.16338810324668884, 0.02671355940401554, -0.13614048063755035, -0.12011866271495819, -0.01984005980193615, 0.13752715289592743, 0.5128777623176575, -0.043178122490644455, -0.12748177349567413, -0.48696374893188477, -0.2536952495574951, -0.09113089740276337, 0.4112832546234131, 0.12517036497592926, -0.36627256870269775, 0.10884825885295868, -0.018460284918546677, -0.016201604157686234, 0.2133466750383377, 0.00405304878950119, -0.09666337817907333, 0.25947436690330505, -0.04806693643331528, 0.3650166988372803, 0.3248700201511383, 0.3047578036785126, -0.10519257187843323, 0.04025619477033615, -0.29728323221206665, -0.08659988641738892, 0.06798024475574493, -0.34972628951072693, 0.12378575652837753, 0.159706711769104, 0.3275427222251892, 0.11144053936004639, -0.1926477551460266, 0.341234028339386, -0.1267319768667221, -0.094503253698349, -0.26972076296806335, -0.31936970353126526, -0.05572224408388138, -0.15401743352413177, 0.2477356493473053, -0.1236870139837265, -0.19045567512512207, 0.0278501994907856, -0.16542983055114746, 0.2789088189601898, 0.24062182009220123, 0.14105457067489624, 0.09667115658521652, -0.3829196095466614, -0.3035741448402405, -0.4883568286895752, 0.645458996295929, -0.13980722427368164, 0.26183053851127625, 0.06658698618412018, -0.1270614117383957, 0.13068611919879913, 0.0341155044734478, 1.037057638168335, -0.03248646855354309, -0.1396750509738922, -0.4750314950942993, -0.4710184633731842, -0.31399697065353394, 0.18416039645671844, -0.2221706062555313, 0.5769689679145813, -0.23693887889385223, 0.37678784132003784, -0.2941346764564514, -0.22231900691986084, 0.3668457567691803, -0.036461666226387024, -0.07916407287120819, -0.10182490199804306, -0.05390103906393051, -0.6249426007270813, -0.09153982251882553, -0.01801292598247528, 0.06560288369655609, 0.15498629212379456, 0.04119599610567093, 0.13250739872455597, -0.37460312247276306, 0.1941811442375183, 0.3676525950431824, -0.13001316785812378, -0.0035209273919463158, 0.14917832612991333, -0.10015188157558441, 0.10318702459335327, 0.32385170459747314, -0.22972801327705383, 0.1300443559885025, -0.032158877700567245, -0.46818244457244873, -0.213358074426651, 0.15700431168079376, 0.4705611765384674, -0.08564603328704834, 0.10721880197525024, 0.6108524203300476, 0.23821505904197693, 0.14363756775856018, -0.19656524062156677, 0.06708002835512161, 0.06441158056259155, 0.43008607625961304, -0.18844111263751984, -0.3638087809085846, 0.26249873638153076, 0.30626222491264343, -0.1562134027481079, 0.2497626543045044, 0.3646603226661682, -0.20328626036643982, -0.008418736979365349, -0.05419296771287918, 0.9401319026947021, -0.21210448443889618, 0.010436367243528366, 0.054609812796115875, 0.07881416380405426, 0.6255313754081726, -0.270515501499176, 0.25176018476486206, -0.15836496651172638, -0.5409917831420898, -0.15820056200027466, -0.13589712977409363, 0.16044411063194275, 0.10709123313426971, -0.32827410101890564, 0.3783899247646332, 0.283507764339447, -0.09566794335842133, -0.03403709828853607, -0.0009837150573730469, -0.1824062168598175, -0.08069266378879547, -0.1565549522638321, -0.11366631835699081, -0.03270188719034195, 0.5507892966270447, 0.021355174481868744, 0.016727279871702194, 0.21698400378227234, 0.04695029556751251, -0.040952522307634354, -0.15430951118469238, -0.4644545018672943, 0.26871824264526367, 0.30736061930656433, -0.14659780263900757, 0.013155877590179443, 0.614906370639801, 0.6690641641616821, -0.1112762987613678, -0.0006841924041509628, -0.12051218748092651, 0.051600709557533264, 0.017015565186738968, -0.21835805475711823, -0.05210815742611885, 0.13051146268844604, 0.0501956045627594, -0.26501965522766113, 0.02330154925584793, 0.15526777505874634, 0.11651526391506195, -0.0890510082244873, 0.09023624658584595, 0.00557747483253479, -0.2745070159435272, -0.04049929603934288, 0.10447586327791214, -0.1179061233997345, 0.1013723611831665, -0.08721375465393066, -0.06883998215198517, -0.4957571029663086, 0.17893338203430176, -0.16136877238750458, -0.4757240116596222, -0.006102636456489563, 0.3508864641189575, 0.29417455196380615, -0.064323790371418, 0.40020883083343506, 0.036697711795568466, 0.1323280781507492, -0.06678005307912827, -0.26620468497276306, 0.26263588666915894, -0.38815128803253174, 0.47408103942871094, -0.29399368166923523, 0.3173547387123108, 0.10677816718816757, 0.11311638355255127, 0.01621129922568798, 0.12882603704929352, -0.2889347970485687, -0.2663589119911194, -0.1245187520980835, 0.07646480947732925, 0.17953957617282867, 0.1779046505689621, 0.07501155883073807, 0.27665212750434875, 0.04762633144855499, -0.2402651011943817, -0.1558551788330078, 0.2842414081096649, -0.2833646833896637, 0.2184409350156784, 0.1326667070388794, -0.015770740807056427, 0.16307367384433746, 0.21652144193649292, -0.05670107901096344, 0.22617152333259583, -0.054717086255550385, -0.08684118092060089, -0.017289619892835617, 0.16161230206489563, -0.1124468669295311, 0.008479056879878044, 0.16746732592582703, 0.2956518530845642, -0.03306993097066879, -0.07341007143259048, 0.6825500726699829, 0.2951771914958954, 0.1258968859910965, 0.47614026069641113, -0.036271121352910995, -0.046283379197120667, -0.45823758840560913, -0.3013269305229187, 0.1785135567188263, 0.03143884241580963, -0.007261660415679216, 0.10813774913549423, -0.06150279939174652, -0.016469240188598633, -0.14219112694263458, -0.03762424737215042, 0.5748146772384644, -0.27408844232559204, -0.029552437365055084, 0.060841821134090424, -0.03963104262948036, -0.39059051871299744, 0.4094206988811493, -0.17401182651519775, -0.20188561081886292, 0.020180655643343925, -0.02062831073999405, -0.005349734798073769, -0.10283379256725311, 0.21947184205055237, 0.29272323846817017, -0.27154943346977234, 0.025117505341768265, 0.3670112192630768, -0.1269931048154831, 0.29067766666412354, -0.21441470086574554, -0.24525728821754456, 0.04693832993507385, -0.19407512247562408, 0.12045307457447052, 0.4268238842487335, 0.04513177648186684, 0.025244057178497314, -0.04016072303056717, 0.0988040566444397, 0.29513344168663025, -0.016015559434890747, -0.18376484513282776, 0.4372761845588684, -0.22560670971870422, 0.2472945749759674, 0.3573016822338104, -0.42443469166755676, 0.11445370316505432, 0.45162233710289, -0.004188470542430878, 0.4051046669483185, -0.08188897371292114, 0.5455579161643982, -0.000679350458085537, -0.25017866492271423, 0.1463155597448349, 0.4758296608924866, -0.17054691910743713, -0.19440604746341705, -0.09802702069282532, -0.11434412747621536, -0.09354287385940552, 0.11518622934818268, -0.05331069603562355, 0.025072317570447922, 0.17840507626533508, 0.06365762650966644, 0.10812291502952576, 0.05062863975763321, -0.03298445791006088, 0.3312448263168335, 0.24969103932380676, 0.019304979592561722, -0.19966356456279755, 0.31074821949005127, -0.1767766922712326, 0.04559538885951042, 0.6782316565513611, -0.07002903521060944, -0.005177639424800873, -0.33571764826774597, 0.6726942658424377, 0.2287704348564148, -0.1550966501235962, 0.04357858747243881, 0.012539449147880077, 0.04219212755560875, 0.06605157256126404, -0.030256278812885284, -0.0014338139444589615, 0.010144899599254131, 0.18193472921848297, -0.0780000239610672, 0.1584954857826233, -0.5389947891235352, 0.1471683233976364, 0.006196990609169006, -0.09306424111127853, -0.24712568521499634, 0.22123900055885315, -0.2751745283603668, -0.40470871329307556, 0.13316810131072998, -0.1408246010541916, 0.0647849440574646, 0.11521349102258682, -0.030660897493362427, -0.20475490391254425, 0.2973884046077728, 0.35631459951400757, 0.4698472023010254, -0.07877104729413986, -0.1468900740146637, -0.08651898801326752, -0.014945052564144135, 0.2726438045501709, -0.23905348777770996, 0.3346012532711029, 0.037534527480602264, -0.08500070124864578, -0.03041917085647583, -0.08277338743209839, -0.13913412392139435, -0.2084827721118927, 0.021533876657485962, -0.3523416817188263, -0.20751461386680603, -0.056042902171611786, 0.203980952501297, 0.19302770495414734, -0.293678343296051, 0.13066832721233368, 0.30465126037597656, -0.22055089473724365, -0.03469635918736458, 0.41230469942092896, 0.0229642353951931, 0.020555656403303146, -0.03870055079460144, 0.11136352270841599, -0.09044161438941956, -0.07744449377059937, -0.041463453322649, 0.4800563454627991, 0.09696672856807709, -0.3031172454357147, 0.3314427435398102, -0.11998958885669708, 0.10949978232383728, -0.2138834297657013, -0.3864000737667084, -0.04667559638619423, 0.22702127695083618, 0.5675138235092163, -0.4472629427909851, -0.2105756551027298, 0.11870922893285751, 0.02140802890062332, -0.03361818566918373, 0.35698243975639343, 0.8135995268821716, -0.12699440121650696, -0.11030948907136917, -0.22179703414440155, -0.06453212350606918, 0.5682211518287659, -0.2965449094772339, -0.1726720780134201, 0.0495356060564518, 0.22863908112049103, -0.11545632034540176, -0.39573293924331665, -0.6892155408859253, 0.12225129455327988, 0.30597010254859924, -0.10446871072053909, -0.12298576533794403, 0.40517982840538025, -0.028127435594797134, -0.08969847857952118, 0.11163869500160217, 0.03322596102952957, 0.38589343428611755, -0.3727828860282898, 0.2502816915512085, -0.24131932854652405 ]
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.07538141310214996, -0.7735244035720825, 0.02615177258849144, -0.06931771337985992, 0.02289414405822754, -0.048268042504787445, 0.3034118413925171, 0.04089359939098358, 0.3975755274295807, 0.23980191349983215, -0.36508652567863464, -0.06458865851163864, 0.02643696218729019, 0.41190963983535767, 0.17975939810276031, -0.20430538058280945, 0.06330423802137375, 0.09900912642478943, -0.23755842447280884, -0.05853791907429695, -0.13624528050422668, 0.0407441109418869, -0.5339215397834778, -0.1767408698797226, 0.33538818359375, -0.29739078879356384, -0.1161586344242096, -0.2635383605957031, -0.10344752669334412, 0.30520668625831604, 0.49217045307159424, 0.30932965874671936, 0.2077571153640747, 0.485683411359787, -0.00012465217150747776, 0.3010815382003784, -0.2492474466562271, -0.15269172191619873, 0.11457772552967072, -0.0873677134513855, -0.13085652887821198, -0.08828282356262207, -0.06933745741844177, -0.3121815323829651, -0.1677766740322113, -0.01351598184555769, 0.08616916090250015, -0.33387938141822815, 0.619963526725769, 0.10766228288412094, 0.0035846270620822906, 0.32799360156059265, -0.07364755868911743, 0.0471062958240509, -0.16187429428100586, 0.03155875578522682, -0.016298573464155197, 0.147114560008049, 0.12398463487625122, 0.013039464130997658, 0.08116047084331512, 0.33118876814842224, -0.10184214264154434, -0.0348067469894886, 0.06852024793624878, 0.1417725831270218, 0.0737151950597763, -0.4227610230445862, 0.16539520025253296, 0.3434446454048157, 0.12869885563850403, -0.3457922339439392, -0.5522558689117432, -0.11105106770992279, 0.06644579768180847, -0.078413225710392, -0.24249151349067688, 0.15491250157356262, -0.12318149209022522, 0.19159191846847534, -0.4587087631225586, -0.08506268262863159, -0.0642051175236702, 0.051376987248659134, 0.06632943451404572, -0.021587878465652466, -0.27633044123649597, 0.27081748843193054, 0.056345805525779724, 0.09412690997123718, -0.15241479873657227, -0.1206800788640976, 0.16491959989070892, 0.22937387228012085, -0.6707274913787842, -0.200477734208107, -0.21760615706443787, -0.08277366310358047, 0.24865487217903137, 0.3064732551574707, 0.5127053260803223, -0.0695311427116394, -0.001456943340599537, 0.09126410633325577, 0.0690608024597168, 0.5457296371459961, -0.10104338079690933, -0.22347179055213928, 0.010707315057516098, 0.11909539252519608, -0.0006040036678314209, -0.013291370123624802, 0.3079892098903656, -0.09607791155576706, -0.2861163914203644, 0.18682581186294556, 0.39911431074142456, -0.004852470010519028, -0.3670796751976013, -0.1827213168144226, -0.3305947482585907, -0.15041372179985046, 0.016824008896946907, 0.16194793581962585, -0.1955447494983673, 0.03882531821727753, 0.18345907330513, 0.09624800831079483, -0.26167380809783936, -0.03417135402560234, -0.17547647655010223, 0.20054802298545837, -0.13556824624538422, -0.014928080141544342, 0.002534676343202591, -0.19642499089241028, 0.018254034221172333, 0.4052436053752899, 0.04595837742090225, -0.00787578895688057, 0.1850581169128418, -0.13792601227760315, 0.3300069272518158, 0.02679295651614666, 0.2054768204689026, -0.10438480228185654, 0.11968055367469788, 0.11093603074550629, -0.0676134005188942, 0.006233390420675278, -0.07623935490846634, -0.23703059554100037, 0.10293888300657272, -0.026191215962171555, -0.29012733697891235, -0.006433270871639252, -0.26550114154815674, 0.2805635631084442, -0.3139192759990692, 0.4107525944709778, 0.46422791481018066, 0.3083905577659607, -0.05793981999158859, -0.08848797529935837, 0.3909348249435425, -0.033580049872398376, -0.12681017816066742, -0.2703215181827545, 0.3334648311138153, -0.007043883204460144, 0.31651389598846436, 0.3111931383609772, -0.05837973207235336, 0.34756556153297424, -0.2451774626970291, -0.04721253737807274, 0.20526759326457977, -0.1820419579744339, -0.42362427711486816, 0.23096835613250732, -0.07610049098730087, 0.29903560876846313, -0.0356755331158638, 0.06117122992873192, -0.03611656278371811, 0.17294839024543762, 0.040078602731227875, 0.28852468729019165, -0.08793988078832626, -0.08191686123609543, 0.0025713033974170685, -0.1750308871269226, 0.29114705324172974, -0.09375514090061188, -0.01950586959719658, 0.28818145394325256, 0.05033937469124794, -0.1503598988056183, 0.27432721853256226, -0.5115567445755005, 0.20570982992649078, 0.23517438769340515, 0.2331879585981369, 0.18627601861953735, 0.23769350349903107, -0.18020930886268616, -0.46209168434143066, 0.1702176332473755, -0.37578296661376953, 0.15922841429710388, 0.05107817053794861, -0.33644604682922363, -0.13254010677337646, -0.1899862438440323, -0.14490841329097748, 0.04387928918004036, -0.09329032897949219, -0.1333112120628357, 0.46290621161460876, 0.02502482384443283, -0.4002573788166046, 0.23730500042438507, -0.0836174339056015, 0.10976831614971161, -0.4155575931072235, 0.06138342618942261, 0.24618713557720184, -0.018651049584150314, -0.009056463837623596, 0.2117617428302765, 0.016305793076753616, -0.3814629912376404, 0.10809839516878128, 0.29365843534469604, -0.34848976135253906, 0.01921914517879486, -0.07981843501329422, 0.08172191679477692, 0.06730780005455017, -0.05967213585972786, -0.12954284250736237, 0.05068277567625046, 0.07365015894174576, -0.06416168063879013, -0.033929601311683655, 0.8116823434829712, -0.09514051675796509, 0.12687121331691742, 0.06701792776584625, -0.06727683544158936, -0.13106535375118256, -0.23659072816371918, -0.18496832251548767, 0.20446941256523132, 0.18651191890239716, -0.23161880671977997, 0.2167517989873886, -0.1897059679031372, -0.2400350421667099, -0.25198858976364136, 0.2917012572288513, 0.00770680233836174, 0.3112783133983612, 0.11274748295545578, 0.042578551918268204, 0.212185800075531, -0.038829684257507324, -0.14694048464298248, 0.37719154357910156, 0.001110205426812172, 0.25645485520362854, 0.3336135745048523, 0.2784118950366974, 0.15653353929519653, 0.050144828855991364, -0.260941743850708, -0.04003705084323883, 0.010296765714883804, 0.010452332906425, 0.10220889002084732, -0.35294556617736816, -0.00235874205827713, 0.05790391564369202, 0.16358910501003265, 0.009169250726699829, -0.06852342933416367, -0.09332965314388275, -0.15903499722480774, -0.20329976081848145, -0.04840691760182381, -0.19997964799404144, -0.06365280598402023, -0.05968981981277466, 0.0650859847664833, 0.08276644349098206, 0.4527522325515747, 0.23238039016723633, 0.4247002601623535, -0.004651030525565147, 0.3034427762031555, -0.14032943546772003, 0.012463267892599106, 0.07580588757991791, -0.04367947578430176, -0.11889774352312088, -0.23607222735881805, 0.2823859751224518, -0.005722160451114178, 0.03723457455635071, -0.5395439267158508, -0.16033610701560974, 0.21133024990558624, -0.06520483642816544, -0.2380535900592804, 0.37183913588523865, 0.12108659744262695, -0.5385223031044006, -0.1301630437374115, 0.042679592967033386, -0.1647607833147049, -0.5449091792106628, 0.1823604702949524, -0.15172505378723145, 0.11902213096618652, -0.25545984506607056, -0.31287887692451477, -0.11223546415567398, -0.19338802993297577, 0.9071429371833801, -0.3603629171848297, 0.03876952826976776, 0.16978922486305237, -0.2453993260860443, 0.09097233414649963, 0.012080681510269642, 0.043834418058395386, -0.10465771704912186, -0.5249735713005066, -0.12238627672195435, 0.032227907329797745, -0.13739585876464844, -0.127046138048172, -0.030066322535276413, 0.11962193250656128, 0.5564435124397278, -0.004287548363208771, -0.14652730524539948, -0.4110368490219116, -0.148477703332901, -0.05923263728618622, 0.40295636653900146, 0.19722247123718262, -0.3497491776943207, 0.10311645269393921, -0.03209944814443588, -0.05721818655729294, 0.17771989107131958, -0.00031742826104164124, -0.1117023453116417, 0.20103445649147034, 0.014790430665016174, 0.3613646626472473, 0.4233076572418213, 0.26899081468582153, -0.11243268847465515, 0.021177250891923904, -0.24063679575920105, -0.07814425230026245, 0.06879276037216187, -0.41652199625968933, 0.08670457452535629, 0.09675838053226471, 0.21218693256378174, 0.08907584846019745, -0.2410806119441986, 0.27654829621315, -0.09509564936161041, -0.030314141884446144, -0.3282959461212158, -0.35603979229927063, 0.05938093364238739, -0.24327456951141357, 0.24999913573265076, -0.10773143172264099, -0.15047356486320496, -0.0759812667965889, -0.11814521253108978, 0.2302040308713913, 0.1959141194820404, 0.12477083504199982, 0.08062691986560822, -0.38563212752342224, -0.2992057502269745, -0.5825085043907166, 0.6898991465568542, -0.09068069607019424, 0.2828059792518616, 0.10382454097270966, -0.09632405638694763, 0.09180407226085663, 0.07381398230791092, 1.1266227960586548, -0.09029132127761841, -0.0679858922958374, -0.45323699712753296, -0.4792613089084625, -0.36580443382263184, 0.17474806308746338, -0.24620148539543152, 0.4959312677383423, -0.1369204819202423, 0.4861787259578705, -0.30122384428977966, -0.21580244600772858, 0.3842226266860962, -0.07084940373897552, -0.10299424827098846, -0.10854828357696533, -0.103947214782238, -0.6143310070037842, -0.14521484076976776, 0.040212564170360565, 0.1736764907836914, 0.18356122076511383, 0.09638885408639908, 0.14427989721298218, -0.3470225930213928, 0.2196637988090515, 0.37895381450653076, -0.06801017373800278, -0.041956283152103424, 0.21029669046401978, -0.10671395063400269, 0.11418469995260239, 0.2900211811065674, -0.15382738411426544, 0.04999956861138344, -0.11192971467971802, -0.5091652274131775, -0.20363524556159973, 0.13879463076591492, 0.4453861713409424, 0.002106785774230957, 0.0893898457288742, 0.4498023986816406, 0.33132514357566833, 0.18783825635910034, -0.20954222977161407, 0.07528994232416153, 0.12294770032167435, 0.47679027915000916, -0.24560129642486572, -0.37568941712379456, 0.18901294469833374, 0.29010292887687683, -0.12519890069961548, 0.2583317160606384, 0.36874788999557495, -0.2165217250585556, 0.07509467750787735, -0.0771680548787117, 0.9015495181083679, -0.22416187822818756, 0.05724892392754555, 0.19939476251602173, 0.1786239892244339, 0.5808361768722534, -0.285524845123291, 0.25767484307289124, -0.11109626293182373, -0.508691132068634, -0.12336242944002151, -0.10077764093875885, 0.14352253079414368, 0.17989391088485718, -0.28019216656684875, 0.3612535893917084, 0.3504680395126343, -0.07950302958488464, -0.07736911624670029, -0.05941968411207199, -0.13411203026771545, -0.13676859438419342, -0.17933343350887299, -0.10629669576883316, -0.021723292768001556, 0.5700870156288147, -0.04591020941734314, -0.00143528264015913, 0.18197545409202576, -0.004344567656517029, -0.07260525971651077, -0.22046169638633728, -0.5403099656105042, 0.2581216096878052, 0.24535347521305084, -0.14665170013904572, -0.10701027512550354, 0.5531079769134521, 0.6465960741043091, -0.14315633475780487, 0.018572285771369934, -0.13601160049438477, 0.06380511820316315, 0.011669930070638657, -0.25358960032463074, -0.13508696854114532, 0.14615634083747864, 0.03878473490476608, -0.25957611203193665, 0.0008659884333610535, 0.13027307391166687, 0.04201589524745941, -0.015095323324203491, 0.07754410058259964, -0.10298120975494385, -0.30293580889701843, -0.07924394309520721, 0.09852094203233719, -0.09897312521934509, 0.08072766661643982, -0.08588869869709015, -0.07277189195156097, -0.5481370687484741, 0.24762922525405884, -0.1678897589445114, -0.49149492383003235, -0.010616082698106766, 0.4057462811470032, 0.26070019602775574, -0.1742274910211563, 0.4102479815483093, 0.08361828327178955, 0.09361498057842255, -0.05707374960184097, -0.28617197275161743, 0.2830037772655487, -0.4344584047794342, 0.5060533881187439, -0.307449072599411, 0.28217941522598267, 0.06427853554487228, 0.16858012974262238, 0.12941086292266846, 0.12958797812461853, -0.25562819838523865, -0.2817225456237793, -0.147271066904068, 0.07852984219789505, 0.24408398568630219, 0.24418090283870697, 0.12584102153778076, 0.3767598271369934, 0.09021316468715668, -0.17052030563354492, -0.1665884256362915, 0.2332269698381424, -0.2345496416091919, 0.19790349900722504, 0.14072591066360474, -0.07131637632846832, 0.2908701002597809, 0.20179465413093567, -0.06331247836351395, 0.19150108098983765, -0.09938618540763855, -0.11012539267539978, -0.024667320773005486, 0.14820626378059387, -0.07896938920021057, 0.008946932852268219, 0.2233029454946518, 0.27980750799179077, -0.0272526815533638, -0.10519230365753174, 0.6996045112609863, 0.3694259822368622, 0.12268389016389847, 0.4460565745830536, 0.0006693229079246521, 0.015197593718767166, -0.36118894815444946, -0.2898232042789459, 0.21364986896514893, 0.0124388188123703, 0.00643952889367938, 0.12289232760667801, -0.07642100006341934, -0.03617343306541443, -0.10912499576807022, -0.06807108968496323, 0.5871484279632568, -0.22306981682777405, 0.014606289565563202, 0.052835509181022644, -0.11491766571998596, -0.3639839291572571, 0.43611881136894226, -0.1670503467321396, -0.19696922600269318, -0.05722647160291672, -0.08792202919721603, 0.017471356317400932, -0.14857810735702515, 0.24394500255584717, 0.3767099678516388, -0.26286396384239197, 0.055938493460416794, 0.3968818783760071, -0.15162600576877594, 0.3247970640659332, -0.19858692586421967, -0.221866637468338, 0.09028210490942001, -0.17617259919643402, 0.13243688642978668, 0.42990708351135254, 0.05775081738829613, 0.10984048247337341, -0.012611648067831993, 0.1312810331583023, 0.32241740822792053, -0.03351417928934097, -0.15837186574935913, 0.4137471914291382, -0.27838438749313354, 0.2369360327720642, 0.2978636920452118, -0.4279213845729828, 0.06647747755050659, 0.40042880177497864, -0.028737947344779968, 0.40751540660858154, -0.0916057825088501, 0.5527044534683228, -0.08894020318984985, -0.30473458766937256, 0.12279946357011795, 0.4881366193294525, -0.24412745237350464, -0.17032629251480103, -0.19859656691551208, -0.13036975264549255, -0.03826598450541496, 0.07536047697067261, -0.048320215195417404, 0.026079479604959488, 0.17918196320533752, 0.035792894661426544, 0.10775227844715118, 0.050712473690509796, -0.1503036618232727, 0.2482166588306427, 0.24316710233688354, 0.016221147030591965, -0.22398297488689423, 0.2543327808380127, -0.2170739471912384, 0.03944600373506546, 0.7196276783943176, 0.018823113292455673, -0.009519338607788086, -0.29573217034339905, 0.6617159247398376, 0.17894810438156128, -0.164062038064003, -0.029556114226579666, -0.020962301641702652, 0.019034557044506073, 0.01806805282831192, -0.013945764862000942, 0.026273904368281364, -0.029268059879541397, 0.19121646881103516, -0.10570202767848969, 0.16118822991847992, -0.4103511869907379, 0.08131935447454453, -0.08170706778764725, -0.10733792185783386, -0.21971112489700317, 0.19436335563659668, -0.24330982565879822, -0.31143611669540405, 0.12058006227016449, -0.15933382511138916, 0.10791660100221634, 0.08629104495048523, -0.017618313431739807, -0.1551503688097, 0.33814460039138794, 0.3547677993774414, 0.38208404183387756, -0.1703348606824875, -0.09735008329153061, -0.14170998334884644, 0.01078498363494873, 0.19788329303264618, -0.2089078724384308, 0.33435454964637756, 0.1071263998746872, -0.002687618136405945, -0.035932958126068115, 0.021387510001659393, -0.1784837543964386, -0.27178338170051575, 0.12112260609865189, -0.3433924913406372, -0.20458176732063293, -0.12640251219272614, 0.19573310017585754, 0.2733248770236969, -0.3446793854236603, 0.07549174129962921, 0.358121395111084, -0.21339035034179688, -0.06849948316812515, 0.3740192651748657, 0.017587240785360336, 0.09975951910018921, -0.008788764476776123, 0.18139755725860596, -0.06380891799926758, -0.06795968860387802, -0.05066661164164543, 0.38925179839134216, 0.12807604670524597, -0.3385193943977356, 0.34467077255249023, -0.07723693549633026, 0.1299196183681488, -0.25939488410949707, -0.3769940137863159, -0.0743442177772522, 0.24128136038780212, 0.5907957553863525, -0.4905034303665161, -0.22750361263751984, 0.15219761431217194, -0.004521682858467102, -0.033116213977336884, 0.34185299277305603, 0.8235198259353638, -0.1254415214061737, -0.022154919803142548, -0.2195955514907837, -0.08719100058078766, 0.6015579700469971, -0.2815900444984436, -0.2263820767402649, -0.0047993953339755535, 0.19569656252861023, -0.10358349233865738, -0.3497137129306793, -0.6360816955566406, 0.1418417990207672, 0.28630301356315613, -0.07553022354841232, -0.10868920385837555, 0.4168686866760254, -0.08349010348320007, -0.15231364965438843, 0.08694641292095184, 0.09168373793363571, 0.35708725452423096, -0.41124147176742554, 0.18356920778751373, -0.3044161796569824 ]
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.010877609252929688, -0.774516224861145, 0.05003808066248894, -0.043819405138492584, 0.05859583243727684, -0.13151410222053528, 0.24490410089492798, 0.03557969629764557, 0.4034036099910736, 0.20719799399375916, -0.3647305369377136, -0.057683732360601425, 0.02583114430308342, 0.4528595507144928, 0.136879563331604, -0.24154195189476013, 0.035421475768089294, 0.13007499277591705, -0.3146584630012512, -0.09713251143693924, -0.1279546320438385, 0.00902408268302679, -0.5449327230453491, -0.1741684228181839, 0.3397315442562103, -0.2855737805366516, -0.11119280010461807, -0.2267981767654419, -0.20183950662612915, 0.33072125911712646, 0.4212068021297455, 0.27654480934143066, 0.1566704511642456, 0.5160191059112549, -0.00012626811803784221, 0.2817392349243164, -0.2239816039800644, -0.1529465764760971, 0.09268081188201904, -0.15737657248973846, -0.14173394441604614, -0.044088609516620636, -0.06306172162294388, -0.2752137780189514, -0.18164697289466858, -0.0017656106501817703, 0.04540780186653137, -0.33862629532814026, 0.6838328242301941, 0.1817798614501953, -0.004846293479204178, 0.20673121511936188, -0.05973448604345322, 0.09206746518611908, -0.13503500819206238, 0.06712353229522705, -0.020442219451069832, 0.07359234988689423, 0.07423926889896393, 0.03918556869029999, 0.08259915560483932, 0.28699183464050293, -0.03426099941134453, -0.061669062823057175, 0.08219559490680695, 0.10652325302362442, 0.0024310126900672913, -0.3898434638977051, 0.11112072318792343, 0.3619072437286377, 0.2063351720571518, -0.3542044758796692, -0.5544345378875732, -0.05214015766978264, 0.025304198265075684, -0.04707048833370209, -0.20787203311920166, 0.16579869389533997, -0.1159716546535492, 0.2144903689622879, -0.48118525743484497, -0.09870506823062897, -0.07230523973703384, 0.07318345457315445, 0.05047917366027832, -0.10777932405471802, -0.2960427701473236, 0.25405171513557434, 0.06993067264556885, 0.09059403836727142, -0.11748006194829941, -0.11754187941551208, 0.12303400039672852, 0.2084052413702011, -0.6481528282165527, -0.23605360090732574, -0.25775060057640076, -0.020779110491275787, 0.26396533846855164, 0.3931049108505249, 0.5452447533607483, -0.10599694401025772, -0.06836189329624176, 0.0775519534945488, 0.07180003821849823, 0.5941014289855957, -0.09312397986650467, -0.24497465789318085, -0.02166685461997986, 0.1149330884218216, 0.03384933993220329, -0.045613422989845276, 0.3210253119468689, -0.0735207349061966, -0.3377143144607544, 0.1442280113697052, 0.3928588628768921, -0.09812502562999725, -0.3077057898044586, -0.1714106798171997, -0.34827396273612976, -0.10623540729284286, 0.0052443817257881165, 0.12359915673732758, -0.17380031943321228, 0.09560580551624298, 0.22503088414669037, 0.08441901952028275, -0.2863161861896515, -0.09465840458869934, -0.1676395833492279, 0.2888309955596924, -0.18384669721126556, 0.007838418707251549, -0.055558279156684875, -0.18036645650863647, -0.021317927166819572, 0.503835141658783, 0.010385323315858841, -0.03494532033801079, 0.20614327490329742, -0.16446487605571747, 0.3446744382381439, -0.02762134000658989, 0.15815037488937378, -0.1279955804347992, 0.13930964469909668, -0.018206048756837845, -0.02530818060040474, 0.0004724562168121338, -0.05773823708295822, -0.24455739557743073, 0.06475861370563507, -0.03857676312327385, -0.3195183277130127, 0.028810705989599228, -0.1932256519794464, 0.31960704922676086, -0.3369586765766144, 0.39801812171936035, 0.4549925923347473, 0.3295466899871826, -0.054833609610795975, -0.07112322747707367, 0.4004139304161072, 0.03207121044397354, -0.08926144242286682, -0.2960410714149475, 0.3439554274082184, 0.009356359019875526, 0.30347302556037903, 0.29374033212661743, -0.013257230632007122, 0.2759532034397125, -0.24296197295188904, -0.09621352702379227, 0.20006218552589417, -0.16533350944519043, -0.39785805344581604, 0.24382491409778595, -0.0936974510550499, 0.2858174741268158, -0.0008193328976631165, 0.03271646425127983, -0.0864734873175621, 0.18819136917591095, -0.02708059549331665, 0.2525266110897064, -0.06613823771476746, -0.10531330108642578, -0.06515995413064957, -0.16175010800361633, 0.3505890369415283, -0.06559549272060394, -0.08300000429153442, 0.34646761417388916, 0.06523546576499939, -0.061951953917741776, 0.2206345498561859, -0.5067722201347351, 0.17426039278507233, 0.286068320274353, 0.2737709581851959, 0.14227323234081268, 0.23978085815906525, -0.1471373736858368, -0.32212600111961365, 0.10422838479280472, -0.35726872086524963, 0.18655109405517578, 0.1231016293168068, -0.28224480152130127, -0.17483672499656677, -0.2101636826992035, -0.1613723784685135, -0.022071152925491333, -0.09282843768596649, -0.08941596746444702, 0.429605096578598, 0.06274057924747467, -0.3935883343219757, 0.3531254827976227, -0.11033258587121964, 0.11737393587827682, -0.4565911293029785, 0.0766901969909668, 0.2712404131889343, -0.02120353654026985, -0.029491879045963287, 0.2020915150642395, 0.025019388645887375, -0.31820932030677795, 0.09315262734889984, 0.2768286168575287, -0.31118303537368774, -0.000049583613872528076, -0.08070381730794907, 0.1129692867398262, 0.04488352686166763, -0.0933879166841507, -0.13565677404403687, 0.11589758098125458, 0.09894189238548279, -0.0575682632625103, -0.08038464933633804, 0.7735744118690491, -0.06308053433895111, 0.11833083629608154, 0.11514173448085785, -0.05419578403234482, -0.1563132256269455, -0.29358339309692383, -0.13842043280601501, 0.2834095060825348, 0.25111207365989685, -0.21208804845809937, 0.23287390172481537, -0.12833867967128754, -0.26212817430496216, -0.2862572968006134, 0.27009376883506775, 0.02842891216278076, 0.3281146287918091, 0.1195153146982193, 0.03146156668663025, 0.19467172026634216, -0.015337308868765831, -0.15549571812152863, 0.3815608620643616, -0.007175256963819265, 0.22478598356246948, 0.3685891628265381, 0.3105103075504303, 0.14310722053050995, 0.05536865070462227, -0.2981647253036499, -0.0728994607925415, 0.03939018398523331, 0.008606144227087498, 0.10302815586328506, -0.37972211837768555, 0.023647520691156387, 0.030247977003455162, 0.17025083303451538, -0.08162179589271545, -0.073078453540802, -0.1584305763244629, -0.1832450032234192, -0.20118926465511322, 0.03637579083442688, -0.1941175013780594, -0.04383563995361328, -0.08063412457704544, 0.06610599905252457, 0.12699410319328308, 0.445626825094223, 0.24062183499336243, 0.46287673711776733, -0.02809036150574684, 0.3665052652359009, -0.136385977268219, 0.057594750076532364, 0.07059553265571594, -0.04617373272776604, -0.11942336708307266, -0.20331603288650513, 0.2038019597530365, -0.003171361982822418, 0.04397552087903023, -0.46608811616897583, -0.23746442794799805, 0.2677350640296936, 0.02328861504793167, -0.2113489955663681, 0.35080185532569885, 0.05570564791560173, -0.5462491512298584, -0.07832065969705582, -0.021693030372262, -0.08848340809345245, -0.5615620613098145, 0.2528975307941437, -0.1770298331975937, 0.12331555783748627, -0.3099216818809509, -0.36610567569732666, -0.08729632943868637, -0.2064204216003418, 0.9370262622833252, -0.37620750069618225, 0.005793236196041107, 0.19965039193630219, -0.22223159670829773, 0.06772194802761078, 0.012603670358657837, 0.15565569698810577, -0.0976717621088028, -0.504176676273346, -0.07312607765197754, 0.028170710429549217, -0.13766726851463318, -0.14870277047157288, -0.054686538875103, 0.08025327324867249, 0.5497123599052429, -0.02826564386487007, -0.19948089122772217, -0.45204710960388184, -0.2961638867855072, -0.07280600816011429, 0.42090097069740295, 0.1771838217973709, -0.3457142114639282, 0.12052083015441895, -0.037531234323978424, -0.0695846676826477, 0.22957664728164673, 0.01873018965125084, -0.1270516812801361, 0.23470869660377502, 0.001408122479915619, 0.359897255897522, 0.35385286808013916, 0.3470194637775421, -0.09902560710906982, 0.037006959319114685, -0.2861385643482208, -0.08527675271034241, 0.09005941450595856, -0.369649201631546, 0.10219714790582657, 0.13570116460323334, 0.26328760385513306, 0.07791049778461456, -0.19128260016441345, 0.2992958724498749, -0.150989830493927, -0.05653272196650505, -0.3372483551502228, -0.3283589780330658, 0.041988156735897064, -0.1391083151102066, 0.22628191113471985, -0.1436564028263092, -0.1614687740802765, -0.01052759774029255, -0.13943275809288025, 0.26859238743782043, 0.23487359285354614, 0.10991929471492767, 0.12223593145608902, -0.36184409260749817, -0.24837186932563782, -0.47493892908096313, 0.6477640271186829, -0.10549579560756683, 0.2582256495952606, 0.05965724214911461, -0.12247578054666519, 0.1019015908241272, 0.055279623717069626, 1.044206976890564, -0.09286189079284668, -0.14188891649246216, -0.45420053601264954, -0.5523253083229065, -0.33315834403038025, 0.21966974437236786, -0.23377427458763123, 0.5441316962242126, -0.1980508267879486, 0.4110102355480194, -0.35553377866744995, -0.19870755076408386, 0.3440606892108917, -0.04280516132712364, -0.11762784421443939, -0.1123758926987648, -0.06976035982370377, -0.619322657585144, -0.1143813282251358, -0.02281159907579422, 0.15054814517498016, 0.16857323050498962, 0.06340691447257996, 0.14745475351810455, -0.35769402980804443, 0.22873425483703613, 0.3958042860031128, -0.11859938502311707, -0.0005937963724136353, 0.13958114385604858, -0.12851707637310028, 0.12510395050048828, 0.3129326105117798, -0.2290615439414978, 0.18285001814365387, -0.038917411118745804, -0.5255220532417297, -0.20112040638923645, 0.1282043159008026, 0.432605504989624, 0.004305809736251831, 0.12118580937385559, 0.4952031970024109, 0.29058119654655457, 0.16927111148834229, -0.17519532144069672, 0.05145588144659996, 0.05473192781209946, 0.43832507729530334, -0.20183469355106354, -0.3718864917755127, 0.20344647765159607, 0.25662773847579956, -0.13110870122909546, 0.29509246349334717, 0.40551358461380005, -0.17058797180652618, 0.007012391462922096, -0.06412311643362045, 1.0264142751693726, -0.17790421843528748, 0.02266618423163891, 0.1446862518787384, 0.06493565440177917, 0.547271728515625, -0.36083781719207764, 0.20803053677082062, -0.1670433133840561, -0.5076107382774353, -0.15289618074893951, -0.11493197828531265, 0.1049191802740097, 0.12648606300354004, -0.35001808404922485, 0.35972654819488525, 0.2949792742729187, -0.10775347054004669, -0.03782915323972702, 0.00681290403008461, -0.1752341389656067, -0.07237465679645538, -0.15630976855754852, -0.11045151948928833, -0.009184740483760834, 0.5706515312194824, 0.009358622133731842, -0.018352078273892403, 0.18659141659736633, -0.013880480080842972, -0.06017369404435158, -0.1625116467475891, -0.5331324934959412, 0.2263111025094986, 0.30663275718688965, -0.13817229866981506, 0.014043893665075302, 0.6243486404418945, 0.6611813306808472, -0.1327863186597824, -0.0027740374207496643, -0.16449321806430817, 0.018011868000030518, 0.0469268374145031, -0.230606809258461, -0.057495180517435074, 0.165732741355896, 0.048105426132678986, -0.2576417922973633, -0.009264186024665833, 0.15478461980819702, 0.09893633425235748, -0.06989684700965881, 0.018864240497350693, -0.07715663313865662, -0.32923710346221924, -0.029253805056214333, 0.12327085435390472, -0.10894787311553955, 0.123299241065979, -0.08641396462917328, -0.040381766855716705, -0.5168854594230652, 0.17552964389324188, -0.12887509167194366, -0.4917958676815033, 0.01654001697897911, 0.4037626087665558, 0.28225836157798767, -0.1160467118024826, 0.40031349658966064, 0.0940641462802887, 0.08721083402633667, -0.05273094028234482, -0.27671998739242554, 0.350787878036499, -0.4622546136379242, 0.46937769651412964, -0.3270948827266693, 0.2717694640159607, 0.05702776461839676, 0.17791403830051422, 0.10258303582668304, 0.16460666060447693, -0.23124834895133972, -0.2901349365711212, -0.10189159214496613, 0.09406738728284836, 0.20680414140224457, 0.15202775597572327, 0.09835600107908249, 0.27252015471458435, 0.10683885216712952, -0.2188531458377838, -0.1683715134859085, 0.24678458273410797, -0.25575578212738037, 0.1999894380569458, 0.13473448157310486, -0.0919882133603096, 0.19861052930355072, 0.19776475429534912, -0.06850895285606384, 0.2219437062740326, -0.12613965570926666, -0.08838760852813721, -0.03914699703454971, 0.16713038086891174, -0.08067069947719574, 0.013415079563856125, 0.18745119869709015, 0.26878947019577026, -0.0019305124878883362, -0.0806286558508873, 0.6413137316703796, 0.33121079206466675, 0.11508745700120926, 0.5001336932182312, -0.05143919214606285, -0.017525173723697662, -0.4890028238296509, -0.27754202485084534, 0.21262367069721222, 0.031019091606140137, 0.027646813541650772, 0.09177874773740768, -0.024627164006233215, -0.02750334143638611, -0.13594762980937958, 0.002769656479358673, 0.5822219252586365, -0.22751185297966003, -0.012743137776851654, 0.04687262326478958, -0.02021360769867897, -0.3827418386936188, 0.39915937185287476, -0.1654496192932129, -0.24941416084766388, 0.03601501137018204, -0.05121632665395737, 0.006890064105391502, -0.08354293555021286, 0.25437289476394653, 0.31493160128593445, -0.2773493230342865, 0.02999650314450264, 0.38069939613342285, -0.13589784502983093, 0.26112091541290283, -0.14413288235664368, -0.2044878900051117, 0.026426270604133606, -0.204790398478508, 0.10578259825706482, 0.41879403591156006, -0.014558307826519012, 0.07333285361528397, -0.06092189997434616, 0.10315972566604614, 0.23560145497322083, -0.06551560759544373, -0.21087685227394104, 0.4138639569282532, -0.2922665774822235, 0.2327292114496231, 0.299034982919693, -0.392488569021225, 0.09511815011501312, 0.4452516436576843, 0.002368733286857605, 0.42681464552879333, -0.04949857294559479, 0.5840534567832947, 0.01751067116856575, -0.28042182326316833, 0.1194978877902031, 0.4449961185455322, -0.20142513513565063, -0.1196049302816391, -0.17126710712909698, -0.1596519947052002, -0.18773861229419708, 0.09001944959163666, -0.0751732885837555, 0.002812083810567856, 0.21731632947921753, 0.07179471850395203, 0.06396399438381195, 0.024084992706775665, -0.07956607639789581, 0.29133474826812744, 0.2723921835422516, -0.009020157158374786, -0.17659203708171844, 0.3458017110824585, -0.18921774625778198, 0.09637060016393661, 0.6774989366531372, -0.028156597167253494, 0.01794857531785965, -0.37470605969429016, 0.6705471873283386, 0.2169339656829834, -0.1634797751903534, 0.04810015857219696, -0.010907292366027832, 0.023636914789676666, 0.060624297708272934, -0.012556415982544422, 0.0033275987952947617, -0.012748749926686287, 0.18453027307987213, -0.12181083858013153, 0.13196228444576263, -0.49200439453125, 0.11602970957756042, -0.009594738483428955, -0.062036700546741486, -0.20286941528320312, 0.17454946041107178, -0.27870261669158936, -0.3275154232978821, 0.1406187266111374, -0.10912411659955978, 0.09323997795581818, 0.09255530685186386, -0.03250773251056671, -0.1501617580652237, 0.2595949172973633, 0.37135550379753113, 0.4355643391609192, -0.12312474101781845, -0.15703177452087402, -0.09166368842124939, 0.036057353019714355, 0.2634947597980499, -0.26747506856918335, 0.3377639353275299, 0.05073278397321701, 0.030574914067983627, 0.032336000353097916, -0.06401549279689789, -0.16225680708885193, -0.2586784064769745, 0.08737330883741379, -0.3793018162250519, -0.2062288522720337, -0.04687849432229996, 0.20623594522476196, 0.22701427340507507, -0.30292683839797974, 0.06981926411390305, 0.35444992780685425, -0.19747459888458252, -0.04936344176530838, 0.42188605666160583, -0.03919152915477753, 0.07471328973770142, -0.06413906812667847, 0.19398494064807892, -0.061400219798088074, -0.09221313148736954, -0.04777064174413681, 0.5073217749595642, 0.11553142219781876, -0.36524033546447754, 0.3364463746547699, -0.09411224722862244, 0.12490549683570862, -0.246393620967865, -0.3963311016559601, -0.07428622990846634, 0.2382933646440506, 0.5800234079360962, -0.42546436190605164, -0.24572907388210297, 0.13560672104358673, 0.03318335860967636, -0.006649424321949482, 0.3269907534122467, 0.8123002052307129, -0.10883960127830505, -0.05095427483320236, -0.19316643476486206, -0.08895523101091385, 0.56716388463974, -0.2700321078300476, -0.20032186806201935, 0.07616828382015228, 0.19302426278591156, -0.09619387239217758, -0.37204843759536743, -0.7107869386672974, 0.12853309512138367, 0.2590750753879547, -0.11077875643968582, -0.08770941197872162, 0.41887155175209045, -0.062437932938337326, -0.12266343832015991, 0.10634210705757141, 0.06590859591960907, 0.38572099804878235, -0.35823073983192444, 0.2123960554599762, -0.2672470211982727 ]
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.02446475252509117, -0.8023658990859985, 0.03632538393139839, -0.055611543357372284, 0.021609436720609665, -0.0733313262462616, 0.2536006271839142, 0.049449674785137177, 0.38152334094047546, 0.24148762226104736, -0.35342657566070557, -0.06547164916992188, 0.03937171772122383, 0.444589227437973, 0.1729433834552765, -0.2635645568370819, 0.06008685380220413, 0.13238859176635742, -0.2501777112483978, -0.09620261937379837, -0.11241587996482849, 0.03288868069648743, -0.5142915844917297, -0.1790895015001297, 0.3367590308189392, -0.2938045561313629, -0.15012945234775543, -0.25004762411117554, -0.1282930225133896, 0.3018814027309418, 0.46091774106025696, 0.2909283936023712, 0.21230778098106384, 0.4509739577770233, -0.00012499021249823272, 0.2926607131958008, -0.24297036230564117, -0.1337587684392929, 0.11450199782848358, -0.08805496990680695, -0.09685203433036804, -0.09420378506183624, -0.03448448330163956, -0.3120013177394867, -0.17728880047798157, -0.007347666658461094, 0.05766228586435318, -0.3176604211330414, 0.6801819205284119, 0.123601995408535, 0.01118725910782814, 0.23653605580329895, -0.07502453774213791, 0.06909678876399994, -0.13741865754127502, 0.016167335212230682, -0.020939581096172333, 0.066419318318367, 0.09173042327165604, 0.0396546944975853, 0.10786276310682297, 0.3016743063926697, -0.06182283163070679, -0.03895992413163185, 0.05091225728392601, 0.13035592436790466, 0.05708133801817894, -0.41064706444740295, 0.14308542013168335, 0.3712310194969177, 0.1794091761112213, -0.3381175398826599, -0.5565242767333984, -0.06256018579006195, 0.04548799991607666, -0.12297200411558151, -0.23596984148025513, 0.1706845462322235, -0.13050921261310577, 0.20652733743190765, -0.41072800755500793, -0.06597437709569931, -0.043281152844429016, 0.04212535545229912, 0.07609771192073822, -0.0634080320596695, -0.2866246998310089, 0.2641933560371399, 0.06872643530368805, 0.11849650740623474, -0.1335151493549347, -0.10687388479709625, 0.13438712060451508, 0.21309658885002136, -0.655608057975769, -0.22274166345596313, -0.24338075518608093, -0.04946873337030411, 0.27862170338630676, 0.3848887085914612, 0.5002588033676147, -0.0848691314458847, -0.02071504294872284, 0.0651058554649353, 0.07397051900625229, 0.5639436841011047, -0.09176620095968246, -0.2520313858985901, -0.016610190272331238, 0.14023905992507935, 0.0175606831908226, -0.041935890913009644, 0.30556246638298035, -0.09903737157583237, -0.26017943024635315, 0.2037351131439209, 0.4017176032066345, -0.07107198238372803, -0.32399311661720276, -0.18349920213222504, -0.32719722390174866, -0.14662308990955353, -0.0070039695128798485, 0.1262945681810379, -0.19843530654907227, 0.06952705979347229, 0.18435466289520264, 0.06983622908592224, -0.2867664694786072, -0.061915114521980286, -0.17952914535999298, 0.2524329721927643, -0.1391298621892929, -0.0016127228736877441, -0.04393729940056801, -0.2109636515378952, 0.01242046244442463, 0.4680204689502716, 0.04478035494685173, -0.04921577125787735, 0.2229486107826233, -0.14773309230804443, 0.2782612144947052, -0.0027511566877365112, 0.19481366872787476, -0.11238210648298264, 0.10899189114570618, 0.05347190052270889, -0.07318738102912903, -0.006998017430305481, -0.0442647784948349, -0.23404017090797424, 0.10502941161394119, -0.020855411887168884, -0.2917470335960388, 0.025285832583904266, -0.2057439088821411, 0.28811636567115784, -0.3421456217765808, 0.41154006123542786, 0.43932366371154785, 0.3590463399887085, -0.05368339270353317, -0.056432344019412994, 0.41317465901374817, -0.019270196557044983, -0.09652885794639587, -0.2679919898509979, 0.34826573729515076, 0.02315451204776764, 0.30757904052734375, 0.2882293164730072, -0.051379282027482986, 0.3208960294723511, -0.25315719842910767, -0.09511168301105499, 0.22316619753837585, -0.1747700721025467, -0.41797947883605957, 0.25937730073928833, -0.08118201047182083, 0.2943807542324066, 0.012655787169933319, 0.058135952800512314, -0.11512922495603561, 0.17972873151302338, -0.014046162366867065, 0.2801772356033325, -0.08166570216417313, -0.09733816981315613, -0.02004583552479744, -0.17888587713241577, 0.3267521858215332, -0.09373743832111359, -0.05114531144499779, 0.33275333046913147, 0.041573718190193176, -0.1167285218834877, 0.25962045788764954, -0.4877476990222931, 0.1816798746585846, 0.2622476816177368, 0.24512477219104767, 0.1432558298110962, 0.24288851022720337, -0.15262848138809204, -0.38674548268318176, 0.15052926540374756, -0.3342058062553406, 0.15096211433410645, 0.08889733999967575, -0.32471585273742676, -0.14254438877105713, -0.21969854831695557, -0.15164148807525635, -0.020525429397821426, -0.0847821831703186, -0.11310994625091553, 0.462757408618927, 0.023746781051158905, -0.39680472016334534, 0.2766079902648926, -0.0825326219201088, 0.09799086302518845, -0.4222599267959595, 0.04880395531654358, 0.23846130073070526, 0.008813122287392616, -0.005917828530073166, 0.17390505969524384, 0.03892846032977104, -0.3525583744049072, 0.08618433028459549, 0.27568909525871277, -0.3201446533203125, 0.0070612430572509766, -0.07517527788877487, 0.06697322428226471, 0.03773067146539688, -0.08971643447875977, -0.13466960191726685, 0.03680001199245453, 0.07518429309129715, -0.060483913868665695, -0.037286244332790375, 0.7736290693283081, -0.08138571679592133, 0.1259886771440506, 0.10660149157047272, -0.048950549215078354, -0.14985902607440948, -0.27554789185523987, -0.16731269657611847, 0.276172399520874, 0.23568084836006165, -0.22012637555599213, 0.25206631422042847, -0.1806635856628418, -0.2266644984483719, -0.27303239703178406, 0.2895760238170624, 0.022222865372896194, 0.32338789105415344, 0.12198232859373093, 0.05542175471782684, 0.2160244882106781, -0.040221162140369415, -0.1559973508119583, 0.3685378432273865, -0.003991126548498869, 0.25451263785362244, 0.35801830887794495, 0.2879860997200012, 0.15234792232513428, 0.050969164818525314, -0.2573583126068115, -0.07444068789482117, 0.005412250757217407, -0.010023552924394608, 0.1193404495716095, -0.35819074511528015, 0.0063079483807086945, 0.041261449456214905, 0.17518852651119232, 0.006914414465427399, -0.05053992569446564, -0.10884230583906174, -0.15349140763282776, -0.1993163824081421, -0.001304561272263527, -0.20276062190532684, -0.047776974737644196, -0.09157457202672958, 0.014451973140239716, 0.09217973053455353, 0.43188485503196716, 0.24832147359848022, 0.4400365948677063, -0.0472346767783165, 0.3629510700702667, -0.14730985462665558, 0.006606608629226685, 0.06753437221050262, -0.038522910326719284, -0.13261745870113373, -0.22884148359298706, 0.24578775465488434, -0.020265208557248116, 0.01673143357038498, -0.5255950093269348, -0.19403156638145447, 0.23815302550792694, -0.004763491451740265, -0.2378981113433838, 0.3722149431705475, 0.08936452120542526, -0.5399619936943054, -0.11122820526361465, 0.018306637182831764, -0.13149096071720123, -0.5532985329627991, 0.20906919240951538, -0.15602922439575195, 0.13159362971782684, -0.2751111090183258, -0.3274399936199188, -0.10128352046012878, -0.1940859705209732, 0.9283860325813293, -0.3411177694797516, 0.04656870290637016, 0.19616790115833282, -0.2678839862346649, 0.07389717549085617, 0.02581290528178215, 0.12244904041290283, -0.09970323741436005, -0.5181102156639099, -0.1364707350730896, 0.026361651718616486, -0.15224260091781616, -0.14126461744308472, -0.0631071925163269, 0.13394394516944885, 0.5387519598007202, -0.0023166611790657043, -0.2072087973356247, -0.4411297142505646, -0.22788715362548828, -0.10102073848247528, 0.4474508762359619, 0.17700082063674927, -0.3411286473274231, 0.11886002123355865, -0.03653104603290558, -0.05376501753926277, 0.21130454540252686, -0.006876777857542038, -0.14272961020469666, 0.19219845533370972, 0.02580319344997406, 0.3620700538158417, 0.3707353472709656, 0.3190159499645233, -0.08353114128112793, 0.054294947534799576, -0.2608821392059326, -0.1027706116437912, 0.070856973528862, -0.3895362913608551, 0.09456785023212433, 0.1366184502840042, 0.2134469896554947, 0.06444349139928818, -0.21145832538604736, 0.3141695559024811, -0.11981786787509918, -0.017608389258384705, -0.31522637605667114, -0.33041563630104065, 0.002131301909685135, -0.19763243198394775, 0.21630993485450745, -0.13182254135608673, -0.15731312334537506, -0.039274729788303375, -0.08845967054367065, 0.26905059814453125, 0.20985886454582214, 0.10983401536941528, 0.10711885243654251, -0.4077516496181488, -0.3052121102809906, -0.54097580909729, 0.6420140266418457, -0.09644714742898941, 0.24131456017494202, 0.09194445610046387, -0.0866512805223465, 0.08484189212322235, 0.06615851074457169, 1.0803831815719604, -0.08720780164003372, -0.10288204252719879, -0.45848825573921204, -0.5351147651672363, -0.3529350161552429, 0.1782921403646469, -0.22403107583522797, 0.5216464996337891, -0.20151561498641968, 0.43667173385620117, -0.3162999451160431, -0.22941383719444275, 0.38310524821281433, -0.03918914869427681, -0.08682611584663391, -0.11470653116703033, -0.10349264740943909, -0.6376016139984131, -0.10896898061037064, 0.014284402132034302, 0.17502477765083313, 0.1664244532585144, 0.06788048893213272, 0.11981759965419769, -0.3701823651790619, 0.2059958279132843, 0.35326337814331055, -0.12397468090057373, -0.018102111294865608, 0.18623118102550507, -0.09424488246440887, 0.0939728319644928, 0.3174673914909363, -0.24032646417617798, 0.10545504093170166, -0.08417195081710815, -0.5110259652137756, -0.1814252734184265, 0.14486292004585266, 0.4306386411190033, -0.00652824342250824, 0.09082528948783875, 0.4707624614238739, 0.27092766761779785, 0.17090946435928345, -0.200709730386734, 0.08867556601762772, 0.09924910962581635, 0.46990007162094116, -0.2132212072610855, -0.37080487608909607, 0.23329311609268188, 0.2992042303085327, -0.1240188255906105, 0.3007988929748535, 0.35523521900177, -0.17229411005973816, 0.019696703180670738, -0.08502570539712906, 0.9305511713027954, -0.20576487481594086, 0.05538509041070938, 0.16624006628990173, 0.15245860815048218, 0.5891505479812622, -0.31183677911758423, 0.24211286008358002, -0.13721713423728943, -0.5443885326385498, -0.14003407955169678, -0.11192145943641663, 0.1085166409611702, 0.13344725966453552, -0.30482804775238037, 0.3906712532043457, 0.304251492023468, -0.08928143978118896, -0.05345240235328674, -0.033755846321582794, -0.19320552051067352, -0.08824101090431213, -0.169199138879776, -0.11244449764490128, -0.03404177725315094, 0.5939664840698242, -0.0418730229139328, 0.002952659036964178, 0.184417262673378, -0.021471532061696053, -0.03453404828906059, -0.17518141865730286, -0.535019040107727, 0.2652759850025177, 0.2661239504814148, -0.15403802692890167, -0.07591419667005539, 0.5716874599456787, 0.6944458484649658, -0.1355416178703308, 0.025410065427422523, -0.1389092653989792, 0.04753895848989487, 0.005984230432659388, -0.24997788667678833, -0.07929439097642899, 0.11799783259630203, 0.02790980041027069, -0.2371249496936798, -0.00895969569683075, 0.12502478063106537, 0.09458918869495392, -0.035966500639915466, 0.02415110543370247, -0.04304983466863632, -0.2812272310256958, -0.03816448152065277, 0.12983058393001556, -0.10416696965694427, 0.06698837876319885, -0.07779081165790558, -0.03739593178033829, -0.5551762580871582, 0.17271946370601654, -0.13986629247665405, -0.47182366251945496, 0.01630418375134468, 0.35861337184906006, 0.27281099557876587, -0.1444612443447113, 0.4105932116508484, 0.07937757670879364, 0.12351712584495544, -0.05825372040271759, -0.31213662028312683, 0.28126272559165955, -0.4466727375984192, 0.48265329003334045, -0.33326250314712524, 0.27624136209487915, 0.046873122453689575, 0.1860540509223938, 0.09923506528139114, 0.1407223790884018, -0.2239491045475006, -0.25911587476730347, -0.11634186655282974, 0.06243179738521576, 0.20130164921283722, 0.2372540980577469, 0.1000043973326683, 0.3003733158111572, 0.07583259791135788, -0.14643684029579163, -0.1659802496433258, 0.217605322599411, -0.2373047173023224, 0.19348324835300446, 0.14311125874519348, -0.07615312188863754, 0.25135934352874756, 0.23217569291591644, -0.05782672017812729, 0.21953850984573364, -0.09897129237651825, -0.10252442955970764, -0.04583672806620598, 0.15386280417442322, -0.09286834299564362, 0.02336137555539608, 0.23050372302532196, 0.3027399182319641, -0.015840742737054825, -0.0984349474310875, 0.6481760740280151, 0.2999516427516937, 0.12846270203590393, 0.503531813621521, 0.007453925907611847, -0.0021046996116638184, -0.45347505807876587, -0.29452335834503174, 0.211738720536232, 0.007751062512397766, 0.02006632462143898, 0.09806426614522934, -0.053189948201179504, -0.028461594134569168, -0.12614071369171143, -0.07333897799253464, 0.5804979801177979, -0.2278459668159485, -0.030416972935199738, 0.08267991244792938, -0.06774640828371048, -0.3896825909614563, 0.4106396436691284, -0.16813459992408752, -0.20662042498588562, -0.01454429142177105, -0.06960414350032806, 0.026205969974398613, -0.12124865502119064, 0.22671626508235931, 0.343180388212204, -0.2564213275909424, 0.024561140686273575, 0.37739822268486023, -0.14936205744743347, 0.31766277551651, -0.17932580411434174, -0.23064884543418884, 0.035942208021879196, -0.18040546774864197, 0.14048783481121063, 0.4447534382343292, 0.03610135242342949, 0.09672024101018906, -0.0780329778790474, 0.1191912442445755, 0.29253625869750977, -0.0684208944439888, -0.20999646186828613, 0.41743314266204834, -0.31038570404052734, 0.2381177842617035, 0.29559949040412903, -0.4263076186180115, 0.06925064325332642, 0.39716482162475586, -0.010781116783618927, 0.39508679509162903, -0.07957606017589569, 0.5769346356391907, -0.042410966008901596, -0.2923164665699005, 0.1233978196978569, 0.47119227051734924, -0.22320309281349182, -0.1391167789697647, -0.15960657596588135, -0.12543652951717377, -0.09323356300592422, 0.07866911590099335, -0.03782377764582634, 0.023122653365135193, 0.1900472491979599, 0.06850648671388626, 0.10574847459793091, 0.04262353107333183, -0.09702236205339432, 0.2900158762931824, 0.2817671597003937, -0.0030863769352436066, -0.21675728261470795, 0.3081449270248413, -0.22935813665390015, 0.02458263374865055, 0.6840301752090454, -0.021252576261758804, -0.001188434660434723, -0.3366946578025818, 0.661374032497406, 0.23841975629329681, -0.14704149961471558, 0.0022667553275823593, -0.06457337737083435, 0.02707003429532051, 0.05544881895184517, -0.025123458355665207, 0.012793399393558502, -0.03125801682472229, 0.17852087318897247, -0.12076152861118317, 0.13668978214263916, -0.48742803931236267, 0.14451369643211365, -0.04622582346200943, -0.07356961816549301, -0.2227115035057068, 0.2186492681503296, -0.2597888112068176, -0.3497091829776764, 0.11948169767856598, -0.10829153656959534, 0.07927709817886353, 0.07227565348148346, -0.021879641339182854, -0.19361571967601776, 0.29462939500808716, 0.3574347496032715, 0.4273127615451813, -0.16350217163562775, -0.11607465893030167, -0.10728009045124054, 0.017932437360286713, 0.23515433073043823, -0.26701879501342773, 0.37365302443504333, 0.08780337125062943, -0.009118743240833282, -0.019941996783018112, -0.022767141461372375, -0.1291796714067459, -0.23035679757595062, 0.07302166521549225, -0.38773882389068604, -0.23426441848278046, -0.07096324861049652, 0.18666881322860718, 0.26847174763679504, -0.3214876651763916, 0.07062427699565887, 0.36228400468826294, -0.20535308122634888, -0.04011505842208862, 0.38810986280441284, 0.007868707180023193, 0.09180700778961182, -0.019594557583332062, 0.1772877424955368, -0.06718240678310394, -0.07976941019296646, -0.05434368550777435, 0.46199774742126465, 0.14007554948329926, -0.349322110414505, 0.32373878359794617, -0.10572072863578796, 0.10218842327594757, -0.2573279142379761, -0.3548608124256134, -0.10496139526367188, 0.22014938294887543, 0.5885666012763977, -0.47772347927093506, -0.2191796451807022, 0.14009009301662445, 0.02475593239068985, 0.003798495279625058, 0.36904311180114746, 0.8464452028274536, -0.12578609585762024, -0.05672135204076767, -0.22063195705413818, -0.08467201888561249, 0.5872297883033752, -0.2355542629957199, -0.19414301216602325, 0.04367639869451523, 0.22724461555480957, -0.07927177101373672, -0.372127890586853, -0.6097914576530457, 0.14083555340766907, 0.2747107446193695, -0.0951799601316452, -0.11698746681213379, 0.4490295946598053, -0.04275628551840782, -0.13329826295375824, 0.11498118937015533, 0.06697626411914825, 0.37850457429885864, -0.3847995400428772, 0.19866828620433807, -0.31287848949432373 ]
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.1357690691947937, 0.16830268502235413, 0.03542120382189751, 0.20929817855358124, 0.347331166267395, 0.011661484837532043, 0.22899232804775238, 0.3530416488647461, -0.11994332075119019, 0.34400856494903564, 0.07694307714700699, 0.4752258062362671, -0.11414691060781479, -0.11627436429262161, -0.08180470019578934, -0.34519171714782715, 0.09187506884336472, 0.3889155983924866, 0.09787294268608093, -0.176629900932312, -0.2902544140815735, -0.03217276930809021, -0.1890510469675064, 0.14117437601089478, -0.22269713878631592, 0.03216420114040375, -0.22956371307373047, -0.10668350011110306, -0.2944523096084595, -0.4702117443084717, 0.24401621520519257, -0.026258986443281174, -0.04977208003401756, 0.4349936544895172, -0.00011067997547797859, -0.036330241709947586, 0.2661399841308594, -0.042828455567359924, 0.05340347811579704, -0.36809080839157104, -0.5844053030014038, -0.259117990732193, 0.03637589514255524, -0.3373256325721741, 0.0205996073782444, 0.02729000896215439, -0.009157435968518257, -0.20540104806423187, 0.2047612965106964, 0.3369055688381195, 0.2373395711183548, 0.14034943282604218, -0.12280295789241791, -0.32474830746650696, 0.3542509973049164, -0.2880481481552124, 0.03597263991832733, 0.23953469097614288, -0.25173628330230713, -0.1955939531326294, -0.15826672315597534, 0.32484763860702515, -0.051324717700481415, 0.0017431676387786865, 0.2958134710788727, 0.24457991123199463, -0.08563605695962906, 0.022662030532956123, 0.08799915015697479, 0.1774822473526001, 0.015308812260627747, -0.22623592615127563, -0.39052683115005493, 0.2721066176891327, -0.050880398601293564, -0.23268616199493408, 0.008508928120136261, -0.23766076564788818, 0.03292655944824219, -0.20677068829536438, -0.3441341519355774, -0.12785089015960693, -0.19459223747253418, 0.05517997592687607, -0.013127446174621582, 0.3923620581626892, 0.0053676157258450985, 0.039123840630054474, 0.30179429054260254, -0.16332608461380005, -0.08806407451629639, -0.07636186480522156, 0.10499061644077301, 0.20261672139167786, -0.07028229534626007, 0.010893948376178741, 0.29548779129981995, 0.09097110480070114, 0.1854870319366455, -0.5502121448516846, 0.022006291896104813, 0.018176041543483734, 0.0533541776239872, 0.2064606249332428, 0.01910606026649475, 0.35059475898742676, -0.15415897965431213, 0.21645410358905792, 0.23250247538089752, -0.06497267633676529, -0.17116066813468933, -0.05479273945093155, -0.031594812870025635, -0.07886932790279388, 0.48904329538345337, 0.17217594385147095, -0.22105558216571808, -0.20104676485061646, -0.23764102160930634, 0.18538323044776917, -0.47414344549179077, -0.04529687762260437, 0.21064187586307526, 0.43730032444000244, -0.19174616038799286, 0.14061860740184784, -0.19002340734004974, 0.04718385264277458, -0.17881299555301666, 0.1952170729637146, -0.28288328647613525, 0.2730627954006195, -0.3546576499938965, -0.09771503508090973, 0.10494944453239441, -0.19916541874408722, 0.37559545040130615, 0.06752675771713257, 0.4369856119155884, 0.17163263261318207, -0.1321006566286087, -0.27425867319107056, 0.15508225560188293, -0.0190751813352108, 0.04585598036646843, -0.05882611870765686, 0.19235841929912567, -0.13887566328048706, -0.23383519053459167, 0.1322219967842102, -0.28978243470191956, -0.32722657918930054, 0.04075908288359642, 0.22000296413898468, -0.1817960888147354, -0.04271337389945984, -0.21427997946739197, 0.051742084324359894, 0.15659861266613007, -0.251781702041626, -0.19646981358528137, -0.2444104701280594, -0.3549412488937378, -0.22861571609973907, 0.37912794947624207, 0.16252776980400085, -0.2698103189468384, -0.04798123985528946, -0.1046234518289566, 0.2611270844936371, 0.2512710392475128, 0.19372804462909698, -0.23171626031398773, 0.314314603805542, -0.1103280708193779, 0.08381976187229156, 0.32694515585899353, -0.5421455502510071, -0.49349597096443176, -0.2773630917072296, 0.1178702563047409, -0.1706850230693817, 0.033009037375450134, 0.06720459461212158, 0.09500985592603683, 0.039080291986465454, 0.2723291218280792, -0.1352100372314453, 0.003677157685160637, 0.1628977656364441, -0.2928627133369446, -0.17662464082241058, 0.1568983942270279, -0.042933352291584015, 0.4267222285270691, -0.20147904753684998, -0.16157513856887817, 0.2878130078315735, -0.03856375068426132, -0.14646069705486298, -0.02065727673470974, 0.08098874241113663, 0.570014476776123, -0.2868598699569702, 0.2906681001186371, -0.2317189872264862, 0.018132075667381287, 0.1943652331829071, -0.00776640884578228, 0.26457566022872925, -0.2120673805475235, -0.11550169438123703, -0.46186506748199463, 0.1162809357047081, -0.09277012944221497, 0.10532821714878082, 0.15487833321094513, -0.05573494732379913, 0.2700786888599396, 0.17274245619773865, -0.06295190751552582, -0.29859286546707153, 0.07403729856014252, -0.1582506150007248, 0.07573531568050385, 0.22993607819080353, -0.2951521873474121, -0.2042701691389084, 0.32502543926239014, 0.27694937586784363, 0.30963537096977234, 0.07138588279485703, -0.18194153904914856, 0.1881350576877594, -0.046010907739400864, -0.06934219598770142, 0.09172464907169342, 0.21449866890907288, 0.05826924741268158, -0.404930055141449, 0.08287445455789566, 0.130406454205513, 0.3137609362602234, 0.04756253957748413, -0.17442426085472107, 0.47645390033721924, 0.06484668701887131, 0.12584637105464935, -0.007634952664375305, -0.017629947513341904, 0.26788070797920227, 0.14166390895843506, 0.2068476527929306, -0.32847484946250916, 0.15577025711536407, -0.0036579519510269165, 0.16810980439186096, -0.02147500030696392, 0.18559569120407104, -0.11678441613912582, 0.5808293223381042, 0.372336745262146, 0.08879803121089935, 0.2555124759674072, -0.22770097851753235, -0.1590942144393921, -0.13345791399478912, -0.2853342592716217, 0.34176158905029297, 0.23367395997047424, -0.07861800491809845, -0.03364734351634979, -0.15374663472175598, -0.07750578224658966, 0.12493928521871567, 0.15407146513462067, -0.07389573752880096, -0.03803610801696777, 0.33150923252105713, -0.05977465584874153, -0.19040364027023315, -0.12014314532279968, -0.020325593650341034, 0.4591864347457886, -0.3168019950389862, 0.29474061727523804, -0.13165462017059326, 0.18908295035362244, -0.049390047788619995, -0.6532360911369324, -0.05919940397143364, -0.37938567996025085, 0.23732611536979675, -0.08838780224323273, -0.040393341332674026, 0.3508841097354889, 0.057936619967222214, 0.17760197818279266, 0.17115022242069244, -0.10744141787290573, -0.2738967835903168, -0.5320509076118469, -0.2634781002998352, 0.0622551403939724, -0.11565875262022018, 0.06578077375888824, 0.2517993152141571, -0.2744710445404053, 0.11204074323177338, -0.13332106173038483, -0.5113043189048767, 0.09967944771051407, -0.34083086252212524, 0.47031235694885254, 0.33213311433792114, -0.17790760099887848, -0.564125120639801, -0.23291833698749542, 0.46546608209609985, -0.18950693309307098, -0.07044069468975067, 0.27366721630096436, -0.060283511877059937, -0.09715382009744644, 0.0020502395927906036, -0.3575298488140106, 0.03412042558193207, 0.0028458572924137115, 0.029158297926187515, 0.07969421148300171, 0.16522091627120972, -0.17094336450099945, 0.26135388016700745, 0.29877299070358276, -0.06807805597782135, -0.0711866095662117, -0.21960629522800446, -0.40313607454299927, 0.550020158290863, -0.19090843200683594, -0.28250572085380554, -0.16572785377502441, -0.16925784945487976, 0.19878222048282623, 0.04877816140651703, -0.1322619765996933, -0.5942788124084473, -0.0986289456486702, 0.17932716012001038, -0.07645202428102493, 0.2097875326871872, 0.15287190675735474, 0.3122173249721527, -0.14860974252223969, -0.24542441964149475, -0.16196824610233307, 0.17450939118862152, -0.17106661200523376, 0.1097460389137268, -0.23031574487686157, 0.33251312375068665, 0.10211846232414246, 0.9215052723884583, 0.192843958735466, -0.23656491935253143, 0.26000797748565674, -0.18819065392017365, 0.11398041248321533, -0.1771748960018158, -0.424674391746521, 0.09520889818668365, -0.046800658106803894, -0.10128463804721832, 0.3070327639579773, -0.05221765488386154, 0.10643838346004486, -0.217716783285141, -0.07575714588165283, -0.287213534116745, -0.34654316306114197, 0.10412180423736572, -0.05541829764842987, 0.2312716245651245, 0.24523743987083435, 0.23111492395401, -0.4509411156177521, -0.297667920589447, 0.1437607854604721, -0.31377750635147095, 0.009573772549629211, -0.1711256504058838, 0.09739138185977936, -0.32180237770080566, -0.3403783142566681, 0.4270811080932617, 0.48816028237342834, 0.29873839020729065, 0.04578130319714546, 0.13438373804092407, -0.04369518160820007, -0.1290871948003769, 0.4031526446342468, -0.024133699014782906, 0.17420896887779236, 0.009117281064391136, 0.04972713440656662, -0.03846414014697075, 0.12215420603752136, -0.4014151990413666, 0.11896564811468124, 0.026224374771118164, 0.42249977588653564, -0.2948804199695587, 0.11390161514282227, 0.1677742302417755, 0.034198809415102005, -0.17368857562541962, -0.0720660537481308, -0.4913320243358612, -0.10671708732843399, -0.07342281192541122, 0.3320939242839813, 0.013650471344590187, 0.3042747974395752, 0.019963955506682396, -0.0697360634803772, 0.06238279491662979, -0.2804684042930603, 0.21101981401443481, 0.3583401143550873, 0.1956290602684021, -0.009336776100099087, 0.26918986439704895, -0.008066888898611069, -0.23225438594818115, 0.5070558190345764, 0.18468430638313293, -0.24730387330055237, -0.6065490245819092, -0.19100064039230347, 0.000639631412923336, 0.5480846166610718, 0.07416903227567673, -0.1902199685573578, -0.09978016465902328, -0.07316198945045471, 0.060219377279281616, -0.0679086223244667, 0.3978588283061981, 0.40668031573295593, 0.043478745967149734, -0.31723713874816895, -0.17843621969223022, 0.5495808124542236, 0.28272026777267456, -0.11206929385662079, 0.019673053175210953, 0.5535873174667358, -0.23788878321647644, 0.4279630184173584, 0.332915335893631, 0.9520227313041687, -0.12164324522018433, -0.0361442007124424, 0.2687775492668152, 0.059180617332458496, 0.5790296196937561, 0.10378061234951019, 0.22352176904678345, -0.41277414560317993, -0.2533380091190338, 0.019741332158446312, -0.1117400974035263, -0.05867372453212738, -0.10412560403347015, -0.36046844720840454, 0.4359681010246277, -0.28159359097480774, 0.25541484355926514, 0.08813893795013428, -0.08588239550590515, 0.1566115915775299, -0.19374941289424896, -0.35088735818862915, 0.17155684530735016, -0.06478342413902283, 0.010442141443490982, -0.17810919880867004, -0.0838005468249321, -0.12935049831867218, -0.35481393337249756, -0.24609583616256714, 0.05186066776514053, -0.04929991438984871, 0.11462832242250443, -0.11722224950790405, -0.30848920345306396, 0.06023631617426872, 0.05669077858328819, 0.4155309796333313, 0.4209897816181183, -0.2582198977470398, 0.2679955065250397, -0.06488143652677536, 0.18117573857307434, 0.10855841636657715, 0.0717809721827507, 0.10419057309627533, -0.05523909628391266, -0.15788374841213226, 0.23580554127693176, -0.0819145068526268, -0.10716906189918518, -0.08343294262886047, 0.015691149979829788, 0.26332366466522217, -0.23502638936042786, 0.04737011343240738, -0.13923504948616028, 0.14518563449382782, -0.32956191897392273, 0.1802757978439331, 0.1452363133430481, -0.15700215101242065, 0.31313472986221313, 0.001881185919046402, -0.15457704663276672, 0.1093609631061554, 0.4137760102748871, 0.10251087695360184, -0.02217789553105831, 0.43742629885673523, -0.14293742179870605, -0.25962668657302856, -0.13753043115139008, -0.16145849227905273, 0.1663227379322052, -0.167038232088089, 0.18606942892074585, 0.09461614489555359, 0.23064984381198883, 0.052268777042627335, 0.571916401386261, 0.1177770271897316, -0.16961652040481567, 0.13638705015182495, -0.3092877268791199, -0.10828250646591187, 0.11927969753742218, -0.08645810186862946, -0.007682975381612778, 0.0035062171518802643, 0.16891750693321228, -0.15052781999111176, 0.3258642852306366, -0.3601909875869751, 0.012650522403419018, -0.4700380563735962, 0.20612618327140808, -0.24738365411758423, -0.017308324575424194, 0.2452009916305542, -0.02309849113225937, 0.10073554515838623, 0.2630828619003296, -0.1777680218219757, -0.22054177522659302, -0.12873584032058716, 0.09163887053728104, 0.11044774949550629, 0.05460905283689499, -0.006480704993009567, 0.12290036678314209, -0.13659626245498657, -0.21558554470539093, -0.12198029458522797, 0.29916173219680786, -0.007604628801345825, 0.24530266225337982, 0.18210972845554352, 0.10808153450489044, 0.19980588555335999, -0.21484532952308655, 0.1180737167596817, 0.19978749752044678, -0.029373634606599808, 0.22186054289340973, -0.00793096050620079, -0.1382146030664444, 0.26353567838668823, 0.02949916198849678, 0.464399516582489, -0.022497210651636124, 0.2424796223640442, -0.1946609765291214, -0.10036163032054901, 0.1491231471300125, 0.28663602471351624, 0.3719913363456726, -0.1622956395149231, -0.1772247701883316, 0.3476015031337738, 0.197205051779747, -0.41307830810546875, -0.18333670496940613, -0.015084922313690186, 0.21775642037391663, 0.0468948595225811, 0.15872454643249512, -0.03538007289171219, -0.05450229346752167, 0.02749498561024666, -0.06823958456516266, 0.1834890991449356, -0.20672538876533508, -0.0511268675327301, 0.013319827616214752, -0.07304730266332626, 0.12876491248607635, 0.3544396460056305, 0.08956396579742432, 0.33181947469711304, 0.5564889907836914, -0.2681504786014557, 0.4829031825065613, -0.20444843173027039, 0.08783118426799774, -0.13256895542144775, 0.028529223054647446, -0.10729652643203735, 0.13658666610717773, 0.1400085985660553, 0.05896778404712677, 0.015856757760047913, 0.826676607131958, -0.08034670352935791, 0.10146057605743408, -0.38873597979545593, 0.16838572919368744, -0.011994730681180954, -0.11710943281650543, -0.05477607622742653, -0.2624053359031677, -0.21067269146442413, 0.08111704885959625, 0.01589144393801689, 0.12458255887031555, 0.4215359091758728, 0.20927540957927704, 0.1443512886762619, -0.2554774880409241, -0.17487624287605286, 0.4411923587322235, 0.2574708163738251, -0.2895912528038025, 0.10989320278167725, 0.15922541916370392, -0.1117752194404602, -0.1280728429555893, 0.35117366909980774, 0.2745378017425537, 0.3522101044654846, -0.1776162087917328, -0.14803682267665863, -0.26101401448249817, -0.04314466938376427, -0.0026832371950149536, 0.37427476048469543, 0.18803390860557556, 0.04640544578433037, 0.14897406101226807, 0.15280885994434357, -0.1990126073360443, 0.2535201609134674, 0.020650770515203476, 0.4681144654750824, -0.06584757566452026, 0.31740671396255493, 0.03983430191874504, 0.03241922706365585, 0.003623034805059433, -0.20029130578041077, -0.29930442571640015, 0.13302943110466003, 0.05175447091460228, 0.26076462864875793, -0.023701375350356102, -0.21177275478839874, 0.10490059107542038, 0.13954247534275055, 0.44094181060791016, 0.2791264057159424, 0.14694653451442719, -0.6404081583023071, -0.04492910951375961, -0.45181962847709656, 0.1629379540681839, -0.020812053233385086, 0.3008386492729187, -0.15642499923706055, -0.041483134031295776, -0.13594257831573486, 0.264983594417572, -0.020406514406204224, -0.10176113992929459, -0.21036051213741302, 0.0730622410774231, -0.41507261991500854, 0.03966958075761795, -0.395205020904541, -0.4520663321018219, 0.13549649715423584, -0.19344761967658997, -0.027733001857995987, -0.3400951027870178, 0.12211652845144272, -0.25607967376708984, -0.2969568371772766, 0.12148463726043701, 0.14311566948890686, 0.6734746694564819, 0.2715197205543518, 0.4250795543193817, -0.05461198091506958, 0.05037679523229599, 0.08250309526920319, -0.16548387706279755, -0.025607530027627945, -0.009934626519680023, 0.008709948509931564, 0.14728817343711853, -0.14289353787899017, 0.0028559118509292603, -0.3011898696422577, 0.17602241039276123, 0.07366235554218292, -0.20878760516643524, -0.352433979511261, 0.10069885104894638, -0.017917674034833908, -0.09209026396274567, -0.26639261841773987, 0.16676771640777588, -0.018794000148773193, 0.37403127551078796, -0.40581995248794556, -0.26538142561912537, 0.5419951677322388, -0.5197662115097046, -0.35982248187065125, -0.08075040578842163, 0.2593522071838379, 0.04813568294048309, -0.36897027492523193, -0.7990333437919617, -0.007475599646568298, 0.36574578285217285, 0.2452620565891266, -0.2954542338848114, -0.00318307988345623, -0.06107189133763313, 0.13613788783550262, -0.1206352710723877, 0.24167637526988983, -0.04141215234994888, -0.11262869089841843, 0.06809729337692261, -0.2633720338344574 ]
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.02175041101872921, 0.21805182099342346, -0.10638952255249023, 0.4800757169723511, 0.2548152208328247, 0.12689897418022156, 0.31882500648498535, 0.3147781491279602, 0.21053001284599304, 0.08051854372024536, -0.18472576141357422, 0.23965847492218018, 0.3409661650657654, -0.2226553112268448, 0.20596587657928467, -0.35970139503479004, 0.20958952605724335, 0.05406457930803299, -0.3535148501396179, -0.28047752380371094, -0.20114004611968994, -0.04458030313253403, -0.23024322092533112, 0.2511763870716095, -0.39139482378959656, -0.06027203053236008, -0.15132078528404236, 0.046415142714977264, -0.027870697900652885, -0.27797889709472656, 0.05632573366165161, -0.2114447057247162, -0.26335495710372925, 0.37351688742637634, -0.0001048580597853288, -0.035167451947927475, 0.32872647047042847, 0.03193392604589462, -0.1813066005706787, 0.16145476698875427, -0.41026636958122253, -0.24407567083835602, -0.1773911416530609, -0.42987799644470215, 0.01495116576552391, -0.13564953207969666, 0.060983236879110336, 0.13262994587421417, 0.2397332787513733, 0.2525067925453186, 0.26513829827308655, -0.1925641894340515, -0.08548492193222046, -0.14529740810394287, 0.23078134655952454, 0.20068667829036713, -0.13397659361362457, 0.10437749326229095, -0.17938148975372314, -0.08103369921445847, -0.34280890226364136, 0.4742649793624878, -0.1878856122493744, -0.08466324210166931, -0.0016520656645298004, 0.058264732360839844, 0.0034026727080345154, -0.1630994826555252, 0.34649744629859924, 0.40743133425712585, 0.37783920764923096, -0.2557980418205261, -0.21049381792545319, 0.03599537909030914, -0.1938415914773941, -0.01990678533911705, 0.22064051032066345, 0.4031761586666107, -0.12455840408802032, 0.23142819106578827, -0.00013227411545813084, -0.16584903001785278, -0.1803625524044037, 0.33550697565078735, -0.07780058681964874, 0.3513070046901703, 0.0784134492278099, -0.06827188283205032, -0.12366144359111786, -0.2863450050354004, 0.10123927146196365, -0.1975313127040863, 0.06825576722621918, 0.34700679779052734, 0.04467799514532089, 0.052592113614082336, 0.11366397142410278, 0.2080915868282318, 0.2858697175979614, -0.13336363434791565, -0.2652037739753723, -0.08826473355293274, -0.13670581579208374, 0.03731288015842438, 0.11675703525543213, -0.2515016496181488, -0.03222838044166565, 0.1256178617477417, 0.2220248281955719, 0.15602271258831024, -0.10695856809616089, 0.24130773544311523, 0.1984226405620575, -0.21498534083366394, -0.08748869597911835, -0.10442682355642319, 0.08139465749263763, -0.18357428908348083, -0.30461999773979187, 0.5948896408081055, -0.371134877204895, -0.13187645375728607, -0.29797688126564026, 0.34579998254776, -0.12816399335861206, -0.045885421335697174, 0.14154262840747833, 0.05135301128029823, -0.2917693853378296, -0.18378771841526031, -0.22168509662151337, 0.2715582251548767, -0.1283203810453415, 0.03290748596191406, -0.004677936434745789, -0.1679581254720688, 0.2080502212047577, 0.3736843168735504, -0.16230745613574982, -0.1798134744167328, -0.3341548442840576, -0.27878493070602417, 0.19353032112121582, 0.18238967657089233, -0.19248677790164948, -0.017530377954244614, 0.1466524451971054, -0.4668092131614685, -0.05286869406700134, 0.21004509925842285, -0.14897918701171875, 0.008156295865774155, -0.34416642785072327, 0.29146623611450195, -0.052996933460235596, -0.03882942348718643, 0.25707828998565674, 0.15823853015899658, 0.350528359413147, 0.18394790589809418, 0.31428849697113037, 0.3185165524482727, -0.11661770939826965, -0.055774565786123276, 0.1568240076303482, 0.38042330741882324, -0.1299566626548767, -0.2104954570531845, -0.06217525899410248, -0.013019979000091553, 0.3333047330379486, 0.3461739718914032, 0.05019461363554001, 0.6008325219154358, -0.05446206033229828, 0.14380809664726257, 0.20689308643341064, -0.015454275533556938, -0.3052200973033905, 0.20744159817695618, 0.03765346109867096, 0.0793062373995781, 0.019768424332141876, 0.01750071719288826, 0.16821740567684174, 0.24184952676296234, 0.3015211820602417, 0.24455943703651428, 0.3042181432247162, 0.16392789781093597, -0.3787771761417389, -0.36027151346206665, 0.3326551914215088, -0.06162464991211891, 0.1865498125553131, -0.037761710584163666, 0.17373916506767273, 0.4814150929450989, 0.3857314884662628, -0.14468935132026672, 0.10190940648317337, 0.31644660234451294, -0.014403294771909714, 0.1753052920103073, 0.2112831175327301, -0.11051055788993835, 0.02690284326672554, -0.01182612031698227, 0.13727620244026184, 0.2664976119995117, -0.24428467452526093, -0.36165791749954224, -0.28676465153694153, 0.0922367200255394, -0.30690670013427734, -0.3633963167667389, 0.2632480561733246, -0.017885863780975342, -0.10313238203525543, 0.2370317429304123, 0.18502570688724518, -0.04536236822605133, -0.452641099691391, -0.016540076583623886, -0.20006822049617767, 0.26412275433540344, -0.3693942725658417, 0.11417470872402191, -0.25372153520584106, 0.2936861515045166, -0.010053575038909912, 0.2576889097690582, -0.15807601809501648, 0.06851330399513245, 0.001547491643577814, 0.347123384475708, 0.150938481092453, -0.026889964938163757, 0.241343155503273, -0.5917645692825317, 0.13138721883296967, 0.3716409504413605, 0.1322365701198578, 0.013171069324016571, -0.28301480412483215, 0.1229897290468216, 0.1055336594581604, -0.06031476706266403, -0.06612131744623184, -0.040979787707328796, 0.1868351846933365, -0.14940586686134338, 0.11047304421663284, -0.39863526821136475, 0.1634109765291214, 0.21369941532611847, 0.044237036257982254, 0.29239630699157715, -0.5543639659881592, -0.07551572471857071, 0.3965308666229248, -0.003992995247244835, 0.45066386461257935, -0.03175479918718338, -0.09553570300340652, -0.17222446203231812, 0.31574779748916626, -0.16683019697666168, -0.00618039071559906, 0.06693985313177109, 0.12141391634941101, 0.09681961685419083, -0.14362947642803192, -0.3810414969921112, 0.2992762327194214, 0.07033964991569519, 0.12098966538906097, 0.007881615310907364, 0.1264985203742981, 0.17453177273273468, -0.4669390916824341, 0.28973427414894104, -0.1302143782377243, 0.27663692831993103, -0.509198009967804, 0.09747054427862167, -0.15479090809822083, -0.47501838207244873, -0.22191199660301208, -0.08729297667741776, -0.1623678058385849, -0.1715693324804306, 0.040090154856443405, -0.2734845280647278, -0.34081780910491943, 0.2923768162727356, 0.07143406569957733, 0.10967803001403809, 0.15218760073184967, -0.031182488426566124, -0.12064172327518463, -0.32507264614105225, -0.15097162127494812, 0.17254097759723663, 0.13317784667015076, 0.11093821376562119, 0.29944419860839844, -0.293317973613739, -0.1828278750181198, -0.5233902335166931, -0.40140074491500854, 0.21496309340000153, -0.034192442893981934, 0.19378060102462769, -0.015656612813472748, 0.3246050775051117, -0.1813628375530243, -0.28170695900917053, 0.13342656195163727, 0.13059456646442413, -0.06676631420850754, 0.010415473952889442, -0.20012196898460388, 0.15185821056365967, -0.1306823343038559, -0.48909488320350647, -0.04606626182794571, -0.22386640310287476, 0.09648168832063675, -0.05205332115292549, 0.3584502935409546, 0.45124733448028564, 0.1462245136499405, 0.15251493453979492, 0.13142865896224976, 0.28287050127983093, -0.38252586126327515, -0.09086909890174866, 0.23407548666000366, -0.1905331164598465, -0.31378188729286194, -0.10740997642278671, -0.17809882760047913, -0.09167063236236572, 0.05353540927171707, -0.511540412902832, 0.09905561804771423, -0.06603290885686874, 0.44413304328918457, 0.20053774118423462, 0.08491158485412598, -0.010728128254413605, 0.039827611297369, -0.08192290365695953, -0.18409410119056702, 0.2096169888973236, -0.04310872405767441, -0.1930231750011444, 0.16795748472213745, -0.016227319836616516, 0.5018723011016846, 0.2536745071411133, 0.5470894575119019, 0.25646552443504333, 0.22090201079845428, 0.16818007826805115, -0.17500869929790497, 0.2536377012729645, -0.07640276104211807, -0.21701471507549286, 0.2947625517845154, -0.020139962434768677, -0.19617809355258942, 0.3155839741230011, -0.19069784879684448, -0.24182622134685516, -0.06455132365226746, 0.08986113965511322, -0.4327481985092163, -0.21506904065608978, 0.06882230192422867, 0.011737175285816193, 0.2894497513771057, 0.031360924243927, 0.20154103636741638, 0.16569563746452332, -0.25683534145355225, 0.07451470196247101, 0.015312425792217255, -0.0868687555193901, 0.011871671304106712, 0.15803863108158112, -0.21254627406597137, -0.29473158717155457, -0.02581632137298584, 0.13466492295265198, 0.09236681461334229, -0.26486480236053467, -0.1244303360581398, 0.12070871889591217, 0.023863747715950012, 0.242690771818161, -0.29242298007011414, 0.16279128193855286, 0.10818858444690704, 0.23686888813972473, -0.24579022824764252, 0.0996566116809845, -0.28265008330345154, 0.38315874338150024, 0.4021666646003723, 0.11134067177772522, -0.2951382100582123, -0.09984709322452545, 0.5115594267845154, 0.21869704127311707, -0.1767621785402298, 0.12252712994813919, -0.1420460194349289, -0.11680286377668381, -0.26882055401802063, 0.37437939643859863, 0.1339215636253357, 0.17947709560394287, -0.08438370376825333, 0.14171917736530304, 0.1423681229352951, 0.525124192237854, 0.047772593796253204, 0.1895800530910492, 0.2533741891384125, 0.2911838889122009, -0.09965978562831879, -0.026024460792541504, -0.07818304002285004, 0.07054957747459412, 0.49364182353019714, -0.19756852090358734, -0.2303660809993744, -0.2939319610595703, -0.29439839720726013, 0.06499277055263519, 0.39741161465644836, -0.03312702104449272, -0.0881752297282219, 0.17492206394672394, -0.17049917578697205, -0.13043953478336334, -0.09501464664936066, 0.1914551854133606, 0.04887384921312332, -0.1440318524837494, -0.47611144185066223, 0.6198274493217468, -0.12646935880184174, 0.027377910912036896, 0.021713558584451675, -0.026950538158416748, -0.41056889295578003, 0.1700829267501831, 0.2546805739402771, 0.9464245438575745, 0.29106569290161133, 0.13725659251213074, 0.3389456570148468, 0.13678306341171265, 0.17450182139873505, 0.13691338896751404, -0.14988985657691956, -0.37857961654663086, 0.14222493767738342, 0.004809727892279625, 0.09867613017559052, 0.07997264713048935, 0.05617409199476242, -0.29269498586654663, 0.09209257364273071, -0.40517687797546387, 0.14875385165214539, 0.2856560945510864, 0.08716891705989838, 0.11060266941785812, -0.25645413994789124, -0.20891833305358887, 0.1717502623796463, -0.06745996326208115, 0.05015616863965988, -0.2172485589981079, -0.04791729897260666, -0.2214338779449463, -0.05939366668462753, -0.42983877658843994, 0.11017408221960068, -0.014606602489948273, 0.43236178159713745, -0.04743724688887596, -0.35898005962371826, -0.1632196456193924, 0.3142886161804199, 0.0068223848938941956, 0.23232240974903107, -0.21905115246772766, 0.16388121247291565, 0.0551237054169178, 0.10459011793136597, 0.18378892540931702, 0.20568682253360748, 0.4542141854763031, -0.041017115116119385, -0.33032962679862976, 0.07187269628047943, -0.15094183385372162, -0.08435314893722534, -0.1562625914812088, -0.09055770933628082, -0.14869190752506256, -0.12676195800304413, -0.2030935287475586, 0.03746744617819786, -0.14494328200817108, -0.3290223777294159, 0.21002140641212463, 0.026608657091856003, -0.005511022172868252, -0.06271802634000778, 0.10272259265184402, -0.4178875982761383, -0.06735387444496155, 0.12032588571310043, 0.20124447345733643, 0.24645817279815674, 0.3070990741252899, 0.33858129382133484, -0.39489322900772095, -0.3434702455997467, 0.0073812007904052734, -0.29249051213264465, -0.25705283880233765, -0.10342690348625183, -0.29365938901901245, -0.015826575458049774, -0.263645738363266, 0.12822100520133972, 0.015287661924958229, 0.013604305684566498, -0.14665526151657104, -0.42719802260398865, -0.0610140860080719, 0.3576846122741699, 0.15517327189445496, 0.027169419452548027, 0.1670849323272705, 0.08228400349617004, 0.20623499155044556, -0.04654860496520996, -0.41552209854125977, 0.09198407828807831, -0.31354981660842896, 0.13152439892292023, -0.056787773966789246, 0.06734053790569305, -0.22172938287258148, -0.21552152931690216, 0.1608971208333969, -0.23916377127170563, -0.09593597799539566, -0.31259486079216003, -0.15467014908790588, 0.09461825340986252, 0.06969310343265533, -0.09805098176002502, 0.030893344432115555, -0.004627427086234093, 0.10058610141277313, -0.2756652534008026, 0.04218963906168938, 0.122203029692173, -0.009229116141796112, 0.3724428415298462, -0.02678576484322548, 0.19259881973266602, 0.03174304962158203, -0.13912303745746613, -0.0515315979719162, 0.25926169753074646, -0.07168181985616684, 0.27718842029571533, 0.04905564710497856, -0.056728899478912354, 0.014744828455150127, 0.0316857174038887, -0.07323901355266571, 0.038092222064733505, 0.24492645263671875, -0.23753176629543304, -0.04148586094379425, 0.3766602873802185, 0.10834982991218567, 0.3124464750289917, -0.3910883367061615, -0.08670646697282791, -0.13809749484062195, 0.3295796811580658, -0.19391842186450958, 0.06950691342353821, 0.0026595890522003174, -0.28764253854751587, 0.05472959205508232, 0.11315387487411499, 0.0939885675907135, -0.2414282113313675, -0.0041070133447647095, 0.19157499074935913, 0.07467970997095108, -0.25295209884643555, 0.22698210179805756, 0.38038358092308044, 0.013835553079843521, 0.17786216735839844, -0.06332547217607498, 0.0702817365527153, -0.06161615997552872, 0.34063392877578735, 0.3166201710700989, -0.0080494936555624, 0.2981337606906891, 0.21728262305259705, 0.04153062403202057, 0.003594428300857544, 0.3930792510509491, 0.16770638525485992, -0.46279990673065186, 0.010360602289438248, 0.12488363683223724, 0.07465839385986328, 0.31240278482437134, -0.11103221774101257, -0.0987582877278328, 0.123755544424057, -0.3691430389881134, -0.15217840671539307, -0.11007093638181686, -0.15530171990394592, 0.049377962946891785, 0.043163884431123734, -0.015778131783008575, -0.23110966384410858, 0.029591970145702362, -0.026492305099964142, -0.3002966046333313, -0.43458402156829834, 0.5299288034439087, 0.14409494400024414, 0.11757330596446991, -0.47871696949005127, 0.14882247149944305, 0.00819350779056549, -0.09731937944889069, -0.3266996145248413, 0.6328181028366089, 0.32838305830955505, 0.20060820877552032, -0.1508839726448059, 0.0393681526184082, -0.15786883234977722, -0.13005061447620392, 0.018374640494585037, -0.0011696647852659225, 0.18581010401248932, -0.12091891467571259, 0.40003812313079834, 0.14906376600265503, -0.24662086367607117, -0.18110300600528717, 0.5726726055145264, 0.2986353635787964, 0.030012987554073334, -0.31709420680999756, -0.06359628587961197, -0.15255936980247498, 0.06468334794044495, -0.13511168956756592, -0.4166485667228699, 0.017568696290254593, 0.5091850757598877, 0.03153255209326744, 0.21703770756721497, -0.15780384838581085, 0.12605595588684082, 0.12560272216796875, 0.5439810156822205, 0.4771566092967987, 0.32151198387145996, 0.03343411162495613, -0.21028238534927368, -0.5221920013427734, 0.11392203718423843, -0.3307034969329834, 0.061185404658317566, 0.19333051145076752, 0.27056965231895447, -0.04038085788488388, 0.24713322520256042, -0.16483964025974274, -0.08545096218585968, -0.023844629526138306, 0.17174209654331207, -0.2824484705924988, -0.08141715824604034, 0.1719481348991394, 0.14858202636241913, -0.280548095703125, -0.33227965235710144, 0.3170488774776459, -0.2754190266132355, 0.14661496877670288, -0.072672039270401, -0.18095922470092773, 0.1821584850549698, 0.37283289432525635, 0.3264462947845459, 0.1073775589466095, 0.21220523118972778, -0.2185540497303009, -0.01222157571464777, -0.08838984370231628, -0.2975088059902191, 0.07032771408557892, 0.6526834964752197, 0.06426623463630676, 0.11923582851886749, 0.15205861628055573, -0.2892915606498718, 0.17415718734264374, 0.552471935749054, 0.06020672619342804, -0.07462725043296814, -0.2985333502292633, -0.02496163919568062, 0.10739653557538986, -0.048541124910116196, -0.26359984278678894, 0.18225246667861938, -0.1529705971479416, 0.0791880413889885, -0.10504862666130066, -0.6924176812171936, 0.179193377494812, -0.4743669033050537, -0.34941843152046204, -0.2618207037448883, 0.2053394317626953, 0.17791247367858887, -0.04780134558677673, -0.4104759693145752, -0.13513228297233582, 0.31468838453292847, -0.12380311638116837, -0.3916374742984772, -0.028204556554555893, -0.03882443532347679, 0.1189860999584198, -0.16891337931156158, 0.21358999609947205, 0.05609770864248276, -0.3986985683441162, 0.042654309421777725, -0.5303534865379333 ]
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.23152734339237213, 0.024640247225761414, -0.02236603945493698, 0.45745646953582764, 0.17442429065704346, 0.22958096861839294, -0.007371064275503159, 0.5081835985183716, -0.03165240213274956, 0.01912546157836914, -0.18429750204086304, -0.06401316076517105, -0.009163699112832546, 0.3338086009025574, -0.04336623102426529, -0.21947014331817627, -0.11076713353395462, 0.1606067419052124, 0.14076851308345795, 0.05975060164928436, -0.14481380581855774, 0.20090515911579132, -0.21544142067432404, -0.07255686819553375, -0.2707112431526184, -0.01300717331469059, 0.17583714425563812, 0.3205575942993164, 0.08506079763174057, -0.5288680791854858, 0.20255833864212036, -0.173953115940094, 0.025822222232818604, 0.5030128359794617, -0.00011122844443889335, 0.04866430163383484, 0.4246918559074402, -0.0443260595202446, -0.3031124472618103, 0.08027097582817078, -0.3098662495613098, -0.24286018311977386, 0.14436493813991547, -0.03201036900281906, -0.3313591480255127, -0.19015035033226013, -0.23360078036785126, -0.3375604748725891, 0.24932359158992767, 0.6167078018188477, 0.23858052492141724, 0.3121444284915924, 0.06087354198098183, 0.01650763303041458, -0.1109834685921669, -0.1475733071565628, -0.02267727255821228, 0.3512018620967865, -0.02152082324028015, 0.0317077562212944, 0.17848920822143555, 0.2144182324409485, 0.028754161670804024, 0.10949893295764923, 0.12858065962791443, -0.12856145203113556, 0.2033368945121765, -0.10635043680667877, 0.14491628110408783, 0.38468408584594727, 0.3563733398914337, -0.24207353591918945, -0.15195046365261078, -0.3080810606479645, -0.19866187870502472, -0.2773953378200531, 0.25658246874809265, 0.19997580349445343, -0.16248878836631775, 0.1661827713251114, -0.39458173513412476, 0.298767626285553, 0.058954209089279175, 0.08596666902303696, -0.19323255121707916, 0.24121637642383575, 0.15170733630657196, -0.02654588222503662, 0.02661210671067238, 0.09625972807407379, 0.16327156126499176, -0.19784195721149445, -0.06486056745052338, 0.2136574685573578, -0.6099309325218201, -0.22180664539337158, -0.30991750955581665, 0.49770623445510864, -0.01442309282720089, -0.05148341506719589, -0.11401231586933136, -0.01710406318306923, 0.1712183952331543, -0.18630415201187134, 0.16883142292499542, 0.21420934796333313, -0.1980089247226715, 0.12070948630571365, 0.14340487122535706, -0.1067875474691391, 0.01613236591219902, -0.07917764037847519, 0.16279222071170807, -0.1318759173154831, -0.06376363337039948, 0.24209517240524292, 0.05741459131240845, -0.3179146647453308, -0.692721426486969, 0.24580013751983643, -0.30380019545555115, -0.03688102215528488, 0.0007450608536601067, 0.3466169834136963, -0.3842551112174988, 0.2641146183013916, 0.10011151432991028, -0.17242078483104706, -0.279953271150589, -0.26886990666389465, -0.20569807291030884, 0.052230432629585266, -0.36856773495674133, 0.0012725619599223137, 0.25247281789779663, -0.20947259664535522, 0.40037086606025696, -0.05119815468788147, 0.1751805543899536, -0.047897353768348694, 0.20912793278694153, -0.3762725293636322, -0.10815290361642838, 0.2256002277135849, -0.31691259145736694, 0.03763344883918762, 0.26898428797721863, -0.09270642697811127, 0.010394714772701263, -0.034260042011737823, 0.15934491157531738, -0.3435828685760498, -0.1637994647026062, 0.28722670674324036, -0.014549380168318748, 0.02883906476199627, 0.06845957040786743, -0.05402486398816109, 0.33956262469291687, -0.11571785807609558, -0.19577813148498535, -0.2394082099199295, 0.033054087311029434, -0.05823009833693504, 0.18895436823368073, 0.48968929052352905, -0.4754009246826172, 0.08068408071994781, -0.34057044982910156, 0.1221407800912857, 0.4467155635356903, 0.29351216554641724, -0.033028628677129745, 0.2765636444091797, -0.20774057507514954, 0.023706398904323578, -0.01743573695421219, -0.36867260932922363, -0.3444622755050659, 0.5175634622573853, -0.08223690092563629, 0.3453429341316223, -0.05477086454629898, 0.043167077004909515, 0.13740147650241852, 0.04366135969758034, 0.15477734804153442, 0.20473800599575043, -0.1418505758047104, 0.1543143391609192, -0.5629574060440063, -0.12200034409761429, 0.3635742664337158, 0.013357188552618027, 0.18901431560516357, -0.2069268822669983, 0.12359146773815155, -0.08466120809316635, 0.49122124910354614, -0.008410435169935226, -0.12062001973390579, -0.0321737602353096, 0.21111100912094116, -0.02409304678440094, 0.10064230859279633, -0.27434611320495605, -0.5518812537193298, 0.26681163907051086, -0.023728886619210243, 0.15285184979438782, 0.12861359119415283, -0.046923812478780746, -0.589758574962616, -0.14676912128925323, -0.15623000264167786, -0.24047526717185974, 0.10611964762210846, 0.12265792489051819, 0.2428150475025177, 0.07963751256465912, -0.054624591022729874, 0.5485526323318481, -0.05779726803302765, 0.14132872223854065, -0.07995490729808807, 0.3413333594799042, -0.15256373584270477, -0.030509620904922485, -0.03024463728070259, 0.13465739786624908, 0.24633625149726868, -0.09839516133069992, -0.3567028045654297, 0.6420470476150513, 0.12486384809017181, 0.20668168365955353, -0.4426272213459015, 0.0053084492683410645, 0.3827440142631531, -0.3125801086425781, 0.0957021564245224, 0.5969319939613342, 0.23789538443088531, 0.018149562180042267, 0.09531331807374954, 0.4245103597640991, -0.029068831354379654, -0.05250353366136551, 0.10602304339408875, -0.18781206011772156, 0.1633402556180954, -0.14692245423793793, 0.20097851753234863, -0.3520142734050751, 0.440128356218338, -0.08631546795368195, 0.37604665756225586, -0.024364961311221123, -0.14552810788154602, 0.04850632697343826, 0.4009242653846741, -0.07378800213336945, -0.018499813973903656, -0.16348543763160706, -0.18191787600517273, -0.11849166452884674, 0.3020987808704376, 0.3241463899612427, 0.6374419927597046, 0.174552783370018, -0.21925291419029236, 0.23812900483608246, -0.0004304824396967888, -0.2599272131919861, 0.48313629627227783, -0.16536302864551544, 0.012773129157721996, 0.45833081007003784, 0.008977197110652924, 0.10918033868074417, -0.44877251982688904, 0.145079106092453, 0.12340303510427475, 0.18180161714553833, -0.3607912063598633, 0.07881616055965424, -0.21522241830825806, 0.09686695784330368, -0.35186347365379333, -0.2619571387767792, 0.029403772205114365, -0.31337955594062805, -0.01787203550338745, 0.13682332634925842, -0.050380948930978775, 0.23081159591674805, -0.4672611355781555, 0.08465538918972015, 0.11243504285812378, -0.12309839576482773, -0.2004062831401825, 0.07373302429914474, -0.36125895380973816, 0.09889215230941772, 0.25351303815841675, 0.06785019487142563, 0.2908094823360443, -0.19568005204200745, -0.1511838436126709, 0.024100780487060547, -0.40364784002304077, 0.1278226375579834, 0.11807060241699219, 0.22754177451133728, 0.09695582091808319, 0.0744815543293953, 0.3463851809501648, -0.41219550371170044, -0.07106733322143555, -0.13084205985069275, -0.21831807494163513, 0.1705409586429596, 0.03321118280291557, 0.024735357612371445, -0.11560429632663727, -0.5987553596496582, -0.4374196231365204, -0.38928309082984924, -0.049828410148620605, -0.16451624035835266, -0.0728495717048645, 0.1988961398601532, -0.13437874615192413, 0.051426518708467484, 0.18361884355545044, -0.0720972865819931, -0.40095254778862, 0.21228083968162537, 0.14455869793891907, -0.03927650302648544, -0.22418029606342316, -0.13846512138843536, -0.07727739214897156, -0.052773017436265945, -0.04581784829497337, -0.30234187841415405, 0.2543262541294098, -0.4560004472732544, 0.243556410074234, -0.19859576225280762, -0.21312369406223297, 0.28722184896469116, 0.031847525388002396, -0.03546108677983284, -0.13472867012023926, -0.03443778678774834, -0.07229127734899521, -0.1071653738617897, 0.16366347670555115, -0.1976875364780426, 0.3942438066005707, 0.13639776408672333, 0.4813588857650757, 0.24167630076408386, -0.543911874294281, 0.0680675059556961, 0.1705714762210846, 0.2048642486333847, -0.09902817755937576, -0.3353736996650696, 0.3906060755252838, -0.06826743483543396, 0.023958660662174225, 0.27524855732917786, -0.35052716732025146, -0.27816256880760193, -0.03561098501086235, 0.1964905709028244, -0.37616676092147827, -0.025656571611762047, -0.13386401534080505, -0.16364112496376038, 0.2058551013469696, 0.32547876238822937, 0.28920164704322815, 0.03548911213874817, -0.163717120885849, 0.25034666061401367, 0.2493053376674652, 0.012508019804954529, -0.1440630555152893, -0.12907521426677704, -0.16025890409946442, -0.22746938467025757, 0.3832497000694275, 0.3412734866142273, 0.2640644609928131, 0.07428842782974243, -0.1175946518778801, -0.04297859966754913, -0.06874419748783112, 0.677484929561615, -0.16021989285945892, 0.13942115008831024, -0.07702465355396271, 0.13327699899673462, -0.15247201919555664, -0.22403566539287567, -0.02292843721807003, 0.02377961203455925, 0.2947806417942047, 0.598914384841919, -0.3209037482738495, -0.14464335143566132, 0.34409967064857483, 0.3235158324241638, -0.16147007048130035, -0.31342613697052, -0.034694746136665344, -0.06410856544971466, -0.04521765559911728, 0.11545032262802124, 0.04628825932741165, 0.2783494293689728, -0.1482955664396286, -0.15314123034477234, 0.035107169300317764, -0.05071808397769928, 0.24413849413394928, 0.31419309973716736, 0.3286378085613251, -0.038605947047472, 0.3620903789997101, 0.15740075707435608, 0.3023655414581299, 0.37218448519706726, 0.21110637485980988, -0.34546366333961487, -0.05831429362297058, -0.12663534283638, 0.0932571291923523, -0.0013130083680152893, 0.2818879783153534, -0.04903571680188179, -0.13468295335769653, 0.25066274404525757, 0.06841973960399628, -0.152461975812912, 0.34522509574890137, -0.01778487116098404, 0.0991835817694664, -0.17988084256649017, -0.34323063492774963, 0.23169079422950745, -0.15484872460365295, 0.014571011066436768, 0.11570132523775101, 0.06790043413639069, -0.3640977144241333, -0.08807315677404404, 0.003484867513179779, 0.7999352812767029, 0.3829318881034851, -0.15092810988426208, 0.24419161677360535, -0.3533547520637512, 0.02274574525654316, -0.3782045841217041, 0.1704307645559311, -0.3321318030357361, -0.16701090335845947, -0.051264241337776184, -0.1950095146894455, -0.07095468789339066, 0.07453854382038116, -0.20987211167812347, 0.21862943470478058, -0.12442268431186676, 0.07746747881174088, 0.20480647683143616, 0.23702788352966309, 0.07307714223861694, 0.1332215964794159, -0.18071991205215454, 0.14647899568080902, -0.061223916709423065, 0.15841706097126007, -0.20900273323059082, -0.07801689952611923, 0.04622567817568779, -0.1878194361925125, -0.23432251811027527, 0.20044663548469543, -0.6715438365936279, 0.027445495128631592, 0.030633846297860146, -0.09719033539295197, -0.0029022283852100372, -0.09633125364780426, 0.2391873300075531, 0.2715620994567871, -0.12290860712528229, 0.03585014119744301, 0.13769377768039703, 0.15349476039409637, 0.052967917174100876, -0.03876008838415146, 0.20030121505260468, -0.13590207695960999, -0.17902874946594238, 0.08240555971860886, -0.3000929057598114, -0.18088792264461517, 0.2318430244922638, -0.08168858289718628, -0.02882317453622818, -0.31303882598876953, -0.16938543319702148, -0.08667843043804169, 0.10645651817321777, -0.20349249243736267, 0.1535090208053589, -0.2164582461118698, -0.32827356457710266, 0.04801921918988228, 0.0514250285923481, -0.32084405422210693, -0.3036959767341614, 0.26007625460624695, 0.15884777903556824, -0.02626456320285797, 0.37884265184402466, 0.011533375829458237, -0.32690370082855225, -0.25259876251220703, -0.1472422480583191, 0.15462540090084076, -0.4197562336921692, 0.0971364751458168, -0.3318912088871002, -0.2562443017959595, 0.15764589607715607, 0.27885177731513977, 0.5067471265792847, 0.03763497248291969, 0.05518624559044838, -0.5445109009742737, -0.10507674515247345, 0.046374447643756866, -0.16788701713085175, 0.22103549540042877, -0.05515672639012337, 0.6132631301879883, -0.3147180676460266, 0.181459441781044, -0.33864402770996094, 0.03922995924949646, -0.12331688404083252, 0.18939638137817383, 0.0008270740509033203, -0.2967323958873749, 0.279649555683136, 0.0981796532869339, 0.20745182037353516, 0.3625253438949585, -0.15028871595859528, -0.1964605748653412, -0.17003484070301056, 0.10347750782966614, 0.09796623140573502, -0.23080147802829742, 0.06258650869131088, 0.15897370874881744, -0.04345637187361717, -0.008685676380991936, 0.11313016712665558, -0.10680852085351944, -0.04336743801832199, 0.1655219942331314, 0.36770665645599365, -0.07249460369348526, -0.24274545907974243, 0.09125916659832001, -0.14439785480499268, 0.08559231460094452, 0.04841131344437599, 0.12990319728851318, -0.1480560451745987, 0.04758022725582123, 0.15830165147781372, -0.05593392997980118, 0.2772267460823059, 0.20091700553894043, 0.20709636807441711, -0.2499210089445114, -0.29451191425323486, 0.26053786277770996, 0.17688500881195068, 0.42840978503227234, 0.01149166189134121, -0.15831060707569122, 0.06980306655168533, 0.26372474431991577, -0.3338598608970642, -0.08000773191452026, -0.08416685461997986, -0.2150551825761795, 0.19192439317703247, 0.07876712083816528, 0.09974633157253265, -0.1859387457370758, -0.04689991474151611, 0.26225587725639343, 0.4332882761955261, -0.08601383864879608, 0.10912330448627472, 0.3987318277359009, -0.07160910964012146, 0.0295820664614439, 0.14997848868370056, -0.2502605617046356, 0.06258441507816315, 0.34474217891693115, -0.04796820133924484, 0.13587340712547302, 0.01018485240638256, 0.1770615428686142, -0.09116198867559433, -0.16177691519260406, 0.26509812474250793, 0.4197482466697693, -0.4040279984474182, 0.292924165725708, 0.23871801793575287, -0.10232970863580704, -0.3085988163948059, -0.1845877766609192, -0.4084452986717224, -0.19396932423114777, -0.07196427136659622, 0.10643860697746277, 0.017322305589914322, -0.34283360838890076, -0.2268974781036377, -0.011369332671165466, -0.03357023373246193, 0.047849513590335846, 0.5259103178977966, 0.024520590901374817, -0.2330120950937271, -0.12810805439949036, -0.28379026055336, 0.20174065232276917, 0.21901333332061768, -0.3413544297218323, 0.34174567461013794, 0.2017524540424347, -0.18790817260742188, -0.23577529191970825, 0.19087648391723633, 0.19290760159492493, 0.4227333068847656, -0.26074108481407166, -0.10731853544712067, 0.144697904586792, 0.009417133405804634, 0.12351532280445099, 0.41841796040534973, 0.05907443165779114, -0.0722045749425888, 0.2262648195028305, 0.13556328415870667, -0.24584271013736725, 0.14196957647800446, -0.08040469884872437, -0.11368425190448761, -0.6303737759590149, 0.33984068036079407, -0.027032867074012756, -0.005355667322874069, -0.10635656118392944, 0.20407427847385406, -0.34197038412094116, 0.05602748319506645, 0.393708735704422, -0.10502970963716507, 0.2485334873199463, 0.13549423217773438, 0.09909211844205856, -0.14319726824760437, 0.38790053129196167, 0.15731477737426758, 0.06969916075468063, -0.5092074275016785, -0.13680961728096008, -0.44292113184928894, 0.2315693199634552, -0.16399617493152618, 0.18357427418231964, -0.04636702314019203, 0.04757194221019745, 0.10860319435596466, 0.18673644959926605, 0.1462305784225464, 0.3793199956417084, 0.1809266358613968, -0.04415850341320038, -0.27042946219444275, -0.14950527250766754, -0.13656294345855713, -0.20334680378437042, 0.033027611672878265, -0.5399730205535889, 0.07811850309371948, 0.10107901692390442, 0.11846362799406052, -0.09273117780685425, -0.25100505352020264, 0.3491324782371521, 0.21621432900428772, 0.34822553396224976, 0.36039358377456665, 0.5763018131256104, -0.15500035881996155, -0.1805732697248459, 0.0021048560738563538, -0.046220168471336365, -0.1851196140050888, 0.1420893669128418, 0.1194765567779541, 0.32694151997566223, 0.08009364455938339, -0.11356543004512787, -0.23123636841773987, 0.48279786109924316, 0.3263701796531677, -0.2479366958141327, -0.2551734447479248, -0.056240975856781006, -0.36476579308509827, -0.03201165422797203, 0.26554015278816223, 0.3975045382976532, -0.0032961517572402954, 0.052044108510017395, 0.007727906107902527, -0.3785654902458191, 0.47975417971611023, -0.5694286823272705, -0.06979657709598541, -0.19357900321483612, 0.2503975033760071, -0.04341612011194229, -0.08110900223255157, -0.41991984844207764, 0.06523074954748154, 0.5131902098655701, -0.09612662345170975, -0.05060233920812607, 0.1511288732290268, 0.15451323986053467, -0.1854582279920578, 0.024998199194669724, 0.3290071487426758, 0.36337605118751526, -0.2964649200439453, 0.058436084538698196, -0.23157061636447906 ]
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.23152734339237213, 0.024640247225761414, -0.02236603945493698, 0.45745646953582764, 0.17442429065704346, 0.22958096861839294, -0.007371064275503159, 0.5081835985183716, -0.03165240213274956, 0.01912546157836914, -0.18429750204086304, -0.06401316076517105, -0.009163699112832546, 0.3338086009025574, -0.04336623102426529, -0.21947014331817627, -0.11076713353395462, 0.1606067419052124, 0.14076851308345795, 0.05975060164928436, -0.14481380581855774, 0.20090515911579132, -0.21544142067432404, -0.07255686819553375, -0.2707112431526184, -0.01300717331469059, 0.17583714425563812, 0.3205575942993164, 0.08506079763174057, -0.5288680791854858, 0.20255833864212036, -0.173953115940094, 0.025822222232818604, 0.5030128359794617, -0.00011122844443889335, 0.04866430163383484, 0.4246918559074402, -0.0443260595202446, -0.3031124472618103, 0.08027097582817078, -0.3098662495613098, -0.24286018311977386, 0.14436493813991547, -0.03201036900281906, -0.3313591480255127, -0.19015035033226013, -0.23360078036785126, -0.3375604748725891, 0.24932359158992767, 0.6167078018188477, 0.23858052492141724, 0.3121444284915924, 0.06087354198098183, 0.01650763303041458, -0.1109834685921669, -0.1475733071565628, -0.02267727255821228, 0.3512018620967865, -0.02152082324028015, 0.0317077562212944, 0.17848920822143555, 0.2144182324409485, 0.028754161670804024, 0.10949893295764923, 0.12858065962791443, -0.12856145203113556, 0.2033368945121765, -0.10635043680667877, 0.14491628110408783, 0.38468408584594727, 0.3563733398914337, -0.24207353591918945, -0.15195046365261078, -0.3080810606479645, -0.19866187870502472, -0.2773953378200531, 0.25658246874809265, 0.19997580349445343, -0.16248878836631775, 0.1661827713251114, -0.39458173513412476, 0.298767626285553, 0.058954209089279175, 0.08596666902303696, -0.19323255121707916, 0.24121637642383575, 0.15170733630657196, -0.02654588222503662, 0.02661210671067238, 0.09625972807407379, 0.16327156126499176, -0.19784195721149445, -0.06486056745052338, 0.2136574685573578, -0.6099309325218201, -0.22180664539337158, -0.30991750955581665, 0.49770623445510864, -0.01442309282720089, -0.05148341506719589, -0.11401231586933136, -0.01710406318306923, 0.1712183952331543, -0.18630415201187134, 0.16883142292499542, 0.21420934796333313, -0.1980089247226715, 0.12070948630571365, 0.14340487122535706, -0.1067875474691391, 0.01613236591219902, -0.07917764037847519, 0.16279222071170807, -0.1318759173154831, -0.06376363337039948, 0.24209517240524292, 0.05741459131240845, -0.3179146647453308, -0.692721426486969, 0.24580013751983643, -0.30380019545555115, -0.03688102215528488, 0.0007450608536601067, 0.3466169834136963, -0.3842551112174988, 0.2641146183013916, 0.10011151432991028, -0.17242078483104706, -0.279953271150589, -0.26886990666389465, -0.20569807291030884, 0.052230432629585266, -0.36856773495674133, 0.0012725619599223137, 0.25247281789779663, -0.20947259664535522, 0.40037086606025696, -0.05119815468788147, 0.1751805543899536, -0.047897353768348694, 0.20912793278694153, -0.3762725293636322, -0.10815290361642838, 0.2256002277135849, -0.31691259145736694, 0.03763344883918762, 0.26898428797721863, -0.09270642697811127, 0.010394714772701263, -0.034260042011737823, 0.15934491157531738, -0.3435828685760498, -0.1637994647026062, 0.28722670674324036, -0.014549380168318748, 0.02883906476199627, 0.06845957040786743, -0.05402486398816109, 0.33956262469291687, -0.11571785807609558, -0.19577813148498535, -0.2394082099199295, 0.033054087311029434, -0.05823009833693504, 0.18895436823368073, 0.48968929052352905, -0.4754009246826172, 0.08068408071994781, -0.34057044982910156, 0.1221407800912857, 0.4467155635356903, 0.29351216554641724, -0.033028628677129745, 0.2765636444091797, -0.20774057507514954, 0.023706398904323578, -0.01743573695421219, -0.36867260932922363, -0.3444622755050659, 0.5175634622573853, -0.08223690092563629, 0.3453429341316223, -0.05477086454629898, 0.043167077004909515, 0.13740147650241852, 0.04366135969758034, 0.15477734804153442, 0.20473800599575043, -0.1418505758047104, 0.1543143391609192, -0.5629574060440063, -0.12200034409761429, 0.3635742664337158, 0.013357188552618027, 0.18901431560516357, -0.2069268822669983, 0.12359146773815155, -0.08466120809316635, 0.49122124910354614, -0.008410435169935226, -0.12062001973390579, -0.0321737602353096, 0.21111100912094116, -0.02409304678440094, 0.10064230859279633, -0.27434611320495605, -0.5518812537193298, 0.26681163907051086, -0.023728886619210243, 0.15285184979438782, 0.12861359119415283, -0.046923812478780746, -0.589758574962616, -0.14676912128925323, -0.15623000264167786, -0.24047526717185974, 0.10611964762210846, 0.12265792489051819, 0.2428150475025177, 0.07963751256465912, -0.054624591022729874, 0.5485526323318481, -0.05779726803302765, 0.14132872223854065, -0.07995490729808807, 0.3413333594799042, -0.15256373584270477, -0.030509620904922485, -0.03024463728070259, 0.13465739786624908, 0.24633625149726868, -0.09839516133069992, -0.3567028045654297, 0.6420470476150513, 0.12486384809017181, 0.20668168365955353, -0.4426272213459015, 0.0053084492683410645, 0.3827440142631531, -0.3125801086425781, 0.0957021564245224, 0.5969319939613342, 0.23789538443088531, 0.018149562180042267, 0.09531331807374954, 0.4245103597640991, -0.029068831354379654, -0.05250353366136551, 0.10602304339408875, -0.18781206011772156, 0.1633402556180954, -0.14692245423793793, 0.20097851753234863, -0.3520142734050751, 0.440128356218338, -0.08631546795368195, 0.37604665756225586, -0.024364961311221123, -0.14552810788154602, 0.04850632697343826, 0.4009242653846741, -0.07378800213336945, -0.018499813973903656, -0.16348543763160706, -0.18191787600517273, -0.11849166452884674, 0.3020987808704376, 0.3241463899612427, 0.6374419927597046, 0.174552783370018, -0.21925291419029236, 0.23812900483608246, -0.0004304824396967888, -0.2599272131919861, 0.48313629627227783, -0.16536302864551544, 0.012773129157721996, 0.45833081007003784, 0.008977197110652924, 0.10918033868074417, -0.44877251982688904, 0.145079106092453, 0.12340303510427475, 0.18180161714553833, -0.3607912063598633, 0.07881616055965424, -0.21522241830825806, 0.09686695784330368, -0.35186347365379333, -0.2619571387767792, 0.029403772205114365, -0.31337955594062805, -0.01787203550338745, 0.13682332634925842, -0.050380948930978775, 0.23081159591674805, -0.4672611355781555, 0.08465538918972015, 0.11243504285812378, -0.12309839576482773, -0.2004062831401825, 0.07373302429914474, -0.36125895380973816, 0.09889215230941772, 0.25351303815841675, 0.06785019487142563, 0.2908094823360443, -0.19568005204200745, -0.1511838436126709, 0.024100780487060547, -0.40364784002304077, 0.1278226375579834, 0.11807060241699219, 0.22754177451133728, 0.09695582091808319, 0.0744815543293953, 0.3463851809501648, -0.41219550371170044, -0.07106733322143555, -0.13084205985069275, -0.21831807494163513, 0.1705409586429596, 0.03321118280291557, 0.024735357612371445, -0.11560429632663727, -0.5987553596496582, -0.4374196231365204, -0.38928309082984924, -0.049828410148620605, -0.16451624035835266, -0.0728495717048645, 0.1988961398601532, -0.13437874615192413, 0.051426518708467484, 0.18361884355545044, -0.0720972865819931, -0.40095254778862, 0.21228083968162537, 0.14455869793891907, -0.03927650302648544, -0.22418029606342316, -0.13846512138843536, -0.07727739214897156, -0.052773017436265945, -0.04581784829497337, -0.30234187841415405, 0.2543262541294098, -0.4560004472732544, 0.243556410074234, -0.19859576225280762, -0.21312369406223297, 0.28722184896469116, 0.031847525388002396, -0.03546108677983284, -0.13472867012023926, -0.03443778678774834, -0.07229127734899521, -0.1071653738617897, 0.16366347670555115, -0.1976875364780426, 0.3942438066005707, 0.13639776408672333, 0.4813588857650757, 0.24167630076408386, -0.543911874294281, 0.0680675059556961, 0.1705714762210846, 0.2048642486333847, -0.09902817755937576, -0.3353736996650696, 0.3906060755252838, -0.06826743483543396, 0.023958660662174225, 0.27524855732917786, -0.35052716732025146, -0.27816256880760193, -0.03561098501086235, 0.1964905709028244, -0.37616676092147827, -0.025656571611762047, -0.13386401534080505, -0.16364112496376038, 0.2058551013469696, 0.32547876238822937, 0.28920164704322815, 0.03548911213874817, -0.163717120885849, 0.25034666061401367, 0.2493053376674652, 0.012508019804954529, -0.1440630555152893, -0.12907521426677704, -0.16025890409946442, -0.22746938467025757, 0.3832497000694275, 0.3412734866142273, 0.2640644609928131, 0.07428842782974243, -0.1175946518778801, -0.04297859966754913, -0.06874419748783112, 0.677484929561615, -0.16021989285945892, 0.13942115008831024, -0.07702465355396271, 0.13327699899673462, -0.15247201919555664, -0.22403566539287567, -0.02292843721807003, 0.02377961203455925, 0.2947806417942047, 0.598914384841919, -0.3209037482738495, -0.14464335143566132, 0.34409967064857483, 0.3235158324241638, -0.16147007048130035, -0.31342613697052, -0.034694746136665344, -0.06410856544971466, -0.04521765559911728, 0.11545032262802124, 0.04628825932741165, 0.2783494293689728, -0.1482955664396286, -0.15314123034477234, 0.035107169300317764, -0.05071808397769928, 0.24413849413394928, 0.31419309973716736, 0.3286378085613251, -0.038605947047472, 0.3620903789997101, 0.15740075707435608, 0.3023655414581299, 0.37218448519706726, 0.21110637485980988, -0.34546366333961487, -0.05831429362297058, -0.12663534283638, 0.0932571291923523, -0.0013130083680152893, 0.2818879783153534, -0.04903571680188179, -0.13468295335769653, 0.25066274404525757, 0.06841973960399628, -0.152461975812912, 0.34522509574890137, -0.01778487116098404, 0.0991835817694664, -0.17988084256649017, -0.34323063492774963, 0.23169079422950745, -0.15484872460365295, 0.014571011066436768, 0.11570132523775101, 0.06790043413639069, -0.3640977144241333, -0.08807315677404404, 0.003484867513179779, 0.7999352812767029, 0.3829318881034851, -0.15092810988426208, 0.24419161677360535, -0.3533547520637512, 0.02274574525654316, -0.3782045841217041, 0.1704307645559311, -0.3321318030357361, -0.16701090335845947, -0.051264241337776184, -0.1950095146894455, -0.07095468789339066, 0.07453854382038116, -0.20987211167812347, 0.21862943470478058, -0.12442268431186676, 0.07746747881174088, 0.20480647683143616, 0.23702788352966309, 0.07307714223861694, 0.1332215964794159, -0.18071991205215454, 0.14647899568080902, -0.061223916709423065, 0.15841706097126007, -0.20900273323059082, -0.07801689952611923, 0.04622567817568779, -0.1878194361925125, -0.23432251811027527, 0.20044663548469543, -0.6715438365936279, 0.027445495128631592, 0.030633846297860146, -0.09719033539295197, -0.0029022283852100372, -0.09633125364780426, 0.2391873300075531, 0.2715620994567871, -0.12290860712528229, 0.03585014119744301, 0.13769377768039703, 0.15349476039409637, 0.052967917174100876, -0.03876008838415146, 0.20030121505260468, -0.13590207695960999, -0.17902874946594238, 0.08240555971860886, -0.3000929057598114, -0.18088792264461517, 0.2318430244922638, -0.08168858289718628, -0.02882317453622818, -0.31303882598876953, -0.16938543319702148, -0.08667843043804169, 0.10645651817321777, -0.20349249243736267, 0.1535090208053589, -0.2164582461118698, -0.32827356457710266, 0.04801921918988228, 0.0514250285923481, -0.32084405422210693, -0.3036959767341614, 0.26007625460624695, 0.15884777903556824, -0.02626456320285797, 0.37884265184402466, 0.011533375829458237, -0.32690370082855225, -0.25259876251220703, -0.1472422480583191, 0.15462540090084076, -0.4197562336921692, 0.0971364751458168, -0.3318912088871002, -0.2562443017959595, 0.15764589607715607, 0.27885177731513977, 0.5067471265792847, 0.03763497248291969, 0.05518624559044838, -0.5445109009742737, -0.10507674515247345, 0.046374447643756866, -0.16788701713085175, 0.22103549540042877, -0.05515672639012337, 0.6132631301879883, -0.3147180676460266, 0.181459441781044, -0.33864402770996094, 0.03922995924949646, -0.12331688404083252, 0.18939638137817383, 0.0008270740509033203, -0.2967323958873749, 0.279649555683136, 0.0981796532869339, 0.20745182037353516, 0.3625253438949585, -0.15028871595859528, -0.1964605748653412, -0.17003484070301056, 0.10347750782966614, 0.09796623140573502, -0.23080147802829742, 0.06258650869131088, 0.15897370874881744, -0.04345637187361717, -0.008685676380991936, 0.11313016712665558, -0.10680852085351944, -0.04336743801832199, 0.1655219942331314, 0.36770665645599365, -0.07249460369348526, -0.24274545907974243, 0.09125916659832001, -0.14439785480499268, 0.08559231460094452, 0.04841131344437599, 0.12990319728851318, -0.1480560451745987, 0.04758022725582123, 0.15830165147781372, -0.05593392997980118, 0.2772267460823059, 0.20091700553894043, 0.20709636807441711, -0.2499210089445114, -0.29451191425323486, 0.26053786277770996, 0.17688500881195068, 0.42840978503227234, 0.01149166189134121, -0.15831060707569122, 0.06980306655168533, 0.26372474431991577, -0.3338598608970642, -0.08000773191452026, -0.08416685461997986, -0.2150551825761795, 0.19192439317703247, 0.07876712083816528, 0.09974633157253265, -0.1859387457370758, -0.04689991474151611, 0.26225587725639343, 0.4332882761955261, -0.08601383864879608, 0.10912330448627472, 0.3987318277359009, -0.07160910964012146, 0.0295820664614439, 0.14997848868370056, -0.2502605617046356, 0.06258441507816315, 0.34474217891693115, -0.04796820133924484, 0.13587340712547302, 0.01018485240638256, 0.1770615428686142, -0.09116198867559433, -0.16177691519260406, 0.26509812474250793, 0.4197482466697693, -0.4040279984474182, 0.292924165725708, 0.23871801793575287, -0.10232970863580704, -0.3085988163948059, -0.1845877766609192, -0.4084452986717224, -0.19396932423114777, -0.07196427136659622, 0.10643860697746277, 0.017322305589914322, -0.34283360838890076, -0.2268974781036377, -0.011369332671165466, -0.03357023373246193, 0.047849513590335846, 0.5259103178977966, 0.024520590901374817, -0.2330120950937271, -0.12810805439949036, -0.28379026055336, 0.20174065232276917, 0.21901333332061768, -0.3413544297218323, 0.34174567461013794, 0.2017524540424347, -0.18790817260742188, -0.23577529191970825, 0.19087648391723633, 0.19290760159492493, 0.4227333068847656, -0.26074108481407166, -0.10731853544712067, 0.144697904586792, 0.009417133405804634, 0.12351532280445099, 0.41841796040534973, 0.05907443165779114, -0.0722045749425888, 0.2262648195028305, 0.13556328415870667, -0.24584271013736725, 0.14196957647800446, -0.08040469884872437, -0.11368425190448761, -0.6303737759590149, 0.33984068036079407, -0.027032867074012756, -0.005355667322874069, -0.10635656118392944, 0.20407427847385406, -0.34197038412094116, 0.05602748319506645, 0.393708735704422, -0.10502970963716507, 0.2485334873199463, 0.13549423217773438, 0.09909211844205856, -0.14319726824760437, 0.38790053129196167, 0.15731477737426758, 0.06969916075468063, -0.5092074275016785, -0.13680961728096008, -0.44292113184928894, 0.2315693199634552, -0.16399617493152618, 0.18357427418231964, -0.04636702314019203, 0.04757194221019745, 0.10860319435596466, 0.18673644959926605, 0.1462305784225464, 0.3793199956417084, 0.1809266358613968, -0.04415850341320038, -0.27042946219444275, -0.14950527250766754, -0.13656294345855713, -0.20334680378437042, 0.033027611672878265, -0.5399730205535889, 0.07811850309371948, 0.10107901692390442, 0.11846362799406052, -0.09273117780685425, -0.25100505352020264, 0.3491324782371521, 0.21621432900428772, 0.34822553396224976, 0.36039358377456665, 0.5763018131256104, -0.15500035881996155, -0.1805732697248459, 0.0021048560738563538, -0.046220168471336365, -0.1851196140050888, 0.1420893669128418, 0.1194765567779541, 0.32694151997566223, 0.08009364455938339, -0.11356543004512787, -0.23123636841773987, 0.48279786109924316, 0.3263701796531677, -0.2479366958141327, -0.2551734447479248, -0.056240975856781006, -0.36476579308509827, -0.03201165422797203, 0.26554015278816223, 0.3975045382976532, -0.0032961517572402954, 0.052044108510017395, 0.007727906107902527, -0.3785654902458191, 0.47975417971611023, -0.5694286823272705, -0.06979657709598541, -0.19357900321483612, 0.2503975033760071, -0.04341612011194229, -0.08110900223255157, -0.41991984844207764, 0.06523074954748154, 0.5131902098655701, -0.09612662345170975, -0.05060233920812607, 0.1511288732290268, 0.15451323986053467, -0.1854582279920578, 0.024998199194669724, 0.3290071487426758, 0.36337605118751526, -0.2964649200439453, 0.058436084538698196, -0.23157061636447906 ]
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.23152734339237213, 0.024640247225761414, -0.02236603945493698, 0.45745646953582764, 0.17442429065704346, 0.22958096861839294, -0.007371064275503159, 0.5081835985183716, -0.03165240213274956, 0.01912546157836914, -0.18429750204086304, -0.06401316076517105, -0.009163699112832546, 0.3338086009025574, -0.04336623102426529, -0.21947014331817627, -0.11076713353395462, 0.1606067419052124, 0.14076851308345795, 0.05975060164928436, -0.14481380581855774, 0.20090515911579132, -0.21544142067432404, -0.07255686819553375, -0.2707112431526184, -0.01300717331469059, 0.17583714425563812, 0.3205575942993164, 0.08506079763174057, -0.5288680791854858, 0.20255833864212036, -0.173953115940094, 0.025822222232818604, 0.5030128359794617, -0.00011122844443889335, 0.04866430163383484, 0.4246918559074402, -0.0443260595202446, -0.3031124472618103, 0.08027097582817078, -0.3098662495613098, -0.24286018311977386, 0.14436493813991547, -0.03201036900281906, -0.3313591480255127, -0.19015035033226013, -0.23360078036785126, -0.3375604748725891, 0.24932359158992767, 0.6167078018188477, 0.23858052492141724, 0.3121444284915924, 0.06087354198098183, 0.01650763303041458, -0.1109834685921669, -0.1475733071565628, -0.02267727255821228, 0.3512018620967865, -0.02152082324028015, 0.0317077562212944, 0.17848920822143555, 0.2144182324409485, 0.028754161670804024, 0.10949893295764923, 0.12858065962791443, -0.12856145203113556, 0.2033368945121765, -0.10635043680667877, 0.14491628110408783, 0.38468408584594727, 0.3563733398914337, -0.24207353591918945, -0.15195046365261078, -0.3080810606479645, -0.19866187870502472, -0.2773953378200531, 0.25658246874809265, 0.19997580349445343, -0.16248878836631775, 0.1661827713251114, -0.39458173513412476, 0.298767626285553, 0.058954209089279175, 0.08596666902303696, -0.19323255121707916, 0.24121637642383575, 0.15170733630657196, -0.02654588222503662, 0.02661210671067238, 0.09625972807407379, 0.16327156126499176, -0.19784195721149445, -0.06486056745052338, 0.2136574685573578, -0.6099309325218201, -0.22180664539337158, -0.30991750955581665, 0.49770623445510864, -0.01442309282720089, -0.05148341506719589, -0.11401231586933136, -0.01710406318306923, 0.1712183952331543, -0.18630415201187134, 0.16883142292499542, 0.21420934796333313, -0.1980089247226715, 0.12070948630571365, 0.14340487122535706, -0.1067875474691391, 0.01613236591219902, -0.07917764037847519, 0.16279222071170807, -0.1318759173154831, -0.06376363337039948, 0.24209517240524292, 0.05741459131240845, -0.3179146647453308, -0.692721426486969, 0.24580013751983643, -0.30380019545555115, -0.03688102215528488, 0.0007450608536601067, 0.3466169834136963, -0.3842551112174988, 0.2641146183013916, 0.10011151432991028, -0.17242078483104706, -0.279953271150589, -0.26886990666389465, -0.20569807291030884, 0.052230432629585266, -0.36856773495674133, 0.0012725619599223137, 0.25247281789779663, -0.20947259664535522, 0.40037086606025696, -0.05119815468788147, 0.1751805543899536, -0.047897353768348694, 0.20912793278694153, -0.3762725293636322, -0.10815290361642838, 0.2256002277135849, -0.31691259145736694, 0.03763344883918762, 0.26898428797721863, -0.09270642697811127, 0.010394714772701263, -0.034260042011737823, 0.15934491157531738, -0.3435828685760498, -0.1637994647026062, 0.28722670674324036, -0.014549380168318748, 0.02883906476199627, 0.06845957040786743, -0.05402486398816109, 0.33956262469291687, -0.11571785807609558, -0.19577813148498535, -0.2394082099199295, 0.033054087311029434, -0.05823009833693504, 0.18895436823368073, 0.48968929052352905, -0.4754009246826172, 0.08068408071994781, -0.34057044982910156, 0.1221407800912857, 0.4467155635356903, 0.29351216554641724, -0.033028628677129745, 0.2765636444091797, -0.20774057507514954, 0.023706398904323578, -0.01743573695421219, -0.36867260932922363, -0.3444622755050659, 0.5175634622573853, -0.08223690092563629, 0.3453429341316223, -0.05477086454629898, 0.043167077004909515, 0.13740147650241852, 0.04366135969758034, 0.15477734804153442, 0.20473800599575043, -0.1418505758047104, 0.1543143391609192, -0.5629574060440063, -0.12200034409761429, 0.3635742664337158, 0.013357188552618027, 0.18901431560516357, -0.2069268822669983, 0.12359146773815155, -0.08466120809316635, 0.49122124910354614, -0.008410435169935226, -0.12062001973390579, -0.0321737602353096, 0.21111100912094116, -0.02409304678440094, 0.10064230859279633, -0.27434611320495605, -0.5518812537193298, 0.26681163907051086, -0.023728886619210243, 0.15285184979438782, 0.12861359119415283, -0.046923812478780746, -0.589758574962616, -0.14676912128925323, -0.15623000264167786, -0.24047526717185974, 0.10611964762210846, 0.12265792489051819, 0.2428150475025177, 0.07963751256465912, -0.054624591022729874, 0.5485526323318481, -0.05779726803302765, 0.14132872223854065, -0.07995490729808807, 0.3413333594799042, -0.15256373584270477, -0.030509620904922485, -0.03024463728070259, 0.13465739786624908, 0.24633625149726868, -0.09839516133069992, -0.3567028045654297, 0.6420470476150513, 0.12486384809017181, 0.20668168365955353, -0.4426272213459015, 0.0053084492683410645, 0.3827440142631531, -0.3125801086425781, 0.0957021564245224, 0.5969319939613342, 0.23789538443088531, 0.018149562180042267, 0.09531331807374954, 0.4245103597640991, -0.029068831354379654, -0.05250353366136551, 0.10602304339408875, -0.18781206011772156, 0.1633402556180954, -0.14692245423793793, 0.20097851753234863, -0.3520142734050751, 0.440128356218338, -0.08631546795368195, 0.37604665756225586, -0.024364961311221123, -0.14552810788154602, 0.04850632697343826, 0.4009242653846741, -0.07378800213336945, -0.018499813973903656, -0.16348543763160706, -0.18191787600517273, -0.11849166452884674, 0.3020987808704376, 0.3241463899612427, 0.6374419927597046, 0.174552783370018, -0.21925291419029236, 0.23812900483608246, -0.0004304824396967888, -0.2599272131919861, 0.48313629627227783, -0.16536302864551544, 0.012773129157721996, 0.45833081007003784, 0.008977197110652924, 0.10918033868074417, -0.44877251982688904, 0.145079106092453, 0.12340303510427475, 0.18180161714553833, -0.3607912063598633, 0.07881616055965424, -0.21522241830825806, 0.09686695784330368, -0.35186347365379333, -0.2619571387767792, 0.029403772205114365, -0.31337955594062805, -0.01787203550338745, 0.13682332634925842, -0.050380948930978775, 0.23081159591674805, -0.4672611355781555, 0.08465538918972015, 0.11243504285812378, -0.12309839576482773, -0.2004062831401825, 0.07373302429914474, -0.36125895380973816, 0.09889215230941772, 0.25351303815841675, 0.06785019487142563, 0.2908094823360443, -0.19568005204200745, -0.1511838436126709, 0.024100780487060547, -0.40364784002304077, 0.1278226375579834, 0.11807060241699219, 0.22754177451133728, 0.09695582091808319, 0.0744815543293953, 0.3463851809501648, -0.41219550371170044, -0.07106733322143555, -0.13084205985069275, -0.21831807494163513, 0.1705409586429596, 0.03321118280291557, 0.024735357612371445, -0.11560429632663727, -0.5987553596496582, -0.4374196231365204, -0.38928309082984924, -0.049828410148620605, -0.16451624035835266, -0.0728495717048645, 0.1988961398601532, -0.13437874615192413, 0.051426518708467484, 0.18361884355545044, -0.0720972865819931, -0.40095254778862, 0.21228083968162537, 0.14455869793891907, -0.03927650302648544, -0.22418029606342316, -0.13846512138843536, -0.07727739214897156, -0.052773017436265945, -0.04581784829497337, -0.30234187841415405, 0.2543262541294098, -0.4560004472732544, 0.243556410074234, -0.19859576225280762, -0.21312369406223297, 0.28722184896469116, 0.031847525388002396, -0.03546108677983284, -0.13472867012023926, -0.03443778678774834, -0.07229127734899521, -0.1071653738617897, 0.16366347670555115, -0.1976875364780426, 0.3942438066005707, 0.13639776408672333, 0.4813588857650757, 0.24167630076408386, -0.543911874294281, 0.0680675059556961, 0.1705714762210846, 0.2048642486333847, -0.09902817755937576, -0.3353736996650696, 0.3906060755252838, -0.06826743483543396, 0.023958660662174225, 0.27524855732917786, -0.35052716732025146, -0.27816256880760193, -0.03561098501086235, 0.1964905709028244, -0.37616676092147827, -0.025656571611762047, -0.13386401534080505, -0.16364112496376038, 0.2058551013469696, 0.32547876238822937, 0.28920164704322815, 0.03548911213874817, -0.163717120885849, 0.25034666061401367, 0.2493053376674652, 0.012508019804954529, -0.1440630555152893, -0.12907521426677704, -0.16025890409946442, -0.22746938467025757, 0.3832497000694275, 0.3412734866142273, 0.2640644609928131, 0.07428842782974243, -0.1175946518778801, -0.04297859966754913, -0.06874419748783112, 0.677484929561615, -0.16021989285945892, 0.13942115008831024, -0.07702465355396271, 0.13327699899673462, -0.15247201919555664, -0.22403566539287567, -0.02292843721807003, 0.02377961203455925, 0.2947806417942047, 0.598914384841919, -0.3209037482738495, -0.14464335143566132, 0.34409967064857483, 0.3235158324241638, -0.16147007048130035, -0.31342613697052, -0.034694746136665344, -0.06410856544971466, -0.04521765559911728, 0.11545032262802124, 0.04628825932741165, 0.2783494293689728, -0.1482955664396286, -0.15314123034477234, 0.035107169300317764, -0.05071808397769928, 0.24413849413394928, 0.31419309973716736, 0.3286378085613251, -0.038605947047472, 0.3620903789997101, 0.15740075707435608, 0.3023655414581299, 0.37218448519706726, 0.21110637485980988, -0.34546366333961487, -0.05831429362297058, -0.12663534283638, 0.0932571291923523, -0.0013130083680152893, 0.2818879783153534, -0.04903571680188179, -0.13468295335769653, 0.25066274404525757, 0.06841973960399628, -0.152461975812912, 0.34522509574890137, -0.01778487116098404, 0.0991835817694664, -0.17988084256649017, -0.34323063492774963, 0.23169079422950745, -0.15484872460365295, 0.014571011066436768, 0.11570132523775101, 0.06790043413639069, -0.3640977144241333, -0.08807315677404404, 0.003484867513179779, 0.7999352812767029, 0.3829318881034851, -0.15092810988426208, 0.24419161677360535, -0.3533547520637512, 0.02274574525654316, -0.3782045841217041, 0.1704307645559311, -0.3321318030357361, -0.16701090335845947, -0.051264241337776184, -0.1950095146894455, -0.07095468789339066, 0.07453854382038116, -0.20987211167812347, 0.21862943470478058, -0.12442268431186676, 0.07746747881174088, 0.20480647683143616, 0.23702788352966309, 0.07307714223861694, 0.1332215964794159, -0.18071991205215454, 0.14647899568080902, -0.061223916709423065, 0.15841706097126007, -0.20900273323059082, -0.07801689952611923, 0.04622567817568779, -0.1878194361925125, -0.23432251811027527, 0.20044663548469543, -0.6715438365936279, 0.027445495128631592, 0.030633846297860146, -0.09719033539295197, -0.0029022283852100372, -0.09633125364780426, 0.2391873300075531, 0.2715620994567871, -0.12290860712528229, 0.03585014119744301, 0.13769377768039703, 0.15349476039409637, 0.052967917174100876, -0.03876008838415146, 0.20030121505260468, -0.13590207695960999, -0.17902874946594238, 0.08240555971860886, -0.3000929057598114, -0.18088792264461517, 0.2318430244922638, -0.08168858289718628, -0.02882317453622818, -0.31303882598876953, -0.16938543319702148, -0.08667843043804169, 0.10645651817321777, -0.20349249243736267, 0.1535090208053589, -0.2164582461118698, -0.32827356457710266, 0.04801921918988228, 0.0514250285923481, -0.32084405422210693, -0.3036959767341614, 0.26007625460624695, 0.15884777903556824, -0.02626456320285797, 0.37884265184402466, 0.011533375829458237, -0.32690370082855225, -0.25259876251220703, -0.1472422480583191, 0.15462540090084076, -0.4197562336921692, 0.0971364751458168, -0.3318912088871002, -0.2562443017959595, 0.15764589607715607, 0.27885177731513977, 0.5067471265792847, 0.03763497248291969, 0.05518624559044838, -0.5445109009742737, -0.10507674515247345, 0.046374447643756866, -0.16788701713085175, 0.22103549540042877, -0.05515672639012337, 0.6132631301879883, -0.3147180676460266, 0.181459441781044, -0.33864402770996094, 0.03922995924949646, -0.12331688404083252, 0.18939638137817383, 0.0008270740509033203, -0.2967323958873749, 0.279649555683136, 0.0981796532869339, 0.20745182037353516, 0.3625253438949585, -0.15028871595859528, -0.1964605748653412, -0.17003484070301056, 0.10347750782966614, 0.09796623140573502, -0.23080147802829742, 0.06258650869131088, 0.15897370874881744, -0.04345637187361717, -0.008685676380991936, 0.11313016712665558, -0.10680852085351944, -0.04336743801832199, 0.1655219942331314, 0.36770665645599365, -0.07249460369348526, -0.24274545907974243, 0.09125916659832001, -0.14439785480499268, 0.08559231460094452, 0.04841131344437599, 0.12990319728851318, -0.1480560451745987, 0.04758022725582123, 0.15830165147781372, -0.05593392997980118, 0.2772267460823059, 0.20091700553894043, 0.20709636807441711, -0.2499210089445114, -0.29451191425323486, 0.26053786277770996, 0.17688500881195068, 0.42840978503227234, 0.01149166189134121, -0.15831060707569122, 0.06980306655168533, 0.26372474431991577, -0.3338598608970642, -0.08000773191452026, -0.08416685461997986, -0.2150551825761795, 0.19192439317703247, 0.07876712083816528, 0.09974633157253265, -0.1859387457370758, -0.04689991474151611, 0.26225587725639343, 0.4332882761955261, -0.08601383864879608, 0.10912330448627472, 0.3987318277359009, -0.07160910964012146, 0.0295820664614439, 0.14997848868370056, -0.2502605617046356, 0.06258441507816315, 0.34474217891693115, -0.04796820133924484, 0.13587340712547302, 0.01018485240638256, 0.1770615428686142, -0.09116198867559433, -0.16177691519260406, 0.26509812474250793, 0.4197482466697693, -0.4040279984474182, 0.292924165725708, 0.23871801793575287, -0.10232970863580704, -0.3085988163948059, -0.1845877766609192, -0.4084452986717224, -0.19396932423114777, -0.07196427136659622, 0.10643860697746277, 0.017322305589914322, -0.34283360838890076, -0.2268974781036377, -0.011369332671165466, -0.03357023373246193, 0.047849513590335846, 0.5259103178977966, 0.024520590901374817, -0.2330120950937271, -0.12810805439949036, -0.28379026055336, 0.20174065232276917, 0.21901333332061768, -0.3413544297218323, 0.34174567461013794, 0.2017524540424347, -0.18790817260742188, -0.23577529191970825, 0.19087648391723633, 0.19290760159492493, 0.4227333068847656, -0.26074108481407166, -0.10731853544712067, 0.144697904586792, 0.009417133405804634, 0.12351532280445099, 0.41841796040534973, 0.05907443165779114, -0.0722045749425888, 0.2262648195028305, 0.13556328415870667, -0.24584271013736725, 0.14196957647800446, -0.08040469884872437, -0.11368425190448761, -0.6303737759590149, 0.33984068036079407, -0.027032867074012756, -0.005355667322874069, -0.10635656118392944, 0.20407427847385406, -0.34197038412094116, 0.05602748319506645, 0.393708735704422, -0.10502970963716507, 0.2485334873199463, 0.13549423217773438, 0.09909211844205856, -0.14319726824760437, 0.38790053129196167, 0.15731477737426758, 0.06969916075468063, -0.5092074275016785, -0.13680961728096008, -0.44292113184928894, 0.2315693199634552, -0.16399617493152618, 0.18357427418231964, -0.04636702314019203, 0.04757194221019745, 0.10860319435596466, 0.18673644959926605, 0.1462305784225464, 0.3793199956417084, 0.1809266358613968, -0.04415850341320038, -0.27042946219444275, -0.14950527250766754, -0.13656294345855713, -0.20334680378437042, 0.033027611672878265, -0.5399730205535889, 0.07811850309371948, 0.10107901692390442, 0.11846362799406052, -0.09273117780685425, -0.25100505352020264, 0.3491324782371521, 0.21621432900428772, 0.34822553396224976, 0.36039358377456665, 0.5763018131256104, -0.15500035881996155, -0.1805732697248459, 0.0021048560738563538, -0.046220168471336365, -0.1851196140050888, 0.1420893669128418, 0.1194765567779541, 0.32694151997566223, 0.08009364455938339, -0.11356543004512787, -0.23123636841773987, 0.48279786109924316, 0.3263701796531677, -0.2479366958141327, -0.2551734447479248, -0.056240975856781006, -0.36476579308509827, -0.03201165422797203, 0.26554015278816223, 0.3975045382976532, -0.0032961517572402954, 0.052044108510017395, 0.007727906107902527, -0.3785654902458191, 0.47975417971611023, -0.5694286823272705, -0.06979657709598541, -0.19357900321483612, 0.2503975033760071, -0.04341612011194229, -0.08110900223255157, -0.41991984844207764, 0.06523074954748154, 0.5131902098655701, -0.09612662345170975, -0.05060233920812607, 0.1511288732290268, 0.15451323986053467, -0.1854582279920578, 0.024998199194669724, 0.3290071487426758, 0.36337605118751526, -0.2964649200439453, 0.058436084538698196, -0.23157061636447906 ]
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.23152734339237213, 0.024640247225761414, -0.02236603945493698, 0.45745646953582764, 0.17442429065704346, 0.22958096861839294, -0.007371064275503159, 0.5081835985183716, -0.03165240213274956, 0.01912546157836914, -0.18429750204086304, -0.06401316076517105, -0.009163699112832546, 0.3338086009025574, -0.04336623102426529, -0.21947014331817627, -0.11076713353395462, 0.1606067419052124, 0.14076851308345795, 0.05975060164928436, -0.14481380581855774, 0.20090515911579132, -0.21544142067432404, -0.07255686819553375, -0.2707112431526184, -0.01300717331469059, 0.17583714425563812, 0.3205575942993164, 0.08506079763174057, -0.5288680791854858, 0.20255833864212036, -0.173953115940094, 0.025822222232818604, 0.5030128359794617, -0.00011122844443889335, 0.04866430163383484, 0.4246918559074402, -0.0443260595202446, -0.3031124472618103, 0.08027097582817078, -0.3098662495613098, -0.24286018311977386, 0.14436493813991547, -0.03201036900281906, -0.3313591480255127, -0.19015035033226013, -0.23360078036785126, -0.3375604748725891, 0.24932359158992767, 0.6167078018188477, 0.23858052492141724, 0.3121444284915924, 0.06087354198098183, 0.01650763303041458, -0.1109834685921669, -0.1475733071565628, -0.02267727255821228, 0.3512018620967865, -0.02152082324028015, 0.0317077562212944, 0.17848920822143555, 0.2144182324409485, 0.028754161670804024, 0.10949893295764923, 0.12858065962791443, -0.12856145203113556, 0.2033368945121765, -0.10635043680667877, 0.14491628110408783, 0.38468408584594727, 0.3563733398914337, -0.24207353591918945, -0.15195046365261078, -0.3080810606479645, -0.19866187870502472, -0.2773953378200531, 0.25658246874809265, 0.19997580349445343, -0.16248878836631775, 0.1661827713251114, -0.39458173513412476, 0.298767626285553, 0.058954209089279175, 0.08596666902303696, -0.19323255121707916, 0.24121637642383575, 0.15170733630657196, -0.02654588222503662, 0.02661210671067238, 0.09625972807407379, 0.16327156126499176, -0.19784195721149445, -0.06486056745052338, 0.2136574685573578, -0.6099309325218201, -0.22180664539337158, -0.30991750955581665, 0.49770623445510864, -0.01442309282720089, -0.05148341506719589, -0.11401231586933136, -0.01710406318306923, 0.1712183952331543, -0.18630415201187134, 0.16883142292499542, 0.21420934796333313, -0.1980089247226715, 0.12070948630571365, 0.14340487122535706, -0.1067875474691391, 0.01613236591219902, -0.07917764037847519, 0.16279222071170807, -0.1318759173154831, -0.06376363337039948, 0.24209517240524292, 0.05741459131240845, -0.3179146647453308, -0.692721426486969, 0.24580013751983643, -0.30380019545555115, -0.03688102215528488, 0.0007450608536601067, 0.3466169834136963, -0.3842551112174988, 0.2641146183013916, 0.10011151432991028, -0.17242078483104706, -0.279953271150589, -0.26886990666389465, -0.20569807291030884, 0.052230432629585266, -0.36856773495674133, 0.0012725619599223137, 0.25247281789779663, -0.20947259664535522, 0.40037086606025696, -0.05119815468788147, 0.1751805543899536, -0.047897353768348694, 0.20912793278694153, -0.3762725293636322, -0.10815290361642838, 0.2256002277135849, -0.31691259145736694, 0.03763344883918762, 0.26898428797721863, -0.09270642697811127, 0.010394714772701263, -0.034260042011737823, 0.15934491157531738, -0.3435828685760498, -0.1637994647026062, 0.28722670674324036, -0.014549380168318748, 0.02883906476199627, 0.06845957040786743, -0.05402486398816109, 0.33956262469291687, -0.11571785807609558, -0.19577813148498535, -0.2394082099199295, 0.033054087311029434, -0.05823009833693504, 0.18895436823368073, 0.48968929052352905, -0.4754009246826172, 0.08068408071994781, -0.34057044982910156, 0.1221407800912857, 0.4467155635356903, 0.29351216554641724, -0.033028628677129745, 0.2765636444091797, -0.20774057507514954, 0.023706398904323578, -0.01743573695421219, -0.36867260932922363, -0.3444622755050659, 0.5175634622573853, -0.08223690092563629, 0.3453429341316223, -0.05477086454629898, 0.043167077004909515, 0.13740147650241852, 0.04366135969758034, 0.15477734804153442, 0.20473800599575043, -0.1418505758047104, 0.1543143391609192, -0.5629574060440063, -0.12200034409761429, 0.3635742664337158, 0.013357188552618027, 0.18901431560516357, -0.2069268822669983, 0.12359146773815155, -0.08466120809316635, 0.49122124910354614, -0.008410435169935226, -0.12062001973390579, -0.0321737602353096, 0.21111100912094116, -0.02409304678440094, 0.10064230859279633, -0.27434611320495605, -0.5518812537193298, 0.26681163907051086, -0.023728886619210243, 0.15285184979438782, 0.12861359119415283, -0.046923812478780746, -0.589758574962616, -0.14676912128925323, -0.15623000264167786, -0.24047526717185974, 0.10611964762210846, 0.12265792489051819, 0.2428150475025177, 0.07963751256465912, -0.054624591022729874, 0.5485526323318481, -0.05779726803302765, 0.14132872223854065, -0.07995490729808807, 0.3413333594799042, -0.15256373584270477, -0.030509620904922485, -0.03024463728070259, 0.13465739786624908, 0.24633625149726868, -0.09839516133069992, -0.3567028045654297, 0.6420470476150513, 0.12486384809017181, 0.20668168365955353, -0.4426272213459015, 0.0053084492683410645, 0.3827440142631531, -0.3125801086425781, 0.0957021564245224, 0.5969319939613342, 0.23789538443088531, 0.018149562180042267, 0.09531331807374954, 0.4245103597640991, -0.029068831354379654, -0.05250353366136551, 0.10602304339408875, -0.18781206011772156, 0.1633402556180954, -0.14692245423793793, 0.20097851753234863, -0.3520142734050751, 0.440128356218338, -0.08631546795368195, 0.37604665756225586, -0.024364961311221123, -0.14552810788154602, 0.04850632697343826, 0.4009242653846741, -0.07378800213336945, -0.018499813973903656, -0.16348543763160706, -0.18191787600517273, -0.11849166452884674, 0.3020987808704376, 0.3241463899612427, 0.6374419927597046, 0.174552783370018, -0.21925291419029236, 0.23812900483608246, -0.0004304824396967888, -0.2599272131919861, 0.48313629627227783, -0.16536302864551544, 0.012773129157721996, 0.45833081007003784, 0.008977197110652924, 0.10918033868074417, -0.44877251982688904, 0.145079106092453, 0.12340303510427475, 0.18180161714553833, -0.3607912063598633, 0.07881616055965424, -0.21522241830825806, 0.09686695784330368, -0.35186347365379333, -0.2619571387767792, 0.029403772205114365, -0.31337955594062805, -0.01787203550338745, 0.13682332634925842, -0.050380948930978775, 0.23081159591674805, -0.4672611355781555, 0.08465538918972015, 0.11243504285812378, -0.12309839576482773, -0.2004062831401825, 0.07373302429914474, -0.36125895380973816, 0.09889215230941772, 0.25351303815841675, 0.06785019487142563, 0.2908094823360443, -0.19568005204200745, -0.1511838436126709, 0.024100780487060547, -0.40364784002304077, 0.1278226375579834, 0.11807060241699219, 0.22754177451133728, 0.09695582091808319, 0.0744815543293953, 0.3463851809501648, -0.41219550371170044, -0.07106733322143555, -0.13084205985069275, -0.21831807494163513, 0.1705409586429596, 0.03321118280291557, 0.024735357612371445, -0.11560429632663727, -0.5987553596496582, -0.4374196231365204, -0.38928309082984924, -0.049828410148620605, -0.16451624035835266, -0.0728495717048645, 0.1988961398601532, -0.13437874615192413, 0.051426518708467484, 0.18361884355545044, -0.0720972865819931, -0.40095254778862, 0.21228083968162537, 0.14455869793891907, -0.03927650302648544, -0.22418029606342316, -0.13846512138843536, -0.07727739214897156, -0.052773017436265945, -0.04581784829497337, -0.30234187841415405, 0.2543262541294098, -0.4560004472732544, 0.243556410074234, -0.19859576225280762, -0.21312369406223297, 0.28722184896469116, 0.031847525388002396, -0.03546108677983284, -0.13472867012023926, -0.03443778678774834, -0.07229127734899521, -0.1071653738617897, 0.16366347670555115, -0.1976875364780426, 0.3942438066005707, 0.13639776408672333, 0.4813588857650757, 0.24167630076408386, -0.543911874294281, 0.0680675059556961, 0.1705714762210846, 0.2048642486333847, -0.09902817755937576, -0.3353736996650696, 0.3906060755252838, -0.06826743483543396, 0.023958660662174225, 0.27524855732917786, -0.35052716732025146, -0.27816256880760193, -0.03561098501086235, 0.1964905709028244, -0.37616676092147827, -0.025656571611762047, -0.13386401534080505, -0.16364112496376038, 0.2058551013469696, 0.32547876238822937, 0.28920164704322815, 0.03548911213874817, -0.163717120885849, 0.25034666061401367, 0.2493053376674652, 0.012508019804954529, -0.1440630555152893, -0.12907521426677704, -0.16025890409946442, -0.22746938467025757, 0.3832497000694275, 0.3412734866142273, 0.2640644609928131, 0.07428842782974243, -0.1175946518778801, -0.04297859966754913, -0.06874419748783112, 0.677484929561615, -0.16021989285945892, 0.13942115008831024, -0.07702465355396271, 0.13327699899673462, -0.15247201919555664, -0.22403566539287567, -0.02292843721807003, 0.02377961203455925, 0.2947806417942047, 0.598914384841919, -0.3209037482738495, -0.14464335143566132, 0.34409967064857483, 0.3235158324241638, -0.16147007048130035, -0.31342613697052, -0.034694746136665344, -0.06410856544971466, -0.04521765559911728, 0.11545032262802124, 0.04628825932741165, 0.2783494293689728, -0.1482955664396286, -0.15314123034477234, 0.035107169300317764, -0.05071808397769928, 0.24413849413394928, 0.31419309973716736, 0.3286378085613251, -0.038605947047472, 0.3620903789997101, 0.15740075707435608, 0.3023655414581299, 0.37218448519706726, 0.21110637485980988, -0.34546366333961487, -0.05831429362297058, -0.12663534283638, 0.0932571291923523, -0.0013130083680152893, 0.2818879783153534, -0.04903571680188179, -0.13468295335769653, 0.25066274404525757, 0.06841973960399628, -0.152461975812912, 0.34522509574890137, -0.01778487116098404, 0.0991835817694664, -0.17988084256649017, -0.34323063492774963, 0.23169079422950745, -0.15484872460365295, 0.014571011066436768, 0.11570132523775101, 0.06790043413639069, -0.3640977144241333, -0.08807315677404404, 0.003484867513179779, 0.7999352812767029, 0.3829318881034851, -0.15092810988426208, 0.24419161677360535, -0.3533547520637512, 0.02274574525654316, -0.3782045841217041, 0.1704307645559311, -0.3321318030357361, -0.16701090335845947, -0.051264241337776184, -0.1950095146894455, -0.07095468789339066, 0.07453854382038116, -0.20987211167812347, 0.21862943470478058, -0.12442268431186676, 0.07746747881174088, 0.20480647683143616, 0.23702788352966309, 0.07307714223861694, 0.1332215964794159, -0.18071991205215454, 0.14647899568080902, -0.061223916709423065, 0.15841706097126007, -0.20900273323059082, -0.07801689952611923, 0.04622567817568779, -0.1878194361925125, -0.23432251811027527, 0.20044663548469543, -0.6715438365936279, 0.027445495128631592, 0.030633846297860146, -0.09719033539295197, -0.0029022283852100372, -0.09633125364780426, 0.2391873300075531, 0.2715620994567871, -0.12290860712528229, 0.03585014119744301, 0.13769377768039703, 0.15349476039409637, 0.052967917174100876, -0.03876008838415146, 0.20030121505260468, -0.13590207695960999, -0.17902874946594238, 0.08240555971860886, -0.3000929057598114, -0.18088792264461517, 0.2318430244922638, -0.08168858289718628, -0.02882317453622818, -0.31303882598876953, -0.16938543319702148, -0.08667843043804169, 0.10645651817321777, -0.20349249243736267, 0.1535090208053589, -0.2164582461118698, -0.32827356457710266, 0.04801921918988228, 0.0514250285923481, -0.32084405422210693, -0.3036959767341614, 0.26007625460624695, 0.15884777903556824, -0.02626456320285797, 0.37884265184402466, 0.011533375829458237, -0.32690370082855225, -0.25259876251220703, -0.1472422480583191, 0.15462540090084076, -0.4197562336921692, 0.0971364751458168, -0.3318912088871002, -0.2562443017959595, 0.15764589607715607, 0.27885177731513977, 0.5067471265792847, 0.03763497248291969, 0.05518624559044838, -0.5445109009742737, -0.10507674515247345, 0.046374447643756866, -0.16788701713085175, 0.22103549540042877, -0.05515672639012337, 0.6132631301879883, -0.3147180676460266, 0.181459441781044, -0.33864402770996094, 0.03922995924949646, -0.12331688404083252, 0.18939638137817383, 0.0008270740509033203, -0.2967323958873749, 0.279649555683136, 0.0981796532869339, 0.20745182037353516, 0.3625253438949585, -0.15028871595859528, -0.1964605748653412, -0.17003484070301056, 0.10347750782966614, 0.09796623140573502, -0.23080147802829742, 0.06258650869131088, 0.15897370874881744, -0.04345637187361717, -0.008685676380991936, 0.11313016712665558, -0.10680852085351944, -0.04336743801832199, 0.1655219942331314, 0.36770665645599365, -0.07249460369348526, -0.24274545907974243, 0.09125916659832001, -0.14439785480499268, 0.08559231460094452, 0.04841131344437599, 0.12990319728851318, -0.1480560451745987, 0.04758022725582123, 0.15830165147781372, -0.05593392997980118, 0.2772267460823059, 0.20091700553894043, 0.20709636807441711, -0.2499210089445114, -0.29451191425323486, 0.26053786277770996, 0.17688500881195068, 0.42840978503227234, 0.01149166189134121, -0.15831060707569122, 0.06980306655168533, 0.26372474431991577, -0.3338598608970642, -0.08000773191452026, -0.08416685461997986, -0.2150551825761795, 0.19192439317703247, 0.07876712083816528, 0.09974633157253265, -0.1859387457370758, -0.04689991474151611, 0.26225587725639343, 0.4332882761955261, -0.08601383864879608, 0.10912330448627472, 0.3987318277359009, -0.07160910964012146, 0.0295820664614439, 0.14997848868370056, -0.2502605617046356, 0.06258441507816315, 0.34474217891693115, -0.04796820133924484, 0.13587340712547302, 0.01018485240638256, 0.1770615428686142, -0.09116198867559433, -0.16177691519260406, 0.26509812474250793, 0.4197482466697693, -0.4040279984474182, 0.292924165725708, 0.23871801793575287, -0.10232970863580704, -0.3085988163948059, -0.1845877766609192, -0.4084452986717224, -0.19396932423114777, -0.07196427136659622, 0.10643860697746277, 0.017322305589914322, -0.34283360838890076, -0.2268974781036377, -0.011369332671165466, -0.03357023373246193, 0.047849513590335846, 0.5259103178977966, 0.024520590901374817, -0.2330120950937271, -0.12810805439949036, -0.28379026055336, 0.20174065232276917, 0.21901333332061768, -0.3413544297218323, 0.34174567461013794, 0.2017524540424347, -0.18790817260742188, -0.23577529191970825, 0.19087648391723633, 0.19290760159492493, 0.4227333068847656, -0.26074108481407166, -0.10731853544712067, 0.144697904586792, 0.009417133405804634, 0.12351532280445099, 0.41841796040534973, 0.05907443165779114, -0.0722045749425888, 0.2262648195028305, 0.13556328415870667, -0.24584271013736725, 0.14196957647800446, -0.08040469884872437, -0.11368425190448761, -0.6303737759590149, 0.33984068036079407, -0.027032867074012756, -0.005355667322874069, -0.10635656118392944, 0.20407427847385406, -0.34197038412094116, 0.05602748319506645, 0.393708735704422, -0.10502970963716507, 0.2485334873199463, 0.13549423217773438, 0.09909211844205856, -0.14319726824760437, 0.38790053129196167, 0.15731477737426758, 0.06969916075468063, -0.5092074275016785, -0.13680961728096008, -0.44292113184928894, 0.2315693199634552, -0.16399617493152618, 0.18357427418231964, -0.04636702314019203, 0.04757194221019745, 0.10860319435596466, 0.18673644959926605, 0.1462305784225464, 0.3793199956417084, 0.1809266358613968, -0.04415850341320038, -0.27042946219444275, -0.14950527250766754, -0.13656294345855713, -0.20334680378437042, 0.033027611672878265, -0.5399730205535889, 0.07811850309371948, 0.10107901692390442, 0.11846362799406052, -0.09273117780685425, -0.25100505352020264, 0.3491324782371521, 0.21621432900428772, 0.34822553396224976, 0.36039358377456665, 0.5763018131256104, -0.15500035881996155, -0.1805732697248459, 0.0021048560738563538, -0.046220168471336365, -0.1851196140050888, 0.1420893669128418, 0.1194765567779541, 0.32694151997566223, 0.08009364455938339, -0.11356543004512787, -0.23123636841773987, 0.48279786109924316, 0.3263701796531677, -0.2479366958141327, -0.2551734447479248, -0.056240975856781006, -0.36476579308509827, -0.03201165422797203, 0.26554015278816223, 0.3975045382976532, -0.0032961517572402954, 0.052044108510017395, 0.007727906107902527, -0.3785654902458191, 0.47975417971611023, -0.5694286823272705, -0.06979657709598541, -0.19357900321483612, 0.2503975033760071, -0.04341612011194229, -0.08110900223255157, -0.41991984844207764, 0.06523074954748154, 0.5131902098655701, -0.09612662345170975, -0.05060233920812607, 0.1511288732290268, 0.15451323986053467, -0.1854582279920578, 0.024998199194669724, 0.3290071487426758, 0.36337605118751526, -0.2964649200439453, 0.058436084538698196, -0.23157061636447906 ]
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.13581633567810059, -0.23497794568538666, -0.005932886153459549, 0.4061332941055298, 0.18514899909496307, -0.2260376513004303, -0.17160917818546295, 0.23573029041290283, -0.04383525252342224, 0.07408563792705536, 0.06681948900222778, 0.3859933912754059, -0.09585470706224442, -0.4473041892051697, -0.03920213133096695, -0.0029862038791179657, -0.0017701759934425354, -0.2732461392879486, -0.15616890788078308, -0.1142285019159317, -0.08795719593763351, 0.25576332211494446, -0.05864264816045761, 0.09833928942680359, 0.15123336017131805, 0.21464718878269196, 0.23393115401268005, -0.08531343191862106, -0.07357717305421829, -0.23725152015686035, 0.4464176893234253, -0.2547121047973633, 0.10615862160921097, 0.5718840956687927, -0.0001092228339985013, -0.10975466668605804, 0.5471614599227905, -0.005744883790612221, -0.16406913101673126, -0.3211090564727783, -0.20096909999847412, -0.36496949195861816, 0.3099011480808258, -0.22983503341674805, -0.1332615613937378, 0.0013609277084469795, -0.2734866142272949, -0.09778791666030884, 0.5416394472122192, 0.24252647161483765, 0.24680855870246887, -0.07072918117046356, -0.0329471193253994, -0.07356901466846466, 0.005617283284664154, 0.003561347723007202, -0.18552488088607788, 0.47801539301872253, -0.2764465808868408, 0.05388013273477554, -0.01938866823911667, 0.19803258776664734, 0.19249950349330902, 0.28826162219047546, 0.3047471046447754, -0.03743978217244148, 0.20566585659980774, 0.18653935194015503, 0.1254916489124298, 0.21225595474243164, 0.2753857672214508, -0.37598171830177307, -0.3653775453567505, 0.11674392968416214, -0.038362693041563034, -0.4420899450778961, 0.10105788707733154, 0.05975329875946045, 0.06172359362244606, -0.24332019686698914, -0.4172959327697754, 0.19595973193645477, -0.12319855391979218, 0.15829825401306152, -0.088547483086586, 0.4110734164714813, -0.18137551844120026, 0.1683816909790039, -0.17016568779945374, 0.07951417565345764, 0.10061970353126526, -0.13562682271003723, -0.056845907121896744, -0.03344454988837242, -0.16066883504390717, 0.044276535511016846, -0.13649645447731018, -0.1545800268650055, 0.062273554503917694, 0.004040468484163284, 0.2865041196346283, 0.05561307817697525, 0.4499138593673706, -0.06624595820903778, -0.08321963250637054, 0.1952991485595703, 0.40343841910362244, -0.09145981073379517, 0.22290974855422974, 0.28414011001586914, 0.07120941579341888, 0.0319354385137558, 0.1968727558851242, -0.2307179868221283, 0.522130012512207, 0.17318648099899292, -0.07892043888568878, -0.21636436879634857, -0.3225897550582886, 0.012597641907632351, 0.04602339118719101, 0.006102816667407751, 0.06509562581777573, -0.296636164188385, -0.12631145119667053, -0.19500204920768738, 0.007804635912179947, 0.14375561475753784, -0.24046438932418823, -0.011324603110551834, -0.2011924386024475, 0.10842178761959076, -0.10190646350383759, 0.3199004828929901, -0.06436862051486969, 0.18694090843200684, 0.37791067361831665, -0.02842874825000763, 0.21650369465351105, -0.2593056261539459, -0.14984558522701263, -0.004414428491145372, -0.0484350249171257, 0.07782874256372452, -0.14744031429290771, 0.21683795750141144, 0.22945888340473175, -0.23742885887622833, -0.16641151905059814, -0.07837022095918655, -0.09665562957525253, -0.20847414433956146, 0.15544159710407257, 0.20218873023986816, -0.3552139401435852, 0.0330943800508976, -0.027951277792453766, 0.10258878767490387, 0.06917835772037506, -0.024329930543899536, 0.03441367298364639, -0.26914501190185547, -0.2135484665632248, -0.07339207828044891, 0.371343195438385, -0.00008276104927062988, -0.2837850749492645, -0.04326936602592468, -0.39074841141700745, 0.3113580048084259, 0.10922608524560928, -0.14407885074615479, -0.007411930710077286, 0.01011338084936142, -0.15930157899856567, -0.49023663997650146, 0.38316988945007324, -0.28844520449638367, -0.3212447762489319, -0.16351793706417084, 0.2733112573623657, 0.22124360501766205, -0.09178993850946426, 0.05425528436899185, -0.24317431449890137, -0.0811813697218895, 0.3172593116760254, -0.016599826514720917, 0.34806740283966064, -0.1355614960193634, -0.5385571122169495, -0.039385490119457245, 0.11305253952741623, 0.006535127758979797, 0.31920868158340454, -0.42522376775741577, 0.17949755489826202, 0.22942322492599487, 0.01551014557480812, 0.1722092181444168, 0.04217873513698578, 0.06029941514134407, 0.09687446057796478, -0.45798975229263306, 0.02904624491930008, -0.22381389141082764, -0.030472256243228912, 0.26288121938705444, -0.20432838797569275, -0.05933142453432083, 0.19469809532165527, -0.001994185149669647, -0.5488243699073792, -0.05818101018667221, -0.029428694397211075, -0.19899195432662964, 0.1879662424325943, 0.1149049699306488, -0.06264252215623856, -0.04363001137971878, 0.07756854593753815, -0.13384193181991577, -0.36008667945861816, -0.09653744846582413, -0.08053457736968994, -0.028455469757318497, -0.15567488968372345, -0.11630639433860779, 0.3951694667339325, 0.20150050520896912, 0.2209816873073578, -0.0824575275182724, -0.25479742884635925, 0.31424054503440857, 0.21356257796287537, 0.07545869052410126, 0.21581381559371948, 0.08599084615707397, -0.11572516709566116, -0.22639408707618713, -0.13106714189052582, 0.3775627911090851, 0.14588436484336853, 0.16249355673789978, -0.1309816539287567, 0.3952783942222595, 0.32421690225601196, 0.0939597561955452, -0.09542033821344376, -0.11565962433815002, -0.009239109233021736, -0.014752335846424103, -0.19694197177886963, -0.2568126916885376, 0.15127883851528168, -0.08605785667896271, -0.021664168685674667, -0.16829697787761688, 0.24296176433563232, -0.14475202560424805, 0.35653215646743774, 0.054558176547288895, 0.22963735461235046, 0.1990036964416504, -0.24963751435279846, -0.23579323291778564, -0.21289780735969543, -0.16273383796215057, 0.34260985255241394, 0.031768668442964554, 0.0964507907629013, 0.06941699236631393, -0.2506142258644104, -0.31280243396759033, 0.1340085119009018, 0.2909137010574341, -0.08066932111978531, 0.3633870482444763, 0.3177284002304077, 0.011688941158354282, -0.11741140484809875, 0.25280410051345825, -0.05444354563951492, 0.06731007248163223, -0.0671745166182518, 0.203339084982872, -0.21433521807193756, 0.2841469943523407, -0.4203428030014038, -0.5077075958251953, -0.6033644080162048, -0.4780285656452179, 0.024638772010803223, -0.03397764638066292, 0.21613964438438416, 0.18094010651111603, 0.31637516617774963, 0.11962758749723434, 0.030719509348273277, 0.16646085679531097, -0.001349128782749176, -0.3262861371040344, -0.4050016701221466, 0.1059098094701767, -0.030093461275100708, -0.029920967295765877, 0.3423905670642853, -0.1375703364610672, 0.10936811566352844, -0.15150271356105804, -0.49554598331451416, 0.025205479934811592, -0.04574642330408096, 0.7252535820007324, 0.1718580573797226, -0.4527873992919922, 0.03724735230207443, 0.34584763646125793, 0.1602814942598343, -0.3668871223926544, 0.17350243031978607, 0.22183731198310852, -0.22502851486206055, -0.20842213928699493, -0.019001925364136696, -0.2203027307987213, 0.14420679211616516, -0.13514156639575958, -0.23159579932689667, 0.34862640500068665, 0.07076303660869598, 0.24680688977241516, -0.15778805315494537, 0.13446031510829926, 0.17482280731201172, 0.34670954942703247, -0.2913879454135895, -0.10063737630844116, 0.29143503308296204, -0.18256507813930511, -0.3294294774532318, -0.0032997317612171173, 0.11109611392021179, 0.4584416151046753, 0.06168835237622261, -0.2635658383369446, -0.6254199743270874, -0.028325160965323448, -0.02304759807884693, -0.06090521067380905, -0.1638612300157547, 0.08169397711753845, -0.2560123801231384, -0.048323120921850204, -0.25986623764038086, -0.2592058479785919, -0.09888442605733871, 0.1421605795621872, 0.36382779479026794, -0.13048094511032104, 0.0940268412232399, 0.1602390855550766, 0.6323764324188232, 0.26965177059173584, -0.12769150733947754, -0.10669650137424469, 0.11691524088382721, 0.104595847427845, -0.23401233553886414, -0.012203947640955448, 0.15131337940692902, 0.08461486548185349, 0.33541440963745117, 0.3545047640800476, 0.11125876009464264, 0.30035021901130676, -0.21063363552093506, -0.08655379712581635, -0.37575945258140564, -0.24795803427696228, -0.16291864216327667, 0.021529844030737877, 0.045819830149412155, 0.24452775716781616, 0.24552160501480103, -0.17438027262687683, -0.20716512203216553, 0.14534059166908264, 0.42507654428482056, -0.15906399488449097, 0.11136400699615479, 0.2787340581417084, 0.09787248820066452, -0.2737773358821869, 0.3948971629142761, 0.1274557262659073, 0.2267422378063202, 0.11609023809432983, 0.050030820071697235, 0.06983698904514313, -0.1368584781885147, -0.04884818196296692, -0.252326101064682, 0.3218268156051636, 0.13520129024982452, -0.1423921287059784, -0.6760880351066589, -0.21813467144966125, -0.2263401299715042, 0.06165553629398346, 0.2319738268852234, 0.42517194151878357, -0.13310854136943817, -0.18360663950443268, -0.18447037041187286, 0.1671067625284195, -0.19297297298908234, -0.17212125658988953, -0.35844895243644714, -0.02969527617096901, 0.1986008882522583, -0.1994779109954834, -0.2214978188276291, 0.19970117509365082, -0.20166483521461487, 0.06027206405997276, -0.1834779679775238, -0.26292747259140015, -0.058727264404296875, 0.05037345364689827, 0.2531854212284088, -0.29553475975990295, 0.2033887654542923, -0.31197983026504517, -0.06801676750183105, -0.2577800154685974, 0.06582411378622055, 0.30182623863220215, -0.17683780193328857, -0.09563492983579636, -0.17923477292060852, 0.07707200944423676, 0.13592301309108734, -0.15100695192813873, -0.10226649791002274, -0.47943201661109924, 0.28019261360168457, 0.028342094272375107, -0.08969861268997192, 0.16534161567687988, 0.01409162301570177, -0.15152405202388763, 0.05361246317625046, 0.5751381516456604, 0.3157079815864563, -0.17667871713638306, 0.2900366187095642, -0.03579098731279373, -0.33055102825164795, -0.13642096519470215, 0.28090015053749084, 0.6272661685943604, 0.40667104721069336, 0.011932332068681717, 0.049244578927755356, -0.2753585875034332, 0.30188944935798645, 0.34331566095352173, 0.15945877134799957, -0.41389966011047363, -0.2181345820426941, 0.04127190262079239, 0.13945309817790985, 0.04285527020692825, -0.3080531358718872, 0.11330831050872803, 0.528490424156189, -0.08172545582056046, 0.15836916863918304, -0.007994970306754112, 0.14656367897987366, 0.06541953980922699, 0.14676520228385925, -0.062102675437927246, 0.27102407813072205, -0.1619926393032074, 0.24233102798461914, -0.0018791686743497849, 0.06909942626953125, -0.202274888753891, -0.029611725360155106, -0.1416734904050827, -0.0009684916585683823, 0.5955708026885986, 0.07650455087423325, 0.20022383332252502, -0.4551084041595459, 0.048600468784570694, -0.11750346422195435, 0.5312620997428894, 0.3216872215270996, -0.22998148202896118, 0.2634177803993225, -0.5472123622894287, 0.24416884779930115, -0.13070698082447052, 0.1279841512441635, -0.06975774466991425, -0.11850108206272125, 0.018702276051044464, -0.13690096139907837, -0.03600027784705162, 0.0825163871049881, -0.06209933012723923, -0.1582503318786621, 0.37882769107818604, -0.041182976216077805, 0.4483363926410675, -0.3621816635131836, -0.047227777540683746, -0.26632779836654663, 0.21316497027873993, -0.218832865357399, 0.001445206580683589, 0.21883034706115723, 0.09489308297634125, -0.36359310150146484, 0.04283700883388519, 0.43290233612060547, -0.053454287350177765, 0.4348674714565277, -0.00921204686164856, -0.17889928817749023, 0.0522659495472908, -0.10797549039125443, -0.21238672733306885, -0.08462226390838623, -0.10479876399040222, 0.03432032838463783, -0.11246798932552338, 0.27507418394088745, 0.2135675996541977, 0.4239365756511688, 0.2719598412513733, -0.18367508053779602, -0.1555684506893158, -0.5252072811126709, 0.26824918389320374, -0.03289485722780228, -0.10706375539302826, 0.00739419087767601, -0.18679139018058777, -0.11039307713508606, 0.12665292620658875, 0.24202799797058105, -0.333404004573822, -0.014757107943296432, 0.07075546681880951, 0.05050942301750183, -0.060086652636528015, -0.25261539220809937, -0.08347915858030319, 0.20367364585399628, 0.06707676500082016, 0.18737445771694183, -0.29014256596565247, -0.22917675971984863, -0.2893624007701874, 0.09086823463439941, 0.12429339438676834, 0.007795361801981926, 0.04962948337197304, 0.21317720413208008, -0.1830178052186966, -0.24578189849853516, -0.1480921059846878, 0.11419082432985306, 0.1359609067440033, 0.302458792924881, -0.06044986471533775, 0.5086015462875366, 0.06532121449708939, -0.08611547946929932, 0.03359703719615936, 0.2548244595527649, -0.08846605569124222, 0.10847172141075134, 0.18752077221870422, -0.029893212020397186, -0.18486492335796356, -0.03083992749452591, -0.14488647878170013, 0.18823108077049255, 0.26965078711509705, 0.12907502055168152, 0.0684603601694107, 0.1303534358739853, 0.29864948987960815, 0.22367654740810394, -0.0637912005186081, -0.44423434138298035, -0.23948833346366882, 0.1733604371547699, -0.23437194526195526, -0.04069828614592552, -0.2714265286922455, 0.3211044371128082, -0.0014935582876205444, 0.061379339545965195, 0.15443071722984314, -0.18946963548660278, -0.18971692025661469, -0.09886174649000168, 0.7578176259994507, -0.44818252325057983, 0.04212014004588127, -0.140088751912117, 0.2631901502609253, 0.04632820188999176, 0.4292232394218445, -0.22571492195129395, 0.281401127576828, 0.2795666754245758, -0.20381012558937073, 0.3184911012649536, -0.10769336670637131, 0.08600033074617386, 0.03149661421775818, 0.18290886282920837, 0.16497734189033508, 0.3285508155822754, 0.23270653188228607, -0.058988578617572784, -0.009352728724479675, 0.38338804244995117, -0.2099044770002365, 0.05670669302344322, -0.4581984281539917, -0.13797102868556976, 0.2848413586616516, -0.08779747784137726, -0.4621802568435669, -0.12897013127803802, -0.18184664845466614, -0.025814130902290344, -0.08877156674861908, 0.06009456142783165, 0.015389390289783478, -0.0791155993938446, -0.12183888256549835, -0.30503660440444946, -0.2565436363220215, 0.3641904592514038, 0.1647268533706665, -0.24048136174678802, 0.2906774580478668, 0.4325600266456604, 0.10092994570732117, -0.14961697161197662, 0.07168739289045334, 0.1619824767112732, 0.12053991854190826, -0.2520705461502075, -0.07651550322771072, 0.33109596371650696, -0.08324068039655685, 0.10719969868659973, 0.27566155791282654, -0.05697892606258392, -0.10354501008987427, 0.36942964792251587, 0.2167433798313141, -0.20080246031284332, 0.26927393674850464, 0.0051081180572509766, 0.09361456334590912, -0.36050042510032654, 0.5348920822143555, -0.14330503344535828, 0.1428106427192688, 0.014624226838350296, 0.14320582151412964, -0.27389177680015564, -0.3752198815345764, -0.11375178396701813, 0.30000701546669006, 0.24511724710464478, -0.08012489974498749, 0.11317017674446106, -0.23739409446716309, 0.41214263439178467, -0.12866051495075226, -0.41607779264450073, -0.05169309675693512, -0.11810381710529327, -0.4005630612373352, 0.23408327996730804, 0.16833485662937164, 0.23761391639709473, -0.108219213783741, -0.05381958931684494, -0.3112974762916565, 0.18348969519138336, -0.0009353607892990112, 0.3528435230255127, -0.083481065928936, -0.17323298752307892, -0.515215277671814, -0.05064628645777702, 0.06621680408716202, -0.5063580870628357, 0.011571913957595825, -0.07321341335773468, 0.04042720049619675, -0.5476983189582825, 0.14112868905067444, 0.11177893728017807, -0.3006661832332611, 0.5468621253967285, 0.36462894082069397, 0.49028944969177246, 0.21030834317207336, 0.23372796177864075, -0.10058289766311646, -0.1806219518184662, -0.08302053809165955, 0.1566399335861206, -0.09284839034080505, 0.5090834498405457, -0.4025936722755432, 0.26901352405548096, 0.08039413392543793, 0.08697216212749481, -0.0826481506228447, 0.49364712834358215, 0.09498129785060883, -0.23239387571811676, -0.06887504458427429, -0.17615990340709686, -0.1346299648284912, -0.04267482832074165, -0.007223138120025396, 0.2450733184814453, -0.0961175411939621, 0.30143409967422485, -0.1895342320203781, -0.32760167121887207, 0.32085931301116943, -0.15262241661548615, -0.2464819699525833, -0.13146676123142242, 0.2957197427749634, 0.03761313855648041, -0.0539722740650177, -0.20761984586715698, 0.0782645121216774, 0.47409021854400635, -0.0011419914662837982, 0.2411157488822937, 0.28207719326019287, -0.15572065114974976, 0.02827361598610878, -0.01814209669828415, 0.2410157173871994, 0.2511882483959198, -0.18779703974723816, -0.00998680666089058, -0.049034230411052704 ]
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.14781838655471802, -0.2521865963935852, -0.024656353518366814, 0.3410745859146118, 0.23118171095848083, -0.2251473367214203, -0.13373470306396484, 0.23753014206886292, -0.10296858847141266, 0.10206717997789383, 0.08196064084768295, 0.3635594844818115, -0.16304226219654083, -0.3619384169578552, -0.04965507239103317, 0.04343926161527634, -0.023653842508792877, -0.3071352541446686, -0.15346543490886688, -0.04848243296146393, -0.07702301442623138, 0.2145741730928421, -0.024922356009483337, 0.09251601994037628, 0.16170930862426758, 0.24138635396957397, 0.17075753211975098, -0.04001817852258682, -0.14427629113197327, -0.25808143615722656, 0.374815970659256, -0.1964261531829834, 0.10105346143245697, 0.5309470891952515, -0.00010441210179124027, -0.12938475608825684, 0.586219072341919, 0.008137727156281471, -0.1793995052576065, -0.34557729959487915, -0.2490592896938324, -0.38524705171585083, 0.2880991995334625, -0.19191405177116394, -0.09591218829154968, 0.043768297880887985, -0.20663586258888245, -0.10084334015846252, 0.5769687294960022, 0.2530088424682617, 0.2920752465724945, -0.12184887379407883, 0.012670349329710007, -0.0997711643576622, 0.04638499394059181, 0.06619133800268173, -0.18009911477565765, 0.4117850661277771, -0.23854240775108337, 0.09821947664022446, -0.04252726584672928, 0.2050890326499939, 0.19384765625, 0.2316538393497467, 0.2611711025238037, -0.05468884855508804, 0.215609610080719, 0.17113986611366272, 0.07795892655849457, 0.19119971990585327, 0.32768070697784424, -0.3993019163608551, -0.3931278586387634, 0.13593369722366333, -0.008249486796557903, -0.49204450845718384, 0.049925897270441055, 0.07829242199659348, 0.022534172981977463, -0.21199455857276917, -0.4008941948413849, 0.12894777953624725, -0.12225832790136337, 0.12708863615989685, -0.05856821686029434, 0.39072492718696594, -0.22488252818584442, 0.12033680081367493, -0.1347389817237854, 0.05841904506087303, 0.0831420049071312, -0.038394324481487274, -0.03438655659556389, -0.031081672757864, -0.13472498953342438, 0.03423936665058136, -0.15663710236549377, -0.15254580974578857, 0.16901171207427979, -0.002983320504426956, 0.24335522949695587, 0.10080230236053467, 0.4526500105857849, -0.025130748748779297, -0.04111417755484581, 0.1939605176448822, 0.4406625032424927, -0.11134783178567886, 0.2504621148109436, 0.3186844289302826, 0.10441677272319794, 0.06323259323835373, 0.16178202629089355, -0.19168537855148315, 0.5070533156394958, 0.1325174868106842, -0.013789528049528599, -0.1788940280675888, -0.3429354429244995, 0.09186063706874847, 0.06691794097423553, 0.008175332099199295, 0.1029941514134407, -0.17996284365653992, -0.13957583904266357, -0.14648392796516418, -0.015631916001439095, 0.046436749398708344, -0.18462565541267395, -0.06623508781194687, -0.2085936814546585, 0.15490582585334778, -0.2039872705936432, 0.28922954201698303, -0.04164443537592888, 0.16772915422916412, 0.34006741642951965, -0.038906704634428024, 0.20238831639289856, -0.23632006347179413, -0.11128200590610504, 0.013360807672142982, -0.04152742773294449, 0.06465469300746918, -0.11014862358570099, 0.17393018305301666, 0.18428581953048706, -0.27902495861053467, -0.10203124582767487, -0.039159707725048065, -0.11441483348608017, -0.19489945471286774, 0.0797407254576683, 0.25159457325935364, -0.3690243363380432, 0.04990774393081665, -0.014007583260536194, 0.18260453641414642, 0.0627036988735199, -0.020493347197771072, 0.05271945893764496, -0.13262057304382324, -0.15797454118728638, -0.0940813347697258, 0.35705581307411194, 0.11149129271507263, -0.28139856457710266, -0.009376388043165207, -0.43085604906082153, 0.3145475387573242, 0.12474364042282104, -0.20655730366706848, 0.022444576025009155, -0.056747786700725555, -0.1615627557039261, -0.5349421501159668, 0.3647174835205078, -0.23569625616073608, -0.33804193139076233, -0.23512287437915802, 0.20339028537273407, 0.13151268661022186, -0.057731471955776215, 0.042136501520872116, -0.24690651893615723, -0.06961643695831299, 0.27856069803237915, -0.028637535870075226, 0.28815793991088867, -0.13207967579364777, -0.5351971387863159, -0.05179683864116669, 0.11699512600898743, 0.07782711088657379, 0.30189695954322815, -0.45679283142089844, 0.24650755524635315, 0.21157456934452057, -0.0054069384932518005, 0.21379706263542175, 0.04831191152334213, 0.09664668142795563, 0.11473463475704193, -0.4557759761810303, 0.12028209120035172, -0.2431791126728058, -0.04122661054134369, 0.264069527387619, -0.1666332185268402, -0.12022577226161957, 0.21893861889839172, 0.02052268385887146, -0.5379591584205627, 0.03684050589799881, -0.08121630549430847, -0.18206346035003662, 0.2198261320590973, 0.06134878844022751, -0.14015908539295197, -0.09935586154460907, -0.0055012330412864685, -0.13136735558509827, -0.3810175359249115, -0.08161350339651108, -0.11457426846027374, -0.053608499467372894, -0.1969033181667328, -0.12774300575256348, 0.36008161306381226, 0.15951597690582275, 0.19437992572784424, -0.053017646074295044, -0.23229026794433594, 0.3451603651046753, 0.2800028920173645, 0.023114822804927826, 0.22303122282028198, 0.11848369240760803, -0.08707999438047409, -0.2262260615825653, -0.1516229808330536, 0.288150817155838, 0.17532794177532196, 0.1734195351600647, -0.2755354642868042, 0.3950209617614746, 0.22535687685012817, 0.025540217757225037, -0.10975246131420135, -0.023160379379987717, 0.03610298037528992, 0.010912198573350906, -0.29231780767440796, -0.2639074921607971, 0.1407267153263092, -0.1132558137178421, 0.01470872387290001, -0.13239283859729767, 0.19139644503593445, -0.1522478461265564, 0.3871747851371765, 0.0431436188519001, 0.3020341098308563, 0.2685675323009491, -0.21798181533813477, -0.2699257433414459, -0.21274912357330322, -0.17492985725402832, 0.2869415879249573, 0.1010899692773819, 0.11030649393796921, 0.07481357455253601, -0.14974555373191833, -0.25462502241134644, 0.14588889479637146, 0.22891175746917725, -0.1467740535736084, 0.29090648889541626, 0.3128204643726349, 0.007274274714291096, -0.11405813694000244, 0.20039544999599457, -0.07692980766296387, 0.07346246391534805, -0.09103693068027496, 0.12090491503477097, -0.1940789669752121, 0.3012641668319702, -0.38215887546539307, -0.5017492175102234, -0.6062211394309998, -0.4944019913673401, 0.06554234027862549, -0.0839284360408783, 0.21298833191394806, 0.17576639354228973, 0.32695552706718445, 0.1595519483089447, 0.06674014776945114, 0.20717379450798035, -0.01700671762228012, -0.33149489760398865, -0.294585257768631, 0.14254876971244812, -0.08027675747871399, -0.04403962939977646, 0.3598221242427826, -0.11869408935308456, 0.14314281940460205, -0.12410811334848404, -0.4709450304508209, 0.04560217261314392, 0.00826086476445198, 0.6918195486068726, 0.23613831400871277, -0.47475695610046387, -0.020640386268496513, 0.40396419167518616, 0.1259768009185791, -0.38746607303619385, 0.13845038414001465, 0.286540150642395, -0.2143690139055252, -0.20143625140190125, 0.010843291878700256, -0.14308330416679382, 0.11175050586462021, -0.13480666279792786, -0.2115037590265274, 0.39028266072273254, 0.023757081478834152, 0.2410508394241333, -0.1284731775522232, 0.26499006152153015, 0.1560121476650238, 0.32951125502586365, -0.30267423391342163, -0.20360766351222992, 0.3007967472076416, -0.17329876124858856, -0.3139928877353668, 0.02917390689253807, 0.12070858478546143, 0.37866926193237305, -0.014959694817662239, -0.19025321304798126, -0.6665779948234558, -0.03139449656009674, -0.05941493809223175, -0.036087341606616974, -0.12008777260780334, 0.11672911047935486, -0.21649472415447235, -0.08649397641420364, -0.2213134765625, -0.2261391133069992, -0.10139591246843338, 0.11490895599126816, 0.35084396600723267, -0.18253406882286072, 0.08955644071102142, 0.22996607422828674, 0.7172634601593018, 0.2367883324623108, -0.114333376288414, -0.102993905544281, 0.06963925063610077, 0.13119472563266754, -0.21510937809944153, -0.05395195633172989, 0.17543675005435944, 0.05372994393110275, 0.2634047865867615, 0.36544156074523926, 0.1269429475069046, 0.31318992376327515, -0.2360469251871109, -0.1155117005109787, -0.3265324532985687, -0.19526763260364532, -0.23562775552272797, -0.007068958133459091, -0.05048041790723801, 0.21956491470336914, 0.2327738106250763, -0.08766715228557587, -0.20716220140457153, 0.1731904149055481, 0.42346054315567017, -0.15885740518569946, 0.10271567106246948, 0.37247803807258606, 0.11408338695764542, -0.3238574266433716, 0.3314688205718994, 0.09094114601612091, 0.18644192814826965, 0.11267822980880737, 0.05500888079404831, -0.0031140893697738647, -0.19093994796276093, -0.020978152751922607, -0.2531185746192932, 0.3101332187652588, 0.044641975313425064, -0.12252099066972733, -0.5995676517486572, -0.16322970390319824, -0.24278832972049713, 0.021691657602787018, 0.14642246067523956, 0.3101499676704407, -0.08082345128059387, -0.13280722498893738, -0.15134631097316742, 0.12084710597991943, -0.15529797971248627, -0.1163102239370346, -0.3726924955844879, -0.06318376958370209, 0.13534894585609436, -0.12555405497550964, -0.16352367401123047, 0.12129185348749161, -0.11367744952440262, 0.0013396479189395905, -0.1744621843099594, -0.2919594347476959, -0.03500373661518097, 0.030629530549049377, 0.1390451192855835, -0.34605419635772705, 0.1883101463317871, -0.24142950773239136, -0.047854118049144745, -0.2576875388622284, 0.10251889377832413, 0.31544506549835205, -0.24699601531028748, -0.058959707617759705, -0.17689336836338043, 0.11387056112289429, 0.09748157858848572, -0.21139954030513763, -0.09296578913927078, -0.5180147886276245, 0.2825884521007538, 0.009576739743351936, -0.09024175256490707, 0.12237386405467987, 0.06306131184101105, -0.16485607624053955, 0.04119923710823059, 0.5064489245414734, 0.25825127959251404, -0.14600254595279694, 0.38887733221054077, -0.016643226146697998, -0.2525936961174011, -0.12298855185508728, 0.31097665429115295, 0.6403048634529114, 0.3419138193130493, -0.034465331584215164, 0.04472876340150833, -0.22849079966545105, 0.26648929715156555, 0.28618526458740234, 0.1647363156080246, -0.414299875497818, -0.28089219331741333, 0.04309847950935364, 0.1353818029165268, 0.07651090621948242, -0.32249265909194946, 0.07153753936290741, 0.4974333941936493, -0.14064213633537292, 0.09871120750904083, 0.01700936071574688, 0.18656012415885925, 0.07757483422756195, 0.0481402724981308, -0.044886618852615356, 0.293974369764328, -0.1924893707036972, 0.1315668225288391, -0.009664442390203476, 0.12232819944620132, -0.072028249502182, -0.007626913487911224, -0.17055147886276245, 0.058073870837688446, 0.577272355556488, 0.05316682532429695, 0.16289596259593964, -0.34323275089263916, 0.019838768988847733, -0.0865582823753357, 0.46545445919036865, 0.3328102231025696, -0.2302960455417633, 0.2989506721496582, -0.5688626766204834, 0.2628830075263977, -0.14349988102912903, 0.12992379069328308, 0.0013415012508630753, -0.0944523736834526, 0.07074571400880814, -0.09558816999197006, 0.0549444854259491, 0.1475527137517929, -0.006272807717323303, -0.177695170044899, 0.3491708040237427, -0.017258701846003532, 0.4607381224632263, -0.3853226602077484, -0.11815859377384186, -0.24699145555496216, 0.24816010892391205, -0.12555398046970367, -0.08960957080125809, 0.1540977656841278, 0.15581871569156647, -0.3281247913837433, 0.02929215505719185, 0.5054624676704407, -0.1028205081820488, 0.42805004119873047, -0.07925774157047272, -0.13558761775493622, 0.037390708923339844, -0.13637128472328186, -0.052877530455589294, -0.0011781875509768724, -0.05152708292007446, 0.047164544463157654, -0.14782756567001343, 0.30121469497680664, 0.25519871711730957, 0.4241330921649933, 0.2505406141281128, -0.22285279631614685, -0.13283488154411316, -0.5114206075668335, 0.2083122581243515, -0.04536852240562439, -0.09608560800552368, -0.0417177714407444, -0.16612881422042847, -0.17200350761413574, 0.1735004335641861, 0.25808247923851013, -0.38594648241996765, -0.07521945983171463, 0.039848774671554565, 0.0059615448117256165, -0.025820136070251465, -0.2938757538795471, -0.14330792427062988, 0.12780772149562836, 0.11926676332950592, 0.15937158465385437, -0.28006255626678467, -0.2723570764064789, -0.28232622146606445, 0.06565571576356888, 0.07337893545627594, 0.06898073107004166, 0.0012033963575959206, 0.2080422192811966, -0.2676582634449005, -0.22332032024860382, -0.1572522670030594, 0.17030400037765503, 0.10348501801490784, 0.2949132025241852, -0.06439395248889923, 0.40622544288635254, 0.045361801981925964, -0.1708669513463974, 0.05853109061717987, 0.21471068263053894, -0.053199876099824905, 0.11933927237987518, 0.20251739025115967, -0.06298941373825073, -0.12793408334255219, 0.03523768112063408, -0.06751550734043121, 0.17313387989997864, 0.31187254190444946, 0.056235723197460175, 0.08848462998867035, 0.12321434915065765, 0.3532482981681824, 0.12463255226612091, -0.10604885220527649, -0.40633994340896606, -0.2176291048526764, 0.2336740642786026, -0.2540643811225891, -0.12007885426282883, -0.24770697951316833, 0.3661581873893738, 0.0031073279678821564, 0.07881402224302292, 0.07935455441474915, -0.18042132258415222, -0.16134274005889893, -0.07949058711528778, 0.7314044237136841, -0.488513708114624, 0.021629514172673225, -0.14937594532966614, 0.2265651673078537, 0.03507423400878906, 0.4405236840248108, -0.13721652328968048, 0.3410739302635193, 0.3740028142929077, -0.2450246810913086, 0.42500433325767517, -0.042995184659957886, 0.21513642370700836, 0.013903297483921051, 0.15375125408172607, 0.22100061178207397, 0.30621612071990967, 0.20338165760040283, -0.04503443092107773, -0.07491722702980042, 0.31866249442100525, -0.19254502654075623, 0.15389955043792725, -0.40804436802864075, -0.11064320802688599, 0.28303784132003784, -0.10466745495796204, -0.3735605478286743, -0.1484469771385193, -0.2269962877035141, -0.040397852659225464, -0.050724927335977554, 0.06314225494861603, 0.003671586513519287, -0.08684805035591125, -0.07834893465042114, -0.27812570333480835, -0.1826881468296051, 0.3552916646003723, 0.24072712659835815, -0.30745095014572144, 0.2518780529499054, 0.39199018478393555, 0.12223239243030548, -0.2010677009820938, -0.015965687111020088, 0.10126572102308273, 0.13691562414169312, -0.308723509311676, -0.03390800952911377, 0.2608790397644043, -0.14416250586509705, 0.0951400175690651, 0.2885706126689911, -0.0707426369190216, -0.08129152655601501, 0.371500700712204, 0.2621389627456665, -0.23810091614723206, 0.27897557616233826, 0.036415763199329376, 0.08594296872615814, -0.37696605920791626, 0.4557332694530487, -0.10826732218265533, 0.09149164706468582, -0.01324603334069252, 0.1441664695739746, -0.29510658979415894, -0.4457584619522095, -0.04303104430437088, 0.23531313240528107, 0.17497697472572327, -0.1530628353357315, 0.13836844265460968, -0.16138502955436707, 0.376900315284729, -0.17613886296749115, -0.37822791934013367, -0.012543239630758762, -0.052063245326280594, -0.4072154760360718, 0.1669827252626419, 0.25787267088890076, 0.24934616684913635, -0.01163589209318161, -0.05547910928726196, -0.3329477906227112, 0.20945462584495544, -0.04430830478668213, 0.4313591420650482, -0.10412929207086563, -0.15142060816287994, -0.4020174741744995, -0.03380569443106651, -0.01917286217212677, -0.43305185437202454, -0.01514080073684454, -0.038617976009845734, 0.019043128937482834, -0.5741435885429382, 0.17708003520965576, 0.10415419191122055, -0.3532293438911438, 0.540879487991333, 0.30044054985046387, 0.42274153232574463, 0.1769692450761795, 0.14797364175319672, -0.15142570436000824, -0.09633750468492508, -0.10344250500202179, 0.10701856017112732, -0.11940093338489532, 0.4396030306816101, -0.3794591426849365, 0.18138323724269867, 0.10888539999723434, 0.07695801556110382, -0.1336255818605423, 0.43736207485198975, 0.09234324097633362, -0.1658060997724533, -0.08457385003566742, -0.1421273946762085, -0.09275352209806442, -0.006817909888923168, -0.05104173347353935, 0.19101667404174805, -0.08718658983707428, 0.23749978840351105, -0.14455319941043854, -0.23939403891563416, 0.3237605690956116, -0.12959334254264832, -0.23351265490055084, -0.16684503853321075, 0.27071917057037354, 0.049122340977191925, -0.06251224130392075, -0.22273164987564087, 0.04143642634153366, 0.4593598246574402, 0.02137776091694832, 0.1399921178817749, 0.22711646556854248, -0.13912636041641235, 0.056777846068143845, -0.0739603042602539, 0.20573711395263672, 0.22559696435928345, -0.09739505499601364, 0.0037190020084381104, -0.043750450015068054 ]
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.06590187549591064, -0.25096946954727173, 0.029678456485271454, 0.5075566172599792, 0.4053788185119629, 0.17190709710121155, 0.48177775740623474, 0.13464540243148804, -0.3654308021068573, -0.13152384757995605, -0.15433143079280853, 0.3956095278263092, -0.03830302879214287, -0.019348476082086563, -0.08973269164562225, -0.291996568441391, 0.2896154224872589, -0.0016611218452453613, -0.20817974209785461, -0.22738218307495117, -0.03819718956947327, 0.15827791392803192, -0.28411799669265747, 0.03575752303004265, -0.21611322462558746, 0.031572554260492325, -0.06330502033233643, -0.10395828634500504, 0.006390199065208435, 0.03904811292886734, 0.4256387948989868, 0.00040150806307792664, 0.24800854921340942, 0.5711283087730408, -0.00012177471944596618, 0.07000629603862762, 0.11092206835746765, 0.023052768781781197, -0.005457308143377304, -0.024739935994148254, -0.27271369099617004, -0.3866921365261078, 0.10012751817703247, -0.22124141454696655, 0.09554179757833481, -0.27620232105255127, -0.280290424823761, -0.45635277032852173, -0.0949745774269104, 0.16945286095142365, 0.15141090750694275, 0.22915548086166382, 0.02983628585934639, 0.11349938064813614, 0.17708778381347656, 0.169030100107193, -0.1362747699022293, -0.11366988718509674, -0.0572793185710907, 0.2449539601802826, 0.44709664583206177, -0.040095455944538116, -0.18465863168239594, -0.19472728669643402, 0.0227862186729908, 0.2623606026172638, -0.31488385796546936, -0.39636462926864624, -0.17330783605575562, 0.16748906672000885, 0.5260431170463562, -0.15220406651496887, -0.1825701892375946, -0.13989035785198212, 0.014049509540200233, 0.10071921348571777, 0.14675945043563843, 0.17906372249126434, 0.16746187210083008, -0.06299731135368347, 0.0019771773368120193, 0.25783589482307434, -0.061274200677871704, 0.2807203233242035, -0.26070788502693176, -0.01130223274230957, -0.12052948772907257, 0.27404576539993286, -0.09216588735580444, -0.18204961717128754, 0.18667256832122803, -0.265875905752182, -0.07105520367622375, -0.016265712678432465, -0.5050222873687744, -0.08404476940631866, 0.05900511145591736, -0.5095170736312866, -0.15056392550468445, -0.14266782999038696, 0.12118850648403168, 0.05277857184410095, -0.20762009918689728, 0.13591593503952026, 0.20715539157390594, 0.30627861618995667, -0.06432434171438217, 0.38826486468315125, -0.09041503071784973, -0.010921362787485123, -0.06273369491100311, 0.10546866804361343, -0.030391115695238113, -0.30528396368026733, 0.08188565075397491, 0.025435984134674072, 0.3865284323692322, -0.014789052307605743, -0.3727706968784332, 0.010885242372751236, -0.38479673862457275, 0.2573918104171753, 0.08485641330480576, -0.1533520519733429, -0.38814371824264526, 0.5925758481025696, 0.2986510992050171, 0.28116852045059204, 0.05650057643651962, -0.019883986562490463, -0.05712451413273811, -0.27713215351104736, -0.07687267661094666, -0.2397635132074356, 0.03177518770098686, -0.14349950850009918, -0.22574880719184875, 0.4488452076911926, 0.12573079764842987, 0.012525826692581177, -0.059562720358371735, -0.08099167048931122, 0.2891119718551636, -0.04344683513045311, -0.07616542279720306, 0.22908858954906464, 0.18114769458770752, -0.09850584715604782, -0.0362645648419857, 0.23869433999061584, -0.4926412105560303, -0.0590340718626976, -0.38178396224975586, 0.11357004940509796, -0.016453444957733154, 0.010464336723089218, -0.07319136708974838, 0.18364761769771576, 0.5666253566741943, 0.24800720810890198, 0.07040788233280182, -0.28780996799468994, 0.0037997551262378693, -0.29954245686531067, -0.0008168444037437439, 0.020913273096084595, -0.21850675344467163, -0.01271921768784523, -0.16500170528888702, 0.09932909905910492, 0.4306168854236603, 0.3159378170967102, -0.1027803048491478, 0.3083862066268921, -0.36317530274391174, 0.06801281869411469, 0.5011179447174072, -0.08262340724468231, -0.05583563446998596, -0.06202093884348869, -0.007606498897075653, 0.48445868492126465, -0.01920180767774582, 0.05405842885375023, -0.002855626866221428, 0.09045398980379105, 0.42101579904556274, 0.2623531222343445, 0.11964112520217896, -0.03852040320634842, -0.17267389595508575, 0.09947264194488525, 0.6978393793106079, -0.0961645245552063, -0.11971160769462585, 0.3987000286579132, -0.02879984676837921, 0.02676507458090782, 0.1838669776916504, -0.20131909847259521, 0.0032166563905775547, 0.04873441532254219, -0.10226723551750183, 0.12785780429840088, 0.143434077501297, 0.08855310082435608, -0.47728121280670166, 0.021808505058288574, -0.10823531448841095, 0.10015961527824402, -0.20139028131961823, -0.18235105276107788, 0.1723068356513977, -0.031214699149131775, -0.0837009996175766, 0.2704252600669861, 0.06326254457235336, 0.07638336718082428, -0.4588807225227356, -0.09220606088638306, 0.14243300259113312, 0.10005614161491394, 0.14274944365024567, 0.025511393323540688, -0.4670332372188568, 0.22077302634716034, 0.05161895602941513, -0.0008808290585875511, -0.33709946274757385, 0.16911530494689941, 0.16272284090518951, -0.012184997089207172, -0.13864168524742126, 0.23625501990318298, -0.24025313556194305, 0.04328722879290581, -0.16629543900489807, 0.06334063410758972, 0.07863613963127136, 0.036259766668081284, -0.11919311434030533, 0.19888606667518616, 0.1499747782945633, -0.21199339628219604, 0.2961159944534302, 0.46910858154296875, 0.21510714292526245, 0.12622897326946259, -0.3541629910469055, 0.10888805240392685, 0.03664787858724594, 0.04666950926184654, -0.1513884961605072, 0.0986701101064682, 0.033231452107429504, 0.1303199827671051, -0.163621723651886, 0.196262925863266, -0.594221293926239, 0.20501774549484253, 0.44577860832214355, -0.029396845027804375, 0.18318960070610046, -0.03183051198720932, -0.11524560302495956, 0.1445440948009491, 0.04004247486591339, -0.400314062833786, 0.5986577272415161, -0.07628534734249115, 0.16004855930805206, -0.062399692833423615, 0.031903740018606186, -0.08843644708395004, 0.15788137912750244, 0.16347718238830566, -0.16488030552864075, 0.2422768473625183, 0.5488058924674988, -0.025892149657011032, 0.0026320666074752808, 0.24119845032691956, -0.02586621232330799, -0.06952907890081406, -0.4299572706222534, 0.40895313024520874, -0.4493626654148102, -0.013052364811301231, -0.433783620595932, -0.4268891215324402, -0.23255619406700134, -0.19145607948303223, -0.3151692748069763, 0.08315388858318329, -0.030800340697169304, 0.14091745018959045, 0.23150354623794556, 0.20885822176933289, 0.4176332652568817, -0.3352907598018646, -0.01161801815032959, 0.25658199191093445, -0.2936904728412628, -0.019422246143221855, 0.10111900418996811, -0.47461363673210144, -0.09270153939723969, -0.014016835018992424, 0.11415617167949677, -0.23719781637191772, -0.3689378798007965, -0.04977083206176758, -0.23839034140110016, 0.03737170994281769, 0.21846246719360352, -0.025250867009162903, -0.06955741345882416, -0.35851848125457764, 0.09149686992168427, 0.39103013277053833, 0.040258198976516724, 0.5428991317749023, -0.12061042338609695, -0.14593175053596497, -0.27374136447906494, -0.4142551124095917, -0.15898744761943817, -0.1897292286157608, 0.3760148882865906, 0.05561311915516853, 0.02554555982351303, 0.2554219961166382, 0.10489588230848312, -0.11404582858085632, 0.36535128951072693, 0.17994704842567444, -0.2550261318683624, -0.30129051208496094, 0.5462102890014648, -0.03525794297456741, -0.299188494682312, -0.1919011026620865, -0.18150010704994202, 0.08648060262203217, 0.31255263090133667, -0.33830761909484863, 0.2758900821208954, -0.22691313922405243, 0.523186981678009, -0.264123797416687, 0.03714998811483383, 0.0337027870118618, 0.21989400684833527, 0.0525679886341095, -0.19429397583007812, 0.20898208022117615, 0.26199811697006226, 0.16838663816452026, 0.41858163475990295, -0.026602942496538162, -0.05172702670097351, 0.05002271756529808, 0.2800498604774475, 0.055394429713487625, -0.5754985213279724, 0.05527673661708832, 0.03695843741297722, 0.21489040553569794, -0.12273416668176651, -0.5823749303817749, -0.0003762550186365843, -0.25601643323898315, 0.06770680099725723, -0.18076340854167938, -0.2100425660610199, -0.22956575453281403, -0.01386481337249279, 0.45337873697280884, 0.039206720888614655, -0.28664466738700867, 0.19870911538600922, -0.2816280722618103, 0.15233756601810455, -0.002885982394218445, -0.09136874228715897, -0.2553847134113312, -0.24792003631591797, 0.1207728236913681, 0.24881824851036072, -0.1429392695426941, -0.036686066538095474, -0.3327063322067261, -0.38450363278388977, -0.0645509734749794, 0.3166654407978058, 0.22684140503406525, 0.39788180589675903, 0.22283969819545746, -0.18832328915596008, -0.1549566388130188, 0.44593527913093567, 0.8358084559440613, 0.1393991857767105, -0.3315664529800415, 0.30972519516944885, 0.15633223950862885, -0.3661016523838043, -0.4271104633808136, -0.21926607191562653, 0.21070487797260284, 0.2837596833705902, 0.25010690093040466, -0.2852647006511688, -0.05094093456864357, -0.044863954186439514, 0.36631256341934204, -0.11627182364463806, 0.05559851601719856, -0.1983715295791626, -0.0186840258538723, 0.06201188266277313, -0.295648455619812, 0.002154311165213585, 0.32047611474990845, -0.5425030589103699, -0.47964704036712646, -0.25948435068130493, -0.15471091866493225, 0.13538777828216553, -0.1421690583229065, 0.2919120788574219, -0.017959775403141975, 0.08591325581073761, -0.22035321593284607, 0.22655552625656128, 0.21678711473941803, 0.4099758565425873, 0.23812620341777802, -0.6073957681655884, 0.0864768698811531, -0.08167453110218048, 0.15483573079109192, 0.16257227957248688, -0.372244268655777, 0.1816207617521286, -0.2765265703201294, -0.03113110363483429, -0.04567820951342583, 0.4009893834590912, 0.5867692828178406, 0.28097227215766907, -0.5694264769554138, -0.40782541036605835, 0.22109535336494446, 0.2447013407945633, -0.040897030383348465, 0.3986690044403076, -0.5758923888206482, -0.4458219110965729, 0.015169233083724976, -0.13130256533622742, 0.9348545670509338, 0.2274409830570221, 0.3354799151420593, 0.360338419675827, 0.2283129245042801, 0.2585180997848511, -0.08760793507099152, 0.2597101330757141, -0.21744243800640106, -0.2065104842185974, -0.14600862562656403, -0.34748175740242004, 0.08503600209951401, -0.07124675810337067, -0.4455399811267853, -0.08354206383228302, -0.6744426488876343, 0.26340755820274353, 0.020050736144185066, -0.19676078855991364, 0.21132050454616547, -0.3538206219673157, -0.021570749580860138, 0.007971331477165222, -0.10439909994602203, 0.11086848378181458, -0.1389361023902893, -0.18535159528255463, -0.3907161056995392, -0.04149942845106125, -0.12760914862155914, 0.2642030119895935, -0.16001373529434204, 0.46132320165634155, 0.2610340416431427, -0.3412081003189087, 0.18067775666713715, 0.3065131902694702, 0.26567915081977844, 0.17454515397548676, -0.041194215416908264, -0.0961853563785553, 0.19470134377479553, 0.2346385270357132, 0.22877763211727142, -0.3867941200733185, 0.3823728859424591, 0.3281327188014984, -0.15357160568237305, 0.08136269450187683, 0.13075678050518036, 0.0036411210894584656, -0.29417794942855835, 0.1807541698217392, 0.031040038913488388, -0.6678332686424255, 0.025742024183273315, 0.11442484706640244, 0.2623026371002197, 0.007884882390499115, 0.04556352645158768, 0.032608237117528915, -0.18807438015937805, 0.15705230832099915, -0.09236934781074524, -0.15230347216129303, -0.048606645315885544, 0.2529427707195282, 0.621135950088501, 0.16480526328086853, 0.2510536313056946, 0.155580073595047, 0.01630893349647522, -0.010819867253303528, 0.316996693611145, -0.22767437994480133, -0.3221348226070404, 0.20209233462810516, -0.37630119919776917, -0.1631610095500946, -0.36785992980003357, 0.3481132388114929, -0.22314141690731049, 0.18643471598625183, -0.10744993388652802, -0.12794433534145355, -0.16362324357032776, -0.0874902755022049, 0.09848584979772568, 0.13911272585391998, -0.02296285144984722, 0.4937683641910553, 0.009622810408473015, -0.2948598563671112, -0.1424332857131958, 0.026349078863859177, -0.06426405161619186, 0.20005182921886444, -0.1198723316192627, 0.03650807961821556, 0.1525541990995407, -0.11293771862983704, 0.035250529646873474, 0.09475035220384598, 0.10687628388404846, -0.13952255249023438, -0.20985479652881622, 0.17253464460372925, 0.15960624814033508, -0.0051736896857619286, 0.060872916132211685, -0.022329337894916534, 0.028072476387023926, -0.10157129168510437, 0.07226373255252838, 0.031043171882629395, -0.01599518209695816, 0.14295285940170288, -0.10087783634662628, 0.18798986077308655, 0.1577143520116806, 0.0051406193524599075, -0.013895653188228607, -0.02580101042985916, 0.0863284021615982, 0.20601272583007812, -0.2112695872783661, -0.045698050409555435, -0.4530460834503174, 0.10936225950717926, 0.05554254353046417, 0.2954213321208954, 0.28153908252716064, -0.45410460233688354, -0.11306904256343842, -0.2473679929971695, 0.1694394201040268, 0.3495008051395416, -0.33304572105407715, -0.13579948246479034, -0.1574985384941101, 0.078697070479393, 0.004727445542812347, -0.26348182559013367, -0.13797996938228607, 0.12819018959999084, -0.1968502700328827, 0.17942555248737335, -0.03435542434453964, -0.02980279177427292, -0.09308207035064697, -0.03167085349559784, 0.10607463866472244, 0.008121995255351067, 0.4864062964916229, 0.235622376203537, -0.035178616642951965, 0.1831527203321457, 0.27575311064720154, 0.029843110591173172, -0.06775394827127457, 0.206912100315094, 0.37993499636650085, 0.07280174642801285, 0.4757648706436157, -0.17767350375652313, 0.4583594799041748, -0.18870306015014648, -0.08974894881248474, 0.09862850606441498, -0.020855635404586792, 0.3439778983592987, 0.2496025413274765, 0.18939842283725739, -0.3167257010936737, -0.4845968186855316, -0.06776665151119232, 0.07440966367721558, -0.30103692412376404, 0.10764320194721222, 0.17446693778038025, 0.011402979493141174, 0.01747232675552368, -0.2452271729707718, 0.04848803952336311, 0.04460364580154419, 0.3473397493362427, 0.06950259208679199, -0.12980134785175323, -0.3323858380317688, 0.2785457968711853, 0.21376755833625793, 0.16858524084091187, -0.08497413992881775, 0.04829522222280502, 0.2870340347290039, -0.21163827180862427, 0.031005095690488815, 0.3284197151660919, 0.45668837428092957, 0.3523460626602173, -0.05566951259970665, -0.034788165241479874, 0.07960857450962067, -0.09098443388938904, 0.03798016905784607, 0.22675195336341858, 0.031063497066497803, -0.23125223815441132, 0.1849549114704132, 0.07871013879776001, -0.08961264044046402, 0.2247818559408188, 0.04958492890000343, 0.28550371527671814, -0.5732684135437012, 0.4974716305732727, -0.382577121257782, -0.16534951329231262, -0.23206445574760437, -0.06555942445993423, -0.3300945460796356, -0.002885174937546253, 0.7613862752914429, 0.16314126551151276, 0.23039475083351135, -0.04560215026140213, 0.052473485469818115, 0.14856719970703125, 0.38195905089378357, -0.026598665863275528, 0.12608282268047333, -0.07587402313947678, 0.11604642868041992, 0.1345687210559845, 0.3428667485713959, 0.3775584101676941, 0.2901952266693115, 0.07085718214511871, 0.3413298428058624, 0.06164509803056717, 0.15839114785194397, -0.02624918520450592, -0.2620295584201813, 0.03057307004928589, 0.1289081871509552, -0.3855934143066406, -0.35656797885894775, -0.08621059358119965, -0.10321918874979019, 0.0023235511034727097, -0.3629138171672821, 0.4041663110256195, -0.04067445173859596, 0.044359996914863586, -0.1156625747680664, -0.21739518642425537, 0.20166414976119995, 0.2793515920639038, 0.35773172974586487, 0.37256088852882385, 0.2503015995025635, -0.1102256178855896, -0.15503782033920288, -0.08875302970409393, -0.5083964467048645, -0.22219929099082947, 0.4509868025779724, -0.23604249954223633, 0.10482405126094818, -0.20712938904762268, 0.2530992925167084, -0.13976077735424042, 0.1418418139219284, 0.42455989122390747, -0.1707584261894226, -0.3980730473995209, 0.2990463078022003, -0.32922282814979553, -0.0033924896270036697, -0.039965398609638214, 0.5031768679618835, -0.0017840750515460968, 0.23491127789020538, -0.003632940351963043, -0.45553460717201233, 0.4450865387916565, -0.30869191884994507, -0.40810683369636536, 0.004044697619974613, -0.059362590312957764, -0.01850087195634842, 0.14919792115688324, -0.5609911680221558, -0.31009528040885925, 0.43386098742485046, -0.3143925666809082, -0.053101684898138046, 0.02993735484778881, -0.07534855604171753, 0.050668712705373764, -0.2577310800552368, 0.2257409393787384, -0.008087240159511566, -0.28794559836387634, 0.4016740024089813, -0.2544683814048767 ]
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.15046608448028564, -0.05916989594697952, -0.05770976468920708, 0.25595226883888245, 0.1930534392595291, 0.09017395228147507, 0.08213341236114502, 0.26227617263793945, -0.26091983914375305, -0.05513976514339447, 0.035830795764923096, 0.1265256255865097, 0.21746163070201874, 0.09019962698221207, -0.28504160046577454, -0.18019253015518188, 0.17884007096290588, 0.05596739426255226, 0.048557721078395844, -0.11890075355768204, -0.12449577450752258, 0.1265653371810913, -0.3151790499687195, 0.07697395235300064, -0.46712031960487366, 0.16254077851772308, -0.3227906823158264, 0.007620781660079956, -0.003295721486210823, -0.30987849831581116, -0.05564486235380173, 0.3040580153465271, -0.04512828588485718, 0.3253481090068817, -0.00011398462811484933, -0.14040511846542358, 0.02038542553782463, -0.05890309065580368, -0.1106775552034378, -0.18048276007175446, -0.10207343101501465, -0.5905031561851501, -0.09138063341379166, -0.20028257369995117, 0.146270751953125, -0.6070089936256409, -0.2705751955509186, -0.26870569586753845, 0.26201391220092773, -0.1385008692741394, 0.15978343784809113, -0.0676155835390091, 0.17478448152542114, -0.18061821162700653, -0.10666149109601974, 0.09651803225278854, 0.03476264327764511, -0.0004102662205696106, -0.14378327131271362, -0.03253299742937088, 0.44145339727401733, 0.37063559889793396, -0.17822697758674622, -0.3017141819000244, -0.15559500455856323, 0.16177095472812653, 0.006312742829322815, -0.3817136883735657, -0.0536324679851532, 0.12038649618625641, 0.32909002900123596, -0.3443948030471802, -0.37145861983299255, -0.43466717004776, 0.16936533153057098, -0.2393827736377716, 0.031275104731321335, -0.069121815264225, 0.28673097491264343, 0.2179712951183319, -0.030886778607964516, -0.18904972076416016, 0.0395146980881691, 0.1386505365371704, -0.060880523175001144, 0.24885998666286469, 0.005722057539969683, 0.11449234187602997, 0.1244015246629715, -0.5368871688842773, 0.022335369139909744, -0.42835524678230286, -0.019752491265535355, 0.017542487010359764, -0.544070839881897, -0.04737354815006256, 0.05942901223897934, -0.614805281162262, 0.22701352834701538, 0.1771857589483261, -0.03839850053191185, 0.023707270622253418, -0.06681396812200546, -0.0024813897907733917, 0.2470444291830063, 0.4188671410083771, 0.23122602701187134, 0.28660789132118225, -0.04706379771232605, -0.22526024281978607, -0.24533981084823608, -0.07348358631134033, -0.1264432668685913, -0.2911265194416046, 0.10004496574401855, 0.011373892426490784, 0.39614415168762207, -0.02947697974741459, -0.07939036935567856, 0.11111421138048172, -0.3544277548789978, -0.11337853223085403, 0.10286542028188705, 0.008684307336807251, -0.09218154102563858, 0.6188384294509888, -0.1172470971941948, 0.2566656470298767, 0.11200141161680222, -0.17087194323539734, -0.15735775232315063, -0.19317848980426788, 0.010556839406490326, 0.1908484697341919, -0.00923604890704155, -0.22360877692699432, 0.036612413823604584, 0.2651330232620239, -0.02379728853702545, -0.1290389895439148, 0.027233673259615898, -0.31013190746307373, 0.004560120403766632, 0.021881714463233948, 0.12505759298801422, 0.05207757651805878, 0.08549125492572784, -0.001194637268781662, 0.024049758911132812, 0.04548422247171402, -0.5595524311065674, -0.15020617842674255, -0.37011387944221497, 0.2136220633983612, 0.08526398986577988, 0.29964107275009155, 0.08012279123067856, 0.3027189075946808, 0.2509584128856659, 0.05060064420104027, -0.18856841325759888, -0.08703547716140747, 0.007649090141057968, -0.18071860074996948, 0.08213204145431519, 0.08985278010368347, 0.06774353981018066, 0.012770667672157288, 0.1103857085108757, 0.18430423736572266, 0.2871364653110504, 0.4206840991973877, -0.1703018844127655, 0.33449265360832214, -0.20409764349460602, 0.4971631169319153, 0.5261330008506775, -0.07430682331323624, -0.1810774803161621, 0.20424547791481018, -0.0661209225654602, 0.3550087511539459, 0.14065960049629211, -0.17819757759571075, 0.05034229904413223, 0.07544489204883575, 0.4194701313972473, 0.12382758408784866, 0.03690483421087265, -0.31950196623802185, -0.07281502336263657, 0.024722332134842873, 0.7286317348480225, -0.34166640043258667, -0.28311383724212646, 0.20368802547454834, -0.0616779699921608, -0.09814469516277313, 0.1693049818277359, -0.34459203481674194, -0.05869540572166443, 0.1913798600435257, -0.12597674131393433, 0.18309947848320007, 0.07872877269983292, 0.055257648229599, -0.3375196158885956, 0.08937596529722214, -0.03993324935436249, -0.24284851551055908, -0.1679304987192154, -0.20655053853988647, 0.02210131660103798, -0.016452720388770103, -0.1647258698940277, 0.24436406791210175, 0.1765643209218979, 0.33244290947914124, -0.18916556239128113, -0.054617010056972504, -0.057365261018276215, 0.4379688799381256, 0.06190274655818939, 0.0928417518734932, -0.15674738585948944, 0.3573678135871887, 0.05265248194336891, 0.0333254374563694, -0.05474698916077614, 0.13438846170902252, 0.589809000492096, -0.13813646137714386, -0.09877631813287735, 0.4499068558216095, -0.19397343695163727, -0.11378248035907745, -0.0809100940823555, -0.06672690808773041, 0.10392963141202927, 0.004046481102705002, 0.06801067292690277, -0.12345361709594727, -0.04364294558763504, -0.1680181920528412, 0.0705939382314682, 0.2275557518005371, 0.284963995218277, 0.14256766438484192, 0.035922445356845856, -0.09498818218708038, 0.11461079120635986, -0.10521206259727478, -0.10357806086540222, -0.44223299622535706, 0.208920419216156, 0.03127886354923248, -0.2695363461971283, 0.0007308907806873322, -0.4664672911167145, 0.2603216767311096, 0.3221501410007477, 0.13307766616344452, 0.0780867263674736, 0.029161173850297928, 0.040499452501535416, 0.06321939080953598, 0.019205790013074875, -0.2066773772239685, 0.4321277141571045, 0.16386352479457855, -0.0032158978283405304, 0.12600494921207428, -0.09431498497724533, 0.04084499552845955, 0.1824205368757248, -0.06830869615077972, 0.08108203858137131, 0.4733746647834778, 0.27093788981437683, 0.09475982934236526, -0.04730931296944618, -0.1575181782245636, 0.06077505648136139, -0.10245637595653534, -0.1658172309398651, 0.12806916236877441, -0.6087809205055237, -0.17152917385101318, -0.23967629671096802, -0.5274433493614197, -0.22163930535316467, -0.45873063802719116, -0.18266785144805908, 0.008617326617240906, -0.15290604531764984, 0.17234985530376434, 0.12138479948043823, -0.13091488182544708, 0.1670149564743042, 0.09952721744775772, 0.11638578772544861, 0.1581571400165558, -0.08119595795869827, -0.052728261798620224, -0.15125319361686707, -0.0578467883169651, 0.03549792245030403, -0.08897975087165833, -0.01573767513036728, -0.3222580552101135, -0.2392692267894745, 0.13340073823928833, -0.288491427898407, -0.1630616933107376, -0.022115476429462433, -0.09774206578731537, 0.04354127496480942, -0.457415372133255, 0.39137619733810425, 0.5567981004714966, 0.09282685816287994, 0.21756747364997864, 0.31652146577835083, -0.37590569257736206, -0.25357455015182495, -0.36817601323127747, -0.29746851325035095, -0.017892587929964066, 0.1713598072528839, -0.25658032298088074, 0.16258668899536133, 0.5247496962547302, 0.06954192370176315, -0.20706073939800262, 0.2132774144411087, 0.2021155059337616, -0.1964457482099533, -0.14227746427059174, 0.35176026821136475, -0.2002485990524292, 0.00025058165192604065, -0.26206883788108826, -0.027687596157193184, -0.11749237775802612, 0.2562600374221802, -0.25461137294769287, -0.003495839424431324, 0.029826395213603973, 0.07697635889053345, -0.3703237771987915, 0.09442880749702454, 0.06256136298179626, 0.37555572390556335, -0.14971597492694855, 0.03578539192676544, -0.1428714394569397, 0.04631028696894646, 0.3056415021419525, 0.4419398903846741, -0.18249908089637756, -0.015933126211166382, -0.10229358077049255, -0.035760171711444855, 0.23366853594779968, -0.010066434741020203, 0.27057409286499023, -0.037970609962940216, 0.21053814888000488, -0.01994943618774414, -0.6065672636032104, -0.20092318952083588, -0.20382335782051086, 0.1288239061832428, -0.03885461390018463, -0.15562409162521362, 0.24917224049568176, 0.06885121762752533, 0.14833368360996246, 0.007834173738956451, -0.19013258814811707, -0.009514035657048225, -0.10385073721408844, 0.41423386335372925, -0.030022060498595238, 0.005480490624904633, -0.2045517861843109, 0.2662072777748108, 0.055739130824804306, -0.06551289558410645, 0.10787349939346313, -0.263624906539917, -0.5134301781654358, -0.23110930621623993, -0.38400760293006897, 0.3098151683807373, 0.19886042177677155, 0.37066563963890076, 0.143610879778862, 0.054011695086956024, -0.26698553562164307, 0.11355980485677719, 0.7118361592292786, -0.11501289159059525, -0.38519370555877686, 0.48019546270370483, 0.002054039388895035, -0.07684691995382309, -0.30246609449386597, -0.05491621792316437, 0.2780223786830902, 0.1245337426662445, 0.562625527381897, -0.16856379806995392, -0.12183000147342682, 0.11178530752658844, 0.6294493675231934, -0.10577136278152466, -0.17564810812473297, -0.1125025823712349, -0.0003594830632209778, -0.3241688311100006, -0.5116010308265686, -0.21002857387065887, 0.40203937888145447, -0.30056795477867126, -0.14286281168460846, -0.23215262591838837, -0.3157804012298584, 0.3009271025657654, 0.20264525711536407, 0.466409832239151, 0.1533278524875641, 0.27519848942756653, -0.0724419355392456, 0.2755644917488098, 0.30121007561683655, 0.6378153562545776, 0.19123752415180206, -0.7376351356506348, -0.144677996635437, -0.02317713014781475, 0.3582291901111603, 0.04961065948009491, -0.254014790058136, 0.4031376242637634, -0.4295683801174164, 0.3281940817832947, -0.15315911173820496, 0.19664956629276276, 0.5844236612319946, 0.13332143425941467, -0.5558379292488098, -0.19405701756477356, 0.16518235206604004, 0.1863953024148941, -0.09915904700756073, 0.27885115146636963, -0.47811663150787354, -0.38418808579444885, 0.07341418415307999, -0.13418471813201904, 0.8999785780906677, 0.2740633487701416, -0.13335579633712769, -0.09252691268920898, 0.0792015790939331, 0.2988038659095764, -0.2731700539588928, 0.1949472427368164, -0.049931325018405914, -0.23946507275104523, -0.051480673253536224, 0.05254590883851051, 0.1468619406223297, 0.05266547203063965, -0.7124888896942139, 0.36199018359184265, -0.44845348596572876, 0.09956970810890198, -0.29692772030830383, 0.287899374961853, 0.39228060841560364, -0.3144974112510681, -0.23459169268608093, 0.05464866757392883, 0.046233996748924255, -0.1462470442056656, -0.03372124582529068, -0.07587474584579468, 0.245881587266922, -0.21289296448230743, -0.1421935111284256, 0.24268501996994019, -0.34091076254844666, 0.43900567293167114, -0.044830795377492905, -0.21519088745117188, 0.1573582887649536, 0.09098660945892334, 0.32533466815948486, 0.25733482837677, 0.09870456159114838, -0.21135787665843964, 0.08518639951944351, 0.06367221474647522, -0.32570159435272217, -0.3507932126522064, 0.1022854670882225, 0.19280263781547546, -0.35046473145484924, 0.14040318131446838, 0.2587258219718933, 0.048533715307712555, -0.23367470502853394, 0.04280184209346771, 0.28952592611312866, -0.5032472014427185, 0.225038081407547, 0.3453088104724884, 0.11177903413772583, -0.17298348248004913, 0.10538165271282196, 0.11107073724269867, -0.03583284839987755, 0.0005484595894813538, -0.16239586472511292, -0.14334562420845032, -0.08098888397216797, 0.24971947073936462, 0.3761572539806366, -0.00399378314614296, 0.20222513377666473, -0.07402484118938446, -0.02767172083258629, -0.11964534223079681, -0.06074051186442375, -0.4044420123100281, 0.06396647542715073, 0.09111040085554123, -0.09031496196985245, 0.008497506380081177, -0.2556837797164917, 0.27641940116882324, 0.006752699613571167, 0.22412726283073425, -0.027106348425149918, -0.21800649166107178, -0.16313199698925018, 0.00020419061183929443, 0.18538407981395721, 0.1254904717206955, -0.10214738547801971, 0.4127795696258545, -0.17073659598827362, 0.3381398618221283, -0.25396713614463806, -0.0881400853395462, -0.12017370760440826, 0.19595102965831757, -0.1684354543685913, -0.0022591128945350647, -0.15862859785556793, -0.04495462775230408, 0.19609828293323517, 0.21968458592891693, 0.06852838397026062, -0.19811156392097473, -0.13443723320960999, 0.13067330420017242, 0.11364759504795074, -0.10900403559207916, -0.12145029008388519, -0.16556952893733978, 0.2467254102230072, -0.3233591616153717, 0.10899993777275085, 0.15863648056983948, 0.12930534780025482, 0.25559714436531067, 0.04404287040233612, -0.032679177820682526, 0.006252434104681015, 0.07371599972248077, 0.0863083004951477, 0.26401081681251526, 0.0799775943160057, 0.14829060435295105, -0.2073279619216919, -0.05730728060007095, -0.6292610168457031, -0.11035513132810593, 0.03663179278373718, -0.17193904519081116, 0.1182309091091156, -0.19291917979717255, -0.16580936312675476, -0.0592622347176075, 0.2319013774394989, 0.6020110249519348, -0.3985377252101898, -0.05728129297494888, 0.1449166238307953, 0.18979766964912415, -0.24377453327178955, -0.37107300758361816, 0.08015364408493042, 0.201595738530159, -0.10898913443088531, 0.25781169533729553, 0.26501962542533875, 0.001121222972869873, 0.08968978375196457, -0.06916181743144989, 0.01895919442176819, 0.28827446699142456, 0.43602055311203003, 0.22294355928897858, 0.06616625189781189, 0.05736834928393364, 0.04540194943547249, 0.16064932942390442, 0.15769264101982117, 0.1019943505525589, 0.029053982347249985, 0.147894948720932, 0.3706716299057007, 0.053791072219610214, 0.06606657803058624, -0.12959763407707214, 0.09436965733766556, 0.22209475934505463, -0.3501652777194977, 0.12902221083641052, -0.14127148687839508, 0.018188782036304474, -0.16751252114772797, -0.455959290266037, -0.07612338662147522, 0.5514988303184509, -0.09139453619718552, -0.21908974647521973, 0.3085814416408539, -0.04104920104146004, -0.16108183562755585, -0.15482865273952484, 0.20977261662483215, -0.09459692239761353, 0.25229382514953613, -0.14645618200302124, 0.05886249989271164, -0.2706637382507324, 0.08428443223237991, 0.34389203786849976, 0.38191768527030945, -0.3340296745300293, 0.20846518874168396, 0.5395174026489258, 0.017914701253175735, -0.043430257588624954, 0.39105960726737976, 0.6031448245048523, 0.291530579328537, 0.011546020396053791, 0.048737090080976486, -0.10923191905021667, -0.06587094068527222, 0.1837102323770523, -0.010524705052375793, -0.12846596539020538, -0.38601720333099365, 0.30230289697647095, 0.10484377294778824, -0.16728612780570984, 0.12646734714508057, 0.24009767174720764, 0.07154040038585663, -0.42408487200737, 0.22965922951698303, 0.24553263187408447, -0.08629196137189865, -0.020546283572912216, -0.12322696298360825, -0.3437090218067169, -0.3410774767398834, 0.7281005382537842, 0.15751543641090393, 0.13741469383239746, 0.08666659146547318, 0.12868890166282654, -0.0492461733520031, 0.5275998711585999, 0.2656445801258087, 0.06373847275972366, -0.2873801290988922, -0.2236572951078415, -0.16511249542236328, 0.08366544544696808, -0.19681783020496368, 0.017067426815629005, 0.29340559244155884, 0.1322612315416336, -0.023731999099254608, 0.2036401778459549, 0.03104574978351593, -0.1009666845202446, -0.0647985190153122, -0.1896100491285324, -0.5950565338134766, -0.14865802228450775, 0.09269379079341888, -0.008074268698692322, 0.055047258734703064, -0.09189552068710327, 0.4462243616580963, -0.1644059419631958, 0.05004774034023285, -0.08005262911319733, 0.14724275469779968, 0.11454963684082031, 0.1729741096496582, 0.62929767370224, 0.2540769577026367, 0.30928194522857666, -0.11384338140487671, 0.1047944650053978, 0.09064657986164093, -0.3408108949661255, 0.019552595913410187, 0.2614530920982361, 0.31539544463157654, -0.07830473780632019, -0.2710303068161011, 0.20428870618343353, -0.10408920049667358, 0.10568058490753174, 0.40743905305862427, -0.06613508611917496, -0.11344029009342194, 0.19534249603748322, 0.21163249015808105, 0.057664189487695694, -0.06349534541368484, 0.38015252351760864, -0.014182187616825104, 0.5103453993797302, 0.15682722628116608, -0.5181288719177246, 0.49360141158103943, 0.06602136045694351, -0.46523207426071167, -0.11638761311769485, 0.1349998414516449, 0.12056839466094971, 0.12675796449184418, -0.6108971834182739, -0.24175071716308594, 0.5591214895248413, -0.04800383001565933, -0.33326613903045654, 0.17992085218429565, 0.002989457920193672, -0.14834408462047577, 0.0958365947008133, 0.201695054769516, -0.02322487160563469, -0.3746022880077362, 0.18894463777542114, -0.053079813718795776 ]
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.22404949367046356, 0.07350564002990723, 0.06885579228401184, 0.14548824727535248, 0.3467071056365967, 0.09173483401536942, 0.17951403558254242, 0.038521718233823776, 0.1048627495765686, 0.07325591146945953, 0.07145284116268158, 0.22788488864898682, -0.3061070144176483, 0.16898144781589508, -0.0743815004825592, -0.08533850312232971, -0.09698722511529922, 0.12961409986019135, 0.29954779148101807, 0.12180551886558533, -0.19674324989318848, 0.03730238601565361, -0.21464142203330994, 0.017864517867565155, -0.0018440181156620383, -0.1568499356508255, 0.25804686546325684, 0.23888447880744934, -0.12881015241146088, -0.3902963399887085, 0.33721333742141724, 0.012184696272015572, 0.4855325520038605, 0.5165207982063293, -0.00011996344255749136, 0.007032036781311035, 0.38866084814071655, -0.15862466394901276, -0.5747511386871338, -0.1283360868692398, -0.4686373472213745, -0.077767513692379, 0.09016492962837219, -0.0698142945766449, 0.10498549789190292, -0.17209561169147491, 0.16234137117862701, -0.3645290434360504, 0.20476949214935303, 0.45416057109832764, 0.10668249428272247, 0.2829996645450592, 0.24624280631542206, 0.16370685398578644, 0.13273818790912628, 0.35126781463623047, -0.03021843731403351, 0.37132593989372253, 0.06086813285946846, 0.15102827548980713, 0.16060224175453186, 0.16287767887115479, -0.12288320064544678, 0.03938416764140129, 0.188053160905838, -0.16610394418239594, -0.2295849323272705, -0.42778873443603516, -0.11032526940107346, 0.4421195983886719, 0.5148942470550537, -0.3407015800476074, -0.46095192432403564, -0.37986883521080017, 0.04588586837053299, -0.14768001437187195, 0.13112692534923553, 0.48783648014068604, -0.42169246077537537, 0.3501262664794922, -0.08833286911249161, -0.3158324360847473, -0.3065260648727417, 0.23055994510650635, 0.005905605852603912, -0.15191051363945007, 0.05575892701745033, 0.061120834201574326, -0.0835498720407486, 0.10570920258760452, 0.21807456016540527, -0.309345543384552, -0.03965654596686363, 0.0888884961605072, -0.20469720661640167, -0.004170767962932587, -0.0657849982380867, -0.0414946973323822, 0.19658806920051575, 0.023862585425376892, 0.37339866161346436, 0.056734103709459305, -0.15298058092594147, 0.2431640923023224, 0.1901945322751999, 0.026455271989107132, 0.09910120069980621, 0.1258840262889862, 0.48117297887802124, 0.39516451954841614, 0.13324306905269623, -0.11775589734315872, -0.025307398289442062, 0.08860613405704498, 0.3152236044406891, 0.20487183332443237, 0.46810823678970337, -0.10496363043785095, -0.4039185345172882, 0.009666971862316132, -0.610274612903595, 0.10568293184041977, -0.022907007485628128, 0.16413602232933044, -0.16162100434303284, 0.20073539018630981, 0.21628694236278534, 0.3693433403968811, -0.0011650659143924713, -0.28783613443374634, -0.010298654437065125, -0.06436710059642792, 0.12619644403457642, 0.026048384606838226, 0.17953689396381378, -0.531135618686676, 0.09007126837968826, 0.09394269436597824, -0.32868045568466187, -0.052760858088731766, 0.3502984344959259, -0.05458022281527519, -0.159295916557312, 0.3757530748844147, 0.14027221500873566, 0.027318613603711128, 0.11523653566837311, -0.15763252973556519, -0.016434550285339355, 0.2604486346244812, -0.05989585071802139, -0.531606912612915, 0.10635191202163696, 0.16476112604141235, -0.01674608327448368, -0.07770920544862747, -0.5121460556983948, 0.04118320718407631, 0.001384735107421875, -0.3260016143321991, -0.018847063183784485, -0.15341906249523163, 0.33467891812324524, -0.29171022772789, 0.04539122432470322, 0.510676383972168, -0.37249159812927246, 0.013421379029750824, -0.4481048882007599, -0.22208921611309052, 0.7759045362472534, 0.15121302008628845, -0.23697176575660706, 0.23321029543876648, -0.379998117685318, 0.04081948846578598, 0.4848955571651459, -0.035345789045095444, -0.31841030716896057, 0.4427746534347534, 0.02544635534286499, 0.42108437418937683, 0.13777826726436615, 0.21825435757637024, -0.0400385707616806, -0.12675973773002625, -0.026165127754211426, 0.5302296876907349, -0.21859842538833618, 0.04314199090003967, -0.20899879932403564, -0.36202558875083923, 0.22538842260837555, 0.2703534662723541, 0.027037642896175385, 0.22803953289985657, 0.3364059329032898, 0.014122537337243557, 0.25150245428085327, -0.19846388697624207, -0.18346524238586426, -0.008744064718484879, 0.41225793957710266, -0.08665327727794647, -0.23485027253627777, -0.11837939918041229, -0.37347790598869324, 0.2647880017757416, 0.043960556387901306, 0.03547661006450653, -0.21354199945926666, -0.32621246576309204, -0.10273134708404541, 0.01398182101547718, -0.2305373102426529, 0.017195934429764748, 0.036064907908439636, 0.37085554003715515, -0.3016504943370819, 0.1690964251756668, -0.10533595830202103, 0.48149266839027405, -0.5749642252922058, 0.25936514139175415, -0.1490311324596405, 0.102592334151268, 0.03448154032230377, -0.10053717344999313, -0.13845548033714294, -0.32962194085121155, 0.05058981850743294, -0.031150178983807564, -0.2466447651386261, 0.4579782783985138, 0.24992072582244873, 0.34138888120651245, -0.26885199546813965, -0.08256186544895172, 0.07796722650527954, -0.19754533469676971, -0.22786793112754822, 0.5077194571495056, 0.18951129913330078, -0.0363306999206543, -0.09942328184843063, 0.21321889758110046, 0.24484895169734955, 0.1440677046775818, 0.08622583746910095, 0.21306061744689941, 0.18937905132770538, 0.20609340071678162, -0.19337862730026245, 0.09101535379886627, 0.15677279233932495, -0.1239107996225357, -0.04419317469000816, -0.2678849995136261, -0.7136905789375305, -0.20572102069854736, 0.06487248092889786, 0.04643329605460167, 0.4829678535461426, 0.3096093535423279, -0.13821443915367126, 0.09073258191347122, 0.252538800239563, 0.316916286945343, 0.42951470613479614, 0.07337401062250137, 0.11609786748886108, 0.08644100278615952, 0.18074780702590942, -0.26106202602386475, 0.2543884515762329, 0.2185358703136444, -0.28460779786109924, 0.16346845030784607, 0.12062988430261612, 0.10415282100439072, -0.29889726638793945, -0.16332730650901794, -0.051692962646484375, 0.1894504427909851, -0.5312808156013489, 0.0377003476023674, 0.03764299303293228, -0.18132174015045166, -0.3296360969543457, -0.370874285697937, -0.17273075878620148, -0.13373756408691406, -0.11672011017799377, 0.38975799083709717, -0.1965966373682022, 0.20700836181640625, -0.034905772656202316, 0.23350706696510315, -0.060741886496543884, -0.44997841119766235, -0.07153398543596268, 0.21721990406513214, -0.2908613085746765, -0.018410012125968933, 0.37738901376724243, -0.13656750321388245, 0.42724552750587463, -0.295558899641037, 0.062129415571689606, -0.3178851902484894, -0.10429815202951431, -0.053600385785102844, 0.20456962287425995, 0.2286832183599472, 0.30415332317352295, 0.4670446515083313, 0.3198857307434082, -0.30505815148353577, 0.05093695968389511, -0.039563387632369995, -0.0034179557114839554, 0.19776690006256104, -0.04189153388142586, 0.3320862948894501, -0.11863437294960022, -0.28666195273399353, -0.43880680203437805, -0.4254136085510254, -0.044636934995651245, -0.06889012455940247, 0.10230642557144165, 0.34371218085289, 0.1085466518998146, 0.10806050151586533, 0.20892466604709625, 0.11630560457706451, 0.07470178604125977, -0.1723252832889557, 0.21362148225307465, 0.0754036232829094, -0.18632136285305023, 0.09571748971939087, -0.07907547056674957, -0.1870463341474533, 0.6288795471191406, -0.4854291081428528, -0.07733238488435745, -0.2160002887248993, 0.09343647956848145, -0.1314484030008316, -0.16305522620677948, 0.1723691076040268, 0.048510365188121796, 0.0638698861002922, 0.052118465304374695, -0.009221045300364494, -0.10646534711122513, 0.1419491469860077, 0.3870231807231903, 0.12047409266233444, 0.4440131187438965, -0.005669083446264267, 0.42802703380584717, 0.14856591820716858, 0.027910025790333748, 0.5554198026657104, 0.037950873374938965, 0.23816415667533875, 0.10940925776958466, -0.15819582343101501, -0.03907215967774391, -0.046843379735946655, -0.25623849034309387, 0.07132934033870697, -0.03496935963630676, -0.3694891929626465, -0.27374738454818726, -0.13368280231952667, -0.32861092686653137, -0.3432634472846985, 0.19629740715026855, -0.09094516932964325, 0.33098894357681274, 0.007027290761470795, 0.12192965298891068, 0.004929307848215103, -0.13682043552398682, -0.08967706561088562, 0.5962145924568176, 0.2017936408519745, 0.10435867309570312, 0.13591599464416504, -0.08456689119338989, -0.2823650538921356, 0.32727062702178955, 0.14928628504276276, 0.6370368003845215, -0.03286346048116684, -0.15405449271202087, -0.056193768978118896, 0.15897826850414276, 0.13351470232009888, -0.4564891755580902, 0.08674843609333038, -0.12128995358943939, 0.3060764670372009, -0.36913400888442993, -0.06521617621183395, -0.27303025126457214, 0.2272697389125824, 0.25259461998939514, 0.12017099559307098, -0.3754138648509979, 0.16279146075248718, -0.10784456133842468, 0.17522627115249634, 0.020924698561429977, -0.2673695683479309, -0.20034605264663696, -0.2474564015865326, -0.26323428750038147, 0.07955764979124069, 0.06578748673200607, 0.012856706976890564, -0.14961689710617065, -0.10360266268253326, -0.27904078364372253, 0.2156241238117218, 0.2718062400817871, -0.022399459034204483, 0.2523849606513977, -0.045887213200330734, -0.010379437357187271, 0.04281631484627724, 0.061427559703588486, 0.4101090729236603, 0.556298017501831, -0.021705422550439835, -0.6266160011291504, -0.05086793750524521, 0.05605122074484825, 0.0753827840089798, 0.3415995240211487, -0.22504624724388123, -0.0010804757475852966, 0.25161850452423096, -0.013312697410583496, -0.07119408994913101, 0.4304780066013336, 0.22177428007125854, -0.1622162163257599, -0.501306414604187, -0.7254958152770996, 0.19476225972175598, 0.029281504452228546, -0.08196146786212921, 0.38468047976493835, -0.00873025506734848, -0.4788641631603241, 0.2372293770313263, -0.10701795667409897, 0.9966684579849243, 0.19523119926452637, 0.09466829895973206, 0.2934132516384125, -0.30804699659347534, 0.2921264171600342, -0.20877839624881744, 0.0780225396156311, -0.18511635065078735, -0.043530404567718506, -0.2048892080783844, -0.12676753103733063, 0.27618956565856934, -0.1122845858335495, -0.35119709372520447, 0.3305288851261139, -0.31077349185943604, 0.2130010724067688, 0.2617622911930084, 0.3083798885345459, -0.5707206130027771, -0.21496790647506714, -0.3299858570098877, 0.022823214530944824, -0.24223653972148895, 0.22417032718658447, -0.04683171957731247, -0.16326746344566345, 0.19815218448638916, -0.2673218250274658, -0.32330483198165894, 0.017947621643543243, -0.46790000796318054, -0.013950295746326447, -0.3990936875343323, -0.3702669143676758, 0.3562401831150055, 0.40062272548675537, 0.06163311004638672, 0.0464915968477726, -0.2373068928718567, 0.09846173226833344, -0.007197953760623932, 0.1846885234117508, 0.21705682575702667, -0.0641297921538353, 0.2954818904399872, 0.06998483836650848, -0.06357161700725555, 0.18464693427085876, -0.2823319137096405, -0.16658639907836914, -0.006238117814064026, -0.17038477957248688, 0.193639874458313, -0.18833494186401367, -0.18694813549518585, -0.321548193693161, -0.13505680859088898, -0.08952970802783966, 0.07989214360713959, -0.08243723213672638, -0.02840283513069153, 0.1765933632850647, -0.11957402527332306, -0.18989910185337067, -0.21208928525447845, 0.38947969675064087, -0.10333583503961563, 0.26769664883613586, 0.42185571789741516, -0.004792757332324982, -0.09133295714855194, -0.16071203351020813, 0.24875885248184204, -0.059364743530750275, -0.28791099786758423, -0.058179307729005814, -0.14852842688560486, 0.12457810342311859, -0.05603265389800072, 0.19126375019550323, 0.24985139071941376, -0.14315178990364075, -0.19897256791591644, -0.5332926511764526, -0.24734389781951904, -0.04583721607923508, 0.16446132957935333, 0.24069368839263916, -0.10213169455528259, 0.0534525141119957, 0.0385981947183609, -0.30228859186172485, -0.2069282978773117, 0.06865864992141724, -0.07652326673269272, -0.04981980472803116, -0.029495950788259506, 0.3428833484649658, 0.41145336627960205, -0.12615373730659485, 0.011074719950556755, 0.07956615835428238, -0.02423964813351631, -0.05274432525038719, -0.025712955743074417, 0.2072197049856186, 0.09613862633705139, -0.09743622690439224, -0.056055158376693726, -0.4067096710205078, -0.08442352712154388, -0.0434160940349102, 0.05892382189631462, -0.007855067029595375, -0.1694694608449936, 0.14777295291423798, 0.16352537274360657, 0.3355439007282257, -0.40462160110473633, 0.22511792182922363, -0.4388326108455658, 0.1751459836959839, 0.06616004556417465, 0.1257627308368683, 0.004738162271678448, -0.02826835960149765, 0.023932207375764847, 0.011265754699707031, 0.3392139673233032, 0.19786369800567627, 0.24489152431488037, -0.4220341444015503, 0.09379090368747711, 0.0007041539065539837, 0.31578966975212097, 0.43600544333457947, -0.31393447518348694, -0.0677894577383995, 0.1305149346590042, 0.16596747934818268, -0.17218559980392456, 0.0850873738527298, 0.0192730613052845, -0.07232273370027542, -0.02393312193453312, 0.2342979907989502, -0.010533899068832397, -0.09235228598117828, -0.35121065378189087, 0.10306461155414581, 0.43620091676712036, 0.21955077350139618, 0.10786011815071106, 0.3562313914299011, -0.09634320437908173, 0.10726101696491241, -0.10428159683942795, 0.1574418693780899, 0.1261453926563263, 0.02633950300514698, -0.2918272912502289, 0.09152442961931229, 0.0716543048620224, -0.09334741532802582, -0.05829756706953049, -0.5852040648460388, 0.03278566151857376, 0.40075746178627014, -0.14218434691429138, 0.07896797358989716, 0.2735985517501831, 0.3897937536239624, -0.3853033483028412, -0.04432611167430878, -0.3138197958469391, -0.3281121253967285, -0.0007672570645809174, 0.2605971097946167, -0.11081130057573318, -0.18757379055023193, 0.07023391127586365, -0.21168065071105957, 0.05641994997859001, 0.057841863483190536, -0.2524813413619995, 0.08854490518569946, -0.033150188624858856, -0.5446571111679077, -0.1316627860069275, 0.2515082359313965, 0.24100607633590698, -0.42972469329833984, -0.041051410138607025, 0.2998064160346985, -0.05180409550666809, 0.1709395796060562, 0.1605728566646576, 0.48065894842147827, 0.2976827621459961, -0.037479594349861145, 0.1335156112909317, -0.035483408719301224, 0.04988288879394531, 0.043947577476501465, 0.049181099981069565, 0.08912839740514755, 0.19281022250652313, 0.2950770854949951, 0.14646416902542114, -0.1442900449037552, 0.15222229063510895, -0.09117744863033295, 0.08429260551929474, -0.4881492257118225, 0.3297727108001709, -0.1628805249929428, 0.037109375, -0.21979224681854248, -0.21331024169921875, -0.10950304567813873, 0.03502991423010826, 0.48894616961479187, 0.07465174794197083, 0.09251824766397476, 0.07534120231866837, 0.005863424390554428, -0.001957634463906288, 0.27799439430236816, 0.42324724793434143, 0.04323967918753624, -0.23263223469257355, -0.15024106204509735, -0.6847054362297058, 0.08380088210105896, -0.038199398666620255, -0.1071620061993599, 0.2841878831386566, 0.033802442252635956, -0.03582356125116348, 0.24766883254051208, -0.12777845561504364, 0.3261435925960541, -0.22900977730751038, 0.24033060669898987, -0.18577797710895538, -0.5727882981300354, 0.04073718935251236, -0.17493551969528198, -0.20275716483592987, -0.4563086926937103, 0.272790789604187, -0.29358652234077454, 0.02657923847436905, -0.010046880692243576, 0.021319150924682617, 0.20984135568141937, 0.20456545054912567, 0.5075955390930176, 0.10374033451080322, 0.3434559106826782, -0.057945702224969864, -0.3387690782546997, 0.11081266403198242, -0.05233466625213623, -0.21221071481704712, 0.028285469859838486, -0.1680825799703598, 0.5850585699081421, -0.13105466961860657, 0.10790303349494934, -0.5024100542068481, 0.4316818118095398, 0.2228952795267105, -0.17456521093845367, -0.49107927083969116, 0.14365893602371216, -0.24820679426193237, 0.14823411405086517, -0.07059215009212494, 0.048302218317985535, -0.016116663813591003, 0.14453044533729553, -0.24414318799972534, -0.44624072313308716, 0.5733359456062317, -0.1650533378124237, -0.07749632000923157, 0.0621333047747612, 0.22394701838493347, 0.0654132142663002, 0.1732184737920761, -0.4505607783794403, 0.17121630907058716, 0.3813610076904297, -0.21769008040428162, -0.06242770701646805, -0.06394985318183899, -0.04046427458524704, 0.3741626739501953, 0.08523853123188019, 0.09449855238199234, -0.09475242346525192, -0.16047286987304688, 0.19038233160972595, -0.11424896866083145 ]
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.30422720313072205, -0.0985635444521904, 0.007841534912586212, 0.5131351351737976, 0.3285447955131531, -0.05764288455247879, 0.5201521515846252, 0.2553013563156128, 0.19915731251239777, 0.16810891032218933, -0.4604780972003937, -0.0910491794347763, -0.2877756357192993, -0.2970737814903259, 0.43477925658226013, 0.032001934945583344, -0.025187723338603973, -0.034954965114593506, 0.11196097731590271, 0.00843917578458786, -0.22572855651378632, 0.23624193668365479, -0.24531391263008118, 0.0727764368057251, -0.4190012216567993, -0.05495639890432358, 0.0889204815030098, 0.4892739951610565, -0.07197609543800354, -0.629603385925293, 0.46047332882881165, 0.014389652758836746, 0.21815165877342224, 0.4235017001628876, -0.00010919941269094124, 0.14418534934520721, 0.41899269819259644, -0.019265739247202873, -0.2884238362312317, -0.36011117696762085, 0.0940842404961586, -0.5144340395927429, 0.12333344668149948, -0.26080265641212463, -0.40634778141975403, 0.023619290441274643, 0.12173711508512497, -0.2709338068962097, 0.4901704788208008, 0.48868614435195923, 0.2884906530380249, 0.13091441988945007, -0.016008086502552032, -0.3164564073085785, 0.4296729564666748, 0.06754839420318604, -0.16129526495933533, 0.2777446210384369, 0.34329673647880554, -0.004305956419557333, -0.036335743963718414, 0.030621692538261414, -0.0457591637969017, -0.12311698496341705, 0.3901318609714508, 0.0024617984890937805, -0.12567225098609924, -0.21260040998458862, 0.12963299453258514, 0.4381466507911682, 0.20645137131214142, -0.21348202228546143, -0.23281803727149963, -0.19297891855239868, 0.07387775927782059, -0.18197956681251526, 0.1654338836669922, 0.03192077577114105, -0.1912619173526764, 0.07417843490839005, -0.0262067262083292, -0.06306836009025574, -0.17226189374923706, 0.14239701628684998, -0.11043935269117355, 0.1547164022922516, -0.15064997971057892, 0.03145655617117882, -0.14833375811576843, -0.09897668659687042, -0.22030241787433624, 0.15393280982971191, -0.03313107416033745, 0.28425711393356323, -0.3529799282550812, 0.16926385462284088, 0.09687492996454239, 0.30167415738105774, 0.24641510844230652, 0.34680086374282837, -0.0859944224357605, -0.011230647563934326, -0.031365640461444855, 0.10548624396324158, 0.05395541340112686, 0.15501369535923004, 0.310610830783844, 0.17096835374832153, 0.280374675989151, 0.4544364809989929, -0.09400704503059387, 0.024950264021754265, -0.2067870944738388, -0.16535592079162598, 0.044397372752428055, 0.03593575209379196, 0.3279300332069397, -0.23394019901752472, -0.4098474979400635, 0.15341469645500183, 0.22092103958129883, 0.08878598362207413, 0.2583983540534973, 0.4830326735973358, -0.23615212738513947, -0.001352556049823761, -0.006440378725528717, 0.02553081512451172, -0.15113554894924164, -0.17565655708312988, -0.3392077386379242, 0.19400489330291748, -0.08081428706645966, 0.012704973109066486, 0.32547423243522644, -0.12321938574314117, 0.3092920184135437, -0.15285280346870422, -0.001599624752998352, -0.12322140485048294, -0.11052671819925308, -0.18697483837604523, -0.09991507977247238, 0.2051267921924591, -0.0700344443321228, 0.08784227073192596, 0.11722855269908905, -0.3199293613433838, -0.24113279581069946, -0.1124534085392952, -0.12702810764312744, -0.34744542837142944, -0.093790702521801, 0.22819757461547852, -0.29798322916030884, 0.1321425884962082, -0.06710565835237503, 0.04367855563759804, 0.07646817713975906, -0.2537533938884735, -0.12407765537500381, -0.14020830392837524, -0.4273748993873596, -0.37671786546707153, 0.6006537079811096, 0.6969178915023804, -0.20075185596942902, -0.15088960528373718, -0.5498249530792236, -0.3447909355163574, 0.1059880256652832, 0.3750487267971039, -0.2740000784397125, 0.15059641003608704, -0.2850112020969391, 0.31596606969833374, 0.3138715326786041, -0.43218299746513367, -0.43400734663009644, 0.2631572186946869, -0.2292083203792572, 0.40603041648864746, -0.0842319205403328, 0.08582794666290283, 0.1212187260389328, -0.10925205796957016, 0.3998241722583771, 0.47770172357559204, 0.020381491631269455, -0.18210433423519135, -0.2581339180469513, -0.14233531057834625, 0.10623589903116226, 0.1785898059606552, 0.26338768005371094, 0.07876642048358917, 0.15481963753700256, 0.06599106639623642, 0.232667475938797, 0.20802538096904755, 0.062400683760643005, 0.15952131152153015, 0.27241599559783936, 0.20573946833610535, 0.03339957445859909, -0.48205357789993286, -0.6707283854484558, 0.4395001530647278, -0.161234050989151, -0.047656215727329254, -0.1690664440393448, -0.15814216434955597, -0.4199809730052948, 0.029883043840527534, -0.09874068200588226, -0.2591838240623474, 0.17976434528827667, 0.21512681245803833, 0.21174073219299316, 0.07787787914276123, -0.25018110871315, 0.514995276927948, 0.05651441961526871, 0.06299708783626556, -0.38229334354400635, 0.1305720955133438, -0.12412918359041214, -0.11037580668926239, -0.11856522411108017, 0.3505546450614929, 0.23129722476005554, -0.18512554466724396, 0.06761938333511353, 0.5000376105308533, 0.004435613751411438, -0.17402885854244232, -0.09065023809671402, -0.43096888065338135, 0.039616864174604416, -0.10435616970062256, 0.13482600450515747, 0.21533933281898499, 0.10756036639213562, -0.051123905926942825, 0.10821948200464249, 0.37279844284057617, 0.03549770265817642, 0.22966137528419495, 0.028825543820858, -0.0013955309987068176, 0.18316102027893066, 0.07648538053035736, 0.15747465193271637, -0.23018157482147217, 0.4892825484275818, 0.26275184750556946, 0.17263107001781464, 0.2077903151512146, -0.201401486992836, -0.011708930134773254, 0.08584727346897125, -0.04872883856296539, 0.05443650111556053, 0.2945663630962372, -0.1510486900806427, -0.047272939234972, 0.05687906593084335, 0.3697468638420105, 0.3691948652267456, 0.1709931492805481, -0.026174280792474747, 0.09651482850313187, -0.031438104808330536, -0.0691685676574707, 0.12804189324378967, 0.05166010558605194, 0.08107016235589981, 0.21165511012077332, 0.06955727189779282, 0.19703124463558197, -0.26701030135154724, -0.2561359405517578, -0.0517687126994133, 0.32508549094200134, -0.3932211697101593, 0.1741223931312561, -0.20714299380779266, -0.12514005601406097, -0.04952693730592728, 0.005379924084991217, -0.4605344533920288, -0.07695679366588593, 0.05033741891384125, 0.11067964136600494, 0.22677075862884521, 0.18335023522377014, -0.12671925127506256, 0.18520475924015045, -0.3189345896244049, 0.057020753622055054, -0.27925771474838257, 0.00033384235575795174, -0.32923540472984314, 0.07639388740062714, 0.39805126190185547, -0.03899110108613968, 0.32285386323928833, -0.2194570004940033, -0.2569384276866913, -0.19214200973510742, -0.046326786279678345, -0.18390627205371857, 0.081793412566185, 0.6579148173332214, 0.18810966610908508, 0.24807944893836975, -0.05740860104560852, -0.1280141919851303, 0.3673250079154968, -0.3022807538509369, -0.18456962704658508, 0.029732998460531235, -0.10683975368738174, 0.08714940398931503, -0.1282043755054474, -0.34325581789016724, -0.6057459712028503, -0.45301979780197144, 0.3096410036087036, 0.1487506926059723, 0.18593011796474457, 0.3676011562347412, -0.11636462807655334, 0.09203886985778809, -0.048557452857494354, 0.20060917735099792, -0.14842994511127472, -0.2746391296386719, 0.2829444110393524, -0.42005929350852966, -0.3737154006958008, -0.11029680073261261, 0.058762989938259125, 0.035479918122291565, 0.08254952728748322, -0.4535488486289978, 0.3604624569416046, -0.1324116438627243, 0.07977117598056793, -0.13276180624961853, -0.06034058332443237, 0.06864702701568604, -0.12212475389242172, -0.053295549005270004, 0.04173824191093445, -0.11695721745491028, 0.013384625315666199, -0.2853539288043976, 0.05616416037082672, -0.06364782154560089, 0.3072241544723511, -0.001949448138475418, 0.4964502453804016, 0.05808372423052788, -0.1058206558227539, 0.28917378187179565, -0.08743062615394592, 0.4604640305042267, -0.18769529461860657, -0.4373457431793213, 0.2259438931941986, 0.0792100727558136, 0.10210070013999939, 0.17295250296592712, 0.03608863055706024, -0.04746052622795105, -0.1986846923828125, -0.1381460726261139, -0.171809583902359, -0.19610969722270966, 0.14201229810714722, -0.1423938274383545, -0.014282338321208954, 0.08184008300304413, 0.07586196810007095, -0.14042022824287415, -0.2760424017906189, -0.13735996186733246, 0.27245718240737915, 0.11311330646276474, 0.15117517113685608, -0.39326173067092896, 0.10200132429599762, -0.37293311953544617, 0.3129015564918518, 0.04801332578063011, 0.24153882265090942, -0.16636531054973602, -0.011399928480386734, 0.14935703575611115, -0.06880324333906174, 0.5504931807518005, -0.1515313684940338, 0.2541796565055847, 0.3367014527320862, 0.12862320244312286, -0.7504608035087585, -0.06628099083900452, 0.023368027061223984, 0.3294964134693146, 0.2464195340871811, 0.4543992280960083, -0.25052669644355774, -0.1369055211544037, 0.23378439247608185, 0.29592254757881165, -0.1432940512895584, -0.22812005877494812, -0.21883901953697205, -0.1805829405784607, -0.22029100358486176, -0.1829196810722351, -0.018293272703886032, 0.2696574330329895, -0.06754403561353683, -0.02920633554458618, -0.1527404934167862, 0.1380232274532318, 0.17423662543296814, -0.10388714075088501, 0.37986841797828674, -0.06276758015155792, 0.3176007866859436, 0.16411972045898438, 0.15559755265712738, 0.08964362740516663, 0.37139004468917847, -0.13478872179985046, -0.18647357821464539, -0.04336211085319519, 0.3078993260860443, -0.01820700615644455, 0.2944716811180115, -0.1834382861852646, 0.05594028905034065, 0.23392002284526825, 0.0878421887755394, -0.008849197067320347, 0.14891895651817322, 0.19920514523983002, -0.1655576527118683, -0.1703931838274002, -0.3570532500743866, 0.46243545413017273, 0.1836014688014984, 0.16305331885814667, 0.08637736737728119, 0.14695611596107483, -0.1434803605079651, 0.06092870980501175, -0.06722033768892288, 0.8010353446006775, -0.19227994978427887, 0.2192886769771576, 0.08599191159009933, -0.017743509262800217, 0.7876717448234558, -0.2983105182647705, 0.0326748788356781, -0.4788476526737213, -0.1975049376487732, 0.07007785886526108, -0.0545484684407711, 0.03878913074731827, 0.1448947638273239, -0.09474774450063705, 0.19318035244941711, -0.2254076600074768, -0.15336741507053375, -0.004277333617210388, 0.11447872221469879, 0.0007139444351196289, -0.19735144078731537, -0.15701094269752502, 0.13645508885383606, -0.19904102385044098, 0.25647398829460144, -0.05315002053976059, 0.16795046627521515, -0.1742459535598755, -0.15749657154083252, -0.35622942447662354, 0.09926312416791916, -0.26881417632102966, 0.4265557527542114, 0.35845428705215454, -0.4234369397163391, 0.0714084655046463, 0.2643081545829773, 0.08982159197330475, 0.15718787908554077, -0.12246546149253845, 0.2339867651462555, -0.038104936480522156, -0.1398688703775406, 0.1586792916059494, 0.08001205325126648, 0.4458075761795044, -0.04808271676301956, -0.25897032022476196, -0.0948815867304802, -0.1892414689064026, -0.16251179575920105, 0.041138917207717896, 0.12506797909736633, -0.006888113915920258, -0.141898050904274, -0.2220698744058609, -0.19774526357650757, 0.24855157732963562, -0.27181506156921387, 0.16379974782466888, 0.32826632261276245, -0.2938084602355957, -0.0524120107293129, -0.034159403294324875, -0.19177696108818054, 0.0028738249093294144, 0.4908808171749115, 0.011456020176410675, -0.06321308761835098, 0.27236807346343994, 0.2820203900337219, -0.18264684081077576, -0.19065803289413452, -0.04024788737297058, 0.3351074457168579, -0.438679039478302, 0.06292568147182465, 0.0017519289394840598, 0.10898533463478088, -0.08319611847400665, 0.08663871139287949, 0.1854892522096634, -0.3316164016723633, -0.04971455782651901, -0.5123906135559082, -0.4241812229156494, 0.06170649081468582, -0.18542762100696564, 0.09276628494262695, 0.18524107336997986, -0.0904901921749115, -0.0750621035695076, 0.14243672788143158, -0.32714083790779114, 0.16791431605815887, -0.4357079863548279, 0.09707000851631165, 0.08670106530189514, -0.09133099764585495, 0.026114895939826965, 0.005611552856862545, 0.21337765455245972, 0.1586076021194458, -0.17165996134281158, -0.23439055681228638, -0.20156817138195038, 0.12740984559059143, -0.16386011242866516, 0.0023355099838227034, 0.015064648352563381, 0.03916192054748535, -0.15149827301502228, -0.2010212391614914, 0.10950596630573273, 0.15156817436218262, 0.029777493327856064, -0.08934351801872253, -0.1283654272556305, 0.07940484583377838, -0.2303038239479065, 0.2807919383049011, -0.029716424643993378, 0.08507468551397324, 0.07383789122104645, 0.1805204600095749, -0.08656135946512222, -0.07372764497995377, -0.2952449917793274, -0.0313291922211647, -0.08088544011116028, 0.12756825983524323, 0.27369043231010437, -0.2907216548919678, -0.1748836487531662, 0.27190956473350525, 0.24622291326522827, 0.3950800895690918, -0.12022323906421661, 0.1272372454404831, 0.2753775417804718, 0.1972281038761139, -0.3205420672893524, -0.15851232409477234, 0.24820604920387268, -0.16053958237171173, 0.07037562131881714, 0.25886476039886475, -0.00535321980714798, -0.16161894798278809, 0.04167608916759491, 0.1095614805817604, 0.35549601912498474, -0.12862759828567505, 0.11503541469573975, -0.10558211803436279, -0.003897368907928467, -0.1538093537092209, 0.06623508036136627, 0.04185343533754349, 0.23283198475837708, 0.7362132668495178, -0.12579607963562012, 0.10409875214099884, -0.405633807182312, 0.1632436215877533, -0.048711784183979034, -0.6907126307487488, 0.163654163479805, 0.37510716915130615, -0.20041826367378235, 0.03766468167304993, -0.20025277137756348, 0.43593746423721313, -0.4588371515274048, -0.030441980808973312, -0.18290814757347107, 0.12195339798927307, -0.20527273416519165, -0.014440235681831837, 0.14588169753551483, -0.12422707676887512, -0.27284833788871765, -0.048120684921741486, -0.0287606380879879, -0.19886262714862823, 0.3789021074771881, 0.10701107978820801, -0.2630314230918884, -0.20155686140060425, 0.13570642471313477, 0.1699102818965912, 0.21809405088424683, -0.357466459274292, 0.24788767099380493, -0.0779876708984375, -0.08207839727401733, 0.12990228831768036, 0.17357106506824493, 0.5013977885246277, 0.2809215784072876, 0.07079777121543884, 0.2174234688282013, 0.02298203855752945, -0.1285048872232437, -0.22208289802074432, 0.2500050663948059, 0.015539325773715973, 0.33953770995140076, 0.207184299826622, 0.16226384043693542, -0.14378514885902405, -0.08357296884059906, 0.16110573709011078, 0.2301984578371048, -0.22403663396835327, 0.5022636651992798, -0.38987141847610474, -0.2849796414375305, -0.21817737817764282, 0.136494979262352, -0.5349047780036926, 0.06492713838815689, 0.08667922019958496, 0.1992294043302536, 0.29093044996261597, -0.25161314010620117, 0.11084891855716705, -0.04593004658818245, 0.3562527596950531, 0.16580210626125336, 0.06480550765991211, -0.24559429287910461, -0.24771861732006073, -0.757775068283081, 0.24651402235031128, -0.07879889011383057, -0.0816405788064003, 0.1872539520263672, 0.1978066861629486, -0.2379479706287384, -0.051982708275318146, -0.0008512213826179504, 0.025633035227656364, 0.36022046208381653, 0.11298605054616928, -0.3824446201324463, -0.13873258233070374, 0.07827463746070862, -0.049296386539936066, 0.05449102818965912, -0.37256771326065063, 0.12635837495326996, -0.5079928636550903, 0.03510056436061859, 0.09880705177783966, -0.16418564319610596, 0.1969139277935028, 0.0705326497554779, 0.4982841908931732, -0.03769174963235855, 0.3045731782913208, 0.01737438514828682, -0.1567615568637848, -0.6732804179191589, -0.06736429035663605, -0.13940563797950745, 0.3545382022857666, 0.13442426919937134, 0.3404398560523987, -0.2917606234550476, -0.05949218198657036, -0.28124240040779114, 0.25545331835746765, 0.14459985494613647, 0.07352282851934433, -0.007846731692552567, 0.012682052329182625, -0.12046109139919281, 0.1674373596906662, 0.21541014313697815, 0.08348225057125092, -0.012750290334224701, -0.04370485246181488, -0.3620736598968506, -0.4809337258338928, 0.7215982675552368, -0.040509242564439774, -0.1685129702091217, -0.21625623106956482, 0.4100281894207001, 0.16133949160575867, -0.2120659053325653, -0.3983764946460724, 0.1647353172302246, 0.5024662613868713, 0.13838185369968414, -0.22452925145626068, 0.0906326025724411, -0.23531921207904816, -0.008367102593183517, -0.09517887979745865, 0.039505019783973694, -0.026661254465579987, -0.11842916905879974, 0.3332895338535309, -0.15597942471504211 ]
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.14578761160373688, 0.040141522884368896, -0.052989158779382706, 0.47682279348373413, 0.10634158551692963, 0.22297197580337524, 0.15502455830574036, 0.3400087356567383, -0.23909392952919006, 0.008226826786994934, 0.035793423652648926, 0.4321309030056, 0.09956885874271393, 0.13827498257160187, -0.0019156476482748985, -0.19086451828479767, 0.05826442688703537, -0.0400950163602829, 0.05146796256303787, 0.013578839600086212, -0.22605325281620026, 0.45346778631210327, -0.008611172437667847, -0.003544323146343231, -0.24126563966274261, -0.08201352506875992, -0.06301325559616089, 0.19751295447349548, -0.19477903842926025, -0.29862305521965027, 0.22381868958473206, -0.0007779300212860107, -0.2992430329322815, 0.40792277455329895, -0.00010577696957625449, 0.11152446269989014, 0.3177172541618347, -0.05469217896461487, -0.2763524651527405, -0.3126670718193054, -0.11799700558185577, -0.19957886636257172, -0.1801234632730484, -0.31080934405326843, -0.22448945045471191, -0.4072847366333008, -0.03591971844434738, -0.1976810246706009, 0.4339143633842468, 0.2254706770181656, 0.2889286279678345, 0.09397774189710617, 0.36557596921920776, 0.013864037580788136, 0.1234837993979454, 0.3481940031051636, -0.09908578544855118, 0.14987140893936157, -0.02610677480697632, 0.2428712546825409, 0.06186329573392868, 0.5340321063995361, 0.012138063088059425, -0.13594263792037964, 0.3161493241786957, -0.08813377469778061, -0.13431039452552795, -0.23458069562911987, 0.36659637093544006, 0.20393937826156616, 0.5051332712173462, -0.3382624089717865, -0.2950493395328522, -0.3582272529602051, -0.05403599515557289, 0.04419685900211334, 0.3174576163291931, 0.15737982094287872, -0.08500298857688904, 0.2246192842721939, -0.15652234852313995, -0.12831929326057434, -0.05858568102121353, 0.11865680664777756, 0.08487161993980408, 0.17726656794548035, -0.16701775789260864, 0.11654121428728104, -0.18105648458003998, -0.2725033760070801, -0.07296832650899887, -0.3031309247016907, -0.24345189332962036, 0.10572980344295502, -0.1498846411705017, -0.17405197024345398, 0.18403588235378265, -0.12262284010648727, 0.3561208248138428, 0.01993446797132492, -0.08341407775878906, 0.03026050515472889, -0.12826618552207947, 0.07840964943170547, 0.29415446519851685, 0.06646695733070374, 0.28652891516685486, 0.10059072077274323, 0.04328534007072449, 0.3054368197917938, -0.09574781358242035, -0.01530231162905693, 0.23611201345920563, -0.20297136902809143, -0.015887979418039322, -0.04552488774061203, 0.3907974362373352, -0.10990934073925018, -0.13033989071846008, 0.31612256169319153, -0.31222084164619446, -0.13779178261756897, -0.08873789757490158, 0.3365529477596283, -0.10416439175605774, -0.17375320196151733, 0.057955898344516754, 0.15008696913719177, -0.07597927004098892, -0.10403699427843094, -0.23834964632987976, -0.0655810534954071, -0.010632459074258804, 0.07400082051753998, 0.048797909170389175, -0.3156569004058838, 0.567234992980957, 0.10937383770942688, -0.05475156754255295, -0.4071522653102875, 0.0890468955039978, 0.0703376978635788, 0.018114596605300903, 0.2034136950969696, -0.1953355371952057, 0.21216635406017303, 0.002976212650537491, -0.25470781326293945, -0.1380573809146881, 0.022488102316856384, -0.35470050573349, -0.23756344616413116, -0.18672335147857666, 0.26774609088897705, -0.08651269972324371, 0.10172532498836517, -0.18890786170959473, 0.2865258455276489, 0.26742905378341675, -0.026643728837370872, 0.011200062930583954, 0.13251414895057678, 0.030641626566648483, -0.24729210138320923, 0.1174989715218544, 0.3622016906738281, -0.20752134919166565, -0.14082518219947815, 0.10551957786083221, 0.13868947327136993, -0.021891430020332336, 0.016603901982307434, -0.13780272006988525, 0.26209592819213867, -0.20631086826324463, 0.15659470856189728, -0.01736719161272049, -0.3505875766277313, -0.2432553470134735, 0.2392071783542633, 0.004756592214107513, 0.27487072348594666, 0.19122099876403809, -0.05179861560463905, -0.09623625874519348, 0.11350136250257492, 0.3098180294036865, 0.0792001262307167, 0.16094669699668884, 0.2221572995185852, -0.20478218793869019, -0.401945024728775, -0.08861875534057617, 0.09511832892894745, -0.1413324475288391, 0.051356393843889236, 0.147485613822937, -0.04337219148874283, 0.3624110519886017, -0.03456077352166176, 0.06210138648748398, 0.37073731422424316, -0.049251217395067215, -0.08979068696498871, 0.2745545208454132, -0.024421952664852142, -0.5704753398895264, 0.11887670308351517, 0.012449778616428375, 0.24953177571296692, -0.259868323802948, -0.20709973573684692, -0.3331196904182434, -0.11661660671234131, -0.31705912947654724, -0.2710927128791809, 0.24384942650794983, 0.19824901223182678, 0.05826980248093605, -0.002912517637014389, -0.11190322041511536, -0.06828717887401581, 0.13458463549613953, 0.14858129620552063, -0.8418687582015991, 0.049840182065963745, -0.21298985183238983, 0.08041796833276749, 0.2350141704082489, 0.13209375739097595, 0.17853403091430664, -0.15460650622844696, -0.09376250207424164, 0.3380410075187683, 0.04302288964390755, 0.21343320608139038, -0.027699708938598633, 0.2834194302558899, 0.11906871944665909, -0.12721700966358185, 0.0026938877999782562, 0.3282427489757538, 0.006199376657605171, -0.07700397074222565, -0.19664183259010315, 0.5660507082939148, 0.15562519431114197, 0.1487797349691391, -0.11135512590408325, -0.08272389322519302, 0.32910338044166565, 0.019689876586198807, -0.19568389654159546, -0.33222246170043945, 0.10079216957092285, -0.028754599392414093, 0.045617762953042984, 0.04676590859889984, -0.3251133859157562, 0.1408955156803131, 0.6347143650054932, 0.026139717549085617, 0.007385611534118652, 0.07325002551078796, -0.20734739303588867, -0.08693245053291321, 0.08151552826166153, 0.20345018804073334, 0.30299562215805054, 0.20477288961410522, -0.24010998010635376, 0.16507062315940857, 0.15053394436836243, -0.27913349866867065, 0.26350557804107666, -0.03941957652568817, 0.16400271654129028, 0.2611384093761444, 0.28494712710380554, -0.06388742476701736, -0.3041081130504608, 0.11524219810962677, -0.03727453947067261, 0.18267931044101715, -0.3774649500846863, 0.22385503351688385, -0.14758634567260742, -0.1229851245880127, -0.21478790044784546, -0.24319203197956085, -0.32696980237960815, -0.2343273013830185, 0.1149376854300499, -0.03345930948853493, -0.2041688710451126, 0.13906538486480713, 0.2810526192188263, 0.029861167073249817, -0.0279998742043972, -0.019329814240336418, -0.41723179817199707, -0.2008632868528366, -0.1176670715212822, 0.05097394064068794, 0.15501812100410461, -0.10960567742586136, 0.21302635967731476, -0.3792509436607361, -0.1458824872970581, -0.3154370188713074, -0.4999270439147949, 0.2528185248374939, -0.155046284198761, 0.5203311443328857, 0.20812556147575378, 0.2512643039226532, -0.017577074468135834, -0.27996525168418884, 0.36690717935562134, 0.2514347434043884, -0.34876778721809387, 0.1275804489850998, -0.13831694424152374, -0.06407355517148972, -0.06297706067562103, -0.4735095798969269, -0.10072480887174606, -0.23388606309890747, 0.36567187309265137, 0.14244453608989716, 0.2632223069667816, 0.6181698441505432, 0.02861921489238739, -0.13264241814613342, -0.30637985467910767, 0.43782562017440796, -0.32245394587516785, -0.6928204298019409, 0.14585332572460175, -0.27173879742622375, -0.3099218010902405, -0.08696237206459045, 0.11605675518512726, 0.20112274587154388, -0.34134364128112793, -0.5350942015647888, -0.22004571557044983, -0.006097370758652687, 0.17686370015144348, 0.0011514462530612946, 0.21913501620292664, 0.11078844219446182, 0.10147971659898758, -0.08683649450540543, -0.2585104703903198, -0.3038439154624939, 0.030726507306098938, -0.04614884406328201, 0.4130175709724426, -0.003113850951194763, 0.23602384328842163, -0.0675429180264473, 0.28079789876937866, 0.4191533029079437, -0.10383209586143494, 0.10032887756824493, -0.14495928585529327, 0.19231240451335907, -0.20883896946907043, -0.30925244092941284, 0.12375199049711227, 0.0046165138483047485, 0.06784848868846893, 0.38735806941986084, 0.14943382143974304, 0.09625609964132309, -0.16945143043994904, -0.09931018948554993, -0.6170863509178162, -0.33134886622428894, -0.010551193729043007, 0.028210604563355446, 0.015698663890361786, 0.22968313097953796, 0.18604782223701477, -0.19812585413455963, -0.08757366985082626, 0.1677747666835785, 0.35745030641555786, 0.011513754725456238, 0.05066077411174774, -0.35716331005096436, -0.20853857696056366, -0.34963366389274597, 0.25004148483276367, -0.12601453065872192, 0.07388371229171753, -0.005829375237226486, 0.1490657925605774, 0.05860636383295059, -0.15957556664943695, 0.6097586154937744, -0.15285278856754303, 0.15682101249694824, 0.010171383619308472, 0.2056984156370163, -0.027919139713048935, -0.04608534649014473, 0.03884928300976753, 0.4127776324748993, 0.16798341274261475, 0.7363846302032471, -0.4434218108654022, -0.14991827309131622, 0.10743536055088043, 0.039935000240802765, -0.22905372083187103, -0.32282745838165283, -0.2562306523323059, -0.4385036528110504, -0.37849119305610657, -0.24621203541755676, -0.15043103694915771, 0.3239056169986725, 0.12870776653289795, -0.13801895081996918, 0.20281153917312622, 0.14790570735931396, -0.027902692556381226, 0.3254077434539795, 0.24951127171516418, 0.15077662467956543, 0.2005642056465149, 0.08839431405067444, 0.3398110270500183, 0.45309698581695557, 0.6804461479187012, 0.1602432280778885, -0.3058861494064331, -0.1854250729084015, -0.17784471809864044, -0.0007927194237709045, 0.1976068913936615, -0.11648109555244446, 0.18746089935302734, 0.24005736410617828, 0.1372131109237671, -0.10135535150766373, -0.2747010290622711, 0.3978067934513092, 0.08946529775857925, -0.30390748381614685, -0.3379623591899872, 0.49625521898269653, -0.1628098040819168, -0.0984530970454216, -0.054401054978370667, 0.18101221323013306, -0.38938865065574646, 0.4970276951789856, -0.019678279757499695, 0.9072644114494324, 0.17171978950500488, -0.036311808973550797, 0.1672070026397705, -0.23767933249473572, 0.6262369155883789, -0.24352791905403137, 0.027706261724233627, -0.43593159317970276, -0.015937671065330505, 0.09638886153697968, 0.0022768303751945496, 0.12779667973518372, 0.2750006914138794, -0.19942376017570496, 0.10439935326576233, -0.15375283360481262, 0.07442533224821091, -0.2134493738412857, 0.15277422964572906, -0.13391077518463135, -0.1001509577035904, -0.6485547423362732, 0.21626682579517365, -0.1340780258178711, 0.2843243479728699, -0.033746086061000824, -0.16597124934196472, -0.15970264375209808, -0.35662925243377686, -0.21647760272026062, 0.027552414685487747, -0.2082718163728714, -0.11445970833301544, 0.4093921184539795, -0.12630894780158997, 0.089567631483078, -0.002324901521205902, 0.40252262353897095, 0.2011949121952057, -0.23761019110679626, 0.19589900970458984, 0.026018939912319183, -0.061431631445884705, 0.10793492197990417, 0.039166100323200226, 0.3096684217453003, -0.07691088318824768, -0.18658708035945892, -0.044882677495479584, -0.1477643847465515, -0.14056643843650818, -0.1647748053073883, -0.1890879124403, -0.3345376253128052, -0.23398946225643158, -0.13777127861976624, -0.09669137001037598, 0.021869655698537827, -0.325076699256897, 0.20275487005710602, 0.005144894123077393, -0.2541191279888153, 0.09213601797819138, -0.045855965465307236, -0.19873681664466858, -0.07214280962944031, 0.35320428013801575, 0.20084938406944275, 0.021638911217451096, 0.3913571834564209, 0.3041115701198578, -0.11934725195169449, -0.21218934655189514, 0.10431580990552902, 0.3070034682750702, -0.32816410064697266, 0.01054651290178299, 0.09831015020608902, 0.02140800654888153, -0.07976341247558594, 0.3965928256511688, 0.22848497331142426, 0.09512597322463989, 0.11382623016834259, -0.519615650177002, -0.1872861385345459, 0.29869022965431213, 0.11297798156738281, -0.017112184315919876, 0.14568239450454712, 0.07901348173618317, -0.13569355010986328, 0.20354989171028137, -0.4075133800506592, -0.06666596978902817, -0.18165038526058197, 0.17010775208473206, 0.16037411987781525, 0.07998049259185791, 0.1320686787366867, -0.06013632193207741, 0.18699124455451965, -0.08302467316389084, -0.23945555090904236, -0.27347469329833984, -0.14847028255462646, 0.10395129770040512, 0.07082480192184448, -0.03485947102308273, -0.07378353178501129, -0.2020002156496048, -0.12099570035934448, -0.05047064647078514, 0.19538240134716034, 0.05752306431531906, 0.17822718620300293, 0.22182747721672058, -0.14424696564674377, 0.041896574199199677, 0.03159257024526596, -0.13388606905937195, 0.1066342443227768, 0.2410716861486435, -0.0715850219130516, 0.10545141994953156, -0.4267304539680481, 0.05007077753543854, -0.07839883863925934, 0.2025311291217804, -0.1733049601316452, 0.4281400740146637, 0.39769622683525085, -0.35671108961105347, 0.05612403526902199, 0.3893370032310486, 0.33766505122184753, 0.30052024126052856, -0.25155046582221985, 0.1534404307603836, -0.023507561534643173, 0.27057772874832153, -0.3498670160770416, -0.2758156359195709, 0.2064150869846344, -0.11860053986310959, 0.042418550699949265, 0.02326655387878418, 0.09840127825737, 0.10951641201972961, -0.21967925131320953, 0.022361136972904205, 0.48109033703804016, -0.12231405079364777, 0.04502381384372711, 0.35522380471229553, -0.0936720073223114, 0.04413933306932449, 0.4439208507537842, 0.26154133677482605, 0.12195000052452087, 0.33529818058013916, -0.0303640216588974, 0.2382008284330368, 0.2425147294998169, 0.14730994403362274, -0.003946587443351746, -0.1024474948644638, 0.407223641872406, 0.3074490427970886, 0.06947145611047745, 0.08729055523872375, 0.108455590903759, 0.29120248556137085, -0.015010644681751728, -0.0678676888346672, -0.20592853426933289, 0.1513773500919342, -0.03578373044729233, -0.20453530550003052, -0.4539473354816437, -0.2694565951824188, -0.07611165195703506, -0.15810459852218628, -0.31158897280693054, -0.20528630912303925, 0.08533281087875366, -0.1223779171705246, -0.22429363429546356, -0.37592554092407227, -0.02849406749010086, -0.033774882555007935, 0.3045542538166046, -0.2974301278591156, 0.4509522616863251, 0.23339489102363586, -0.1500900685787201, 0.17365416884422302, 0.49736160039901733, 0.4691580832004547, 0.13942214846611023, 0.16191421449184418, 0.042557861655950546, -0.1611887514591217, -0.17747415602207184, -0.08312588185071945, 0.3151031732559204, 0.20662301778793335, -0.3417838215827942, 0.23895327746868134, 0.19192925095558167, -0.22525623440742493, -0.06308174133300781, 0.36518803238868713, 0.212438702583313, -0.010209635831415653, -0.1332976222038269, -0.5007309913635254, -0.19733470678329468, -0.09784561395645142, -0.1543731689453125, -0.41940197348594666, -0.2621975541114807, 0.3703792989253998, 0.16303986310958862, 0.263790100812912, -0.11002182960510254, 0.160548597574234, -0.08229075372219086, 0.4584312438964844, 0.2943875789642334, -0.131966233253479, -0.11455532163381577, -0.10089720040559769, -0.37469935417175293, 0.15587599575519562, 0.14840710163116455, -0.030900729820132256, 0.06633619964122772, 0.17822469770908356, 0.19880057871341705, 0.004579193890094757, -0.0795113742351532, 0.005981275346130133, 0.006412890739738941, 0.27364808320999146, -0.29594510793685913, -0.116801917552948, 0.017642494291067123, 0.03513295575976372, 0.09993812441825867, -0.02429911494255066, 0.2786884009838104, -0.07032375037670135, 0.023839741945266724, -0.2231598049402237, 0.16995127499103546, 0.1513519436120987, -0.1464567333459854, 0.19235530495643616, 0.09872499108314514, 0.1606479436159134, -0.29932937026023865, -0.38213658332824707, -0.17727439105510712, -0.2946634292602539, -0.2435602843761444, 0.4900175631046295, 0.012585438787937164, 0.5237455368041992, 0.14544354379177094, -0.08204472064971924, -0.1965850591659546, 0.01876969449222088, -0.07811969518661499, -0.3165506422519684, -0.45130500197410583, 0.2173178344964981, -0.11053088307380676, 0.025076478719711304, 0.028221506625413895, 0.3956521451473236, -0.007539302110671997, 0.20201179385185242, -0.25460028648376465, -0.45123347640037537, 0.5660300254821777, -0.30797243118286133, -0.1830756515264511, 0.19657592475414276, 0.1448821872472763, -0.17551109194755554, -0.30890217423439026, -0.48698556423187256, 0.20629453659057617, 0.3145410120487213, -0.1656980812549591, -0.07975831627845764, 0.0009100586175918579, -0.21061307191848755, 0.050212014466524124, 0.003750290721654892, 0.03100641444325447, 0.2694356441497803, -0.255366712808609, 0.05712469294667244, -0.0974854975938797 ]
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.46832001209259033, -0.04675440490245819, -0.09795734286308289, 0.13755342364311218, 0.1663956195116043, -0.2239755392074585, 0.19266138970851898, 0.46749600768089294, 0.0628538727760315, 0.2362472116947174, -0.0067698340862989426, -0.047078441828489304, -0.41499245166778564, 0.2554932236671448, 0.06666167080402374, -0.1503153294324875, 0.0009773075580596924, 0.05380554124712944, 0.20091065764427185, 0.054002389311790466, -0.20414789021015167, -0.060409173369407654, -0.03227929025888443, -0.3867228627204895, 0.13726530969142914, 0.12128570675849915, 0.12373626232147217, -0.10052109509706497, -0.5439124703407288, -0.4741576015949249, -0.09979405254125595, 0.36559394001960754, 0.33243244886398315, 0.44508108496665955, -0.00010906663374044001, -0.1867186427116394, 0.3261321187019348, -0.22253648936748505, -0.3541291654109955, -0.35827356576919556, -0.3125934898853302, -0.08202492445707321, 0.11807896941900253, -0.05864948406815529, -0.08329761028289795, -0.05291629210114479, 0.005199495702981949, -0.43207114934921265, 0.2591351270675659, 0.48350614309310913, 0.14804337918758392, 0.22587279975414276, -0.06290048360824585, 0.34679338335990906, 0.3124319911003113, 0.3924541473388672, -0.16395512223243713, 0.002893226221203804, 0.2594113349914551, 0.19117657840251923, -0.058125756680965424, 0.13834546506404877, -0.1698192059993744, 0.10331001877784729, -0.05663364380598068, 0.027963150292634964, -0.22060593962669373, -0.5073229074478149, -0.016174159944057465, 0.5063703060150146, 0.419970840215683, 0.06519293785095215, -0.4760579466819763, -0.28417250514030457, 0.15233370661735535, 0.000306595116853714, 0.2511098086833954, 0.11820818483829498, -0.3653719127178192, 0.16182784736156464, -0.3606188893318176, -0.08200766891241074, -0.2226942777633667, 0.12486426532268524, -0.12033096700906754, 0.24596431851387024, -0.04340226203203201, -0.0680057480931282, 0.06553010642528534, 0.14976537227630615, 0.40567487478256226, -0.2479870319366455, 0.30873775482177734, 0.03483105078339577, -0.03932896628975868, -0.20372432470321655, -0.1606537103652954, 0.02321356162428856, 0.1399276852607727, 0.25667691230773926, 0.30860665440559387, 0.21027326583862305, -0.14919760823249817, 0.2135019302368164, 0.03055413067340851, -0.03837408125400543, -0.07461527734994888, -0.06970110535621643, 0.21746774017810822, 0.5407654643058777, -0.003260243684053421, -0.0687256008386612, -0.07206444442272186, -0.06311175227165222, 0.18538972735404968, 0.12237725406885147, 0.4066693186759949, -0.09158778190612793, -0.3426746428012848, -0.1505705565214157, -0.33637961745262146, -0.2536012828350067, 0.16487622261047363, 0.2561691403388977, -0.17198589444160461, 0.4266867935657501, -0.031947098672389984, 0.3137049078941345, 0.03810489922761917, -0.22306890785694122, 0.11807018518447876, 0.06570357829332352, 0.20289742946624756, -0.011482322588562965, 0.39261800050735474, -0.2817881107330322, -0.238693505525589, -0.08951665461063385, -0.02039133757352829, 0.07041668146848679, 0.14707709848880768, -0.07293424010276794, 0.44205746054649353, -0.025323551148176193, -0.13596367835998535, -0.006347298622131348, 0.028475206345319748, -0.19366584718227386, -0.26353147625923157, 0.022302493453025818, -0.20170578360557556, -0.03644029051065445, 0.07982756942510605, 0.21228685975074768, -0.19627068936824799, -0.11372081935405731, -0.2630350887775421, 0.33616968989372253, -0.32214856147766113, 0.012491632252931595, 0.03361322730779648, -0.06832797080278397, -0.04191861301660538, -0.08470162749290466, 0.2602464258670807, 0.5462819337844849, -0.09806028008460999, -0.04334989935159683, -0.24052047729492188, -0.1707354635000229, 0.5798386931419373, -0.04379704222083092, -0.008325382135808468, -0.06595546752214432, -0.18388427793979645, 0.13957390189170837, 0.48091402649879456, -0.1480768322944641, -0.1279197633266449, 0.42954856157302856, -0.021709918975830078, 0.4528392255306244, 0.6081656813621521, -0.16760505735874176, 0.20236621797084808, -0.12795677781105042, -0.017041213810443878, 0.5179786682128906, -0.1611829698085785, -0.010725539177656174, -0.3075851798057556, -0.3225671947002411, 0.23325982689857483, 0.10892923176288605, 0.20636579394340515, 0.11645089834928513, 0.3067207932472229, -0.19119222462177277, 0.17451947927474976, -0.18075108528137207, 0.09478306025266647, -0.2880550026893616, 0.5135549902915955, -0.1454492211341858, -0.15163502097129822, -0.29697245359420776, -0.22352513670921326, -0.0345308780670166, -0.005361732095479965, 0.1067875400185585, -0.5588930249214172, -0.34482550621032715, -0.12066620588302612, -0.1046225056052208, -0.12494149804115295, 0.05938784033060074, 0.19442959129810333, 0.221422478556633, -0.23660705983638763, 0.08914072811603546, -0.209965780377388, -0.000020673498511314392, -0.11563561111688614, 0.17926424741744995, 0.10915793478488922, 0.25315162539482117, 0.15886004269123077, 0.06511589139699936, 0.40460723638534546, -0.08791274577379227, 0.2208462953567505, -0.04903186485171318, -0.2288406491279602, 0.1611863076686859, 0.14990296959877014, 0.45026063919067383, 0.1342952400445938, 0.19676105678081512, 0.33440732955932617, -0.2108052521944046, -0.19911256432533264, 0.5702885389328003, 0.18384523689746857, 0.13858050107955933, -0.13385671377182007, 0.25359588861465454, 0.07267390936613083, 0.009919092059135437, 0.22948767244815826, -0.07211235910654068, 0.16888195276260376, 0.009913887828588486, -0.12885838747024536, -0.28197765350341797, 0.10586066544055939, -0.012520227581262589, -0.15386392176151276, 0.031393930315971375, -0.13937798142433167, 0.05545448511838913, 0.34484347701072693, -0.19562123715877533, 0.07267701625823975, 0.3713412284851074, -0.023674465715885162, -0.23755961656570435, 0.05987892299890518, 0.4811073839664459, 0.2880631387233734, 0.05950341001152992, 0.38183584809303284, -0.12750422954559326, 0.1442795693874359, -0.2373068928718567, 0.29234060645103455, 0.0002397671341896057, -0.2734442353248596, 0.11322619020938873, 0.08854254335165024, -0.06587918847799301, -0.3768078088760376, 0.017805349081754684, -0.0038293572142720222, -0.03655226528644562, -0.4186416268348694, 0.02906804345548153, -0.5251243114471436, -0.03602823615074158, -0.24802011251449585, -0.13895423710346222, -0.05893995985388756, -0.12794320285320282, 0.2919635772705078, 0.2840205430984497, -0.16981570422649384, -0.017666451632976532, -0.2772926390171051, 0.4388010501861572, 0.041490018367767334, -0.20655083656311035, -0.09672647714614868, 0.1288212537765503, 0.004322677850723267, 0.18609805405139923, 0.6305444836616516, 0.1073833778500557, 0.44840991497039795, -0.3081643283367157, 0.09628210961818695, -0.6249542236328125, -0.21721166372299194, 0.033556342124938965, 0.05870644748210907, 0.405997097492218, 0.08108137547969818, 0.2308996617794037, 0.12879541516304016, -0.39058321714401245, -0.06687436252832413, -0.15409958362579346, -0.0005741864442825317, 0.2530430853366852, -0.01821294240653515, 0.08283993601799011, -0.10116194188594818, -0.6140944957733154, -0.19345232844352722, -0.3065444529056549, 0.16771292686462402, 0.0852092057466507, 0.1408650428056717, 0.064637191593647, -0.0652584508061409, -0.11104211956262589, 0.07270295917987823, 0.2945083975791931, -0.012677345424890518, -0.33760160207748413, 0.4186660945415497, -0.1411740928888321, -0.22590409219264984, 0.08139580488204956, -0.07941760867834091, -0.15516039729118347, 0.7107813954353333, -0.05938861146569252, -0.12762391567230225, -0.017989767715334892, -0.042953141033649445, 0.1628360152244568, -0.22916506230831146, 0.15788452327251434, 0.04005122929811478, -0.09616269916296005, -0.15795424580574036, 0.4025488495826721, -0.1899675726890564, 0.15455977618694305, 0.32491931319236755, 0.1847122609615326, 0.0663638487458229, 0.10596892237663269, 0.22196435928344727, -0.03383329510688782, -0.06873469054698944, 0.6299160718917847, 0.10366414487361908, -0.05454162880778313, 0.10487666726112366, 0.01518949680030346, 0.31040531396865845, -0.20584267377853394, -0.1948578655719757, 0.34423497319221497, 0.18038904666900635, -0.1539151966571808, -0.3076995313167572, 0.2331065833568573, -0.4765739142894745, -0.1373845785856247, 0.36300787329673767, 0.10206012427806854, 0.3724045157432556, 0.0023023001849651337, 0.07610299438238144, 0.1107170581817627, -0.22612687945365906, 0.17465761303901672, 0.5635550618171692, 0.44195544719696045, -0.08297847211360931, -0.12352047860622406, 0.0987975001335144, -0.3718421161174774, 0.36340999603271484, 0.39450526237487793, 0.1895543932914734, -0.10862959176301956, -0.17347824573516846, 0.11403249204158783, 0.04208110645413399, -0.07269054651260376, -0.644341766834259, -0.20662401616573334, -0.11552834510803223, 0.20947977900505066, 0.193102166056633, -0.030515585094690323, -0.3284289538860321, -0.1226562112569809, -0.024966049939393997, 0.13001586496829987, -0.28441137075424194, -0.03222360834479332, -0.030634641647338867, 0.2318107634782791, 0.14233149588108063, -0.0509394071996212, -0.11798018217086792, -0.11147498339414597, -0.22149832546710968, -0.08739747852087021, 0.1017463281750679, -0.06700510531663895, -0.5361404418945312, -0.25996193289756775, -0.024661676958203316, 0.227541983127594, 0.43807321786880493, 0.23458200693130493, 0.17425143718719482, -0.10074449330568314, 0.03628481552004814, -0.012257449328899384, 0.19753699004650116, 0.4364737272262573, 0.36142367124557495, 0.05743460729718208, -0.4678519368171692, 0.014850425533950329, -0.07642488181591034, -0.038060031831264496, 0.23953628540039062, -0.20618727803230286, 0.3483465909957886, 0.4832257032394409, 0.33378446102142334, -0.4939822554588318, 0.13970759510993958, 0.40163689851760864, -0.24342234432697296, -0.4077296555042267, -0.7770459055900574, 0.3561587929725647, -0.05971836671233177, -0.046862006187438965, 0.25633078813552856, -0.01733992248773575, -0.22182327508926392, 0.08598662912845612, 0.16448600590229034, 0.9456914067268372, 0.009185303002595901, -0.2788428068161011, 0.163362056016922, -0.4143882393836975, 0.03452044352889061, -0.3965304493904114, -0.020968034863471985, 0.08108152449131012, -0.12247635424137115, -0.3990936279296875, -0.060859762132167816, 0.4578858017921448, 0.06640724837779999, -0.5342307090759277, 0.05284794420003891, -0.013135619461536407, 0.2774658203125, 0.16872045397758484, 0.43783488869667053, -0.6074439287185669, -0.06288565695285797, -0.35967275500297546, 0.1476643830537796, -0.14313939213752747, 0.122768834233284, 0.09364254027605057, -0.10857969522476196, 0.08979161083698273, -0.08388399332761765, -0.2090044468641281, -0.19652050733566284, -0.4427068531513214, -0.0325443334877491, -0.28609344363212585, -0.5322906970977783, 0.2656702697277069, 0.08087234944105148, 0.061388641595840454, -0.14520402252674103, -0.23308619856834412, 0.22941602766513824, -0.030978530645370483, 0.23845867812633514, 0.042083773761987686, -0.3452257215976715, 0.4673246443271637, -0.10696270316839218, -0.023438729345798492, 0.02047935128211975, 0.09646732360124588, -0.22999224066734314, 0.26415765285491943, -0.2156563550233841, 0.26693618297576904, -0.14311939477920532, -0.13734860718250275, -0.40701165795326233, -0.2420143038034439, -0.18716886639595032, 0.12473428249359131, -0.07110297679901123, -0.07582957297563553, -0.09599380940198898, 0.23701579868793488, -0.13773056864738464, -0.23424793779850006, 0.15253224968910217, -0.016238145530223846, -0.010840525850653648, 0.1060643121600151, -0.1014113575220108, -0.37786316871643066, -0.30851566791534424, 0.021330446004867554, -0.02956404536962509, -0.04535164311528206, -0.08755532652139664, 0.15617255866527557, 0.02672763168811798, -0.12572528421878815, 0.2406301349401474, -0.17477551102638245, 0.10039271414279938, -0.20130807161331177, -0.3780128061771393, 0.056212641298770905, 0.043846193701028824, -0.30113065242767334, 0.14589305222034454, -0.19549813866615295, -0.09696546196937561, 0.2290511429309845, -0.13365644216537476, -0.3066677451133728, -0.04596300423145294, 0.02958589978516102, -0.02941478043794632, -0.14914195239543915, 0.258175790309906, 0.28738969564437866, -0.13125276565551758, 0.11695197224617004, 0.0374177023768425, -0.16227534413337708, -0.14008435606956482, -0.13392028212547302, 0.1999059021472931, 0.13382738828659058, -0.12159059196710587, -0.0150667829439044, 0.04496476799249649, -0.11106115579605103, -0.15424351394176483, -0.048955053091049194, 0.02208603546023369, -0.05851510167121887, -0.04923120513558388, -0.01651151105761528, -0.2595728933811188, -0.3069780468940735, -0.010422199964523315, -0.2838960289955139, 0.4272768497467041, 0.1495513767004013, 0.011561442166566849, -0.021305318921804428, 0.01806700974702835, -0.04279402643442154, 0.2023460566997528, 0.28986048698425293, 0.20967063307762146, 0.3697504699230194, 0.0967874825000763, -0.035262420773506165, 0.05523567274212837, 0.18893782794475555, 0.46063441038131714, -0.09551941603422165, -0.023852916434407234, 0.2567828893661499, 0.20216621458530426, -0.09940226376056671, 0.2095014899969101, -0.10953474044799805, -0.300088495016098, 0.18355977535247803, 0.18349622189998627, 0.20725089311599731, -0.11954179406166077, -0.010424099862575531, 0.02244190126657486, 0.03731982409954071, -0.028917308896780014, 0.4075632095336914, 0.3415365517139435, 0.17754261195659637, 0.27783605456352234, -0.1512511521577835, -0.35810935497283936, -0.03713492304086685, -0.22717805206775665, -0.23440676927566528, 0.4020761251449585, -0.06025238335132599, 0.2089107781648636, 0.04753473401069641, -0.1020171195268631, -0.03085200861096382, 0.014524728059768677, -0.26614996790885925, 0.5484503507614136, 0.4545837640762329, 0.5620852708816528, -0.20007745921611786, 0.0056190332397818565, -0.2480086386203766, -0.02443709596991539, 0.13755860924720764, 0.004594999365508556, -0.12061727792024612, -0.2380753755569458, -0.44027936458587646, 0.010014161467552185, 0.12847666442394257, 0.0774768590927124, -0.1824951469898224, 0.4470058083534241, 0.11953292787075043, -0.12718680500984192, -0.09818408638238907, -0.21568521857261658, 0.5371817350387573, -0.4945754408836365, -0.008991705253720284, 0.29848235845565796, 0.15188178420066833, 0.4640009105205536, 0.0631292313337326, 0.2702624797821045, 0.2201012223958969, -0.1132466048002243, -0.06478017568588257, -0.08530819416046143, -0.10176639258861542, 0.040163833647966385, 0.14599573612213135, 0.15374282002449036, 0.14279046654701233, 0.31940537691116333, 0.21118266880512238, -0.07777652889490128, 0.22141551971435547, -0.09335939586162567, -0.20381808280944824, -0.38827553391456604, 0.10063684731721878, 0.11475840955972672, 0.2198564112186432, -0.39254897832870483, -0.44921621680259705, -0.2825176417827606, 0.12758184969425201, 0.040208518505096436, -0.09204990416765213, 0.11962404102087021, 0.0007093474268913269, 0.06610565632581711, 0.24049736559391022, -0.012843232601881027, 0.060062941163778305, 0.06896884739398956, -0.09994686394929886, -0.27705830335617065, -0.7179276347160339, -0.21234780550003052, 0.09530113637447357, -0.052177682518959045, -0.07232940196990967, -0.09597716480493546, -0.0011966973543167114, 0.3992810845375061, -0.0945914089679718, -0.043843574821949005, 0.2593013346195221, 0.26743313670158386, -0.26825952529907227, -0.3017503023147583, 0.28725945949554443, 0.18337586522102356, -0.42264318466186523, -0.30866217613220215, 0.29927024245262146, -0.1995319128036499, 0.07485029846429825, 0.029829762876033783, 0.006179489195346832, -0.02734547294676304, -0.0671398788690567, 0.4175606966018677, 0.28140154480934143, 0.5260303020477295, -0.35789385437965393, -0.07841191440820694, -0.08580151200294495, 0.18324726819992065, -0.04900626465678215, 0.049878381192684174, -0.07774858176708221, 0.6659363508224487, 0.24269038438796997, -0.022899705916643143, -0.2919484078884125, 0.5941691994667053, -0.046559643000364304, -0.17767152190208435, -0.43885090947151184, -0.09210962057113647, -0.11072289943695068, 0.09229019284248352, 0.17541208863258362, -0.01338765025138855, -0.0666915699839592, -0.20003117620944977, -0.13378822803497314, -0.450107216835022, 0.24989566206932068, -0.30089375376701355, -0.2121911644935608, -0.02823615074157715, 0.14920005202293396, 0.13421697914600372, 0.46603530645370483, -0.5997112393379211, 0.04614488035440445, 0.2094108909368515, -0.20472648739814758, 0.30590981245040894, 0.16974905133247375, 0.25190842151641846, 0.07302884757518768, -0.13790564239025116, 0.0984831154346466, 0.09265218675136566, 0.008411576971411705, -0.029792040586471558, -0.21048742532730103 ]
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.3851113021373749, 0.180215984582901, -0.001256471499800682, -0.06790971755981445, 0.549762487411499, -0.218984454870224, 0.06270237267017365, 0.3480111062526703, -0.21019482612609863, 0.12432330846786499, 0.008655880577862263, 0.3338851034641266, -0.04402225837111473, -0.024640217423439026, -0.11520113050937653, -0.008982755243778229, 0.10464737564325333, 0.05985419824719429, 0.3436265289783478, 0.00758768618106842, -0.3184521496295929, 0.11741413921117783, -0.1806853711605072, -0.002724967896938324, -0.2734527289867401, 0.09279850870370865, -0.05754437297582626, -0.06643236428499222, -0.4653160572052002, -0.7149310111999512, 0.173110693693161, 0.07096269726753235, -0.06049336865544319, 0.4433307647705078, -0.0001090660662157461, -0.12883608043193817, 0.2636288106441498, -0.2208126187324524, -0.4332725405693054, -0.452922523021698, -0.1555376946926117, -0.2812536060810089, 0.010191698558628559, -0.10268480330705643, -0.0918692946434021, -0.37854310870170593, -0.042984411120414734, -0.0021671317517757416, 0.24215127527713776, 0.3916674256324768, 0.2563028931617737, 0.2788768410682678, 0.08785958588123322, -0.32781049609184265, -0.04747965186834335, 0.07175353169441223, -0.04166262969374657, 0.20626570284366608, -0.15644745528697968, 0.0919189602136612, 0.06975456327199936, 0.139652281999588, -0.2196812927722931, 0.11909852921962738, 0.02515731379389763, -0.07757953554391861, -0.11149207502603531, -0.060176700353622437, 0.11229607462882996, -0.047788262367248535, 0.3497336506843567, -0.45870068669319153, -0.3827279210090637, 0.19701078534126282, 0.017358174547553062, -0.4542075991630554, -0.025497369468212128, -0.10063888132572174, 0.016784440726041794, -0.16700083017349243, 0.03441803529858589, 0.006293877027928829, -0.04459604620933533, 0.11557227373123169, -0.1596202254295349, 0.348680704832077, -0.2516729533672333, 0.07961165904998779, 0.03948508948087692, -0.054256804287433624, -0.4969709515571594, 0.10736868530511856, -0.23830649256706238, 0.023043984547257423, -0.3772967755794525, -0.06501613557338715, -0.08285396546125412, -0.3516818583011627, 0.09699570387601852, 0.37391990423202515, 0.021067112684249878, 0.26443588733673096, 0.13772575557231903, 0.11893472075462341, -0.06223202869296074, 0.5510036945343018, 0.3230522871017456, 0.19678904116153717, 0.07076892256736755, 0.26540490984916687, -0.04129711538553238, -0.04539269953966141, 0.00428174389526248, -0.2698698341846466, 0.24632789194583893, 0.10671175271272659, 0.2557312250137329, -0.13536185026168823, -0.39718320965766907, 0.14744357764720917, 0.2378186285495758, -0.044764887541532516, -0.13193389773368835, 0.43079686164855957, -0.2377205640077591, 0.1725669503211975, -0.0958561971783638, 0.2664754390716553, -0.23895560204982758, -0.3424355685710907, -0.2415786236524582, 0.03908858448266983, -0.3046312630176544, -0.10791657865047455, 0.18163208663463593, 0.24118414521217346, 0.13052569329738617, -0.04140634462237358, 0.46605461835861206, -0.22269940376281738, 0.28041020035743713, -0.23020534217357635, 0.060321513563394547, -0.018825996667146683, -0.11991806328296661, 0.023840149864554405, 0.5161588191986084, -0.6103901267051697, 0.015124589204788208, -0.11231734603643417, -0.2561805248260498, -0.25882869958877563, 0.3433954417705536, 0.2879830598831177, -0.2528558373451233, -0.3133339285850525, -0.4201461970806122, 0.20511528849601746, 0.06030761078000069, 0.052152473479509354, -0.0012083500623703003, -0.0462266281247139, -0.19703295826911926, -0.2614491581916809, 0.37412458658218384, 0.32026436924934387, -0.10777181386947632, -0.10515973716974258, 0.13582837581634521, -0.17130237817764282, 0.08587569743394852, -0.25134170055389404, 0.08049025386571884, 0.2804746925830841, 0.1020599901676178, -0.06132528558373451, 0.29271388053894043, -0.35796108841896057, -0.546943724155426, -0.08624991774559021, 0.05794547498226166, -0.25991350412368774, 0.006202004849910736, -0.11060533672571182, 0.5220204591751099, 0.015824174508452415, -0.015436939895153046, -0.031289707869291306, 0.11832042038440704, -0.13746029138565063, -0.2333330512046814, -0.4542907178401947, -0.03327776491641998, 0.0685940831899643, 0.5740551352500916, -0.01876281201839447, 0.23645883798599243, 0.3137112259864807, 0.2896058261394501, 0.007505353540182114, 0.03063333034515381, 0.13107672333717346, 0.5953816175460815, -0.17881114780902863, 0.28881406784057617, -0.43827715516090393, 0.09409821033477783, 0.15951529145240784, 0.08323068916797638, 0.07360526919364929, 0.0023763924837112427, -0.20658637583255768, -0.5189376473426819, 0.012811383232474327, -0.22699107229709625, 0.024093881249427795, 0.23674079775810242, 0.14326177537441254, -0.07485930621623993, 0.17021293938159943, -0.2773275077342987, -0.06760234385728836, -0.19730833172798157, 0.2919345498085022, 0.11748342216014862, 0.24138714373111725, -0.01571001298725605, -0.3451892137527466, 0.21644309163093567, 0.31110188364982605, 0.2949584126472473, -0.08796314895153046, -0.15174975991249084, 0.4523433446884155, 0.30431583523750305, 0.1105455756187439, -0.006672460585832596, 0.2907358705997467, 0.07792738080024719, -0.28485822677612305, -0.08227460086345673, 0.482795387506485, 0.012369628064334393, -0.07329898327589035, 0.07585413008928299, 0.3865858316421509, 0.03240619972348213, 0.16095542907714844, 0.05662256479263306, 0.20907370746135712, 0.014532877132296562, -0.044533710926771164, -0.11158818006515503, -0.2812254726886749, -0.10297282040119171, -0.29053226113319397, -0.14138375222682953, -0.2448558360338211, 0.08985283970832825, 0.07048459351062775, 0.22967654466629028, 0.19715119898319244, 0.10576608777046204, 0.008490927517414093, -0.14689308404922485, 0.04891039431095123, -0.18740996718406677, 0.2557056248188019, 0.2897593379020691, 0.13843068480491638, 0.044439852237701416, 0.07407855242490768, 0.062013909220695496, 0.012312376871705055, 0.1836160123348236, 0.14696426689624786, -0.34067535400390625, 0.2635623514652252, 0.07565988600254059, 0.08846570551395416, -0.19977307319641113, 0.027521591633558273, -0.03636348992586136, 0.3163973391056061, -0.07552441954612732, 0.12377109378576279, -0.09361131489276886, 0.19459539651870728, -0.07556727528572083, -0.22896872460842133, -0.03971942141652107, -0.20197224617004395, -0.009411554783582687, -0.10073298215866089, 0.15016578137874603, 0.4106098711490631, 0.023232508450746536, 0.2186746746301651, 0.023260923102498055, -0.1518409699201584, 0.15621863305568695, -0.13698461651802063, 0.029516365379095078, 0.06136037036776543, -0.09982430934906006, -0.23530614376068115, 0.33049479126930237, -0.1720777451992035, -0.09266886115074158, -0.19073322415351868, -0.3452546000480652, 0.09452679753303528, 0.05519510805606842, 0.30438587069511414, 0.17259573936462402, -0.19307993352413177, -0.050106193870306015, -0.03404024988412857, 0.3287709057331085, -0.2375618815422058, 0.06336507946252823, 0.32747089862823486, -0.11115515977144241, -0.1580810248851776, -0.03837645798921585, -0.5256829857826233, -0.034242354333400726, -0.3555922508239746, -0.04012315720319748, 0.3284461200237274, -0.022081874310970306, 0.11650773137807846, 0.33604711294174194, 0.1921476423740387, 0.14376862347126007, 0.10190621763467789, -0.2156783491373062, -0.000494491308927536, 0.4178360402584076, -0.2397293895483017, -0.40764960646629333, 0.21283122897148132, -0.0815080851316452, 0.26792383193969727, -0.009195614606142044, -0.3185969591140747, -0.4406927824020386, 0.05322614684700966, -0.09696708619594574, -0.07054506987333298, 0.14207451045513153, 0.038449376821517944, 0.07098299264907837, -0.24448157846927643, -0.1577107310295105, -0.19521254301071167, 0.02396683394908905, -0.1525549590587616, 0.2881745398044586, -0.22311240434646606, -0.09322025626897812, 0.5048218965530396, 0.8064698576927185, 0.37947532534599304, -0.19792994856834412, -0.05222100019454956, 0.060256391763687134, 0.3590916097164154, 0.14883622527122498, -0.3842606842517853, 0.15940837562084198, -0.3968273103237152, 0.1137554943561554, 0.3308047354221344, -0.04077587649226189, 0.08538535237312317, -0.0770142525434494, 0.03309245780110359, 0.06468535214662552, -0.204910546541214, -0.18933022022247314, -0.006521694362163544, 0.19076727330684662, -0.005782619118690491, 0.15850770473480225, -0.2624436616897583, -0.06777329742908478, 0.26873472332954407, 0.3583230972290039, -0.3996656835079193, 0.09755230695009232, -0.3530917763710022, 0.2276308536529541, -0.2536463737487793, 0.38319075107574463, -0.300142377614975, 0.20829707384109497, 0.15801608562469482, 0.04682621359825134, -0.08487677574157715, -0.24293844401836395, 0.162378191947937, -0.0915277972817421, 0.018394825980067253, 0.18374398350715637, 0.041609205305576324, -0.16949066519737244, -0.008795231580734253, -0.19149763882160187, 0.17589129507541656, 0.2852984666824341, 0.2649514079093933, -0.31086841225624084, 0.07978305965662003, 0.13940465450286865, 0.2556314766407013, -0.25820228457450867, 0.08319107443094254, -0.4989478886127472, -0.07269266247749329, -0.2127506136894226, 0.14501263201236725, -0.1498377025127411, 0.05753323808312416, -0.04106685519218445, 0.18806137144565582, -0.44986361265182495, -0.2235030233860016, 0.34547293186187744, -0.12852993607521057, 0.25724825263023376, -0.15351007878780365, 0.12032575905323029, -0.008211757987737656, -0.01481204479932785, 0.4275595247745514, 0.28114432096481323, -0.04101332649588585, -0.41833049058914185, -0.18000566959381104, -0.06024488806724548, 0.3975878953933716, 0.20438791811466217, -0.2897374927997589, 0.14139384031295776, -0.057130366563797, 0.28444457054138184, -0.3118411898612976, 0.23581689596176147, 0.16976742446422577, 0.11533316224813461, -0.0460013821721077, -0.29655519127845764, 0.08507449179887772, -0.14284734427928925, -0.06981004029512405, 0.1690172404050827, 0.18388670682907104, -0.024466658011078835, 0.4124066233634949, 0.12496207654476166, 1.0602535009384155, 0.24604186415672302, -0.15159109234809875, 0.30197450518608093, -0.12898413836956024, 0.10238789021968842, -0.38474035263061523, 0.17399118840694427, -0.2857702076435089, -0.29454389214515686, 0.06448029726743698, -0.05435251072049141, 0.15695136785507202, 0.014511596411466599, -0.4472409784793854, 0.12256064265966415, -0.1259528398513794, 0.08083204925060272, 0.1830911934375763, 0.200760617852211, 0.0973142609000206, -0.05579341575503349, 0.12913231551647186, 0.2571622431278229, -0.1327042430639267, -0.09203004837036133, -0.12395238876342773, 0.13302037119865417, 0.10291069746017456, -0.12032856047153473, -0.16045022010803223, 0.06953760981559753, -0.24809609353542328, 0.11792051792144775, 0.19638723134994507, -0.10513843595981598, 0.07731734216213226, 0.33698782324790955, 0.6103705763816833, 0.2923317849636078, -0.1190735399723053, 0.1135113388299942, -0.0668095126748085, -0.04866410791873932, -0.02581772208213806, -0.0811445564031601, 0.3567361533641815, -0.07245314121246338, -0.17625153064727783, 0.158407062292099, 0.13121731579303741, 0.0021975599229335785, 0.04201871156692505, -0.059767693281173706, 0.3281695246696472, -0.2919067442417145, 0.1386490911245346, 0.01430436223745346, -0.11365945637226105, -0.3486390709877014, 0.1937870979309082, 0.025978215038776398, -0.30339211225509644, 0.37346741557121277, 0.008206918835639954, -0.21211132407188416, -0.04400482401251793, 0.5273146629333496, 0.04812834411859512, -0.30483970046043396, 0.39154180884361267, -0.26562896370887756, -0.16930750012397766, -0.2985628545284271, -0.17533215880393982, -0.15141411125659943, -0.22396764159202576, 0.15471622347831726, -0.1720939725637436, 0.14069701731204987, 0.2833080291748047, 0.3459930717945099, 0.3237280249595642, -0.06174153834581375, -0.08364461362361908, -0.19934937357902527, -0.3199275732040405, 0.027767639607191086, 0.1979089379310608, 0.010565441101789474, -0.2704560160636902, 0.07055890560150146, 0.00644773431122303, 0.31643661856651306, -0.39360812306404114, 0.20271579921245575, -0.21213512122631073, 0.07175897061824799, 0.05284515768289566, -0.25638243556022644, 0.0203098114579916, -0.0435715988278389, 0.07275480777025223, 0.018847066909074783, -0.3767011761665344, -0.19129306077957153, -0.36341747641563416, 0.1428387314081192, 0.17306339740753174, 0.16460204124450684, -0.08137232065200806, 0.1350976824760437, -0.1678633838891983, -0.16531440615653992, 0.06406359374523163, 0.38934165239334106, -0.1728256195783615, 0.28321948647499084, -0.06231850013136864, 0.34970322251319885, 0.05646604299545288, -0.18076109886169434, 0.2696944773197174, 0.2693113088607788, 0.1463213860988617, 0.09004487097263336, -0.1290738731622696, -0.031611908227205276, -0.061512578278779984, 0.14197629690170288, 0.2718563675880432, 0.052500780671834946, 0.3330376446247101, -0.37865471839904785, -0.021336320787668228, -0.019542917609214783, 0.32271215319633484, 0.20839950442314148, -0.19750551879405975, -0.13913726806640625, 0.059476088732481, 0.27306297421455383, -0.3722347617149353, -0.06298601627349854, -0.1746571958065033, 0.17143075168132782, 0.11592438817024231, 0.23201826214790344, 0.3239727020263672, -0.3307374119758606, 0.21261438727378845, 0.13820618391036987, 0.2896259129047394, -0.2799563407897949, 0.5085771083831787, -0.35567009449005127, 0.07549761235713959, 0.03311731666326523, 0.29417306184768677, 0.09560991823673248, 0.24050140380859375, 0.2398034930229187, -0.1697724461555481, 0.6393951177597046, 0.1815493404865265, 0.03102804347872734, -0.1532476246356964, 0.03298622742295265, 0.2180241048336029, 0.013199210166931152, -0.06505711376667023, -0.11886178702116013, -0.08879072964191437, 0.4944632351398468, -0.17014405131340027, -0.02507014572620392, -0.18977776169776917, -0.33701130747795105, 0.03463331609964371, -0.01285634096711874, 0.0006818212568759918, -0.24974679946899414, -0.2808271646499634, -0.21346546709537506, 0.22740022838115692, -0.028343744575977325, 0.10515832155942917, -0.042112596333026886, -0.02217022329568863, -0.1650325208902359, -0.021646134555339813, 0.29681986570358276, 0.21251675486564636, -0.35414835810661316, -0.12426329404115677, 0.1371031105518341, 0.15133188664913177, -0.017260678112506866, 0.36684373021125793, 0.4245299696922302, 0.35506170988082886, -0.15838812291622162, 0.0007659238763153553, -0.09756447374820709, -0.0061907581984996796, 0.017336584627628326, 0.2649986147880554, 0.04913774132728577, -0.42257165908813477, 0.23882098495960236, 0.2324972152709961, -0.2302224487066269, -0.13204580545425415, 0.10675432533025742, -0.19569480419158936, -0.3676966726779938, 0.630598783493042, 0.19423910975456238, -0.02050592005252838, -0.1604805439710617, -0.0636262521147728, -0.5861011743545532, -0.013173975981771946, 0.3944792151451111, -0.03466957062482834, 0.1571434736251831, -0.22075660526752472, 0.12605313956737518, 0.05168335884809494, 0.1006779670715332, 0.12102578580379486, -0.03533979505300522, -0.3321741819381714, -0.05455222353339195, -0.6144713759422302, 0.2779058516025543, 0.225788414478302, 0.06755256652832031, 0.039728790521621704, 0.20720873773097992, -0.17896342277526855, 0.19788646697998047, 0.001036912202835083, 0.021848203614354134, -0.09587430953979492, -0.2136634886264801, -0.6087868213653564, 0.08250261098146439, -0.20396889746189117, 0.11713414639234543, 0.02953997626900673, -0.2681427001953125, -0.23842354118824005, -0.38228875398635864, 0.11508233100175858, 0.010572677478194237, -0.38340890407562256, 0.24273133277893066, 0.07758601754903793, 0.46921825408935547, -0.04351595789194107, 0.18496929109096527, 0.06061961501836777, -0.13339856266975403, -0.10148458182811737, -0.00004715053364634514, -0.2621167302131653, 0.3020835518836975, -0.09054294228553772, 0.4197935163974762, -0.21923969686031342, 0.049806173890829086, -0.2876794636249542, 0.17096230387687683, 0.3208829164505005, -0.5431161522865295, -0.21158286929130554, 0.35294994711875916, -0.013521883636713028, 0.1922452598810196, 0.01654164493083954, 0.3320554196834564, -0.03614620864391327, 0.538460910320282, -0.30940985679626465, -0.3373984694480896, 0.5012770891189575, -0.2783641815185547, -0.32948848605155945, -0.25595715641975403, 0.6030335426330566, 0.21517199277877808, -0.07888489961624146, -0.5270063281059265, 0.06312748044729233, 0.3534010946750641, 0.05241665244102478, -0.23064155876636505, 0.10975351929664612, -0.36949384212493896, 0.12115141749382019, -0.0920550674200058, 0.33629587292671204, -0.060912393033504486, 0.01657196320593357, 0.08527053892612457, -0.13533622026443481 ]
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.3610991835594177, 0.13121017813682556, -0.005659976974129677, -0.10268455743789673, 0.476141095161438, -0.15574371814727783, 0.1335219442844391, 0.33508622646331787, -0.06146742030978203, 0.11807044595479965, 0.06350355595350266, 0.4146692454814911, -0.08603691309690475, -0.11108043789863586, -0.08109595626592636, -0.06220850348472595, 0.13253696262836456, 0.0672769546508789, 0.32082927227020264, -0.025173768401145935, -0.2997124493122101, 0.10967729240655899, -0.21053284406661987, 0.06954139471054077, -0.24694979190826416, 0.027508676052093506, -0.0339476577937603, -0.04669470340013504, -0.4527226984500885, -0.6465781927108765, 0.2405424863100052, 0.13840606808662415, -0.03766557201743126, 0.42375609278678894, -0.00011065918079111725, -0.10289332270622253, 0.3035736680030823, -0.19604311883449554, -0.43538543581962585, -0.4215502142906189, -0.15199461579322815, -0.3628079295158386, 0.017423223704099655, -0.10628177225589752, -0.03683388605713844, -0.358927458524704, -0.0217853095382452, -0.04800849035382271, 0.23299112915992737, 0.4084695279598236, 0.24754197895526886, 0.33811891078948975, 0.05117488279938698, -0.3478779196739197, -0.13334256410598755, 0.0854816734790802, -0.045865144580602646, 0.20325325429439545, -0.06251005828380585, 0.08330675214529037, 0.09176255762577057, 0.0576004721224308, -0.2753891050815582, 0.11876042187213898, 0.13332599401474, -0.13122864067554474, -0.13275018334388733, -0.011835440993309021, 0.08341333270072937, 0.015152253210544586, 0.36504054069519043, -0.3823312222957611, -0.3735573887825012, 0.21271800994873047, 0.036606721580028534, -0.38245946168899536, 0.00914611667394638, -0.11232227087020874, -0.009331749752163887, -0.1700333058834076, 0.06643660366535187, -0.12014739215373993, -0.02059848979115486, 0.07037407159805298, -0.24727404117584229, 0.4081171154975891, -0.25061121582984924, 0.04697218909859657, 0.07983152568340302, -0.08483066409826279, -0.49818551540374756, 0.08689464628696442, -0.19842557609081268, 0.033559348434209824, -0.34008917212486267, -0.02502305619418621, -0.07630249112844467, -0.3464219272136688, 0.08133650571107864, 0.39459145069122314, 0.04874298721551895, 0.2591859996318817, 0.16996994614601135, 0.20894229412078857, -0.13018080592155457, 0.4959833323955536, 0.24207913875579834, 0.22003670036792755, 0.1657262146472931, 0.2019777148962021, -0.06615478545427322, -0.06878957152366638, -0.12876667082309723, -0.22975479066371918, 0.26028239727020264, 0.08043547719717026, 0.32827895879745483, -0.07557263970375061, -0.5133694410324097, 0.17524181306362152, 0.240090012550354, -0.060788147151470184, -0.044092707335948944, 0.3927013576030731, -0.23990678787231445, 0.15003101527690887, -0.15352599322795868, 0.26359882950782776, -0.23595355451107025, -0.36674657464027405, -0.24689865112304688, 0.017870495095849037, -0.2878100275993347, -0.12781032919883728, 0.15678080916404724, 0.19841915369033813, 0.13187307119369507, -0.0593959242105484, 0.34522873163223267, -0.17178243398666382, 0.26905784010887146, -0.20849305391311646, -0.03403725475072861, -0.0009557567536830902, -0.19240006804466248, 0.07492776215076447, 0.4489354193210602, -0.7316149473190308, -0.1049165204167366, -0.12897321581840515, -0.379210889339447, -0.2902475893497467, 0.2612968981266022, 0.27401265501976013, -0.23127977550029755, -0.362223356962204, -0.41790762543678284, 0.2116134762763977, -0.012300677597522736, 0.05433385446667671, -0.02465345710515976, -0.03732743859291077, -0.21780578792095184, -0.2653994560241699, 0.36074867844581604, 0.3120441436767578, -0.15712112188339233, -0.147086501121521, 0.046998150646686554, -0.14524735510349274, 0.04655646160244942, -0.1418341100215912, 0.08976689726114273, 0.3025032579898834, 0.003987191244959831, -0.037851687520742416, 0.37725046277046204, -0.3398386240005493, -0.4797557294368744, -0.07320959120988846, 0.015363700687885284, -0.23946894705295563, 0.02647779881954193, -0.09476639330387115, 0.5503350496292114, -0.011440025642514229, 0.014830831438302994, 0.05216643214225769, 0.11854062974452972, -0.24585482478141785, -0.19199100136756897, -0.38792508840560913, 0.0008232258260250092, 0.06642429530620575, 0.5991946458816528, 0.06908979266881943, 0.23367536067962646, 0.36487460136413574, 0.21550703048706055, 0.033559650182724, -0.035231031477451324, 0.20002427697181702, 0.6257217526435852, -0.16670040786266327, 0.2624932527542114, -0.5427996516227722, 0.08942566066980362, 0.13996532559394836, 0.13935095071792603, 0.0019265376031398773, 0.0035248324275016785, -0.14695420861244202, -0.507887065410614, 0.06686725467443466, -0.14580266177654266, 0.0626404732465744, 0.19518136978149414, 0.18135285377502441, -0.1051499992609024, 0.23513586819171906, -0.29701724648475647, -0.026201089844107628, -0.11303840577602386, 0.2730753719806671, 0.1114344447851181, 0.2101036012172699, -0.015812797471880913, -0.2850126028060913, 0.2238163948059082, 0.2779821753501892, 0.2404215931892395, -0.0966569185256958, -0.13345232605934143, 0.4079405665397644, 0.28513213992118835, 0.19623056054115295, 0.0060247741639614105, 0.3215172588825226, 0.05727573484182358, -0.3230307102203369, -0.13350319862365723, 0.4925205409526825, 0.029727429151535034, -0.07443241029977798, 0.06897997111082077, 0.3435509204864502, 0.11004920303821564, 0.10874088853597641, 0.043456435203552246, 0.27133700251579285, 0.045142024755477905, -0.05106141418218613, -0.07424093037843704, -0.25318729877471924, -0.08793333172798157, -0.22563046216964722, -0.08661527931690216, -0.18094521760940552, 0.08711716532707214, 0.0022343993186950684, 0.3021746873855591, 0.1648407280445099, 0.17356356978416443, 0.036575645208358765, -0.2439989149570465, 0.04063695669174194, -0.21936140954494476, 0.25144362449645996, 0.3448079824447632, 0.1203908771276474, 0.06287702918052673, 0.0848332867026329, -0.040202852338552475, -0.024376213550567627, 0.2261282503604889, 0.10479143261909485, -0.47934526205062866, 0.22927120327949524, 0.03511609882116318, 0.12524676322937012, -0.1896268129348755, 0.0216197669506073, 0.0023162756115198135, 0.30324745178222656, -0.11193392425775528, 0.1487012654542923, -0.18410761654376984, 0.28057292103767395, -0.035287633538246155, -0.16829869151115417, -0.03673052415251732, -0.1768307089805603, 0.03167243301868439, 0.00949045643210411, 0.17567694187164307, 0.40280961990356445, -0.015124285593628883, 0.3465355634689331, 0.05196563899517059, -0.21313850581645966, 0.13504427671432495, -0.08750876039266586, -0.039115116000175476, 0.021433230489492416, 0.009357820264995098, -0.2057681828737259, 0.2946455180644989, -0.1813664585351944, 0.01538466289639473, -0.3245880603790283, -0.37401720881462097, 0.0728435292840004, 0.07975935935974121, 0.43609121441841125, 0.18093279004096985, -0.16628919541835785, -0.02490966022014618, -0.05528413876891136, 0.33019155263900757, -0.2599104940891266, 0.059573836624622345, 0.3426211178302765, -0.08490002155303955, -0.20888127386569977, 0.011194083839654922, -0.4363768994808197, -0.013547075912356377, -0.3943406045436859, -0.057767435908317566, 0.23025034368038177, -0.11760851740837097, 0.06398851424455643, 0.22327521443367004, 0.14880841970443726, 0.16535334289073944, 0.14982670545578003, -0.1831987053155899, -0.10055509209632874, 0.508099377155304, -0.19295230507850647, -0.4019790291786194, 0.16474278271198273, -0.11327666789293289, 0.23341165482997894, 0.059760306030511856, -0.28610098361968994, -0.38200798630714417, 0.0010043885558843613, -0.00548163428902626, -0.057316191494464874, 0.14563514292240143, 0.07587546855211258, 0.029180025681853294, -0.20263035595417023, -0.17023268342018127, -0.27369698882102966, -0.004637457430362701, -0.13803133368492126, 0.25381433963775635, -0.17685136198997498, -0.14412352442741394, 0.4649416506290436, 0.8005051612854004, 0.33428552746772766, -0.28825104236602783, 0.0038194656372070312, 0.04075989872217178, 0.39071252942085266, 0.2285872995853424, -0.42756977677345276, 0.09830993413925171, -0.33242174983024597, 0.1017853319644928, 0.32152050733566284, -0.013699948787689209, 0.042791713029146194, -0.10926094651222229, -0.036605194211006165, 0.07214817404747009, -0.18942293524742126, -0.18767771124839783, -0.06595344096422195, 0.19599656760692596, 0.02041102945804596, 0.13924825191497803, -0.25425493717193604, -0.10778342932462692, 0.32258716225624084, 0.4397415518760681, -0.36929115653038025, 0.12878099083900452, -0.42562487721443176, 0.2170362025499344, -0.13802307844161987, 0.33671534061431885, -0.3182200491428375, 0.2477913647890091, 0.09714242815971375, 0.060660652816295624, -0.10705199837684631, -0.2416168451309204, 0.2020469307899475, -0.12696057558059692, -0.009119126945734024, 0.15363651514053345, 0.08839236199855804, -0.19973501563072205, 0.014281492680311203, -0.18396243453025818, 0.19717633724212646, 0.21832191944122314, 0.2564283609390259, -0.20917360484600067, 0.049379996955394745, 0.05056215450167656, 0.23965413868427277, -0.28432726860046387, 0.11723101884126663, -0.4796846807003021, -0.08155996352434158, -0.0956769585609436, 0.17436957359313965, -0.20408108830451965, 0.03130900487303734, 0.07082729786634445, 0.1279575079679489, -0.5701900124549866, -0.27516165375709534, 0.37607455253601074, -0.12288187444210052, 0.20803844928741455, -0.2716878652572632, 0.14118637144565582, 0.02557409182190895, 0.029521390795707703, 0.4906153678894043, 0.27614185214042664, -0.0685025304555893, -0.453458309173584, -0.14425432682037354, -0.0579514242708683, 0.38267824053764343, 0.1869002729654312, -0.31897106766700745, 0.14941756427288055, -0.026344019919633865, 0.2732052206993103, -0.4339577853679657, 0.2760274112224579, 0.27992239594459534, 0.15385565161705017, -0.08942870795726776, -0.2863079309463501, 0.04048306494951248, -0.04278358072042465, -0.11774370819330215, 0.13305909931659698, 0.19540399312973022, -0.04732385277748108, 0.32978206872940063, 0.12523117661476135, 1.0295541286468506, 0.24977661669254303, -0.14507430791854858, 0.20489463210105896, -0.12255572527647018, 0.17709152400493622, -0.3889912962913513, 0.14919917285442352, -0.21457621455192566, -0.34976157546043396, -0.002797793596982956, -0.07861433923244476, 0.24612662196159363, -0.08120618760585785, -0.5005120038986206, 0.14827869832515717, -0.10568641126155853, 0.12299437820911407, 0.20176814496517181, 0.1952262669801712, -0.019381260499358177, -0.021412406116724014, 0.14405936002731323, 0.22382813692092896, -0.08574268221855164, -0.0018094703555107117, -0.14568251371383667, 0.1349678635597229, 0.16078239679336548, -0.12899164855480194, -0.2532973885536194, -0.020207135006785393, -0.22260534763336182, 0.15603753924369812, 0.15565241873264313, -0.054810769855976105, 0.05388228967785835, 0.3182276487350464, 0.6783848404884338, 0.26795363426208496, -0.15293104946613312, 0.1743212789297104, -0.1608416736125946, -0.017735106870532036, -0.059067822992801666, -0.13272547721862793, 0.4723619222640991, -0.04320321977138519, -0.1407509744167328, 0.11975220590829849, 0.1525699347257614, 0.005870651453733444, -0.060046762228012085, -0.046388089656829834, 0.2235935926437378, -0.20585961639881134, 0.12115713953971863, -0.05589437484741211, -0.040783196687698364, -0.3475448191165924, 0.17860406637191772, 0.05888502299785614, -0.23608219623565674, 0.41134870052337646, 0.006655268371105194, -0.2602077126502991, -0.04359540715813637, 0.5117907524108887, -0.010094337165355682, -0.375085711479187, 0.3648057281970978, -0.374939888715744, -0.17878077924251556, -0.3353439271450043, -0.12088342010974884, -0.1823664903640747, -0.17810633778572083, 0.20703326165676117, -0.20563659071922302, 0.12818385660648346, 0.24620798230171204, 0.3060663640499115, 0.35645216703414917, -0.18280747532844543, -0.08652208000421524, -0.2616470158100128, -0.2805158495903015, 0.0718390941619873, 0.07431920617818832, -0.033288050442934036, -0.31515833735466003, 0.07527436316013336, 0.0031480565667152405, 0.3176879584789276, -0.36841505765914917, 0.3009018898010254, -0.2032575011253357, -0.004992175847291946, 0.04389332979917526, -0.15413880348205566, 0.015480836853384972, -0.08658900856971741, 0.04966619610786438, -0.05690453201532364, -0.4074099361896515, -0.16010016202926636, -0.3775685429573059, 0.15926173329353333, 0.12506239116191864, 0.19321338832378387, 0.026591237634420395, 0.06965021044015884, -0.10822442173957825, -0.14024293422698975, 0.05312475934624672, 0.4404624104499817, -0.1807347983121872, 0.2637674808502197, -0.07325011491775513, 0.3241834044456482, 0.00722353532910347, -0.16007015109062195, 0.2754853069782257, 0.24475131928920746, 0.13876722753047943, 0.15724915266036987, -0.14301864802837372, -0.020298130810260773, -0.08029332011938095, 0.20102377235889435, 0.30112341046333313, -0.048802249133586884, 0.38229891657829285, -0.3700416684150696, -0.013949966058135033, -0.0711539015173912, 0.2680601179599762, 0.3289756774902344, -0.14078354835510254, -0.07688968628644943, 0.20629554986953735, 0.2511439919471741, -0.34843581914901733, -0.08367720246315002, -0.09777115285396576, 0.1452622264623642, 0.11646415293216705, 0.19484016299247742, 0.37753501534461975, -0.2665848433971405, 0.1853555142879486, 0.054143764078617096, 0.3624923527240753, -0.23156975209712982, 0.5102022886276245, -0.29281824827194214, 0.11826322972774506, 0.062124960124492645, 0.2977152168750763, 0.14619813859462738, 0.2570763826370239, 0.37357133626937866, -0.11513269692659378, 0.7012066841125488, 0.23681211471557617, 0.04976100102066994, -0.09399474412202835, -0.024764204397797585, 0.30536454916000366, -0.03349246084690094, -0.05133943259716034, -0.10468203574419022, -0.08023390173912048, 0.47660890221595764, -0.1945393830537796, -0.04363088682293892, -0.19617898762226105, -0.27711838483810425, 0.010091420263051987, -0.10297010838985443, -0.03239664435386658, -0.26556554436683655, -0.29958921670913696, -0.2010112851858139, 0.25873836874961853, -0.006710901856422424, 0.08454017341136932, -0.058320656418800354, 0.049015890806913376, -0.1965831220149994, -0.016912825405597687, 0.2903338074684143, 0.17998993396759033, -0.3022836744785309, -0.1207767054438591, 0.062332455068826675, 0.06678717583417892, 0.04978475347161293, 0.4140072464942932, 0.46295854449272156, 0.38161346316337585, -0.2034570723772049, -0.004830840043723583, -0.18431304395198822, -0.03426669165492058, -0.01911170408129692, 0.31449583172798157, -0.005014941096305847, -0.44146549701690674, 0.2036401331424713, 0.2073155790567398, -0.19201655685901642, 0.07665844261646271, 0.016565240919589996, -0.21336860954761505, -0.46648409962654114, 0.618928074836731, 0.19905605912208557, -0.005928609520196915, -0.169319286942482, -0.13641846179962158, -0.5505836606025696, 0.03583738952875137, 0.4961477816104889, -0.04124243184924126, 0.19069650769233704, -0.21883395314216614, 0.11292363703250885, 0.16640374064445496, 0.0737086832523346, 0.23213550448417664, -0.00004170835018157959, -0.1801954209804535, -0.023599259555339813, -0.6460707783699036, 0.3164506256580353, 0.17337283492088318, 0.09061990678310394, 0.07225730270147324, 0.10771958529949188, -0.13061296939849854, 0.16960693895816803, 0.06670645624399185, 0.06262092292308807, -0.09574136883020401, -0.22456616163253784, -0.6295446157455444, 0.04244638606905937, -0.2246960550546646, 0.08606300503015518, -0.010043961927294731, -0.3156251311302185, -0.22485734522342682, -0.47366786003112793, 0.08679572492837906, 0.03833252191543579, -0.27523529529571533, 0.19720852375030518, 0.09625225514173508, 0.5623536109924316, -0.013149073347449303, 0.25778019428253174, 0.10924261063337326, -0.10065031051635742, -0.12692362070083618, 0.008061380125582218, -0.27692481875419617, 0.2525498569011688, -0.04737083986401558, 0.3885979652404785, -0.3237919807434082, -0.019034314900636673, -0.26227107644081116, 0.21907781064510345, 0.32111334800720215, -0.5104784965515137, -0.2979590892791748, 0.333965539932251, -0.07160469889640808, 0.16417434811592102, 0.09362693130970001, 0.40345293283462524, -0.08306188881397247, 0.5707312822341919, -0.301006019115448, -0.35837095975875854, 0.4811252951622009, -0.23478366434574127, -0.3535986840724945, -0.26435235142707825, 0.6121699213981628, 0.21601468324661255, -0.09469512104988098, -0.5384446382522583, 0.0012249350547790527, 0.4085337817668915, -0.019513577222824097, -0.23717086017131805, 0.16116134822368622, -0.2878206968307495, 0.10454583168029785, -0.1034153401851654, 0.32564041018486023, -0.048262014985084534, -0.06709371507167816, 0.15018363296985626, -0.11957896500825882 ]
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.35782063007354736, 0.191182941198349, -0.013056362047791481, -0.12196654081344604, 0.45912230014801025, -0.25873252749443054, 0.10235586762428284, 0.3462679088115692, -0.10472729802131653, 0.17029204964637756, 0.029267912730574608, 0.38731518387794495, -0.028606653213500977, -0.12960363924503326, -0.08967182040214539, -0.08184151351451874, 0.022336840629577637, 0.11037208884954453, 0.21084380149841309, -0.06507371366024017, -0.2887296676635742, 0.08739186823368073, -0.16319863498210907, 0.08526740968227386, -0.2492387741804123, -0.002316584810614586, -0.07602634280920029, -0.07797536998987198, -0.44051188230514526, -0.6061074137687683, 0.11860200762748718, 0.12102678418159485, -0.04798706993460655, 0.37434473633766174, -0.0001058454581652768, -0.1107485294342041, 0.30514442920684814, -0.19885335862636566, -0.40264683961868286, -0.3009612560272217, -0.1276693046092987, -0.2364954650402069, 0.10637631267309189, -0.14558131992816925, -0.1818397343158722, -0.3046256899833679, 0.025274768471717834, 0.09403233230113983, 0.2512160539627075, 0.45294344425201416, 0.305990993976593, 0.4062631130218506, 0.02301335707306862, -0.3524659276008606, -0.01999712735414505, -0.02423318475484848, -0.013146203011274338, 0.25056159496307373, -0.06467263400554657, -0.020218376070261, -0.05202760547399521, 0.06277696788311005, -0.170692577958107, 0.16239644587039948, -0.02370917797088623, -0.0873839259147644, -0.11774415522813797, -0.06952017545700073, 0.04949605464935303, -0.08126477152109146, 0.2804449200630188, -0.38291117548942566, -0.4305162727832794, 0.20862427353858948, 0.0718519315123558, -0.291750967502594, -0.008118845522403717, -0.11823667585849762, -0.011706788092851639, -0.16717655956745148, 0.07973276078701019, -0.030903536826372147, -0.04696577042341232, 0.02184656634926796, -0.277646541595459, 0.3991093039512634, -0.2167878895998001, 0.029544200748205185, 0.10194557160139084, -0.07985866069793701, -0.5395289659500122, 0.17259876430034637, -0.1630489081144333, -0.04727767035365105, -0.337248295545578, -0.05209630727767944, -0.03522070497274399, -0.3039962351322174, 0.07972452789545059, 0.26731911301612854, 0.07893302291631699, 0.3234214186668396, 0.1725984513759613, 0.2088114619255066, -0.10745447874069214, 0.517410159111023, 0.15698674321174622, 0.21095573902130127, 0.1481877863407135, 0.20847497880458832, -0.15824541449546814, 0.013210637494921684, -0.08681446313858032, -0.27737662196159363, 0.18113839626312256, 0.05041127651929855, 0.2989063858985901, -0.1296229511499405, -0.5161449909210205, 0.12122643738985062, 0.32494476437568665, 0.007468526717275381, -0.07844164222478867, 0.4600086212158203, -0.27590736746788025, 0.08376085758209229, -0.11504869163036346, 0.23349182307720184, -0.3387952148914337, -0.32300078868865967, -0.276652455329895, 0.04082288593053818, -0.37424999475479126, -0.0881018340587616, 0.20876775681972504, 0.26426073908805847, 0.18019716441631317, -0.08654795587062836, 0.34935462474823, -0.13168495893478394, 0.2586611807346344, -0.25612664222717285, -0.05172593146562576, -0.006975952535867691, -0.14306864142417908, -0.03151598572731018, 0.46880608797073364, -0.6108642816543579, -0.05669816583395004, -0.12541404366493225, -0.32613861560821533, -0.2363007515668869, 0.28846198320388794, 0.32584530115127563, -0.23715461790561676, -0.2956567704677582, -0.3317902386188507, 0.23743274807929993, 0.07263420522212982, 0.0277651809155941, -0.01760461926460266, -0.1226368248462677, -0.20254093408584595, -0.24388331174850464, 0.30089589953422546, 0.35252928733825684, -0.15875890851020813, -0.16210874915122986, 0.1584938019514084, -0.16951659321784973, 0.0624840185046196, -0.07631456851959229, 0.011552694253623486, 0.3146725296974182, 0.03824104368686676, -0.023780137300491333, 0.29550454020500183, -0.2857781946659088, -0.5236391425132751, -0.08199820667505264, -0.01549750566482544, -0.2500261068344116, -0.05300665646791458, -0.06276461482048035, 0.6092694997787476, 0.06005016714334488, -0.003825746476650238, -0.011537231504917145, 0.1557665467262268, -0.04279696196317673, -0.26753607392311096, -0.3750513792037964, -0.007950909435749054, 0.0790768712759018, 0.5792466998100281, 0.03465092182159424, 0.22446295619010925, 0.15795429050922394, 0.18562394380569458, 0.023387502878904343, 0.018966402858495712, 0.2308950275182724, 0.6588184237480164, -0.1663859486579895, 0.24704396724700928, -0.41249513626098633, 0.09872843325138092, 0.141468346118927, -0.01131630688905716, 0.09376908838748932, 0.05194120481610298, -0.1947707086801529, -0.4691924452781677, -0.018341563642024994, -0.2268984168767929, 0.011951912194490433, 0.2715170383453369, 0.13782335817813873, -0.07973705232143402, 0.20320479571819305, -0.2275073379278183, 0.031186871230602264, -0.10758267343044281, 0.2439022809267044, 0.11141380667686462, 0.20189231634140015, -0.10649076849222183, -0.30091384053230286, 0.30255216360092163, 0.22519689798355103, 0.2552269697189331, -0.026972200721502304, -0.11873600631952286, 0.40403056144714355, 0.2718546986579895, 0.12110699713230133, 0.11039633303880692, 0.23456837236881256, 0.047045230865478516, -0.31103548407554626, -0.14868976175785065, 0.43165144324302673, 0.04844886437058449, -0.05148901045322418, 0.039767444133758545, 0.4062991738319397, 0.14101506769657135, 0.04609536752104759, 0.06791128218173981, 0.16835588216781616, 0.03603779524564743, -0.11957243084907532, -0.08891245722770691, -0.19636419415473938, -0.07993711531162262, -0.15916572511196136, -0.06234048306941986, -0.1417459398508072, 0.07800033688545227, 0.08795733749866486, 0.32705438137054443, 0.248662531375885, 0.2066832184791565, 0.07692054659128189, -0.17981839179992676, -0.021240903064608574, -0.17702028155326843, 0.21614383161067963, 0.3647603392601013, 0.17005594074726105, 0.04384559765458107, 0.07633014023303986, -0.046322327107191086, -0.03780851885676384, 0.17917637526988983, 0.06531364470720291, -0.4200975000858307, 0.1537054479122162, 0.17660443484783173, 0.08900444954633713, -0.1963607668876648, 0.05855031684041023, 0.06220546364784241, 0.2806887924671173, -0.09121546149253845, 0.17623238265514374, -0.12895959615707397, 0.33347800374031067, 0.015898842364549637, -0.21815615892410278, -0.04604432359337807, -0.1709306538105011, 0.17343412339687347, 0.0025821924209594727, 0.07366208732128143, 0.3721661865711212, 0.010924387723207474, 0.3784322738647461, 0.2001810371875763, -0.211203470826149, 0.10666830837726593, -0.21197402477264404, -0.018087979406118393, 0.07605664432048798, -0.11974067986011505, -0.04212650656700134, 0.3133830428123474, -0.15654104948043823, -0.012821506708860397, -0.32368171215057373, -0.326943039894104, 0.11137445271015167, 0.014258751645684242, 0.45561137795448303, 0.13972912728786469, -0.17087362706661224, -0.14371007680892944, -0.05778355151414871, 0.33582696318626404, -0.23410442471504211, -0.004756974056363106, 0.3123633563518524, -0.12451906502246857, -0.1732463538646698, -0.12783865630626678, -0.4561178982257843, 0.0026665013283491135, -0.38195163011550903, -0.08506222069263458, 0.16466623544692993, -0.03690628707408905, 0.048037149012088776, 0.2475908398628235, 0.11481693387031555, 0.09564471244812012, 0.058798812329769135, -0.27146777510643005, -0.13219991326332092, 0.5068070888519287, -0.3097524642944336, -0.47549089789390564, 0.1518470048904419, -0.12263263016939163, 0.2845417559146881, 0.03728403151035309, -0.282193660736084, -0.5299497246742249, 0.01951279677450657, 0.028025422245264053, -0.06095694750547409, 0.08011938631534576, 0.11693274229764938, 0.023186994716525078, -0.2826240658760071, -0.1794135868549347, -0.20123440027236938, 0.13832005858421326, -0.06383546441793442, 0.2962290346622467, -0.2882060706615448, -0.14921534061431885, 0.3420611619949341, 0.812673807144165, 0.2221953123807907, -0.28426116704940796, 0.0287039652466774, -0.004637686535716057, 0.3649325370788574, 0.15451058745384216, -0.34456881880760193, 0.18045887351036072, -0.2892850935459137, 0.1449609398841858, 0.36996990442276, -0.09956958889961243, 0.025792475789785385, -0.07075316458940506, 0.09047113358974457, 0.010962288826704025, -0.2755067050457001, -0.1829293817281723, 0.0704113095998764, 0.1736818253993988, 0.02688894420862198, 0.13819187879562378, -0.2520948350429535, -0.016327615827322006, 0.2843601405620575, 0.3995746970176697, -0.2782481014728546, 0.07102271914482117, -0.2709498107433319, 0.18757808208465576, -0.16720232367515564, 0.26550430059432983, -0.30680689215660095, 0.20812590420246124, 0.10713876783847809, 0.06995563209056854, -0.06485120952129364, -0.23802772164344788, 0.23086246848106384, 0.015438061207532883, 0.04580416902899742, 0.1292305439710617, 0.01594144105911255, -0.1366560161113739, 0.0047383904457092285, -0.21756163239479065, 0.15861043334007263, 0.2181331068277359, 0.20169168710708618, -0.3195236027240753, 0.09645991772413254, 0.061758480966091156, 0.15534909069538116, -0.3420928716659546, 0.09231408685445786, -0.5545905828475952, -0.14465439319610596, -0.14314880967140198, 0.2754797637462616, -0.21475429832935333, 0.028751472011208534, -0.0732063353061676, 0.1491054892539978, -0.4761303961277008, -0.212407648563385, 0.29646041989326477, -0.005097535438835621, 0.2399255335330963, -0.2561052441596985, 0.13372427225112915, -0.034792713820934296, 0.0315450057387352, 0.4541694223880768, 0.3160789906978607, 0.0361010879278183, -0.37910225987434387, -0.05879627913236618, -0.006606994196772575, 0.2954757511615753, 0.11325854808092117, -0.21934381127357483, 0.12621448934078217, -0.0973731130361557, 0.3588210940361023, -0.2885729968547821, 0.3199593722820282, 0.21174673736095428, 0.09734489023685455, -0.022351525723934174, -0.1476556807756424, 0.05947829782962799, -0.2094188928604126, -0.09820335358381271, 0.027457688003778458, 0.18052294850349426, -0.026730215176939964, 0.34371137619018555, 0.1284797191619873, 0.9728662967681885, 0.15453442931175232, -0.16980060935020447, 0.381463885307312, -0.029946746304631233, 0.15757527947425842, -0.32144230604171753, 0.18221092224121094, -0.28425151109695435, -0.28303003311157227, 0.05903426557779312, -0.04601138457655907, 0.1815723478794098, -0.05531177669763565, -0.5791165232658386, 0.17619210481643677, -0.05466444045305252, 0.00020618736743927002, 0.21852372586727142, 0.15349426865577698, 0.05433213710784912, -0.03984715789556503, 0.06791265308856964, 0.26231735944747925, -0.18888084590435028, 0.035428255796432495, -0.10716921836137772, 0.051759831607341766, 0.08319036662578583, -0.1294439733028412, -0.07457946240901947, 0.07369982451200485, -0.2968599200248718, 0.13417112827301025, 0.09891028702259064, -0.051145464181900024, 0.014360494911670685, 0.26128312945365906, 0.5497261881828308, 0.30409860610961914, -0.12758460640907288, 0.20803140103816986, -0.10199210792779922, -0.09718537330627441, -0.07605978101491928, -0.10310661792755127, 0.40049582719802856, -0.05564359575510025, -0.22462911903858185, 0.13415667414665222, 0.10706902295351028, -0.03165712580084801, -0.043744586408138275, -0.010952554643154144, 0.22065851092338562, -0.23735380172729492, 0.06712844967842102, -0.09112808108329773, -0.16623792052268982, -0.32558736205101013, 0.20398101210594177, 0.07990443706512451, -0.23088814318180084, 0.4265979528427124, 0.1205415427684784, -0.28246596455574036, -0.05496780201792717, 0.4708360433578491, -0.022267352789640427, -0.27824971079826355, 0.35411959886550903, -0.3069101870059967, -0.18814419209957123, -0.37047094106674194, -0.30245068669319153, -0.1584451049566269, -0.24039959907531738, 0.12944570183753967, -0.10998288542032242, 0.07563847303390503, 0.3476686477661133, 0.29726940393447876, 0.29497990012168884, -0.20069441199302673, -0.07644234597682953, -0.19641387462615967, -0.3316262364387512, 0.05944938212633133, 0.13571450114250183, -0.017300594598054886, -0.19003763794898987, 0.15277525782585144, 0.027692308649420738, 0.3771696388721466, -0.43105825781822205, 0.23933999240398407, -0.30824363231658936, 0.13501489162445068, 0.05077822506427765, -0.2673179805278778, 0.01640336588025093, 0.0019297264516353607, 0.08461436629295349, 0.06955601274967194, -0.35976600646972656, -0.24047324061393738, -0.31868863105773926, 0.11501204967498779, 0.1184394359588623, 0.29526177048683167, -0.08025864511728287, 0.13467511534690857, -0.10082489252090454, -0.14178122580051422, 0.07329323887825012, 0.3997761607170105, -0.18486617505550385, 0.26001212000846863, -0.04335244372487068, 0.29430392384529114, 0.13778111338615417, -0.08416097611188889, 0.22185568511486053, 0.1979977786540985, 0.13520687818527222, 0.13585016131401062, -0.25213366746902466, -0.03493211045861244, 0.008018686436116695, 0.16392287611961365, 0.29549211263656616, 0.045041773468256, 0.3262086808681488, -0.33174997568130493, -0.04728369787335396, -0.11570762097835541, 0.2377038300037384, 0.15944167971611023, -0.1561022698879242, -0.18541622161865234, 0.16043487191200256, 0.3080505132675171, -0.3771665096282959, -0.07326056808233261, -0.16983209550380707, 0.10696888715028763, 0.21182024478912354, 0.22121763229370117, 0.2498074471950531, -0.2954521179199219, 0.23899677395820618, 0.1047467514872551, 0.3551606237888336, -0.11473353207111359, 0.3196246922016144, -0.4188718795776367, 0.04814407601952553, 0.03398710489273071, 0.32003992795944214, 0.13829433917999268, 0.24130871891975403, 0.2761479616165161, -0.1308554708957672, 0.7322459816932678, 0.20128849148750305, 0.028384096920490265, -0.10493165999650955, -0.019228026270866394, 0.19283945858478546, 0.034016892313957214, 0.015568949282169342, -0.10411947220563889, -0.125030517578125, 0.4388270378112793, -0.20569391548633575, -0.048213809728622437, -0.21447435021400452, -0.21026088297367096, 0.016707178205251694, -0.002472400199621916, -0.04328679293394089, -0.23297226428985596, -0.20160463452339172, -0.18737317621707916, 0.2655162215232849, -0.003234751522541046, 0.13056300580501556, -0.06825399398803711, 0.029005154967308044, -0.1451798379421234, -0.09511179476976395, 0.2740396559238434, 0.103544220328331, -0.2165931761264801, -0.015714524313807487, 0.05460624024271965, 0.1020379364490509, 0.02574929967522621, 0.35047101974487305, 0.3399106562137604, 0.40870264172554016, -0.2074272483587265, 0.03166751191020012, -0.17504192888736725, 0.0038702692836523056, -0.04999184235930443, 0.19952034950256348, 0.07984382659196854, -0.481278657913208, 0.2994627058506012, 0.2601357698440552, -0.23846080899238586, -0.08481067419052124, 0.021952059119939804, -0.1837267130613327, -0.3299473524093628, 0.43434998393058777, 0.26888230443000793, 0.005751781165599823, -0.17434655129909515, -0.11973882466554642, -0.6330942511558533, 0.01109453197568655, 0.36858704686164856, -0.075388602912426, 0.18844056129455566, -0.28978481888771057, 0.14854548871517181, 0.054561931639909744, 0.14471562206745148, 0.19440294802188873, 0.059115178883075714, -0.26368215680122375, -0.026903510093688965, -0.7193470597267151, 0.38402611017227173, 0.21254034340381622, 0.08737239241600037, 0.03873394429683685, 0.200440913438797, -0.18063479661941528, 0.14413781464099884, 0.05892123281955719, 0.026013804599642754, -0.05705052614212036, -0.2295215129852295, -0.6657169461250305, 0.11367073655128479, -0.354084312915802, 0.0968133881688118, 0.058734066784381866, -0.30820345878601074, -0.1885080486536026, -0.34946173429489136, 0.16559749841690063, 0.04186404496431351, -0.2623753547668457, 0.16702687740325928, 0.05142662301659584, 0.5181001424789429, -0.010691611096262932, 0.22910504043102264, 0.039909251034259796, -0.08650965988636017, -0.13308821618556976, -0.032797496765851974, -0.1995062530040741, 0.16765177249908447, -0.02121814340353012, 0.3710517883300781, -0.13064263761043549, 0.0637277364730835, -0.2664962410926819, 0.22702015936374664, 0.371146559715271, -0.46134302020072937, -0.16485309600830078, 0.32452648878097534, 0.040723107755184174, 0.1466798037290573, 0.05967408046126366, 0.37354227900505066, -0.005375508219003677, 0.5238208174705505, -0.33296263217926025, -0.30239421129226685, 0.5458356142044067, -0.3192131221294403, -0.3209407329559326, -0.2270156592130661, 0.6169533133506775, 0.20414131879806519, -0.17601114511489868, -0.5343707799911499, 0.041654057800769806, 0.3197527527809143, 0.0008438695222139359, -0.16479794681072235, 0.11021910607814789, -0.34023380279541016, 0.09092691540718079, -0.1789979636669159, 0.4063369333744049, -0.04388410598039627, 0.031648650765419006, 0.09027180075645447, -0.15809603035449982 ]
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.3739033639431, 0.23291677236557007, 0.01667897030711174, -0.15293654799461365, 0.38447970151901245, -0.22800162434577942, 0.1411171704530716, 0.3971863090991974, -0.14342205226421356, 0.11723629385232925, 0.06348045915365219, 0.3675326406955719, -0.07474152743816376, -0.04313037171959877, -0.040088754147291183, 0.01820714771747589, 0.12867367267608643, 0.05681544542312622, 0.2899593710899353, 0.047962456941604614, -0.300147145986557, 0.12943124771118164, -0.1781708151102066, -0.013768188655376434, -0.22988183796405792, 0.042828384786844254, -0.0431474894285202, -0.025548599660396576, -0.4351976811885834, -0.694692850112915, 0.259255975484848, 0.15049117803573608, -0.13314256072044373, 0.40437716245651245, -0.00011066942533943802, -0.0649239793419838, 0.298805832862854, -0.17157712578773499, -0.42540284991264343, -0.4097580909729004, -0.1907385289669037, -0.3609953820705414, 0.013852797448635101, -0.06211080774664879, 0.025859225541353226, -0.3896167278289795, -0.04137969762086868, 0.015013717114925385, 0.2358202040195465, 0.38323748111724854, 0.23949839174747467, 0.430285781621933, -0.0015948675572872162, -0.3362749218940735, -0.11227109283208847, 0.061702340841293335, -0.04736235737800598, 0.15497970581054688, -0.09622414410114288, 0.06006753444671631, -0.019401811063289642, 0.03923674672842026, -0.1868140548467636, 0.11695007979869843, 0.08505058288574219, -0.1944032609462738, -0.2114236056804657, -0.023933500051498413, 0.08878206461668015, 0.014287233352661133, 0.36678943037986755, -0.3311082422733307, -0.47136324644088745, 0.22334370017051697, 0.01248851791024208, -0.3764420747756958, 0.07646822184324265, -0.10403843969106674, -0.04252450913190842, -0.13208632171154022, 0.029937999323010445, -0.09797795116901398, -0.04546942561864853, 0.014378063380718231, -0.26442641019821167, 0.30456405878067017, -0.24605810642242432, 0.031894925981760025, 0.04659240320324898, -0.046027131378650665, -0.42972108721733093, 0.1479373723268509, -0.26552414894104004, -0.008169534616172314, -0.4187922477722168, -0.08020616322755814, -0.027651622891426086, -0.27852967381477356, 0.15152785181999207, 0.4640415906906128, 0.07942726463079453, 0.29269707202911377, 0.1231570839881897, 0.16039544343948364, -0.09036910533905029, 0.537044882774353, 0.17594194412231445, 0.1939259171485901, 0.20644772052764893, 0.2096594125032425, -0.01024109497666359, -0.02191619575023651, 0.005619687028229237, -0.2501831352710724, 0.1966063678264618, 0.038114190101623535, 0.28665870428085327, -0.10282919555902481, -0.4676415026187897, 0.1577843278646469, 0.22956237196922302, -0.03844164311885834, -0.07252463698387146, 0.33647242188453674, -0.24984650313854218, 0.21195721626281738, -0.19204144179821014, 0.21455229818820953, -0.20499984920024872, -0.37659162282943726, -0.25506699085235596, -0.06664454936981201, -0.3085414469242096, -0.04074471443891525, 0.1703774631023407, 0.19109894335269928, 0.1725946068763733, -0.054047536104917526, 0.39291560649871826, -0.1610354632139206, 0.2505146563053131, -0.17407070100307465, 0.03728674724698067, 0.07197411358356476, -0.14833098649978638, -0.024700375273823738, 0.3736085593700409, -0.6256076693534851, -0.04046420007944107, -0.20145457983016968, -0.32996511459350586, -0.2798805832862854, 0.2722155749797821, 0.2741958796977997, -0.2737758159637451, -0.27943912148475647, -0.438419371843338, 0.23551389575004578, -0.036276765167713165, 0.06338480114936829, -0.053235478699207306, -0.06616882979869843, -0.22278064489364624, -0.27176228165626526, 0.3008936047554016, 0.31672269105911255, -0.1638353168964386, -0.16712895035743713, 0.1063649132847786, -0.11237643659114838, 0.0829702839255333, -0.11654525995254517, 0.004693286027759314, 0.23914694786071777, 0.006091084331274033, -0.020557977259159088, 0.27372217178344727, -0.2885115444660187, -0.5547584891319275, -0.04088476300239563, 0.06887030601501465, -0.2400224506855011, -0.026847846806049347, -0.11889780312776566, 0.6205390691757202, -0.07055879384279251, -0.02009887993335724, 0.019523493945598602, 0.06320572644472122, -0.24615943431854248, -0.17658117413520813, -0.4268580675125122, 0.01490502618253231, 0.007715556770563126, 0.6241720914840698, 0.051690198481082916, 0.2833349108695984, 0.38630518317222595, 0.15887102484703064, 0.04762325435876846, -0.005533845163881779, 0.23080569505691528, 0.5782599449157715, -0.17438973486423492, 0.3671567142009735, -0.5228920578956604, 0.07757165282964706, 0.2116928994655609, 0.12295499444007874, 0.0056038424372673035, 0.031117767095565796, -0.15647265315055847, -0.4288710951805115, 0.05947226285934448, -0.14728106558322906, 0.042211417108774185, 0.20352329313755035, 0.18266740441322327, -0.11905699968338013, 0.22783257067203522, -0.28306424617767334, -0.005944427102804184, -0.18571598827838898, 0.26564836502075195, 0.10513941943645477, 0.2024472951889038, 0.0008279550820589066, -0.23618046939373016, 0.22150000929832458, 0.2695156931877136, 0.2052178978919983, -0.1491565704345703, -0.14762160181999207, 0.4282345175743103, 0.35341277718544006, 0.16934148967266083, 0.014656461775302887, 0.31675487756729126, 0.0962425023317337, -0.3463176488876343, -0.15195879340171814, 0.4838852286338806, -0.03579307720065117, -0.08053810894489288, 0.0886533260345459, 0.3073084354400635, 0.11587633192539215, 0.06535652279853821, 0.0912831723690033, 0.268813818693161, 0.06637983024120331, -0.04551773518323898, -0.19144541025161743, -0.2590550184249878, -0.1344326287508011, -0.2435740977525711, -0.02881779707968235, -0.22159500420093536, 0.09342627227306366, 0.0021042823791503906, 0.2694289982318878, 0.14489807188510895, 0.12678343057632446, 0.056676484644412994, -0.1779012680053711, -0.06772316992282867, -0.20786969363689423, 0.34148621559143066, 0.27810555696487427, 0.10377373546361923, 0.10547593235969543, 0.024012038484215736, -0.04262420907616615, -0.013424210250377655, 0.1805582344532013, 0.18035942316055298, -0.39098089933395386, 0.25189119577407837, 0.1336871236562729, 0.1309974491596222, -0.22399935126304626, 0.020626656711101532, 0.042993418872356415, 0.2813049554824829, -0.05070863291621208, 0.1824118047952652, -0.20472513139247894, 0.2996828258037567, -0.046254292130470276, -0.15843144059181213, -0.04367918148636818, -0.21146151423454285, 0.009242933243513107, -0.07662361860275269, 0.1495623141527176, 0.40882638096809387, -0.07326154410839081, 0.3769250810146332, 0.055399030447006226, -0.06428621709346771, 0.18479734659194946, -0.06771207600831985, 0.011781137436628342, 0.02651885896921158, -0.021111872047185898, -0.24004299938678741, 0.28692251443862915, -0.19389455020427704, -0.09860000759363174, -0.34161698818206787, -0.43839943408966064, 0.16064554452896118, 0.061447273939847946, 0.41004514694213867, 0.24106353521347046, -0.26036834716796875, -0.02239532582461834, 0.04118581861257553, 0.1884102076292038, -0.2412293255329132, -0.030234578996896744, 0.308408260345459, -0.13504217565059662, -0.1841021031141281, -0.04380641505122185, -0.4547440707683563, 0.02122940681874752, -0.3149999976158142, -0.03274993598461151, 0.2424473613500595, -0.0739821195602417, 0.0971798524260521, 0.19060783088207245, 0.13459813594818115, 0.13415679335594177, 0.04857901483774185, -0.20818321406841278, -0.10738468915224075, 0.41989022493362427, -0.18745674192905426, -0.41460689902305603, 0.1693689227104187, -0.09417024999856949, 0.3023671507835388, 0.12078160792589188, -0.26171770691871643, -0.34861722588539124, 0.022356782108545303, 0.08418390154838562, -0.11616156995296478, 0.0005429927259683609, 0.05138884112238884, 0.06159898266196251, -0.19835463166236877, -0.22021758556365967, -0.19363614916801453, -0.011983193457126617, -0.12114211171865463, 0.19301196932792664, -0.16967207193374634, -0.18349701166152954, 0.5552968978881836, 0.8563186526298523, 0.31076592206954956, -0.29417192935943604, -0.019800812005996704, 0.0878218486905098, 0.3871370851993561, 0.22705015540122986, -0.39907634258270264, 0.16338439285755157, -0.41350385546684265, 0.13651296496391296, 0.3416532278060913, -0.0066139791160821915, -0.0442049503326416, -0.044478435069322586, 0.05162132903933525, 0.09120183438062668, -0.1697896122932434, -0.2644243836402893, -0.028346344828605652, 0.22784754633903503, 0.05335019901394844, 0.20369726419448853, -0.241515651345253, -0.08095860481262207, 0.323799192905426, 0.36133748292922974, -0.3245864808559418, 0.11943309009075165, -0.38513773679733276, 0.29871854186058044, -0.27201536297798157, 0.25522539019584656, -0.31513649225234985, 0.30914774537086487, 0.15744934976100922, 0.09313752502202988, -0.17664740979671478, -0.2636003792285919, 0.23349639773368835, -0.09274543076753616, 0.04699725657701492, 0.16765230894088745, 0.07686034590005875, -0.17891345918178558, 0.029406871646642685, -0.20392660796642303, 0.18487666547298431, 0.3138549327850342, 0.32910633087158203, -0.16196906566619873, 0.028454236686229706, 0.09725580364465714, 0.28156810998916626, -0.2345646321773529, 0.11914221197366714, -0.4278562366962433, -0.07475919276475906, -0.013068553060293198, 0.07158496975898743, -0.20456905663013458, -0.02279878780245781, -0.0277726948261261, 0.11811572313308716, -0.5347540974617004, -0.21618345379829407, 0.3146796226501465, -0.12977497279644012, 0.17525550723075867, -0.2964366376399994, 0.16688773036003113, 0.054506924003362656, 0.047774817794561386, 0.5340452194213867, 0.2614956796169281, -0.01479523628950119, -0.474016010761261, -0.07516853511333466, 0.010357032530009747, 0.2893353998661041, 0.18118566274642944, -0.35565000772476196, 0.1588563472032547, -0.025661330670118332, 0.1911872923374176, -0.3821747899055481, 0.30401331186294556, 0.2679184675216675, 0.12594468891620636, -0.07865673303604126, -0.2530200779438019, 0.07033178210258484, -0.07846306264400482, -0.10017029941082001, 0.12683850526809692, 0.17226864397525787, -0.05302751064300537, 0.37450575828552246, 0.18050824105739594, 0.9338228702545166, 0.30483531951904297, -0.1176406592130661, 0.3112780451774597, -0.0014505460858345032, 0.1493898183107376, -0.33858126401901245, 0.16848032176494598, -0.1839238852262497, -0.3425356447696686, -0.015901297330856323, -0.07496923208236694, 0.21208080649375916, -0.14065317809581757, -0.4320201575756073, 0.1974208950996399, -0.03370600938796997, 0.14611448347568512, 0.21029582619667053, 0.14581088721752167, -0.019055770710110664, -0.06464698910713196, 0.27062714099884033, 0.22793138027191162, -0.09376528859138489, -0.04168372228741646, -0.15038400888442993, 0.1288323700428009, 0.18883658945560455, -0.04891573637723923, -0.3287366032600403, 0.03327341377735138, -0.21818192303180695, 0.14218652248382568, 0.17759746313095093, -0.028590906411409378, 0.08034034073352814, 0.2912414073944092, 0.6542520523071289, 0.27082061767578125, -0.20001786947250366, 0.18030549585819244, -0.15438759326934814, -0.04237290099263191, 0.007091748062521219, -0.09034814685583115, 0.44477811455726624, -0.04963940382003784, -0.10261214524507523, 0.038673464208841324, 0.10571005195379257, 0.05189385265111923, -0.02284795045852661, -0.03385563939809799, 0.23439733684062958, -0.2121320366859436, 0.1545853614807129, -0.04286937415599823, -0.03337601199746132, -0.4309333860874176, 0.16954979300498962, 0.017225269228219986, -0.2008114904165268, 0.36043715476989746, -0.028338242322206497, -0.2871696949005127, -0.02289411798119545, 0.5290213823318481, 0.03313276171684265, -0.33158591389656067, 0.36709609627723694, -0.3462989926338196, -0.17926891148090363, -0.3073846697807312, -0.12290041148662567, -0.1924339085817337, -0.2215670645236969, 0.19326798617839813, -0.3249642550945282, 0.16019080579280853, 0.24085411429405212, 0.3278459310531616, 0.35616976022720337, -0.20408916473388672, -0.13938069343566895, -0.23085400462150574, -0.2793041467666626, 0.0768875852227211, 0.07032107561826706, -0.0398709736764431, -0.3134399354457855, 0.028353562578558922, -0.0936170220375061, 0.3216763138771057, -0.3566915988922119, 0.2944237291812897, -0.20567801594734192, 0.00567583367228508, -0.015022289007902145, -0.18548724055290222, 0.07324862480163574, -0.10464751720428467, 0.02439652942121029, -0.04046810418367386, -0.41053223609924316, -0.14623507857322693, -0.3995329737663269, 0.14057913422584534, 0.13788899779319763, 0.158164843916893, 0.012812548317015171, 0.1462971419095993, -0.1491270661354065, -0.1367693543434143, 0.1455410271883011, 0.4514704644680023, -0.13997747004032135, 0.24650944769382477, -0.04638802632689476, 0.30479341745376587, 0.10065288841724396, -0.11715598404407501, 0.3308505117893219, 0.25185322761535645, 0.11039295047521591, 0.23837636411190033, -0.10554255545139313, -0.03541770577430725, -0.12131653726100922, 0.21680107712745667, 0.2368115931749344, -0.005042780190706253, 0.3941177427768707, -0.4078190326690674, -0.0167483389377594, -0.11769963055849075, 0.27646300196647644, 0.23746877908706665, -0.10019060224294662, -0.13474398851394653, 0.2228144109249115, 0.2545299232006073, -0.350598007440567, -0.14776095747947693, -0.12717193365097046, 0.23859909176826477, 0.1553148478269577, 0.15614405274391174, 0.4248203933238983, -0.33918496966362, 0.19033655524253845, 0.071599081158638, 0.3079228401184082, -0.2116217315196991, 0.5018624663352966, -0.27499231696128845, 0.14147426187992096, 0.08512546122074127, 0.33916595578193665, 0.10292814671993256, 0.326524943113327, 0.3486458659172058, -0.08190105110406876, 0.7880043983459473, 0.2494940459728241, 0.04957939684391022, -0.10536421090364456, -0.11261072754859924, 0.2925437390804291, -0.03455893695354462, -0.07389137148857117, -0.022115275263786316, -0.07174479961395264, 0.4817580282688141, -0.19897255301475525, -0.09670758247375488, -0.23077918589115143, -0.280845582485199, -0.024112634360790253, -0.12834610044956207, -0.07722994685173035, -0.2852729856967926, -0.211990624666214, -0.13456979393959045, 0.21325410902500153, 0.011576361954212189, 0.08263356983661652, -0.08195967972278595, -0.016618020832538605, -0.13657629489898682, -0.048681654036045074, 0.2407120168209076, 0.1257006824016571, -0.28416258096694946, -0.13575905561447144, 0.03128577023744583, 0.034406404942274094, -0.004452496767044067, 0.4487255811691284, 0.40193837881088257, 0.3772948980331421, -0.1418694257736206, -0.06860114634037018, -0.08890959620475769, -0.00594082847237587, -0.03372281789779663, 0.3227182924747467, -0.029982715845108032, -0.4964967370033264, 0.27227887511253357, 0.17689268290996552, -0.17944104969501495, -0.007889453321695328, 0.01965026929974556, -0.20826824009418488, -0.47139325737953186, 0.6122550964355469, 0.18008658289909363, -0.010726787149906158, -0.12044382095336914, -0.0348973348736763, -0.49720922112464905, 0.03671644255518913, 0.4608001112937927, 0.0038619597908109426, 0.1777038276195526, -0.19131740927696228, 0.11931484937667847, 0.1058957576751709, 0.13533325493335724, 0.26018863916397095, -0.10213697701692581, -0.1443094164133072, -0.05439449101686478, -0.5523698329925537, 0.3112117052078247, 0.14016714692115784, 0.1420591175556183, 0.11000588536262512, 0.2123396247625351, -0.15312740206718445, 0.1321936547756195, 0.014148786664009094, 0.023228667676448822, -0.038346704095602036, -0.30302098393440247, -0.6422172784805298, 0.121193066239357, -0.24294961988925934, 0.04416244477033615, -0.05084645375609398, -0.3419215679168701, -0.21085922420024872, -0.4180007576942444, 0.06304511427879333, 0.06828268617391586, -0.28586384654045105, 0.20873112976551056, -0.037283800542354584, 0.528123676776886, 0.0377628467977047, 0.13170163333415985, 0.067262664437294, -0.19746100902557373, -0.20576515793800354, -0.09055653214454651, -0.256233811378479, 0.19572383165359497, -0.17163001000881195, 0.35625895857810974, -0.26182475686073303, 0.030298825353384018, -0.2557794749736786, 0.24570925533771515, 0.35736334323883057, -0.4469640552997589, -0.33577874302864075, 0.3720017671585083, -0.08473989367485046, 0.13952063024044037, 0.11678662896156311, 0.39231324195861816, -0.12374486029148102, 0.5088223814964294, -0.2650349736213684, -0.2870720326900482, 0.5064148902893066, -0.3036540150642395, -0.31157729029655457, -0.3253054916858673, 0.6123323440551758, 0.27774640917778015, -0.13612648844718933, -0.5220629572868347, -0.021741308271884918, 0.3835979104042053, -0.012615911662578583, -0.20130227506160736, 0.11898991465568542, -0.3484029173851013, 0.12072800099849701, -0.08717753738164902, 0.37356096506118774, -0.06161350756883621, -0.10872924327850342, 0.1898052841424942, -0.07804827392101288 ]
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.6230255961418152, 0.06841954588890076, -0.22410674393177032, -0.0011123716831207275, -0.06539244949817657, -0.06257510185241699, 0.10251690447330475, 0.22159606218338013, 0.1189829558134079, 0.32362890243530273, 0.22695979475975037, 0.21790234744548798, -0.23825131356716156, 0.40096014738082886, 0.08673635870218277, -0.08553813397884369, -0.003910832107067108, 0.025760434567928314, -0.31325066089630127, -0.059319570660591125, -0.2509879469871521, -0.006576310843229294, 0.05099351704120636, -0.10665331780910492, -0.17335674166679382, -0.2124449610710144, -0.2157185971736908, 0.049520522356033325, -0.1937633752822876, -0.11330734938383102, -0.14847473800182343, 0.09854760766029358, -0.031033404171466827, 0.17623911798000336, -0.00009505890920991078, 0.030341729521751404, 0.08736953139305115, -0.0173286572098732, -0.14955860376358032, 0.032292984426021576, -0.1998687982559204, -0.23572714626789093, -0.19138388335704803, -0.09952282905578613, -0.24828818440437317, -0.30550336837768555, 0.17539352178573608, -0.16043049097061157, 0.16012686491012573, 0.17161251604557037, 0.4217909574508667, 0.09717892855405807, -0.005737867206335068, -0.08854208886623383, 0.14353494346141815, 0.3612349033355713, -0.17926113307476044, -0.1117318868637085, 0.2214244157075882, 0.05676601827144623, -0.11900746077299118, 0.38451844453811646, -0.1306178718805313, -0.06696359813213348, 0.15378406643867493, -0.0036898627877235413, 0.45314836502075195, -0.06923758238554001, 0.050235435366630554, 0.29140809178352356, 0.3696751296520233, -0.029720626771450043, 0.04310355335474014, -0.24197882413864136, -0.056937325745821, -0.16335853934288025, 0.07827218621969223, 0.30491313338279724, 0.019215203821659088, 0.06707070767879486, -0.354078084230423, -0.2523003816604614, -0.1428038775920868, 0.27318429946899414, 0.00995759665966034, 0.1090831533074379, -0.263685941696167, -0.13679835200309753, -0.057240378111600876, -0.011547364294528961, -0.0016432590782642365, -0.04196779429912567, -0.04036273434758186, -0.1071384847164154, 0.1589350700378418, -0.2846081852912903, 0.2675791084766388, 0.3740524351596832, 0.24397984147071838, 0.07907204329967499, 0.2171354740858078, -0.015632230788469315, 0.14606676995754242, 0.09362290054559708, 0.030221257358789444, -0.005209789145737886, -0.254131942987442, -0.06912372261285782, 0.0850655734539032, 0.010791942477226257, -0.03609650954604149, -0.01566454768180847, 0.08075778186321259, -0.06133585423231125, -0.38944968581199646, 0.03956630825996399, 0.19979523122310638, -0.14499935507774353, -0.23508791625499725, -0.16581156849861145, -0.09544388949871063, 0.06733290106058121, 0.21278029680252075, 0.19052523374557495, 0.1502639502286911, -0.22857415676116943, -0.06287609040737152, 0.13285835087299347, 0.08770766109228134, 0.007804731838405132, -0.17721985280513763, -0.02245798334479332, -0.19228903949260712, 0.2782239019870758, 0.17238597571849823, 0.10652691125869751, 0.346250057220459, -0.22749607264995575, 0.1222015917301178, 0.10394816100597382, 0.22246375679969788, 0.2691271901130676, 0.3936694264411926, 0.0028172247111797333, -0.1251034438610077, -0.30853742361068726, -0.0050262100994586945, 0.07256397604942322, -0.3081746995449066, -0.1603616178035736, -0.10340914875268936, -0.11741103231906891, -0.6414920687675476, 0.3258068561553955, 0.016704808920621872, -0.13063286244869232, 0.3455609679222107, 0.4194287061691284, -0.08072421699762344, 0.10153649747371674, 0.1099148690700531, 0.5468339920043945, -0.2805464565753937, -0.1869438886642456, 0.07105478644371033, 0.3174803555011749, 0.21712961792945862, -0.17847758531570435, -0.09482990205287933, 0.05875714495778084, -0.13998159766197205, -0.21577313542366028, -0.024505725130438805, 0.35365840792655945, -0.21405242383480072, -0.17698317766189575, 0.02517278492450714, -0.09918515384197235, -0.1977204829454422, 0.02493651770055294, -0.48239898681640625, -0.3185206949710846, 0.1451169103384018, 0.044816434383392334, 0.2196042537689209, -0.023454654961824417, -0.1469702571630478, 0.29883843660354614, -0.17106033861637115, 0.09042812883853912, -0.2635376751422882, -0.38525310158729553, -0.07476760447025299, 0.23444516956806183, -0.011259838938713074, 0.06741460412740707, 0.22076943516731262, 0.17872364819049835, 0.02398020401597023, -0.1878059059381485, 0.22587992250919342, 0.27105993032455444, 0.19628293812274933, -0.06875546276569366, -0.35884717106819153, -0.18369370698928833, -0.21544149518013, -0.26967164874076843, -0.3207305073738098, -0.14585842192173004, 0.09782645106315613, -0.17330171167850494, 0.0119496900588274, -0.143683522939682, -0.14882774651050568, -0.034343671053647995, 0.4483797550201416, 0.12323509156703949, 0.1259395182132721, 0.012179188430309296, 0.19935564696788788, -0.14707858860492706, -0.00026729702949523926, -0.07556766271591187, 0.11664873361587524, 0.2808679938316345, -0.1394076943397522, -0.02295491099357605, 0.12396658957004547, 0.3052722215652466, 0.05437581613659859, -0.07557636499404907, 0.25109854340553284, 0.2471223771572113, -0.449746310710907, 0.13956555724143982, 0.2692776322364807, 0.6203425526618958, 0.06878910958766937, -0.2716173827648163, 0.2816951274871826, 0.08529289066791534, -0.17504946887493134, 0.0361088290810585, -0.337624192237854, 0.18358835577964783, 0.22950895130634308, 0.02096986025571823, -0.17513394355773926, 0.3101274371147156, -0.07075367122888565, -0.2436034083366394, -0.12676820158958435, -0.3893858790397644, 0.08520433306694031, 0.11602085828781128, 0.024043738842010498, -0.09409988671541214, 0.0616934597492218, 0.20429274439811707, 0.16076643764972687, 0.041861604899168015, 0.3469277620315552, 0.07884277403354645, -0.30819469690322876, 0.03826534003019333, 0.1487523764371872, -0.09597110748291016, 0.08080386370420456, 0.34390226006507874, 0.2279253602027893, 0.009723594412207603, 0.0924164205789566, -0.07741688191890717, 0.16145065426826477, 0.17025086283683777, -0.08187908679246902, 0.12551696598529816, 0.09866903722286224, 0.07064718753099442, -0.6637941002845764, 0.03666123375296593, 0.0985410287976265, -0.051181256771087646, 0.08997628092765808, -0.17141123116016388, -0.03475281968712807, -0.40591034293174744, -0.09672164916992188, -0.08047307282686234, -0.017809633165597916, -0.23739777505397797, 0.2716463804244995, 0.02160472981631756, -0.23880000412464142, 0.2244894653558731, 0.15549449622631073, 0.314876914024353, -0.16438530385494232, 0.02315382845699787, -0.06392878293991089, -0.30155566334724426, 0.039095278829336166, 0.37224099040031433, 0.1592792123556137, 0.07966605573892593, 0.5405756235122681, -0.22456268966197968, 0.5198447108268738, -0.5102861523628235, -0.6112649440765381, 0.09571127593517303, 0.15149132907390594, -0.2901201844215393, 0.22866815328598022, 0.14497971534729004, 0.11102470755577087, -0.19334234297275543, 0.03160374239087105, -0.03013060800731182, -0.04878602549433708, -0.24932171404361725, -0.22771529853343964, -0.18052421510219574, -0.24563807249069214, 0.11131921410560608, -0.012078776955604553, -0.5066971182823181, 0.26481691002845764, 0.24031667411327362, 0.03549249470233917, 0.10746868699789047, 0.11581802368164062, 0.20381200313568115, -0.6048645973205566, 0.2234700620174408, -0.11039577424526215, -0.3730158805847168, 0.04821614921092987, -0.39680323004722595, -0.09386540949344635, -0.15087290108203888, -0.15971572697162628, -0.021546687930822372, -0.06437753885984421, -0.366130530834198, -0.25793173909187317, -0.184982031583786, 0.2595289349555969, 0.31918051838874817, 0.06714840978384018, 0.4511183798313141, 0.312419593334198, -0.2581285834312439, -0.03135249391198158, -0.015291559509932995, -0.015202470123767853, 0.31276780366897583, 0.3218162953853607, -0.11031999439001083, -0.10758879035711288, -0.031280212104320526, 0.2447686791419983, 0.2708538770675659, -0.2615624666213989, 0.39587217569351196, -0.09305953979492188, 0.5226424932479858, -0.008901417255401611, -0.18385134637355804, 0.39408013224601746, 0.03006771206855774, 0.09975729882717133, 0.4693875312805176, 0.28890228271484375, -0.059718549251556396, -0.062361106276512146, 0.025096993893384933, -0.32605883479118347, -0.2032308131456375, -0.05652637034654617, 0.00137995183467865, 0.1906844824552536, -0.07348047941923141, -0.18453112244606018, -0.31877103447914124, -0.12138128280639648, 0.4813638925552368, 0.14176689088344574, 0.11071234941482544, -0.19067783653736115, 0.033067453652620316, 0.2859845757484436, -0.4778062701225281, 0.16881659626960754, -0.03840848430991173, -0.6828495264053345, -0.5322356820106506, -0.023267529904842377, -0.1445307582616806, 0.045076072216033936, 0.18625995516777039, -0.15287473797798157, -0.08856837451457977, -0.1438148319721222, 0.16355912387371063, 0.08436879515647888, 0.15853559970855713, -0.07496975362300873, 0.08546487987041473, 0.21126696467399597, 0.4735490381717682, -0.27382490038871765, 0.005297873169183731, 0.26577499508857727, 0.21488428115844727, -0.07576585561037064, 0.28711241483688354, 0.1648842990398407, -0.31828585267066956, -0.20952771604061127, 0.2221401035785675, -0.01556345634162426, 0.12231966108083725, 0.4529212415218353, -0.18209435045719147, 0.11764153093099594, 0.0006021633744239807, -0.0711594969034195, -0.07669781893491745, 0.33091238141059875, 0.27599647641181946, 0.0682697594165802, 0.14076673984527588, 0.349526047706604, 0.1246495321393013, 0.41008177399635315, -0.3319396376609802, 0.08672712743282318, 0.15389704704284668, -0.30696558952331543, 0.2242824137210846, 0.29571813344955444, 0.16073928773403168, 0.007514454424381256, -0.048859499394893646, 0.07380841672420502, -0.5192337036132812, 0.1320592612028122, 0.06013686954975128, 0.22935961186885834, 0.0801771953701973, 0.1553262621164322, 0.3070637881755829, 0.05838586017489433, -0.22211940586566925, 0.2683370113372803, -0.027529723942279816, -0.2147565335035324, 0.20575480163097382, 0.21472764015197754, 0.7943812608718872, -0.027902856469154358, 0.05859822407364845, 0.35629940032958984, -0.1825181245803833, -0.1278184950351715, 0.054861970245838165, -0.143057182431221, 0.02842653915286064, -0.28345608711242676, -0.025511838495731354, 0.010905366390943527, -0.015910610556602478, 0.2491561770439148, -0.3056866228580475, -0.19125057756900787, -0.022816911339759827, 0.1667381376028061, -0.08222652971744537, 0.1199423223733902, 0.17800283432006836, -0.2580583691596985, 0.04198013246059418, 0.3108378052711487, 0.1387300193309784, 0.26889052987098694, -0.031055385246872902, -0.19040480256080627, 0.31268489360809326, -0.14185963571071625, -0.2654377222061157, -0.08259078115224838, -0.02975422702729702, -0.22430792450904846, -0.11229757964611053, 0.014910675585269928, -0.07593205571174622, 0.08867011964321136, 0.36247122287750244, -0.08031778037548065, -0.3157360553741455, 0.20204751193523407, 0.10630276054143906, 0.005107400938868523, -0.13764500617980957, 0.0983407273888588, -0.13805168867111206, -0.12625616788864136, 0.16308310627937317, 0.007468540221452713, -0.04620467126369476, -0.12495274096727371, -0.416593462228775, -0.11330635845661163, 0.2288375347852707, -0.005353986751288176, 0.5253320336341858, 0.053219929337501526, -0.06984248012304306, -0.2707275152206421, 0.28430989384651184, 0.16143901646137238, 0.13584427535533905, 0.049136627465486526, 0.28378093242645264, -0.12204528599977493, -0.16720710694789886, 0.10385672748088837, 0.025981511920690536, 0.14190059900283813, -0.1899147927761078, -0.0006585456430912018, -0.21388854086399078, -0.417434424161911, 0.033238932490348816, -0.0608515590429306, -0.04575008898973465, 0.1162152886390686, 0.11646102368831635, -0.22965672612190247, 0.1569872796535492, 0.3926704227924347, 0.1478807032108307, -0.029228024184703827, -0.08632928133010864, -0.1877082735300064, -0.3688642978668213, 0.21214352548122406, -0.12604188919067383, 0.4057595133781433, 0.006010342389345169, 0.018743300810456276, 0.13539455831050873, 0.03412766754627228, -0.5436128377914429, -0.025734994560480118, -0.2212558090686798, 0.09510518610477448, 0.1314079314470291, -0.21493417024612427, 0.23415769636631012, 0.030850764364004135, 0.20144499838352203, -0.28280359506607056, -0.2702728509902954, -0.3398700952529907, -0.1597582846879959, 0.0696217268705368, -0.10337270051240921, 0.17810720205307007, 0.3261268436908722, 0.06301272660493851, -0.14805951714515686, -0.12497006356716156, 0.012969978153705597, -0.13507020473480225, 0.008385982364416122, -0.19608615338802338, 0.03502369299530983, -0.026425965130329132, -0.061191245913505554, -0.017375223338603973, -0.023532137274742126, 0.042420778423547745, -0.1137644425034523, 0.17664958536624908, -0.13867785036563873, -0.12076219171285629, 0.1893797665834427, 0.21292582154273987, 0.35058027505874634, -0.2509458661079407, 0.27591365575790405, 0.2776052951812744, -0.13960736989974976, 0.36503949761390686, 0.00730396993458271, -0.40455329418182373, -0.07957723736763, 0.1772402822971344, 0.03237410634756088, 0.4277227222919464, -0.40866565704345703, 0.011717508547008038, 0.1282578557729721, -0.1319141834974289, 0.41781559586524963, 0.162330761551857, 0.26327794790267944, -0.1911293864250183, 0.08693715929985046, -0.01088786218315363, -0.08888590335845947, 0.030226971954107285, -0.004423631355166435, 0.2714771628379822, -0.007616538554430008, -0.14239560067653656, 0.37763625383377075, 0.18214738368988037, 0.12866449356079102, 0.08054739236831665, 0.06780582666397095, 0.3705396354198456, -0.13802647590637207, 0.027595017105340958, 0.15276814997196198, 0.0977482795715332, 0.525134265422821, 0.05188523232936859, 0.21397776901721954, 0.06605792790651321, 0.08544370532035828, 0.20816291868686676, -0.08041943609714508, -0.05285188555717468, -0.3378165364265442, 0.4252863824367523, -0.008062325417995453, -0.12043023109436035, -0.17327190935611725, -0.1280670464038849, -0.015262249857187271, -0.1200762689113617, 0.24464422464370728, -0.2435305267572403, 0.19860783219337463, -0.23776383697986603, 0.23745299875736237, -0.023641178384423256, -0.04735978692770004, 0.015829745680093765, 0.2397962510585785, -0.19805216789245605, 0.22106678783893585, -0.25602221488952637, -0.13757362961769104, 0.06057049706578255, 0.49359700083732605, 0.13893607258796692, -0.11531543731689453, -0.14233700931072235, 0.026999417692422867, -0.10330969095230103, -0.12550589442253113, -0.329721063375473, 0.02404230833053589, 0.021497569978237152, -0.1325964778661728, 0.4272668659687042, 0.26876741647720337, -0.3066297471523285, -0.032082583755254745, -0.15068531036376953, -0.024407051503658295, 0.2835613787174225, -0.2538001239299774, -0.005619984120130539, -0.052540283650159836, -0.21529531478881836, -0.09217415004968643, -0.21545100212097168, -0.2862643003463745, -0.045548733323812485, -0.20453216135501862, 0.06575890630483627, -0.03758176043629646, 0.17877687513828278, -0.009369857609272003, 0.2979602515697479, 0.2489987015724182, -0.02596331387758255, 0.07792215794324875, -0.4312405586242676, -0.24811570346355438, 0.2071690857410431, -0.2502094805240631, 0.03657921403646469, 0.05019205063581467, -0.05400218069553375, 0.20509402453899384, 0.1456218808889389, -0.07173608243465424, 0.04596060514450073, 0.031951818615198135, -0.11868976056575775, -0.4050331115722656, 0.08987298607826233, 0.15612684190273285, 0.13250455260276794, 0.19255433976650238, -0.1578141450881958, 0.015130318701267242, 0.049785397946834564, 0.2883237302303314, -0.3631318211555481, 0.04060857743024826, -0.5141164660453796, -0.1600826233625412, 0.16615502536296844, -0.22040189802646637, -0.04553988575935364, -0.3230527937412262, -0.32448869943618774, -0.04225298389792442, -0.07649821788072586, -0.09236568957567215, -0.02775980532169342, 0.2801041305065155, -0.03296814113855362, -0.11899346113204956, 0.0649993047118187, 0.07127176225185394, 0.1353497952222824, 0.24214033782482147, 0.11405624449253082, -0.05657357722520828, 0.28571656346321106, -0.10978491604328156, 0.18792083859443665, 0.0829138308763504, 0.08980084955692291, -0.03435632586479187, -0.20906735956668854, 0.18673373758792877, -0.2917200028896332, 0.3974737524986267, -0.32621708512306213, 0.006265200674533844, 0.07561510801315308, 0.08509890735149384, -0.13855260610580444, -0.0676286369562149, -0.12202423065900803, 0.022751063108444214, 0.1825363039970398, -0.010759767144918442, 0.08173418045043945, 0.13836121559143066, -0.14363138377666473, -0.12322410941123962, 0.0074331872165203094, 0.2546881437301636, 0.04749123007059097, -0.15643785893917084, -0.14127646386623383, -0.3002549409866333 ]
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.3897118866443634, 0.06890001893043518, -0.04362548142671585, -0.14077380299568176, -0.007546164095401764, 0.23610442876815796, -0.0866280049085617, 0.4099908769130707, -0.03325227275490761, 0.055265627801418304, -0.22682172060012817, 0.1267448514699936, -0.13749557733535767, 0.37575745582580566, 0.3153649866580963, -0.10255146026611328, -0.022179462015628815, 0.011622689664363861, 0.3541302978992462, -0.20094934105873108, -0.15251308679580688, 0.1563081592321396, 0.034892551600933075, -0.07085171341896057, -0.06756372004747391, 0.08458460122346878, -0.10823041200637817, 0.052599452435970306, -0.12770363688468933, -0.36795929074287415, 0.1854729801416397, 0.31870850920677185, 0.25171396136283875, 0.24694427847862244, -0.00012401312415022403, -0.4164183735847473, 0.1370147168636322, -0.19466440379619598, -0.5836821794509888, -0.11078350245952606, -0.2506585419178009, 0.037297360599040985, -0.11774662137031555, 0.19021540880203247, 0.13054203987121582, -0.019921056926250458, 0.0473640002310276, -0.3805803060531616, 0.03969038277864456, 0.19628293812274933, 0.060404516756534576, -0.1646215170621872, 0.10004247725009918, -0.2372971922159195, 0.03526776283979416, 0.16346293687820435, -0.0934523195028305, 0.3102360665798187, 0.663554310798645, 0.225775346159935, 0.24867841601371765, 0.04454720392823219, 0.15101204812526703, -0.3072899580001831, -0.0004821382462978363, 0.13403186202049255, -0.2501451373100281, -0.4530818462371826, 0.15247216820716858, 0.5523591041564941, 0.6914027333259583, -0.1817149817943573, -0.3851207196712494, -0.11646271497011185, 0.13343791663646698, -0.5129930973052979, -0.11194901913404465, 0.06477764248847961, -0.04607662186026573, 0.16960705816745758, 0.2209833264350891, -0.45643800497055054, -0.008320935070514679, 0.4535561203956604, 0.2018200159072876, 0.18715810775756836, 0.05459165200591087, -0.13760370016098022, 0.3618966341018677, -0.0942298173904419, -0.07137764990329742, 0.05588843300938606, 0.02562698721885681, 0.4348696768283844, 0.07622472196817398, -0.39751800894737244, -0.011453419923782349, -0.5160596370697021, 0.4938574433326721, -0.2566072940826416, 0.08373335748910904, 0.1518268883228302, -0.6276633739471436, -0.12404073029756546, 0.3796093463897705, -0.26025471091270447, -0.1462109386920929, 0.07010409981012344, 0.37975531816482544, 0.1778358668088913, 0.8164596557617188, 0.14960172772407532, -0.26812562346458435, 0.06601442396640778, -0.20713229477405548, 0.15145212411880493, -0.01529738213866949, -0.39661020040512085, -0.11770680546760559, -0.07707641273736954, 0.0033962130546569824, 0.07959101349115372, -0.3144287168979645, 0.04442350193858147, 0.0949631929397583, 0.12160330265760422, -0.024025391787290573, 0.15725329518318176, 0.1144946739077568, -0.26412636041641235, 0.10219161212444305, 0.14616385102272034, 0.04444984719157219, 0.16309301555156708, 0.07741114497184753, -0.6380670666694641, 0.05432944744825363, 0.07337529212236404, 0.3085188865661621, -0.11258672922849655, -0.3097590506076813, 0.299652099609375, -0.30388304591178894, -0.1478009670972824, 0.03841425105929375, 0.15206025540828705, -0.254448801279068, 0.32414478063583374, -0.38950812816619873, 0.12453725934028625, -0.06252118200063705, -0.48718538880348206, -0.11749635636806488, 0.05316837504506111, 0.15202853083610535, -0.38682568073272705, 0.3178732395172119, 0.266335666179657, -0.2161911129951477, -0.3090515732765198, -0.058061279356479645, 0.22289839386940002, -0.3956097364425659, 0.029081005603075027, 0.06880418956279755, 0.5167530179023743, -0.6113039255142212, -0.09702333807945251, -0.39221522212028503, 0.1342051476240158, -0.2091178297996521, 0.1252496838569641, -0.028498757630586624, 0.05807381868362427, -0.436578631401062, 0.05880388617515564, 0.581656813621521, -0.5174851417541504, -0.2799958288669586, 0.2649066150188446, -0.221319779753685, -0.20881278812885284, 0.19403699040412903, 0.12734857201576233, 0.46700263023376465, -0.012724334374070168, 0.17669899761676788, 0.17522747814655304, -0.25566092133522034, 0.01750119961798191, -0.09131546318531036, -0.48356810212135315, -0.2657380700111389, 0.1638796329498291, 0.14795854687690735, -0.12753474712371826, 0.1275564730167389, -0.020960494875907898, 0.47389838099479675, -0.053925562649965286, 0.2950320839881897, 0.20588372647762299, 0.32436564564704895, 0.0320441760122776, -0.021715007722377777, 0.10407727211713791, -0.3587942123413086, 0.08177432417869568, 0.0326964408159256, 0.16760103404521942, 0.07037624716758728, -0.3706408739089966, -0.2648749351501465, -0.3648487329483032, -0.045513976365327835, -0.11067701876163483, -0.0740581601858139, 0.23171839118003845, 0.2323179841041565, -0.19913692772388458, -0.21433541178703308, 0.20449356734752655, 0.28108230233192444, 0.11021482944488525, 0.05403841659426689, 0.013870799914002419, -0.03842885047197342, 0.11226955056190491, 0.23210382461547852, 0.16266219317913055, 0.22387513518333435, -0.21001186966896057, -0.10754011571407318, 0.2778182327747345, -0.0040991115383803844, 0.6636211276054382, 0.22375160455703735, 0.21092811226844788, 0.20584148168563843, 0.07632142305374146, 0.21379436552524567, 0.24491830170154572, -0.15731939673423767, 0.003483891487121582, -0.24361807107925415, 0.2828456461429596, 0.30075204372406006, 0.0037647411227226257, 0.1546216607093811, 0.23079925775527954, 0.130488321185112, 0.074631467461586, 0.03621383756399155, -0.12235672771930695, -0.15988200902938843, 0.05850603058934212, 0.35951870679855347, -0.14867369830608368, -0.5801499485969543, 0.37501606345176697, 0.40679293870925903, -0.13008835911750793, 0.1598210334777832, 0.24389547109603882, -0.3069547116756439, -0.15934720635414124, -0.012757407501339912, 0.19846658408641815, 0.1514742523431778, 0.22997839748859406, 0.0910487249493599, 0.18470261991024017, 0.29178673028945923, -0.042749032378196716, 0.2333388328552246, -0.0779765397310257, -0.0976061150431633, 0.42317429184913635, -0.18699827790260315, 0.13008929789066315, -0.34336966276168823, -0.1746969372034073, -0.015359800308942795, -0.05492285639047623, 0.03514782711863518, -0.460986465215683, 0.020064955577254295, 0.14031794667243958, -0.43641120195388794, -0.040548939257860184, -0.06315085291862488, -0.32432276010513306, 0.21860286593437195, 0.30287086963653564, -0.03496363013982773, 0.05879915505647659, -0.36072203516960144, 0.2980537414550781, -0.33641326427459717, -0.41292646527290344, -0.09405133128166199, -0.012242665514349937, -0.24890342354774475, 0.027752675116062164, 0.0449795238673687, -0.2859214246273041, 0.23504747450351715, -0.22726315259933472, 0.19476699829101562, -0.4353850185871124, -0.4220513701438904, 0.16088223457336426, 0.01674480549991131, -0.4277879595756531, 0.13131389021873474, -0.29837560653686523, 0.2825029492378235, 0.01575762778520584, -0.30782049894332886, -0.12292856723070145, -0.18847183883190155, -0.43406158685684204, -0.13743658363819122, 0.22213014960289001, 0.1926540583372116, -0.7328452467918396, -0.3953496813774109, -0.4587976336479187, 0.11818131804466248, -0.25025230646133423, 0.07050199806690216, 0.006601765751838684, -0.07580327242612839, -0.12328745424747467, -0.21714448928833008, 0.24143067002296448, -0.2790500521659851, 0.21036186814308167, 0.29447004199028015, -0.19464856386184692, -0.3588216304779053, 0.04771551862359047, -0.21695582568645477, 0.2603699266910553, 0.052053049206733704, -0.32112908363342285, 0.42903247475624084, 0.15371747314929962, 0.23121359944343567, -0.041789159178733826, -0.03624030947685242, 0.5302615165710449, 0.26075467467308044, -0.10301147401332855, 0.037997424602508545, -0.050423137843608856, -0.2390136420726776, 0.2745097279548645, 0.25515297055244446, 0.04668155312538147, 0.25091105699539185, 0.10008624196052551, 0.7929122447967529, 0.06994247436523438, 0.09173190593719482, 0.011368565261363983, -0.13234809041023254, 0.369916707277298, 0.08806908130645752, -0.16677121818065643, -0.0713275671005249, -0.10056117177009583, 0.17869959771633148, 0.33591926097869873, 0.2163034975528717, -0.06239891052246094, -0.1944153606891632, -0.14858338236808777, -0.12404472380876541, -0.050799883902072906, 0.08704959601163864, -0.12798266112804413, 0.39724284410476685, 0.2608754336833954, -0.026206552982330322, -0.11852216720581055, -0.004401898942887783, 0.21558977663516998, 0.15494544804096222, 0.09861748665571213, -0.010254493914544582, 0.31899744272232056, 0.4521583616733551, -0.3467705249786377, 0.18790757656097412, 0.3292076587677002, 0.1728169471025467, -0.3932282328605652, 0.014985393732786179, -0.007026828825473785, 0.13476517796516418, 0.23187536001205444, -0.21940426528453827, -0.10797466337680817, -0.05506113916635513, -0.008059125393629074, -0.07177150249481201, 0.17678682506084442, -0.2748177945613861, 0.02794601395726204, 0.4873177409172058, -0.10699255764484406, -0.30117523670196533, -0.08605393767356873, 0.5095317363739014, 0.18477272987365723, -0.07679200172424316, 0.13221301138401031, 0.20801086723804474, -0.13583683967590332, -0.3548867702484131, 0.05657220259308815, -0.15957127511501312, 0.0538225993514061, -0.16402576863765717, -0.10181265324354172, 0.4033178985118866, -0.03671736270189285, 0.05232762172818184, -0.31070688366889954, 0.1715811789035797, 0.35828375816345215, 0.2556033134460449, 0.18654868006706238, 0.044589512050151825, 0.4322368800640106, 0.43119826912879944, 0.022036368027329445, -0.22291699051856995, 0.03723480924963951, -0.5398783683776855, 0.3911566138267517, 0.49404630064964294, 0.12063102424144745, -0.12655550241470337, -0.0328851118683815, -0.2956702709197998, 0.10371121019124985, -0.03654990717768669, 0.35443681478500366, 0.2191479355096817, -0.5651630759239197, -0.4353214204311371, 0.16286534070968628, 0.1665743738412857, -0.25492867827415466, 0.2579555809497833, -0.11418507993221283, -0.15823525190353394, -0.03158549591898918, -0.2802398204803467, 1.1013665199279785, 0.27867230772972107, 0.3372330963611603, -0.009384158998727798, -0.34185194969177246, 0.19729530811309814, -0.24263738095760345, -0.09238618612289429, -0.1486106514930725, 0.21554823219776154, -0.20856091380119324, 0.06377999484539032, -0.2620508372783661, 0.03140079230070114, -0.2880221903324127, 0.469489187002182, 0.06652113795280457, -0.021671835333108902, 0.263613760471344, 0.4605937600135803, -0.2247125804424286, -0.34350234270095825, 0.22733575105667114, -0.008492622524499893, 0.12544775009155273, 0.6293469071388245, 0.04092395678162575, -0.3916572332382202, -0.29454588890075684, -0.3658161163330078, -0.408319354057312, 0.22427812218666077, 0.03149375692009926, -0.060237348079681396, -0.13369736075401306, -0.04980485141277313, 0.3182793855667114, -0.18481649458408356, 0.30943673849105835, -0.0069452933967113495, -0.26862508058547974, 0.03552239388227463, 0.17789845168590546, -0.12503665685653687, 0.31061628460884094, 0.03637107089161873, 0.08620572090148926, -0.09547625482082367, -0.24844127893447876, 0.16626939177513123, -0.05457334965467453, -0.27928292751312256, -0.11991317570209503, -0.1825055629014969, 0.03520633280277252, -0.23285812139511108, -0.26512646675109863, 0.33592504262924194, -0.2981416583061218, -0.2906301021575928, 0.03176996111869812, 0.16753029823303223, -0.1748855710029602, -0.07929619401693344, 0.30439603328704834, 0.05758044123649597, -0.16935694217681885, 0.6294357180595398, 0.07926416397094727, -0.2609717845916748, 0.4255690574645996, 0.01309894397854805, -0.09967812895774841, -0.16571044921875, 0.0735643282532692, 0.21481634676456451, -0.5074214339256287, -0.08700230717658997, -0.2099492847919464, -0.02436259388923645, -0.23539680242538452, 0.3598630726337433, 0.005256716161966324, 0.3169463574886322, -0.3262864053249359, -0.23828253149986267, -0.399745911359787, 0.13710463047027588, 0.013097979128360748, 0.39534229040145874, -0.052631817758083344, 0.0024274690076708794, 0.2174750566482544, -0.17494845390319824, -0.19948770105838776, 0.12334922701120377, 0.3694252371788025, -0.12737955152988434, 0.6541807651519775, 0.2961568236351013, 0.26108890771865845, -0.008646330796182156, -0.08151333779096603, -0.13222172856330872, -0.2986321449279785, 0.008752938359975815, -0.07575657963752747, 0.1869587004184723, 0.03912580758333206, -0.09721560031175613, -0.09295246750116348, -0.0846465602517128, -0.24652913212776184, 0.29096463322639465, 0.021286074072122574, 0.07341554015874863, 0.12273530662059784, 0.03133417293429375, -0.07140089571475983, -0.07640399783849716, 0.034035056829452515, 0.28602397441864014, 0.05862830951809883, 0.4684430956840515, 0.13774102926254272, 0.43917161226272583, -0.13405832648277283, -0.26751723885536194, 0.1980859488248825, 0.21032285690307617, 0.37530970573425293, -0.21281883120536804, 0.30685824155807495, -0.025408625602722168, -0.06459234654903412, 0.18638408184051514, 0.24076539278030396, 0.30728280544281006, -0.2076258808374405, 0.009256016463041306, -0.03530455008149147, 0.06915003061294556, -0.40545767545700073, -0.0847054049372673, -0.298248827457428, -0.0039076535031199455, 0.02561032399535179, 0.11834156513214111, 0.3522500693798065, -0.03506787121295929, 0.5823599100112915, -0.032513704150915146, 0.0720369964838028, -0.0760498195886612, 0.39500662684440613, 0.48809415102005005, -0.004431974142789841, 0.25832051038742065, 0.08362516760826111, 0.06844891607761383, -0.05895582586526871, -0.04426003247499466, -0.5513551831245422, -0.19056081771850586, 0.15943142771720886, 0.007904600352048874, 0.41294732689857483, -0.35302260518074036, 0.2965228855609894, 0.46258777379989624, 0.10824842005968094, -0.1131671890616417, 0.38642802834510803, 0.5600413084030151, 0.14854589104652405, -0.03647514432668686, 0.1294243186712265, 0.17287138104438782, 0.1189909353852272, -0.12332446873188019, -0.06675432622432709, -0.24813568592071533, -0.5411573648452759, 0.21191051602363586, 0.06814385205507278, -0.12623365223407745, 0.11505396664142609, 0.05772389471530914, 0.10664892196655273, -0.29047685861587524, -0.25274980068206787, 0.08125264942646027, -0.018354743719100952, -0.17428871989250183, 0.08599048852920532, -0.11355458199977875, -0.1134602427482605, 0.29427459836006165, 0.5817174315452576, 0.14210402965545654, -0.13891631364822388, 0.2913806438446045, 0.35789433121681213, -0.0027547702193260193, 0.11831136047840118, 0.1787409484386444, -0.18419528007507324, 0.18344631791114807, 0.18330495059490204, 0.12761268019676208, 0.00951744057238102, 0.03366139158606529, 0.09101859480142593, 0.11965705454349518, -0.20986586809158325, -0.06270560622215271, 0.4658004641532898, 0.2066517472267151, -0.025203000754117966, -0.33660921454429626, 0.038563840091228485, -0.2646125853061676, -0.15214407444000244, 0.4577648937702179, -0.02106257528066635, 0.011558162048459053, -0.12628477811813354, 0.0023987237364053726, 0.25068989396095276, 0.029912669211626053, 0.3688186705112457, -0.054084181785583496, -0.0706748217344284, -0.16392529010772705, -0.31955641508102417, 0.07792137563228607, 0.07337819039821625, -0.014379085972905159, -0.36604225635528564, -0.011693466454744339, 0.24685931205749512, 0.2482655942440033, 0.40475010871887207, 0.11052048206329346, -0.2760937511920929, -0.08180607855319977, 0.1156410276889801, -0.1208290308713913, 0.22382690012454987, 0.47522035241127014, -0.017249401658773422, -0.14767594635486603, 0.006656762212514877, -0.11455905437469482, -0.15477558970451355, -0.160244420170784, -0.15225863456726074, -0.23326626420021057, -0.21764472126960754, 0.343455970287323, -0.27842527627944946, 0.3796609342098236, -0.2898496091365814, -0.2737593650817871, -0.15349097549915314, 0.03203872963786125, -0.19749228656291962, 0.26005563139915466, 0.0700511634349823, -0.04451489448547363, -0.2142016589641571, -0.2674902081489563, -0.27698585391044617, 0.10539965331554413, -0.06681877374649048, -0.1746443510055542, -0.12796707451343536, 0.08516436815261841, -0.17413344979286194, -0.07236744463443756, 0.18711674213409424, 0.22774282097816467, -0.2829016447067261, -0.10326823592185974, -0.44521552324295044, -0.21985511481761932, 0.26671603322029114, 0.15839365124702454, 0.19451412558555603, -0.29783573746681213, 0.28028106689453125, 0.28643807768821716, -0.11366628855466843, -0.14497634768486023, 0.24759823083877563, 0.10350097715854645, 0.12117503583431244, 0.06648695468902588, 0.007278017699718475, -0.10209324955940247, 0.049136195331811905, -0.26744285225868225, 0.5598208904266357, 0.39309316873550415, -0.18031243979930878, -0.22552838921546936, -0.4063817262649536 ]
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.577912449836731, -0.08100040256977081, -0.0453646220266819, 0.4501569867134094, 0.24596241116523743, 0.013975448906421661, 0.5565323233604431, 0.2723817825317383, 0.18437139689922333, 0.19074338674545288, -0.03117806650698185, 0.14643485844135284, 0.021242927759885788, 0.1441880613565445, -0.08855104446411133, 0.023560088127851486, 0.13091644644737244, -0.22574102878570557, -0.39687949419021606, -0.02036314457654953, -0.24068209528923035, 0.1446247696876526, 0.08555051684379578, 0.19327132403850555, -0.5113252401351929, -0.3433854877948761, -0.05417586863040924, 0.05579286813735962, 0.25900378823280334, -0.06713250279426575, 0.16646315157413483, 0.28593847155570984, -0.011623963713645935, 0.8678801655769348, -0.00010900416236836463, 0.13913528621196747, 0.12896734476089478, 0.11097230017185211, -0.06344620883464813, -0.22727154195308685, 0.03308200091123581, -0.10797476768493652, 0.1186942383646965, -0.31377869844436646, 0.1189500167965889, 0.05849926546216011, -0.030055562034249306, -0.2093542218208313, 0.5382676124572754, 0.07361049205064774, 0.2384031116962433, 0.38196924328804016, -0.30659669637680054, -0.22970764338970184, 0.18424606323242188, 0.05697937309741974, 0.0860358327627182, 0.07030672580003738, 0.10061492770910263, -0.16042760014533997, -0.02435395121574402, 0.42982685565948486, -0.12887467443943024, 0.2059703916311264, -0.023134902119636536, 0.08696054667234421, 0.10513922572135925, -0.5513930320739746, 0.07672523707151413, 0.06888936460018158, -0.011532895267009735, -0.3123030364513397, -0.3542192876338959, -0.34734979271888733, -0.06392675638198853, -0.25516510009765625, 0.09282150119543076, 0.34526675939559937, -0.20339567959308624, -0.1923070102930069, -0.09205156564712524, 0.1867489069700241, -0.0755043476819992, -0.1349962204694748, 0.24153748154640198, 0.33065265417099, 0.08305129408836365, 0.23875287175178528, 0.06923162192106247, 0.09273304045200348, 0.32804885506629944, -0.16129538416862488, -0.1014363169670105, -0.07755289226770401, -0.6200733780860901, 0.045745573937892914, -0.016057416796684265, -0.46522215008735657, 0.18437448143959045, -0.18587324023246765, -0.1885090470314026, 0.049986518919467926, 0.1717098355293274, 0.10315178334712982, 0.29897812008857727, 0.09600159525871277, -0.31774482131004333, 0.2705480456352234, 0.3438621759414673, 0.13319797813892365, -0.5029969215393066, 0.06527428328990936, -0.015614356845617294, -0.2567528486251831, 0.217610165476799, 0.18733447790145874, 0.24145804345607758, -0.08298873156309128, -0.35721930861473083, -0.05231395363807678, -0.05111780762672424, -0.055852316319942474, -0.10141461342573166, 0.4524843096733093, 0.17778973281383514, 0.15677329897880554, 0.09131310880184174, 0.1969439536333084, -0.18229226768016815, 0.06248718872666359, -0.30123069882392883, -0.02907540649175644, -0.014692053198814392, 0.21433359384536743, 0.11573867499828339, -0.06431445479393005, 0.22488534450531006, 0.3379441201686859, 0.049889061599969864, -0.4685385823249817, 0.2624688446521759, -0.3657267093658447, -0.24716585874557495, 0.19613444805145264, 0.18517911434173584, 0.13720640540122986, -0.1051604151725769, 0.3842993974685669, 0.013487808406352997, 0.25873303413391113, -0.3288046419620514, -0.13939523696899414, 0.08096742630004883, 0.2727389335632324, 0.013745501637458801, 0.11527781933546066, -0.3554980754852295, 0.11369092762470245, 0.3186282515525818, -0.041669487953186035, 0.1086386889219284, -0.37206417322158813, -0.3164128363132477, -0.1393730342388153, -0.020543565973639488, 0.5279045701026917, 0.0768129974603653, 0.026820816099643707, 0.17709270119667053, -0.10901115834712982, 0.09156708419322968, 0.3510977327823639, -0.34232333302497864, 0.49661704897880554, -0.34933146834373474, 0.12881812453269958, 0.24405086040496826, -0.37196341156959534, -0.15167200565338135, 0.3383844196796417, -0.16466529667377472, 0.12522011995315552, 0.21128804981708527, -0.05685531347990036, 0.21223385632038116, -0.13592121005058289, -0.008483916521072388, 0.14918860793113708, -0.1079862117767334, 0.4015439748764038, -0.19186118245124817, -0.28391534090042114, 0.04894975572824478, 0.16889318823814392, 0.32238054275512695, -0.09399759024381638, 0.026982299983501434, -0.2874779999256134, 0.3875821828842163, -0.3304333984851837, -0.07319258898496628, 0.21585291624069214, -0.010299701243638992, 0.07953567802906036, 0.08106514066457748, -0.10964730381965637, -0.5169203877449036, 0.1978815197944641, -0.362487256526947, 0.043249309062957764, 0.034229278564453125, -0.19916096329689026, 0.10673689842224121, -0.041770849376916885, -0.2488536387681961, -0.18883025646209717, 0.17062771320343018, 0.23171351850032806, -0.15026745200157166, -0.1181374043226242, -0.14735937118530273, 0.3599052429199219, -0.1582813560962677, 0.023461507633328438, -0.002393500879406929, 0.17053668200969696, -0.1951899528503418, -0.2185281664133072, 0.11620935797691345, -0.0603485032916069, 0.4591342508792877, -0.1816609650850296, -0.16463875770568848, 0.23448187112808228, 0.19793623685836792, 0.31514453887939453, -0.06082979589700699, 0.0168905109167099, 0.1874208301305771, 0.1556905061006546, -0.0017909351736307144, 0.1425168812274933, 0.26406481862068176, -0.1452895700931549, 0.09745564311742783, 0.3178670406341553, 0.0033608414232730865, 0.1383698284626007, 0.059060513973236084, -0.22330613434314728, 0.19342398643493652, -0.12333853542804718, 0.18917910754680634, 0.12245795130729675, 0.22531020641326904, 0.1255555897951126, 0.016756635159254074, -0.08165853470563889, -0.5741452574729919, 0.08364316821098328, 0.37755849957466125, 0.16694191098213196, 0.07349486649036407, 0.07330936938524246, -0.04749010503292084, 0.02278875932097435, -0.16829298436641693, 0.29985150694847107, 0.5353222489356995, 0.1349109560251236, 0.045723993331193924, 0.08820874243974686, -0.14512662589550018, -0.08921890705823898, 0.06667706370353699, 0.154605433344841, 0.19488349556922913, 0.5548343658447266, 0.19949260354042053, -0.0699804276227951, -0.28036218881607056, -0.11192671954631805, 0.2671934962272644, 0.09417491406202316, -0.37482312321662903, 0.18501581251621246, 0.12741424143314362, -0.17477929592132568, -0.4213630259037018, 0.005404486320912838, -0.03352278843522072, -0.14709442853927612, -0.039852872490882874, 0.4568403363227844, -0.1997355818748474, 0.3671450912952423, -0.02992819994688034, 0.15714746713638306, -0.1867973357439041, 0.2361011654138565, -0.14711648225784302, -0.07119865715503693, -0.11414838582277298, -0.011395329609513283, 0.2849556505680084, 0.06694024056196213, 0.3187503516674042, 0.07194386422634125, -0.31695228815078735, -0.35995641350746155, -0.0033943727612495422, 0.07836996018886566, 0.00177789106965065, 0.4231901466846466, -0.08440478146076202, -0.19659321010112762, 0.08084786683320999, -0.4469999372959137, 0.20245444774627686, -0.3591766953468323, -0.07020293176174164, -0.13277652859687805, -0.22643831372261047, -0.06717534363269806, -0.17661410570144653, -0.3789290487766266, -0.2513657808303833, -0.26769042015075684, -0.09061826765537262, -0.17275187373161316, 0.21168938279151917, 0.0763649269938469, -0.14113682508468628, -0.04005495831370354, 0.15371285378932953, -0.004669953137636185, -0.3079814910888672, -0.3230587840080261, 0.06932723522186279, -0.18935593962669373, -0.32065993547439575, -0.08726805448532104, -0.14780887961387634, 0.0682700127363205, 0.22674396634101868, -0.49165642261505127, -0.355716735124588, -0.10712815821170807, 0.05779549852013588, -0.1461234986782074, -0.03710446506738663, 0.050697099417448044, 0.0610223226249218, -0.13800616562366486, -0.11718853563070297, -0.17283855378627777, 0.20160558819770813, -0.03128303587436676, 0.005255602300167084, -0.16597992181777954, 0.2671525478363037, -0.15802597999572754, 0.6628251075744629, 0.24492686986923218, -0.06110243871808052, 0.32978928089141846, -0.14197108149528503, 0.07865571975708008, -0.018279895186424255, -0.4407641887664795, -0.06863132864236832, -0.4300888478755951, -0.23295357823371887, 0.1423811912536621, -0.3390010595321655, -0.16552840173244476, -0.0883626937866211, 0.02078571915626526, -0.3483385443687439, -0.31115642189979553, 0.10517837852239609, -0.1568959802389145, 0.3320012390613556, 0.047318924218416214, 0.16082271933555603, 0.0032934360206127167, 0.07313021272420883, 0.2852943539619446, 0.0372195839881897, 0.20852869749069214, -0.18799574673175812, -0.03207508474588394, 0.07562828809022903, -0.19160211086273193, 0.3207660913467407, 0.09924565255641937, 0.18817687034606934, -0.09984832257032394, 0.2111596167087555, 0.017397597432136536, -0.11549437791109085, 0.8625521063804626, -0.19443684816360474, 0.32594943046569824, 0.19437742233276367, -0.3524225056171417, -0.0848691388964653, -0.19156941771507263, -0.35499250888824463, -0.21128718554973602, 0.25831732153892517, 0.6643008589744568, -0.32180550694465637, -0.12378297001123428, 0.14336353540420532, -0.02083767205476761, -0.2824379503726959, -0.31510594487190247, -0.16054289042949677, -0.3001243770122528, -0.2805776298046112, 0.17587736248970032, -0.09049968421459198, 0.12028855830430984, -0.5292025208473206, -0.083871990442276, -0.18149130046367645, 0.20682555437088013, -0.010572507977485657, 0.05884348228573799, 0.28042131662368774, -0.060416631400585175, 0.4039420485496521, 0.12626102566719055, -0.030157513916492462, 0.27479708194732666, 0.4463305175304413, 0.02010849490761757, -0.277025043964386, 0.001954236999154091, 0.04634151980280876, 0.08977269381284714, 0.4556974172592163, 0.027261029928922653, 0.13520967960357666, 0.06710018217563629, 0.2680855989456177, -0.06722424179315567, 0.17809094488620758, 0.38363292813301086, 0.21999990940093994, -0.19891104102134705, -0.3477310240268707, 0.09311118721961975, 0.23563586175441742, -0.13195542991161346, 0.2889429032802582, -0.5127376317977905, -0.20680764317512512, 0.30260103940963745, -0.0046670883893966675, 0.6622439622879028, 0.014262951910495758, 0.09115386009216309, 0.30842268466949463, -0.30280640721321106, 0.28654560446739197, -0.2150484323501587, 0.32217109203338623, -0.5821488499641418, -0.26835161447525024, 0.11587277054786682, -0.1270325928926468, -0.07524818927049637, 0.05267689749598503, -0.1140708178281784, 0.3120553493499756, -0.0008431598544120789, 0.032436639070510864, -0.24797220528125763, 0.2446669042110443, 0.006566119380295277, -0.319852352142334, 0.05312280356884003, 0.1187562346458435, -0.29927051067352295, 0.25692689418792725, -0.14009639620780945, -0.10824570059776306, 0.25450342893600464, -0.23585987091064453, -0.2938600778579712, 0.2325538694858551, -0.34849482774734497, 0.28062617778778076, -0.14337541162967682, -0.19273018836975098, 0.04639894887804985, -0.08668200671672821, 0.15603509545326233, -0.22872240841388702, 0.0731348842382431, 0.09576323628425598, 0.056876204907894135, 0.13810372352600098, -0.23188383877277374, -0.15370002388954163, 0.4277762472629547, 0.021162625402212143, -0.36206841468811035, -0.08203316479921341, -0.0373365581035614, -0.01483338326215744, -0.12812647223472595, 0.04811490327119827, -0.1951628476381302, -0.19833332300186157, -0.11311034858226776, 0.2236144244670868, -0.07423479855060577, -0.31547215580940247, 0.15182648599147797, -0.2507014870643616, -0.27370598912239075, 0.3905722498893738, -0.1238660216331482, -0.3739266097545624, -0.0774783045053482, 0.22042572498321533, 0.1755121350288391, 0.07899563759565353, 0.41065242886543274, 0.3367045223712921, -0.06407319754362106, -0.31330421566963196, -0.23844754695892334, 0.1598052829504013, -0.4164750874042511, 0.1772855818271637, -0.14357732236385345, 0.15152166783809662, -0.027346109971404076, 0.31647586822509766, 0.06300044804811478, 0.12059514969587326, 0.020655687898397446, -0.29400140047073364, -0.21536700427532196, -0.0177849680185318, -0.0637846440076828, 0.21608193218708038, 0.201247900724411, 0.26182764768600464, 0.028204241767525673, 0.3244510591030121, -0.32827842235565186, 0.23353911936283112, -0.20574775338172913, 0.13083893060684204, 0.051371484994888306, -0.13134899735450745, 0.08273883163928986, 0.2397824078798294, 0.09755858778953552, 0.2197272628545761, -0.16471785306930542, -0.26122236251831055, -0.22638416290283203, 0.0987546294927597, -0.020842209458351135, 0.020225128158926964, -0.14770355820655823, -0.13346391916275024, 0.1280263066291809, -0.018376989290118217, 0.42898374795913696, 0.22844859957695007, -0.16439737379550934, 0.10616239160299301, 0.1367550939321518, 0.16482113301753998, -0.08188009262084961, 0.17027007043361664, 0.00027277320623397827, -0.09964263439178467, 0.18882577121257782, 0.18288186192512512, -0.0026519594248384237, 0.039650991559028625, -0.29793092608451843, -0.18287792801856995, 0.4134567975997925, 0.15602678060531616, 0.0929490178823471, -0.385153591632843, -0.2239554524421692, 0.0314510352909565, 0.4500083327293396, 0.31337395310401917, -0.3114968240261078, -0.0574880987405777, -0.037050072103738785, 0.28020843863487244, -0.18614540994167328, -0.02526070363819599, -0.0004438776522874832, -0.19825361669063568, 0.0170283280313015, 0.37084487080574036, 0.32221439480781555, 0.0491982102394104, -0.02571709454059601, 0.15775173902511597, 0.37087035179138184, -0.386102557182312, 0.2404293417930603, -0.004391554743051529, -0.12606921792030334, 0.12737436592578888, 0.4078048765659332, 0.22648684680461884, 0.0797453299164772, 0.1788531243801117, 0.09110379219055176, 0.18546351790428162, -0.030167318880558014, -0.14113080501556396, 0.11168400943279266, -0.30865907669067383, -0.03811248019337654, 0.20166844129562378, -0.22635546326637268, -0.12448675185441971, -0.21199730038642883, -0.0688009187579155, -0.18714018166065216, -0.22876451909542084, -0.36810755729675293, 0.26766419410705566, -0.3974693715572357, -0.048106543719768524, 0.10963115096092224, -0.14428061246871948, 0.1277998834848404, 0.20107057690620422, 0.11405643820762634, 0.13477319478988647, 0.4494636356830597, 0.13311415910720825, -0.2817562222480774, -0.11044730246067047, -0.31635671854019165, 0.27165788412094116, 0.1550411731004715, -0.31638503074645996, 0.28327229619026184, 0.34186986088752747, -0.05049799382686615, -0.23707422614097595, 0.5526759028434753, 0.652224600315094, 0.3537180423736572, -0.14521880447864532, 0.007220521103590727, 0.03287339583039284, 0.13185739517211914, -0.08332981169223785, 0.09240254014730453, 0.13208022713661194, 0.27384084463119507, 0.3750731348991394, 0.16277652978897095, -0.1621033251285553, 0.15090109407901764, 0.2157590091228485, 0.17375175654888153, -0.26355329155921936, 0.2917875349521637, -0.047565676271915436, -0.07093432545661926, -0.06877828389406204, 0.010969042778015137, -0.3325086534023285, 0.116724394261837, 0.47250834107398987, -0.09931293874979019, 0.2256487011909485, 0.00025749183259904385, 0.12229226529598236, 0.011699729599058628, 0.3831607401371002, 0.1213119849562645, 0.10068702697753906, -0.6743172407150269, 0.06177964806556702, -0.45722588896751404, 0.2957109808921814, -0.14188705384731293, 0.19633294641971588, -0.043055396527051926, 0.10472260415554047, -0.29694801568984985, -0.06525279581546783, 0.2955666184425354, -0.04077872633934021, 0.07654134184122086, 0.46357259154319763, -0.5969396829605103, 0.04950476437807083, -0.33520740270614624, -0.12624166905879974, 0.34555187821388245, -0.46870508790016174, 0.21943369507789612, -0.15224914252758026, 0.09161026030778885, 0.11633817106485367, -0.003638826310634613, 0.30936112999916077, 0.12445277720689774, 0.5834567546844482, 0.17503702640533447, 0.6061416864395142, -0.12605205178260803, 0.13127277791500092, -0.11315910518169403, -0.41336819529533386, -0.3300965130329132, -0.006952628493309021, 0.14930061995983124, 0.10661029815673828, -0.07569309324026108, -0.09274783730506897, -0.33851197361946106, -0.15237346291542053, 0.026059381663799286, -0.13960659503936768, -0.04959585517644882, 0.040064506232738495, 0.0016714148223400116, 0.04849869757890701, 0.1314326673746109, 0.28827497363090515, 0.2544393241405487, 0.2327960878610611, -0.43480873107910156, -0.3158879578113556, 0.5066921710968018, -0.20325948297977448, -0.5028805732727051, -0.36840829253196716, 0.3902992010116577, -0.02608831226825714, 0.08401516824960709, -0.6257053017616272, 0.13618621230125427, 0.3196176588535309, -0.07806531339883804, -0.19408409297466278, 0.16662894189357758, 0.034007832407951355, -0.15274186432361603, 0.1009976863861084, -0.04395293444395065, 0.04539444297552109, -0.36369356513023376, 0.027707714587450027, -0.06068098172545433 ]
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.577912449836731, -0.08100040256977081, -0.0453646220266819, 0.4501569867134094, 0.24596241116523743, 0.013975448906421661, 0.5565323233604431, 0.2723817825317383, 0.18437139689922333, 0.19074338674545288, -0.03117806650698185, 0.14643485844135284, 0.021242927759885788, 0.1441880613565445, -0.08855104446411133, 0.023560088127851486, 0.13091644644737244, -0.22574102878570557, -0.39687949419021606, -0.02036314457654953, -0.24068209528923035, 0.1446247696876526, 0.08555051684379578, 0.19327132403850555, -0.5113252401351929, -0.3433854877948761, -0.05417586863040924, 0.05579286813735962, 0.25900378823280334, -0.06713250279426575, 0.16646315157413483, 0.28593847155570984, -0.011623963713645935, 0.8678801655769348, -0.00010900416236836463, 0.13913528621196747, 0.12896734476089478, 0.11097230017185211, -0.06344620883464813, -0.22727154195308685, 0.03308200091123581, -0.10797476768493652, 0.1186942383646965, -0.31377869844436646, 0.1189500167965889, 0.05849926546216011, -0.030055562034249306, -0.2093542218208313, 0.5382676124572754, 0.07361049205064774, 0.2384031116962433, 0.38196924328804016, -0.30659669637680054, -0.22970764338970184, 0.18424606323242188, 0.05697937309741974, 0.0860358327627182, 0.07030672580003738, 0.10061492770910263, -0.16042760014533997, -0.02435395121574402, 0.42982685565948486, -0.12887467443943024, 0.2059703916311264, -0.023134902119636536, 0.08696054667234421, 0.10513922572135925, -0.5513930320739746, 0.07672523707151413, 0.06888936460018158, -0.011532895267009735, -0.3123030364513397, -0.3542192876338959, -0.34734979271888733, -0.06392675638198853, -0.25516510009765625, 0.09282150119543076, 0.34526675939559937, -0.20339567959308624, -0.1923070102930069, -0.09205156564712524, 0.1867489069700241, -0.0755043476819992, -0.1349962204694748, 0.24153748154640198, 0.33065265417099, 0.08305129408836365, 0.23875287175178528, 0.06923162192106247, 0.09273304045200348, 0.32804885506629944, -0.16129538416862488, -0.1014363169670105, -0.07755289226770401, -0.6200733780860901, 0.045745573937892914, -0.016057416796684265, -0.46522215008735657, 0.18437448143959045, -0.18587324023246765, -0.1885090470314026, 0.049986518919467926, 0.1717098355293274, 0.10315178334712982, 0.29897812008857727, 0.09600159525871277, -0.31774482131004333, 0.2705480456352234, 0.3438621759414673, 0.13319797813892365, -0.5029969215393066, 0.06527428328990936, -0.015614356845617294, -0.2567528486251831, 0.217610165476799, 0.18733447790145874, 0.24145804345607758, -0.08298873156309128, -0.35721930861473083, -0.05231395363807678, -0.05111780762672424, -0.055852316319942474, -0.10141461342573166, 0.4524843096733093, 0.17778973281383514, 0.15677329897880554, 0.09131310880184174, 0.1969439536333084, -0.18229226768016815, 0.06248718872666359, -0.30123069882392883, -0.02907540649175644, -0.014692053198814392, 0.21433359384536743, 0.11573867499828339, -0.06431445479393005, 0.22488534450531006, 0.3379441201686859, 0.049889061599969864, -0.4685385823249817, 0.2624688446521759, -0.3657267093658447, -0.24716585874557495, 0.19613444805145264, 0.18517911434173584, 0.13720640540122986, -0.1051604151725769, 0.3842993974685669, 0.013487808406352997, 0.25873303413391113, -0.3288046419620514, -0.13939523696899414, 0.08096742630004883, 0.2727389335632324, 0.013745501637458801, 0.11527781933546066, -0.3554980754852295, 0.11369092762470245, 0.3186282515525818, -0.041669487953186035, 0.1086386889219284, -0.37206417322158813, -0.3164128363132477, -0.1393730342388153, -0.020543565973639488, 0.5279045701026917, 0.0768129974603653, 0.026820816099643707, 0.17709270119667053, -0.10901115834712982, 0.09156708419322968, 0.3510977327823639, -0.34232333302497864, 0.49661704897880554, -0.34933146834373474, 0.12881812453269958, 0.24405086040496826, -0.37196341156959534, -0.15167200565338135, 0.3383844196796417, -0.16466529667377472, 0.12522011995315552, 0.21128804981708527, -0.05685531347990036, 0.21223385632038116, -0.13592121005058289, -0.008483916521072388, 0.14918860793113708, -0.1079862117767334, 0.4015439748764038, -0.19186118245124817, -0.28391534090042114, 0.04894975572824478, 0.16889318823814392, 0.32238054275512695, -0.09399759024381638, 0.026982299983501434, -0.2874779999256134, 0.3875821828842163, -0.3304333984851837, -0.07319258898496628, 0.21585291624069214, -0.010299701243638992, 0.07953567802906036, 0.08106514066457748, -0.10964730381965637, -0.5169203877449036, 0.1978815197944641, -0.362487256526947, 0.043249309062957764, 0.034229278564453125, -0.19916096329689026, 0.10673689842224121, -0.041770849376916885, -0.2488536387681961, -0.18883025646209717, 0.17062771320343018, 0.23171351850032806, -0.15026745200157166, -0.1181374043226242, -0.14735937118530273, 0.3599052429199219, -0.1582813560962677, 0.023461507633328438, -0.002393500879406929, 0.17053668200969696, -0.1951899528503418, -0.2185281664133072, 0.11620935797691345, -0.0603485032916069, 0.4591342508792877, -0.1816609650850296, -0.16463875770568848, 0.23448187112808228, 0.19793623685836792, 0.31514453887939453, -0.06082979589700699, 0.0168905109167099, 0.1874208301305771, 0.1556905061006546, -0.0017909351736307144, 0.1425168812274933, 0.26406481862068176, -0.1452895700931549, 0.09745564311742783, 0.3178670406341553, 0.0033608414232730865, 0.1383698284626007, 0.059060513973236084, -0.22330613434314728, 0.19342398643493652, -0.12333853542804718, 0.18917910754680634, 0.12245795130729675, 0.22531020641326904, 0.1255555897951126, 0.016756635159254074, -0.08165853470563889, -0.5741452574729919, 0.08364316821098328, 0.37755849957466125, 0.16694191098213196, 0.07349486649036407, 0.07330936938524246, -0.04749010503292084, 0.02278875932097435, -0.16829298436641693, 0.29985150694847107, 0.5353222489356995, 0.1349109560251236, 0.045723993331193924, 0.08820874243974686, -0.14512662589550018, -0.08921890705823898, 0.06667706370353699, 0.154605433344841, 0.19488349556922913, 0.5548343658447266, 0.19949260354042053, -0.0699804276227951, -0.28036218881607056, -0.11192671954631805, 0.2671934962272644, 0.09417491406202316, -0.37482312321662903, 0.18501581251621246, 0.12741424143314362, -0.17477929592132568, -0.4213630259037018, 0.005404486320912838, -0.03352278843522072, -0.14709442853927612, -0.039852872490882874, 0.4568403363227844, -0.1997355818748474, 0.3671450912952423, -0.02992819994688034, 0.15714746713638306, -0.1867973357439041, 0.2361011654138565, -0.14711648225784302, -0.07119865715503693, -0.11414838582277298, -0.011395329609513283, 0.2849556505680084, 0.06694024056196213, 0.3187503516674042, 0.07194386422634125, -0.31695228815078735, -0.35995641350746155, -0.0033943727612495422, 0.07836996018886566, 0.00177789106965065, 0.4231901466846466, -0.08440478146076202, -0.19659321010112762, 0.08084786683320999, -0.4469999372959137, 0.20245444774627686, -0.3591766953468323, -0.07020293176174164, -0.13277652859687805, -0.22643831372261047, -0.06717534363269806, -0.17661410570144653, -0.3789290487766266, -0.2513657808303833, -0.26769042015075684, -0.09061826765537262, -0.17275187373161316, 0.21168938279151917, 0.0763649269938469, -0.14113682508468628, -0.04005495831370354, 0.15371285378932953, -0.004669953137636185, -0.3079814910888672, -0.3230587840080261, 0.06932723522186279, -0.18935593962669373, -0.32065993547439575, -0.08726805448532104, -0.14780887961387634, 0.0682700127363205, 0.22674396634101868, -0.49165642261505127, -0.355716735124588, -0.10712815821170807, 0.05779549852013588, -0.1461234986782074, -0.03710446506738663, 0.050697099417448044, 0.0610223226249218, -0.13800616562366486, -0.11718853563070297, -0.17283855378627777, 0.20160558819770813, -0.03128303587436676, 0.005255602300167084, -0.16597992181777954, 0.2671525478363037, -0.15802597999572754, 0.6628251075744629, 0.24492686986923218, -0.06110243871808052, 0.32978928089141846, -0.14197108149528503, 0.07865571975708008, -0.018279895186424255, -0.4407641887664795, -0.06863132864236832, -0.4300888478755951, -0.23295357823371887, 0.1423811912536621, -0.3390010595321655, -0.16552840173244476, -0.0883626937866211, 0.02078571915626526, -0.3483385443687439, -0.31115642189979553, 0.10517837852239609, -0.1568959802389145, 0.3320012390613556, 0.047318924218416214, 0.16082271933555603, 0.0032934360206127167, 0.07313021272420883, 0.2852943539619446, 0.0372195839881897, 0.20852869749069214, -0.18799574673175812, -0.03207508474588394, 0.07562828809022903, -0.19160211086273193, 0.3207660913467407, 0.09924565255641937, 0.18817687034606934, -0.09984832257032394, 0.2111596167087555, 0.017397597432136536, -0.11549437791109085, 0.8625521063804626, -0.19443684816360474, 0.32594943046569824, 0.19437742233276367, -0.3524225056171417, -0.0848691388964653, -0.19156941771507263, -0.35499250888824463, -0.21128718554973602, 0.25831732153892517, 0.6643008589744568, -0.32180550694465637, -0.12378297001123428, 0.14336353540420532, -0.02083767205476761, -0.2824379503726959, -0.31510594487190247, -0.16054289042949677, -0.3001243770122528, -0.2805776298046112, 0.17587736248970032, -0.09049968421459198, 0.12028855830430984, -0.5292025208473206, -0.083871990442276, -0.18149130046367645, 0.20682555437088013, -0.010572507977485657, 0.05884348228573799, 0.28042131662368774, -0.060416631400585175, 0.4039420485496521, 0.12626102566719055, -0.030157513916492462, 0.27479708194732666, 0.4463305175304413, 0.02010849490761757, -0.277025043964386, 0.001954236999154091, 0.04634151980280876, 0.08977269381284714, 0.4556974172592163, 0.027261029928922653, 0.13520967960357666, 0.06710018217563629, 0.2680855989456177, -0.06722424179315567, 0.17809094488620758, 0.38363292813301086, 0.21999990940093994, -0.19891104102134705, -0.3477310240268707, 0.09311118721961975, 0.23563586175441742, -0.13195542991161346, 0.2889429032802582, -0.5127376317977905, -0.20680764317512512, 0.30260103940963745, -0.0046670883893966675, 0.6622439622879028, 0.014262951910495758, 0.09115386009216309, 0.30842268466949463, -0.30280640721321106, 0.28654560446739197, -0.2150484323501587, 0.32217109203338623, -0.5821488499641418, -0.26835161447525024, 0.11587277054786682, -0.1270325928926468, -0.07524818927049637, 0.05267689749598503, -0.1140708178281784, 0.3120553493499756, -0.0008431598544120789, 0.032436639070510864, -0.24797220528125763, 0.2446669042110443, 0.006566119380295277, -0.319852352142334, 0.05312280356884003, 0.1187562346458435, -0.29927051067352295, 0.25692689418792725, -0.14009639620780945, -0.10824570059776306, 0.25450342893600464, -0.23585987091064453, -0.2938600778579712, 0.2325538694858551, -0.34849482774734497, 0.28062617778778076, -0.14337541162967682, -0.19273018836975098, 0.04639894887804985, -0.08668200671672821, 0.15603509545326233, -0.22872240841388702, 0.0731348842382431, 0.09576323628425598, 0.056876204907894135, 0.13810372352600098, -0.23188383877277374, -0.15370002388954163, 0.4277762472629547, 0.021162625402212143, -0.36206841468811035, -0.08203316479921341, -0.0373365581035614, -0.01483338326215744, -0.12812647223472595, 0.04811490327119827, -0.1951628476381302, -0.19833332300186157, -0.11311034858226776, 0.2236144244670868, -0.07423479855060577, -0.31547215580940247, 0.15182648599147797, -0.2507014870643616, -0.27370598912239075, 0.3905722498893738, -0.1238660216331482, -0.3739266097545624, -0.0774783045053482, 0.22042572498321533, 0.1755121350288391, 0.07899563759565353, 0.41065242886543274, 0.3367045223712921, -0.06407319754362106, -0.31330421566963196, -0.23844754695892334, 0.1598052829504013, -0.4164750874042511, 0.1772855818271637, -0.14357732236385345, 0.15152166783809662, -0.027346109971404076, 0.31647586822509766, 0.06300044804811478, 0.12059514969587326, 0.020655687898397446, -0.29400140047073364, -0.21536700427532196, -0.0177849680185318, -0.0637846440076828, 0.21608193218708038, 0.201247900724411, 0.26182764768600464, 0.028204241767525673, 0.3244510591030121, -0.32827842235565186, 0.23353911936283112, -0.20574775338172913, 0.13083893060684204, 0.051371484994888306, -0.13134899735450745, 0.08273883163928986, 0.2397824078798294, 0.09755858778953552, 0.2197272628545761, -0.16471785306930542, -0.26122236251831055, -0.22638416290283203, 0.0987546294927597, -0.020842209458351135, 0.020225128158926964, -0.14770355820655823, -0.13346391916275024, 0.1280263066291809, -0.018376989290118217, 0.42898374795913696, 0.22844859957695007, -0.16439737379550934, 0.10616239160299301, 0.1367550939321518, 0.16482113301753998, -0.08188009262084961, 0.17027007043361664, 0.00027277320623397827, -0.09964263439178467, 0.18882577121257782, 0.18288186192512512, -0.0026519594248384237, 0.039650991559028625, -0.29793092608451843, -0.18287792801856995, 0.4134567975997925, 0.15602678060531616, 0.0929490178823471, -0.385153591632843, -0.2239554524421692, 0.0314510352909565, 0.4500083327293396, 0.31337395310401917, -0.3114968240261078, -0.0574880987405777, -0.037050072103738785, 0.28020843863487244, -0.18614540994167328, -0.02526070363819599, -0.0004438776522874832, -0.19825361669063568, 0.0170283280313015, 0.37084487080574036, 0.32221439480781555, 0.0491982102394104, -0.02571709454059601, 0.15775173902511597, 0.37087035179138184, -0.386102557182312, 0.2404293417930603, -0.004391554743051529, -0.12606921792030334, 0.12737436592578888, 0.4078048765659332, 0.22648684680461884, 0.0797453299164772, 0.1788531243801117, 0.09110379219055176, 0.18546351790428162, -0.030167318880558014, -0.14113080501556396, 0.11168400943279266, -0.30865907669067383, -0.03811248019337654, 0.20166844129562378, -0.22635546326637268, -0.12448675185441971, -0.21199730038642883, -0.0688009187579155, -0.18714018166065216, -0.22876451909542084, -0.36810755729675293, 0.26766419410705566, -0.3974693715572357, -0.048106543719768524, 0.10963115096092224, -0.14428061246871948, 0.1277998834848404, 0.20107057690620422, 0.11405643820762634, 0.13477319478988647, 0.4494636356830597, 0.13311415910720825, -0.2817562222480774, -0.11044730246067047, -0.31635671854019165, 0.27165788412094116, 0.1550411731004715, -0.31638503074645996, 0.28327229619026184, 0.34186986088752747, -0.05049799382686615, -0.23707422614097595, 0.5526759028434753, 0.652224600315094, 0.3537180423736572, -0.14521880447864532, 0.007220521103590727, 0.03287339583039284, 0.13185739517211914, -0.08332981169223785, 0.09240254014730453, 0.13208022713661194, 0.27384084463119507, 0.3750731348991394, 0.16277652978897095, -0.1621033251285553, 0.15090109407901764, 0.2157590091228485, 0.17375175654888153, -0.26355329155921936, 0.2917875349521637, -0.047565676271915436, -0.07093432545661926, -0.06877828389406204, 0.010969042778015137, -0.3325086534023285, 0.116724394261837, 0.47250834107398987, -0.09931293874979019, 0.2256487011909485, 0.00025749183259904385, 0.12229226529598236, 0.011699729599058628, 0.3831607401371002, 0.1213119849562645, 0.10068702697753906, -0.6743172407150269, 0.06177964806556702, -0.45722588896751404, 0.2957109808921814, -0.14188705384731293, 0.19633294641971588, -0.043055396527051926, 0.10472260415554047, -0.29694801568984985, -0.06525279581546783, 0.2955666184425354, -0.04077872633934021, 0.07654134184122086, 0.46357259154319763, -0.5969396829605103, 0.04950476437807083, -0.33520740270614624, -0.12624166905879974, 0.34555187821388245, -0.46870508790016174, 0.21943369507789612, -0.15224914252758026, 0.09161026030778885, 0.11633817106485367, -0.003638826310634613, 0.30936112999916077, 0.12445277720689774, 0.5834567546844482, 0.17503702640533447, 0.6061416864395142, -0.12605205178260803, 0.13127277791500092, -0.11315910518169403, -0.41336819529533386, -0.3300965130329132, -0.006952628493309021, 0.14930061995983124, 0.10661029815673828, -0.07569309324026108, -0.09274783730506897, -0.33851197361946106, -0.15237346291542053, 0.026059381663799286, -0.13960659503936768, -0.04959585517644882, 0.040064506232738495, 0.0016714148223400116, 0.04849869757890701, 0.1314326673746109, 0.28827497363090515, 0.2544393241405487, 0.2327960878610611, -0.43480873107910156, -0.3158879578113556, 0.5066921710968018, -0.20325948297977448, -0.5028805732727051, -0.36840829253196716, 0.3902992010116577, -0.02608831226825714, 0.08401516824960709, -0.6257053017616272, 0.13618621230125427, 0.3196176588535309, -0.07806531339883804, -0.19408409297466278, 0.16662894189357758, 0.034007832407951355, -0.15274186432361603, 0.1009976863861084, -0.04395293444395065, 0.04539444297552109, -0.36369356513023376, 0.027707714587450027, -0.06068098172545433 ]
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.577912449836731, -0.08100040256977081, -0.0453646220266819, 0.4501569867134094, 0.24596241116523743, 0.013975448906421661, 0.5565323233604431, 0.2723817825317383, 0.18437139689922333, 0.19074338674545288, -0.03117806650698185, 0.14643485844135284, 0.021242927759885788, 0.1441880613565445, -0.08855104446411133, 0.023560088127851486, 0.13091644644737244, -0.22574102878570557, -0.39687949419021606, -0.02036314457654953, -0.24068209528923035, 0.1446247696876526, 0.08555051684379578, 0.19327132403850555, -0.5113252401351929, -0.3433854877948761, -0.05417586863040924, 0.05579286813735962, 0.25900378823280334, -0.06713250279426575, 0.16646315157413483, 0.28593847155570984, -0.011623963713645935, 0.8678801655769348, -0.00010900416236836463, 0.13913528621196747, 0.12896734476089478, 0.11097230017185211, -0.06344620883464813, -0.22727154195308685, 0.03308200091123581, -0.10797476768493652, 0.1186942383646965, -0.31377869844436646, 0.1189500167965889, 0.05849926546216011, -0.030055562034249306, -0.2093542218208313, 0.5382676124572754, 0.07361049205064774, 0.2384031116962433, 0.38196924328804016, -0.30659669637680054, -0.22970764338970184, 0.18424606323242188, 0.05697937309741974, 0.0860358327627182, 0.07030672580003738, 0.10061492770910263, -0.16042760014533997, -0.02435395121574402, 0.42982685565948486, -0.12887467443943024, 0.2059703916311264, -0.023134902119636536, 0.08696054667234421, 0.10513922572135925, -0.5513930320739746, 0.07672523707151413, 0.06888936460018158, -0.011532895267009735, -0.3123030364513397, -0.3542192876338959, -0.34734979271888733, -0.06392675638198853, -0.25516510009765625, 0.09282150119543076, 0.34526675939559937, -0.20339567959308624, -0.1923070102930069, -0.09205156564712524, 0.1867489069700241, -0.0755043476819992, -0.1349962204694748, 0.24153748154640198, 0.33065265417099, 0.08305129408836365, 0.23875287175178528, 0.06923162192106247, 0.09273304045200348, 0.32804885506629944, -0.16129538416862488, -0.1014363169670105, -0.07755289226770401, -0.6200733780860901, 0.045745573937892914, -0.016057416796684265, -0.46522215008735657, 0.18437448143959045, -0.18587324023246765, -0.1885090470314026, 0.049986518919467926, 0.1717098355293274, 0.10315178334712982, 0.29897812008857727, 0.09600159525871277, -0.31774482131004333, 0.2705480456352234, 0.3438621759414673, 0.13319797813892365, -0.5029969215393066, 0.06527428328990936, -0.015614356845617294, -0.2567528486251831, 0.217610165476799, 0.18733447790145874, 0.24145804345607758, -0.08298873156309128, -0.35721930861473083, -0.05231395363807678, -0.05111780762672424, -0.055852316319942474, -0.10141461342573166, 0.4524843096733093, 0.17778973281383514, 0.15677329897880554, 0.09131310880184174, 0.1969439536333084, -0.18229226768016815, 0.06248718872666359, -0.30123069882392883, -0.02907540649175644, -0.014692053198814392, 0.21433359384536743, 0.11573867499828339, -0.06431445479393005, 0.22488534450531006, 0.3379441201686859, 0.049889061599969864, -0.4685385823249817, 0.2624688446521759, -0.3657267093658447, -0.24716585874557495, 0.19613444805145264, 0.18517911434173584, 0.13720640540122986, -0.1051604151725769, 0.3842993974685669, 0.013487808406352997, 0.25873303413391113, -0.3288046419620514, -0.13939523696899414, 0.08096742630004883, 0.2727389335632324, 0.013745501637458801, 0.11527781933546066, -0.3554980754852295, 0.11369092762470245, 0.3186282515525818, -0.041669487953186035, 0.1086386889219284, -0.37206417322158813, -0.3164128363132477, -0.1393730342388153, -0.020543565973639488, 0.5279045701026917, 0.0768129974603653, 0.026820816099643707, 0.17709270119667053, -0.10901115834712982, 0.09156708419322968, 0.3510977327823639, -0.34232333302497864, 0.49661704897880554, -0.34933146834373474, 0.12881812453269958, 0.24405086040496826, -0.37196341156959534, -0.15167200565338135, 0.3383844196796417, -0.16466529667377472, 0.12522011995315552, 0.21128804981708527, -0.05685531347990036, 0.21223385632038116, -0.13592121005058289, -0.008483916521072388, 0.14918860793113708, -0.1079862117767334, 0.4015439748764038, -0.19186118245124817, -0.28391534090042114, 0.04894975572824478, 0.16889318823814392, 0.32238054275512695, -0.09399759024381638, 0.026982299983501434, -0.2874779999256134, 0.3875821828842163, -0.3304333984851837, -0.07319258898496628, 0.21585291624069214, -0.010299701243638992, 0.07953567802906036, 0.08106514066457748, -0.10964730381965637, -0.5169203877449036, 0.1978815197944641, -0.362487256526947, 0.043249309062957764, 0.034229278564453125, -0.19916096329689026, 0.10673689842224121, -0.041770849376916885, -0.2488536387681961, -0.18883025646209717, 0.17062771320343018, 0.23171351850032806, -0.15026745200157166, -0.1181374043226242, -0.14735937118530273, 0.3599052429199219, -0.1582813560962677, 0.023461507633328438, -0.002393500879406929, 0.17053668200969696, -0.1951899528503418, -0.2185281664133072, 0.11620935797691345, -0.0603485032916069, 0.4591342508792877, -0.1816609650850296, -0.16463875770568848, 0.23448187112808228, 0.19793623685836792, 0.31514453887939453, -0.06082979589700699, 0.0168905109167099, 0.1874208301305771, 0.1556905061006546, -0.0017909351736307144, 0.1425168812274933, 0.26406481862068176, -0.1452895700931549, 0.09745564311742783, 0.3178670406341553, 0.0033608414232730865, 0.1383698284626007, 0.059060513973236084, -0.22330613434314728, 0.19342398643493652, -0.12333853542804718, 0.18917910754680634, 0.12245795130729675, 0.22531020641326904, 0.1255555897951126, 0.016756635159254074, -0.08165853470563889, -0.5741452574729919, 0.08364316821098328, 0.37755849957466125, 0.16694191098213196, 0.07349486649036407, 0.07330936938524246, -0.04749010503292084, 0.02278875932097435, -0.16829298436641693, 0.29985150694847107, 0.5353222489356995, 0.1349109560251236, 0.045723993331193924, 0.08820874243974686, -0.14512662589550018, -0.08921890705823898, 0.06667706370353699, 0.154605433344841, 0.19488349556922913, 0.5548343658447266, 0.19949260354042053, -0.0699804276227951, -0.28036218881607056, -0.11192671954631805, 0.2671934962272644, 0.09417491406202316, -0.37482312321662903, 0.18501581251621246, 0.12741424143314362, -0.17477929592132568, -0.4213630259037018, 0.005404486320912838, -0.03352278843522072, -0.14709442853927612, -0.039852872490882874, 0.4568403363227844, -0.1997355818748474, 0.3671450912952423, -0.02992819994688034, 0.15714746713638306, -0.1867973357439041, 0.2361011654138565, -0.14711648225784302, -0.07119865715503693, -0.11414838582277298, -0.011395329609513283, 0.2849556505680084, 0.06694024056196213, 0.3187503516674042, 0.07194386422634125, -0.31695228815078735, -0.35995641350746155, -0.0033943727612495422, 0.07836996018886566, 0.00177789106965065, 0.4231901466846466, -0.08440478146076202, -0.19659321010112762, 0.08084786683320999, -0.4469999372959137, 0.20245444774627686, -0.3591766953468323, -0.07020293176174164, -0.13277652859687805, -0.22643831372261047, -0.06717534363269806, -0.17661410570144653, -0.3789290487766266, -0.2513657808303833, -0.26769042015075684, -0.09061826765537262, -0.17275187373161316, 0.21168938279151917, 0.0763649269938469, -0.14113682508468628, -0.04005495831370354, 0.15371285378932953, -0.004669953137636185, -0.3079814910888672, -0.3230587840080261, 0.06932723522186279, -0.18935593962669373, -0.32065993547439575, -0.08726805448532104, -0.14780887961387634, 0.0682700127363205, 0.22674396634101868, -0.49165642261505127, -0.355716735124588, -0.10712815821170807, 0.05779549852013588, -0.1461234986782074, -0.03710446506738663, 0.050697099417448044, 0.0610223226249218, -0.13800616562366486, -0.11718853563070297, -0.17283855378627777, 0.20160558819770813, -0.03128303587436676, 0.005255602300167084, -0.16597992181777954, 0.2671525478363037, -0.15802597999572754, 0.6628251075744629, 0.24492686986923218, -0.06110243871808052, 0.32978928089141846, -0.14197108149528503, 0.07865571975708008, -0.018279895186424255, -0.4407641887664795, -0.06863132864236832, -0.4300888478755951, -0.23295357823371887, 0.1423811912536621, -0.3390010595321655, -0.16552840173244476, -0.0883626937866211, 0.02078571915626526, -0.3483385443687439, -0.31115642189979553, 0.10517837852239609, -0.1568959802389145, 0.3320012390613556, 0.047318924218416214, 0.16082271933555603, 0.0032934360206127167, 0.07313021272420883, 0.2852943539619446, 0.0372195839881897, 0.20852869749069214, -0.18799574673175812, -0.03207508474588394, 0.07562828809022903, -0.19160211086273193, 0.3207660913467407, 0.09924565255641937, 0.18817687034606934, -0.09984832257032394, 0.2111596167087555, 0.017397597432136536, -0.11549437791109085, 0.8625521063804626, -0.19443684816360474, 0.32594943046569824, 0.19437742233276367, -0.3524225056171417, -0.0848691388964653, -0.19156941771507263, -0.35499250888824463, -0.21128718554973602, 0.25831732153892517, 0.6643008589744568, -0.32180550694465637, -0.12378297001123428, 0.14336353540420532, -0.02083767205476761, -0.2824379503726959, -0.31510594487190247, -0.16054289042949677, -0.3001243770122528, -0.2805776298046112, 0.17587736248970032, -0.09049968421459198, 0.12028855830430984, -0.5292025208473206, -0.083871990442276, -0.18149130046367645, 0.20682555437088013, -0.010572507977485657, 0.05884348228573799, 0.28042131662368774, -0.060416631400585175, 0.4039420485496521, 0.12626102566719055, -0.030157513916492462, 0.27479708194732666, 0.4463305175304413, 0.02010849490761757, -0.277025043964386, 0.001954236999154091, 0.04634151980280876, 0.08977269381284714, 0.4556974172592163, 0.027261029928922653, 0.13520967960357666, 0.06710018217563629, 0.2680855989456177, -0.06722424179315567, 0.17809094488620758, 0.38363292813301086, 0.21999990940093994, -0.19891104102134705, -0.3477310240268707, 0.09311118721961975, 0.23563586175441742, -0.13195542991161346, 0.2889429032802582, -0.5127376317977905, -0.20680764317512512, 0.30260103940963745, -0.0046670883893966675, 0.6622439622879028, 0.014262951910495758, 0.09115386009216309, 0.30842268466949463, -0.30280640721321106, 0.28654560446739197, -0.2150484323501587, 0.32217109203338623, -0.5821488499641418, -0.26835161447525024, 0.11587277054786682, -0.1270325928926468, -0.07524818927049637, 0.05267689749598503, -0.1140708178281784, 0.3120553493499756, -0.0008431598544120789, 0.032436639070510864, -0.24797220528125763, 0.2446669042110443, 0.006566119380295277, -0.319852352142334, 0.05312280356884003, 0.1187562346458435, -0.29927051067352295, 0.25692689418792725, -0.14009639620780945, -0.10824570059776306, 0.25450342893600464, -0.23585987091064453, -0.2938600778579712, 0.2325538694858551, -0.34849482774734497, 0.28062617778778076, -0.14337541162967682, -0.19273018836975098, 0.04639894887804985, -0.08668200671672821, 0.15603509545326233, -0.22872240841388702, 0.0731348842382431, 0.09576323628425598, 0.056876204907894135, 0.13810372352600098, -0.23188383877277374, -0.15370002388954163, 0.4277762472629547, 0.021162625402212143, -0.36206841468811035, -0.08203316479921341, -0.0373365581035614, -0.01483338326215744, -0.12812647223472595, 0.04811490327119827, -0.1951628476381302, -0.19833332300186157, -0.11311034858226776, 0.2236144244670868, -0.07423479855060577, -0.31547215580940247, 0.15182648599147797, -0.2507014870643616, -0.27370598912239075, 0.3905722498893738, -0.1238660216331482, -0.3739266097545624, -0.0774783045053482, 0.22042572498321533, 0.1755121350288391, 0.07899563759565353, 0.41065242886543274, 0.3367045223712921, -0.06407319754362106, -0.31330421566963196, -0.23844754695892334, 0.1598052829504013, -0.4164750874042511, 0.1772855818271637, -0.14357732236385345, 0.15152166783809662, -0.027346109971404076, 0.31647586822509766, 0.06300044804811478, 0.12059514969587326, 0.020655687898397446, -0.29400140047073364, -0.21536700427532196, -0.0177849680185318, -0.0637846440076828, 0.21608193218708038, 0.201247900724411, 0.26182764768600464, 0.028204241767525673, 0.3244510591030121, -0.32827842235565186, 0.23353911936283112, -0.20574775338172913, 0.13083893060684204, 0.051371484994888306, -0.13134899735450745, 0.08273883163928986, 0.2397824078798294, 0.09755858778953552, 0.2197272628545761, -0.16471785306930542, -0.26122236251831055, -0.22638416290283203, 0.0987546294927597, -0.020842209458351135, 0.020225128158926964, -0.14770355820655823, -0.13346391916275024, 0.1280263066291809, -0.018376989290118217, 0.42898374795913696, 0.22844859957695007, -0.16439737379550934, 0.10616239160299301, 0.1367550939321518, 0.16482113301753998, -0.08188009262084961, 0.17027007043361664, 0.00027277320623397827, -0.09964263439178467, 0.18882577121257782, 0.18288186192512512, -0.0026519594248384237, 0.039650991559028625, -0.29793092608451843, -0.18287792801856995, 0.4134567975997925, 0.15602678060531616, 0.0929490178823471, -0.385153591632843, -0.2239554524421692, 0.0314510352909565, 0.4500083327293396, 0.31337395310401917, -0.3114968240261078, -0.0574880987405777, -0.037050072103738785, 0.28020843863487244, -0.18614540994167328, -0.02526070363819599, -0.0004438776522874832, -0.19825361669063568, 0.0170283280313015, 0.37084487080574036, 0.32221439480781555, 0.0491982102394104, -0.02571709454059601, 0.15775173902511597, 0.37087035179138184, -0.386102557182312, 0.2404293417930603, -0.004391554743051529, -0.12606921792030334, 0.12737436592578888, 0.4078048765659332, 0.22648684680461884, 0.0797453299164772, 0.1788531243801117, 0.09110379219055176, 0.18546351790428162, -0.030167318880558014, -0.14113080501556396, 0.11168400943279266, -0.30865907669067383, -0.03811248019337654, 0.20166844129562378, -0.22635546326637268, -0.12448675185441971, -0.21199730038642883, -0.0688009187579155, -0.18714018166065216, -0.22876451909542084, -0.36810755729675293, 0.26766419410705566, -0.3974693715572357, -0.048106543719768524, 0.10963115096092224, -0.14428061246871948, 0.1277998834848404, 0.20107057690620422, 0.11405643820762634, 0.13477319478988647, 0.4494636356830597, 0.13311415910720825, -0.2817562222480774, -0.11044730246067047, -0.31635671854019165, 0.27165788412094116, 0.1550411731004715, -0.31638503074645996, 0.28327229619026184, 0.34186986088752747, -0.05049799382686615, -0.23707422614097595, 0.5526759028434753, 0.652224600315094, 0.3537180423736572, -0.14521880447864532, 0.007220521103590727, 0.03287339583039284, 0.13185739517211914, -0.08332981169223785, 0.09240254014730453, 0.13208022713661194, 0.27384084463119507, 0.3750731348991394, 0.16277652978897095, -0.1621033251285553, 0.15090109407901764, 0.2157590091228485, 0.17375175654888153, -0.26355329155921936, 0.2917875349521637, -0.047565676271915436, -0.07093432545661926, -0.06877828389406204, 0.010969042778015137, -0.3325086534023285, 0.116724394261837, 0.47250834107398987, -0.09931293874979019, 0.2256487011909485, 0.00025749183259904385, 0.12229226529598236, 0.011699729599058628, 0.3831607401371002, 0.1213119849562645, 0.10068702697753906, -0.6743172407150269, 0.06177964806556702, -0.45722588896751404, 0.2957109808921814, -0.14188705384731293, 0.19633294641971588, -0.043055396527051926, 0.10472260415554047, -0.29694801568984985, -0.06525279581546783, 0.2955666184425354, -0.04077872633934021, 0.07654134184122086, 0.46357259154319763, -0.5969396829605103, 0.04950476437807083, -0.33520740270614624, -0.12624166905879974, 0.34555187821388245, -0.46870508790016174, 0.21943369507789612, -0.15224914252758026, 0.09161026030778885, 0.11633817106485367, -0.003638826310634613, 0.30936112999916077, 0.12445277720689774, 0.5834567546844482, 0.17503702640533447, 0.6061416864395142, -0.12605205178260803, 0.13127277791500092, -0.11315910518169403, -0.41336819529533386, -0.3300965130329132, -0.006952628493309021, 0.14930061995983124, 0.10661029815673828, -0.07569309324026108, -0.09274783730506897, -0.33851197361946106, -0.15237346291542053, 0.026059381663799286, -0.13960659503936768, -0.04959585517644882, 0.040064506232738495, 0.0016714148223400116, 0.04849869757890701, 0.1314326673746109, 0.28827497363090515, 0.2544393241405487, 0.2327960878610611, -0.43480873107910156, -0.3158879578113556, 0.5066921710968018, -0.20325948297977448, -0.5028805732727051, -0.36840829253196716, 0.3902992010116577, -0.02608831226825714, 0.08401516824960709, -0.6257053017616272, 0.13618621230125427, 0.3196176588535309, -0.07806531339883804, -0.19408409297466278, 0.16662894189357758, 0.034007832407951355, -0.15274186432361603, 0.1009976863861084, -0.04395293444395065, 0.04539444297552109, -0.36369356513023376, 0.027707714587450027, -0.06068098172545433 ]
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.577912449836731, -0.08100040256977081, -0.0453646220266819, 0.4501569867134094, 0.24596241116523743, 0.013975448906421661, 0.5565323233604431, 0.2723817825317383, 0.18437139689922333, 0.19074338674545288, -0.03117806650698185, 0.14643485844135284, 0.021242927759885788, 0.1441880613565445, -0.08855104446411133, 0.023560088127851486, 0.13091644644737244, -0.22574102878570557, -0.39687949419021606, -0.02036314457654953, -0.24068209528923035, 0.1446247696876526, 0.08555051684379578, 0.19327132403850555, -0.5113252401351929, -0.3433854877948761, -0.05417586863040924, 0.05579286813735962, 0.25900378823280334, -0.06713250279426575, 0.16646315157413483, 0.28593847155570984, -0.011623963713645935, 0.8678801655769348, -0.00010900416236836463, 0.13913528621196747, 0.12896734476089478, 0.11097230017185211, -0.06344620883464813, -0.22727154195308685, 0.03308200091123581, -0.10797476768493652, 0.1186942383646965, -0.31377869844436646, 0.1189500167965889, 0.05849926546216011, -0.030055562034249306, -0.2093542218208313, 0.5382676124572754, 0.07361049205064774, 0.2384031116962433, 0.38196924328804016, -0.30659669637680054, -0.22970764338970184, 0.18424606323242188, 0.05697937309741974, 0.0860358327627182, 0.07030672580003738, 0.10061492770910263, -0.16042760014533997, -0.02435395121574402, 0.42982685565948486, -0.12887467443943024, 0.2059703916311264, -0.023134902119636536, 0.08696054667234421, 0.10513922572135925, -0.5513930320739746, 0.07672523707151413, 0.06888936460018158, -0.011532895267009735, -0.3123030364513397, -0.3542192876338959, -0.34734979271888733, -0.06392675638198853, -0.25516510009765625, 0.09282150119543076, 0.34526675939559937, -0.20339567959308624, -0.1923070102930069, -0.09205156564712524, 0.1867489069700241, -0.0755043476819992, -0.1349962204694748, 0.24153748154640198, 0.33065265417099, 0.08305129408836365, 0.23875287175178528, 0.06923162192106247, 0.09273304045200348, 0.32804885506629944, -0.16129538416862488, -0.1014363169670105, -0.07755289226770401, -0.6200733780860901, 0.045745573937892914, -0.016057416796684265, -0.46522215008735657, 0.18437448143959045, -0.18587324023246765, -0.1885090470314026, 0.049986518919467926, 0.1717098355293274, 0.10315178334712982, 0.29897812008857727, 0.09600159525871277, -0.31774482131004333, 0.2705480456352234, 0.3438621759414673, 0.13319797813892365, -0.5029969215393066, 0.06527428328990936, -0.015614356845617294, -0.2567528486251831, 0.217610165476799, 0.18733447790145874, 0.24145804345607758, -0.08298873156309128, -0.35721930861473083, -0.05231395363807678, -0.05111780762672424, -0.055852316319942474, -0.10141461342573166, 0.4524843096733093, 0.17778973281383514, 0.15677329897880554, 0.09131310880184174, 0.1969439536333084, -0.18229226768016815, 0.06248718872666359, -0.30123069882392883, -0.02907540649175644, -0.014692053198814392, 0.21433359384536743, 0.11573867499828339, -0.06431445479393005, 0.22488534450531006, 0.3379441201686859, 0.049889061599969864, -0.4685385823249817, 0.2624688446521759, -0.3657267093658447, -0.24716585874557495, 0.19613444805145264, 0.18517911434173584, 0.13720640540122986, -0.1051604151725769, 0.3842993974685669, 0.013487808406352997, 0.25873303413391113, -0.3288046419620514, -0.13939523696899414, 0.08096742630004883, 0.2727389335632324, 0.013745501637458801, 0.11527781933546066, -0.3554980754852295, 0.11369092762470245, 0.3186282515525818, -0.041669487953186035, 0.1086386889219284, -0.37206417322158813, -0.3164128363132477, -0.1393730342388153, -0.020543565973639488, 0.5279045701026917, 0.0768129974603653, 0.026820816099643707, 0.17709270119667053, -0.10901115834712982, 0.09156708419322968, 0.3510977327823639, -0.34232333302497864, 0.49661704897880554, -0.34933146834373474, 0.12881812453269958, 0.24405086040496826, -0.37196341156959534, -0.15167200565338135, 0.3383844196796417, -0.16466529667377472, 0.12522011995315552, 0.21128804981708527, -0.05685531347990036, 0.21223385632038116, -0.13592121005058289, -0.008483916521072388, 0.14918860793113708, -0.1079862117767334, 0.4015439748764038, -0.19186118245124817, -0.28391534090042114, 0.04894975572824478, 0.16889318823814392, 0.32238054275512695, -0.09399759024381638, 0.026982299983501434, -0.2874779999256134, 0.3875821828842163, -0.3304333984851837, -0.07319258898496628, 0.21585291624069214, -0.010299701243638992, 0.07953567802906036, 0.08106514066457748, -0.10964730381965637, -0.5169203877449036, 0.1978815197944641, -0.362487256526947, 0.043249309062957764, 0.034229278564453125, -0.19916096329689026, 0.10673689842224121, -0.041770849376916885, -0.2488536387681961, -0.18883025646209717, 0.17062771320343018, 0.23171351850032806, -0.15026745200157166, -0.1181374043226242, -0.14735937118530273, 0.3599052429199219, -0.1582813560962677, 0.023461507633328438, -0.002393500879406929, 0.17053668200969696, -0.1951899528503418, -0.2185281664133072, 0.11620935797691345, -0.0603485032916069, 0.4591342508792877, -0.1816609650850296, -0.16463875770568848, 0.23448187112808228, 0.19793623685836792, 0.31514453887939453, -0.06082979589700699, 0.0168905109167099, 0.1874208301305771, 0.1556905061006546, -0.0017909351736307144, 0.1425168812274933, 0.26406481862068176, -0.1452895700931549, 0.09745564311742783, 0.3178670406341553, 0.0033608414232730865, 0.1383698284626007, 0.059060513973236084, -0.22330613434314728, 0.19342398643493652, -0.12333853542804718, 0.18917910754680634, 0.12245795130729675, 0.22531020641326904, 0.1255555897951126, 0.016756635159254074, -0.08165853470563889, -0.5741452574729919, 0.08364316821098328, 0.37755849957466125, 0.16694191098213196, 0.07349486649036407, 0.07330936938524246, -0.04749010503292084, 0.02278875932097435, -0.16829298436641693, 0.29985150694847107, 0.5353222489356995, 0.1349109560251236, 0.045723993331193924, 0.08820874243974686, -0.14512662589550018, -0.08921890705823898, 0.06667706370353699, 0.154605433344841, 0.19488349556922913, 0.5548343658447266, 0.19949260354042053, -0.0699804276227951, -0.28036218881607056, -0.11192671954631805, 0.2671934962272644, 0.09417491406202316, -0.37482312321662903, 0.18501581251621246, 0.12741424143314362, -0.17477929592132568, -0.4213630259037018, 0.005404486320912838, -0.03352278843522072, -0.14709442853927612, -0.039852872490882874, 0.4568403363227844, -0.1997355818748474, 0.3671450912952423, -0.02992819994688034, 0.15714746713638306, -0.1867973357439041, 0.2361011654138565, -0.14711648225784302, -0.07119865715503693, -0.11414838582277298, -0.011395329609513283, 0.2849556505680084, 0.06694024056196213, 0.3187503516674042, 0.07194386422634125, -0.31695228815078735, -0.35995641350746155, -0.0033943727612495422, 0.07836996018886566, 0.00177789106965065, 0.4231901466846466, -0.08440478146076202, -0.19659321010112762, 0.08084786683320999, -0.4469999372959137, 0.20245444774627686, -0.3591766953468323, -0.07020293176174164, -0.13277652859687805, -0.22643831372261047, -0.06717534363269806, -0.17661410570144653, -0.3789290487766266, -0.2513657808303833, -0.26769042015075684, -0.09061826765537262, -0.17275187373161316, 0.21168938279151917, 0.0763649269938469, -0.14113682508468628, -0.04005495831370354, 0.15371285378932953, -0.004669953137636185, -0.3079814910888672, -0.3230587840080261, 0.06932723522186279, -0.18935593962669373, -0.32065993547439575, -0.08726805448532104, -0.14780887961387634, 0.0682700127363205, 0.22674396634101868, -0.49165642261505127, -0.355716735124588, -0.10712815821170807, 0.05779549852013588, -0.1461234986782074, -0.03710446506738663, 0.050697099417448044, 0.0610223226249218, -0.13800616562366486, -0.11718853563070297, -0.17283855378627777, 0.20160558819770813, -0.03128303587436676, 0.005255602300167084, -0.16597992181777954, 0.2671525478363037, -0.15802597999572754, 0.6628251075744629, 0.24492686986923218, -0.06110243871808052, 0.32978928089141846, -0.14197108149528503, 0.07865571975708008, -0.018279895186424255, -0.4407641887664795, -0.06863132864236832, -0.4300888478755951, -0.23295357823371887, 0.1423811912536621, -0.3390010595321655, -0.16552840173244476, -0.0883626937866211, 0.02078571915626526, -0.3483385443687439, -0.31115642189979553, 0.10517837852239609, -0.1568959802389145, 0.3320012390613556, 0.047318924218416214, 0.16082271933555603, 0.0032934360206127167, 0.07313021272420883, 0.2852943539619446, 0.0372195839881897, 0.20852869749069214, -0.18799574673175812, -0.03207508474588394, 0.07562828809022903, -0.19160211086273193, 0.3207660913467407, 0.09924565255641937, 0.18817687034606934, -0.09984832257032394, 0.2111596167087555, 0.017397597432136536, -0.11549437791109085, 0.8625521063804626, -0.19443684816360474, 0.32594943046569824, 0.19437742233276367, -0.3524225056171417, -0.0848691388964653, -0.19156941771507263, -0.35499250888824463, -0.21128718554973602, 0.25831732153892517, 0.6643008589744568, -0.32180550694465637, -0.12378297001123428, 0.14336353540420532, -0.02083767205476761, -0.2824379503726959, -0.31510594487190247, -0.16054289042949677, -0.3001243770122528, -0.2805776298046112, 0.17587736248970032, -0.09049968421459198, 0.12028855830430984, -0.5292025208473206, -0.083871990442276, -0.18149130046367645, 0.20682555437088013, -0.010572507977485657, 0.05884348228573799, 0.28042131662368774, -0.060416631400585175, 0.4039420485496521, 0.12626102566719055, -0.030157513916492462, 0.27479708194732666, 0.4463305175304413, 0.02010849490761757, -0.277025043964386, 0.001954236999154091, 0.04634151980280876, 0.08977269381284714, 0.4556974172592163, 0.027261029928922653, 0.13520967960357666, 0.06710018217563629, 0.2680855989456177, -0.06722424179315567, 0.17809094488620758, 0.38363292813301086, 0.21999990940093994, -0.19891104102134705, -0.3477310240268707, 0.09311118721961975, 0.23563586175441742, -0.13195542991161346, 0.2889429032802582, -0.5127376317977905, -0.20680764317512512, 0.30260103940963745, -0.0046670883893966675, 0.6622439622879028, 0.014262951910495758, 0.09115386009216309, 0.30842268466949463, -0.30280640721321106, 0.28654560446739197, -0.2150484323501587, 0.32217109203338623, -0.5821488499641418, -0.26835161447525024, 0.11587277054786682, -0.1270325928926468, -0.07524818927049637, 0.05267689749598503, -0.1140708178281784, 0.3120553493499756, -0.0008431598544120789, 0.032436639070510864, -0.24797220528125763, 0.2446669042110443, 0.006566119380295277, -0.319852352142334, 0.05312280356884003, 0.1187562346458435, -0.29927051067352295, 0.25692689418792725, -0.14009639620780945, -0.10824570059776306, 0.25450342893600464, -0.23585987091064453, -0.2938600778579712, 0.2325538694858551, -0.34849482774734497, 0.28062617778778076, -0.14337541162967682, -0.19273018836975098, 0.04639894887804985, -0.08668200671672821, 0.15603509545326233, -0.22872240841388702, 0.0731348842382431, 0.09576323628425598, 0.056876204907894135, 0.13810372352600098, -0.23188383877277374, -0.15370002388954163, 0.4277762472629547, 0.021162625402212143, -0.36206841468811035, -0.08203316479921341, -0.0373365581035614, -0.01483338326215744, -0.12812647223472595, 0.04811490327119827, -0.1951628476381302, -0.19833332300186157, -0.11311034858226776, 0.2236144244670868, -0.07423479855060577, -0.31547215580940247, 0.15182648599147797, -0.2507014870643616, -0.27370598912239075, 0.3905722498893738, -0.1238660216331482, -0.3739266097545624, -0.0774783045053482, 0.22042572498321533, 0.1755121350288391, 0.07899563759565353, 0.41065242886543274, 0.3367045223712921, -0.06407319754362106, -0.31330421566963196, -0.23844754695892334, 0.1598052829504013, -0.4164750874042511, 0.1772855818271637, -0.14357732236385345, 0.15152166783809662, -0.027346109971404076, 0.31647586822509766, 0.06300044804811478, 0.12059514969587326, 0.020655687898397446, -0.29400140047073364, -0.21536700427532196, -0.0177849680185318, -0.0637846440076828, 0.21608193218708038, 0.201247900724411, 0.26182764768600464, 0.028204241767525673, 0.3244510591030121, -0.32827842235565186, 0.23353911936283112, -0.20574775338172913, 0.13083893060684204, 0.051371484994888306, -0.13134899735450745, 0.08273883163928986, 0.2397824078798294, 0.09755858778953552, 0.2197272628545761, -0.16471785306930542, -0.26122236251831055, -0.22638416290283203, 0.0987546294927597, -0.020842209458351135, 0.020225128158926964, -0.14770355820655823, -0.13346391916275024, 0.1280263066291809, -0.018376989290118217, 0.42898374795913696, 0.22844859957695007, -0.16439737379550934, 0.10616239160299301, 0.1367550939321518, 0.16482113301753998, -0.08188009262084961, 0.17027007043361664, 0.00027277320623397827, -0.09964263439178467, 0.18882577121257782, 0.18288186192512512, -0.0026519594248384237, 0.039650991559028625, -0.29793092608451843, -0.18287792801856995, 0.4134567975997925, 0.15602678060531616, 0.0929490178823471, -0.385153591632843, -0.2239554524421692, 0.0314510352909565, 0.4500083327293396, 0.31337395310401917, -0.3114968240261078, -0.0574880987405777, -0.037050072103738785, 0.28020843863487244, -0.18614540994167328, -0.02526070363819599, -0.0004438776522874832, -0.19825361669063568, 0.0170283280313015, 0.37084487080574036, 0.32221439480781555, 0.0491982102394104, -0.02571709454059601, 0.15775173902511597, 0.37087035179138184, -0.386102557182312, 0.2404293417930603, -0.004391554743051529, -0.12606921792030334, 0.12737436592578888, 0.4078048765659332, 0.22648684680461884, 0.0797453299164772, 0.1788531243801117, 0.09110379219055176, 0.18546351790428162, -0.030167318880558014, -0.14113080501556396, 0.11168400943279266, -0.30865907669067383, -0.03811248019337654, 0.20166844129562378, -0.22635546326637268, -0.12448675185441971, -0.21199730038642883, -0.0688009187579155, -0.18714018166065216, -0.22876451909542084, -0.36810755729675293, 0.26766419410705566, -0.3974693715572357, -0.048106543719768524, 0.10963115096092224, -0.14428061246871948, 0.1277998834848404, 0.20107057690620422, 0.11405643820762634, 0.13477319478988647, 0.4494636356830597, 0.13311415910720825, -0.2817562222480774, -0.11044730246067047, -0.31635671854019165, 0.27165788412094116, 0.1550411731004715, -0.31638503074645996, 0.28327229619026184, 0.34186986088752747, -0.05049799382686615, -0.23707422614097595, 0.5526759028434753, 0.652224600315094, 0.3537180423736572, -0.14521880447864532, 0.007220521103590727, 0.03287339583039284, 0.13185739517211914, -0.08332981169223785, 0.09240254014730453, 0.13208022713661194, 0.27384084463119507, 0.3750731348991394, 0.16277652978897095, -0.1621033251285553, 0.15090109407901764, 0.2157590091228485, 0.17375175654888153, -0.26355329155921936, 0.2917875349521637, -0.047565676271915436, -0.07093432545661926, -0.06877828389406204, 0.010969042778015137, -0.3325086534023285, 0.116724394261837, 0.47250834107398987, -0.09931293874979019, 0.2256487011909485, 0.00025749183259904385, 0.12229226529598236, 0.011699729599058628, 0.3831607401371002, 0.1213119849562645, 0.10068702697753906, -0.6743172407150269, 0.06177964806556702, -0.45722588896751404, 0.2957109808921814, -0.14188705384731293, 0.19633294641971588, -0.043055396527051926, 0.10472260415554047, -0.29694801568984985, -0.06525279581546783, 0.2955666184425354, -0.04077872633934021, 0.07654134184122086, 0.46357259154319763, -0.5969396829605103, 0.04950476437807083, -0.33520740270614624, -0.12624166905879974, 0.34555187821388245, -0.46870508790016174, 0.21943369507789612, -0.15224914252758026, 0.09161026030778885, 0.11633817106485367, -0.003638826310634613, 0.30936112999916077, 0.12445277720689774, 0.5834567546844482, 0.17503702640533447, 0.6061416864395142, -0.12605205178260803, 0.13127277791500092, -0.11315910518169403, -0.41336819529533386, -0.3300965130329132, -0.006952628493309021, 0.14930061995983124, 0.10661029815673828, -0.07569309324026108, -0.09274783730506897, -0.33851197361946106, -0.15237346291542053, 0.026059381663799286, -0.13960659503936768, -0.04959585517644882, 0.040064506232738495, 0.0016714148223400116, 0.04849869757890701, 0.1314326673746109, 0.28827497363090515, 0.2544393241405487, 0.2327960878610611, -0.43480873107910156, -0.3158879578113556, 0.5066921710968018, -0.20325948297977448, -0.5028805732727051, -0.36840829253196716, 0.3902992010116577, -0.02608831226825714, 0.08401516824960709, -0.6257053017616272, 0.13618621230125427, 0.3196176588535309, -0.07806531339883804, -0.19408409297466278, 0.16662894189357758, 0.034007832407951355, -0.15274186432361603, 0.1009976863861084, -0.04395293444395065, 0.04539444297552109, -0.36369356513023376, 0.027707714587450027, -0.06068098172545433 ]
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.17554034292697906, 0.10674974322319031, -0.11839999258518219, 0.4231293201446533, -0.14884310960769653, 0.2618185877799988, 0.23233486711978912, 0.39046841859817505, 0.36189988255500793, -0.0010754242539405823, -0.2331470102071762, -0.011689232662320137, 0.05897398665547371, 0.011106548830866814, -0.004620145075023174, -0.2025989592075348, -0.030890442430973053, -0.10218703746795654, 0.22759182751178741, 0.14214888215065002, -0.1725383698940277, 0.08829860389232635, -0.23013077676296234, -0.08973231911659241, 0.12763699889183044, -0.059687770903110504, 0.07231076061725616, 0.044310733675956726, 0.2043142020702362, -0.5446294546127319, -0.004885900765657425, -0.41250938177108765, 0.43554365634918213, 0.48830583691596985, -0.00011382166121620685, 0.05468274652957916, 0.3437696099281311, -0.027287807315587997, -0.3930952250957489, -0.43402403593063354, -0.33526545763015747, -0.2002715915441513, 0.05979765206575394, -0.2232361137866974, -0.08489856123924255, -0.2553311288356781, -0.1447223424911499, -0.3347807824611664, 0.16642746329307556, 0.5260618925094604, 0.1590859591960907, 0.171518012881279, 0.1333598494529724, 0.10606099665164948, 0.3838222920894623, -0.2292441874742508, -0.09833184629678726, 0.20208381116390228, 0.5291867256164551, 0.1876048445701599, -0.08444350212812424, 0.2945673167705536, -0.10385584831237793, -0.016902297735214233, 0.11823421716690063, -0.049525972455739975, 0.16961520910263062, -0.48212841153144836, 0.06597164273262024, 0.21157938241958618, 0.3448184132575989, -0.3105711042881012, -0.45238903164863586, -0.23776841163635254, -0.11796115338802338, -0.36982423067092896, 0.256572425365448, 0.21975213289260864, -0.19592376053333282, 0.12954409420490265, 0.11456518620252609, -0.08989709615707397, -0.03488908335566521, 0.36761271953582764, -0.30267566442489624, 0.39264652132987976, -0.07724925130605698, -0.029896162450313568, 0.11111889034509659, -0.14668665826320648, 0.08160281181335449, 0.002760550007224083, 0.05974624305963516, 0.21469168365001678, -0.34441497921943665, 0.20842742919921875, 0.07367996126413345, -0.1433289647102356, 0.014461979269981384, 0.08270598202943802, 0.2570372223854065, -0.034106701612472534, -0.05855681374669075, 0.06535450369119644, 0.3505265414714813, 0.18147124350070953, -0.10952597111463547, 0.09252007305622101, -0.010668881237506866, 0.30301395058631897, 0.093258798122406, 0.07785409688949585, 0.1683073341846466, -0.24323152005672455, 0.05308699980378151, -0.03705722838640213, 0.29295724630355835, -0.35235270857810974, -0.26580482721328735, 0.22610129415988922, -0.3138171136379242, -0.18328462541103363, 0.06555821001529694, 0.18177008628845215, -0.23921853303909302, -0.10058722645044327, 0.22534669935703278, 0.06798309087753296, -0.27737289667129517, -0.06339801102876663, -0.15481093525886536, 0.09354333579540253, -0.042112480849027634, 0.17697575688362122, 0.4418579041957855, -0.5744715929031372, 0.19781813025474548, 0.04378174990415573, 0.26527130603790283, -0.0362158939242363, 0.018835710361599922, -0.4248977303504944, 0.2650992274284363, 0.4377251863479614, 0.009678877890110016, 0.0718521773815155, 0.04581093415617943, 0.03132922947406769, -0.12997227907180786, 0.3096800148487091, -0.2886229455471039, -0.1968887895345688, -0.04325088858604431, 0.12648271024227142, 0.03784298896789551, 0.13400259613990784, -0.16358965635299683, 0.37658774852752686, 0.508718729019165, -0.11006966233253479, 0.05029009282588959, -0.1411714106798172, -0.27989208698272705, -0.0035946874413639307, 0.1736462563276291, 0.40149950981140137, -0.39678484201431274, -0.10556061565876007, 0.01849309541285038, 0.5653247237205505, -0.05604133754968643, 0.1985335499048233, -0.23158907890319824, 0.46273112297058105, -0.17153146862983704, 0.25838929414749146, 0.20304584503173828, -0.124312624335289, -0.19497328996658325, 0.11526645720005035, 0.23892773687839508, -0.014375668950378895, -0.05788082629442215, -0.17600727081298828, 0.46888217329978943, -0.13682042062282562, 0.6135948896408081, 0.3449413776397705, -0.04243826866149902, -0.09666160494089127, -0.34773099422454834, -0.11415163427591324, 0.19739684462547302, 0.16277654469013214, 0.0313844233751297, -0.04848629981279373, -0.009702451527118683, -0.2665255665779114, 0.07886917889118195, 0.1392223984003067, 0.023126190528273582, 0.3674280047416687, -0.6418521404266357, 0.0916571319103241, 0.2857530117034912, -0.23238646984100342, -0.13393226265907288, 0.12717998027801514, -0.12873995304107666, 0.27743470668792725, -0.31004518270492554, 0.18690228462219238, -0.48678264021873474, 0.01570584438741207, -0.13595595955848694, 0.14843682944774628, 0.06373381614685059, 0.01057407259941101, -0.13964511454105377, 0.22809772193431854, -0.25544530153274536, -0.14383625984191895, 0.0683840662240982, -0.033454351127147675, -0.6968353986740112, 0.2373887151479721, -0.22813381254673004, -0.13617797195911407, 0.15777184069156647, 0.10200808942317963, 0.14043071866035461, -0.11010493338108063, -0.1807851791381836, -0.020392566919326782, -0.12284015119075775, -0.17080320417881012, -0.34556230902671814, 0.32401159405708313, 0.3131725788116455, -0.31272321939468384, 0.2518361508846283, 0.4056278169155121, 0.270893931388855, -0.08362331986427307, 0.32617902755737305, 0.21316617727279663, -0.1609647125005722, 0.3445229232311249, -0.021799232810735703, -0.23699021339416504, 0.2463642656803131, 0.0210878886282444, -0.009829021990299225, -0.27968624234199524, 0.2190895676612854, -0.10459743440151215, 0.36465466022491455, 0.06167154014110565, -0.04770924523472786, -0.058135874569416046, 0.12344583868980408, -0.016147591173648834, 0.16917656362056732, 0.2042674422264099, -0.07382740825414658, -0.16804641485214233, -0.17174914479255676, -0.3292050361633301, 0.17327988147735596, 0.10771721601486206, -0.008946184068918228, -0.08340144902467728, 0.11579814553260803, -0.10582838952541351, 0.3423880338668823, 0.25527703762054443, 0.27361389994621277, 0.2762812077999115, 0.07832158356904984, 0.1315893679857254, -0.308240681886673, -0.42256152629852295, 0.014245366677641869, 0.2152881622314453, -0.4495733976364136, 0.4153725802898407, 0.17648988962173462, -0.37969449162483215, 0.03938129544258118, -0.6723880767822266, -0.20697471499443054, -0.23373334109783173, 0.020667193457484245, -0.1468476951122284, -0.24737271666526794, 0.07214677333831787, -0.11903922259807587, 0.09507140517234802, 0.21568681299686432, 0.001852409914135933, -0.01478290930390358, 0.09734314680099487, -0.3829994797706604, -0.0383325070142746, 0.25766265392303467, -0.03273950144648552, 0.09543944895267487, -0.09600640833377838, -0.15352778136730194, -0.18555499613285065, -0.0036093220114707947, 0.19153769314289093, 0.002951432019472122, 0.4744873344898224, 0.02145078033208847, 0.3548195958137512, -0.06784497946500778, -0.310896098613739, 0.14281056821346283, 0.2841091752052307, -0.0027113892138004303, 0.08354116976261139, 0.005191603675484657, 0.35172227025032043, 0.08209313452243805, -0.6314844489097595, -0.2765571177005768, -0.36638143658638, -0.28673362731933594, -0.05458793044090271, 0.2838810682296753, 0.31873762607574463, -0.07340431213378906, -0.10463865846395493, 0.22472192347049713, 0.315589040517807, -0.21777799725532532, -0.07066935300827026, 0.24448777735233307, -0.07770391553640366, -0.27150189876556396, -0.10348601639270782, -0.00886080414056778, 0.0229867585003376, 0.02250565215945244, -0.41858041286468506, 0.3741725981235504, -0.2116333246231079, -0.10998380184173584, -0.2799413502216339, 0.1427977830171585, 0.11958176642656326, -0.10572858154773712, -0.0864000990986824, 0.2175140082836151, -0.14573365449905396, -0.00834878534078598, -0.0701679214835167, 0.1588691771030426, 0.2455359697341919, 0.3019493520259857, -0.15066824853420258, 0.29199090600013733, -0.05869244039058685, -0.04008346423506737, 0.6439826488494873, 0.2175879180431366, 0.15140312910079956, -0.2557823061943054, -0.38731449842453003, -0.18647657334804535, 0.04465988278388977, -0.3228272795677185, 0.36793750524520874, 0.0021877363324165344, -0.48975589871406555, -0.2030830830335617, -0.3399737477302551, -0.42671310901641846, -0.19138193130493164, 0.20302550494670868, -0.15935786068439484, 0.2108832597732544, 0.023751582950353622, 0.042107611894607544, -0.06332330405712128, -0.1329178810119629, 0.10052894055843353, 0.03111003339290619, -0.0726407840847969, -0.002148430095985532, 0.26563704013824463, -0.203983873128891, -0.34775611758232117, 0.16208219528198242, 0.29846757650375366, 0.4872821867465973, -0.05551774054765701, -0.06227458268404007, 0.004819370806217194, 0.12489315867424011, 0.6233378648757935, 0.011480282992124557, 0.2188984751701355, 0.3644362986087799, 0.12619870901107788, -0.12526963651180267, -0.24629226326942444, -0.16772395372390747, 0.2955401837825775, 0.12968483567237854, 0.04694107919931412, -0.2580866813659668, 0.03343923017382622, 0.03490862622857094, 0.5183107852935791, -0.15026028454303741, -0.15030916035175323, -0.21349363029003143, -0.27028489112854004, -0.15763376653194427, 0.04899114742875099, 0.2762342095375061, 0.2790079414844513, 0.11639022082090378, 0.056556347757577896, 0.14498375356197357, -0.008267227560281754, 0.11823425441980362, 0.030252836644649506, 0.2791365385055542, -0.035413406789302826, 0.23166099190711975, -0.050524912774562836, 0.10223295539617538, 0.16998544335365295, 0.46335527300834656, -0.05410270765423775, -0.20497041940689087, 0.06265788525342941, 0.043911706656217575, -0.0007967203855514526, 0.2750030755996704, 0.023081686347723007, -0.07598844915628433, 0.10498134791851044, 0.07030925154685974, 0.05604090541601181, -0.2724573612213135, -0.09220609813928604, -0.022583698853850365, -0.5431325435638428, -0.4410661458969116, 0.470673143863678, -0.007925346493721008, -0.10150807350873947, 0.3908179700374603, -0.06704343855381012, -0.39138510823249817, 0.8489488959312439, -0.08483607321977615, 0.9151946902275085, -0.10683578252792358, 0.09122887253761292, -0.07293067872524261, 0.3846319317817688, 0.20642228424549103, 0.011528220027685165, 0.14567570388317108, -0.25253716111183167, -0.29845303297042847, -0.1454465389251709, -0.012256372720003128, -0.023269154131412506, 0.032876960933208466, -0.19933158159255981, 0.3208722770214081, -0.20072105526924133, -0.14268332719802856, 0.08737669140100479, -0.006708793342113495, -0.14240136742591858, -0.32569703459739685, -0.7548491358757019, 0.006100766360759735, -0.09250400960445404, 0.017759468406438828, -0.12836694717407227, -0.06477800011634827, -0.052277822047472, 0.071992889046669, -0.3233526945114136, 0.08261963725090027, -0.29264482855796814, 0.19160819053649902, -0.038314227014780045, 0.07863748073577881, 0.1929406374692917, -0.14051908254623413, 0.24496278166770935, 0.039020538330078125, -0.14847686886787415, -0.11007007956504822, 0.03024788573384285, -0.14441213011741638, 0.14833907783031464, -0.18722599744796753, 0.5013307332992554, -0.04426712542772293, -0.2843305468559265, 0.16052144765853882, -0.0077371797524392605, -0.17099249362945557, -0.11635327339172363, 0.3395330309867859, 0.11121911555528641, -0.3739171326160431, -0.24301324784755707, -0.1658259928226471, 0.12002943456172943, -0.11545108258724213, 0.11928251385688782, 0.19346319139003754, -0.18436220288276672, 0.11242202669382095, 0.1926916241645813, -0.4189246892929077, -0.12232428789138794, 0.4717426896095276, 0.24635562300682068, 0.1172112375497818, 0.39034920930862427, 0.6143896579742432, -0.1637527048587799, -0.06989964097738266, -0.18131601810455322, 0.10797135531902313, -0.42792630195617676, 0.16732752323150635, -0.0595003180205822, 0.025669842958450317, 0.005267540458589792, 0.5612247586250305, 0.23779042065143585, -0.022938869893550873, -0.1789638102054596, -0.6683356761932373, 0.17777949571609497, 0.30812084674835205, 0.07974660396575928, -0.030909549444913864, 0.19086474180221558, -0.19667959213256836, -0.059871792793273926, -0.1727062463760376, -0.27279186248779297, 0.13524042069911957, -0.3521452248096466, 0.3807979226112366, -0.5048586130142212, -0.021078355610370636, 0.16425874829292297, -0.07960794866085052, 0.05167890340089798, -0.04983796179294586, -0.11130287498235703, -0.23041388392448425, 0.05149134621024132, 0.11930027604103088, -0.13289138674736023, -0.2133135348558426, -0.36851829290390015, -0.24799112975597382, 0.055915508419275284, -0.1663176566362381, 0.09652648866176605, 0.2537267804145813, 0.08251053094863892, -0.06665556877851486, 0.17533206939697266, -0.20938289165496826, -0.0640968531370163, 0.23928207159042358, -0.10720723867416382, 0.2693236470222473, 0.18282359838485718, 0.2660244405269623, -0.14830195903778076, -0.0021977946162223816, -0.3165094256401062, 0.16724681854248047, -0.19713883101940155, 0.11553679406642914, 0.20803886651992798, -0.33037495613098145, -0.05882478505373001, 0.4746849834918976, 0.2639414966106415, 0.2856270968914032, -0.3358514904975891, -0.24723422527313232, -0.22025611996650696, 0.15641756355762482, -0.22762392461299896, -0.27073830366134644, -0.08069352805614471, -0.21401941776275635, 0.02223936840891838, 0.34394699335098267, 0.372812956571579, -0.3177195191383362, -0.2651560306549072, 0.03042132407426834, 0.3469942510128021, 0.029337549582123756, -0.058198850601911545, 0.3112128973007202, 0.19393043220043182, 0.07351826876401901, 0.05546610429883003, -0.058134082704782486, 0.2517091631889343, 0.35873544216156006, -0.04272287338972092, 0.4240317940711975, 0.5910565257072449, 0.2392541617155075, -0.20862546563148499, -0.5564646124839783, 0.45467448234558105, 0.36783355474472046, 0.14375339448451996, 0.024315591901540756, 0.19148799777030945, -0.32309940457344055, 0.1907579004764557, -0.09237580746412277, -0.023158110678195953, -0.030262168496847153, -0.018319308757781982, 0.03499177098274231, 0.09322227537631989, -0.20885887742042542, 0.14147984981536865, -0.2800653278827667, -0.020846407860517502, -0.0735572874546051, 0.02537858486175537, 0.1334736943244934, -0.2514325976371765, -0.04058834910392761, 0.033634793013334274, 0.07039328664541245, 0.12455229461193085, -0.1598726511001587, 0.3140048384666443, 0.25837746262550354, -0.1721869707107544, 0.03027711808681488, 0.4492286145687103, 0.4798881411552429, 0.40270155668258667, -0.08909697830677032, 0.164561927318573, -0.09222212433815002, -0.17258980870246887, -0.17573697865009308, 0.09878905862569809, 0.029980748891830444, 0.11026746034622192, 0.26255232095718384, 0.08695221692323685, -0.07296629995107651, 0.1525915414094925, 0.30580776929855347, 0.11938776075839996, 0.04083198308944702, -0.03414291888475418, -0.10130693018436432, -0.06674643605947495, -0.2574467957019806, 0.040912073105573654, -0.44049686193466187, -0.06170020252466202, 0.5526068210601807, -0.46456772089004517, 0.17044445872306824, 0.1823158860206604, 0.06221858412027359, -0.04599309340119362, 0.4709727466106415, 0.596745491027832, 0.1878374218940735, -0.40818145871162415, 0.16419951617717743, -0.3384479582309723, 0.12579061090946198, -0.14528878033161163, 0.15234631299972534, 0.5619263648986816, 0.2891356945037842, 0.02988366037607193, 0.21999625861644745, 0.1524374634027481, 0.3632758855819702, -0.0070685772225260735, 0.08905524760484695, -0.5017121434211731, -0.33258312940597534, -0.05259734392166138, 0.33938777446746826, -0.3351190686225891, -0.17678427696228027, 0.19476526975631714, -0.5119808912277222, 0.02724035084247589, -0.2343558818101883, -0.3554566204547882, 0.1396106481552124, 0.4828723073005676, 0.2694963216781616, 0.09992276132106781, -0.049824148416519165, -0.12823200225830078, -0.0530831441283226, -0.16933567821979523, -0.046717312186956406, 0.046960920095443726, 0.5258585214614868, 0.09276358783245087, 0.15170320868492126, -0.1340387463569641, -0.13952544331550598, -0.10574527084827423, 0.3818731904029846, -0.14352312684059143, -0.010467924177646637, -0.27309250831604004, 0.026189705356955528, -0.1786244809627533, 0.1172591894865036, -0.11199639737606049, 0.20921039581298828, 0.12639403343200684, 0.31736841797828674, -0.0004330351948738098, -0.45685234665870667, 0.5289963483810425, -0.4251680076122284, -0.23096364736557007, -0.35997632145881653, 0.22265009582042694, 0.3706858456134796, -0.008413944393396378, -0.5656882524490356, 0.011493697762489319, 0.30546897649765015, 0.07361805438995361, -0.5129506587982178, 0.001224348321557045, -0.18196982145309448, 0.21640823781490326, -0.08135242015123367, 0.2238118052482605, 0.1676725149154663, -0.29630017280578613, -0.26434454321861267, -0.10331789404153824 ]
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.18777593970298767, -0.04645033925771713, -0.08867684006690979, 0.45709067583084106, -0.1361013501882553, 0.27215707302093506, 0.22418752312660217, 0.32288858294487, 0.4278382360935211, -0.01325574517250061, -0.2501679062843323, -0.01381613127887249, 0.1214887723326683, 0.07008329033851624, -0.040082886815071106, -0.29800447821617126, 0.048328697681427, -0.09838834404945374, 0.25696831941604614, 0.09443172812461853, -0.22353965044021606, 0.04937116056680679, -0.31237030029296875, -0.07714350521564484, 0.15261434018611908, -0.07720502465963364, 0.015780610963702202, -0.05895165354013443, 0.20904140174388885, -0.489610880613327, 0.08610089868307114, -0.34837377071380615, 0.5297795534133911, 0.561843991279602, -0.0001174111821455881, -0.013077139854431152, 0.41751420497894287, 0.0011645499616861343, -0.24925407767295837, -0.5517654418945312, -0.19177809357643127, -0.13885250687599182, 0.1426740139722824, -0.19076788425445557, -0.10936657339334488, -0.2686268091201782, -0.1455373764038086, -0.24309629201889038, 0.16462916135787964, 0.36193224787712097, 0.14982876181602478, 0.150691956281662, 0.17921458184719086, 0.07619500905275345, 0.2918272316455841, -0.2640068531036377, -0.030976736918091774, 0.16724851727485657, 0.5540949106216431, 0.08456612378358841, 0.020655304193496704, 0.17734210193157196, -0.14206379652023315, 0.01951942965388298, 0.15092620253562927, -0.02545030042529106, 0.186009019613266, -0.6007183790206909, 0.04817357286810875, 0.23756539821624756, 0.4379042088985443, -0.2943655550479889, -0.48599305748939514, -0.2032375931739807, -0.030640557408332825, -0.3684288263320923, 0.23409569263458252, 0.3169805407524109, -0.18750987946987152, 0.12184005975723267, 0.13653729856014252, -0.16376245021820068, -0.11905074864625931, 0.39559996128082275, -0.2622677981853485, 0.3255668580532074, -0.0335664302110672, 0.009181424975395203, 0.1443217694759369, -0.13565996289253235, 0.05914727970957756, -0.06277651339769363, 0.008982475847005844, 0.22371000051498413, -0.3714158236980438, 0.24262920022010803, 0.04627898335456848, -0.1512623429298401, 0.04642368108034134, 0.12704861164093018, 0.17808519303798676, -0.04316939413547516, -0.08669868111610413, 0.18703818321228027, 0.3773927390575409, 0.14151689410209656, -0.04748481512069702, 0.15779170393943787, 0.05904421582818031, 0.2584307789802551, -0.03647475689649582, 0.06882201880216599, 0.12272030115127563, -0.16323450207710266, 0.03824524208903313, -0.1630246937274933, 0.2272500842809677, -0.38555967807769775, -0.2166520208120346, 0.2503851652145386, -0.40019115805625916, -0.2164936661720276, 0.017569050192832947, 0.19119153916835785, -0.21759715676307678, -0.11300279945135117, 0.17568542063236237, 0.23766420781612396, -0.1939767748117447, -0.025384023785591125, -0.13805250823497772, 0.08882315456867218, -0.09094922989606857, 0.09135501831769943, 0.4032438397407532, -0.6046221852302551, 0.23574739694595337, -0.002657719887793064, 0.3509500026702881, -0.013709120452404022, 0.11421562731266022, -0.382558137178421, 0.19438642263412476, 0.40717563033103943, 0.13875387609004974, 0.07991263270378113, 0.11628235876560211, 0.02338893711566925, -0.15734270215034485, 0.40129783749580383, -0.39115676283836365, -0.17101797461509705, -0.06746973097324371, 0.10263852030038834, 0.0009663775563240051, 0.08785192668437958, -0.2276012897491455, 0.34031999111175537, 0.5037469863891602, -0.06292281299829483, 0.003211282193660736, -0.1481613665819168, -0.32192927598953247, -0.0733046904206276, 0.12355291098356247, 0.34311938285827637, -0.35126250982284546, -0.05840151757001877, 0.04509926214814186, 0.48937854170799255, -0.03766370564699173, 0.21928083896636963, -0.2559596598148346, 0.43041324615478516, -0.17746834456920624, 0.3240617513656616, 0.2467724084854126, -0.1277134120464325, -0.242139995098114, 0.1979266107082367, 0.265741765499115, -0.07585536688566208, -0.10307257622480392, -0.2082652747631073, 0.4517368674278259, -0.05463874712586403, 0.6274045705795288, 0.49391496181488037, -0.05119659751653671, -0.09005171805620193, -0.3175872564315796, -0.11952243745326996, 0.34966766834259033, 0.1258063167333603, 0.12935097515583038, -0.016683049499988556, 0.003998547792434692, -0.2633429169654846, 0.14194071292877197, 0.11738541722297668, -0.01737084984779358, 0.3858932852745056, -0.4759047031402588, 0.09652218222618103, 0.3008757531642914, -0.22437980771064758, 0.042848363518714905, 0.17231982946395874, -0.14135120809078217, 0.24800735712051392, -0.22735293209552765, 0.2863004207611084, -0.41680797934532166, 0.0402078703045845, -0.20542140305042267, 0.0908532589673996, 0.014636728912591934, -0.0775187611579895, -0.08726290613412857, 0.2759574353694916, -0.2865065038204193, -0.1691032499074936, 0.0641293153166771, 0.015077895484864712, -0.6049714684486389, 0.3342190682888031, -0.17630930244922638, -0.23573847115039825, 0.09988285601139069, -0.012394703924655914, 0.14103320240974426, -0.1680077612400055, -0.21327802538871765, 0.0060984231531620026, -0.12266016006469727, -0.21668456494808197, -0.3014383912086487, 0.2852736711502075, 0.29568883776664734, -0.37311863899230957, 0.33291155099868774, 0.40220579504966736, 0.16398411989212036, -0.080912746489048, 0.36615705490112305, 0.2040119469165802, -0.10863557457923889, 0.37848103046417236, -0.1051316112279892, -0.21542410552501678, 0.22661122679710388, 0.03075496479868889, 0.017090806737542152, -0.10328307747840881, 0.2849920690059662, -0.10509547591209412, 0.34019961953163147, -0.023167980834841728, -0.1313321739435196, -0.1196979358792305, 0.009951159358024597, 0.005938433110713959, 0.21423563361167908, 0.2765231430530548, -0.0754363015294075, -0.12804348766803741, -0.1962987184524536, -0.45733121037483215, 0.2315342128276825, 0.14424051344394684, -0.08548490703105927, -0.08952391147613525, 0.12449055165052414, -0.06306499242782593, 0.31201884150505066, 0.10779425501823425, 0.29439443349838257, 0.2502012252807617, 0.1347874104976654, 0.10140834748744965, -0.31717243790626526, -0.3249181807041168, 0.040547728538513184, 0.1729809194803238, -0.3517549932003021, 0.4300268590450287, 0.2592780590057373, -0.35553935170173645, 0.09150111675262451, -0.6388457417488098, -0.2775247395038605, -0.13061431050300598, -0.03602176159620285, 0.006388064473867416, -0.11503557860851288, 0.1680930107831955, -0.16827288269996643, -0.08646385371685028, 0.2360256165266037, -0.12640143930912018, 0.022393904626369476, 0.09201265871524811, -0.37012261152267456, -0.07700300216674805, 0.255044162273407, -0.07468007504940033, 0.1576038897037506, 0.07277993857860565, -0.12140277773141861, -0.10431602597236633, -0.029215030372142792, 0.18536017835140228, -0.018317680805921555, 0.4640199840068817, -0.11496835947036743, 0.35876351594924927, -0.14035505056381226, -0.24216346442699432, 0.22715884447097778, 0.1857069581747055, -0.021874884143471718, 0.16377714276313782, 0.010098789818584919, 0.23913392424583435, 0.09441092610359192, -0.46810129284858704, -0.31494343280792236, -0.31701257824897766, -0.2879400849342346, -0.026606393977999687, 0.16786129772663116, 0.32336127758026123, -0.003989981487393379, -0.21176639199256897, 0.21407079696655273, 0.22399675846099854, -0.17476199567317963, -0.16606009006500244, 0.27824485301971436, -0.03949904069304466, -0.3239016830921173, -0.08203504979610443, 0.01303882896900177, -0.05266568437218666, 0.0465407632291317, -0.4170076251029968, 0.3313928246498108, -0.20461048185825348, -0.03899338096380234, -0.2311561405658722, 0.17427290976047516, 0.0914127454161644, -0.1448884755373001, -0.016080360859632492, 0.16820377111434937, -0.04293574392795563, -0.02912478893995285, 0.0024887975305318832, 0.19423848390579224, 0.3245144486427307, 0.2126043736934662, -0.18899869918823242, 0.20932185649871826, -0.03824521601200104, 0.038795337080955505, 0.6535491943359375, 0.273787260055542, 0.07669501006603241, -0.23769903182983398, -0.4639844596385956, -0.15011705458164215, 0.112540602684021, -0.4123530387878418, 0.33111923933029175, -0.04980349540710449, -0.47649914026260376, -0.25013113021850586, -0.38513830304145813, -0.3440398871898651, -0.13096728920936584, 0.13904452323913574, -0.14687557518482208, 0.2006630152463913, -0.00478321872651577, 0.0029346495866775513, -0.037996817380189896, -0.18066179752349854, 0.09352008998394012, -0.05347251892089844, -0.06550682336091995, 0.02696128562092781, 0.3056272864341736, -0.27451184391975403, -0.33866086602211, 0.10358325392007828, 0.22888626158237457, 0.45027023553848267, -0.0063820332288742065, 0.010024156421422958, 0.05196361243724823, 0.15295158326625824, 0.6871082782745361, 0.024900320917367935, 0.2073342353105545, 0.33129236102104187, 0.13082334399223328, -0.1347750574350357, -0.3419049084186554, -0.17348048090934753, 0.3713223338127136, 0.03457460552453995, 0.11244231462478638, -0.2644979953765869, 0.07387078553438187, -0.023219235241413116, 0.5086475014686584, -0.16131651401519775, -0.2682158052921295, -0.33350902795791626, -0.2844652235507965, -0.26677119731903076, 0.08987514674663544, 0.18212683498859406, 0.33258143067359924, 0.05219167470932007, 0.06861293315887451, 0.16275867819786072, -0.014758084900677204, 0.17839232087135315, 0.044833969324827194, 0.26418328285217285, -0.09014445543289185, 0.2104615569114685, -0.10745441913604736, 0.06339192390441895, 0.1904764026403427, 0.4232780635356903, -0.05214085057377815, -0.26428458094596863, 0.013603433966636658, -0.025818977504968643, 0.12896069884300232, 0.13271084427833557, 0.0336931049823761, 0.03725849837064743, -0.041917964816093445, 0.09327374398708344, 0.05503037944436073, -0.32992225885391235, -0.0015827035531401634, 0.03502929210662842, -0.5425871014595032, -0.4569772481918335, 0.5198675990104675, -0.04494565725326538, -0.08349068462848663, 0.4464779794216156, -0.13488544523715973, -0.3541569113731384, 0.8186006546020508, -0.11642106622457504, 0.9402408599853516, -0.1575011909008026, 0.09028907120227814, -0.09866214543581009, 0.43185096979141235, 0.22948727011680603, 0.017062366008758545, 0.1314002275466919, -0.3510856628417969, -0.3513857126235962, -0.12832188606262207, -0.06531085073947906, -0.017674654722213745, -0.054025180637836456, -0.19741056859493256, 0.2823764681816101, -0.2762393057346344, -0.163796067237854, 0.10327676683664322, 0.003685522824525833, -0.03839704394340515, -0.3015960454940796, -0.7697231769561768, -0.004494260996580124, -0.12117420136928558, 0.06400275230407715, -0.15280970931053162, -0.04467977583408356, -0.056931182742118835, 0.062364935874938965, -0.3020883798599243, 0.17866557836532593, -0.16979146003723145, 0.2599491477012634, -0.024567555636167526, -0.07330644130706787, 0.22968211770057678, 0.03745167702436447, 0.14896929264068604, 0.07331421226263046, -0.16807445883750916, -0.1542634814977646, 0.018115099519491196, -0.2912921607494354, 0.08071253448724747, -0.12777680158615112, 0.46871641278266907, -0.024742845445871353, -0.43877407908439636, 0.25307127833366394, 0.040891628712415695, -0.09343773871660233, -0.17688971757888794, 0.31721019744873047, 0.16297852993011475, -0.38635358214378357, -0.31480205059051514, -0.2251952886581421, 0.17602629959583282, -0.08602340519428253, 0.10349464416503906, 0.2724943161010742, -0.2727389931678772, 0.1300436109304428, 0.22124765813350677, -0.3995962142944336, -0.07100960612297058, 0.4882138669490814, 0.266129732131958, 0.10509008169174194, 0.43448781967163086, 0.6909445524215698, -0.11683206260204315, -0.06212567538022995, -0.09257488697767258, -0.026030581444501877, -0.29543501138687134, 0.19919554889202118, 0.03610268235206604, 0.1139548271894455, -0.016300955787301064, 0.5044160485267639, 0.2366805076599121, -0.07160111516714096, -0.10141019523143768, -0.6054030656814575, 0.11774104088544846, 0.22982972860336304, -0.00895095244050026, -0.1208774596452713, 0.1899380087852478, -0.24740980565547943, -0.00903635285794735, -0.21726581454277039, -0.25366008281707764, 0.1492658257484436, -0.35933718085289, 0.3357178866863251, -0.4784274399280548, 0.029756922274827957, 0.1237485259771347, -0.12056854367256165, 0.015322616323828697, -0.05983355641365051, -0.06523320078849792, -0.22060349583625793, -0.025334225967526436, 0.138093501329422, -0.06563513725996017, -0.14238904416561127, -0.27523088455200195, -0.32111573219299316, 0.04484059289097786, -0.1300240010023117, 0.03925379738211632, 0.2385987937450409, 0.07158361375331879, -0.008784268982708454, 0.259663462638855, -0.16934734582901, -0.17357571423053741, 0.3215178847312927, -0.18076181411743164, 0.2754132151603699, 0.1087804064154625, 0.17672988772392273, -0.014015226624906063, -0.006127648055553436, -0.412548691034317, 0.09684120118618011, -0.13666126132011414, 0.09565924108028412, 0.2184816300868988, -0.4270797371864319, 0.042860548943281174, 0.39789634943008423, 0.3022229075431824, 0.26150450110435486, -0.3576151728630066, -0.12942618131637573, -0.10067343711853027, 0.15081143379211426, -0.29627007246017456, -0.27609983086586, 0.09819492697715759, -0.19011172652244568, -0.10046139359474182, 0.3018135726451874, 0.31056758761405945, -0.2831611633300781, -0.39162588119506836, 0.054189957678318024, 0.31126782298088074, 0.08972682803869247, -0.020647473633289337, 0.37247827649116516, 0.265508234500885, 0.11199101060628891, 0.12678973376750946, 0.03313174098730087, 0.21988578140735626, 0.3703356385231018, 0.019616365432739258, 0.38314613699913025, 0.5232906937599182, 0.16565589606761932, -0.2105606198310852, -0.5987141728401184, 0.47577881813049316, 0.31981897354125977, 0.23724153637886047, -0.027561701834201813, 0.09666498750448227, -0.1578439176082611, 0.16749590635299683, -0.15748901665210724, -0.09077188372612, 0.004277780652046204, -0.002695150673389435, 0.04631950706243515, 0.10552148520946503, -0.20071542263031006, 0.1826443374156952, -0.2155262529850006, -0.025181476026773453, -0.08627504110336304, -0.045274749398231506, 0.19512134790420532, -0.22312290966510773, -0.14297088980674744, 0.05169228836894035, 0.17075711488723755, 0.1168571263551712, -0.22422543168067932, 0.2616126835346222, 0.20616692304611206, -0.2228831648826599, 0.025996318086981773, 0.4006110727787018, 0.5047862529754639, 0.44414710998535156, -0.18017688393592834, 0.17048554122447968, -0.07073377072811127, -0.1570310890674591, -0.11129391938447952, 0.10800403356552124, 0.068377785384655, 0.24206221103668213, 0.24768973886966705, 0.07881318777799606, -0.06334816664457321, 0.20421288907527924, 0.29192015528678894, 0.10181647539138794, -0.019951390102505684, -0.010359197854995728, -0.08660674095153809, -0.13673394918441772, -0.323341965675354, -0.07314405590295792, -0.47088944911956787, 0.039567142724990845, 0.6526059508323669, -0.3489188253879547, 0.0747138261795044, 0.1700436770915985, 0.035709574818611145, -0.08097571134567261, 0.44160276651382446, 0.6995090246200562, 0.28221869468688965, -0.44217649102211, 0.20090658962726593, -0.33035188913345337, 0.2510181665420532, -0.1869000345468521, 0.20304109156131744, 0.5098544359207153, 0.22634078562259674, 0.011724352836608887, 0.2636483907699585, 0.13233532011508942, 0.3015117943286896, -0.05144042521715164, 0.22204990684986115, -0.47664520144462585, -0.33531954884529114, -0.11409096419811249, 0.3805033564567566, -0.34123286604881287, -0.10625070333480835, 0.11643940210342407, -0.5912816524505615, 0.0090654157102108, -0.32360029220581055, -0.2978070378303528, 0.14662288129329681, 0.3390173017978668, 0.3214836120605469, 0.11210818588733673, 0.09663824737071991, -0.045619361102581024, 0.023986173793673515, -0.08314581215381622, -0.13934537768363953, 0.008372590877115726, 0.4147394001483917, 0.06428569555282593, 0.1914910525083542, -0.1946297585964203, -0.20107391476631165, -0.18591170012950897, 0.3737420439720154, -0.10762902349233627, -0.0778106302022934, -0.29681962728500366, -0.03628641739487648, -0.1400783658027649, 0.061499468982219696, -0.11882007867097855, 0.17981046438217163, 0.10993470251560211, 0.33849620819091797, 0.02743498980998993, -0.3561401963233948, 0.5066055059432983, -0.5102145671844482, -0.3376924991607666, -0.3747183084487915, 0.13542523980140686, 0.281704306602478, -0.023407505825161934, -0.5694018602371216, 0.03188446909189224, 0.32646870613098145, 0.11371970921754837, -0.4719184637069702, 0.03957197070121765, -0.12444983422756195, 0.2546505630016327, -0.0420336090028286, 0.19640731811523438, 0.09507828950881958, -0.23247745633125305, -0.2083835005760193, -0.04194328561425209 ]
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.08716326951980591, 0.02584625780582428, 0.027406711131334305, 0.6045909523963928, -0.1784684956073761, -0.0898556262254715, 0.2882218360900879, 0.32684990763664246, 0.018490660935640335, 0.16752316057682037, -0.36940115690231323, -0.08398542553186417, 0.22415542602539062, -0.04085611552000046, 0.0888218879699707, -0.04227910935878754, 0.03764203190803528, 0.12004940211772919, 0.32785549759864807, -0.2406729906797409, -0.17161783576011658, 0.16059458255767822, -0.02825315296649933, 0.27018463611602783, 0.06974232196807861, 0.12596021592617035, 0.04215920716524124, 0.5915513038635254, -0.12429457157850266, -0.16657109558582306, 0.2873164117336273, -0.017306312918663025, 0.5707441568374634, 0.8942388892173767, -0.00011840257502626628, 0.16816288232803345, 0.2595367431640625, 0.01035832054913044, -0.2348506599664688, -0.11426904797554016, -0.4038446247577667, 0.1302047073841095, 0.08363594859838486, -0.1607080101966858, -0.18077456951141357, -0.09381411224603653, -0.3060295283794403, 0.08644154667854309, 0.44089382886886597, 0.39260321855545044, 0.16618044674396515, 0.4484372138977051, 0.09070944786071777, -0.1656457930803299, 0.4235149323940277, 0.034858521074056625, 0.005339855328202248, 0.2900847792625427, -0.07083866000175476, 0.08676349371671677, 0.01329689472913742, -0.0068783885799348354, 0.014134490862488747, 0.08429309725761414, 0.20927700400352478, 0.013458066619932652, -0.04238708317279816, -0.09927445650100708, -0.10021715611219406, 0.06586221605539322, 0.4129537045955658, 0.00025644153356552124, -0.26692909002304077, 0.026684239506721497, -0.03675497695803642, -0.1364850550889969, 0.15823203325271606, 0.2569412291049957, -0.13410651683807373, 0.12089525163173676, -0.1735551357269287, -0.3134865164756775, -0.4048253893852234, 0.3338385820388794, 0.111448734998703, -0.055138230323791504, 0.00970027782022953, 0.025280777364969254, -0.2526355981826782, -0.20699435472488403, -0.09649026393890381, -0.17500537633895874, 0.021321672946214676, 0.16974790394306183, -0.028792638331651688, -0.09079562872648239, 0.0858655720949173, -0.031663037836551666, 0.29428988695144653, 0.39395660161972046, -0.2702396810054779, -0.06638731062412262, -0.4752773642539978, 0.19549110531806946, -0.017346009612083435, 0.34399500489234924, 0.01939709484577179, 0.2792777419090271, 0.45160025358200073, 0.4925680458545685, 0.024924982339143753, 0.09163033962249756, -0.33785292506217957, -0.005189827643334866, -0.16792772710323334, -0.19273343682289124, 0.46461963653564453, -0.4979287087917328, -0.003976421430706978, 0.18470685184001923, -0.23573839664459229, 0.027758514508605003, -0.026083800941705704, 0.3406420350074768, -0.07194141298532486, -0.13381654024124146, 0.06868579983711243, 0.037501413375139236, -0.27683699131011963, -0.09239869564771652, -0.17043758928775787, -0.16320331394672394, 0.02136443927884102, 0.2591717541217804, 0.13167893886566162, -0.02675119787454605, 0.20241622626781464, -0.036949336528778076, 0.3569183945655823, -0.23496180772781372, 0.000122779980301857, 0.19251058995723724, -0.18512052297592163, 0.2597728967666626, 0.16594596207141876, -0.025374673306941986, 0.119052454829216, -0.3925631046295166, -0.05470773205161095, -0.1396571695804596, -0.6864684224128723, -0.4307953417301178, -0.08433237671852112, 0.10729379206895828, -0.19420698285102844, 0.04000291973352432, -0.5282008647918701, -0.37321341037750244, -0.11128928512334824, -0.0995284840464592, 0.0376245379447937, 0.028248313814401627, -0.048396866768598557, -0.11583223938941956, 0.15852820873260498, 0.5856988430023193, 0.35858479142189026, -0.007159464061260223, 0.3294968008995056, -0.18860097229480743, 0.20193493366241455, 0.34318020939826965, -0.18510045111179352, 0.08392025530338287, -0.28782549500465393, 0.3110019564628601, 0.15975947678089142, -0.48151594400405884, -0.4112558364868164, 0.6456835269927979, -0.26988518238067627, 0.03399606794118881, 0.0982300341129303, -0.10844143480062485, 0.11725074052810669, -0.20856641232967377, 0.5326519012451172, 0.4657268524169922, 0.2107895463705063, -0.13008783757686615, -0.2885696291923523, -0.21363948285579681, -0.3629422187805176, 0.3998596966266632, -0.0017967820167541504, 0.2109302431344986, 0.36255428194999695, -0.25690534710884094, 0.29321956634521484, -0.0458180271089077, -0.18722079694271088, 0.30721622705459595, 0.358453631401062, 0.019274313002824783, 0.2242036610841751, 0.0763048455119133, -0.2873443365097046, 0.19276869297027588, -0.35856154561042786, 0.1491605043411255, -0.04198044538497925, -0.0627901628613472, -0.31006428599357605, -0.09108087420463562, -0.45454880595207214, 0.18637163937091827, 0.042549118399620056, -0.037270814180374146, -0.17018847167491913, 0.16517457365989685, 0.020101170986890793, 0.27203744649887085, -0.1222626268863678, 0.2718658745288849, -0.28684747219085693, 0.6367561221122742, 0.026765557006001472, 0.07505355030298233, 0.18609848618507385, 0.21778690814971924, 0.38067522644996643, -0.06307956576347351, -0.1942446529865265, 0.312483012676239, 0.1950443983078003, 0.1324027180671692, 0.7725481390953064, -0.06868347525596619, 0.22053928673267365, -0.08822881430387497, 0.028783809393644333, 0.4030071794986725, 0.059547439217567444, 0.21510010957717896, 0.18245750665664673, 0.19518008828163147, 0.044158805161714554, 0.3703368306159973, 0.0991879403591156, -0.10814227908849716, 0.17922131717205048, -0.1274949610233307, -0.10717403143644333, -0.03834596276283264, 0.37414905428886414, 0.0318133570253849, -0.20077849924564362, -0.060322701930999756, -0.11721865087747574, 0.02787192165851593, 0.2025972604751587, -0.3027190864086151, -0.04150339215993881, 0.33030787110328674, -0.13910487294197083, -0.016718681901693344, 0.24103841185569763, 0.42050087451934814, 0.2979259788990021, -0.017052795737981796, -0.18175740540027618, 0.06568026542663574, -0.08967866748571396, -0.0831209272146225, -0.06388870626688004, 0.022053953260183334, 0.03407701849937439, 0.16878601908683777, 0.1015625, -0.03769692778587341, -0.056946005672216415, -0.4256898760795593, -0.0824870616197586, 0.2719036638736725, -0.4516462981700897, -0.014093759469687939, -0.37281009554862976, -0.13232339918613434, -0.07672785967588425, -0.2615005671977997, -0.5702642798423767, -0.07630974054336548, 0.028902165591716766, -0.08092719316482544, -0.10595495998859406, -0.15909171104431152, 0.03471110761165619, 0.2810215950012207, 0.11680339276790619, -0.35476386547088623, -0.18585602939128876, -0.012184934690594673, -0.2940157651901245, -0.09452317655086517, 0.29223328828811646, 0.020486608147621155, 0.31752485036849976, -0.47673654556274414, -0.09028444439172745, -0.4070104658603668, -0.11128522455692291, 0.03564567118883133, 0.15650728344917297, 0.34827756881713867, -0.039822354912757874, 0.07231587171554565, 0.29416346549987793, 0.0916479155421257, 0.2570358216762543, -0.10887167602777481, -0.20680168271064758, 0.2457992434501648, -0.18318875133991241, -0.09091952443122864, -0.1320875585079193, -0.029461748898029327, -0.25507330894470215, -0.18537190556526184, 0.23713919520378113, 0.3771701455116272, 0.0953645259141922, -0.2680516839027405, 0.0706053301692009, 0.2262730896472931, -0.15317706763744354, -0.14682228863239288, -0.17198088765144348, -0.5023720860481262, 0.27431127429008484, -0.4032101035118103, -0.2306603640317917, 0.2652857303619385, 0.22562716901302338, 0.04340691491961479, -0.12376011908054352, -0.6602146625518799, -0.5772985219955444, -0.08363711088895798, 0.2650006413459778, -0.2728845477104187, 0.04726819694042206, 0.04385165870189667, -0.15400207042694092, 0.07781778275966644, 0.045804254710674286, -0.2724543511867523, 0.1395336389541626, 0.047789812088012695, 0.14115390181541443, 0.01293630339205265, 0.1984620988368988, -0.06428176164627075, 0.5992146730422974, 0.17629244923591614, 0.1972338855266571, 0.2701570391654968, 0.03504910320043564, 0.21592269837856293, -0.027146995067596436, 0.04164571315050125, -0.05252140015363693, -0.01806938648223877, -0.1607145071029663, 0.2109571397304535, 0.41178542375564575, -0.027007242664694786, -0.2943618893623352, -0.7045920491218567, -0.19054639339447021, -0.2729954123497009, -0.41703474521636963, 0.34700047969818115, 0.0805545300245285, 0.17777258157730103, -0.03540390357375145, -0.11524300277233124, -0.19524863362312317, 0.24966034293174744, 0.4584137201309204, 0.20800995826721191, 0.22462809085845947, 0.054496850818395615, 0.012665487825870514, -0.4743277430534363, 0.3333798944950104, 0.031441640108823776, 0.28292858600616455, 0.02547784522175789, 0.20008715987205505, 0.13832180202007294, -0.1713121384382248, 0.010133564472198486, 0.10000983625650406, 0.4979897141456604, -0.018563896417617798, -0.16390547156333923, -0.08585096895694733, -0.05355559661984444, 0.007816676050424576, 0.0035869176499545574, -0.11755800247192383, 0.8319281339645386, -0.2911429703235626, -0.21074093878269196, 0.0021344758570194244, -0.13268418610095978, -0.12457485496997833, -0.4110311269760132, -0.30063915252685547, -0.39913731813430786, -0.30015453696250916, -0.0360250249505043, -0.17558857798576355, 0.1223573163151741, -0.16136805713176727, 0.12082567811012268, 0.3628312647342682, 0.26041415333747864, 0.06927923113107681, -0.056780848652124405, 0.3072283864021301, -0.19988635182380676, -0.07384170591831207, 0.30688944458961487, 0.2507617473602295, 0.42061325907707214, 0.6409816145896912, 0.01305999606847763, -0.41182059049606323, 0.03386952728033066, -0.17218859493732452, 0.0882980227470398, 0.42704465985298157, -0.09032077342271805, 0.054975442588329315, 0.27326837182044983, 0.40283137559890747, -0.10747212171554565, 0.10769109427928925, 0.07535070925951004, -0.2576526999473572, -0.11007560789585114, -0.14170067012310028, 0.44264429807662964, -0.29455041885375977, 0.0482029914855957, 0.03064744919538498, 0.5616433620452881, -0.16131822764873505, 0.45533889532089233, -0.2532235383987427, 0.8656348586082458, 0.03188100457191467, 0.31915730237960815, 0.41253140568733215, -0.21757850050926208, 0.15343493223190308, -0.6794490218162537, -0.032702576369047165, -0.12118706107139587, 0.23535677790641785, -0.17376770079135895, -0.06292317807674408, -0.0326852947473526, -0.22243104875087738, 0.06971080601215363, 0.3440419137477875, -0.10734345018863678, 0.514390766620636, 0.22667482495307922, 0.048247188329696655, 0.14297911524772644, -0.07098747789859772, -0.3608294725418091, 0.08680471032857895, -0.08842143416404724, 0.09741805493831635, -0.0813911035656929, -0.3059495687484741, -0.3581768870353699, -0.1596130132675171, 0.016861259937286377, 0.1965002417564392, 0.10908762365579605, -0.05754461884498596, 0.0566234216094017, -0.29594141244888306, 0.021163515746593475, -0.012534428387880325, 0.13471436500549316, 0.003047581762075424, -0.5207505226135254, 0.13716934621334076, -0.17261001467704773, -0.029373180121183395, -0.05644277483224869, -0.0933091789484024, 0.10724759101867676, -0.26751139760017395, -0.18807829916477203, -0.029824763536453247, -0.10000435262918472, -0.4531240463256836, -0.2585153877735138, 0.18609441816806793, -0.008170172572135925, -0.15586939454078674, 0.07143884897232056, -0.016119807958602905, -0.034137483686208725, -0.10822287201881409, 0.08674460649490356, 0.18004119396209717, -0.30455267429351807, -0.31734079122543335, 0.16464951634407043, -0.2764059901237488, -0.02752051129937172, 0.4022212028503418, -0.09576896578073502, -0.11389092355966568, 0.3496789336204529, 0.10881312191486359, -0.08042546361684799, -0.1351318210363388, -0.055485304445028305, 0.3459479808807373, -0.7139820456504822, -0.009598935954272747, -0.037117499858140945, 0.2363055795431137, -0.07314332574605942, -0.016661938279867172, 0.10228544473648071, -0.40737131237983704, 0.256097674369812, -0.5434620380401611, -0.05383962392807007, 0.08932839334011078, -0.3175043761730194, -0.14622311294078827, 0.10508324950933456, 0.10625810921192169, -0.13187503814697266, -0.32946494221687317, -0.24216824769973755, 0.3742590546607971, -0.3990384638309479, -0.08872814476490021, -0.08793573826551437, 0.004687577486038208, 0.2556556165218353, 0.10628923773765564, 0.047214530408382416, 0.073012575507164, -0.20928733050823212, -0.09891680628061295, -0.3098874092102051, 0.21218831837177277, 0.07141494750976562, -0.1748327910900116, 0.0320979505777359, -0.1938270926475525, -0.21383024752140045, 0.08982851356267929, 0.00939016044139862, 0.1445702612400055, 0.0404261089861393, -0.15556840598583221, 0.23989839851856232, 0.03252393752336502, -0.3132787346839905, 0.49654901027679443, 0.19678562879562378, 0.5202289819717407, -0.17442239820957184, 0.04942621663212776, -0.6694011092185974, 0.027660295367240906, 0.12312047928571701, 0.06874200701713562, 0.29773831367492676, 0.31160610914230347, 0.6110661029815674, -0.5101619958877563, 0.12764328718185425, -0.09019729495048523, 0.14471672475337982, 0.115328349173069, -0.27954450249671936, 0.03439126908779144, 0.1356981098651886, 0.09083444625139236, -0.018594888970255852, -0.2194553017616272, 0.5809529423713684, -0.01937585324048996, -0.21607771515846252, 0.1184566393494606, 0.2108076512813568, 0.07177664339542389, 0.06186068058013916, 0.11580362170934677, 0.3747919797897339, 0.13988131284713745, -0.21010595560073853, 0.04968494176864624, -0.10487373173236847, 0.283854216337204, -0.08392494171857834, 0.05608935281634331, -0.03170689195394516, 0.3715336322784424, -0.1107560470700264, 0.10754597187042236, 0.0834403932094574, 0.25269150733947754, 0.06964609026908875, -0.5230886936187744, -0.2532203495502472, -0.023605838418006897, 0.32998397946357727, 0.011329416185617447, -0.29050198197364807, 0.266255259513855, -0.1612529158592224, 0.2738807499408722, -0.35287055373191833, -0.0437292642891407, 0.054265618324279785, 0.1502527892589569, -0.04973702132701874, -0.22339388728141785, -0.09628675878047943, -0.03709372878074646, -0.10773834586143494, -0.13209185004234314, -0.32770925760269165, 0.10414083302021027, -0.1485619693994522, -0.2872104048728943, -0.24182921648025513, 0.20788973569869995, 0.0006502419710159302, -0.11098639667034149, 0.2159481793642044, 0.16307587921619415, -0.03788097947835922, 0.1516299694776535, -0.2827295660972595, 0.3619369566440582, 0.15720663964748383, -0.0038282200694084167, 0.0017600986175239086, 0.15951307117938995, 0.04882089048624039, 0.23241707682609558, 0.27227067947387695, 0.19746267795562744, 0.07930880784988403, 0.2943629324436188, 0.07264143228530884, -0.11642967909574509, -0.04465902969241142, -0.2403576821088791, 0.2847377061843872, -0.166097953915596, 0.5623670220375061, -0.5071783065795898, -0.043935246765613556, -0.3436984419822693, -0.1898682415485382, -0.334160178899765, 0.13067083060741425, 0.2980683147907257, 0.2615298628807068, -0.022521819919347763, -0.13732613623142242, 0.01799020916223526, -0.3996056616306305, 0.4213407635688782, 0.4900413751602173, 0.400139719247818, -0.34164878726005554, -0.1488674283027649, -0.43808162212371826, 0.46924009919166565, -0.002339255064725876, -0.11446685343980789, 0.14303061366081238, 0.2080901563167572, -0.12226783484220505, -0.014951709657907486, 0.2360365092754364, -0.2913757860660553, 0.22217142581939697, -0.09080059826374054, -0.08496218919754028, -0.08829155564308167, -0.07929490506649017, 0.025999486446380615, -0.02537539415061474, -0.29102641344070435, 0.15609361231327057, -0.30791574716567993, -0.021579016000032425, 0.16688500344753265, -0.06080765277147293, 0.1342533528804779, -0.2701958417892456, 0.45397621393203735, 0.12280795723199844, 0.19147247076034546, 0.169109046459198, -0.33736464381217957, -0.13203133642673492, -0.1517772078514099, -0.20587512850761414, -0.4226780831813812, -0.390951931476593, 0.12358042597770691, -0.12298564612865448, 0.08950239419937134, -0.3886907696723938, 0.2831035554409027, -0.03628861531615257, 0.20376700162887573, -0.10125409811735153, 0.15504345297813416, -0.23339000344276428, -0.12165643274784088, 0.19894297420978546, 0.061615291982889175, 0.05814507231116295, 0.0967615619301796, -0.08364302664995193, 0.04072973132133484, 0.6753649115562439, -0.44637492299079895, -0.0966641753911972, 0.09116613864898682, 0.3124556541442871, 0.2603936493396759, -0.3580762445926666, -0.16400502622127533, 0.14705151319503784, 0.27725738286972046, 0.27741241455078125, -0.24097484350204468, 0.18420308828353882, -0.2666306495666504, 0.1258794665336609, 0.047534044831991196, 0.09525986760854721, 0.04320615530014038, -0.1891229748725891, 0.3335568308830261, -0.05264519155025482 ]
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.15199045836925507, 0.021742433309555054, 0.042152393609285355, 0.4689883589744568, -0.14877793192863464, -0.08374549448490143, 0.18702110648155212, 0.33147764205932617, 0.025100570172071457, 0.1321307122707367, -0.41476204991340637, -0.03817464038729668, 0.11771795153617859, -0.08457076549530029, 0.22746555507183075, -0.09395383298397064, 0.06437567621469498, 0.2031138837337494, 0.17883899807929993, -0.19641512632369995, -0.14163583517074585, 0.18918408453464508, -0.026706580072641373, 0.21358084678649902, 0.08846309036016464, 0.16262643039226532, -0.016953637823462486, 0.5753356218338013, -0.13345812261104584, -0.25308048725128174, 0.42648476362228394, 0.0575157105922699, 0.49013999104499817, 0.8685277700424194, -0.00011990920756943524, 0.2189434915781021, 0.2850869297981262, 0.06304007768630981, -0.2731929123401642, -0.17700208723545074, -0.4306531548500061, 0.16966557502746582, 0.19023054838180542, -0.05776907503604889, -0.1480039358139038, -0.08566407859325409, -0.22312115132808685, 0.1030694842338562, 0.3863913416862488, 0.28490957617759705, 0.17129872739315033, 0.37989017367362976, 0.056689973920583725, -0.14312341809272766, 0.2864227592945099, 0.06625266373157501, -0.047332651913166046, 0.45223745703697205, -0.09436814486980438, 0.10323870927095413, -0.0649583712220192, -0.0003478985745459795, -0.001012515276670456, 0.026998762041330338, 0.22685563564300537, -0.006046718917787075, -0.11014977842569351, -0.05667008459568024, -0.1633118987083435, 0.13071876764297485, 0.3496457040309906, -0.11198980361223221, -0.2637350261211395, -0.07687831670045853, -0.007029618136584759, -0.23805105686187744, 0.21041524410247803, 0.18955504894256592, -0.11701485514640808, 0.2497236430644989, -0.28613218665122986, -0.41807642579078674, -0.29749244451522827, 0.31767892837524414, 0.06411156058311462, 0.04845212772488594, -0.031871497631073, -0.05228810757398605, -0.3012053072452545, -0.057660266757011414, -0.10492608696222305, -0.12570320069789886, -0.03579584136605263, 0.13740648329257965, 0.010150372982025146, -0.06494735926389694, 0.26228541135787964, -0.07379994541406631, 0.38918593525886536, 0.27722638845443726, -0.0018003443256020546, -0.0349760428071022, -0.4886949956417084, 0.13276399672031403, 0.028052855283021927, 0.33870208263397217, -0.09827438741922379, 0.22229157388210297, 0.5048397779464722, 0.5479640960693359, 0.0648631751537323, 0.12374170124530792, -0.18652032315731049, 0.11627702414989471, -0.19829629361629486, -0.20187419652938843, 0.569632351398468, -0.44190412759780884, -0.025523100048303604, 0.308979868888855, -0.32506436109542847, 0.025451673194766045, -0.05431661382317543, 0.29404985904693604, -0.0640193372964859, -0.005389254540205002, 0.11053837835788727, 0.0006800368428230286, -0.2913874387741089, 0.037888407707214355, -0.18087156116962433, -0.12633776664733887, -0.06103116273880005, 0.17199860513210297, 0.14999869465827942, -0.07614374160766602, 0.19935275614261627, -0.04685322567820549, 0.3632745146751404, -0.2024489939212799, -0.13999584317207336, 0.24485577642917633, -0.1660933494567871, 0.2702893018722534, 0.11247442662715912, -0.0482197180390358, 0.03127618134021759, -0.39526909589767456, -0.060817308723926544, -0.15336957573890686, -0.6331648826599121, -0.4467024505138397, -0.10268372297286987, 0.07899639010429382, -0.2454281598329544, 0.04844817891716957, -0.5156446695327759, -0.24825821816921234, -0.22695457935333252, -0.11614534258842468, 0.10250422358512878, 0.07317157089710236, -0.21550339460372925, -0.17253826558589935, 0.23574963212013245, 0.6003867387771606, 0.2160533368587494, -0.016952287405729294, 0.3043449819087982, -0.2247084677219391, 0.15362323820590973, 0.16470299661159515, -0.14236581325531006, 0.22901800274848938, -0.3856142461299896, 0.1902231127023697, 0.21304862201213837, -0.4618355929851532, -0.48287588357925415, 0.6060365438461304, -0.32022517919540405, 0.24633394181728363, 0.01875513792037964, -0.21136905252933502, -0.037457484751939774, -0.13877588510513306, 0.5398162603378296, 0.44391101598739624, 0.2286480814218521, -0.11083461344242096, -0.30198410153388977, -0.24865618348121643, -0.40801411867141724, 0.3468930423259735, 0.04905140399932861, 0.27888718247413635, 0.3681979477405548, -0.16494792699813843, 0.413964182138443, -0.06997229158878326, -0.1263868659734726, 0.3668573498725891, 0.4195958077907562, 0.06254177540540695, 0.14356133341789246, -0.07973742485046387, -0.37446972727775574, 0.20661789178848267, -0.38223394751548767, 0.1196456104516983, 0.023864448070526123, -0.03689383715391159, -0.3012809753417969, -0.15244123339653015, -0.5029710531234741, 0.10532234609127045, 0.05480145663022995, 0.05661100521683693, -0.17418666183948517, 0.16568121314048767, -0.11462540924549103, 0.42413267493247986, -0.009763514623045921, 0.2932831346988678, -0.34593772888183594, 0.6859856247901917, 0.05206601321697235, 0.021230384707450867, 0.07523054629564285, 0.33770662546157837, 0.27000105381011963, -0.11514125019311905, -0.15380412340164185, 0.4489709436893463, 0.05734236538410187, 0.1254337579011917, 0.6857690811157227, -0.19216035306453705, 0.34960633516311646, -0.12841273844242096, 0.03187083825469017, 0.3469438850879669, -0.000614966731518507, 0.26577115058898926, 0.18787458539009094, 0.1333739012479782, -0.03801092877984047, 0.25067275762557983, 0.09259635210037231, -0.19117265939712524, 0.2122325301170349, -0.15564247965812683, -0.17209146916866302, -0.12357604503631592, 0.41049012541770935, -0.006213696673512459, -0.190801739692688, -0.07352057844400406, -0.19876645505428314, -0.0376589372754097, 0.11918523907661438, -0.28792235255241394, 0.05729766935110092, 0.33489665389060974, -0.08594534546136856, -0.017396733164787292, 0.19620956480503082, 0.46378299593925476, 0.36611416935920715, -0.027939070016145706, -0.1758413016796112, 0.2077227085828781, -0.03072527050971985, -0.047853611409664154, -0.06401429325342178, 0.06216089427471161, 0.09428294003009796, 0.2740386724472046, 0.13052769005298615, 0.025358770042657852, -0.09310482442378998, -0.3885844647884369, -0.17608463764190674, 0.20466426014900208, -0.4924289882183075, -0.08462224155664444, -0.46466875076293945, 0.0009308680891990662, -0.08484235405921936, -0.2139744907617569, -0.4650977849960327, -0.05933535844087601, -0.006465766578912735, -0.0798753947019577, -0.18460296094417572, -0.12334810942411423, -0.13192856311798096, 0.20602945983409882, -0.010157415643334389, -0.37514153122901917, -0.20108510553836823, 0.0916016697883606, -0.22657155990600586, -0.1003582775592804, 0.1256137192249298, -0.01874219998717308, 0.31928226351737976, -0.40086227655410767, -0.1340954303741455, -0.33758345246315, -0.15688373148441315, 0.11969874054193497, 0.15438438951969147, 0.2986603379249573, 0.10028282552957535, -0.0388113409280777, 0.21306999027729034, 0.027553897351026535, 0.2490253746509552, -0.11150261759757996, -0.23841971158981323, 0.21736477315425873, -0.12694691121578217, 0.020602602511644363, -0.16850468516349792, -0.023514635860919952, -0.296816349029541, -0.34729284048080444, 0.19880233705043793, 0.2847716212272644, 0.07364719361066818, -0.2436438351869583, 0.04520486667752266, 0.2794003188610077, -0.2056298404932022, -0.03065391071140766, -0.09978613257408142, -0.4469515383243561, 0.19767114520072937, -0.39989274740219116, -0.18469500541687012, 0.2627222239971161, 0.16231706738471985, 0.049727972596883774, -0.09554033726453781, -0.7413299083709717, -0.5427151322364807, 0.007241165265440941, 0.2825998067855835, -0.27678295969963074, 0.023945758119225502, 0.11211694031953812, -0.07217089086771011, 0.08613051474094391, -0.0010130181908607483, -0.25588470697402954, -0.0224124938249588, 0.040469732135534286, 0.2527865469455719, 0.10340753942728043, 0.2775861322879791, -0.08091584593057632, 0.5106097459793091, 0.1753757745027542, 0.2900902330875397, 0.3952639102935791, 0.06233389675617218, 0.3486851453781128, -0.123455710709095, 0.027997257187962532, -0.05888170748949051, -0.10171467065811157, -0.1672564297914505, 0.1642971932888031, 0.40033459663391113, 0.0011567538604140282, -0.3944435715675354, -0.7023419737815857, -0.23990130424499512, -0.25115299224853516, -0.39583998918533325, 0.235817551612854, 0.03891951963305473, 0.15246900916099548, -0.10119786858558655, 0.06480138003826141, -0.09498550742864609, 0.2410157322883606, 0.39891237020492554, 0.22971764206886292, 0.19885282218456268, 0.08657503128051758, 0.02214985154569149, -0.6100174188613892, 0.19955329596996307, 0.03080582059919834, 0.20613914728164673, 0.031668465584516525, 0.14793112874031067, 0.033029600977897644, -0.1607426255941391, 0.11662803590297699, 0.1354096382856369, 0.5210429430007935, -0.07745610177516937, -0.20373626053333282, -0.0485219731926918, -0.056595657020807266, 0.07154375314712524, 0.07154488563537598, -0.07392480969429016, 0.7497168779373169, -0.2757318317890167, -0.18431000411510468, 0.14532306790351868, -0.22945424914360046, -0.07225257158279419, -0.42183107137680054, -0.32185205817222595, -0.4020785987377167, -0.2374117523431778, -0.08456268161535263, -0.16327184438705444, 0.13292984664440155, -0.08230426907539368, 0.00348624587059021, 0.3989432752132416, 0.14489278197288513, 0.03885456919670105, -0.0921778529882431, 0.34152793884277344, -0.20109517872333527, -0.020129432901740074, 0.34904220700263977, 0.3559373915195465, 0.37214332818984985, 0.6303962469100952, -0.07400727272033691, -0.26294654607772827, 0.0912148654460907, -0.09164410829544067, 0.1938478946685791, 0.45227834582328796, -0.01982535421848297, 0.032511793076992035, 0.2730739712715149, 0.34945303201675415, -0.2121812105178833, 0.019735809415578842, 0.06299379467964172, -0.36004742980003357, -0.14448171854019165, -0.09171486645936966, 0.5425666570663452, -0.24238745868206024, 0.020302504301071167, 0.032403163611888885, 0.6648777723312378, -0.2799310088157654, 0.3975716829299927, -0.29227539896965027, 0.8610050678253174, 0.12897422909736633, 0.3152337074279785, 0.4537091553211212, -0.36156368255615234, 0.2927824854850769, -0.6476725935935974, 0.011647636070847511, -0.07091312855482101, 0.21440239250659943, -0.1924668401479721, -0.08450016379356384, -0.039707250893116, -0.3045721650123596, 0.049933064728975296, 0.34621915221214294, -0.05802769213914871, 0.4351760149002075, 0.20923879742622375, -0.04748135432600975, 0.11755687743425369, -0.04457627981901169, -0.4515310227870941, 0.05591326206922531, -0.1300707459449768, 0.11493562161922455, -0.1449425220489502, -0.19521364569664001, -0.3324143588542938, -0.14631325006484985, 0.021468371152877808, 0.23029229044914246, 0.20074495673179626, -0.12353441119194031, 0.1145114004611969, -0.40369582176208496, 0.03246641159057617, 0.004659101366996765, 0.015305086970329285, 0.07964245975017548, -0.48804646730422974, 0.15596060454845428, -0.21708273887634277, 0.09574144333600998, -0.01381323765963316, -0.052320510149002075, 0.10700342804193497, -0.19901126623153687, -0.20017454028129578, -0.07361199706792831, -0.17673929035663605, -0.4683378338813782, -0.20650382339954376, 0.2000971883535385, 0.04474611580371857, -0.13831081986427307, 0.07860344648361206, 0.063398577272892, 0.11480745673179626, -0.18825066089630127, 0.07614456117153168, 0.2264961153268814, -0.36609214544296265, -0.33955293893814087, 0.11693498492240906, -0.2562224864959717, -0.08167138695716858, 0.4282546639442444, -0.06584777683019638, -0.1398652195930481, 0.2938958704471588, 0.09743499755859375, -0.09408487379550934, -0.10204698890447617, -0.07969880104064941, 0.4889586865901947, -0.578471839427948, 0.06193395331501961, -0.09595245122909546, 0.09818126261234283, -0.0985923781991005, -0.0332174114882946, 0.1336440145969391, -0.3805663287639618, 0.12734255194664001, -0.5043214559555054, -0.11311378329992294, 0.14867670834064484, -0.3034214377403259, -0.056126903742551804, 0.11875415593385696, 0.10086512565612793, -0.07907760143280029, -0.3572702705860138, -0.2249252051115036, 0.2928542196750641, -0.3823484778404236, -0.18638555705547333, -0.12350960075855255, 0.0516403503715992, 0.2517188787460327, 0.09055264294147491, 0.0443122461438179, 0.17769674956798553, -0.1890118569135666, -0.06398323178291321, -0.3440088927745819, 0.202242910861969, 0.07723478972911835, -0.1617632806301117, 0.10213949531316757, -0.13557779788970947, -0.15086296200752258, 0.08777826279401779, 0.07124663889408112, 0.1543181836605072, 0.0947263240814209, -0.23691348731517792, 0.29306596517562866, -0.11635317653417587, -0.20115704834461212, 0.48891952633857727, 0.24833175539970398, 0.5059651136398315, -0.0493227019906044, 0.06675027310848236, -0.6707585453987122, 0.03137408196926117, 0.1665525585412979, 0.055722229182720184, 0.2788791060447693, 0.3210638761520386, 0.6118313074111938, -0.575631856918335, 0.03299051895737648, 0.006039516534656286, 0.31092366576194763, 0.13473132252693176, -0.29455772042274475, 0.019193077459931374, 0.042914941906929016, 0.07520705461502075, -0.0013589020818471909, -0.2630736827850342, 0.5856040120124817, 0.04904225468635559, -0.18890561163425446, 0.08209231495857239, 0.12292051315307617, 0.050972357392311096, 0.017332367599010468, 0.17457890510559082, 0.4702455401420593, 0.14202779531478882, -0.172140434384346, 0.12955710291862488, -0.12668699026107788, 0.28273940086364746, -0.08449665457010269, 0.046894628554582596, -0.06921867281198502, 0.49684280157089233, -0.03352472186088562, 0.13903853297233582, -0.009481009095907211, 0.3376961052417755, 0.11957493424415588, -0.5196653008460999, -0.15519097447395325, 0.0363381952047348, 0.19796405732631683, 0.05864543467760086, -0.2508138120174408, 0.17381465435028076, -0.18209964036941528, 0.27082735300064087, -0.30558326840400696, -0.09881974756717682, -0.01199481263756752, 0.10819822549819946, -0.09616869688034058, -0.23484420776367188, -0.023699965327978134, 0.018740173429250717, -0.08668994903564453, -0.16234523057937622, -0.22828736901283264, 0.07809140533208847, -0.11806620657444, -0.3563401699066162, -0.15246129035949707, 0.12795396149158478, 0.015266090631484985, -0.06568127125501633, 0.23949311673641205, 0.24696816504001617, -0.10232244431972504, 0.07067465037107468, -0.1640632301568985, 0.29496699571609497, 0.11479102820158005, 0.052733395248651505, -0.05534907057881355, 0.1584402173757553, 0.06899157911539078, 0.1454934924840927, 0.23919819295406342, 0.24144117534160614, 0.07334063947200775, 0.1912478804588318, 0.08541791141033173, -0.10164173692464828, 0.15102726221084595, -0.14520573616027832, 0.39081454277038574, -0.24086838960647583, 0.5807546377182007, -0.4651973247528076, -0.010185007005929947, -0.217609703540802, -0.15640291571617126, -0.3127632737159729, 0.19484299421310425, 0.33658817410469055, 0.19358746707439423, -0.044861793518066406, -0.08106926083564758, 0.019935213029384613, -0.18684382736682892, 0.30005401372909546, 0.5435922145843506, 0.3429713547229767, -0.28799715638160706, -0.1429528295993805, -0.444491982460022, 0.5230225920677185, 0.02851867862045765, -0.03382757306098938, 0.164557546377182, 0.21040566265583038, -0.22618037462234497, -0.01946035772562027, 0.2304651141166687, -0.22297081351280212, 0.2771524488925934, -0.13849660754203796, -0.0435582660138607, -0.12609589099884033, -0.09669770300388336, 0.0746506080031395, -0.04411064088344574, -0.2333349883556366, 0.18888655304908752, -0.16806255280971527, -0.0500558465719223, 0.13125945627689362, -0.06503482908010483, 0.09329594671726227, -0.297273188829422, 0.45254239439964294, 0.1580045372247696, 0.06680350005626678, 0.095795176923275, -0.448733389377594, -0.24346232414245605, -0.18337218463420868, -0.13895131647586823, -0.48156461119651794, -0.35146066546440125, 0.17299878597259521, -0.19229571521282196, 0.032500460743904114, -0.35763394832611084, 0.24877092242240906, -0.06882771104574203, 0.1517847776412964, -0.1557125449180603, 0.181523397564888, -0.22592076659202576, -0.1300966590642929, 0.23945222795009613, 0.11176032572984695, 0.004915233701467514, 0.10795389115810394, -0.10288376361131668, -0.019818846136331558, 0.6600611209869385, -0.4209553301334381, -0.04056348279118538, 0.05026461184024811, 0.33035004138946533, 0.14359989762306213, -0.46298840641975403, -0.2183719277381897, 0.07783890515565872, 0.23848079144954681, 0.26627272367477417, -0.20905256271362305, 0.20866282284259796, -0.30581599473953247, 0.018663864582777023, 0.04856552556157112, 0.16297613084316254, 0.13903068006038666, -0.22022289037704468, 0.4223588705062866, -0.02166587859392166 ]
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.14894968271255493, -0.2841112017631531, -0.09039515256881714, 0.146070659160614, 0.27517759799957275, 0.04932714253664017, 0.07703205198049545, 0.2098798304796219, 0.2618972659111023, 0.059464603662490845, -0.08569766581058502, 0.09699960798025131, 0.09862177073955536, 0.25173115730285645, 0.11678989976644516, -0.14294469356536865, -0.1188410297036171, 0.21364367008209229, -0.37576448917388916, 0.10285978019237518, -0.030094541609287262, 0.4992609918117523, 0.018785744905471802, -0.030171677470207214, -0.31948983669281006, 0.015822868794202805, -0.07254386693239212, 0.3714369535446167, -0.06256783753633499, -0.2505577802658081, 0.20426906645298004, -0.008187107741832733, 0.17536893486976624, 0.2365753948688507, -0.00010006787488237023, -0.008588578552007675, 0.15010792016983032, -0.04430939257144928, -0.13118356466293335, 0.1888653039932251, -0.12325780838727951, -0.180276557803154, -0.004273406695574522, -0.07909826934337616, -0.44315221905708313, 0.12933026254177094, 0.14939171075820923, -0.2958284020423889, 0.5744665265083313, -0.02616792917251587, 0.3707996904850006, 0.281499445438385, 0.19907887279987335, -0.27685657143592834, 0.12077632546424866, -0.15391241014003754, -0.06568561494350433, 0.16096651554107666, 0.09188973158597946, -0.15300847589969635, 0.13427938520908356, 0.4699549674987793, 0.08480406552553177, 0.11882209777832031, 0.28515371680259705, -0.014772585593163967, -0.21648427844047546, -0.1598254293203354, 0.380375474691391, -0.002382483333349228, 0.38972216844558716, -0.2139134407043457, -0.1837674081325531, -0.10251447558403015, -0.005080438684672117, -0.009725743904709816, 0.10555785894393921, -0.01173672080039978, 0.16465313732624054, 0.31028586626052856, 0.07971147447824478, -0.37667468190193176, 0.13409417867660522, -0.1535579413175583, 0.12377318739891052, 0.024871371686458588, -0.20391514897346497, 0.025180265307426453, 0.210867777466774, -0.08172517269849777, -0.38963475823402405, 0.2301621288061142, -0.43298110365867615, 0.1080724224448204, -0.29195982217788696, 0.05400349944829941, 0.27276837825775146, 0.059747904539108276, -0.011315993964672089, 0.18614456057548523, 0.012056391686201096, 0.0881805568933487, 0.24704864621162415, 0.09374845772981644, 0.12670576572418213, 0.2551039755344391, 0.27773672342300415, -0.09263565391302109, 0.29412394762039185, -0.0005992359947413206, -0.13509304821491241, -0.14421984553337097, 0.010552451014518738, -0.057953301817178726, 0.14860950410366058, -0.023618362843990326, 0.06878120452165604, -0.14405186474323273, -0.08591800928115845, -0.009424478746950626, 0.021077506244182587, 0.043870244175195694, -0.06761983036994934, 0.29888424277305603, -0.1251082718372345, -0.04401639103889465, 0.12227967381477356, -0.00324186310172081, -0.10495638102293015, -0.12094743549823761, -0.4230038821697235, 0.01734846457839012, -0.15100587904453278, 0.1446433961391449, 0.2698572874069214, -0.2826420068740845, 0.47179216146469116, -0.09085588902235031, -0.14310197532176971, -0.0054616779088974, 0.15620844066143036, 0.11936526000499725, -0.11497621983289719, 0.3126600682735443, 0.07207810878753662, 0.2043958306312561, 0.19717036187648773, -0.2255740761756897, 0.09353023022413254, -0.062249548733234406, -0.31561729311943054, -0.3906938135623932, -0.24787147343158722, 0.2746993899345398, -0.25985074043273926, 0.04765935242176056, -0.17600291967391968, -0.06734932959079742, 0.022054649889469147, -0.13179166615009308, -0.05097351223230362, -0.008843231946229935, -0.10574936866760254, -0.3027728497982025, 0.35041099786758423, 0.45630019903182983, -0.38411596417427063, -0.312405526638031, 0.07431113719940186, -0.30126598477363586, -0.2867962718009949, 0.2582092583179474, -0.06908800452947617, 0.09036333858966827, -0.39825060963630676, 0.3396104574203491, 0.08690145611763, -0.24574053287506104, -0.44132375717163086, 0.14087773859500885, -0.15610937774181366, -0.016853392124176025, 0.00046522170305252075, 0.08462270349264145, 0.04105611890554428, 0.16092146933078766, -0.011093460023403168, 0.07270505279302597, 0.12957043945789337, 0.11984587460756302, -0.2933919131755829, -0.22342419624328613, -0.1068691611289978, 0.17819100618362427, -0.018435198813676834, 0.04801783338189125, 0.08942992240190506, -0.05326615646481514, -0.0724112018942833, -0.034695494920015335, 0.14210855960845947, 0.5428276658058167, 0.32406866550445557, 0.1759868860244751, 0.07108288258314133, -0.11122006922960281, -0.4236645996570587, 0.24059870839118958, 0.011082172393798828, 0.1994272768497467, -0.07274152338504791, -0.10408064723014832, -0.18065911531448364, -0.12004562467336655, -0.10434557497501373, -0.32736706733703613, 0.2714443504810333, 0.2450678050518036, 0.23671236634254456, 0.11927981674671173, -0.10004038363695145, 0.5312880873680115, 0.22796158492565155, 0.10427262634038925, -0.5642832517623901, 0.23932017385959625, -0.1372600495815277, -0.30614426732063293, 0.07471457123756409, 0.0397147573530674, 0.03659263998270035, -0.2077726572751999, -0.0809379369020462, 0.5030691027641296, -0.2509528398513794, 0.15252581238746643, 0.2653537690639496, 0.10400325804948807, -0.0787997841835022, -0.20128107070922852, 0.044373538345098495, -0.13536278903484344, 0.07379809767007828, 0.020762406289577484, 0.12078270316123962, 0.07421332597732544, 0.04061691835522652, -0.05256064981222153, 0.007950909435749054, 0.027190277352929115, 0.1815289855003357, -0.18845683336257935, -0.10013578832149506, -0.1488165706396103, 0.13058800995349884, -0.22027283906936646, 0.23376421630382538, -0.01286228559911251, -0.15995758771896362, 0.40276214480400085, 0.5056484341621399, 0.15148352086544037, 0.17035847902297974, -0.007787156850099564, -0.34673476219177246, -0.09445492923259735, 0.04240597411990166, 0.35871216654777527, 0.5050251483917236, 0.2802163064479828, -0.0021783970296382904, -0.01872350089251995, 0.08872120082378387, -0.056116312742233276, 0.10066408663988113, -0.2698324918746948, -0.059102002531290054, 0.05737154558300972, 0.15008655190467834, -0.11432836204767227, -0.36185675859451294, 0.16923661530017853, -0.186309814453125, 0.20129632949829102, -0.149330273270607, -0.11432948708534241, -0.22471687197685242, -0.21979600191116333, 0.15502801537513733, 0.07930319011211395, -0.2900712490081787, -0.14712543785572052, 0.09794378280639648, 0.07803841680288315, 0.06484349071979523, 0.1727217584848404, 0.14013466238975525, 0.1194709986448288, 0.02324465475976467, 0.042077574878931046, -0.2549949884414673, -0.19496889412403107, -0.16108542680740356, 0.13967952132225037, -0.11145713925361633, 0.05981121584773064, 0.3552452623844147, -0.24903728067874908, 0.21423687040805817, -0.40082356333732605, -0.3154817223548889, 0.001193162053823471, -0.10156597197055817, 0.2772090435028076, 0.3434365689754486, 0.48049378395080566, -0.13628655672073364, -0.24632978439331055, 0.4448930621147156, -0.3510620594024658, -0.1793384552001953, -0.08744653314352036, 0.034120868891477585, -0.1851828396320343, -0.3269740641117096, -0.17200994491577148, -0.16259467601776123, -0.3666306734085083, 0.4123753309249878, -0.09111345559358597, -0.07027636468410492, -0.0009884564206004143, -0.02582702785730362, 0.19590267539024353, -0.2662550210952759, 0.01883985474705696, -0.48769405484199524, -0.5863968133926392, 0.23092059791088104, -0.31340914964675903, -0.32654231786727905, 0.16146963834762573, 0.1782241016626358, 0.2323613464832306, -0.38691359758377075, -0.6166651844978333, -0.5167445540428162, -0.2617878317832947, 0.20290063321590424, -0.20047320425510406, 0.19026227295398712, 0.39139577746391296, -0.038290079683065414, -0.1795978844165802, -0.18168926239013672, -0.47166791558265686, 0.2314305305480957, 0.011442387476563454, 0.2168356478214264, -0.23398080468177795, 0.39324891567230225, 0.046590398997068405, 0.4432983994483948, 0.013125531375408173, -0.041637662798166275, 0.3219987750053406, -0.08245888352394104, 0.4564373195171356, -0.2917793393135071, -0.3831224739551544, 0.18578167259693146, -0.006061390042304993, 0.22609810531139374, 0.26812994480133057, 0.1443546712398529, 0.14058323204517365, -0.28790098428726196, 0.12220190465450287, -0.23766183853149414, -0.16557136178016663, -0.10878854990005493, 0.14541226625442505, -0.010435715317726135, 0.1099620908498764, 0.011974409222602844, -0.25767242908477783, -0.04264581575989723, 0.326852023601532, 0.29621708393096924, 0.15990319848060608, 0.19038952887058258, -0.42068108916282654, -0.1156720370054245, -0.4370608925819397, 0.2657991051673889, -0.16007673740386963, -0.016081538051366806, -0.32908889651298523, -0.0653516948223114, 0.016333505511283875, -0.07605554163455963, 0.7218393683433533, -0.22103886306285858, -0.035433463752269745, -0.0009086765348911285, 0.028582587838172913, -0.30478185415267944, -0.12136077880859375, -0.029740896075963974, 0.0629955530166626, 0.4729388952255249, 0.37696224451065063, -0.3789205253124237, -0.1535690575838089, 0.11344829946756363, -0.05293097347021103, -0.16449163854122162, -0.14240767061710358, -0.34877678751945496, -0.19713476300239563, -0.2680318355560303, -0.13038337230682373, -0.09941073507070541, 0.030169012024998665, 0.21412718296051025, 0.07131950557231903, -0.07482889294624329, -0.243850976228714, 0.005862489342689514, 0.2063794881105423, 0.4361851215362549, 0.07888568192720413, 0.20692354440689087, 0.21029339730739594, 0.3399573862552643, -0.12386290729045868, 0.44971764087677, -0.18482354283332825, -0.055516213178634644, 0.21161985397338867, -0.079140305519104, 0.05301911011338234, 0.10414554178714752, -0.08769065141677856, 0.14497166872024536, -0.03047145903110504, 0.41504019498825073, -0.08473702520132065, 0.11732110381126404, 0.25674664974212646, 0.1363580971956253, 0.09789565205574036, -0.05755769461393356, 0.17505419254302979, 0.0013884585350751877, 0.04335148632526398, 0.16931992769241333, 0.2645571529865265, -0.13970468938350677, 0.08990876376628876, -0.3566857576370239, 0.7948883175849915, 0.007272128015756607, -0.05959181860089302, 0.1683616042137146, -0.26696068048477173, 0.48443320393562317, 0.030315667390823364, 0.03828492760658264, -0.22180427610874176, -0.3330692648887634, 0.10393236577510834, -0.007571257650852203, 0.07180840522050858, -0.0013676062226295471, -0.2892480194568634, 0.15569213032722473, 0.09436501562595367, 0.1527903825044632, -0.23765452206134796, 0.2912343144416809, -0.0004336647689342499, -0.0680205374956131, -0.0517965704202652, 0.33986029028892517, -0.26623934507369995, 0.3884885311126709, -0.1627102792263031, -0.11618097126483917, 0.13284112513065338, -0.1030171811580658, -0.28311800956726074, -0.0023751407861709595, -0.3912827968597412, 0.1674746870994568, 0.21331875026226044, 0.014537930488586426, -0.17102780938148499, 0.005038917064666748, 0.3181125521659851, 0.18066202104091644, -0.3579660952091217, 0.17150072753429413, 0.09421424567699432, -0.16306070983409882, -0.17371012270450592, 0.11599932610988617, 0.19633923470973969, -0.11181113123893738, -0.27261361479759216, 0.03782525658607483, -0.18864306807518005, -0.25167328119277954, -0.20216518640518188, -0.007931962609291077, -0.14178086817264557, -0.18206854164600372, -0.20654462277889252, 0.1918262541294098, 0.07828164100646973, -0.15520238876342773, 0.2192503660917282, 0.27320653200149536, -0.020024435594677925, -0.0007662251591682434, 0.09925469756126404, -0.2341623306274414, -0.15734392404556274, 0.523573100566864, -0.29108765721321106, -0.09910717606544495, 0.328955739736557, 0.055046942085027695, -0.17448700964450836, -0.2369522750377655, -0.14595896005630493, 0.07694216072559357, -0.3101458251476288, 0.01910414546728134, 0.07290741056203842, -0.21285676956176758, 0.24150095880031586, -0.06433060765266418, 0.2172025442123413, -0.1466224193572998, 0.019026856869459152, -0.28031378984451294, -0.2939017415046692, 0.17897921800613403, 0.01878279820084572, 0.21109911799430847, -0.011530078947544098, 0.07736639678478241, 0.0362933874130249, 0.20264260470867157, -0.4853777289390564, 0.1817750781774521, -0.14829134941101074, 0.013320857658982277, 0.42206427454948425, -0.2894526422023773, 0.18276354670524597, -0.15726515650749207, 0.2635749578475952, 0.10097654908895493, -0.5141133666038513, -0.36656543612480164, -0.01353732030838728, 0.06696293503046036, -0.21059104800224304, 0.0188264399766922, -0.06436245143413544, -0.0037205200642347336, -0.05213599279522896, -0.04270913824439049, 0.24464848637580872, 0.03443554788827896, 0.014183226972818375, 0.15152744948863983, 0.08938668668270111, -0.031104423105716705, 0.24175675213336945, 0.08254953473806381, 0.054841455072164536, 0.08445513993501663, -0.08326113969087601, -0.0351247563958168, -0.22913749516010284, 0.03786461055278778, 0.049103353172540665, 0.11351080238819122, 0.029933713376522064, 0.24389460682868958, 0.042887091636657715, -0.2724189758300781, -0.2917991578578949, -0.054540086537599564, 0.3474992513656616, 0.0014475733041763306, -0.08829691261053085, 0.047402963042259216, 0.08239952474832535, 0.3787726163864136, -0.26252853870391846, 0.06941220164299011, 0.26507434248924255, 0.0131717249751091, 0.1829773187637329, 0.10564842075109482, 0.0961889922618866, 0.024187631905078888, 0.15396693348884583, 0.2842825651168823, 0.59188312292099, -0.24184201657772064, -0.06851351261138916, -0.055447112768888474, -0.16248415410518646, -0.2928982079029083, 0.24251186847686768, -0.005492214113473892, 0.06630706787109375, 0.17245036363601685, -0.0896000936627388, 0.17817214131355286, 0.11484057456254959, 0.2551930546760559, 0.013994477689266205, -0.21927683055400848, -0.03795996680855751, 0.1845485270023346, -0.1068761944770813, 0.044775575399398804, -0.06146654486656189, 0.6470044255256653, -0.4179856777191162, -0.3641883134841919, -0.21130616962909698, 0.28030672669410706, -0.25293147563934326, -0.11899635195732117, 0.19900169968605042, -0.06411676108837128, -0.0293617844581604, 0.060433682054281235, 0.13640518486499786, -0.07471783459186554, 0.309999018907547, -0.005131922662258148, 0.014546103775501251, -0.18431809544563293, -0.26007306575775146, 0.12810958921909332, 0.09534471482038498, -0.021320153027772903, 0.3233247399330139, 0.05608287453651428, -0.2279423177242279, -0.012883175164461136, 0.5119293332099915, 0.34392088651657104, 0.10319118201732635, -0.0047941021621227264, 0.2766627371311188, 0.04995369166135788, -0.13562804460525513, -0.24103277921676636, 0.21707797050476074, 0.017255201935768127, -0.2678782641887665, 0.11446045339107513, 0.2914260923862457, -0.2709861993789673, -0.031478915363550186, -0.2785284221172333, 0.24577011168003082, -0.03695162758231163, 0.10552672296762466, -0.29384341835975647, -0.17374181747436523, -0.15350262820720673, 0.016272418200969696, -0.4971681237220764, -0.09212865680456161, 0.13052569329738617, -0.06435474753379822, 0.08726011961698532, -0.33840134739875793, 0.17064452171325684, -0.12498356401920319, 0.5146690011024475, 0.40269699692726135, 0.06582992523908615, -0.04377434030175209, -0.27276283502578735, -0.6360181570053101, 0.19228972494602203, -0.0027038007974624634, -0.022369084879755974, -0.2565232217311859, 0.28796711564064026, 0.026596054434776306, -0.04531378298997879, 0.22624315321445465, 0.23405036330223083, 0.05070403963327408, -0.14863401651382446, -0.46976467967033386, 0.0955657958984375, 0.09675268828868866, 0.01691456139087677, 0.34383752942085266, -0.20059087872505188, 0.05095946788787842, 0.011902564205229282, 0.23709207773208618, 0.03702889382839203, 0.06645511090755463, -0.10404308140277863, -0.11237180233001709, 0.5082690715789795, 0.10789623856544495, 0.06724889576435089, -0.039784882217645645, -0.1035018190741539, -0.13269031047821045, -0.3973800539970398, -0.043211858719587326, 0.043918855488300323, 0.13582256436347961, 0.4293411672115326, -0.029446810483932495, -0.1377386897802353, -0.24687707424163818, 0.15713967382907867, 0.16994529962539673, 0.2434619516134262, -0.21930763125419617, 0.06721895933151245, 0.08227203041315079, 0.07176344841718674, 0.10304170101881027, 0.2221030592918396, -0.0175563246011734, 0.10068212449550629, -0.20252196490764618, -0.15911565721035004, 0.6115162372589111, -0.17844092845916748, -0.05534927546977997, 0.06102203577756882, 0.27732032537460327, 0.23829752206802368, -0.3452545702457428, -0.5500251054763794, 0.09080956131219864, 0.19098547101020813, 0.1230883076786995, -0.1996174305677414, 0.3635503053665161, -0.306409627199173, 0.15115945041179657, 0.08295443654060364, 0.0998392179608345, 0.27835914492607117, -0.13046129047870636, 0.1929549127817154, -0.05302442982792854 ]
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.0967949703335762, -0.21156716346740723, -0.08074958622455597, 0.19621111452579498, 0.32625192403793335, 0.2369837760925293, 0.014585506170988083, 0.2186017781496048, 0.3042125403881073, 0.024730071425437927, 0.03595985472202301, 0.03241826221346855, 0.06950785964727402, 0.025483867153525352, 0.1852317750453949, -0.1839710772037506, -0.05199924856424332, 0.24471378326416016, -0.2526423931121826, 0.11344896256923676, 0.02623986452817917, 0.5897671580314636, -0.016213469207286835, -0.053483858704566956, -0.4070295989513397, 0.0637793019413948, -0.10672581940889359, 0.3864384889602661, 0.08373866975307465, -0.3092553913593292, 0.3094598054885864, -0.12232416868209839, 0.16652539372444153, 0.23787328600883484, -0.00010695546370698139, -0.017267074435949326, 0.10973301529884338, -0.07381416112184525, -0.20030748844146729, 0.1936405897140503, -0.1755618155002594, -0.21217676997184753, -0.043149590492248535, -0.16831490397453308, -0.31272318959236145, 0.20771358907222748, 0.20801743865013123, -0.36020955443382263, 0.46698296070098877, -0.07798513025045395, 0.3034726679325104, 0.07345213741064072, 0.18703901767730713, -0.22531716525554657, 0.09968448430299759, -0.06471705436706543, 0.018000246956944466, 0.16279102861881256, 0.028018571436405182, -0.0881328359246254, 0.22781196236610413, 0.5137566328048706, 0.019126886501908302, 0.06689493358135223, 0.32527533173561096, 0.00580246327444911, -0.21486642956733704, -0.11751431226730347, 0.42946526408195496, 0.025246229022741318, 0.5012627243995667, -0.2845916152000427, -0.25567448139190674, -0.1477590799331665, 0.060787416994571686, -0.03762108087539673, 0.13062666356563568, 0.0382055938243866, 0.24020487070083618, 0.3680468201637268, 0.15736523270606995, -0.49636298418045044, 0.17827649414539337, -0.1671726256608963, 0.24006444215774536, -0.02521880716085434, -0.2089727371931076, 0.025738615542650223, -0.052349213510751724, 0.060218144208192825, -0.4202080965042114, 0.09361783415079117, -0.44523659348487854, 0.22937694191932678, -0.3384402394294739, 0.017712488770484924, 0.15640296041965485, 0.05866886302828789, -0.06727086752653122, 0.17569229006767273, -0.00961648765951395, -0.017815202474594116, 0.1846623718738556, 0.0050520263612270355, 0.11657960712909698, 0.34755808115005493, 0.30021876096725464, -0.060856450349092484, 0.2772583067417145, -0.03443148732185364, -0.11260558664798737, -0.21169328689575195, -0.026767365634441376, -0.044520482420921326, 0.3394469916820526, 0.07092514634132385, 0.04714621603488922, -0.127361461520195, -0.0748821422457695, 0.005247337743639946, 0.009482424706220627, 0.04625722020864487, -0.017361190170049667, 0.22797110676765442, -0.16196772456169128, 0.06697224825620651, 0.07527529448270798, -0.11207713186740875, -0.10229648649692535, -0.2396528124809265, -0.438536137342453, 0.08573836088180542, -0.14162950217723846, 0.26058709621429443, 0.225118950009346, -0.35293522477149963, 0.5194399952888489, -0.15446387231349945, -0.13394580781459808, -0.06719207763671875, 0.17338864505290985, 0.016441475600004196, -0.11129502207040787, 0.36001819372177124, -0.0070318058133125305, 0.29110780358314514, 0.24139173328876495, -0.20934398472309113, 0.03292787820100784, 0.001752994954586029, -0.4485355615615845, -0.48719608783721924, -0.2713927626609802, 0.2058471292257309, -0.30411791801452637, 0.1193079724907875, -0.22378888726234436, -0.13245227932929993, 0.11007241904735565, -0.362300843000412, 0.06652796268463135, -0.03160782903432846, -0.18146316707134247, -0.39800724387168884, 0.31877121329307556, 0.5888071060180664, -0.4055516719818115, -0.37794873118400574, -0.0020706020295619965, -0.21267297863960266, -0.3125269114971161, 0.22824348509311676, -0.08365105837583542, 0.19378596544265747, -0.5655233263969421, 0.32826918363571167, 0.24218332767486572, -0.4067052900791168, -0.5046396851539612, 0.17634548246860504, -0.07614492624998093, 0.024231506511569023, 0.03887559473514557, 0.1862754374742508, -0.048539500683546066, 0.09085188806056976, -0.006864674389362335, -0.05962473154067993, 0.09114422649145126, 0.07389023154973984, -0.21609880030155182, -0.18529410660266876, -0.019468341022729874, 0.17196117341518402, 0.1014138013124466, 0.06008584052324295, 0.13870960474014282, -0.08658856898546219, -0.1059984639286995, 0.03133770078420639, 0.1604243814945221, 0.6651589870452881, 0.27281424403190613, 0.19428065419197083, 0.12406185269355774, -0.15081873536109924, -0.48160499334335327, 0.32176458835601807, 0.018609661608934402, -0.05824317783117294, -0.14319844543933868, -0.12471076846122742, -0.021040495485067368, -0.20055054128170013, -0.12942835688591003, -0.40229684114456177, 0.17124687135219574, 0.14583197236061096, 0.2671718895435333, 0.168970987200737, -0.06524328142404556, 0.6422882676124573, 0.18650469183921814, 0.07551489770412445, -0.5425470471382141, 0.24785970151424408, -0.0030794497579336166, -0.2368042767047882, -0.03969450667500496, 0.11975464224815369, 0.09181857109069824, -0.16839775443077087, -0.12286356836557388, 0.49494683742523193, -0.22939632833003998, 0.049852773547172546, 0.3663034439086914, 0.10164280235767365, -0.1042599156498909, -0.13743674755096436, 0.03605559468269348, -0.1573885679244995, 0.12170329689979553, -0.014661338180303574, 0.11883534491062164, -0.020610660314559937, 0.05812525749206543, -0.10986974090337753, -0.08939052373170853, 0.014415958896279335, 0.2158413827419281, -0.19676518440246582, -0.14747057855129242, -0.13284896314144135, 0.21661630272865295, -0.25272229313850403, 0.29282400012016296, 0.027248701080679893, -0.06466440111398697, 0.36603960394859314, 0.5254285335540771, 0.1012599766254425, 0.15091252326965332, -0.04149891436100006, -0.3780701756477356, -0.057684917002916336, 0.01970573700964451, 0.37175819277763367, 0.6975576877593994, 0.25144457817077637, -0.03569849953055382, -0.12420257180929184, 0.17769238352775574, 0.011953599750995636, 0.06130991503596306, -0.2530563473701477, -0.03694717213511467, 0.12760689854621887, 0.12229107320308685, 0.031881775707006454, -0.20214596390724182, 0.08581742644309998, -0.11579861491918564, 0.15629513561725616, -0.08688469976186752, -0.047894544899463654, -0.24927347898483276, -0.2735442817211151, 0.13083690404891968, 0.19765959680080414, -0.22532296180725098, -0.10981881618499756, 0.034439291805028915, -0.05061190947890282, 0.23515701293945312, 0.12277808785438538, 0.033784642815589905, 0.13835681974887848, 0.05541984736919403, -0.09622152149677277, -0.25235679745674133, -0.1669972538948059, -0.1882658302783966, 0.03505517914891243, -0.1320616900920868, -0.05662517622113228, 0.33501651883125305, -0.3225834369659424, 0.20252075791358948, -0.5201038122177124, -0.2556639611721039, 0.015362109988927841, -0.005426082760095596, 0.1994890570640564, 0.38507744669914246, 0.3450617790222168, -0.14086201786994934, -0.14688464999198914, 0.40200483798980713, -0.30228620767593384, -0.145564466714859, -0.03853154182434082, 0.00021054287208244205, -0.2106553465127945, -0.2796365022659302, -0.1135801151394844, -0.23546172678470612, -0.25396445393562317, 0.2946379780769348, -0.1774369180202484, -0.1345793604850769, -0.09570261090993881, -0.15386566519737244, 0.16463181376457214, -0.2699984908103943, -0.02641580067574978, -0.4716525077819824, -0.6318151950836182, 0.2939578592777252, -0.2295253425836563, -0.22315175831317902, 0.2445824146270752, 0.05899477005004883, 0.3146018087863922, -0.31034594774246216, -0.6782833337783813, -0.4436459243297577, -0.2228265106678009, 0.2856234610080719, -0.413055956363678, 0.16353917121887207, 0.480837881565094, -0.14880353212356567, -0.1070152297616005, -0.14147263765335083, -0.4869018793106079, 0.08948919177055359, 0.0037860646843910217, 0.3139511048793793, -0.2787525951862335, 0.47861382365226746, 0.07337629795074463, 0.5729889273643494, 0.053060900419950485, 0.029859444126486778, 0.2796933054924011, 0.017131688073277473, 0.5509264469146729, -0.26490527391433716, -0.3026599586009979, 0.2523861527442932, -0.06244201958179474, 0.1633927822113037, 0.21036958694458008, 0.1810736358165741, 0.14414699375629425, -0.27523428201675415, 0.04003756120800972, -0.32717016339302063, -0.08457113802433014, -0.10914863646030426, 0.03893011808395386, 0.036760054528713226, 0.15658575296401978, -0.04470771923661232, -0.3745785057544708, -0.13701492547988892, 0.32295992970466614, 0.4588415026664734, 0.2946390211582184, 0.2685704827308655, -0.43394333124160767, -0.20064836740493774, -0.36116400361061096, 0.23750624060630798, -0.03766818344593048, -0.03216271102428436, -0.246255025267601, 0.04612512141466141, -0.05428953468799591, 0.07071086764335632, 0.8077048063278198, -0.21465839445590973, -0.055143214762210846, 0.014453157782554626, 0.07183510065078735, -0.21788538992404938, -0.19470827281475067, 0.17276744544506073, 0.2921322286128998, 0.4602998197078705, 0.39156341552734375, -0.2678528428077698, -0.21936503052711487, 0.16354507207870483, -0.017157504335045815, -0.23043663799762726, -0.2725435197353363, -0.37942495942115784, -0.03904734551906586, -0.0797819048166275, -0.25829026103019714, -0.053567856550216675, -0.04324823617935181, 0.2502157688140869, 0.09689505398273468, -0.09235271066427231, -0.20092910528182983, -0.10868765413761139, 0.026712026447057724, 0.49551987648010254, 0.025267546996474266, 0.1935303956270218, 0.17334802448749542, 0.3421195447444916, -0.11405342817306519, 0.35779890418052673, -0.25853869318962097, -0.11328072845935822, 0.3245093822479248, -0.15983381867408752, 0.07410265505313873, 0.08618206530809402, -0.19930368661880493, 0.16364571452140808, 0.021828098222613335, 0.3937494158744812, -0.09867183119058609, -0.043854087591171265, 0.19097767770290375, 0.17915457487106323, -0.029738299548625946, -0.14867116510868073, 0.1355154812335968, 0.11216622591018677, 0.09184706211090088, 0.29191574454307556, 0.12789283692836761, -0.1780320703983307, -0.0020837332122027874, -0.4114619195461273, 0.730327844619751, 0.06027765944600105, 0.0234783086925745, 0.04715782403945923, -0.2416369915008545, 0.6816246509552002, -0.11252748221158981, 0.1529456228017807, -0.1582617312669754, -0.40883374214172363, 0.06093116104602814, -0.06391607969999313, 0.10557436943054199, 0.03367025405168533, -0.24753890931606293, 0.38323986530303955, 0.13450437784194946, 0.14397676289081573, -0.16518452763557434, 0.21332228183746338, 0.0426836721599102, -0.009612921625375748, 0.055895037949085236, 0.23825815320014954, -0.34722501039505005, 0.4295887351036072, -0.2156781554222107, -0.009585930034518242, 0.16748490929603577, -0.08256687223911285, -0.3599315285682678, -0.04651664197444916, -0.4265124201774597, 0.2485111802816391, 0.2785871922969818, -0.06686398386955261, -0.13093262910842896, 0.08683843910694122, 0.35560959577560425, 0.16571000218391418, -0.3290101885795593, 0.22401265799999237, 0.0849868506193161, -0.06575527042150497, -0.21965940296649933, 0.031745802611112595, 0.25206807255744934, -0.05530979484319687, -0.15715962648391724, 0.09816831350326538, -0.36750173568725586, -0.3502756953239441, -0.14981503784656525, -0.003848850727081299, -0.11485683917999268, -0.16446836292743683, -0.2608124613761902, 0.1685834527015686, 0.20057892799377441, -0.1329323798418045, 0.1327245980501175, 0.35895901918411255, -0.008372562937438488, -0.0744086429476738, -0.03107079491019249, -0.28762710094451904, -0.1363266557455063, 0.5017424821853638, -0.24287205934524536, -0.23379568755626678, 0.3761483132839203, -0.048000819981098175, -0.20095767080783844, -0.16556334495544434, -0.09986668825149536, 0.008130047470331192, -0.33451932668685913, -0.05080285668373108, 0.033376894891262054, -0.020160280168056488, 0.2324296534061432, -0.3288281261920929, 0.23378905653953552, -0.1422804594039917, 0.04058510437607765, -0.4315917193889618, -0.2289019674062729, 0.1564456820487976, -0.014113709330558777, 0.12375734746456146, 0.01886724680662155, -0.02200232818722725, 0.043559953570365906, 0.18356196582317352, -0.39205867052078247, 0.2403358370065689, -0.151273712515831, 0.016413139179348946, 0.378059059381485, -0.14539280533790588, 0.1978178173303604, -0.20911934971809387, 0.18783354759216309, -0.007013585418462753, -0.41655805706977844, -0.28128108382225037, 0.039987895637750626, 0.1088973805308342, -0.3066793978214264, 0.11901038140058517, -0.1023700088262558, -0.016736894845962524, 0.04880202189087868, -0.04143659025430679, 0.2671302258968353, 0.08534525334835052, 0.06661127507686615, 0.1731099635362625, 0.05592932179570198, -0.05336841940879822, 0.055409111082553864, 0.17052273452281952, -0.06029340624809265, 0.07763415575027466, 0.008526725694537163, 0.03909335657954216, -0.12149292975664139, 0.13477222621440887, -0.05027735233306885, -0.013682298362255096, -0.13897255063056946, 0.11482514441013336, 0.06751231849193573, -0.41565626859664917, -0.29595303535461426, 0.0221160426735878, 0.22578653693199158, -0.13272683322429657, -0.19992008805274963, 0.1093706339597702, 0.12445854395627975, 0.2931167483329773, -0.23061040043830872, 0.05545718967914581, 0.41064125299453735, 0.14736224710941315, 0.07640102505683899, 0.0539945513010025, 0.09772859513759613, -0.013366714119911194, 0.30589738488197327, 0.28997087478637695, 0.6977528929710388, -0.3106096386909485, 0.0015327194705605507, -0.09254094958305359, 0.03393041715025902, -0.20715902745723724, 0.2290632128715515, 0.04742896929383278, -0.0009531378746032715, 0.27221617102622986, 0.01561582088470459, 0.1789287030696869, 0.20548677444458008, 0.37316036224365234, -0.11007250100374222, -0.40001311898231506, -0.13722123205661774, 0.2010284811258316, -0.24704807996749878, -0.009015180170536041, -0.07382741570472717, 0.6431601643562317, -0.3798412084579468, -0.29614731669425964, -0.12487095594406128, 0.1860915869474411, -0.2912665009498596, -0.015075936913490295, 0.30560895800590515, 0.00005447119474411011, 0.11097906529903412, 0.04606937989592552, 0.18239274621009827, 0.032317161560058594, 0.25380128622055054, 0.052085068076848984, -0.07659733295440674, -0.09458224475383759, -0.20463770627975464, 0.2194271981716156, 0.1017223596572876, -0.03813735395669937, 0.2479148656129837, 0.06056787446141243, -0.3091122508049011, -0.05196794494986534, 0.542691707611084, 0.28481370210647583, 0.07306812703609467, 0.007485565729439259, 0.12655529379844666, 0.17103290557861328, -0.12928442656993866, -0.18717442452907562, 0.21794945001602173, 0.06744611263275146, -0.3011265993118286, -0.058572012931108475, 0.25547778606414795, -0.16151189804077148, 0.15055222809314728, -0.25554683804512024, 0.2517748773097992, -0.14359550178050995, 0.06006757915019989, -0.3752921223640442, -0.13925589621067047, -0.17222344875335693, 0.2159518003463745, -0.47291725873947144, -0.09143006056547165, 0.23566387593746185, -0.014075846411287785, -0.013920783065259457, -0.272419810295105, 0.1286890059709549, -0.1506773978471756, 0.32116782665252686, 0.5002910494804382, 0.03378288447856903, -0.16932381689548492, -0.21953848004341125, -0.592327892780304, 0.2428310513496399, 0.02722850814461708, 0.0931200459599495, -0.19424045085906982, 0.2648683190345764, -0.029922179877758026, -0.0864049419760704, 0.26623252034187317, 0.19246238470077515, 0.08036850392818451, -0.09203965961933136, -0.4781437814235687, -0.05662937089800835, 0.1173732727766037, 0.029379218816757202, 0.284511536359787, -0.23942720890045166, 0.056258007884025574, 0.1328880339860916, 0.15100914239883423, 0.008560487069189548, 0.02026400715112686, -0.08011819422245026, 0.025763439014554024, 0.5730305314064026, 0.11870759725570679, 0.06001028046011925, 0.04952504485845566, -0.12369728833436966, -0.03321615234017372, -0.32977280020713806, 0.1130044236779213, 0.0761101171374321, 0.09475122392177582, 0.3451068103313446, -0.24469150602817535, -0.11194692552089691, -0.2737618684768677, 0.16651226580142975, 0.13546717166900635, 0.2840450406074524, -0.32471147179603577, 0.0768086314201355, -0.020788047462701797, 0.19274942576885223, 0.19934788346290588, 0.18234530091285706, -0.09816807508468628, 0.10807892680168152, -0.13855496048927307, 0.062051475048065186, 0.5860335826873779, -0.2508485019207001, 0.04632074013352394, -0.05261468514800072, 0.3319084346294403, 0.2783113718032837, -0.27288568019866943, -0.3691655397415161, 0.010500416159629822, 0.3397523760795593, 0.16773071885108948, -0.23063170909881592, 0.31440606713294983, -0.3140172064304352, 0.23891954123973846, 0.1413288414478302, 0.045536525547504425, 0.1619604229927063, -0.11549822986125946, 0.1430303007364273, -0.11682411283254623 ]
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.40982237458229065, -0.25380760431289673, 0.01645563542842865, -0.03116115927696228, 0.33988529443740845, -0.05797136574983597, 0.3023078739643097, 0.06744362413883209, -0.21752548217773438, 0.37735700607299805, -0.23105117678642273, 0.29125550389289856, -0.1922607421875, 0.26576855778694153, -0.09424563497304916, 0.10881077498197556, 0.07740223407745361, 0.08244481682777405, -0.40716713666915894, -0.025976456701755524, -0.22573506832122803, -0.09344549477100372, -0.5538955926895142, -0.24943001568317413, -0.038743335753679276, -0.12912945449352264, 0.08400098979473114, 0.06907334178686142, -0.24990896880626678, -0.10485849529504776, 0.11572253704071045, 0.5466897487640381, -0.06661659479141235, 0.49112120270729065, -0.00010466053936397657, -0.04668616130948067, 0.2209419161081314, -0.14789548516273499, -0.19710876047611237, -0.01623488962650299, -0.2287004590034485, 0.361631840467453, -0.17292003333568573, -0.04709027335047722, -0.11057901382446289, -0.33269423246383667, 0.017909204587340355, -0.35291746258735657, 0.10909871011972427, -0.06073799356818199, 0.2504822313785553, 0.15205276012420654, -0.1833842545747757, -0.01109588798135519, 0.3300376236438751, 0.16020214557647705, -0.18874019384384155, 0.2795754373073578, 0.3021202087402344, 0.12140141427516937, -0.021530821919441223, 0.3396957814693451, -0.04575880616903305, 0.09730774164199829, 0.2876347601413727, -0.12215504795312881, -0.07569057494401932, -0.40559273958206177, 0.16290788352489471, 0.1327940970659256, 0.40411901473999023, -0.32703879475593567, -0.23384475708007812, -0.372826486825943, 0.06836412847042084, -0.24945411086082458, 0.12981568276882172, -0.08261468261480331, -0.12513922154903412, -0.11274424195289612, -0.42950937151908875, 0.12751594185829163, -0.013584483414888382, -0.03393267095088959, 0.5006258487701416, 0.4225344657897949, -0.13812574744224548, 0.1263810098171234, 0.2588516175746918, -0.20663097500801086, 0.46598049998283386, -0.08024713397026062, -0.21356099843978882, 0.3368562161922455, -0.407532274723053, -0.1301376223564148, 0.17357924580574036, 0.238752543926239, 0.3460848927497864, 0.0446176752448082, 0.21715578436851501, 0.2294619381427765, 0.15715070068836212, 0.05462463200092316, 0.4331022799015045, 0.06278800964355469, -0.0688360258936882, 0.04540518298745155, 0.1574961543083191, 0.3058144748210907, 0.023727256804704666, -0.024925027042627335, 0.2888551354408264, -0.08608531951904297, 0.002356402575969696, -0.05673021078109741, 0.10770449042320251, -0.1669803410768509, -0.09526233375072479, -0.38587889075279236, -0.1767880916595459, -0.15378709137439728, 0.2711009681224823, 0.3885044455528259, 0.059484295547008514, 0.015488861128687859, -0.31588900089263916, 0.23433737456798553, 0.001973172649741173, 0.13454270362854004, -0.2632301449775696, -0.24805505573749542, -0.23270183801651, 0.09058179706335068, 0.23690716922283173, -0.445391446352005, 0.34949228167533875, 0.3258509039878845, 0.07712168991565704, 0.09185759723186493, 0.1089511513710022, -0.15705063939094543, 0.2872883975505829, 0.09947822988033295, 0.09743855893611908, 0.05698294937610626, 0.12130030989646912, 0.1756843775510788, 0.07623834162950516, 0.08800677955150604, -0.05089746415615082, -0.07897625118494034, 0.4025251865386963, 0.2578457295894623, -0.1870032548904419, -0.09086230397224426, -0.5048835873603821, 0.11811143159866333, 0.03824343532323837, -0.3109931945800781, 0.14446349442005157, -0.2712097764015198, 0.003371160477399826, -0.25486090779304504, 0.15076419711112976, 0.18242661654949188, 0.05241122469305992, -0.09079910814762115, 0.034735169261693954, -0.2587929964065552, 0.6150115728378296, 0.40080663561820984, -0.21168772876262665, 0.041713885962963104, -0.27329137921333313, 0.07794056832790375, 0.13130418956279755, 0.11648909747600555, -0.3975090980529785, 0.1741449236869812, -0.12211544811725616, 0.4353640377521515, 0.059892792254686356, 0.04287460446357727, 0.3480420410633087, -0.19150230288505554, 0.2754972577095032, 0.2648025155067444, -0.2541201412677765, 0.2964872121810913, -0.19502916932106018, -0.07633250206708908, -0.032045528292655945, 0.09391346573829651, -0.20649529993534088, 0.3401976525783539, 0.12303733825683594, -0.1803276538848877, 0.3168275058269501, -0.2674482762813568, 0.1347770094871521, -0.022871483117341995, 0.2825084924697876, 0.09613430500030518, -0.017180241644382477, -0.1778334081172943, -0.2438291609287262, 0.09893409162759781, 0.16356749832630157, -0.06199491024017334, -0.0031125470995903015, -0.31480032205581665, 0.16152483224868774, -0.11590193212032318, -0.4890494644641876, -0.21333929896354675, 0.21111291646957397, 0.22683919966220856, 0.04479881748557091, -0.15611600875854492, -0.17670929431915283, 0.0718601644039154, -0.2924744784832001, -0.1943625509738922, -0.3770168125629425, -0.09432843327522278, 0.1136748343706131, -0.2265726625919342, 0.15984119474887848, 0.1383998692035675, 0.12026356905698776, -0.18165899813175201, -0.08545326441526413, 0.45524999499320984, -0.020409923046827316, 0.022480547428131104, -0.04716182500123978, 0.24538493156433105, -0.1095883771777153, 0.0012360885739326477, -0.1277896910905838, -0.07038210332393646, 0.22009985148906708, -0.1837344467639923, -0.058323562145233154, 0.44487035274505615, -0.4544278085231781, 0.24878078699111938, 0.2326844185590744, -0.2751167118549347, 0.41832470893859863, 0.29913485050201416, -0.20195934176445007, -0.10131193697452545, 0.06431864947080612, -0.18564431369304657, 0.19164934754371643, 0.02253650315105915, -0.38275471329689026, 0.07535626739263535, 0.4850611984729767, 0.13221022486686707, -0.10927168279886246, -0.08307600766420364, -0.11397307366132736, -0.2782623767852783, -0.019103949889540672, 0.33516326546669006, 0.40679454803466797, 0.23896285891532898, 0.2084311842918396, 0.10732939094305038, 0.1976168304681778, -0.1879747062921524, 0.12293325364589691, 0.011179417371749878, 0.17232781648635864, 0.23125982284545898, 0.18283040821552277, -0.1218918040394783, -0.4867267608642578, -0.3557826578617096, 0.08856866508722305, 0.3144852817058563, -0.21189098060131073, -0.25295162200927734, -0.16681846976280212, -0.21224936842918396, -0.1276172250509262, -0.21033558249473572, -0.08317656815052032, -0.22036534547805786, 0.13692253828048706, 0.7543538808822632, -0.16744296252727509, 0.252723753452301, 0.3151097893714905, 0.14116168022155762, -0.056066177785396576, -0.09979837387800217, -0.146686851978302, -0.023651989176869392, -0.008536573499441147, 0.19708752632141113, 0.1575423777103424, -0.14271026849746704, 0.35637736320495605, -0.000035610049962997437, -0.3080059885978699, -0.30346283316612244, 0.13079145550727844, 0.08780031651258469, -0.19110603630542755, 0.015885047614574432, 0.04664650559425354, 0.18439531326293945, -0.01006106473505497, -0.25694650411605835, 0.20348891615867615, -0.4171120822429657, -0.05132780969142914, 0.06851339340209961, -0.17025847733020782, -0.08840397745370865, -0.280233770608902, -0.09832488745450974, -0.1416516900062561, -0.3688463568687439, 0.23633502423763275, -0.11345644295215607, 0.03889948129653931, 0.25806161761283875, -0.0042468346655368805, -0.1164419949054718, -0.19471855461597443, -0.25329238176345825, -0.35945242643356323, -0.6516545414924622, 0.010426335036754608, -0.20069587230682373, -0.25272563099861145, 0.031744081526994705, 0.19869454205036163, 0.17801804840564728, 0.6395933032035828, -0.032255880534648895, 0.1754581779241562, -0.10564973950386047, 0.07817885279655457, -0.0048308782279491425, 0.11123179644346237, 0.4022185802459717, 0.016165053471922874, -0.10084402561187744, -0.20056334137916565, -0.030081771314144135, 0.11220057308673859, 0.031146792694926262, 0.23186320066452026, 0.1879945695400238, 0.4561052918434143, -0.05501740798354149, 0.936318576335907, 0.14279131591320038, 0.1208270937204361, 0.30897802114486694, -0.04061294347047806, 0.29493680596351624, -0.33987104892730713, -0.17271362245082855, 0.4189911484718323, 0.15892310440540314, -0.25301283597946167, 0.2699560821056366, -0.1785171627998352, -0.34807974100112915, -0.14285734295845032, 0.14365603029727936, -0.00006300583481788635, -0.0704258382320404, 0.2039436548948288, 0.15252742171287537, 0.21581950783729553, 0.019343961030244827, 0.18846595287322998, -0.1212705671787262, -0.0508088618516922, -0.21817649900913239, -0.03501024842262268, 0.3387906551361084, -0.09035070985555649, -0.43919533491134644, -0.38929852843284607, -0.41235092282295227, 0.06676659733057022, 0.06230168789625168, 0.5975309610366821, -0.1478608399629593, -0.11797008663415909, 0.21015630662441254, 0.18202559649944305, 0.5711484551429749, -0.4470500648021698, -0.10754428803920746, 0.12747898697853088, 0.06227283179759979, -0.09501562267541885, -0.1538403034210205, -0.27380770444869995, 0.21098580956459045, 0.09701709449291229, 0.29016590118408203, -0.2299705445766449, 0.0009554082062095404, -0.05706699192523956, -0.08180563151836395, 0.15138255059719086, -0.09597152471542358, -0.2688921093940735, -0.2532072067260742, -0.23671364784240723, 0.1879080981016159, 0.07250098139047623, 0.011418836191296577, -0.2773069441318512, -0.03871171921491623, 0.018390586599707603, 0.2690771222114563, -0.1216258704662323, 0.3407267928123474, 0.17266914248466492, 0.27337053418159485, 0.16915631294250488, 0.38521263003349304, -0.0037216022610664368, 0.35988056659698486, 0.19307254254817963, 0.28694021701812744, -0.14820468425750732, 0.1700374186038971, -0.06553169339895248, 0.10065370798110962, 0.24568909406661987, -0.1561160385608673, 0.15349073708057404, 0.14782844483852386, 0.2866060733795166, -0.1028929129242897, -0.26664483547210693, 0.39757072925567627, -0.06962663680315018, -0.43786969780921936, -0.8425211310386658, 0.1484263837337494, 0.04689670726656914, -0.1386059820652008, 0.5356466174125671, -0.3040624260902405, -0.13314920663833618, 0.37504225969314575, -0.1486591398715973, 0.6218425631523132, -0.014361456036567688, -0.11625273525714874, 0.36537203192710876, 0.22373928129673004, 0.12808509171009064, -0.010589130222797394, 0.3386746644973755, -0.09619489312171936, -0.5596520304679871, 0.18156234920024872, -0.10514850169420242, 0.027003809809684753, 0.0661645382642746, -0.2295016199350357, 0.2785797119140625, -0.06914811581373215, 0.1658448427915573, -0.16832293570041656, -0.19083668291568756, -0.25448837876319885, -0.32339057326316833, -0.3023683428764343, 0.22152724862098694, -0.02607446163892746, 0.06519913673400879, 0.07856611162424088, -0.08549655228853226, 0.06075673922896385, 0.09819449484348297, -0.16589318215847015, 0.19183415174484253, -0.294426828622818, -0.17836347222328186, -0.3193565011024475, 0.1619616448879242, 0.07044726610183716, 0.012356020510196686, 0.056157492101192474, 0.04769135266542435, -0.09444433450698853, 0.15502530336380005, 0.3336310088634491, 0.2662808895111084, -0.100492924451828, 0.0957871675491333, 0.1077769473195076, -0.07018181681632996, -0.05772177129983902, 0.05437181144952774, 0.13066142797470093, -0.37574875354766846, -0.3450499475002289, -0.1822020262479782, 0.20622508227825165, -0.14294864237308502, -0.12859350442886353, 0.06688098609447479, -0.03239394724369049, -0.21686579287052155, 0.16906039416790009, -0.08591289818286896, -0.19332577288150787, 0.40048208832740784, -0.27560266852378845, -0.09686210006475449, -0.2272106558084488, 0.3841652274131775, 0.20004627108573914, 0.18024346232414246, 0.3196735680103302, -0.06274375319480896, -0.1752789467573166, -0.28856393694877625, -0.16546854376792908, -0.12286577373743057, -0.15765537321567535, 0.11634012311697006, 0.16485117375850677, 0.03248916566371918, 0.0459667444229126, 0.272093266248703, -0.2012592852115631, 0.13934509456157684, -0.3060135543346405, -0.17475931346416473, -0.305063933134079, 0.008987084031105042, 0.0825861245393753, 0.13150626420974731, -0.08717940002679825, 0.22746816277503967, 0.08972486108541489, -0.10206235945224762, -0.4125232696533203, -0.32364118099212646, -0.09591791778802872, 0.19104084372520447, 0.005848407745361328, 0.029075203463435173, 0.21066273748874664, -0.02810921147465706, 0.18360444903373718, 0.1174016073346138, -0.22972090542316437, -0.275811105966568, 0.15358975529670715, 0.085045225918293, 0.1756458580493927, -0.09352283179759979, -0.07108327001333237, -0.21771560609340668, -0.525406002998352, -0.26476752758026123, 0.42508408427238464, 0.18220806121826172, 0.0167899988591671, -0.1717594563961029, 0.46559253334999084, 0.009039551019668579, 0.0640556588768959, 0.04699626564979553, -0.16779011487960815, -0.481928288936615, -0.09414771944284439, -0.15038760006427765, -0.18860174715518951, -0.23237812519073486, -0.10757517069578171, -0.01795016974210739, 0.24784943461418152, 0.3136826753616333, 0.19015541672706604, -0.26062995195388794, 0.08994127810001373, 0.2874249517917633, 0.4517201781272888, 0.5097646117210388, 0.09002984315156937, -0.43665972352027893, 0.23209217190742493, 0.2794462740421295, -0.15223290026187897, -0.15541526675224304, -0.021723195910453796, 0.08458912372589111, 0.20068234205245972, 0.09547095745801926, -0.14061450958251953, -0.26238012313842773, 0.0018220096826553345, 0.06674657762050629, 0.26190289855003357, -0.49572569131851196, 0.23484858870506287, 0.07080379128456116, 0.02095964178442955, -0.0810222178697586, 0.2266286313533783, 0.09625150263309479, -0.006023243069648743, 0.36719101667404175, -0.08139201253652573, 0.2392345815896988, 0.24574056267738342, -0.015190165489912033, -0.05181557685136795, -0.5209722518920898, -0.11953794956207275, 0.5239405632019043, -0.13210825622081757, 0.42285242676734924, 0.1253109574317932, 0.02026987075805664, -0.20507487654685974, 0.006279394030570984, -0.03978700563311577, 0.035354144871234894, -0.18454709649085999, -0.03271397203207016, -0.06929191946983337, -0.25622013211250305, -0.0385797843337059, 0.019497931003570557, -0.07973411679267883, 0.24708238244056702, 0.2956746220588684, -0.17617973685264587, -0.0751432478427887, -0.4886918067932129, -0.013266947120428085, 0.15510863065719604, 0.40347006916999817, -0.10906220227479935, 0.0698336586356163, -0.11696776747703552, 0.058861639350652695, 0.25690051913261414, 0.3191131055355072, 0.1653285175561905, 0.3827480375766754, 0.1881958246231079, 0.11947939544916153, -0.1357765644788742, -0.16338640451431274, -0.155918687582016, 0.23633095622062683, 0.18901140987873077, -0.08696183562278748, 0.24470888078212738, 0.21430732309818268, -0.17173320055007935, 0.04155832529067993, 0.09316258877515793, 0.2078014314174652, 0.05504199489951134, -0.012998238205909729, -0.10157379508018494, 0.0064408257603645325, 0.008636491373181343, -0.04515390843153, -0.314696341753006, -0.021475665271282196, -0.034060731530189514, -0.19874398410320282, 0.12356405705213547, -0.22025814652442932, 0.12457205355167389, 0.024396372959017754, 0.41302821040153503, 0.16067266464233398, -0.314605176448822, -0.10011149197816849, -0.3307817578315735, -0.5856945514678955, -0.0620807483792305, -0.036466892808675766, 0.11419801414012909, 0.06432221829891205, 0.3521082103252411, 0.07632414251565933, -0.04076100140810013, -0.006028980016708374, -0.007385651580989361, -0.1809276044368744, 0.5266048908233643, -0.21563690900802612, -0.04582766816020012, -0.38056349754333496, 0.120419941842556, 0.1375429928302765, -0.2747384309768677, 0.27847516536712646, -0.09803449362516403, 0.16942834854125977, 0.12343209236860275, 0.2686363458633423, -0.06718629598617554, -0.3670603632926941, 0.06549610942602158, 0.19546125829219818, 0.058427248150110245, -0.15467900037765503, 0.17120207846164703, -0.29059526324272156, -0.21372021734714508, -0.31747084856033325, -0.025992564857006073, 0.1941356509923935, 0.4024059474468231, 0.17548169195652008, -0.08575309813022614, -0.32128503918647766, 0.1749437153339386, 0.11125320196151733, 0.14036257565021515, -0.2917774021625519, 0.37528982758522034, 0.0799080953001976, 0.25145667791366577, -0.14692990481853485, 0.06904809921979904, -0.09655086696147919, 0.01882750354707241, -0.3619239330291748, -0.3267615735530853, 0.650782585144043, -0.3065671920776367, -0.3087317943572998, -0.19299735128879547, 0.31111669540405273, 0.15104785561561584, -0.18155092000961304, -0.16169989109039307, 0.30576738715171814, 0.17141461372375488, -0.07744400948286057, 0.053945254534482956, 0.29377537965774536, -0.2106449007987976, 0.08784331381320953, -0.10300657153129578, 0.04751240089535713, 0.1259879767894745, -0.30818191170692444, 0.30534628033638, -0.21042191982269287 ]
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.04135502129793167, -0.5577716827392578, -0.15896737575531006, 0.3919740915298462, 0.20537488162517548, -0.06392557173967361, -0.073759526014328, 0.05036501586437225, 0.10644857585430145, 0.07986821234226227, -0.43947041034698486, 0.08817896246910095, -0.06569738686084747, 0.4548654556274414, 0.06093764677643776, 0.038858313113451004, -0.22952091693878174, -0.11266613006591797, -0.14924368262290955, -0.21980220079421997, 0.023450501263141632, 0.2798558175563812, 0.2534019351005554, -0.029590971767902374, -0.015450711362063885, 0.12148240208625793, -0.25440678000450134, 0.29460054636001587, -0.5448057651519775, -0.2168554663658142, 0.162506565451622, -0.05755843594670296, 0.15924116969108582, -0.02100629359483719, -0.00010385123459855095, -0.06477728486061096, 0.10809575021266937, -0.22959552705287933, -0.32057255506515503, -0.03833504021167755, 0.00254826620221138, -0.3959297239780426, 0.10426642000675201, -0.08504511415958405, -0.1412746012210846, -0.11663598567247391, 0.03357093408703804, -0.12619498372077942, 0.4541440010070801, 0.09185455739498138, 0.2733740508556366, 0.45008787512779236, 0.15840351581573486, -0.1389543116092682, 0.03383338451385498, 0.48663264513015747, 0.014396866783499718, 0.26793891191482544, 0.384072870016098, 0.3003028631210327, -0.09223068505525589, 0.40507951378822327, 0.2523314356803894, -0.025928903371095657, 0.26014506816864014, 0.03143699839711189, -0.32149866223335266, -0.13708700239658356, 0.10250497609376907, 0.42850086092948914, 0.16740527749061584, -0.3730248808860779, -0.5177246332168579, -0.453407347202301, 0.15884916484355927, -0.25472724437713623, 0.049300417304039, 0.23190446197986603, 0.030197564512491226, 0.17674711346626282, -0.2547951340675354, -0.1507337987422943, -0.23824454843997955, -0.024006739258766174, -0.17766641080379486, 0.07897056639194489, -0.2915140986442566, -0.11853023618459702, 0.002671990543603897, -0.40493232011795044, -0.6295152902603149, 0.03170512616634369, -0.11207720637321472, 0.2041807770729065, -0.14582599699497223, -0.38229212164878845, 0.3146909177303314, 0.2405804991722107, 0.5023841261863708, 0.15784019231796265, 0.0075035421177744865, 0.1524958461523056, 0.0011089807376265526, 0.19479382038116455, 0.19777865707874298, 0.3022008240222931, 0.3661186993122101, -0.07797998934984207, 0.10312003642320633, 0.031685203313827515, 0.14990679919719696, -0.13568469882011414, -0.21373899281024933, 0.08167479187250137, -0.363617867231369, -0.2070535123348236, 0.02260139212012291, -0.11125022917985916, -0.07278312742710114, -0.009966264478862286, 0.17642828822135925, 0.023527126759290695, 0.07943321764469147, 0.43991819024086, 0.028525136411190033, 0.01143568567931652, -0.09482676535844803, 0.22786839306354523, 0.1659277379512787, -0.258031964302063, -0.16819751262664795, 0.010056830942630768, -0.057711537927389145, 0.13958507776260376, 0.012805994600057602, -0.301184743642807, 0.39348670840263367, -0.11033399403095245, 0.17219319939613342, -0.049997247755527496, -0.07833811640739441, 0.04960382729768753, 0.18665871024131775, 0.040511731058359146, 0.09215673804283142, -0.2169889360666275, 0.027859101071953773, -0.14549532532691956, -0.3767351806163788, -0.20538201928138733, -0.19978854060173035, -0.2601398229598999, -0.44041118025779724, 0.2663023769855499, -0.23471564054489136, -0.06464778631925583, -0.4436701834201813, 0.3297382593154907, -0.14819028973579407, 0.13810421526432037, 0.004347316920757294, 0.0898585319519043, -0.029388271272182465, -0.10640300065279007, 0.004888452589511871, 0.230593740940094, -0.03316235542297363, -0.27574145793914795, -0.03610554710030556, -0.25534605979919434, -0.24731552600860596, 0.40852785110473633, -0.054653629660606384, -0.27844876050949097, -0.10996689647436142, 0.28476428985595703, 0.34496214985847473, -0.4075212776660919, -0.0638783648610115, 0.23232531547546387, 0.04206995666027069, 0.09201017767190933, 0.044185757637023926, 0.005191416945308447, 0.22958999872207642, 0.16459515690803528, 0.017501719295978546, 0.3218153119087219, -0.1843337118625641, 0.12283999472856522, -0.10666915774345398, -0.40866178274154663, -0.1758042871952057, 0.17053529620170593, 0.04255833476781845, -0.335356205701828, 0.20834732055664062, 0.08446143567562103, 0.22124239802360535, -0.15256963670253754, 0.06526152044534683, 0.2249128818511963, -0.016241703182458878, -0.048572786152362823, 0.05012277886271477, -0.1123514473438263, -0.6196349859237671, 0.13108953833580017, -0.019653653725981712, 0.23720872402191162, -0.03996260464191437, -0.4177994728088379, -0.31429141759872437, 0.1552383005619049, 0.059692345559597015, -0.09161019325256348, 0.21395725011825562, -0.03350584954023361, 0.26269984245300293, -0.05387923866510391, -0.1323886662721634, -0.015396535396575928, -0.12488960474729538, 0.2994817793369293, -0.6840798258781433, 0.06770391762256622, -0.018764087930321693, 0.0317223034799099, 0.16396206617355347, 0.14347034692764282, -0.2023172378540039, -0.04747489094734192, 0.028176046907901764, 0.07564737647771835, -0.1749095916748047, 0.45653027296066284, 0.2603793442249298, 0.477871298789978, 0.2401750236749649, -0.0033623315393924713, 0.2902502417564392, -0.1425660103559494, 0.022238239645957947, 0.12729334831237793, -0.5046001672744751, 0.5015558004379272, 0.31562677025794983, -0.038914211094379425, 0.07486182451248169, -0.0589887797832489, 0.01904812641441822, -0.013313814997673035, -0.23056462407112122, -0.3546411097049713, 0.025124872103333473, -0.040417738258838654, 0.2994687557220459, 0.06176327168941498, -0.3438563346862793, 0.06254744529724121, 0.5101702213287354, 0.013296365737915039, -0.0046367347240448, 0.34522610902786255, -0.3160439729690552, -0.22522252798080444, 0.20957769453525543, 0.05568082258105278, 0.1830609291791916, 0.3736012578010559, 0.1089993491768837, 0.1292484998703003, 0.2113344967365265, -0.028611453250050545, 0.10022851079702377, 0.11778147518634796, -0.0578758604824543, 0.043769530951976776, 0.3493606150150299, -0.06456663459539413, -0.40007469058036804, -0.11726297438144684, -0.2899731397628784, 0.08528353273868561, -0.2282983511686325, -0.017570648342370987, -0.13475053012371063, -0.36447882652282715, -0.1586049646139145, -0.09908223152160645, -0.5645566582679749, -0.22262606024742126, 0.18555624783039093, -0.24787157773971558, -0.31372544169425964, -0.21819187700748444, 0.10119879245758057, 0.24532198905944824, -0.06831971555948257, 0.008963541127741337, -0.0908098816871643, -0.0856584757566452, -0.010182838886976242, 0.17825378477573395, 0.17768006026744843, 0.05897609516978264, 0.392987459897995, -0.2609722912311554, 0.10445034503936768, 0.006272444501519203, -0.5086250305175781, 0.27177223563194275, -0.18403945863246918, 0.1842018961906433, 0.0771678239107132, 0.11175863444805145, 0.0895380973815918, 0.03495539352297783, 0.17227424681186676, -0.0007504746317863464, -0.3836701512336731, -0.0939410999417305, -0.008097629994153976, 0.13944420218467712, -0.16136586666107178, -0.1860438585281372, -0.3122631013393402, -0.32968413829803467, 0.3015922009944916, 0.07866927981376648, 0.21225401759147644, 0.21127907931804657, -0.010680990293622017, 0.1425522416830063, -0.14246031641960144, 0.009721212089061737, -0.30361035466194153, -0.43506813049316406, 0.27359405159950256, -0.4120616614818573, -0.19510063529014587, -0.057308197021484375, 0.09150911867618561, 0.20120464265346527, -0.22100448608398438, -0.15973803400993347, -0.539400577545166, -0.12289565801620483, -0.02798251062631607, 0.11735813319683075, 0.03578738868236542, 0.25578808784484863, -0.12904991209506989, -0.14566999673843384, 0.022804558277130127, -0.27357369661331177, -0.05567317456007004, 0.2504131495952606, 0.03042616695165634, -0.21156272292137146, 0.2764238715171814, 0.1665293574333191, 0.28718072175979614, 0.2273591011762619, -0.212312713265419, 0.12033452093601227, -0.1358996331691742, 0.2125929296016693, 0.0071698203682899475, -0.03394763171672821, 0.2497866451740265, 0.11921674758195877, 0.07559525221586227, 0.48315316438674927, 0.3956525921821594, 0.2829975485801697, 0.023087114095687866, -0.09263540804386139, -0.1653817594051361, -0.19856281578540802, 0.3444509208202362, 0.20882108807563782, -0.12780460715293884, -0.03476069122552872, -0.08615747094154358, -0.16282983124256134, -0.13966482877731323, -0.18851646780967712, 0.3137401342391968, 0.004514150321483612, 0.13771982491016388, -0.5218562483787537, -0.10159936547279358, -0.24486520886421204, 0.5750685334205627, -0.03825286030769348, -0.3285718262195587, -0.043059058487415314, -0.2700398564338684, 0.12685643136501312, 0.06761642545461655, 0.02290242165327072, -0.08566845208406448, -0.33627843856811523, -0.18218612670898438, -0.2599521279335022, -0.3137333393096924, 0.2416987270116806, 0.009534366428852081, -0.11772555112838745, 0.4289175271987915, 0.4547968804836273, -0.5648525953292847, -0.24241235852241516, 0.1274433732032776, 0.21621844172477722, -0.15282312035560608, -0.03606486693024635, -0.1462422013282776, -0.08846275508403778, -0.4926465153694153, 0.04059072583913803, 0.05517181009054184, 0.1614617258310318, 0.029425060376524925, 0.0009249858558177948, 0.058543577790260315, 0.06069319695234299, 0.4049992561340332, 0.6058879494667053, 0.12537582218647003, 0.13702714443206787, -0.13994969427585602, 0.14958703517913818, 0.46133777499198914, 0.2738893926143646, 0.6469154357910156, 0.10128720104694366, -0.1358727663755417, 0.020340073853731155, 0.04022103175520897, 0.2384423315525055, 0.3605225384235382, 0.18153885006904602, -0.00889364629983902, 0.031524255871772766, 0.16551685333251953, -0.3032900393009186, 0.1003599613904953, -0.04855147749185562, 0.0017778929322957993, -0.14446161687374115, 0.05086684972047806, 0.41098442673683167, -0.049150437116622925, 0.09827102720737457, 0.12952804565429688, 0.37050896883010864, -0.20693489909172058, 0.21418359875679016, 0.06725844740867615, 1.064089298248291, -0.2176126390695572, 0.10199739038944244, 0.05888479948043823, -0.19377119839191437, 0.4219006299972534, -0.05987301841378212, -0.0264885351061821, -0.20776455104351044, 0.25690367817878723, 0.1574486941099167, 0.14917148649692535, 0.14587357640266418, 0.09924307465553284, -0.16685397922992706, 0.05744877830147743, 0.0623660534620285, 0.11759693920612335, -0.396512895822525, 0.5909303426742554, -0.4135977029800415, -0.529529869556427, -0.5926876664161682, 0.2633860409259796, -0.08880016207695007, 0.3599309027194977, 0.04624851420521736, -0.27812641859054565, -0.18703816831111908, -0.2317667007446289, -0.3549022674560547, -0.15365591645240784, -0.0324331670999527, -0.24250711500644684, 0.15938779711723328, -0.3184921145439148, 0.012260951101779938, 0.3286583721637726, 0.08202648907899857, 0.19056527316570282, -0.228052020072937, 0.1592799574136734, -0.5026180744171143, 0.11743605881929398, 0.12815696001052856, -0.08316033333539963, 0.09588397294282913, -0.17829212546348572, 0.01701279729604721, 0.05721830949187279, 0.3150840699672699, 0.012074533849954605, -0.004441648721694946, -0.0037434548139572144, -0.2274230271577835, -0.2892986238002777, -0.015189073048532009, -0.007887385785579681, 0.058213818818330765, -0.09111210703849792, 0.1713142693042755, 0.19772078096866608, 0.06184495612978935, -0.03944326192140579, 0.3849601447582245, -0.09771662205457687, -0.23960526287555695, 0.2264367938041687, -0.09407446533441544, -0.30452868342399597, 0.030496858060359955, 0.14478403329849243, -0.007470943033695221, -0.16588568687438965, 0.248994380235672, 0.3029513359069824, -0.3718908131122589, -0.09938213229179382, 0.03480326756834984, -0.22846892476081848, -0.09840314835309982, 0.10121791064739227, 0.25327521562576294, 0.07875366508960724, 0.26389262080192566, -0.18403658270835876, -0.37712714076042175, 0.487814724445343, -0.013802651315927505, 0.1850370615720749, -0.21889954805374146, 0.050691016018390656, 0.048254989087581635, 0.40394094586372375, -0.4329451024532318, 0.09221870452165604, -0.27672019600868225, -0.028817899525165558, 0.32232972979545593, 0.029495127499103546, 0.3968382775783539, -0.1765379160642624, 0.0903923511505127, 0.015762053430080414, -0.29694581031799316, -0.23897448182106018, -0.1329909712076187, 0.09426620602607727, -0.09506595879793167, 0.24893461167812347, 0.06630943715572357, 0.11626245081424713, -0.004064386710524559, -0.2708456516265869, 0.3166063129901886, 0.10424899309873581, 0.15912334620952606, 0.07672367244958878, -0.06984306871891022, 0.0723235160112381, 0.13010039925575256, -0.08578385412693024, 0.3456180691719055, 0.3020138144493103, 0.03628266602754593, 0.09662089496850967, -0.21389305591583252, -0.11117615550756454, 0.10312364250421524, 0.2083466351032257, 0.23052456974983215, 0.0727461576461792, 0.09219493716955185, 0.24231284856796265, -0.22502805292606354, 0.2563057243824005, 0.3816101849079132, 0.07090648263692856, -0.12181063741445541, 0.27183011174201965, -0.018345830962061882, 0.2761366367340088, -0.12249856442213058, 0.1581375151872635, 0.18338999152183533, -0.087919682264328, 0.10317236185073853, 0.3402591645717621, 0.19694627821445465, 0.4780895709991455, 0.2556488811969757, 0.015926826745271683, 0.3624539375305176, 0.043025583028793335, -0.012008048593997955, -0.0018361471593379974, -0.19793538749217987, -0.06428550183773041, 0.44853702187538147, 0.20687872171401978, 0.5565651059150696, -0.1806066483259201, -0.32295864820480347, 0.20262733101844788, -0.14475277066230774, 0.17461484670639038, 0.34174835681915283, -0.20678047835826874, -0.2872592508792877, 0.1873377561569214, 0.3389512896537781, 0.20001506805419922, 0.10486815869808197, 0.45687639713287354, 0.16180625557899475, -0.3141469359397888, -0.2933797538280487, 0.45856064558029175, -0.09226245433092117, -0.08357848227024078, 0.06675752252340317, -0.21804437041282654, -0.3744443655014038, 0.03840519115328789, -0.06295421719551086, -0.47468477487564087, 0.14435720443725586, -0.0760226845741272, 0.11673830449581146, -0.2503047287464142, -0.08757573366165161, 0.09847715497016907, 0.0628843754529953, -0.2830205261707306, 0.17781592905521393, 0.27926957607269287, 0.052434083074331284, 0.1525215059518814, 0.29583218693733215, 0.30387088656425476, -0.1640503704547882, 0.13018012046813965, 0.3555208742618561, -0.03747719153761864, -0.09910445660352707, -0.24289961159229279, -0.010976586490869522, 0.080050028860569, -0.05624378100037575, 0.31062957644462585, 0.2558509409427643, -0.24115696549415588, -0.199570894241333, -0.32349449396133423, 0.07947435975074768, 0.013973604887723923, 0.3263378143310547, -0.04678613692522049, -0.042330577969551086, -0.34838905930519104, -0.24708274006843567, -0.4944184124469757, 0.09922636300325394, -0.023644518107175827, 0.1314779818058014, 0.044209934771060944, -0.2457543909549713, 0.1170220673084259, 0.1964769810438156, 0.24383901059627533, 0.5422869324684143, 0.0034235455095767975, -0.011231794022023678, -0.2232895791530609, -0.4496408700942993, 0.06868916004896164, 0.04924929141998291, -0.14422519505023956, 0.00654932577162981, 0.3821818232536316, 0.27541404962539673, 0.1455077975988388, -0.10403428971767426, -0.29305747151374817, -0.011829796247184277, 0.011832267045974731, -0.3173433840274811, 0.13393181562423706, -0.06577591598033905, -0.14267443120479584, 0.2859058380126953, 0.02343781292438507, 0.08739455044269562, -0.26677489280700684, 0.06123702973127365, -0.36078882217407227, 0.2922794222831726, -0.17899377644062042, -0.12328843772411346, 0.28615039587020874, 0.0752062276005745, 0.16302122175693512, -0.2596973776817322, -0.1424843817949295, -0.1944015920162201, -0.2954752743244171, -0.25705718994140625, 0.4237018823623657, -0.018124952912330627, 0.3955468535423279, -0.04504488408565521, -0.26384997367858887, -0.11382845789194107, 0.01005251519382, -0.08705651760101318, -0.21365486085414886, 0.01405276358127594, 0.10948652029037476, -0.0256686732172966, -0.1050352230668068, -0.005402934271842241, 0.27249521017074585, 0.03597114235162735, -0.06809362024068832, -0.06531437486410141, -0.3072287440299988, 0.5054522752761841, -0.025777485221624374, -0.058016613125801086, 0.08781294524669647, 0.26064884662628174, 0.47098052501678467, -0.16156281530857086, -0.6479041576385498, 0.44063010811805725, 0.2577057480812073, 0.15934324264526367, 0.02677442505955696, 0.1952488273382187, 0.026561595499515533, -0.13626612722873688, -0.2946959435939789, -0.1092553436756134, 0.10154416412115097, -0.2585717439651489, -0.01920446939766407, -0.18782049417495728 ]
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.275123655796051, -0.2970442771911621, 0.02081076055765152, 0.4673911929130554, -0.05594593286514282, 0.052015312016010284, -0.011735621839761734, -0.29913198947906494, -0.2569100558757782, -0.2186734527349472, 0.09837942570447922, 0.3813363313674927, -0.10718097537755966, 0.20503893494606018, 0.19616840779781342, -0.07216858863830566, 0.16841289401054382, -0.1887151300907135, 0.3061251640319824, -0.11009630560874939, -0.30699092149734497, 0.34380021691322327, -0.24828436970710754, 0.49542737007141113, -0.37623775005340576, -0.08591793477535248, -0.18694090843200684, -0.15397369861602783, -0.4046432673931122, -0.5950919389724731, 0.28962209820747375, 0.1556393951177597, 0.07238989323377609, -0.05790949612855911, -0.00012028065975755453, -0.2460779994726181, 0.028519418090581894, -0.18893735110759735, -0.12240442633628845, -0.12341658771038055, -0.09263001382350922, -0.20607393980026245, 0.2835659980773926, -0.009431682527065277, -0.14294829964637756, -0.18680661916732788, 0.2751159965991974, 0.5176035761833191, -0.2508009076118469, 0.11971721798181534, 0.04976337403059006, -0.16216304898262024, 0.2689097821712494, 0.028813254088163376, 0.3519522547721863, 0.09083540737628937, -0.12325984239578247, 0.310426265001297, 0.42768001556396484, -0.05340488255023956, -0.2571887969970703, 0.46276018023490906, 0.09637570381164551, -0.28202539682388306, 0.25890496373176575, 0.22859910130500793, 0.3358658254146576, -0.4192577004432678, -0.13016697764396667, 0.3817867934703827, 0.25169306993484497, 0.11475513875484467, -0.21541082859039307, -0.015739407390356064, -0.05260130763053894, -0.6351479887962341, 0.002394549548625946, 0.43932485580444336, 0.03301343694329262, 0.04142434895038605, -0.003608963219448924, 0.1708143800497055, -0.21630269289016724, 0.03604433313012123, -0.09499013423919678, 0.6974468231201172, -0.14299270510673523, -0.11016581207513809, -0.020367462188005447, -0.06452380865812302, -0.3136528432369232, 0.05326324701309204, 0.002673216164112091, 0.04854155704379082, -0.35271599888801575, 0.0821143388748169, 0.11130023002624512, 0.6752997040748596, 0.10347176343202591, 0.1295487880706787, -0.10830935835838318, -0.16193199157714844, -0.1246844157576561, 0.019132383167743683, 0.012667854316532612, 0.06710982322692871, 0.19440530240535736, 0.2011132389307022, -0.044636860489845276, 0.34695538878440857, 0.03237156197428703, -0.07408227771520615, -0.1044226810336113, 0.04558083042502403, -0.282093346118927, 0.09278177469968796, 0.06808379292488098, -0.018376391381025314, -0.29603058099746704, 0.22548450529575348, -0.3230935037136078, -0.08890613913536072, 0.1440231204032898, -0.07520698755979538, -0.07315145432949066, 0.035710129886865616, 0.1876579374074936, -0.05048702657222748, -0.03793508559465408, -0.48212605714797974, -0.14820417761802673, 0.038647957146167755, -0.46392688155174255, 0.2523362338542938, 0.17138464748859406, 0.012634310871362686, 0.20624703168869019, -0.1111709251999855, -0.40546339750289917, 0.0354563370347023, -0.06583263725042343, -0.03130272403359413, 0.08896970748901367, 0.17950230836868286, -0.452568918466568, 0.3838883638381958, 0.09299414604902267, -0.16427969932556152, -0.26717233657836914, 0.011926434934139252, -0.4921455383300781, -0.30805572867393494, 0.06902957707643509, 0.12878906726837158, -0.13658863306045532, 0.06095774471759796, 0.1897358000278473, 0.3318852186203003, -0.1153176948428154, 0.1990911066532135, -0.10074102133512497, -0.098311647772789, -0.42691999673843384, -0.264400839805603, 0.00720377080142498, 0.040969446301460266, -0.3341090679168701, -0.16238084435462952, 0.1373782604932785, 0.18717241287231445, 0.31126099824905396, -0.02274157851934433, -0.024128621444106102, 0.4247220456600189, -0.10909382998943329, 0.14674341678619385, 0.24993357062339783, -0.34658554196357727, -0.00875404104590416, -0.1740073412656784, -0.025898922234773636, 0.13298562169075012, -0.08956439048051834, 0.16642622649669647, -0.1744970679283142, -0.09269777685403824, 0.01602550968527794, -0.08409694582223892, -0.09572596848011017, -0.1990119069814682, 0.050235819071531296, -0.14067663252353668, 0.633285641670227, 0.11183527112007141, -0.15727005898952484, -0.11101613193750381, -0.37354978919029236, 0.1674017459154129, 0.35395994782447815, -0.007133882492780685, 0.04491379112005234, 0.3623042702674866, 0.08719844371080399, 0.3109554052352905, 0.3268585801124573, 0.051576726138591766, -0.1253260374069214, -0.016678135842084885, 0.12321281433105469, 0.721689760684967, 0.16100044548511505, -0.16097645461559296, -0.05989542230963707, -0.029704034328460693, -0.042102184146642685, -0.5228350758552551, 0.163839191198349, -0.03548012673854828, -0.09276893734931946, -0.01569073647260666, -0.23457086086273193, 0.3003315329551697, -0.7553536891937256, 0.1253661960363388, -0.5494096875190735, -0.27191591262817383, -0.3093506991863251, 0.17231643199920654, 0.2604401111602783, 0.1606019288301468, 0.3212375342845917, 0.2714565098285675, 0.0924711748957634, -0.046157218515872955, 0.1488598883152008, -0.6642785668373108, 0.09114368259906769, 0.6776840686798096, 0.08837319910526276, -0.5249887108802795, -0.09680131822824478, 0.09264355897903442, -0.13769270479679108, -0.08231154829263687, -0.1829964518547058, 0.0447831004858017, -0.08425121009349823, 0.29331472516059875, 0.1141289472579956, 0.008959053084254265, 0.062318071722984314, 0.06310591101646423, -0.30904045701026917, 0.06691177189350128, 0.10345056653022766, -0.13608898222446442, 0.021129809319972992, 0.1199391633272171, -0.03874575346708298, 0.4414946734905243, 0.5638065338134766, -0.18636378645896912, -0.06920825690031052, 0.2521670460700989, -0.1829850673675537, -0.057711537927389145, -0.27078086137771606, 0.18219208717346191, 0.2422933429479599, 0.07314703613519669, 0.20161400735378265, -0.1423320472240448, -0.26641929149627686, -0.21012872457504272, 0.14799536764621735, 0.07135703414678574, -0.36753785610198975, 0.13229131698608398, -0.0141250379383564, 0.02832149714231491, -0.10011821985244751, -0.23693573474884033, -0.05266804248094559, 0.1579361855983734, -0.28951963782310486, -0.04862578958272934, -0.0847703143954277, -0.04149775579571724, 0.049391500651836395, -0.13326452672481537, -0.37689009308815, -0.46188411116600037, 0.0604119747877121, -0.2065780758857727, 0.10461395978927612, 0.09165798872709274, 0.026790250092744827, 0.25777673721313477, 0.007820693776011467, 0.4968673288822174, -0.01992235705256462, -0.31351423263549805, -0.41870588064193726, 0.000277666375041008, -0.193231999874115, -0.06894629448652267, -0.2793941795825958, -0.471557080745697, -0.1962045431137085, 0.18918167054653168, -0.6522653102874756, 0.19920654594898224, -0.030792266130447388, 0.04235580936074257, 0.3619503080844879, 0.038489703088998795, -0.23725272715091705, 0.11657790839672089, 0.012895196676254272, -0.04827480390667915, -0.2377350777387619, -0.06300552189350128, -0.1078982800245285, 0.04758752882480621, -0.2777668535709381, -0.3997904658317566, -0.4137214422225952, -0.03607252240180969, 0.14719076454639435, -0.05640595406293869, 0.07939787954092026, 0.5000619292259216, -0.3187738358974457, 0.054229214787483215, -0.04027881100773811, 0.42917200922966003, -0.05793895944952965, -0.03629584237933159, 0.37414342164993286, -0.12259983271360397, -0.2875944972038269, 0.2860407829284668, -0.277612566947937, -0.06421658396720886, -0.21677742898464203, -0.16597053408622742, 0.01286256778985262, 0.1247486099600792, -0.25481271743774414, 0.1925063580274582, 0.14713016152381897, 0.1604902446269989, -0.051047541201114655, 0.18261267244815826, -0.18101882934570312, -0.135969877243042, 0.1485753357410431, -0.173865407705307, 0.1625654101371765, -0.11205843836069107, -0.23526975512504578, 0.1533917486667633, -0.0981050431728363, 0.0958109200000763, -0.15613007545471191, -0.19584357738494873, 0.18173477053642273, 0.12042170763015747, 0.12857173383235931, 0.0914674773812294, -0.12080009281635284, 0.06562917679548264, 0.06713829934597015, 0.1672762632369995, 0.15789693593978882, 0.42129382491111755, 0.24852663278579712, 0.45211416482925415, -0.23041123151779175, -0.15187308192253113, 0.06166992336511612, 0.5299968719482422, 0.3666865825653076, -0.13157640397548676, -0.13184872269630432, -0.004167603328824043, -0.2918209135532379, 0.03207290172576904, 0.3986595869064331, 0.24854522943496704, 0.12701870501041412, -0.18018507957458496, -0.10870654881000519, -0.3199874460697174, -0.38754183053970337, -0.018018679693341255, -0.09424245357513428, -0.10322751849889755, 0.0734541043639183, -0.0681673139333725, 0.08875918388366699, 0.21131375432014465, -0.4619130492210388, 0.30382394790649414, 0.37799185514450073, 0.1060478687286377, 0.045820750296115875, -0.21797189116477966, -0.4066908061504364, -0.3208160102367401, 0.2544112801551819, 0.30078786611557007, -0.20964619517326355, -0.3157261908054352, 0.6650328636169434, -0.16230104863643646, -0.21462884545326233, 0.02311515435576439, -0.0798240378499031, -0.18865612149238586, 0.20492933690547943, -0.32439368963241577, 0.2717307209968567, 0.11944025009870529, -0.5196068286895752, 0.3327729105949402, 0.2235526144504547, 0.4568694531917572, 0.2948148548603058, -0.008476519025862217, 0.1713104248046875, 0.019742842763662338, -0.12699146568775177, 0.045114096254110336, 0.3307841718196869, -0.000895792618393898, 0.32831910252571106, 0.29838505387306213, -0.5064974427223206, 0.3612934350967407, -0.22677010297775269, 0.2376774549484253, 0.10060214251279831, -0.017506632953882217, 0.3284786343574524, -0.2298378050327301, 0.003550507128238678, -0.3467358350753784, 0.14709775149822235, 0.4200780689716339, -0.1543993502855301, -0.07772920280694962, -0.13057303428649902, 0.35639339685440063, 0.2603345215320587, -0.30482202768325806, 0.004071313887834549, 0.2573179006576538, -0.24015286564826965, 0.0644243061542511, 0.47130247950553894, 1.037802815437317, 0.3031322658061981, 0.18855270743370056, 0.12191735953092575, -0.35903477668762207, 0.6271589398384094, -0.4413624405860901, 0.2939230799674988, -0.49172133207321167, -0.2597666382789612, -0.07985490560531616, -0.053247880190610886, -0.3230321407318115, 0.4851149320602417, -0.013381902128458023, 0.2799542546272278, 0.07956792414188385, 0.15331286191940308, 0.07628130912780762, 0.038200028240680695, 0.43927738070487976, -0.135561004281044, 0.14494486153125763, 0.015881523489952087, -0.09430587291717529, 0.05065247043967247, -0.21553343534469604, -0.030917689204216003, -0.05851699784398079, 0.14974577724933624, -0.451260507106781, -0.0009583644568920135, 0.07393759489059448, -0.1980789452791214, 0.252794474363327, 0.25648462772369385, 0.2726525664329529, 0.3124999403953552, 0.45828282833099365, -0.11848752200603485, -0.10115678608417511, -0.028845522552728653, -0.37814968824386597, -0.045194923877716064, 0.022875556722283363, 0.023969151079654694, 0.18928514420986176, 0.10262846201658249, -0.05566149204969406, -0.2188270092010498, 0.11235036700963974, 0.267086386680603, -0.33588796854019165, -0.03040584921836853, -0.02764846384525299, -0.10194609314203262, 0.3579653799533844, 0.2216021716594696, -0.015674395486712456, -0.07147212326526642, 0.06776133179664612, 0.20440155267715454, -0.3964383602142334, -0.036833666265010834, -0.13983440399169922, 0.0013339221477508545, 0.09315051138401031, -0.053960688412189484, 0.25005435943603516, -0.057375356554985046, -0.031490981578826904, 0.16727937757968903, -0.13086676597595215, -0.13194260001182556, 0.007824838161468506, 0.36669784784317017, -0.48889943957328796, 0.01168233435600996, 0.1734936386346817, 0.05623364448547363, 0.1463615596294403, 0.5145276784896851, 0.12787631154060364, 0.20627161860466003, 0.027410779148340225, -0.2807462215423584, -0.11724293231964111, 0.38283878564834595, -0.16859669983386993, -0.0338447280228138, -0.4350357949733734, -0.44973233342170715, 0.11957359313964844, 0.28473520278930664, -0.209782212972641, -0.08335866034030914, -0.21612481772899628, 0.23369409143924713, 0.12750883400440216, -0.036123089492321014, 0.062365252524614334, 0.37260735034942627, -0.08863833546638489, -0.06032853573560715, 0.007493499666452408, -0.06037778779864311, -0.23134924471378326, 0.1688094437122345, 0.2645082175731659, 0.21355192363262177, -0.06094018742442131, 0.04409807175397873, 0.03165505826473236, 0.013330353423953056, -0.07199007272720337, -0.09964504837989807, 0.2574818730354309, 0.511763870716095, -0.18962548673152924, 0.4677589237689972, -0.051346514374017715, -0.05994106084108353, 0.27647653222084045, 0.5056185722351074, 0.449859082698822, -0.20504552125930786, 0.1272488385438919, -0.04221436753869057, -0.018021896481513977, 0.3335666358470917, -0.10503831505775452, -0.11606138199567795, 0.4081161916255951, -0.21387548744678497, 0.06169245019555092, -0.29449546337127686, 0.2523394823074341, -0.051958777010440826, 0.0903063490986824, -0.17367447912693024, 0.09293820708990097, 0.10154552757740021, -0.20903411507606506, -0.17550478875637054, 0.7825024127960205, 0.06047956272959709, -0.040078431367874146, 0.10151736438274384, 0.24061858654022217, 0.15571759641170502, 0.0507112480700016, -0.17258188128471375, 0.3301268219947815, 0.1372445821762085, 0.11137457191944122, -0.10510087013244629, -0.04635147005319595, 0.27190425992012024, 0.4097806215286255, 0.025590036064386368, 0.12060817331075668, 0.10585121810436249, 0.5922996997833252, 0.19779862463474274, 0.1648874580860138, 0.06664957106113434, 0.20302486419677734, -0.06973488628864288, -0.3384660482406616, 0.2676410973072052, 0.22469574213027954, -0.04550156742334366, -0.25870612263679504, -0.5041487216949463, 0.1658727079629898, -0.31361135840415955, -0.11848710477352142, -0.12743407487869263, -0.1070166602730751, -0.07399970293045044, -0.6019315719604492, -0.12225978076457977, -0.24033226072788239, 0.002560783177614212, 0.06185869127511978, -0.3346039056777954, 0.2231554538011551, -0.09027296304702759, 0.155969500541687, -0.1328752487897873, -0.3667324483394623, 0.39208465814590454, 0.3054881989955902, -0.007445473223924637, 0.06917586922645569, 0.08002118766307831, 0.028043143451213837, 0.013376811519265175, 0.45325303077697754, 0.14092876017093658, 0.26741576194763184, -0.04828726872801781, -0.130404993891716, 0.09244470298290253, -0.06314516067504883, 0.1392107754945755, 0.14441952109336853, 0.13119319081306458, -0.21763066947460175, 0.11929234862327576, -0.04705766588449478, 0.06233053654432297, 0.17834143340587616, 0.1782837063074112, 0.18701887130737305, 0.2196926474571228, -0.16628220677375793, 0.024408191442489624, -0.28895920515060425, 0.058966752141714096, 0.1931680142879486, -0.10106802731752396, 0.031214002519845963, 0.5167577266693115, 0.5962795615196228, 0.1636161506175995, -0.08932908624410629, 0.057416900992393494, 0.12139929831027985, 0.3225640654563904, 0.5040451884269714, -0.0957847312092781, -0.5049683451652527, -0.438540518283844, -0.22838078439235687, 0.13540174067020416, -0.15391728281974792, -0.15483520925045013, 0.049774106591939926, 0.031538501381874084, 0.1469532698392868, -0.045476995408535004, -0.2531862258911133, 0.10341797769069672, 0.1706104576587677, 0.452787309885025, -0.24799737334251404, -0.26413047313690186, 0.17567719519138336, 0.1481628119945526, -0.3362434506416321, 0.2616692781448364, -0.21284012496471405, -0.3010272979736328, -0.075712189078331, 0.18979530036449432, 0.08886811137199402, -0.01904001273214817, 0.6010868549346924, -0.04558384418487549, 0.3202248513698578, 0.24284155666828156, -0.021292418241500854, -0.2903781235218048, -0.27502843737602234, 0.20241016149520874, -0.07441353797912598, 0.4421250820159912, -0.3846021592617035, 0.24188688397407532, 0.03471019119024277, 0.06267967820167542, -0.2775329649448395, -0.2786617875099182, 0.027765490114688873, -0.21431343257427216, -0.37095558643341064, 0.2795892059803009, -0.09794566035270691, 0.028737373650074005, 0.45051658153533936, 0.11070258915424347, 0.0913536325097084, -0.12944602966308594, -0.16936397552490234, -0.23964957892894745, 0.2120368778705597, -0.3755997121334076, -0.05406622216105461, -0.04676838964223862, 0.14199364185333252, 0.53543621301651, 0.4785682260990143, -0.31463637948036194, -0.20530638098716736, 0.37741619348526, -0.11494376510381699, -0.2709684669971466, 0.10972684621810913, 0.288572758436203, -0.17287708818912506, -0.06768898665904999, -0.47643670439720154, 0.20645490288734436, -0.13441410660743713, -0.23892739415168762, -0.30019962787628174 ]
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.24501806497573853, -0.36150044202804565, -0.16716919839382172, 0.37236106395721436, 0.12369439005851746, 0.14514651894569397, 0.016439180821180344, 0.4380207657814026, -0.12132015824317932, 0.09349306672811508, 0.16325989365577698, 0.1249716505408287, 0.0430469810962677, 0.24713696539402008, -0.09437572211027145, -0.16472721099853516, -0.006986476480960846, 0.29663288593292236, -0.23057574033737183, -0.07449179887771606, -0.24184921383857727, 0.30238115787506104, -0.2500702738761902, -0.0736236721277237, -0.16497807204723358, -0.28729334473609924, -0.04917598515748978, 0.013311002403497696, 0.04586869850754738, -0.32006457448005676, -0.048026300966739655, -0.3247568905353546, -0.10144561529159546, 0.46972161531448364, -0.00010622131958371028, 0.07821325957775116, 0.12709766626358032, -0.14088568091392517, -0.33008384704589844, 0.1074301153421402, -0.2933758795261383, -0.1728278249502182, 0.032680824398994446, -0.09739133715629578, -0.2557201087474823, -0.272908091545105, -0.04965396970510483, -0.08545061945915222, 0.5871783494949341, 0.2898499071598053, 0.2529068887233734, 0.363333135843277, 0.0336482860147953, -0.08324988186359406, -0.22133520245552063, -0.5049686431884766, -0.040540795773267746, 0.03281443566083908, 0.22645118832588196, 0.04571259766817093, 0.24681851267814636, 0.23078887164592743, 0.27607467770576477, -0.10078434646129608, 0.14792397618293762, -0.21711768209934235, 0.11462078243494034, -0.1962156891822815, 0.02636350318789482, 0.1972757875919342, 0.3719682991504669, 0.1936609447002411, -0.36218786239624023, -0.15385626256465912, -0.03195658326148987, -0.4144754707813263, -0.03721611201763153, 0.26908034086227417, -0.06167761981487274, 0.20732712745666504, -0.18613329529762268, 0.2345629632472992, -0.19978833198547363, 0.14426416158676147, -0.1462101936340332, 0.22440825402736664, -0.06547033041715622, -0.09541470557451248, -0.24957872927188873, 0.18124566972255707, -0.07055839896202087, 0.12609213590621948, -0.008441537618637085, 0.18627679347991943, -0.5876227617263794, -0.15183117985725403, 0.17352989315986633, -0.21874740719795227, 0.05366790294647217, -0.027697231620550156, 0.4717930257320404, -0.14120298624038696, 0.07026425749063492, 0.09774104505777359, 0.27454718947410583, 0.510951042175293, 0.20128491520881653, 0.1008574515581131, -0.1483420580625534, 0.2257251888513565, -0.1809091717004776, 0.1172313392162323, -0.11040028184652328, -0.12200400233268738, 0.10848380625247955, 0.2392061948776245, -0.18322980403900146, -0.1661881059408188, -0.43560686707496643, 0.4669903516769409, -0.4517904222011566, 0.11107919365167618, -0.2033957540988922, 0.3239646255970001, -0.23417426645755768, 0.2661915719509125, 0.0968194305896759, 0.24211382865905762, -0.44974657893180847, -0.17268820106983185, -0.3069637417793274, -0.0053714364767074585, -0.15202343463897705, -0.14489944279193878, 0.06679593026638031, -0.019887711852788925, 0.686405599117279, -0.1905842274427414, 0.24069719016551971, -0.1494990885257721, 0.11669233441352844, -0.16772371530532837, -0.1573786437511444, 0.2168622612953186, 0.09333573281764984, -0.15152598917484283, 0.09868420660495758, 0.12735815346240997, 0.07355392724275589, -0.012329034507274628, -0.19337788224220276, -0.07780474424362183, 0.07314830273389816, 0.3307122588157654, 0.0673324391245842, 0.14819489419460297, -0.08009093254804611, 0.3283018469810486, 0.3131910562515259, 0.20750567317008972, -0.16546711325645447, -0.12911178171634674, -0.06725020706653595, -0.06642194837331772, 0.22847363352775574, 0.10686807334423065, -0.3879627287387848, -0.2831279933452606, 0.21118997037410736, 0.15231341123580933, -0.12773075699806213, 0.1663796454668045, -0.06378420442342758, 0.44638538360595703, -0.057476744055747986, 0.12282505631446838, -0.16067001223564148, -0.027836035937070847, -0.07585083693265915, -0.08085590600967407, -0.03595547378063202, 0.06373827159404755, 0.07715380191802979, -0.3781818151473999, 0.3808515965938568, 0.17212404310703278, 0.25330716371536255, 0.2878328561782837, -0.045435838401317596, -0.05310060828924179, -0.3692818284034729, -0.33304983377456665, -0.13222964107990265, 0.030394915491342545, 0.13761018216609955, -0.06593628972768784, -0.019651472568511963, -0.21230873465538025, 0.43869659304618835, 0.07534420490264893, -0.1268945187330246, 0.2475077360868454, 0.20165681838989258, -0.1755538135766983, 0.13494077324867249, -0.08826420456171036, -0.4648674726486206, 0.3856160044670105, -0.21369992196559906, 0.180524542927742, 0.14558447897434235, 0.07521605491638184, -0.5313093662261963, -0.03546019643545151, -0.057604189962148666, -0.39800968766212463, 0.2089185118675232, -0.04827442765235901, 0.15215924382209778, -0.0416213721036911, -0.1192980408668518, 0.07171470671892166, -0.2015964388847351, -0.0051512643694877625, -0.24554048478603363, 0.29489898681640625, -0.10221964865922928, -0.033815592527389526, 0.25296592712402344, 0.17136447131633759, 0.08386857062578201, -0.22522403299808502, -0.05354354530572891, 0.32463592290878296, 0.13846354186534882, -0.09933960437774658, -0.17156320810317993, -0.12261448800563812, 0.11806371808052063, -0.13192340731620789, -0.20201101899147034, 0.2057533860206604, 0.11587438732385635, -0.023305129259824753, -0.1940402388572693, 0.3919534683227539, 0.17039746046066284, 0.24489080905914307, 0.23195503652095795, 0.05292253941297531, 0.14485983550548553, -0.09168127179145813, 0.09757394343614578, -0.06388520449399948, 0.18959929049015045, -0.049727682024240494, -0.08440674096345901, -0.08688638359308243, -0.27699270844459534, 0.1296672224998474, 0.13368812203407288, 0.034888822585344315, -0.07926207035779953, -0.16267073154449463, -0.15375173091888428, 0.16446906328201294, 0.1590699404478073, 0.11744609475135803, 0.1510917991399765, 0.30799800157546997, -0.2536086142063141, -0.1998344510793686, 0.03568677231669426, 0.0004943050444126129, 0.16264954209327698, 0.04262322559952736, 0.24649442732334137, 0.2847862243652344, 0.19369502365589142, -0.09436914324760437, -0.10659702867269516, 0.12310619652271271, 0.1845841407775879, 0.21532106399536133, -0.37300512194633484, 0.14320991933345795, -0.10245393961668015, 0.29503607749938965, -0.12795370817184448, 0.23551535606384277, 0.1593352109193802, -0.2550414502620697, 0.22766567766666412, 0.036749549210071564, -0.053009092807769775, 0.264975368976593, -0.2547729015350342, 0.2745141088962555, 0.18462345004081726, -0.15319712460041046, 0.19781675934791565, 0.1969079077243805, -0.31219345331192017, 0.29853159189224243, -0.08765952289104462, 0.12445284426212311, 0.2559632956981659, -0.0741104856133461, -0.2983541488647461, 0.19359436631202698, -0.23935723304748535, 0.17809456586837769, -0.18364651501178741, 0.48361483216285706, -0.14166484773159027, 0.1909189224243164, -0.34667593240737915, -0.38107389211654663, 0.19487516582012177, -0.058126382529735565, -0.25776851177215576, 0.15048585832118988, 0.04106570780277252, -0.20137324929237366, -0.15939714014530182, -0.7575315833091736, 0.03543830290436745, -0.16354073584079742, 0.19720517098903656, 0.1563572734594345, 0.2769855856895447, 0.0308581180870533, 0.26685670018196106, -0.035417500883340836, -0.1260358691215515, -0.16512903571128845, -0.17090877890586853, -0.19464263319969177, 0.32051295042037964, -0.15303896367549896, -0.30156397819519043, -0.14507131278514862, -0.13938698172569275, 0.5834776759147644, -0.034669406712055206, -0.37803083658218384, -0.22077451646327972, -0.010000316426157951, 0.10903535783290863, -0.041203923523426056, -0.1890207976102829, 0.35724925994873047, -0.09905188530683517, -0.2029391974210739, -0.09182073175907135, -0.07755400985479355, 0.3088783323764801, 0.19105947017669678, 0.25857308506965637, -0.40904706716537476, 0.28545308113098145, -0.008005987852811813, 1.0584608316421509, 0.3723432719707489, 0.07478521019220352, 0.04012654721736908, -0.004404475912451744, -0.12894009053707123, -0.19659024477005005, -0.14872293174266815, 0.16075186431407928, -0.059310778975486755, -0.2840837836265564, 0.26564738154411316, 0.13444378972053528, -0.019717732444405556, -0.13557390868663788, 0.25192543864250183, -0.6226944327354431, -0.14675523340702057, -0.04414010047912598, -0.0679614245891571, 0.5081366300582886, 0.026144713163375854, 0.25752517580986023, 0.18022073805332184, 0.09821140021085739, 0.018909811973571777, -0.022157929837703705, 0.17991051077842712, -0.04808110371232033, -0.3849969506263733, -0.07201597094535828, -0.06307359784841537, 0.19185802340507507, -0.1368914544582367, 0.2850540280342102, -0.03364071995019913, -0.03151855245232582, -0.015502378344535828, 0.019306667149066925, 0.49165040254592896, 0.10303500294685364, 0.07596391439437866, 0.2137276828289032, 0.0983610451221466, -0.08789995312690735, -0.1557476967573166, -0.12499867379665375, -0.30201926827430725, -0.10051846504211426, 0.32040661573410034, -0.3774966597557068, 0.03018447756767273, -0.050086893141269684, 0.021307481452822685, -0.3617134988307953, 0.015999294817447662, -0.36471495032310486, 0.023644499480724335, -0.11307831853628159, 0.17361292243003845, 0.25345173478126526, 0.239274263381958, -0.08757370710372925, -0.086684949696064, 0.038434550166130066, -0.3197675943374634, 0.22973956167697906, 0.30852144956588745, 0.38501212000846863, 0.07585277408361435, 0.5038487315177917, 0.10594706237316132, -0.2602709233760834, 0.23495526611804962, 0.5228101015090942, -0.14997456967830658, -0.30383479595184326, 0.11173075437545776, -0.17185606062412262, 0.4033384919166565, 0.2430349886417389, -0.19719193875789642, 0.0012444183230400085, -0.07558293640613556, 0.2412468045949936, 0.2151300460100174, 0.08252052217721939, 0.07904716581106186, -0.023911166936159134, 0.20276989042758942, -0.3584729731082916, 0.05600392073392868, -0.1665777564048767, -0.032249901443719864, -0.08164377510547638, 0.12989644706249237, -0.17476126551628113, 0.33387112617492676, 0.11272642016410828, 0.6330302953720093, 0.13059395551681519, -0.038304153829813004, 0.48322758078575134, 0.04900875687599182, 0.12288321554660797, -0.35979533195495605, 0.20302559435367584, -0.21738456189632416, -0.11080849170684814, 0.08873890340328217, -0.06483036279678345, 0.18832166492938995, 0.3287273049354553, -0.14395150542259216, 0.4234231114387512, -0.4484819173812866, -0.040692638605833054, 0.0738428458571434, -0.05108818784356117, 0.031465113162994385, -0.025164470076560974, -0.29002371430397034, 0.23594394326210022, -0.0015881508588790894, -0.040608298033475876, -0.10339225828647614, -0.07316362112760544, -0.12275631725788116, -0.12740382552146912, -0.0092291459441185, 0.24748572707176208, -0.31188324093818665, -0.10061080753803253, 0.3116770088672638, -0.16100208461284637, 0.07622489333152771, 0.3196718394756317, -0.12019705772399902, 0.27096816897392273, -0.09747036546468735, 0.24680379033088684, -0.04635554552078247, 0.05797137692570686, 0.004804112482815981, -0.09126723557710648, 0.4631342589855194, -0.13959398865699768, -0.07123219221830368, 0.4149792492389679, -0.2818171977996826, 0.01761195808649063, 0.051092490553855896, 0.06486345827579498, 0.0080350860953331, -0.3585585355758667, -0.11048181354999542, 0.1376354992389679, 0.002933695912361145, -0.33818715810775757, 0.23000594973564148, 0.057228416204452515, -0.18927574157714844, 0.1670880913734436, 0.08654473721981049, -0.14631198346614838, 0.04270809143781662, 0.13614927232265472, 0.35704749822616577, -0.13059565424919128, 0.7882823944091797, 0.15287651121616364, -0.03984658420085907, -0.3938731849193573, -0.0726177990436554, 0.29451724886894226, -0.43571901321411133, 0.3019654452800751, -0.01365616824477911, -0.02465188503265381, -0.05216086283326149, 0.4134023189544678, 0.18873359262943268, 0.039936937391757965, 0.2184930294752121, -0.4894671142101288, -0.19310927391052246, 0.23990494012832642, -0.014509893953800201, 0.0302345659583807, -0.13226301968097687, 0.2903120815753937, -0.12786810100078583, 0.20974697172641754, -0.4214288294315338, -0.14337356388568878, -0.3985903859138489, 0.1878063827753067, -0.5181499719619751, -0.1457362174987793, 0.22721745073795319, -0.10953836143016815, 0.247385174036026, 0.037556082010269165, -0.2567577064037323, -0.32009631395339966, -0.2861354351043701, 0.06176481395959854, 0.19273298978805542, 0.11274020373821259, 0.28893953561782837, 0.04166862368583679, -0.28344252705574036, 0.017824869602918625, 0.10131733119487762, -0.19480228424072266, 0.04676707088947296, 0.08719716221094131, 0.386426717042923, 0.02197698876261711, -0.19198791682720184, -0.13588839769363403, -0.08825618028640747, 0.09046034514904022, 0.06016736105084419, -0.20230312645435333, 0.05235081538558006, -0.012818627059459686, -0.15071158111095428, 0.22151806950569153, -0.12311704456806183, 0.27379462122917175, 0.2905277907848358, -0.1926766186952591, -0.01842626929283142, -0.11681292206048965, 0.1618773192167282, 0.16859102249145508, -0.14450037479400635, 0.1315019726753235, 0.01357891596853733, 0.35283148288726807, -0.38441234827041626, 0.0049659619107842445, -0.35266682505607605, -0.01840467005968094, 0.0893213301897049, 0.16734345257282257, 0.04376901313662529, -0.354724645614624, -0.08603248000144958, 0.2811056971549988, -0.2622282803058624, -0.10819903016090393, 0.2802656888961792, 0.573170006275177, 0.027564693242311478, -0.0002919100224971771, 0.18192899227142334, -0.38978901505470276, -0.052664272487163544, -0.09915946424007416, 0.0734337717294693, 0.13528862595558167, 0.22908642888069153, 0.020084209740161896, -0.06618965417146683, -0.17423059046268463, 0.011692740023136139, 0.046957530081272125, -0.08975887298583984, 0.37864595651626587, -0.013823121786117554, 0.29878929257392883, -0.06386478245258331, -0.14970220625400543, -0.3668248951435089, -0.1680518537759781, -0.0015941821038722992, 0.0645882785320282, 0.008597716689109802, -0.15139096975326538, -0.1663925051689148, -0.08183354139328003, 0.07922110706567764, -0.32834213972091675, 0.1542551964521408, -0.1284557282924652, -0.4417526125907898, -0.2323843389749527, -0.3880309462547302, 0.48574602603912354, 0.2582843005657196, -0.2795488238334656, 0.2843216061592102, 0.15064680576324463, -0.18257573246955872, -0.11769145727157593, 0.43384143710136414, 0.12806862592697144, 0.08454261720180511, -0.04630796238780022, -0.08711694926023483, 0.08225665986537933, -0.10404431074857712, 0.11179827153682709, 0.28228625655174255, 0.16424807906150818, -0.07677718997001648, 0.2574377655982971, 0.1753002554178238, -0.2762504816055298, 0.1733465939760208, 0.08105418086051941, 0.23269997537136078, -0.25334182381629944, 0.13048860430717468, -0.11444982886314392, -0.04475333169102669, -0.055323705077171326, 0.18831601738929749, -0.4011358618736267, 0.0053418418392539024, 0.11087282001972198, 0.11024236679077148, 0.12415485829114914, -0.0843072459101677, 0.12751388549804688, -0.304999977350235, 0.5124531388282776, 0.01031121239066124, 0.022915150970220566, -0.4916665554046631, -0.06471656262874603, -0.28292930126190186, -0.05012939125299454, -0.21303477883338928, 0.21043716371059418, 0.03469673544168472, 0.20908325910568237, 0.12620298564434052, 0.10176999866962433, -0.014117524027824402, 0.025088516995310783, -0.257170170545578, 0.31890448927879333, -0.7061988115310669, -0.1350683867931366, -0.20198260247707367, 0.34973156452178955, 0.160527303814888, -0.31066662073135376, 0.015565570443868637, -0.1239766925573349, 0.11428558081388474, 0.19485095143318176, -0.1609448343515396, 0.31587356328964233, -0.08579732477664948, 0.2146507203578949, 0.12741979956626892, 0.14347559213638306, -0.07196873426437378, -0.1633681207895279, -0.14011849462985992, -0.35240039229393005, -0.25267934799194336, 0.2253601849079132, 0.2688835561275482, 0.4694870114326477, 0.10293547064065933, -0.10613836348056793, 0.03374626114964485, 0.04451460763812065, 0.2115570455789566, -0.4895729124546051, -0.37587830424308777, 0.23327253758907318, 0.012720651924610138, 0.22322846949100494, 0.11946572363376617, 0.2636306583881378, -0.14824828505516052, -0.24762852489948273, -0.3534998297691345, -0.4347570240497589, 0.4308342933654785, -0.0701332539319992, -0.09341922402381897, -0.14455357193946838, 0.21891430020332336, 0.015859559178352356, -0.06313718110322952, -0.6744793653488159, -0.06597752869129181, 0.4094991981983185, -0.11327215284109116, -0.25851669907569885, 0.18066944181919098, 0.12449553608894348, -0.12710416316986084, -0.05643177404999733, 0.2745745778083801, 0.027828054502606392, -0.2310825139284134, 0.08180946111679077, -0.0966651439666748 ]
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.027576062828302383, -0.17989471554756165, -0.04161757230758667, 0.5950449109077454, 0.4188719391822815, 0.12768855690956116, -0.10213412344455719, 0.40457573533058167, -0.42221394181251526, 0.29161614179611206, -0.31222060322761536, 0.1641511172056198, -0.1594449281692505, -0.24671891331672668, 0.008443383499979973, -0.38672834634780884, -0.1002720519900322, -0.023484274744987488, -0.21415108442306519, 0.17033825814723969, -0.055228300392627716, 0.356477290391922, -0.1458573043346405, 0.19389745593070984, 0.04134608432650566, 0.1218295469880104, -0.15613853931427002, 0.3231821656227112, -0.2132590264081955, -0.31375235319137573, 0.37616169452667236, -0.19663849472999573, 0.2636955976486206, 0.7458990216255188, -0.00011316106247249991, 0.17093367874622345, 0.2560482919216156, -0.15245765447616577, -0.22756704688072205, -0.33001595735549927, -0.20319253206253052, 0.02083730138838291, 0.026060421019792557, 0.06207682937383652, -0.32797983288764954, -0.054118674248456955, 0.029657145962119102, -0.10687176883220673, 0.0726991817355156, 0.24270236492156982, 0.22229163348674774, 0.5647498369216919, 0.1862722486257553, -0.3274787962436676, 0.1554674357175827, -0.1818125694990158, -0.14007866382598877, 0.6799875497817993, 0.1498621106147766, 0.4447273313999176, 0.11700429022312164, 0.4727894961833954, 0.008193263784050941, -0.020733937621116638, 0.21938401460647583, -0.1606033593416214, 0.32650887966156006, -0.3726675510406494, 0.23641207814216614, 0.31053459644317627, 0.39843976497650146, -0.11254031211137772, -0.3003064692020416, -0.18801501393318176, 0.06316544115543365, -0.12065479904413223, 0.28560006618499756, 0.1726798564195633, -0.25153616070747375, 0.23724843561649323, 0.0646848976612091, -0.37741371989250183, -0.03092503547668457, 0.23972180485725403, -0.05254310369491577, -0.32830649614334106, -0.1941552311182022, -0.04403296113014221, -0.04289085045456886, -0.11775478720664978, -0.12237342447042465, -0.10222472250461578, -0.06050029769539833, 0.407345712184906, -0.1801212728023529, -0.02228330634534359, 0.13104009628295898, 0.16329294443130493, 0.09161131083965302, 0.24558115005493164, -0.06008906662464142, 0.1073494553565979, -0.4293556213378906, 0.1083616316318512, 0.23060956597328186, 0.01939190924167633, 0.038720935583114624, 0.00642575416713953, 0.10225322097539902, 0.559654176235199, 0.15376193821430206, -0.06698686629533768, -0.3494543433189392, -0.3994419574737549, -0.4301466643810272, 0.04536490887403488, 0.36191534996032715, -0.2745940089225769, -0.19267664849758148, -0.22559893131256104, -0.1761297583580017, -0.11796480417251587, 0.3284713327884674, 0.48182931542396545, -0.013561887666583061, 0.15182124078273773, -0.22316542267799377, 0.10770971328020096, -0.08430738002061844, -0.1456603854894638, -0.24824440479278564, 0.0794840082526207, -0.2387336641550064, 0.17901593446731567, 0.11338570713996887, -0.689028263092041, 0.3001253604888916, -0.30570775270462036, -0.11379374563694, 0.00829235464334488, 0.036353372037410736, -0.07377892732620239, -0.11099260300397873, 0.2830505073070526, 0.012699726969003677, -0.024832729250192642, -0.05026719346642494, -0.12376193702220917, -0.13512006402015686, 0.012353502213954926, -0.22923016548156738, -0.27759549021720886, -0.01392965205013752, 0.1285248100757599, -0.01681119203567505, 0.20330548286437988, 0.11596214771270752, 0.1687004268169403, -0.2712264060974121, -0.12882597744464874, -0.027989201247692108, 0.139417365193367, -0.0879693552851677, -0.16762775182724, 0.42587587237358093, 0.5617591142654419, -0.1878827065229416, -0.011663135141134262, -0.06527213752269745, -0.44487324357032776, 0.021888822317123413, 0.26677173376083374, -0.10077370703220367, 0.2799510061740875, -0.500740647315979, 0.07614485919475555, 0.369787335395813, -0.38229531049728394, -0.24246391654014587, -0.017970740795135498, -0.14580652117729187, -0.03624099865555763, 0.04559915140271187, -0.19905762374401093, -0.07116178423166275, -0.11173872649669647, 0.4304500222206116, -0.03965430706739426, 0.10824074596166611, -0.28273826837539673, -0.15614795684814453, -0.1705929934978485, -0.04027295857667923, 0.028207402676343918, 0.0869346633553505, 0.06497424840927124, 0.18903213739395142, -0.16411994397640228, 0.15053574740886688, 0.017725400626659393, 0.004451496992260218, 0.3384772539138794, 0.33359384536743164, 0.25317156314849854, 0.04346804320812225, -0.17014089226722717, -0.09063572436571121, 0.16041946411132812, -0.17632509768009186, 0.2604510188102722, -0.3216409683227539, -0.058682430535554886, -0.3983006477355957, -0.06218957155942917, -0.2430598884820938, -0.11298666894435883, 0.1386478841304779, 0.027710475027561188, 0.15546001493930817, 0.3996637761592865, -0.10363174974918365, 0.08665583282709122, 0.041363030672073364, 0.3868947923183441, -0.5217027068138123, 0.28829488158226013, -0.162120059132576, -0.05699797719717026, 0.04473462700843811, 0.16505375504493713, 0.08897665143013, -0.22642084956169128, 0.08791477233171463, 0.3215091824531555, 0.14806877076625824, 0.025421932339668274, 0.6113665103912354, -0.2260291427373886, 0.12112977355718613, -0.27216100692749023, 0.09006930887699127, -0.011644508689641953, 0.13134539127349854, 0.1288066804409027, 0.06316117197275162, 0.16527090966701508, 0.11230392754077911, 0.07629350572824478, 0.1483335644006729, 0.027767224237322807, 0.34169092774391174, -0.0324317142367363, -0.07262779027223587, -0.2988240420818329, 0.2953141927719116, 0.15610046684741974, 0.22114481031894684, -0.08733858168125153, -0.2797178626060486, -0.24180686473846436, -0.22709116339683533, -0.10548281669616699, -0.009752973914146423, 0.1181013360619545, -0.3057858943939209, 0.20411348342895508, 0.21844707429409027, 0.3560207486152649, 0.19932810962200165, 0.13254906237125397, 0.16368941962718964, 0.16327203810214996, 0.12155164033174515, -0.12846267223358154, 0.09213849902153015, 0.1699598878622055, 0.07395990937948227, 0.187148779630661, -0.14971494674682617, 0.045757800340652466, -0.3276001214981079, -0.09893392771482468, -0.15985876321792603, 0.21086366474628448, -0.13682514429092407, -0.13080377876758575, -0.3650534152984619, -0.5920038223266602, -0.24788254499435425, -0.05495006963610649, -0.4640178978443146, -0.22582446038722992, -0.12924090027809143, -0.01469166949391365, -0.048707038164138794, 0.038463033735752106, -0.3173123002052307, 0.14358274638652802, -0.08266309648752213, -0.07947039604187012, -0.20915928483009338, 0.047494176775217056, -0.04806647449731827, 0.06190791353583336, 0.3312295973300934, -0.0067734308540821075, 0.3388993442058563, -0.3461814224720001, 0.11025458574295044, -0.2857089042663574, -0.3271123468875885, 0.1754177212715149, 0.12566789984703064, 0.2020730823278427, 0.17227952182292938, 0.19576790928840637, 0.07499575614929199, -0.12311730533838272, 0.37496235966682434, 0.0885659009218216, -0.10426252335309982, 0.014483809471130371, -0.022989388555288315, 0.20794948935508728, 0.0007508955895900726, -0.20677539706230164, -0.11179647594690323, -0.2796294093132019, -0.06001761555671692, 0.07530288398265839, -0.013634882867336273, 0.03799659386277199, 0.20160868763923645, 0.3852594494819641, -0.5088943243026733, -0.05190446227788925, -0.08486130833625793, -0.3770306408405304, 0.3114743232727051, -0.266734778881073, -0.2900528013706207, 0.32003480195999146, -0.23562949895858765, 0.5331372618675232, -0.16575439274311066, -0.47655707597732544, 0.08593861758708954, 0.05238474905490875, 0.16051338613033295, 0.22720442712306976, -0.13700780272483826, 0.04980304837226868, 0.0314958430826664, -0.11339116841554642, 0.0020014457404613495, -0.07477232813835144, -0.3300977051258087, -0.053095363080501556, 0.49509724974632263, -0.11386407166719437, 0.050315868109464645, 0.07333643734455109, 0.41992712020874023, 0.3726041913032532, 0.15347766876220703, 0.4652213156223297, 0.11670789122581482, 0.5983032584190369, -0.09072595089673996, -0.19260339438915253, -0.1169220581650734, 0.01171867549419403, 0.12796245515346527, 0.07447006553411484, 0.5465223789215088, 0.19827230274677277, -0.5745589733123779, -0.3914285898208618, -0.28495272994041443, -0.3250793516635895, -0.3052752912044525, -0.19116827845573425, 0.1338617503643036, 0.08208324015140533, 0.013069339096546173, 0.0836508572101593, -0.0033116829581558704, 0.22149699926376343, 0.6827550530433655, 0.031395990401506424, 0.00965131726115942, 0.021811451762914658, 0.4009018838405609, -0.7738466262817383, 0.20678706467151642, -0.21021881699562073, 0.006306416355073452, 0.02551305666565895, 0.09632126241922379, 0.20565474033355713, -0.01841065287590027, 0.6278704404830933, 0.09966627508401871, 0.08079209923744202, -0.024640601128339767, -0.04943068325519562, -0.2527082562446594, 0.08706797659397125, 0.003877304494380951, -0.0025453967973589897, 0.13381917774677277, 0.6096516251564026, -0.2629620134830475, -0.19459576904773712, 0.14874839782714844, 0.09003975987434387, -0.1467805802822113, -0.20162047445774078, -0.2816524803638458, -0.2833278775215149, -0.14636580646038055, -0.3225820064544678, -0.1948903203010559, 0.31636402010917664, 0.4110986888408661, -0.12065467238426208, 0.12044977396726608, 0.12903735041618347, 0.13255006074905396, 0.07312430441379547, 0.2535375654697418, 0.14238587021827698, 0.1947270929813385, 0.41897594928741455, 0.27299487590789795, 0.20542259514331818, 0.6228642463684082, -0.22859245538711548, -0.5557931065559387, -0.13782760500907898, -0.01024771947413683, 0.06610389053821564, 0.2842221260070801, -0.1786150187253952, 0.10758182406425476, 0.20942029356956482, 0.2447221726179123, -0.3189257085323334, 0.23772484064102173, 0.4166235327720642, -0.042056504637002945, -0.22951549291610718, -0.21055537462234497, 0.17515435814857483, -0.10906669497489929, 0.014289073646068573, 0.5919659733772278, 0.2655676603317261, -0.03089327923953533, -0.05332591012120247, -0.07624470442533493, 0.8943361639976501, -0.3052036166191101, -0.1355118304491043, 0.41263994574546814, -0.14292100071907043, 0.32684779167175293, 0.18354813754558563, 0.15979868173599243, -0.033272236585617065, 0.14850720763206482, -0.03398323059082031, 0.006210513412952423, 0.15093041956424713, -0.06660068035125732, -0.07233069092035294, 0.3700771927833557, 0.11855141818523407, -0.19964714348316193, -0.114683598279953, 0.029846839606761932, -0.08640523254871368, 0.1577293574810028, -0.14492620527744293, 0.14607757329940796, 0.0016565993428230286, 0.684576153755188, -0.1613362431526184, -0.18023090064525604, -0.22834043204784393, -0.11844520270824432, -0.0732765942811966, 0.011694591492414474, -0.17958110570907593, 0.010881959460675716, 0.03590957075357437, -0.4694713354110718, 0.07185541093349457, 0.11272350698709488, -0.07392916083335876, -0.10578204691410065, -0.43124786019325256, 0.2365906685590744, -0.2660595178604126, -0.40370678901672363, -0.025756893679499626, 0.09019804000854492, 0.2451140433549881, -0.0258609838783741, -0.15207773447036743, 0.06720226258039474, 0.02714049443602562, 0.005666889250278473, 0.28131386637687683, -0.08333224058151245, -0.15449105203151703, -0.03508784994482994, -0.18705591559410095, 0.07246267795562744, 0.15147989988327026, -0.19146881997585297, 0.15328992903232574, 0.2633695602416992, -0.15947727859020233, -0.4186674654483795, 0.17830513417720795, -0.09892663359642029, 0.05039094388484955, 0.3924626111984253, -0.23457449674606323, -0.332684725522995, 0.17193174362182617, 0.32411450147628784, -0.18727479875087738, -0.12083763629198074, 0.179006427526474, 0.11105374991893768, -0.5132267475128174, 0.06200903654098511, 0.1603066474199295, 0.42989903688430786, -0.001728153321892023, 0.002282310277223587, 0.2556888461112976, -0.6776071786880493, -0.1010771095752716, -0.36751821637153625, -0.29239609837532043, 0.2684897780418396, -0.1659114956855774, 0.07735798507928848, -0.19279220700263977, 0.026706604287028313, 0.24028223752975464, -0.1025596559047699, -0.2744693160057068, 0.1755046397447586, -0.22481295466423035, 0.013747014105319977, 0.19559359550476074, 0.17041075229644775, 0.13594327867031097, 0.06231575831770897, 0.12038873136043549, -0.11331476271152496, -0.3900878429412842, -0.15296322107315063, 0.005295667797327042, 0.08705645799636841, -0.017516624182462692, -0.17527896165847778, 0.07977189868688583, -0.15812548995018005, -0.015274330973625183, -0.16035689413547516, -0.1277962327003479, 0.22341331839561462, 0.10350359231233597, -0.14178058505058289, 0.12940235435962677, -0.012022793292999268, -0.2700367569923401, 0.3153376579284668, 0.1504017412662506, 0.2719031870365143, 0.2604067027568817, -0.18548178672790527, -0.2581327259540558, -0.059067435562610626, -0.09931503981351852, 0.029140397906303406, -0.0427689403295517, -0.15330550074577332, 0.2613145709037781, -0.006747350096702576, 0.037507060915231705, -0.021027885377407074, 0.2382090985774994, 0.05594063550233841, -0.16830351948738098, 0.26525941491127014, 0.44115927815437317, 0.11089829355478287, -0.32625943422317505, 0.10491695255041122, 0.16239868104457855, 0.035920556634664536, -0.04400663450360298, -0.15891951322555542, -0.2583509385585785, 0.2208857536315918, -0.014928966760635376, 0.07926484197378159, 0.19504927098751068, 0.15079782903194427, 0.3202230632305145, 0.4101894497871399, 0.2101363092660904, -0.029063183814287186, 0.3033575117588043, 0.14909029006958008, 0.0973714292049408, 0.485415518283844, -0.14227601885795593, 0.3498792350292206, -0.609470784664154, 0.2992958128452301, -0.019462428987026215, -0.44727975130081177, -0.048180628567934036, 0.16359974443912506, -0.05227072536945343, -0.1631709337234497, -0.1516128033399582, 0.39189210534095764, -0.19103509187698364, 0.1293942630290985, -0.147116020321846, 0.07285679876804352, 0.006705882027745247, 0.0518132783472538, 0.12348812818527222, -0.3167688250541687, 0.060236856341362, -0.029231712222099304, 0.28909236192703247, -0.3182099461555481, -0.12025871872901917, 0.0752687007188797, -0.09156468510627747, -0.1428075134754181, -0.21748656034469604, 0.09187253564596176, -0.020228981971740723, -0.011862926185131073, 0.15452907979488373, 0.2011747658252716, 0.04293888434767723, 0.02182568982243538, 0.19035637378692627, 0.4008930027484894, 0.04334636777639389, 0.05380937457084656, -0.12926580011844635, -0.1521483063697815, -0.05239751935005188, 0.05507952719926834, 0.20609942078590393, 0.03997901454567909, 0.10836893320083618, 0.3821548521518707, 0.14202150702476501, -0.18379732966423035, -0.2758411765098572, 0.0675104558467865, 0.2500000596046448, -0.27831411361694336, 0.4672815799713135, -0.5629262924194336, 0.009647898375988007, -0.17254579067230225, -0.06416838616132736, -0.5021949410438538, 0.5542033910751343, 0.22443418204784393, -0.36333680152893066, -0.13881102204322815, -0.1607692688703537, 0.06507089734077454, 0.017088282853364944, 0.46347784996032715, 0.3883378207683563, 0.409576952457428, -0.24451425671577454, -0.5597172379493713, -0.7324651479721069, 0.21579226851463318, -0.16816823184490204, 0.0038513001054525375, -0.016579557210206985, 0.06825005263090134, -0.11442916840314865, 0.32397937774658203, 0.2871304154396057, 0.08536653965711594, 0.3343954086303711, -0.10839641094207764, -0.06861840933561325, -0.16217704117298126, -0.21010319888591766, -0.02690943144261837, -0.10260017961263657, -0.18482288718223572, 0.06553693860769272, -0.43037521839141846, -0.010382693260908127, 0.11705757677555084, 0.13537493348121643, -0.1436266303062439, -0.09440810978412628, 0.45965737104415894, -0.037938378751277924, 0.22859495878219604, 0.047929324209690094, -0.06741702556610107, -0.14375221729278564, -0.241025909781456, 0.21547217667102814, -0.04308582842350006, -0.0316433422267437, 0.037309154868125916, -0.2298005372285843, -0.24773626029491425, -0.20151376724243164, 0.5169572830200195, 0.14915430545806885, 0.32146841287612915, -0.05671743303537369, 0.1079268828034401, -0.04208461195230484, -0.10294578224420547, 0.25587618350982666, -0.06126798689365387, -0.14643587172031403, -0.06086523085832596, -0.13904410600662231, -0.1754339337348938, 0.6612130403518677, -0.3637331426143646, 0.16299134492874146, -0.15414714813232422, 0.034804120659828186, 0.06580062210559845, -0.24089258909225464, -0.7541179060935974, 0.28832417726516724, 0.2903973460197449, 0.3903476595878601, -0.1727047562599182, 0.1597921997308731, -0.26160097122192383, -0.09701226651668549, 0.14242780208587646, 0.046623505651950836, -0.051611579954624176, -0.051898907870054245, 0.14433491230010986, -0.024850541725754738 ]
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.03762310370802879, -0.24428056180477142, -0.03867769241333008, 0.6305744051933289, 0.4072241187095642, 0.08833029121160507, -0.07169915735721588, 0.34890466928482056, -0.3947159945964813, 0.2646036744117737, -0.2870093584060669, 0.22050480544567108, -0.15739847719669342, -0.2962241768836975, 0.01087195985019207, -0.3568081259727478, -0.11493387073278427, -0.016995705664157867, -0.1815587282180786, 0.1489531397819519, -0.06250429898500443, 0.3521652817726135, -0.12652382254600525, 0.14866968989372253, 0.07350265979766846, 0.15039567649364471, -0.12595541775226593, 0.2814265191555023, -0.19054165482521057, -0.32471388578414917, 0.41167956590652466, -0.19728773832321167, 0.2471829354763031, 0.7875105738639832, -0.0001171694093500264, 0.14737428724765778, 0.2983236312866211, -0.1649734079837799, -0.28214165568351746, -0.37060266733169556, -0.2304011583328247, -0.0749065950512886, 0.025426197797060013, 0.04819401353597641, -0.32170042395591736, -0.012168358080089092, 0.0023314468562602997, -0.07699549198150635, 0.10064598172903061, 0.24734053015708923, 0.18179917335510254, 0.5502549409866333, 0.17999471724033356, -0.25498542189598083, 0.12390564382076263, -0.15642650425434113, -0.1432596892118454, 0.6937097311019897, 0.21211673319339752, 0.4913330078125, 0.16552859544754028, 0.46622154116630554, -0.016464779153466225, -0.00039902888238430023, 0.1752239316701889, -0.1469992995262146, 0.3066886067390442, -0.358871728181839, 0.20230942964553833, 0.3324889540672302, 0.41279566287994385, -0.10821107774972916, -0.3176201581954956, -0.20346316695213318, 0.05434155464172363, -0.12056907266378403, 0.28014901280403137, 0.21867814660072327, -0.2847769856452942, 0.22564707696437836, 0.07062152773141861, -0.40138500928878784, -0.04622575640678406, 0.26639893651008606, -0.04756457358598709, -0.31239259243011475, -0.22547997534275055, -0.04570428282022476, -0.05610031262040138, -0.12284928560256958, -0.11375269293785095, -0.13131076097488403, -0.050231363624334335, 0.4134673476219177, -0.14364786446094513, -0.0026623383164405823, 0.07641740888357162, 0.19624093174934387, 0.053474023938179016, 0.21881011128425598, -0.07187948375940323, 0.11107465624809265, -0.3836337625980377, 0.09449723362922668, 0.2684493362903595, -0.008999228477478027, 0.011655107140541077, 0.055999524891376495, 0.09365729987621307, 0.5667535066604614, 0.1805582195520401, -0.04137580841779709, -0.3334466516971588, -0.3940545320510864, -0.44197532534599304, 0.021697020158171654, 0.34299468994140625, -0.24456393718719482, -0.181789830327034, -0.2328260838985443, -0.1784701943397522, -0.14355239272117615, 0.33121010661125183, 0.454891562461853, -0.019204407930374146, 0.16157761216163635, -0.19783781468868256, 0.09738617390394211, -0.07085969299077988, -0.15007080137729645, -0.2035825103521347, 0.05184680223464966, -0.2274141162633896, 0.1836639791727066, 0.15186923742294312, -0.716778576374054, 0.3160149157047272, -0.2461056262254715, -0.14208191633224487, 0.01632169634103775, 0.030506325885653496, -0.09267972409725189, -0.08239255100488663, 0.2839708626270294, 0.046085942536592484, 0.01659153588116169, -0.09836336970329285, -0.1527356505393982, -0.11856457591056824, 0.04763329029083252, -0.2459803819656372, -0.24679705500602722, -0.07156466692686081, 0.08310649544000626, -0.035312552005052567, 0.21009542047977448, 0.05695968493819237, 0.1596892774105072, -0.2359338104724884, -0.16106058657169342, 0.012227915227413177, 0.10796905308961868, -0.023664038628339767, -0.1690434366464615, 0.443207323551178, 0.5722742676734924, -0.19049085676670074, -0.02038276568055153, -0.10015884041786194, -0.41237521171569824, 0.034705862402915955, 0.2353801280260086, -0.10508371144533157, 0.32707923650741577, -0.5126178860664368, 0.009488850831985474, 0.4096074104309082, -0.40439531207084656, -0.26408687233924866, -0.014639892615377903, -0.10365815460681915, 0.0169049222022295, 0.06188145652413368, -0.2221135050058365, -0.0735701322555542, -0.07332857698202133, 0.4005421996116638, -0.0504775270819664, 0.131174236536026, -0.2857051193714142, -0.18099413812160492, -0.15830424427986145, -0.046168453991413116, 0.027168530970811844, 0.09744087606668472, 0.02712680771946907, 0.17073026299476624, -0.17741729319095612, 0.1637757122516632, 0.028524750843644142, 0.015392026863992214, 0.36045771837234497, 0.36565861105918884, 0.3046261668205261, 0.04838762432336807, -0.18081331253051758, -0.09314068406820297, 0.13364219665527344, -0.18161891400814056, 0.21336610615253448, -0.3849082589149475, -0.014410901814699173, -0.3852236866950989, -0.08000016212463379, -0.2602270543575287, -0.12296533584594727, 0.0932593047618866, 0.04608936607837677, 0.16975755989551544, 0.4013626277446747, -0.12059709429740906, 0.13327741622924805, 0.06453468650579453, 0.39402928948402405, -0.5741817355155945, 0.2775961756706238, -0.1454012244939804, -0.08513043820858002, -0.01528514176607132, 0.19776728749275208, 0.08631323277950287, -0.2329653650522232, 0.1167249083518982, 0.2829643189907074, 0.16249775886535645, -0.012236051261425018, 0.5958024859428406, -0.2751283645629883, 0.14412787556648254, -0.29330214858055115, 0.07423495501279831, -0.007406216114759445, 0.12386022508144379, 0.1390322744846344, 0.006497859954833984, 0.1745624840259552, 0.09160634875297546, 0.11024872958660126, 0.12899792194366455, 0.005487440153956413, 0.34525957703590393, -0.03483463078737259, -0.11654483526945114, -0.2764833867549896, 0.3460577130317688, 0.18685610592365265, 0.2750213146209717, -0.08001022785902023, -0.23353852331638336, -0.24715003371238708, -0.2247961461544037, -0.0969623327255249, 0.020595431327819824, 0.12121845781803131, -0.30041471123695374, 0.2324630618095398, 0.15404817461967468, 0.36344003677368164, 0.2016909420490265, 0.11857417225837708, 0.10717304795980453, 0.11043956875801086, 0.1724076271057129, -0.11058889329433441, 0.07493874430656433, 0.19392335414886475, 0.008114383555948734, 0.22323822975158691, -0.1277025043964386, 0.05039185658097267, -0.26901111006736755, -0.0030083060264587402, -0.15630082786083221, 0.18127243220806122, -0.14650334417819977, -0.09712119400501251, -0.3710283637046814, -0.547351598739624, -0.292901873588562, -0.08434208482503891, -0.4625457525253296, -0.1980135589838028, -0.18170541524887085, -0.0270359106361866, 0.03271873667836189, 0.059156015515327454, -0.2924276292324066, 0.12238579988479614, -0.12172606587409973, -0.11992257088422775, -0.21571534872055054, 0.05696886032819748, -0.04986404627561569, 0.027845211327075958, 0.3217615783214569, 0.023165198042988777, 0.3310333490371704, -0.34489133954048157, 0.11463569104671478, -0.28240302205085754, -0.3251260221004486, 0.1471240222454071, 0.12416443973779678, 0.2616085112094879, 0.1532171368598938, 0.21051394939422607, 0.07225038856267929, -0.11967168003320694, 0.3903249204158783, 0.13410110771656036, -0.07723438739776611, 0.007931714877486229, -0.05524327605962753, 0.2397366613149643, 0.030004296451807022, -0.1942552626132965, -0.14022484421730042, -0.2553321421146393, -0.06776963174343109, 0.05643097683787346, -0.05487570911645889, -0.03026772290468216, 0.2058977633714676, 0.3537765443325043, -0.559941291809082, -0.0433560386300087, -0.06653544306755066, -0.37191954255104065, 0.3360428810119629, -0.27762389183044434, -0.27101680636405945, 0.30127811431884766, -0.2774115204811096, 0.5949876308441162, -0.15964257717132568, -0.4551078677177429, 0.14836348593235016, 0.06455544382333755, 0.16787102818489075, 0.21631065011024475, -0.11844894289970398, 0.0491827130317688, 0.021315235644578934, -0.052329692989587784, 0.013579562306404114, -0.08147250860929489, -0.35694873332977295, -0.05117154121398926, 0.5589962005615234, -0.0684969425201416, 0.07862963527441025, 0.0684090405702591, 0.47867119312286377, 0.4028773903846741, 0.13347168266773224, 0.4516441822052002, 0.08729495853185654, 0.6159572601318359, -0.0439014807343483, -0.25054797530174255, -0.16805054247379303, 0.0329112708568573, 0.18022997677326202, 0.04680543765425682, 0.5635348558425903, 0.18872736394405365, -0.5760729312896729, -0.3702653646469116, -0.3555659353733063, -0.3124450743198395, -0.26663756370544434, -0.17304763197898865, 0.1711355596780777, 0.10120652616024017, 0.023409217596054077, 0.0597662515938282, -0.026387495920062065, 0.20437166094779968, 0.6898046135902405, 0.09071507304906845, 0.008174097165465355, 0.033650580793619156, 0.3789701759815216, -0.7080022096633911, 0.1770664006471634, -0.19994023442268372, 0.026301303878426552, 0.02299654856324196, 0.12766888737678528, 0.21670293807983398, -0.018788481131196022, 0.6216827630996704, 0.0953306034207344, 0.04196546599268913, -0.048609409481287, -0.029116135090589523, -0.31577640771865845, 0.09242706000804901, 0.02782222256064415, -0.020845551043748856, 0.1545681357383728, 0.5928751826286316, -0.3154579699039459, -0.19719448685646057, 0.17522551119327545, 0.13599121570587158, -0.2190578430891037, -0.23175907135009766, -0.30738139152526855, -0.2623603940010071, -0.12138564884662628, -0.3269079625606537, -0.22119632363319397, 0.31132081151008606, 0.41180652379989624, -0.14191854000091553, 0.13858312368392944, 0.15231838822364807, 0.061949413269758224, 0.01664770022034645, 0.2721291482448578, 0.12672927975654602, 0.20772260427474976, 0.4207656681537628, 0.2836778163909912, 0.2216930389404297, 0.6485929489135742, -0.2784492075443268, -0.5561391115188599, -0.1726403832435608, -0.04620848596096039, 0.07593291997909546, 0.25493311882019043, -0.19427825510501862, 0.09272195398807526, 0.21093645691871643, 0.2335282415151596, -0.31871554255485535, 0.16780005395412445, 0.424770325422287, -0.035699114203453064, -0.25028008222579956, -0.22135204076766968, 0.18251565098762512, -0.08227969706058502, 0.025487981736660004, 0.6119905710220337, 0.27917104959487915, -0.018806323409080505, -0.078447625041008, -0.12661013007164001, 0.9042646884918213, -0.26879292726516724, -0.12948718667030334, 0.4073128402233124, -0.12766635417938232, 0.2972317934036255, 0.15402749180793762, 0.1268141269683838, -0.018085412681102753, 0.2190377414226532, -0.02974146232008934, -0.03424510732293129, 0.16127943992614746, -0.07486440241336823, -0.0664106160402298, 0.39868712425231934, 0.1374393254518509, -0.19951175153255463, -0.13387224078178406, 0.016990095376968384, -0.09665479511022568, 0.1677272766828537, -0.12971864640712738, 0.10635602474212646, -0.012541733682155609, 0.700977623462677, -0.1536019742488861, -0.19578491151332855, -0.2491735816001892, -0.11733885854482651, -0.10560297966003418, 0.004550192505121231, -0.19563812017440796, 0.021331552416086197, 0.05477399379014969, -0.518883228302002, 0.08870239555835724, 0.10067497193813324, -0.08014823496341705, -0.11251407861709595, -0.44008904695510864, 0.26012906432151794, -0.2693241834640503, -0.39940598607063293, -0.03193338215351105, 0.09879225492477417, 0.2109643816947937, -0.0006949305534362793, -0.1603878140449524, 0.04806576669216156, 0.025475330650806427, 0.0005276165902614594, 0.2996790409088135, -0.06047546863555908, -0.1382228285074234, -0.042804889380931854, -0.18818487226963043, 0.0786641463637352, 0.1960265338420868, -0.1662234514951706, 0.12938785552978516, 0.29508525133132935, -0.13403697311878204, -0.35368141531944275, 0.14744557440280914, -0.11437554657459259, 0.05681055784225464, 0.41006380319595337, -0.23068076372146606, -0.3865349590778351, 0.19403426349163055, 0.31122663617134094, -0.19554024934768677, -0.11015043407678604, 0.2158876359462738, 0.07211170345544815, -0.5249447822570801, 0.03133001923561096, 0.195152148604393, 0.4888615608215332, -0.004363885149359703, -0.03864746913313866, 0.25470519065856934, -0.737496554851532, -0.14804866909980774, -0.36077743768692017, -0.2593635618686676, 0.2665597200393677, -0.15159234404563904, 0.06078578531742096, -0.18254193663597107, -0.038474395871162415, 0.28260689973831177, -0.0899164006114006, -0.23541133105754852, 0.20196756720542908, -0.1939259022474289, 0.04022155702114105, 0.21661311388015747, 0.17542138695716858, 0.12770098447799683, 0.05248471722006798, 0.09622245281934738, -0.12487776577472687, -0.36241716146469116, -0.13640502095222473, 0.03371460363268852, 0.10878635942935944, -0.015202466398477554, -0.12990599870681763, 0.03494284674525261, -0.18885768949985504, 0.03854367882013321, -0.1587517410516739, -0.14086754620075226, 0.20559629797935486, 0.11426503211259842, -0.11822251975536346, 0.13143552839756012, -0.017749197781085968, -0.31166785955429077, 0.33046525716781616, 0.13400402665138245, 0.2897075414657593, 0.2980368137359619, -0.1655777394771576, -0.19554252922534943, -0.030241169035434723, -0.11342291533946991, -0.009879924356937408, -0.003582112491130829, -0.139664888381958, 0.30324336886405945, -0.038525789976119995, 0.0621061809360981, -0.03633430227637291, 0.18619143962860107, 0.08585092425346375, -0.19646349549293518, 0.3042489290237427, 0.4258560240268707, 0.07979685068130493, -0.3316410779953003, 0.13367944955825806, 0.14834870398044586, 0.062100641429424286, -0.03902615234255791, -0.15888097882270813, -0.2443128526210785, 0.16530120372772217, 0.00010591000318527222, 0.071724534034729, 0.20313458144664764, 0.10513122379779816, 0.324928343296051, 0.44768160581588745, 0.24436791241168976, -0.06357336044311523, 0.28587400913238525, 0.17092202603816986, 0.04295959323644638, 0.4747549295425415, -0.12514185905456543, 0.37369170784950256, -0.6186773180961609, 0.31842344999313354, -0.006748847663402557, -0.4154491424560547, -0.09514746069908142, 0.12692327797412872, -0.05725453794002533, -0.16097941994667053, -0.15947775542736053, 0.39151531457901, -0.17743325233459473, 0.10141982138156891, -0.17260466516017914, 0.040789369493722916, 0.008249705657362938, 0.06059451773762703, 0.13440828025341034, -0.30568885803222656, 0.059601426124572754, -0.02431469038128853, 0.29291924834251404, -0.32460522651672363, -0.15941131114959717, 0.13174301385879517, -0.10522352159023285, -0.15157485008239746, -0.22826865315437317, 0.13090592622756958, -0.023343153297901154, 0.008662745356559753, 0.16069847345352173, 0.22126957774162292, 0.01776624098420143, -0.008729808032512665, 0.20353539288043976, 0.3928329050540924, 0.058229025453329086, 0.05009255185723305, -0.11590570956468582, -0.1569766253232956, -0.03613952919840813, 0.03649178147315979, 0.25574153661727905, 0.03822008892893791, 0.06777246296405792, 0.3389040231704712, 0.12149567902088165, -0.16654513776302338, -0.282074511051178, 0.06146476790308952, 0.22724802792072296, -0.2657387852668762, 0.5067763924598694, -0.5798212289810181, -0.019848622381687164, -0.21295009553432465, -0.0859578475356102, -0.531711995601654, 0.5941922664642334, 0.27560797333717346, -0.3396122455596924, -0.14326196908950806, -0.15959352254867554, 0.04061427339911461, 0.029021847993135452, 0.44129812717437744, 0.3815441131591797, 0.43548673391342163, -0.25903427600860596, -0.5794159770011902, -0.6965131759643555, 0.18234401941299438, -0.17879322171211243, 0.03660520166158676, -0.04860775172710419, 0.08238739520311356, -0.1335345208644867, 0.334145188331604, 0.30720359086990356, 0.08917509764432907, 0.39791324734687805, -0.05844879150390625, -0.0807567834854126, -0.16794002056121826, -0.1781061440706253, -0.015062844380736351, -0.10680073499679565, -0.17110328376293182, 0.03876800090074539, -0.4375113844871521, -0.035699568688869476, 0.12286277115345001, 0.14470022916793823, -0.11245021224021912, -0.06671019643545151, 0.46050381660461426, -0.0549265593290329, 0.22601796686649323, 0.052484191954135895, -0.04620290547609329, -0.1337992548942566, -0.22983789443969727, 0.2762637138366699, 0.012729369103908539, -0.015146676450967789, -0.02036551758646965, -0.26149067282676697, -0.24837051331996918, -0.21036291122436523, 0.4305928647518158, 0.12359583377838135, 0.29763343930244446, 0.0021893978118896484, 0.018361596390604973, -0.031072866171598434, -0.09404807537794113, 0.24427373707294464, -0.05274263024330139, -0.16626954078674316, -0.04645529389381409, -0.14769390225410461, -0.1338103860616684, 0.6335512399673462, -0.3730250298976898, 0.174024760723114, -0.16731801629066467, 0.06669334322214127, 0.049396347254514694, -0.20804254710674286, -0.7280302047729492, 0.2806958258152008, 0.33226278424263, 0.3692108690738678, -0.13367517292499542, 0.13377800583839417, -0.23105573654174805, -0.058375194668769836, 0.13056723773479462, 0.04920099675655365, -0.04030483961105347, -0.016208099201321602, 0.1304619461297989, 0.007338348776102066 ]
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.05794455483555794, -0.22567230463027954, -0.0337306372821331, 0.6018182039260864, 0.3969438672065735, 0.12284912914037704, -0.07714018225669861, 0.39270880818367004, -0.42825764417648315, 0.2528081238269806, -0.334074467420578, 0.19940970838069916, -0.14374248683452606, -0.2634526491165161, 0.03295997157692909, -0.3631291687488556, -0.10555852204561234, -0.03564116358757019, -0.1782318353652954, 0.14029324054718018, -0.07738085091114044, 0.34918445348739624, -0.17138716578483582, 0.14610308408737183, 0.03056343086063862, 0.1640697717666626, -0.15235574543476105, 0.2818203866481781, -0.16763675212860107, -0.3405280113220215, 0.40349313616752625, -0.16597570478916168, 0.2667887806892395, 0.7545299530029297, -0.00011551381612662226, 0.15827777981758118, 0.28715193271636963, -0.18011729419231415, -0.22589556872844696, -0.320848286151886, -0.2181338667869568, -0.00762356910854578, 0.0299344751983881, 0.05753738433122635, -0.3109146058559418, -0.025062203407287598, 0.01478628907352686, -0.12435692548751831, 0.07845421135425568, 0.25488895177841187, 0.19966433942317963, 0.5669792890548706, 0.15794186294078827, -0.2838992774486542, 0.12108828127384186, -0.1600349396467209, -0.15506525337696075, 0.693501889705658, 0.19798488914966583, 0.5019052624702454, 0.10769878327846527, 0.43678393959999084, 0.051214851438999176, -0.00003671087324619293, 0.17038872838020325, -0.16276486217975616, 0.3027920424938202, -0.36208298802375793, 0.22604849934577942, 0.3412949740886688, 0.4112469255924225, -0.08956199139356613, -0.3002089858055115, -0.20412224531173706, 0.06301454454660416, -0.10476376116275787, 0.2831822633743286, 0.21247448027133942, -0.2709573805332184, 0.22400718927383423, 0.05969800427556038, -0.3989567756652832, -0.037575528025627136, 0.22203370928764343, -0.0665905699133873, -0.32452255487442017, -0.22492754459381104, -0.047718875110149384, -0.06987498700618744, -0.12350761890411377, -0.10927962511777878, -0.09628132730722427, -0.04494288191199303, 0.4012908637523651, -0.20008979737758636, 0.008139293640851974, 0.09800341725349426, 0.18055936694145203, 0.07189832627773285, 0.24278905987739563, -0.09231780469417572, 0.1385718137025833, -0.40705642104148865, 0.05282745137810707, 0.2572006583213806, -0.013970581814646721, 0.02449186146259308, 0.012990276329219341, 0.10609738528728485, 0.5729392766952515, 0.14168308675289154, -0.02777724713087082, -0.3655090034008026, -0.41141486167907715, -0.4233092963695526, 0.027743417769670486, 0.33148401975631714, -0.25842076539993286, -0.1657225489616394, -0.23326875269412994, -0.17967191338539124, -0.13203561305999756, 0.3118087351322174, 0.46706441044807434, 0.007097937166690826, 0.13626745343208313, -0.19499562680721283, 0.11438681185245514, -0.07240229099988937, -0.17767827212810516, -0.2421128749847412, 0.03218313306570053, -0.24019494652748108, 0.16971784830093384, 0.16673466563224792, -0.7531405091285706, 0.31836992502212524, -0.2839641273021698, -0.14984959363937378, -0.00833483412861824, 0.014448205009102821, -0.05893155559897423, -0.08033033460378647, 0.27439120411872864, 0.03718061372637749, 0.015966160222887993, -0.1051173210144043, -0.11155158281326294, -0.10970554500818253, 0.025591261684894562, -0.23604023456573486, -0.23863962292671204, -0.04296912997961044, 0.09188289940357208, -0.038621388375759125, 0.20009171962738037, 0.06250730156898499, 0.19677305221557617, -0.23702242970466614, -0.10619217157363892, -0.030195780098438263, 0.1145455539226532, -0.08161552250385284, -0.16770681738853455, 0.46163660287857056, 0.5593075156211853, -0.20581425726413727, -0.0246674083173275, -0.07579614222049713, -0.43323203921318054, 0.012863337993621826, 0.25520604848861694, -0.09844924509525299, 0.31818872690200806, -0.5351844429969788, 0.0659504383802414, 0.32405784726142883, -0.34938377141952515, -0.23256029188632965, -0.03957710787653923, -0.09581412374973297, 0.004799900576472282, 0.03160557150840759, -0.23549489676952362, -0.06029737740755081, -0.09363964200019836, 0.4298354685306549, -0.027584269642829895, 0.12463650107383728, -0.28726884722709656, -0.14987818896770477, -0.15848524868488312, -0.04586116969585419, 0.04324722662568092, 0.10697650164365768, 0.048439789563417435, 0.17354097962379456, -0.1535315066576004, 0.18481776118278503, 0.04871755093336105, 0.01851879060268402, 0.3353235125541687, 0.3199560344219208, 0.26815325021743774, 0.05230941250920296, -0.1446801722049713, -0.11347468942403793, 0.16420069336891174, -0.16079267859458923, 0.23383206129074097, -0.3601343035697937, -0.012170722708106041, -0.3953315019607544, -0.06181454658508301, -0.23871706426143646, -0.14594754576683044, 0.10872738063335419, 0.04982585459947586, 0.14927823841571808, 0.4205014407634735, -0.12927280366420746, 0.10975582152605057, 0.04786107689142227, 0.38248410820961, -0.5560265183448792, 0.2685645520687103, -0.13298499584197998, -0.07263851165771484, 0.04314601421356201, 0.17572706937789917, 0.06376909464597702, -0.24541234970092773, 0.07924069464206696, 0.2824503183364868, 0.1595969796180725, 0.005704626441001892, 0.5873302817344666, -0.2710198163986206, 0.12329203635454178, -0.3047976493835449, 0.06468287110328674, 0.004443591460585594, 0.10392538458108902, 0.12042971700429916, 0.0022748783230781555, 0.21721002459526062, 0.11708627641201019, 0.07933405786752701, 0.11733648180961609, 0.04205945134162903, 0.3593289256095886, -0.03935340791940689, -0.08840590715408325, -0.26600712537765503, 0.32197192311286926, 0.19953958690166473, 0.27810317277908325, -0.08389515429735184, -0.260507732629776, -0.24626541137695312, -0.22696688771247864, -0.09558868408203125, 0.02215176448225975, 0.121847003698349, -0.32480165362358093, 0.20219284296035767, 0.1915891319513321, 0.35608115792274475, 0.1836344599723816, 0.10893564671278, 0.1458859145641327, 0.1345488280057907, 0.1329137235879898, -0.12896591424942017, 0.06204010546207428, 0.17203733325004578, 0.037038374692201614, 0.18934550881385803, -0.1400744765996933, 0.04061222821474075, -0.31716036796569824, -0.02034717984497547, -0.11832908540964127, 0.1915401965379715, -0.1601588875055313, -0.14113439619541168, -0.37985092401504517, -0.5577108263969421, -0.26894411444664, -0.046979717910289764, -0.4519858658313751, -0.2289753258228302, -0.16177308559417725, -0.029614876955747604, -0.014888403937220573, 0.07792717218399048, -0.3301403522491455, 0.16266407072544098, -0.08770004659891129, -0.07232144474983215, -0.22589975595474243, 0.07858579605817795, -0.04884377121925354, 0.040049586445093155, 0.3276127576828003, -0.002939696190878749, 0.31279847025871277, -0.34878474473953247, 0.12781159579753876, -0.2811445891857147, -0.329157292842865, 0.15928727388381958, 0.1283327043056488, 0.2206990122795105, 0.13357168436050415, 0.21085765957832336, 0.08320717513561249, -0.11418654024600983, 0.3580523431301117, 0.0815691128373146, -0.09784484654664993, 0.0026835743337869644, -0.02381306327879429, 0.2314569652080536, 0.03207318112254143, -0.20256003737449646, -0.10740488022565842, -0.2520037591457367, -0.06852403283119202, 0.04939788952469826, -0.04994383454322815, 0.006883658468723297, 0.18087278306484222, 0.37587279081344604, -0.5315440893173218, -0.06250640004873276, -0.0959484726190567, -0.4061959683895111, 0.3328714072704315, -0.29456019401550293, -0.311149924993515, 0.30569738149642944, -0.26410117745399475, 0.5637577772140503, -0.15873610973358154, -0.46556228399276733, 0.199510857462883, 0.05023784562945366, 0.18199992179870605, 0.23394660651683807, -0.14301706850528717, 0.03545133024454117, -0.000908061396330595, -0.07460030168294907, -0.0022462308406829834, -0.07925495505332947, -0.3318125903606415, -0.05629850924015045, 0.5509482622146606, -0.09798642247915268, 0.04112796485424042, 0.11342492699623108, 0.40319591760635376, 0.3871587812900543, 0.12850305438041687, 0.4658765196800232, 0.10687188059091568, 0.6118924617767334, -0.04721876233816147, -0.20560322701931, -0.1198544055223465, 0.019816622138023376, 0.17206653952598572, 0.08316503465175629, 0.5636383891105652, 0.1724129468202591, -0.5466662645339966, -0.39135977625846863, -0.3036634922027588, -0.3372727334499359, -0.28231415152549744, -0.20804914832115173, 0.15052442252635956, 0.10039441287517548, 0.026642076671123505, 0.070641428232193, -0.014652763493359089, 0.2296503633260727, 0.6586837768554688, 0.08534155786037445, -0.006897947285324335, 0.02418319508433342, 0.42071419954299927, -0.7590506672859192, 0.18124467134475708, -0.23696844279766083, 0.06420208513736725, 0.02938709780573845, 0.10576718300580978, 0.21635963022708893, -0.003922798205167055, 0.6508570313453674, 0.10210369527339935, 0.10048932582139969, -0.03306034207344055, -0.03834068775177002, -0.3130977153778076, 0.08922377228736877, 0.017764616757631302, -0.020539097487926483, 0.15222950279712677, 0.6132922172546387, -0.2646588981151581, -0.20380063354969025, 0.1580064296722412, 0.11168333888053894, -0.19899192452430725, -0.22956138849258423, -0.27628570795059204, -0.26477158069610596, -0.12348388880491257, -0.3163931369781494, -0.21085333824157715, 0.30215880274772644, 0.402240514755249, -0.12708325684070587, 0.11525595188140869, 0.12072540074586868, 0.07843279838562012, 0.04213760048151016, 0.2388521134853363, 0.1956622302532196, 0.22885382175445557, 0.4308675229549408, 0.2876805067062378, 0.21005991101264954, 0.6384999752044678, -0.23985832929611206, -0.5860435962677002, -0.12277814000844955, -0.05112830176949501, 0.06981872767210007, 0.2586873769760132, -0.21006858348846436, 0.0858641192317009, 0.19250020384788513, 0.22094379365444183, -0.3436311185359955, 0.22584925591945648, 0.4244190752506256, -0.03446502983570099, -0.2482132762670517, -0.2088707834482193, 0.16940179467201233, -0.11923389136791229, 0.01780499517917633, 0.5995384454727173, 0.2700918912887573, -0.026441073045134544, -0.048998914659023285, -0.10915821045637131, 0.8627336621284485, -0.3173598051071167, -0.14306075870990753, 0.39749661087989807, -0.1369406282901764, 0.28232187032699585, 0.20007340610027313, 0.1165136769413948, -0.025203824043273926, 0.17427310347557068, -0.017088308930397034, -0.018244851380586624, 0.1442672610282898, -0.07403877377510071, -0.028407810255885124, 0.35104119777679443, 0.12942591309547424, -0.23276105523109436, -0.10225611180067062, 0.03417667746543884, -0.06307613849639893, 0.14572468400001526, -0.11923734843730927, 0.1204877644777298, 0.0023403801023960114, 0.6824361681938171, -0.12576493620872498, -0.18499433994293213, -0.20928002893924713, -0.09097594022750854, -0.10111324489116669, 0.034301839768886566, -0.15159307420253754, 0.02989218756556511, 0.03620487079024315, -0.47075891494750977, 0.12462742626667023, 0.10194849967956543, -0.054782137274742126, -0.11864112317562103, -0.45495548844337463, 0.28343942761421204, -0.2564646303653717, -0.3910737931728363, -0.03253796696662903, 0.10195507109165192, 0.234744131565094, 0.01086413487792015, -0.1454000324010849, 0.06579949706792831, 0.05132385715842247, -0.0076987408101558685, 0.27021414041519165, -0.08341476321220398, -0.1498301774263382, -0.039501745253801346, -0.16116710007190704, 0.05723654106259346, 0.18780291080474854, -0.19460929930210114, 0.1414126753807068, 0.2921890318393707, -0.13587872684001923, -0.3849085569381714, 0.15586571395397186, -0.12163329124450684, 0.046303752809762955, 0.42557293176651, -0.24248239398002625, -0.3623388409614563, 0.1913568675518036, 0.33844754099845886, -0.16663943231105804, -0.1054476872086525, 0.23950213193893433, 0.10636204481124878, -0.5258746147155762, 0.054480697959661484, 0.15393930673599243, 0.47102808952331543, -0.01939297653734684, -0.00376829132437706, 0.23193851113319397, -0.7504907846450806, -0.1091415286064148, -0.35529446601867676, -0.2899662256240845, 0.2494613379240036, -0.2133905440568924, 0.07850198447704315, -0.19590789079666138, 0.0190301351249218, 0.25961777567863464, -0.06808465719223022, -0.2487383633852005, 0.2140539288520813, -0.20452216267585754, 0.011654520407319069, 0.16299299895763397, 0.18184024095535278, 0.13228470087051392, 0.048520274460315704, 0.10222834348678589, -0.0928020179271698, -0.359369158744812, -0.1395341455936432, -0.00558234378695488, 0.09575747698545456, -0.008807908743619919, -0.11008847504854202, 0.049774184823036194, -0.17504580318927765, -0.014561831951141357, -0.1571628749370575, -0.1505519151687622, 0.2373265027999878, 0.1356779932975769, -0.11252854019403458, 0.16059519350528717, -0.04964618384838104, -0.2892830967903137, 0.30919620394706726, 0.15574635565280914, 0.2654995322227478, 0.26231837272644043, -0.1723347306251526, -0.23542803525924683, -0.04311121255159378, -0.13496026396751404, 0.0186053104698658, -0.04056447744369507, -0.13812458515167236, 0.28751614689826965, -0.0203583762049675, 0.04281206801533699, -0.03272464498877525, 0.20530164241790771, 0.07514545321464539, -0.1998060941696167, 0.2819978594779968, 0.4231085181236267, 0.0853479877114296, -0.34148216247558594, 0.13765715062618256, 0.12283024191856384, 0.057786427438259125, -0.05285336449742317, -0.1804598867893219, -0.24738505482673645, 0.19403821229934692, -0.018629662692546844, 0.042061008512973785, 0.2001725435256958, 0.153903990983963, 0.33456549048423767, 0.4152139723300934, 0.23629479110240936, -0.06609313189983368, 0.31934574246406555, 0.16582132875919342, 0.0652550458908081, 0.492966890335083, -0.10179043561220169, 0.35455283522605896, -0.626197338104248, 0.3119466006755829, 0.016128472983837128, -0.42761412262916565, -0.07344867289066315, 0.14919978380203247, -0.0892675369977951, -0.14754533767700195, -0.14916789531707764, 0.4075738787651062, -0.17820601165294647, 0.09093229472637177, -0.1822102963924408, 0.039821136742830276, 0.007887070998549461, 0.04208327457308769, 0.12493053078651428, -0.31949901580810547, 0.069100022315979, -0.010481655597686768, 0.2825872004032135, -0.3300517797470093, -0.13212096691131592, 0.10353199392557144, -0.10194332897663116, -0.15430086851119995, -0.22642764449119568, 0.1020389199256897, -0.01656753569841385, 0.006534140557050705, 0.1416335254907608, 0.19482100009918213, 0.022391293197870255, 0.04225437715649605, 0.18140222132205963, 0.3701482117176056, 0.02525193803012371, 0.06330569088459015, -0.11174719780683517, -0.1309586614370346, -0.03375846892595291, 0.041667476296424866, 0.24964158236980438, 0.07430246472358704, 0.07412560284137726, 0.3713855743408203, 0.12138870358467102, -0.15664783120155334, -0.2803466320037842, 0.09279592335224152, 0.2560223937034607, -0.2445172816514969, 0.48243680596351624, -0.5761270523071289, 0.005578622221946716, -0.18509501218795776, -0.0921311154961586, -0.47621387243270874, 0.5811572074890137, 0.24588105082511902, -0.3841913640499115, -0.13724739849567413, -0.1609371304512024, 0.053471438586711884, 0.010903257876634598, 0.4640226364135742, 0.3801370859146118, 0.4002387523651123, -0.24733784794807434, -0.5967440605163574, -0.7138710021972656, 0.20299698412418365, -0.12870702147483826, 0.014065330848097801, -0.016894059255719185, 0.09791173040866852, -0.10944116860628128, 0.32119327783584595, 0.2787206172943115, 0.09092501550912857, 0.38006463646888733, -0.07814022898674011, -0.08953894674777985, -0.15599393844604492, -0.2007281333208084, -0.00634097121655941, -0.12186415493488312, -0.15366561710834503, 0.06662103533744812, -0.4474489688873291, -0.031392768025398254, 0.1314268708229065, 0.13802368938922882, -0.11379525065422058, -0.05849207937717438, 0.45809710025787354, -0.04548833519220352, 0.21344149112701416, 0.03620488941669464, -0.03443864360451698, -0.17633163928985596, -0.2321973741054535, 0.24595090746879578, -0.02334105223417282, -0.03815486654639244, 0.004017835482954979, -0.23015064001083374, -0.23830492794513702, -0.20278263092041016, 0.4307760000228882, 0.14551067352294922, 0.2988993525505066, -0.04868430644273758, 0.0791119709610939, -0.027855373919010162, -0.08894030749797821, 0.2718876898288727, -0.023565322160720825, -0.17768318951129913, -0.05724711716175079, -0.12705227732658386, -0.15261076390743256, 0.6423470377922058, -0.3883248269557953, 0.16754813492298126, -0.15079841017723083, 0.045547790825366974, 0.0417213961482048, -0.2181851714849472, -0.7388220429420471, 0.2959374189376831, 0.3184671401977539, 0.3756459057331085, -0.1593204289674759, 0.14445462822914124, -0.23463904857635498, -0.06979893893003464, 0.13745306432247162, 0.07604962587356567, -0.032506197690963745, -0.038326703011989594, 0.12420189380645752, -0.0154375359416008 ]
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.19832724332809448, 0.014374643564224243, 0.002106470987200737, 0.23605599999427795, 0.03386002033948898, 0.06316640228033066, 0.05425319820642471, 0.1971956491470337, -0.023259982466697693, 0.18440169095993042, -0.19901707768440247, 0.3482320010662079, 0.18891020119190216, -0.03520405665040016, 0.1387391835451126, -0.2517964839935303, 0.02969348430633545, 0.26353728771209717, 0.058107003569602966, -0.09758886694908142, -0.21162910759449005, 0.18207533657550812, -0.40318334102630615, 0.24550259113311768, -0.14337404072284698, -0.004809131845831871, 0.027900973334908485, 0.10995974391698837, -0.3365820646286011, -0.26902350783348083, 0.3799159526824951, -0.22253325581550598, 0.3279036283493042, 0.6063828468322754, -0.00011096092202933505, -0.07591433078050613, 0.4458805322647095, 0.10000975430011749, -0.3918357789516449, -0.40558409690856934, -0.42372217774391174, -0.09749171882867813, -0.008899170905351639, -0.21994684636592865, -0.0336327999830246, -0.3518982231616974, -0.026360323652625084, 0.04644929617643356, 0.10877540707588196, 0.408013254404068, 0.21612097322940826, 0.34517157077789307, 0.1994803100824356, -0.07589872926473618, 0.11122336983680725, -0.20417968928813934, -0.29388684034347534, 0.2485896646976471, 0.37162089347839355, 0.019318649545311928, 0.21474197506904602, 0.40767255425453186, -0.012934979051351547, -0.11919334530830383, 0.00026104599237442017, 0.09621062874794006, -0.23527640104293823, -0.3271319568157196, 0.19403690099716187, 0.4193381071090698, 0.7381360530853271, -0.07732465118169785, -0.3165580928325653, -0.10834097862243652, 0.19985640048980713, -0.16822679340839386, 0.22594758868217468, -0.02507810853421688, -0.12835921347141266, 0.2104654461145401, 0.1944340169429779, -0.3695306181907654, -0.15033677220344543, 0.28802743554115295, -0.06775397062301636, 0.6986862421035767, -0.029351036995649338, 0.018619198352098465, -0.1005319207906723, -0.2014937400817871, 0.6673580408096313, -0.07950123399496078, 0.10716643184423447, 0.0952378511428833, -0.10105998814105988, -0.00747443363070488, 0.07825309783220291, 0.27044206857681274, 0.0974564328789711, -0.5342890024185181, 0.08907023072242737, 0.07139050960540771, -0.17264875769615173, 0.12932763993740082, 0.09667234122753143, 0.4672059714794159, 0.11363683640956879, 0.05960625410079956, 0.3231094479560852, 0.5634961724281311, -0.056173671036958694, -0.08622780442237854, -0.22024846076965332, 0.03667530044913292, 0.07653959095478058, -0.1212228462100029, 0.2347896844148636, -0.2797551155090332, -0.17787499725818634, 0.11101546883583069, 0.010496232658624649, -0.11178454756736755, 0.13407467305660248, 0.3343394696712494, -0.05209881812334061, 0.4685724079608917, -0.10902464389801025, -0.03539218753576279, -0.29612892866134644, -0.014134516939520836, -0.12278108298778534, 0.2299470603466034, -0.2976321876049042, -0.030436960980296135, 0.017703481018543243, -0.0002734437584877014, 0.3745611906051636, -0.10934732109308243, 0.2685648798942566, -0.07992778718471527, 0.04724081605672836, -0.058980543166399, -0.16804087162017822, 0.2072971910238266, 0.1856466680765152, 0.09388870000839233, -0.03930111601948738, -0.5908218026161194, -0.003734678030014038, 0.2500286102294922, -0.5024212598800659, -0.1110803633928299, -0.30879366397857666, 0.20745639503002167, -0.03941560536623001, -0.09533928334712982, -0.2219100296497345, 0.08939884603023529, -0.1252565085887909, -0.2733157277107239, -0.048347167670726776, -0.15643173456192017, -0.0715264081954956, -0.0714864581823349, 0.07068867981433868, 0.15402893722057343, -0.3954978287220001, -0.06631128489971161, -0.015067432075738907, 0.09245017170906067, 0.010232098400592804, 0.2509188652038574, -0.28974249958992004, 0.18052998185157776, -0.4087097942829132, 0.299485445022583, 0.47485968470573425, -0.6277825832366943, -0.47029513120651245, -0.1551855206489563, -0.2183941900730133, 0.17647890746593475, -0.17322099208831787, -0.13972090184688568, 0.06231924518942833, -0.024623539298772812, 0.37414786219596863, 0.2529841363430023, 0.18148460984230042, -0.17659726738929749, -0.33728066086769104, -0.2627297341823578, -0.1873219609260559, 0.05449764057993889, 0.27011778950691223, -0.09657832235097885, 0.22201165556907654, 0.09778765588998795, 0.21855998039245605, -0.304959774017334, -0.03528100252151489, 0.3708950877189636, 0.2777456045150757, 0.002974681556224823, 0.04270189628005028, -0.16318312287330627, -0.2401772439479828, 0.2356501817703247, -0.06517034769058228, 0.2263507843017578, -0.13034990429878235, -0.17326600849628448, -0.5030012726783752, 0.028215566650032997, -0.4124870300292969, 0.011803016066551208, 0.20276950299739838, 0.06397239118814468, -0.0951886773109436, 0.3821231722831726, -0.12547743320465088, 0.0553828701376915, -0.06486081331968307, 0.05906660854816437, -0.14258545637130737, 0.3004021644592285, -0.27723827958106995, 0.052143678069114685, 0.009965717792510986, 0.35019952058792114, 0.3246394097805023, 0.06505007296800613, -0.05871941149234772, 0.14113423228263855, -0.27383193373680115, -0.008420385420322418, 0.6433107852935791, -0.0843113511800766, 0.25592148303985596, -0.46607717871665955, 0.21869494020938873, 0.06542287766933441, 0.18413974344730377, 0.03611018508672714, -0.04124820977449417, 0.21956172585487366, 0.29497215151786804, 0.1033334955573082, 0.16457967460155487, 0.07502026855945587, 0.3924272060394287, -0.20228888094425201, 0.04770202189683914, -0.3806101381778717, 0.1593777984380722, -0.27649736404418945, 0.15741989016532898, -0.19358891248703003, -0.20637880265712738, 0.2418922483921051, 0.4138449728488922, -0.24434198439121246, 0.22664231061935425, 0.15896660089492798, -0.268755167722702, -0.057376936078071594, 0.21651721000671387, 0.35937297344207764, 0.3308877944946289, 0.157456636428833, 0.37515127658843994, 0.07560550421476364, -0.0619223490357399, -0.02867925725877285, 0.2185891568660736, -0.03857243061065674, 0.13424059748649597, 0.2594105005264282, 0.21805022656917572, 0.0059733083471655846, -0.3377854824066162, -0.2373337298631668, -0.1496361941099167, 0.2096708118915558, -0.04744785279035568, -0.037330448627471924, -0.2840382754802704, -0.23944571614265442, -0.09973350912332535, -0.11303234845399857, -0.19366391003131866, -0.43246883153915405, 0.037659309804439545, 0.013680581003427505, 0.18238075077533722, 0.1621532142162323, -0.16800932586193085, -0.09756298363208771, -0.06431066244840622, -0.10691186040639877, -0.3256935477256775, -0.021322419866919518, -0.4002250134944916, 0.0550166480243206, 0.13995897769927979, 0.011889714747667313, 0.04373595863580704, -0.4289548099040985, 0.044494275003671646, -0.3928028643131256, -0.49042582511901855, 0.31522199511528015, -0.00629638135433197, 0.3915446102619171, -0.07437033951282501, 0.22677864134311676, -0.08173449337482452, -0.1939724236726761, 0.24165154993534088, -0.32596614956855774, 0.05697084218263626, -0.026868566870689392, -0.08117806166410446, -0.020123207941651344, 0.14382649958133698, -0.2476809322834015, -0.36244338750839233, -0.09889876842498779, -0.3223588466644287, -0.11302602291107178, -0.028317727148532867, 0.1663842797279358, 0.08704034239053726, 0.25703102350234985, -0.06554163247346878, -0.19781793653964996, -0.29992613196372986, -0.23911736905574799, 0.453037828207016, -0.21172070503234863, -0.2243981808423996, 0.2539777159690857, -0.11932240426540375, 0.2886124551296234, -0.2418447583913803, -0.5117621421813965, -0.4658151865005493, -0.0748429074883461, 0.4123660922050476, 0.09361542761325836, 0.099067322909832, 0.20168381929397583, 0.055969785898923874, -0.05547298863530159, -0.0769420936703682, -0.19395773112773895, -0.3744460642337799, 0.08711311966180801, 0.4336402714252472, -0.0294840969145298, 0.01109057292342186, 0.05805116519331932, 0.43142884969711304, 0.10376143455505371, 0.37368935346603394, 0.40792569518089294, 0.07399158924818039, 0.48465412855148315, -0.18328866362571716, -0.179547518491745, -0.004560511093586683, -0.1673394739627838, -0.18428128957748413, 0.13886581361293793, 0.3608129322528839, -0.48848918080329895, -0.38888153433799744, -0.20705711841583252, -0.5439010858535767, -0.25461065769195557, -0.25338563323020935, 0.3486422598361969, -0.012165002524852753, 0.2779349386692047, 0.0811949148774147, -0.13890203833580017, -0.170661062002182, 0.03346977010369301, 0.4500017762184143, -0.117752306163311, 0.011663553304970264, -0.3267331123352051, -0.003825800959020853, -0.5948861241340637, 0.12459725141525269, -0.04871705174446106, 0.4634477198123932, 0.019350681453943253, 0.1649518609046936, 0.12430259585380554, -0.13935011625289917, 0.13266314566135406, -0.5171244740486145, 0.0715031698346138, 0.017451871186494827, 0.2944756746292114, -0.10080595314502716, -0.02994512766599655, -0.12415178120136261, -0.021813904866576195, 0.08833058178424835, 0.339464008808136, -0.19617673754692078, -0.05453740060329437, 0.4282606542110443, 0.3095887303352356, -0.07252322137355804, -0.027875907719135284, -0.237890362739563, -0.6871281266212463, -0.04889434576034546, -0.1485818326473236, -0.006869060918688774, 0.1395159512758255, 0.06602148711681366, 0.0056036412715911865, 0.00020067207515239716, 0.15958544611930847, -0.012888088822364807, 0.2413858324289322, 0.11817511916160583, 0.16874614357948303, -0.08369305729866028, 0.08700147271156311, -0.03828892111778259, 0.2488390952348709, 0.4720657467842102, -0.13612468540668488, -0.5144053101539612, -0.24390766024589539, -0.0887477919459343, 0.059063710272312164, 0.24649304151535034, -0.1293633133172989, -0.23279529809951782, 0.04099411517381668, 0.16700750589370728, 0.19614219665527344, 0.21501868963241577, 0.34553152322769165, 0.2300865799188614, -0.5121195912361145, -0.09485866129398346, 0.39556682109832764, 0.040389396250247955, -0.02156803011894226, 0.4098508059978485, 0.15628573298454285, -0.21896877884864807, 0.18638265132904053, -0.07326702028512955, 1.0719246864318848, -0.09111239016056061, 0.21139807999134064, 0.3607044517993927, -0.16902148723602295, 0.08085240423679352, 0.06972113996744156, 0.09890991449356079, -0.14436939358711243, -0.21362754702568054, -0.13772249221801758, 0.04931657388806343, 0.013338573276996613, -0.24961628019809723, -0.17790620028972626, 0.4681973457336426, 0.05009394884109497, 0.2999766170978546, 0.37433603405952454, 0.21240603923797607, -0.1332152932882309, -0.08354043960571289, -0.11456291377544403, 0.11672855913639069, -0.11611360311508179, 0.1636304408311844, -0.27457717061042786, -0.03611774742603302, -0.06917979568243027, -0.12783032655715942, -0.21919399499893188, 0.18463540077209473, -0.21503807604312897, 0.00121336430311203, -0.295192152261734, -0.6971201300621033, -0.08813656866550446, 0.43817412853240967, -0.08142024278640747, 0.14375713467597961, -0.33212795853614807, 0.38853421807289124, -0.12054356187582016, 0.01943894289433956, 0.04330465942621231, -0.4239301383495331, 0.04854325205087662, -0.07401014864444733, -0.45608630776405334, 0.04653404280543327, -0.002385173924267292, 0.08682712912559509, -0.18211252987384796, 0.09334293752908707, 0.0025489889085292816, -0.009811058640480042, -0.10353778302669525, 0.11486592888832092, 0.12167492508888245, -0.41138431429862976, 0.1354813128709793, -0.11525428295135498, -0.06806676089763641, -0.0492679625749588, 0.2187412679195404, -0.23285159468650818, -0.010587088763713837, 0.26593437790870667, 0.05263863131403923, -0.1703006476163864, 0.2356358766555786, 0.03022855892777443, -0.25313490629196167, -0.15172967314720154, 0.005413375794887543, -0.17494313418865204, -0.32925236225128174, -0.17287373542785645, 0.04999396577477455, 0.07073074579238892, -0.2453926056623459, 0.22827382385730743, 0.1984298676252365, -0.24769183993339539, -0.11966076493263245, -0.45577871799468994, -0.07028550654649734, 0.2636728882789612, 0.015657640993595123, 0.12527556717395782, 0.03511036932468414, -0.15455886721611023, 0.017141876742243767, -0.1899527609348297, -0.32498955726623535, 0.13028186559677124, -0.1726178079843521, -0.10024543106555939, -0.06111548840999603, -0.0010171905159950256, 0.2794390320777893, -0.01236346922814846, 0.16070599853992462, -0.0685749426484108, 0.05064519867300987, -0.17117714881896973, -0.040718693286180496, 0.11010274291038513, 0.13962647318840027, -0.09979114681482315, -0.013322556391358376, -0.29902034997940063, 0.1617020070552826, -0.2171308398246765, -0.01837150566279888, 0.20072925090789795, 0.06660284101963043, -0.007604030426591635, 0.2076277732849121, 0.15148189663887024, -0.0018379054963588715, 0.3704824447631836, 0.1704527586698532, 0.2995695471763611, 0.059287961572408676, 0.08693189918994904, 0.14704345166683197, 0.15853475034236908, 0.2571714222431183, -0.11941991001367569, -0.19190315902233124, 0.46165916323661804, 0.3368372321128845, -0.335119366645813, 0.1151580810546875, 0.18227647244930267, 0.18198056519031525, 0.2565367817878723, -0.23510994017124176, -0.16910067200660706, 0.38974159955978394, 0.2337057888507843, -0.4088408350944519, -0.2705041468143463, 0.7051083445549011, 0.13844607770442963, 0.019532475620508194, 0.17637848854064941, 0.1471148431301117, -0.16894865036010742, 0.09905067831277847, -0.043001994490623474, 0.4494209885597229, 0.14092056453227997, 0.22152429819107056, 0.2571348249912262, 0.004680074751377106, 0.1889483630657196, 0.29085689783096313, 0.06058116257190704, -0.007808424532413483, 0.5327865481376648, -0.04777079075574875, 0.31201526522636414, -0.09006888419389725, 0.5175081491470337, -0.3650617301464081, -0.16091765463352203, 0.13851986825466156, -0.27048197388648987, 0.08757858723402023, 0.08422883599996567, 0.013295672833919525, -0.17403644323349, -0.03492315113544464, 0.15465214848518372, -0.17054428160190582, 0.09714433550834656, -0.20057106018066406, -0.03370780125260353, -0.1742660403251648, -0.3630827069282532, 0.3250049948692322, -0.07058008760213852, 0.03454650193452835, 0.05864341929554939, -0.2898454964160919, 0.14238741993904114, -0.09714573621749878, -0.09245870262384415, 0.07285784184932709, 0.39945462346076965, 0.11106575280427933, -0.013152793049812317, 0.33746612071990967, 0.3209857642650604, 0.26889556646347046, -0.35773274302482605, 0.33981090784072876, 0.3719191253185272, 0.13484317064285278, -0.2798977792263031, -0.05266479402780533, 0.024910733103752136, -0.12452708929777145, -0.07728169858455658, 0.0438014417886734, 0.16288363933563232, 0.002193821594119072, 0.29330524802207947, 0.19431555271148682, -0.22423334419727325, 0.39329734444618225, -0.011173304170370102, -0.03381011635065079, -0.053744882345199585, -0.44641032814979553, -0.07815350592136383, -0.07924504578113556, -0.3510477542877197, -0.009435400366783142, -0.2264389991760254, 0.6084111332893372, 0.48032045364379883, -0.13243864476680756, 0.0656333714723587, -0.1473217010498047, 0.07006476074457169, 0.10076439380645752, 0.18667031824588776, 0.5567754507064819, 0.04886722192168236, -0.19498813152313232, -0.2805478572845459, -0.8394196033477783, 0.2146109640598297, -0.41841548681259155, -0.21929684281349182, 0.1283458173274994, -0.15781700611114502, -0.1890805959701538, 0.10426373779773712, 0.48049402236938477, 0.4738733470439911, 0.146968275308609, 0.20532217621803284, -0.39547407627105713, -0.328680157661438, 0.2986508309841156, 0.0961938351392746, -0.08352769166231155, -0.2910257875919342, -0.06355184316635132, 0.059310805052518845, -0.009148944169282913, -0.02105402573943138, 0.00023250281810760498, -0.2736736536026001, -0.478952556848526, 0.6185745596885681, 0.20023491978645325, 0.13023832440376282, -0.20664027333259583, -0.2219354808330536, -0.06274135410785675, -0.23153264820575714, -0.057964425534009933, 0.20540857315063477, 0.127555251121521, 0.10051120817661285, -0.031125063076615334, 0.006656195968389511, -0.2374492585659027, 0.14022110402584076, 0.1548159420490265, 0.19144132733345032, -0.2015695571899414, 0.12493502348661423, 0.07308178395032883, 0.0456828698515892, 0.11385414004325867, 0.3327820599079132, -0.18592199683189392, 0.23621957004070282, -0.005230143666267395, -0.4675925076007843, 0.4862315058708191, -0.022763380780816078, -0.35951730608940125, -0.0921964943408966, 0.10791072994470596, -0.08129865676164627, -0.11362702399492264, -0.12582023441791534, 0.15037810802459717, 0.2672075629234314, 0.18069592118263245, -0.2453930824995041, 0.14205710589885712, -0.06776030361652374, 0.10506998002529144, 0.014162994921207428, 0.4371636211872101, 0.10091928392648697, -0.26813194155693054, -0.02575400285422802, -0.029372213408350945 ]
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.4085448682308197, -0.15285924077033997, -0.1239810436964035, 0.06415043771266937, 0.11212549358606339, 0.10350445657968521, 0.3430987298488617, 0.2238987684249878, -0.1365935057401657, 0.05489896237850189, -0.0883907675743103, 0.28764113783836365, 0.04801833629608154, 0.06119980663061142, -0.1352100372314453, 0.019828885793685913, -0.055388666689395905, -0.010933160781860352, -0.33377376198768616, 0.12665267288684845, -0.21732258796691895, 0.3459283113479614, -0.31967073678970337, -0.06650720536708832, -0.26490581035614014, -0.21713507175445557, -0.08844738453626633, 0.2700226306915283, -0.08907061070203781, -0.3350609242916107, 0.005738714709877968, 0.140682190656662, -0.037914156913757324, 0.5401780009269714, -0.00010110485163750127, -0.00783490389585495, 0.3128858804702759, 0.09356449544429779, -0.08441689610481262, -0.07104726135730743, -0.3134642243385315, -0.46942880749702454, 0.08068430423736572, -0.19161653518676758, -0.0022029951214790344, 0.10913649946451187, -0.0123660359531641, -0.31574133038520813, 0.3191041946411133, 0.3372054100036621, 0.33646053075790405, 0.5836629867553711, 0.0019613616168498993, -0.3067322373390198, 0.0630698949098587, -0.33694225549697876, -0.16334564983844757, 0.286593496799469, 0.40097254514694214, -0.19564101099967957, -0.013574250042438507, 0.1969815492630005, -0.21396641433238983, 0.21284624934196472, 0.06265716254711151, 0.03283967077732086, -0.04164595901966095, -0.4304121136665344, 0.26248401403427124, 0.18701624870300293, 0.5149672031402588, -0.32717421650886536, -0.037337616086006165, -0.05686649680137634, 0.003816575976088643, -0.23251527547836304, 0.21908646821975708, -0.03692231327295303, -0.131618469953537, 0.22365473210811615, -0.036217741668224335, 0.07104812562465668, 0.05268736928701401, 0.0384649932384491, -0.2217681109905243, -0.0460667610168457, -0.08298961818218231, -0.04080972075462341, -0.04121548309922218, -0.13637064397335052, 0.3713526129722595, -0.007809937000274658, 0.028416089713573456, -0.023821398615837097, -0.5177702903747559, -0.05755719169974327, 0.36459189653396606, 0.03556808456778526, 0.09874507039785385, 0.01208784431219101, -0.03975514695048332, 0.10945962369441986, -0.07145019620656967, 0.31002920866012573, 0.16832420229911804, -0.10733205080032349, -0.0055006518959999084, 0.07948849350214005, 0.28211554884910583, 0.18807019293308258, -0.21654413640499115, 0.08192811161279678, 0.06307064741849899, -0.47238579392433167, 0.23844189941883087, 0.10428474098443985, 0.2806370258331299, 0.10728208720684052, -0.37295621633529663, 0.045274995267391205, -0.04403124377131462, 0.1376926302909851, -0.0906587615609169, 0.4109572768211365, -0.10914948582649231, 0.015046853572130203, -0.04271605238318443, 0.060048289597034454, -0.21080179512500763, -0.3220803439617157, -0.28024476766586304, 0.024395011365413666, 0.046338457614183426, -0.13789211213588715, -0.04160717874765396, -0.1625707745552063, 0.21165980398654938, 0.048291027545928955, 0.1572292447090149, 0.09542419016361237, 0.1668868213891983, -0.2702954113483429, -0.05761802941560745, 0.40771105885505676, 0.1926714926958084, 0.04098931699991226, 0.2395566701889038, -0.09556896984577179, -0.075820192694664, 0.09298661351203918, -0.2596944570541382, -0.1863332837820053, -0.006995761767029762, 0.3259139358997345, 0.10396119952201843, -0.2556672692298889, -0.0916617140173912, 0.11335688829421997, 0.07731577754020691, -0.18635597825050354, -0.06548783928155899, -0.2524957060813904, -0.06746956706047058, -0.35040274262428284, 0.07767343521118164, 0.5380796194076538, -0.43270784616470337, -0.014955535531044006, -0.159262016415596, -0.1078128069639206, 0.012457899749279022, 0.277095764875412, -0.08100487291812897, 0.16957971453666687, -0.11599627137184143, 0.04912453889846802, 0.24016879498958588, -0.3199147880077362, -0.36263737082481384, 0.0908702164888382, -0.30107930302619934, -0.04273649677634239, -0.1367134153842926, 0.09372155368328094, 0.29575207829475403, -0.009446913376450539, 0.44823986291885376, 0.24620990455150604, -0.2692747414112091, 0.09033460170030594, -0.13658034801483154, -0.2909475266933441, -0.05369161069393158, 0.046970997005701065, 0.2362889051437378, -0.08992523699998856, 0.2524038255214691, -0.22952014207839966, 0.1484706848859787, 0.13394837081432343, -0.018707385286688805, 0.3950458765029907, 0.3054841160774231, 0.036540064960718155, -0.03233162313699722, -0.1834009289741516, -0.5057474374771118, 0.24987497925758362, 0.30897465348243713, 0.08186285197734833, -0.023478418588638306, -0.008906811475753784, -0.4486207365989685, 0.20375263690948486, -0.16244076192378998, 0.0956386998295784, 0.28822824358940125, 0.0894579067826271, -0.2714300751686096, 0.05097709223628044, -0.24730168282985687, 0.4360176920890808, 0.0321626290678978, 0.08695363253355026, -0.10878616571426392, 0.28895020484924316, -0.27541789412498474, -0.25811219215393066, 0.21473005414009094, -0.05800933390855789, 0.24765339493751526, 0.003107624826952815, -0.05819348245859146, 0.3293105661869049, 0.07719388604164124, 0.2450994849205017, 0.13071203231811523, -0.05772022902965546, 0.19696852564811707, -0.26975759863853455, -0.09545504301786423, 0.09380590915679932, 0.10415724664926529, -0.07342720031738281, 0.08057691156864166, 0.17065390944480896, -0.21421538293361664, 0.010488726198673248, 0.03483668714761734, 0.2288723886013031, 0.3592415153980255, -0.05495082959532738, -0.05419155955314636, -0.1366288661956787, 0.22214245796203613, 0.11840203404426575, 0.01258399710059166, -0.1474812775850296, -0.24708962440490723, 0.24930694699287415, 0.4901152551174164, 0.10153870284557343, 0.1599901169538498, -0.175592303276062, -0.2158997356891632, 0.09772112220525742, 0.13356998562812805, 0.35445719957351685, 0.4767533540725708, 0.2372661679983139, 0.14589756727218628, 0.18171706795692444, -0.035255830734968185, -0.2257145196199417, 0.027819857001304626, 0.20883329212665558, 0.06914488226175308, 0.13963699340820312, 0.279181569814682, 0.057567887008190155, -0.27017533779144287, -0.39848190546035767, 0.049399927258491516, 0.23472154140472412, -0.3226420283317566, 0.020303769037127495, -0.30221399664878845, -0.06692473590373993, -0.033975157886743546, -0.1841365396976471, -0.17921391129493713, -0.49881795048713684, 0.01776464283466339, 0.17335285246372223, -0.03627326712012291, 0.22547779977321625, -0.08869237452745438, 0.03826013207435608, 0.15818063914775848, -0.23425815999507904, -0.0838010385632515, -0.22351126372814178, -0.08587931096553802, 0.20162507891654968, 0.12259283661842346, 0.12752367556095123, 0.4814586937427521, -0.3473609387874603, -0.07640920579433441, -0.3007549047470093, -0.2729540765285492, 0.10808733105659485, -0.10794137418270111, 0.5393435955047607, 0.16909390687942505, 0.1429465115070343, -0.18914681673049927, 0.08378271758556366, 0.2729695737361908, -0.28412866592407227, -0.03614528477191925, 0.11399264633655548, -0.006927769631147385, -0.12470152229070663, -0.005945611745119095, -0.28540003299713135, -0.25941553711891174, -0.5138936638832092, -0.11649163067340851, 0.03666308894753456, 0.08556075394153595, 0.2803024351596832, 0.11718091368675232, 0.2591087520122528, 0.09507972747087479, 0.1597634255886078, -0.15738722681999207, -0.27479293942451477, 0.2889832854270935, -0.26695722341537476, -0.48399439454078674, 0.25239238142967224, -0.04362376034259796, 0.24882712960243225, 0.01837388426065445, -0.2916949987411499, -0.3475373387336731, -0.0735732913017273, 0.45987457036972046, -0.014695070683956146, 0.13947586715221405, 0.2242240458726883, 0.10214115679264069, -0.24868550896644592, -0.15036125481128693, -0.19366644322872162, -0.24385538697242737, 0.26907989382743835, 0.042966388165950775, -0.06959330290555954, 0.47313472628593445, 0.12930293381214142, 0.5410222411155701, 0.20289194583892822, 0.13372664153575897, 0.35517802834510803, -0.31330400705337524, 0.4701171815395355, -0.013746023178100586, -0.46321478486061096, -0.2093193084001541, -0.15662017464637756, -0.21966010332107544, 0.183984637260437, -0.12190160900354385, 0.008344369009137154, -0.20083265006542206, 0.03130766376852989, -0.31268855929374695, -0.2886299192905426, -0.10992714762687683, -0.037807397544384, 0.29879269003868103, 0.12471812963485718, -0.007797412574291229, -0.1730637401342392, 0.07662943750619888, 0.08026085793972015, 0.3518165946006775, -0.3658193349838257, -0.20556005835533142, -0.09201991558074951, 0.03919636085629463, -0.5612565279006958, 0.314252644777298, -0.037631455808877945, 0.30101674795150757, -0.16952979564666748, 0.046606019139289856, -0.02107089012861252, -0.13673323392868042, 0.1865983009338379, -0.27073758840560913, -0.06102650612592697, 0.3763122856616974, -0.03752083703875542, -0.28346121311187744, 0.031695280224084854, -0.3035864531993866, -0.08721397072076797, 0.5882405638694763, 0.14968261122703552, -0.2319241762161255, 0.08439204841852188, 0.17987705767154694, 0.23015131056308746, -0.048572149127721786, -0.030698206275701523, -0.35785749554634094, -0.6081139445304871, -0.4169081747531891, -0.031758084893226624, 0.19469013810157776, 0.1478217989206314, 0.03667762130498886, -0.12188416719436646, -0.08149226754903793, -0.26426225900650024, 0.1014241874217987, 0.29876241087913513, 0.015271216630935669, 0.05144568160176277, 0.3791188895702362, -0.05459863692522049, -0.30852681398391724, 0.4553205072879791, 0.5644431114196777, 0.09358738362789154, -0.3636802136898041, -0.03503716364502907, -0.029774390161037445, 0.14752617478370667, 0.1547469049692154, -0.1215578243136406, 0.015369802713394165, 0.025663476437330246, 0.15828441083431244, 0.3126124441623688, 0.09274529665708542, 0.34124118089675903, -0.02118869125843048, -0.10412921756505966, -0.16989345848560333, 0.11319294571876526, 0.12801137566566467, 0.0611298531293869, 0.28484445810317993, -0.23907284438610077, 0.012300672940909863, 0.01899704895913601, 0.047719065099954605, 0.6743597984313965, -0.005851581692695618, -0.13357357680797577, 0.34970220923423767, -0.24423041939735413, 0.23129084706306458, -0.0070455484092235565, 0.14582864940166473, -0.3999640941619873, -0.41803303360939026, -0.011390132829546928, -0.14084772765636444, 0.3766777217388153, 0.018119879066944122, -0.27494996786117554, 0.23372603952884674, 0.05670839548110962, 0.16945435106754303, 0.0048251464031636715, -0.08591441810131073, -0.19948209822177887, -0.2102620005607605, -0.342475950717926, 0.2780534029006958, 0.030498098582029343, 0.10023142397403717, -0.2302432358264923, -0.07565075159072876, -0.0022717565298080444, -0.11455418169498444, -0.22085601091384888, -0.043064266443252563, -0.39075323939323425, 0.13655927777290344, 0.15413594245910645, -0.17984023690223694, 0.012881502509117126, -0.006883520632982254, 0.10351946204900742, 0.07395150512456894, -0.1130792498588562, 0.14917130768299103, 0.13117623329162598, 0.025196971371769905, 0.14567668735980988, -0.1355881243944168, 0.36130762100219727, -0.1701892912387848, -0.10812743008136749, 0.29565420746803284, -0.028227094560861588, -0.14451369643211365, 0.15492862462997437, 0.3218531012535095, 0.04843573644757271, -0.09872973710298538, -0.02497156150639057, 0.07267212867736816, 0.2177841067314148, -0.43248212337493896, 0.2274700105190277, 0.10982124507427216, 0.02800760045647621, 0.4482872188091278, -0.2745154798030853, -0.07572869211435318, -0.16928406059741974, 0.27806249260902405, -0.09780385345220566, -0.06835336238145828, 0.26357173919677734, 0.33503684401512146, -0.21407446265220642, -0.2988038659095764, 0.30231332778930664, -0.27148857712745667, -0.11594264954328537, 0.2750825583934784, -0.12192089110612869, -0.006842374801635742, 0.17697584629058838, 0.5146291851997375, 0.06726457923650742, -0.14764979481697083, -0.1188538670539856, -0.29264622926712036, -0.33432942628860474, 0.08661303669214249, 0.05719582736492157, 0.0675613209605217, 0.17114877700805664, 0.27972540259361267, 0.09783041477203369, 0.03378227353096008, -0.4624917805194855, 0.014688064344227314, -0.4128836691379547, 0.047485485672950745, 0.2357286512851715, -0.09743823856115341, 0.1013837680220604, 0.024406664073467255, 0.17997154593467712, 0.10522422939538956, -0.13375996053218842, -0.3522091805934906, -0.03364076465368271, 0.08780449628829956, -0.00394325889647007, 0.021702148020267487, 0.041219379752874374, -0.19636163115501404, -0.2757992744445801, -0.12500374019145966, 0.09607289731502533, 0.07128255814313889, -0.10347908735275269, -0.06183542311191559, 0.1638186275959015, 0.04170486330986023, -0.1251419186592102, 0.09653420746326447, 0.048058491200208664, 0.12411171197891235, -0.09323923289775848, 0.0561797209084034, 0.09663483500480652, -0.053085602819919586, -0.0538894347846508, 0.11238238215446472, 0.08030930161476135, -0.08464504033327103, 0.40364769101142883, -0.29340243339538574, -0.08378869295120239, 0.238885298371315, 0.4376213550567627, 0.2970939576625824, -0.10429830104112625, -0.13265348970890045, 0.13179898262023926, 0.2998233139514923, -0.4269775450229645, -0.07977689057588577, 0.2276550680398941, 0.031215623021125793, 0.28949669003486633, 0.1620596945285797, 0.009171050041913986, 0.08038471639156342, 0.11028514057397842, 0.2927855849266052, 0.37493404746055603, -0.2685064673423767, 0.008950055576860905, 0.05423354730010033, 0.06610357761383057, 0.16208180785179138, 0.3600088953971863, 0.11127543449401855, 0.17886483669281006, 0.4138867259025574, -0.018664173781871796, 0.1593804508447647, 0.06331376731395721, -0.11021073162555695, 0.07847408205270767, -0.4868060350418091, 0.37607771158218384, -0.07239313423633575, 0.10603868216276169, -0.17306071519851685, 0.02268793433904648, 0.09556805342435837, -0.28486260771751404, 0.13318999111652374, -0.21750196814537048, 0.3178301751613617, -0.16959607601165771, 0.20800583064556122, 0.21582841873168945, 0.047075919806957245, -0.004189163446426392, -0.06853855401277542, 0.1173425018787384, 0.09520222991704941, 0.3830111622810364, 0.11519597470760345, 0.023484133183956146, -0.571871817111969, -0.19430488348007202, 0.14024195075035095, -0.05002007633447647, -0.34236690402030945, 0.06596595048904419, 0.014821268618106842, -0.06839077174663544, -0.20425420999526978, 0.45180466771125793, 0.4655424654483795, 0.1875557154417038, -0.02174672856926918, -0.05372234433889389, -0.06947273015975952, -0.14148372411727905, -0.15467588603496552, 0.12118896096944809, -0.08256475627422333, 0.20945614576339722, 0.33940839767456055, 0.25141653418540955, -0.32594239711761475, -0.16451573371887207, 0.1148010641336441, -0.1634511947631836, -0.38440239429473877, 0.29550763964653015, -0.14099617302417755, -0.16078200936317444, -0.15958741307258606, -0.030832454562187195, -0.31143730878829956, 0.05269547924399376, 0.4397561252117157, -0.2856866419315338, 0.03535731881856918, -0.24007856845855713, 0.16592338681221008, -0.07640813291072845, 0.34349769353866577, 0.3479083776473999, 0.09468446671962738, -0.3236084580421448, -0.16090893745422363, -0.8212372064590454, 0.2509792149066925, -0.1219768077135086, -0.23373669385910034, 0.03544371947646141, 0.24889783561229706, 0.054354339838027954, 0.3188175559043884, 0.3575401306152344, 0.0408061221241951, -0.003281467594206333, 0.12756291031837463, -0.3231610953807831, -0.21398283541202545, -0.07536755502223969, -0.2632592022418976, -0.0036478321999311447, -0.30584415793418884, 0.17100489139556885, -0.2677232623100281, 0.19703179597854614, -0.21129533648490906, -0.4058314561843872, 0.21468615531921387, -0.05972757190465927, 0.4275777041912079, 0.06558320671319962, 0.3013675808906555, -0.21611449122428894, -0.054365821182727814, -0.1791130155324936, -0.34561434388160706, -0.14447686076164246, 0.22129595279693604, 0.10740101337432861, 0.2834342420101166, -0.05568446218967438, -0.16342855989933014, -0.10558462142944336, 0.18162104487419128, 0.18367783725261688, 0.04896580055356026, -0.03273288905620575, 0.277543306350708, -0.013112567365169525, 0.23474706709384918, -0.05518454313278198, 0.23314571380615234, 0.006492529064416885, 0.36845025420188904, -0.40018272399902344, -0.5349053740501404, 0.29978930950164795, -0.3270007073879242, -0.40988901257514954, -0.3604012727737427, 0.2793199121952057, 0.013263814151287079, -0.16240088641643524, -0.12395152449607849, 0.033841319382190704, 0.2871498465538025, 0.06945134699344635, -0.18813259899616241, 0.44146791100502014, -0.01991720125079155, 0.046863894909620285, 0.008270736783742905, 0.20544491708278656, 0.04058195650577545, -0.20558351278305054, 0.11345455050468445, 0.020057618618011475 ]
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.508149266242981, -0.3373531103134155, -0.11027917265892029, -0.014029622077941895, 0.033048126846551895, 0.07413797825574875, 0.07430817186832428, 0.48546546697616577, -0.06634521484375, 0.12954017519950867, -0.26761770248413086, 0.2315489500761032, -0.051412858068943024, 0.5110139846801758, 0.03020719811320305, -0.32583707571029663, 0.12861603498458862, 0.09241428226232529, -0.3972893953323364, 0.20399050414562225, 0.015694528818130493, 0.13198040425777435, -0.27985572814941406, -0.36202919483184814, -0.35139766335487366, 0.3136511743068695, -0.05598297715187073, 0.04347701370716095, -0.19322076439857483, -0.16841566562652588, -0.08655893057584763, 0.12416426837444305, -0.000570555217564106, 0.5355132222175598, -0.00011480475222924724, -0.04356762021780014, 0.5377906560897827, 0.0555119514465332, -0.12309077382087708, 0.05207579582929611, -0.4317379891872406, -0.042041413486003876, -0.08819853514432907, 0.15871495008468628, -0.22716546058654785, 0.1198294460773468, -0.10763318836688995, -0.1590537577867508, 0.37430405616760254, 0.09401705116033554, 0.0899583250284195, 0.10130579024553299, 0.07522588968276978, -0.22771838307380676, 0.032701775431632996, 0.04079272598028183, -0.07557500153779984, -0.06728853285312653, 0.16259393095970154, 0.053377486765384674, 0.17020826041698456, 0.2050909399986267, 0.3278662860393524, -0.2385348230600357, 0.05297867953777313, -0.07819916307926178, -0.21639686822891235, -0.3731326460838318, -0.030013956129550934, 0.2754044830799103, 0.41717249155044556, 0.180623859167099, -0.32775989174842834, 0.09249747544527054, -0.013237281702458858, -0.4786670207977295, 0.09487539529800415, 0.07550448924303055, -0.1146729588508606, 0.13166114687919617, -0.5122501254081726, -0.20178662240505219, -0.20650282502174377, 0.25244465470314026, -0.11535412818193436, 0.6995693445205688, 0.10643895715475082, -0.025995753705501556, 0.5007662177085876, 0.009583214297890663, 0.15989065170288086, -0.0029398463666439056, -0.25090888142585754, 0.09683821350336075, -0.37484991550445557, -0.10227873921394348, -0.43040210008621216, -0.06137222796678543, 0.00119684636592865, 0.1479562371969223, -0.05239994078874588, 0.059487514197826385, 0.13864345848560333, 0.10044179856777191, 0.40261974930763245, -0.11574077606201172, -0.07507345825433731, 0.25159400701522827, 0.2232341319322586, 0.11672784388065338, 0.27114206552505493, -0.03399430215358734, 0.06285286694765091, -0.2844313979148865, -0.48577770590782166, 0.006191380321979523, -0.09982050210237503, -0.13384240865707397, -0.15902939438819885, -0.3384344279766083, -0.14558829367160797, -0.02866995334625244, 0.09670514613389969, 0.08552169799804688, -0.2533051073551178, 0.11408399045467377, -0.10452726483345032, 0.29691582918167114, 0.02166956104338169, -0.3427954912185669, -0.13877923786640167, -0.014582451432943344, -0.2554703652858734, -0.08181233704090118, 0.2565934658050537, -0.26587870717048645, 0.15016582608222961, 0.3329010307788849, 0.28616786003112793, 0.26121068000793457, -0.21944838762283325, 0.0029602665454149246, 0.09761489927768707, 0.3461611270904541, 0.23329582810401917, -0.21646246314048767, -0.1802341639995575, 0.26453518867492676, 0.31136566400527954, -0.01131775975227356, 0.022350527346134186, -0.43725553154945374, -0.0999167412519455, 0.19216784834861755, 0.010141227394342422, -0.1386025995016098, -0.19208300113677979, 0.5086079835891724, 0.06771428883075714, -0.1515934020280838, -0.19039958715438843, -0.004079945385456085, 0.09676103293895721, -0.11162319779396057, 0.39064785838127136, -0.02873067557811737, -0.4876489043235779, -0.05726940929889679, -0.1783781498670578, -0.12546782195568085, 0.28666722774505615, 0.38305947184562683, -0.2684172987937927, -0.31051310896873474, 0.011700768023729324, 0.22969968616962433, 0.2801137864589691, 0.035615455359220505, -0.16201108694076538, 0.23579783737659454, 0.14932110905647278, -0.05529250204563141, 0.26903608441352844, -0.15444448590278625, 0.1483687162399292, -0.02331547997891903, 0.19643184542655945, 0.5279392004013062, -0.14718981087207794, -0.33208349347114563, -0.2287953644990921, -0.04438774287700653, 0.2529410719871521, 0.24395669996738434, 0.3917979300022125, -0.2100868821144104, 0.1873398721218109, 0.1677795797586441, 0.17891055345535278, -0.18803083896636963, 0.12672629952430725, -0.028444774448871613, 0.18994580209255219, -0.06456440687179565, 0.07346148788928986, -0.2169765830039978, -0.21153739094734192, -0.04375534504652023, -0.052496958523988724, -0.05641541630029678, 0.5228708386421204, -0.1800917685031891, 0.013832014054059982, -0.34558460116386414, -0.1949625164270401, -0.09301526844501495, 0.10025802254676819, -0.13184711337089539, 0.041637059301137924, -0.32529157400131226, -0.39059484004974365, 0.054520271718502045, -0.06383955478668213, 0.06766319274902344, -0.08787637948989868, 0.42467188835144043, -0.19910463690757751, -0.23034439980983734, -0.007940948009490967, 0.2666894197463989, 0.1580342948436737, -0.09201378375291824, -0.044987790286540985, 0.60523921251297, 0.02400210313498974, 0.3310447633266449, -0.1366337537765503, 0.006403535604476929, 0.4401603937149048, -0.21972912549972534, -0.07471173256635666, 0.3792753219604492, -0.09112004935741425, -0.17782887816429138, -0.3126193583011627, 0.09089493751525879, -0.3767000436782837, 0.07437671720981598, 0.19437141716480255, 0.09169290959835052, 0.08335094153881073, 0.019016046077013016, -0.26930004358291626, -0.12216005474328995, 0.10342326760292053, -0.574957549571991, 0.03160532936453819, -0.17163772881031036, -0.31431615352630615, 0.1330597698688507, 0.269628643989563, 0.08539216220378876, -0.14476922154426575, -0.2021973431110382, -0.1466708481311798, -0.06765171885490417, 0.050508491694927216, 0.28404656052589417, 0.49194657802581787, 0.20359985530376434, 0.2562604546546936, 0.281430184841156, -0.02784660831093788, -0.2152469903230667, 0.3708745241165161, 0.058285847306251526, 0.09248796105384827, 0.33297935128211975, -0.06735403835773468, -0.13763639330863953, -0.16392090916633606, 0.1609383225440979, 0.2921341061592102, -0.10121212899684906, -0.16809126734733582, -0.19607536494731903, -0.44042161107063293, -0.34013843536376953, -0.143661767244339, -0.2690729796886444, -0.13940806686878204, -0.49522873759269714, 0.09709496796131134, 0.24883781373500824, -0.16843053698539734, 0.10952593386173248, 0.07562868297100067, 0.011213481426239014, -0.11200541257858276, 0.2869212329387665, -0.08902901411056519, 0.14821042120456696, -0.035377174615859985, 0.18448179960250854, 0.17460909485816956, 0.017083335667848587, 0.11132362484931946, 0.12222643941640854, -0.14549562335014343, -0.2003292441368103, -0.532554566860199, 0.11812645941972733, -0.17425139248371124, -0.04864285886287689, 0.20686636865139008, -0.1350507289171219, 0.20300838351249695, -0.5070754885673523, -0.02508234977722168, -0.11798287183046341, -0.07276830077171326, -0.08965111523866653, -0.05034707486629486, -0.11969732493162155, -0.4618368148803711, -0.63624507188797, -0.24906517565250397, -0.5404442548751831, 0.2634395956993103, -0.25547969341278076, -0.11217394471168518, 0.10658799111843109, 0.03268929198384285, -0.11797244846820831, -0.0065718344412744045, -0.4299367666244507, -0.28923627734184265, -0.058936480432748795, 0.4022925794124603, -0.4461692273616791, -0.3850892186164856, 0.09212340414524078, 0.10727022588253021, 0.24934741854667664, 0.20305946469306946, 0.08088375627994537, 0.34554368257522583, -0.029685841873288155, 0.08704227209091187, -0.07785487920045853, -0.0007339175790548325, 0.26983869075775146, -0.16817958652973175, 0.044282056391239166, -0.19134560227394104, 0.14169126749038696, 0.02980039268732071, 0.3293229341506958, 0.5940423011779785, -0.09227316081523895, 0.2602940499782562, 0.1720612645149231, 0.8503625988960266, 0.22137217223644257, 0.033861834555864334, 0.02652585878968239, 0.10104823112487793, 0.2220972627401352, -0.10885623842477798, -0.21997356414794922, 0.2636597156524658, -0.16209441423416138, 0.06020484119653702, 0.0874202698469162, 0.02361989952623844, -0.4355468153953552, -0.2725834250450134, 0.22029227018356323, -0.05004057660698891, 0.004869300872087479, -0.026752090081572533, -0.2231227457523346, 0.10306356847286224, 0.043737564235925674, 0.01808224618434906, 0.36887437105178833, -0.016426347196102142, 0.04510732740163803, 0.1667734533548355, 0.27428707480430603, 0.10195368528366089, -0.3018222749233246, -0.19537678360939026, -0.1486053168773651, 0.028565526008605957, 0.00797280389815569, 0.13425354659557343, -0.23353852331638336, -0.15235315263271332, -0.062250807881355286, -0.033344510942697525, 0.7309003472328186, -0.4700443744659424, -0.18622614443302155, 0.08933968842029572, -0.03167359530925751, 0.07845768332481384, -0.3002665638923645, -0.1464816927909851, 0.06061238795518875, 0.518165647983551, 0.33134448528289795, -0.20258796215057373, -0.008571084588766098, 0.47262439131736755, -0.11993815004825592, 0.042933519929647446, -0.26712706685066223, -0.16365689039230347, 0.2226848602294922, -0.254106342792511, -0.1159055158495903, 0.3159099221229553, 0.09110766649246216, -0.5133222937583923, -0.16976171731948853, 0.14805394411087036, -0.3351941406726837, 0.14504441618919373, 0.17143923044204712, 0.3846229612827301, -0.08066684007644653, 0.1510409563779831, 0.2846958637237549, -0.01705477386713028, 0.358270525932312, 0.3160246014595032, 0.41305258870124817, -0.3127906918525696, 0.2898927927017212, -0.29520320892333984, 0.6024835109710693, 0.19732563197612762, 0.02688305452466011, -0.006117962300777435, 0.17744721472263336, -0.001297295093536377, 0.08335307985544205, 0.24812714755535126, 0.2944796085357666, -0.07538461685180664, -0.2934325635433197, -0.24796220660209656, 0.24370500445365906, 0.09676338732242584, 0.15705148875713348, 0.36657020449638367, -0.008096277713775635, -0.22026744484901428, -0.18020883202552795, -0.09314408153295517, 0.8311529755592346, 0.3514555096626282, -0.05112122371792793, 0.08222344517707825, -0.3420524001121521, 0.11453498154878616, -0.24107590317726135, 0.3490499258041382, -0.049959730356931686, -0.1900232434272766, -0.09965156763792038, -0.06617679446935654, 0.23650112748146057, -0.12069208920001984, -0.5448083877563477, 0.3441716134548187, -0.2958671450614929, 0.4792373478412628, -0.11601461470127106, 0.1826070249080658, -0.15226921439170837, -0.14421285688877106, -0.24760913848876953, 0.11511345207691193, 0.0034284554421901703, -0.07587435841560364, -0.06510747969150543, -0.29123830795288086, 0.1567966490983963, 0.06516323983669281, -0.22077137231826782, 0.36436474323272705, 0.07780708372592926, 0.18722715973854065, -0.08204258978366852, -0.10570722818374634, 0.0941794365644455, 0.16242851316928864, 0.10932925343513489, 0.10219255089759827, -0.2916800379753113, 0.2685703635215759, -0.11990196257829666, -0.07047370821237564, -0.35296905040740967, -0.018266569823026657, 0.10418456792831421, -0.3264846205711365, -0.20809492468833923, 0.21078285574913025, 0.11269068717956543, -0.5092004537582397, -0.25218498706817627, -0.06729015707969666, 0.031798191368579865, -0.028109589591622353, 0.05209055170416832, 0.26793110370635986, -0.1196015328168869, -0.32138052582740784, 0.11052626371383667, -0.18612687289714813, -0.43570002913475037, 0.13945302367210388, 0.18809276819229126, 0.0779348611831665, -0.2295379489660263, 0.399130254983902, 0.01671447418630123, -0.17747004330158234, 0.33032000064849854, 0.1787615567445755, -0.08334625512361526, -0.16436892747879028, -0.2420060932636261, 0.20209045708179474, -0.07763778418302536, 0.12370725721120834, -0.2825092673301697, -0.21115674078464508, 0.29830068349838257, 0.11038701236248016, 0.01540113054215908, 0.13665275275707245, -0.19319450855255127, -0.18652772903442383, -0.16534125804901123, 0.260104238986969, -0.28423258662223816, 0.33029088377952576, -0.1422855406999588, 0.4343198835849762, 0.07367664575576782, 0.2044568657875061, -0.2684248685836792, -0.002595040015876293, 0.11887723952531815, 0.15532244741916656, -0.2260899841785431, -0.35810941457748413, 0.011079235002398491, -0.07399114966392517, 0.04279737174510956, 0.24394872784614563, -0.1716931015253067, -0.1312970668077469, -0.030047785490751266, 0.09001477062702179, 0.31756192445755005, 0.031015127897262573, -0.11195208132266998, 0.0074072591960430145, -0.46204644441604614, 0.16751770675182343, 0.2413918375968933, -0.1604737937450409, 0.07318082451820374, 0.04648362472653389, 0.769467294216156, 0.0026702880859375, 0.07632135599851608, -0.07619919627904892, 0.17114588618278503, 0.14866019785404205, -0.004456364084035158, 0.08597691357135773, 0.16570882499217987, -0.1427558809518814, -0.011471974663436413, -0.006431981921195984, 0.35358530282974243, 0.08946892619132996, 0.35572105646133423, -0.30323106050491333, -0.04991648346185684, -0.34948161244392395, 0.44373801350593567, 0.4431470036506653, 0.11196306347846985, 0.05140332877635956, 0.017768722027540207, 0.1722627580165863, -0.15171176195144653, -0.12660127878189087, -0.162686288356781, 0.22346903383731842, -0.03183746710419655, -0.015460960566997528, 0.38829755783081055, 0.13654004037380219, -0.04524266719818115, 0.3940407931804657, -0.1873166561126709, -0.10820573568344116, 0.6243632435798645, 0.4589970111846924, -0.2730153799057007, 0.07983962446451187, -0.05182521790266037, -0.17127318680286407, -0.11285348981618881, 0.04830879345536232, -0.187771737575531, 0.3462691605091095, 0.4000028967857361, -0.06848391890525818, 0.5021160840988159, -0.029122184962034225, -0.4155100882053375, -0.13500452041625977, -0.144789457321167, 0.3166700601577759, 0.20443865656852722, 0.3156455159187317, -0.246244415640831, -0.48996859788894653, -0.24482406675815582, -0.023058492690324783, -0.024544648826122284, -0.020268647000193596, -0.1529139280319214, -0.2530762851238251, -0.18954886496067047, 0.17066948115825653, 0.19911238551139832, 0.1580582559108734, 0.6029374599456787, 0.0041991472244262695, 0.07937927544116974, -0.216099813580513, 0.2362808883190155, 0.3822195827960968, 0.3558262884616852, -0.14524421095848083, 0.007642675191164017, 0.3794401288032532, -0.2650624215602875, 0.35234272480010986, 0.17057694494724274, 0.4073837697505951, 0.23439839482307434, -0.17957447469234467, 0.01254208479076624, 0.1997923105955124, -0.2044629603624344, 0.17898042500019073, 0.2393648624420166, 0.5440568923950195, -0.15175031125545502, 0.1934887170791626, 0.09242475032806396, -0.08804142475128174, 0.25421884655952454, -0.2827867567539215, 0.3401779234409332, -0.3977621793746948, 0.3002810478210449, 0.15731121599674225, 0.015210554003715515, 0.11062560975551605, -0.06875371187925339, -0.4797084331512451, -0.27040866017341614, 0.3754623234272003, 0.000800164183601737, -0.09352507442235947, -0.15604829788208008, 0.07440861314535141, 0.2217358648777008, 0.6444832682609558, 0.032845377922058105, -0.10677246004343033, -0.07117532938718796, -0.20700588822364807, -0.3353724479675293, -0.22070014476776123, 0.0591466911137104, 0.38609254360198975, -0.10266480594873428, 0.2361462563276291, 0.07163479924201965, 0.2721896469593048, 0.3447858691215515, -0.175882026553154, 0.29584112763404846, -0.0070236846804618835, -0.3321445882320404, 0.036543071269989014, 0.18798169493675232, 0.1128578782081604, 0.0031113624572753906, -0.052203912287950516, 0.2949276864528656, 0.03241826221346855, -0.018755361437797546, 0.13242243230342865, -0.0701427236199379, 0.2797320485115051, 0.11218792200088501, -0.22364625334739685, 0.21787656843662262, 0.36565205454826355, -0.0962725356221199, -0.07680805772542953, -0.26997125148773193, -0.1720232367515564, -0.45059967041015625, -0.07229714840650558, 0.052668340504169464, 0.4325375258922577, -0.08005499839782715, -0.18024702370166779, -0.12981410324573517, 0.4174412190914154, 0.013185814023017883, -0.0718953013420105, -0.17700283229351044, -0.13223910331726074, -0.035918042063713074, 0.05190562456846237, 0.30329015851020813, 0.4208351969718933, -0.22037699818611145, -0.19172528386116028, -0.07384555786848068, -0.34311047196388245, 0.4673777222633362, -0.29233142733573914, -0.23839302361011505, -0.4524570107460022, -0.16547775268554688, 0.6991715431213379, 0.23404768109321594, -0.631912350654602, -0.29527634382247925, -0.008874327875673771, -0.3797503113746643, 0.23107179999351501, 0.5059240460395813, 0.2337811291217804, -0.12361767888069153, -0.18092003464698792, -0.03464023768901825, 0.4153895080089569, -0.18837888538837433, 0.03530603274703026, -0.29048800468444824 ]
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.4603261947631836, -0.21482723951339722, -0.024375155568122864, 0.26821368932724, 0.13541258871555328, 0.051994286477565765, 0.4973770081996918, -0.10748469829559326, 0.19837096333503723, 0.08495311439037323, -0.3266311287879944, 0.4753236174583435, -0.17426998913288116, 0.14874869585037231, -0.2584463059902191, 0.0984698161482811, -0.06618600338697433, 0.05820343643426895, -0.29070377349853516, 0.09561516344547272, 0.020291589200496674, 0.33088865876197815, -0.6335689425468445, -0.3468567132949829, -0.5786890983581543, -0.21004125475883484, -0.027741465717554092, 0.1687910556793213, -0.2702192962169647, -0.29201188683509827, 0.34782305359840393, 0.17705842852592468, 0.09218983352184296, 0.5697172284126282, -0.00011724024079740047, 0.071513831615448, 0.39330965280532837, -0.07875339686870575, -0.24568915367126465, -0.39187127351760864, -0.3461526036262512, -0.32919514179229736, 0.36862221360206604, -0.10739286243915558, 0.1058262512087822, 0.4041653275489807, -0.1357310265302658, -0.1332755982875824, 0.2626950144767761, 0.13527971506118774, 0.19363439083099365, 0.5491981506347656, 0.16306062042713165, -0.19249211251735687, -0.112586610019207, -0.19337718188762665, -0.20208260416984558, 0.7461526393890381, 0.4174172282218933, 0.016857216134667397, -0.05102520436048508, 0.260494589805603, -0.09926759451627731, 0.28908771276474, 0.1862415373325348, -0.03342142701148987, 0.10510128736495972, -0.48058244585990906, 0.10063742846250534, 0.1743774265050888, 0.4806714653968811, -0.23342707753181458, 0.04439101368188858, -0.12202340364456177, 0.20947349071502686, -0.29246780276298523, 0.26190072298049927, -0.09856943041086197, -0.21185947954654694, 0.049008019268512726, -0.02269648015499115, -0.08961708843708038, -0.012308187782764435, 0.0164375938475132, -0.09338505566120148, 0.3655080497264862, -0.14300742745399475, -0.11182595044374466, 0.06986599415540695, -0.10964182019233704, 0.5018091201782227, -0.016182418912649155, -0.026868749409914017, 0.20632801949977875, -0.46800071001052856, -0.009329862892627716, -0.09887120872735977, -0.14084962010383606, -0.05169881135225296, -0.101495161652565, -0.03618770092725754, 0.017466964200139046, -0.11100838333368301, 0.30348390340805054, 0.1848021298646927, 0.14225013554096222, 0.03475920483469963, 0.018299318850040436, 0.12265371531248093, 0.28642842173576355, -0.20076322555541992, 0.22739505767822266, -0.2592831254005432, -0.3118799924850464, 0.18450964987277985, -0.029213808476924896, 0.2715786099433899, -0.003710556775331497, -0.3190620243549347, -0.18184518814086914, 0.009568311274051666, 0.10504192113876343, 0.044623006135225296, 0.3990536034107208, 0.05579536780714989, 0.10570748150348663, -0.03462187945842743, 0.0016943030059337616, -0.3566536009311676, -0.2394375503063202, -0.053845297545194626, 0.19369657337665558, -0.06428003311157227, -0.11529896408319473, 0.06780320405960083, -0.1549988090991974, 0.260187029838562, -0.012420693412423134, 0.30920425057411194, -0.05996089428663254, 0.10367490351200104, -0.30253922939300537, -0.06064548343420029, 0.33190855383872986, 0.1287347972393036, 0.08720263093709946, -0.06231299415230751, -0.20557771623134613, -0.07788833975791931, 0.23551705479621887, -0.47706204652786255, -0.14423641562461853, -0.024315720424056053, 0.14294669032096863, -0.13391470909118652, -0.22443091869354248, -0.5850229859352112, 0.16483381390571594, 0.14476317167282104, -0.08128141611814499, -0.08496227115392685, -0.30628329515457153, -0.23307207226753235, -0.15358301997184753, 0.12368910759687424, 0.44828277826309204, -0.230927973985672, -0.14231464266777039, -0.2176900953054428, 0.12052683532238007, 0.12727144360542297, 0.2348233312368393, -0.20215444266796112, 0.1736098825931549, -0.09626368433237076, -0.11714153736829758, 0.49064862728118896, -0.4326359033584595, -0.46712425351142883, -0.020347552374005318, -0.26607608795166016, -0.005254989489912987, -0.08970627933740616, 0.04857945442199707, 0.35772332549095154, -0.0669405460357666, 0.5458381175994873, 0.26293760538101196, -0.13903236389160156, -0.03660433739423752, -0.1640910506248474, -0.40990614891052246, 0.129425048828125, 0.04181985929608345, 0.1834629327058792, -0.21777135133743286, 0.20303262770175934, -0.05337478965520859, 0.10123809427022934, 0.18599453568458557, -0.12113004177808762, 0.38433337211608887, 0.2429012954235077, -0.2223786860704422, 0.03727400675415993, -0.18595775961875916, -0.4775201678276062, 0.22404831647872925, 0.40929317474365234, 0.07997104525566101, -0.06749936938285828, 0.05132478475570679, -0.43819695711135864, 0.0791066437959671, -0.25944483280181885, 0.06764287501573563, 0.09941282868385315, -0.06667003035545349, -0.1751299351453781, 0.08892688155174255, -0.2604826092720032, 0.7403798699378967, 0.03770691156387329, 0.21759319305419922, -0.31834158301353455, 0.21578845381736755, -0.185904398560524, -0.30818042159080505, 0.17629240453243256, 0.13617098331451416, 0.07532516866922379, -0.09227313101291656, -0.23890826106071472, 0.14212170243263245, 0.2554137706756592, 0.17134174704551697, 0.06189180910587311, -0.27765583992004395, 0.4123670160770416, -0.2740117311477661, 0.0123243797570467, -0.10668379068374634, 0.20857034623622894, 0.005822665989398956, 0.25511759519577026, 0.15657132863998413, -0.3707028329372406, -0.041073717176914215, -0.03051150217652321, 0.09053774923086166, 0.3726443946361542, 0.12399688363075256, -0.0050925202667713165, -0.18564948439598083, 0.32518327236175537, 0.2222953736782074, 0.192473366856575, 0.09374195337295532, -0.12973235547542572, 0.2881334722042084, 0.30617618560791016, 0.2452448010444641, 0.038779787719249725, -0.26856058835983276, -0.2554308772087097, 0.06336416304111481, 0.19228708744049072, 0.2518083453178406, 0.4446455240249634, 0.1803884208202362, 0.10491905361413956, 0.03163178265094757, 0.03184742107987404, -0.15611714124679565, 0.11512020975351334, 0.2919997572898865, 0.2558416426181793, 0.1311035454273224, 0.41208258271217346, 0.09674409031867981, -0.07899901270866394, -0.3894115686416626, 0.1753251701593399, 0.15031079947948456, -0.3317718803882599, 0.07662685960531235, -0.2146015763282776, -0.1139470562338829, -0.1419464349746704, -0.4253390431404114, -0.14645244181156158, -0.19783437252044678, -0.10580100119113922, 0.2810259163379669, 0.26506251096725464, 0.1936631053686142, -0.023994125425815582, 0.05001609027385712, 0.06250487267971039, -0.14248375594615936, -0.05581655725836754, -0.2506774961948395, -0.0925881490111351, 0.001515813171863556, 0.3277399241924286, 0.24681228399276733, 0.36850666999816895, -0.3038308620452881, -0.06956318020820618, 0.1436997652053833, -0.33209845423698425, 0.17634516954421997, -0.005681924521923065, 0.29198017716407776, -0.013443134725093842, -0.07797126471996307, -0.3206302523612976, -0.1939188688993454, 0.021536927670240402, -0.13462315499782562, -0.1827469766139984, 0.04727959632873535, -0.18002915382385254, -0.22977454960346222, -0.001990780234336853, -0.29268914461135864, -0.4344460070133209, -0.3998571038246155, -0.3682097792625427, 0.047247033566236496, -0.00890260934829712, 0.46030038595199585, -0.04271635785698891, 0.2933921813964844, 0.22506874799728394, 0.05083863437175751, 0.01793590746819973, -0.33309119939804077, 0.47338175773620605, -0.2865111827850342, -0.29365772008895874, 0.28012070059776306, -0.26804664731025696, 0.383608877658844, 0.01818273589015007, -0.11044345051050186, -0.21353133022785187, -0.02148006297647953, 0.3837369680404663, -0.10093994438648224, 0.04168296977877617, 0.08463618904352188, 0.11366260051727295, 0.07825879007577896, -0.0924062728881836, -0.18155242502689362, -0.20405012369155884, 0.21963191032409668, 0.1930782049894333, -0.16571488976478577, 0.2265985906124115, -0.0363360233604908, 0.8421140313148499, 0.07719995081424713, -0.04005073383450508, 0.3015676736831665, -0.061655908823013306, 0.30649134516716003, -0.10642503947019577, -0.5121486186981201, -0.06968443095684052, -0.10731104016304016, -0.03928337246179581, 0.0819719135761261, -0.18397611379623413, -0.11122237890958786, -0.28478556871414185, -0.2727971076965332, -0.3160196840763092, -0.2918527126312256, -0.11478537321090698, -0.20039106905460358, 0.1308547854423523, 0.1986786276102066, -0.06129222363233566, -0.1620076298713684, -0.11249642819166183, 0.04898270219564438, 0.4355244040489197, -0.42080315947532654, -0.01861443743109703, 0.3795589506626129, -0.07285643368959427, -0.3464910387992859, 0.1986522525548935, 0.13178493082523346, 0.33032768964767456, 0.07662573456764221, 0.11820036917924881, 0.06014160439372063, -0.049325086176395416, 0.11224476993083954, 0.05919680744409561, -0.08000089228153229, 0.23661664128303528, -0.014693204313516617, -0.4012737274169922, -0.05774395167827606, -0.22556288540363312, 0.2240987867116928, 0.4793197214603424, 0.08615291863679886, -0.26678454875946045, 0.2115171253681183, 0.23633220791816711, 0.14127321541309357, -0.11422277987003326, -0.1485227793455124, -0.43875283002853394, -0.31343740224838257, -0.3784107267856598, -0.06004489213228226, 0.18504583835601807, 0.23917530477046967, 0.04166954755783081, -0.07086963206529617, -0.06402760744094849, -0.21697252988815308, 0.06104081869125366, 0.3596895635128021, 0.14828410744667053, 0.2704477310180664, 0.5801553130149841, 0.12715156376361847, -0.24735891819000244, 0.44701826572418213, 0.5865610837936401, 0.0028340592980384827, -0.5835179090499878, -0.027999404817819595, -0.17973938584327698, 0.2348884642124176, 0.1315189003944397, -0.07067302614450455, 0.016331374645233154, 0.05956534668803215, -0.13585135340690613, 0.38487479090690613, 0.38126644492149353, -0.0635414719581604, 0.12624821066856384, -0.4026651084423065, -0.12859098613262177, 0.09584838151931763, 0.0007425248622894287, 0.13769903779029846, 0.46016591787338257, -0.37963807582855225, -0.05982212722301483, 0.04709918051958084, -0.18435326218605042, 0.6863640546798706, -0.038188956677913666, -0.23901528120040894, 0.27325382828712463, -0.16150327026844025, 0.2652587890625, 0.11319082975387573, 0.18576081097126007, -0.27622339129447937, -0.3076208829879761, 0.09239345043897629, -0.22662188112735748, 0.19002646207809448, -0.1945817917585373, -0.35113221406936646, 0.2596142590045929, 0.056455522775650024, -0.1498304009437561, -0.01857663504779339, 0.04060542583465576, 0.0024130530655384064, -0.2937503457069397, -0.35251885652542114, 0.05176938325166702, -0.19053009152412415, 0.20617206394672394, -0.19724199175834656, -0.18334566056728363, -0.13894698023796082, -0.18653225898742676, -0.03310432285070419, -0.10903612524271011, -0.6445786356925964, 0.23709844052791595, 0.331447958946228, -0.30874407291412354, 0.20051701366901398, -0.11113806068897247, 0.09509916603565216, -0.029330428689718246, -0.17394958436489105, 0.12651289999485016, 0.19933393597602844, 0.016686126589775085, -0.11088885366916656, -0.1729525476694107, 0.41977205872535706, -0.08396558463573456, 0.005003355443477631, 0.05766690522432327, 0.0366227887570858, -0.02253437601029873, 0.4702345132827759, 0.3512614965438843, 0.36815720796585083, 0.15069279074668884, -0.0755765438079834, 0.18104708194732666, 0.26167428493499756, -0.19587774574756622, 0.07804243266582489, 0.10197475552558899, -0.15308482944965363, 0.25580713152885437, -0.10751378536224365, -0.10032512247562408, -0.0019220784306526184, 0.33977267146110535, 0.12967140972614288, -0.016099872067570686, 0.18322160840034485, 0.15517212450504303, -0.25584256649017334, -0.08447626233100891, 0.16883498430252075, -0.3087923228740692, -0.30041390657424927, 0.24127690494060516, -0.01991329714655876, 0.04912756383419037, 0.07449450343847275, 0.7340956330299377, 0.24561472237110138, -0.36856839060783386, -0.13207823038101196, -0.3772929310798645, -0.532602071762085, 0.14176955819129944, -0.12052443623542786, -0.09494303166866302, 0.2369503676891327, 0.38368919491767883, 0.12086799740791321, 0.1284111887216568, -0.22089064121246338, 0.10524002462625504, -0.1584770381450653, 0.15400409698486328, 0.2756504416465759, -0.09605134278535843, 0.037291642278432846, 0.08599011600017548, 0.004242096096277237, 0.15297813713550568, 0.06710018217563629, -0.22495436668395996, -0.11465848982334137, 0.13268038630485535, -0.10255377739667892, 0.04087069630622864, -0.1180262416601181, -0.15128540992736816, -0.23003512620925903, -0.1715022474527359, 0.15905165672302246, 0.03512432426214218, -0.08184225857257843, -0.13215582072734833, 0.2920050024986267, -0.09662965685129166, -0.21740175783634186, 0.40256673097610474, 0.11779451370239258, 0.08100748062133789, 0.07766655087471008, 0.16602984070777893, 0.1665424406528473, 0.1832786202430725, 0.01752975769340992, -0.22533944249153137, -0.09167061746120453, -0.17651286721229553, 0.09427857398986816, -0.332089364528656, -0.014022985473275185, 0.06999459117650986, -0.02750704064965248, 0.4203798174858093, -0.128956601023674, -0.20998479425907135, 0.04724186286330223, 0.08578092604875565, -0.3888078033924103, 0.031112665310502052, 0.3042639493942261, 0.15485861897468567, 0.175432488322258, 0.27228689193725586, 0.08177223801612854, 0.08188551664352417, 0.154409721493721, 0.3952523171901703, 0.24472272396087646, -0.02283744141459465, 0.2661111354827881, -0.20580080151557922, 0.08578258752822876, 0.23063425719738007, 0.23611019551753998, 0.11843210458755493, 0.03810544312000275, 0.1526695191860199, -0.15018275380134583, 0.29597920179367065, 0.14464405179023743, -0.1672733724117279, 0.236530601978302, -0.35960227251052856, 0.24245594441890717, -0.09867691993713379, 0.056907590478658676, -0.13632822036743164, 0.14178645610809326, 0.3276463747024536, -0.0491860955953598, -0.08844646066427231, -0.16085386276245117, -0.0030408762395381927, -0.30019035935401917, 0.27094078063964844, 0.463823139667511, -0.09763085097074509, -0.09312394261360168, -0.04317595064640045, 0.2145770937204361, 0.21752935647964478, 0.5374786853790283, 0.31591200828552246, -0.16689996421337128, -0.489629864692688, -0.12244034558534622, 0.5082059502601624, -0.12667304277420044, -0.18445323407649994, 0.46237364411354065, -0.1348707228899002, 0.010012004524469376, -0.16528092324733734, 0.3222160041332245, 0.48848477005958557, 0.30063140392303467, -0.13834859430789948, -0.2075253427028656, 0.25662702322006226, -0.18010574579238892, -0.13837358355522156, 0.21072137355804443, 0.05968470871448517, 0.2941666543483734, 0.2981707453727722, 0.08425383269786835, -0.16908782720565796, -0.03203669562935829, 0.22073021531105042, -0.3357614278793335, -0.44092005491256714, 0.20642870664596558, -0.15670649707317352, -0.0026589184999465942, -0.18978410959243774, 0.09799990057945251, -0.45638951659202576, 0.228825181722641, 0.31567293405532837, -0.22243843972682953, -0.06700214743614197, -0.14896313846111298, 0.04495946317911148, -0.03079943358898163, 0.36052775382995605, 0.24672430753707886, 0.3562099039554596, -0.20113036036491394, -0.10377411544322968, -0.8396953344345093, 0.31460127234458923, 0.03366610035300255, -0.011729884892702103, -0.03855240345001221, 0.1393253058195114, -0.0011319294571876526, 0.3212944269180298, 0.42011260986328125, 0.04542860388755798, 0.19012098014354706, 0.0372287854552269, -0.46201586723327637, -0.2717553377151489, 0.09004093706607819, -0.44547635316848755, 0.005056355148553848, -0.39179009199142456, -0.004098299890756607, -0.2824527323246002, -0.04146796092391014, -0.027398236095905304, -0.44652727246284485, 0.2701761722564697, 0.30223745107650757, 0.2959739863872528, -0.043755583465099335, 0.672249436378479, -0.053657323122024536, 0.09963686019182205, -0.06906487047672272, -0.31764477491378784, -0.02696423977613449, 0.15782961249351501, 0.3953222930431366, 0.21142929792404175, -0.24911025166511536, 0.07488315552473068, -0.12848514318466187, 0.13370411098003387, 0.13303139805793762, 0.012898829765617847, -0.2782156467437744, 0.06854169815778732, -0.16541364789009094, 0.40305227041244507, -0.13011346757411957, 0.18237262964248657, 0.0637911930680275, 0.270514577627182, -0.30365630984306335, -0.3571581244468689, 0.3911992311477661, -0.3434479832649231, -0.45859771966934204, -0.4276731014251709, 0.2904641032218933, 0.1598198413848877, -0.20495663583278656, -0.47420862317085266, 0.009304091334342957, 0.25498899817466736, -0.1533088982105255, -0.15550047159194946, 0.5398076772689819, 0.06995464116334915, 0.21426241099834442, -0.12199611961841583, 0.2098640501499176, 0.004663359373807907, -0.1189010739326477, -0.11650529503822327, -0.0643656998872757 ]
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.4603261947631836, -0.21482723951339722, -0.024375155568122864, 0.26821368932724, 0.13541258871555328, 0.051994286477565765, 0.4973770081996918, -0.10748469829559326, 0.19837096333503723, 0.08495311439037323, -0.3266311287879944, 0.4753236174583435, -0.17426998913288116, 0.14874869585037231, -0.2584463059902191, 0.0984698161482811, -0.06618600338697433, 0.05820343643426895, -0.29070377349853516, 0.09561516344547272, 0.020291589200496674, 0.33088865876197815, -0.6335689425468445, -0.3468567132949829, -0.5786890983581543, -0.21004125475883484, -0.027741465717554092, 0.1687910556793213, -0.2702192962169647, -0.29201188683509827, 0.34782305359840393, 0.17705842852592468, 0.09218983352184296, 0.5697172284126282, -0.00011724024079740047, 0.071513831615448, 0.39330965280532837, -0.07875339686870575, -0.24568915367126465, -0.39187127351760864, -0.3461526036262512, -0.32919514179229736, 0.36862221360206604, -0.10739286243915558, 0.1058262512087822, 0.4041653275489807, -0.1357310265302658, -0.1332755982875824, 0.2626950144767761, 0.13527971506118774, 0.19363439083099365, 0.5491981506347656, 0.16306062042713165, -0.19249211251735687, -0.112586610019207, -0.19337718188762665, -0.20208260416984558, 0.7461526393890381, 0.4174172282218933, 0.016857216134667397, -0.05102520436048508, 0.260494589805603, -0.09926759451627731, 0.28908771276474, 0.1862415373325348, -0.03342142701148987, 0.10510128736495972, -0.48058244585990906, 0.10063742846250534, 0.1743774265050888, 0.4806714653968811, -0.23342707753181458, 0.04439101368188858, -0.12202340364456177, 0.20947349071502686, -0.29246780276298523, 0.26190072298049927, -0.09856943041086197, -0.21185947954654694, 0.049008019268512726, -0.02269648015499115, -0.08961708843708038, -0.012308187782764435, 0.0164375938475132, -0.09338505566120148, 0.3655080497264862, -0.14300742745399475, -0.11182595044374466, 0.06986599415540695, -0.10964182019233704, 0.5018091201782227, -0.016182418912649155, -0.026868749409914017, 0.20632801949977875, -0.46800071001052856, -0.009329862892627716, -0.09887120872735977, -0.14084962010383606, -0.05169881135225296, -0.101495161652565, -0.03618770092725754, 0.017466964200139046, -0.11100838333368301, 0.30348390340805054, 0.1848021298646927, 0.14225013554096222, 0.03475920483469963, 0.018299318850040436, 0.12265371531248093, 0.28642842173576355, -0.20076322555541992, 0.22739505767822266, -0.2592831254005432, -0.3118799924850464, 0.18450964987277985, -0.029213808476924896, 0.2715786099433899, -0.003710556775331497, -0.3190620243549347, -0.18184518814086914, 0.009568311274051666, 0.10504192113876343, 0.044623006135225296, 0.3990536034107208, 0.05579536780714989, 0.10570748150348663, -0.03462187945842743, 0.0016943030059337616, -0.3566536009311676, -0.2394375503063202, -0.053845297545194626, 0.19369657337665558, -0.06428003311157227, -0.11529896408319473, 0.06780320405960083, -0.1549988090991974, 0.260187029838562, -0.012420693412423134, 0.30920425057411194, -0.05996089428663254, 0.10367490351200104, -0.30253922939300537, -0.06064548343420029, 0.33190855383872986, 0.1287347972393036, 0.08720263093709946, -0.06231299415230751, -0.20557771623134613, -0.07788833975791931, 0.23551705479621887, -0.47706204652786255, -0.14423641562461853, -0.024315720424056053, 0.14294669032096863, -0.13391470909118652, -0.22443091869354248, -0.5850229859352112, 0.16483381390571594, 0.14476317167282104, -0.08128141611814499, -0.08496227115392685, -0.30628329515457153, -0.23307207226753235, -0.15358301997184753, 0.12368910759687424, 0.44828277826309204, -0.230927973985672, -0.14231464266777039, -0.2176900953054428, 0.12052683532238007, 0.12727144360542297, 0.2348233312368393, -0.20215444266796112, 0.1736098825931549, -0.09626368433237076, -0.11714153736829758, 0.49064862728118896, -0.4326359033584595, -0.46712425351142883, -0.020347552374005318, -0.26607608795166016, -0.005254989489912987, -0.08970627933740616, 0.04857945442199707, 0.35772332549095154, -0.0669405460357666, 0.5458381175994873, 0.26293760538101196, -0.13903236389160156, -0.03660433739423752, -0.1640910506248474, -0.40990614891052246, 0.129425048828125, 0.04181985929608345, 0.1834629327058792, -0.21777135133743286, 0.20303262770175934, -0.05337478965520859, 0.10123809427022934, 0.18599453568458557, -0.12113004177808762, 0.38433337211608887, 0.2429012954235077, -0.2223786860704422, 0.03727400675415993, -0.18595775961875916, -0.4775201678276062, 0.22404831647872925, 0.40929317474365234, 0.07997104525566101, -0.06749936938285828, 0.05132478475570679, -0.43819695711135864, 0.0791066437959671, -0.25944483280181885, 0.06764287501573563, 0.09941282868385315, -0.06667003035545349, -0.1751299351453781, 0.08892688155174255, -0.2604826092720032, 0.7403798699378967, 0.03770691156387329, 0.21759319305419922, -0.31834158301353455, 0.21578845381736755, -0.185904398560524, -0.30818042159080505, 0.17629240453243256, 0.13617098331451416, 0.07532516866922379, -0.09227313101291656, -0.23890826106071472, 0.14212170243263245, 0.2554137706756592, 0.17134174704551697, 0.06189180910587311, -0.27765583992004395, 0.4123670160770416, -0.2740117311477661, 0.0123243797570467, -0.10668379068374634, 0.20857034623622894, 0.005822665989398956, 0.25511759519577026, 0.15657132863998413, -0.3707028329372406, -0.041073717176914215, -0.03051150217652321, 0.09053774923086166, 0.3726443946361542, 0.12399688363075256, -0.0050925202667713165, -0.18564948439598083, 0.32518327236175537, 0.2222953736782074, 0.192473366856575, 0.09374195337295532, -0.12973235547542572, 0.2881334722042084, 0.30617618560791016, 0.2452448010444641, 0.038779787719249725, -0.26856058835983276, -0.2554308772087097, 0.06336416304111481, 0.19228708744049072, 0.2518083453178406, 0.4446455240249634, 0.1803884208202362, 0.10491905361413956, 0.03163178265094757, 0.03184742107987404, -0.15611714124679565, 0.11512020975351334, 0.2919997572898865, 0.2558416426181793, 0.1311035454273224, 0.41208258271217346, 0.09674409031867981, -0.07899901270866394, -0.3894115686416626, 0.1753251701593399, 0.15031079947948456, -0.3317718803882599, 0.07662685960531235, -0.2146015763282776, -0.1139470562338829, -0.1419464349746704, -0.4253390431404114, -0.14645244181156158, -0.19783437252044678, -0.10580100119113922, 0.2810259163379669, 0.26506251096725464, 0.1936631053686142, -0.023994125425815582, 0.05001609027385712, 0.06250487267971039, -0.14248375594615936, -0.05581655725836754, -0.2506774961948395, -0.0925881490111351, 0.001515813171863556, 0.3277399241924286, 0.24681228399276733, 0.36850666999816895, -0.3038308620452881, -0.06956318020820618, 0.1436997652053833, -0.33209845423698425, 0.17634516954421997, -0.005681924521923065, 0.29198017716407776, -0.013443134725093842, -0.07797126471996307, -0.3206302523612976, -0.1939188688993454, 0.021536927670240402, -0.13462315499782562, -0.1827469766139984, 0.04727959632873535, -0.18002915382385254, -0.22977454960346222, -0.001990780234336853, -0.29268914461135864, -0.4344460070133209, -0.3998571038246155, -0.3682097792625427, 0.047247033566236496, -0.00890260934829712, 0.46030038595199585, -0.04271635785698891, 0.2933921813964844, 0.22506874799728394, 0.05083863437175751, 0.01793590746819973, -0.33309119939804077, 0.47338175773620605, -0.2865111827850342, -0.29365772008895874, 0.28012070059776306, -0.26804664731025696, 0.383608877658844, 0.01818273589015007, -0.11044345051050186, -0.21353133022785187, -0.02148006297647953, 0.3837369680404663, -0.10093994438648224, 0.04168296977877617, 0.08463618904352188, 0.11366260051727295, 0.07825879007577896, -0.0924062728881836, -0.18155242502689362, -0.20405012369155884, 0.21963191032409668, 0.1930782049894333, -0.16571488976478577, 0.2265985906124115, -0.0363360233604908, 0.8421140313148499, 0.07719995081424713, -0.04005073383450508, 0.3015676736831665, -0.061655908823013306, 0.30649134516716003, -0.10642503947019577, -0.5121486186981201, -0.06968443095684052, -0.10731104016304016, -0.03928337246179581, 0.0819719135761261, -0.18397611379623413, -0.11122237890958786, -0.28478556871414185, -0.2727971076965332, -0.3160196840763092, -0.2918527126312256, -0.11478537321090698, -0.20039106905460358, 0.1308547854423523, 0.1986786276102066, -0.06129222363233566, -0.1620076298713684, -0.11249642819166183, 0.04898270219564438, 0.4355244040489197, -0.42080315947532654, -0.01861443743109703, 0.3795589506626129, -0.07285643368959427, -0.3464910387992859, 0.1986522525548935, 0.13178493082523346, 0.33032768964767456, 0.07662573456764221, 0.11820036917924881, 0.06014160439372063, -0.049325086176395416, 0.11224476993083954, 0.05919680744409561, -0.08000089228153229, 0.23661664128303528, -0.014693204313516617, -0.4012737274169922, -0.05774395167827606, -0.22556288540363312, 0.2240987867116928, 0.4793197214603424, 0.08615291863679886, -0.26678454875946045, 0.2115171253681183, 0.23633220791816711, 0.14127321541309357, -0.11422277987003326, -0.1485227793455124, -0.43875283002853394, -0.31343740224838257, -0.3784107267856598, -0.06004489213228226, 0.18504583835601807, 0.23917530477046967, 0.04166954755783081, -0.07086963206529617, -0.06402760744094849, -0.21697252988815308, 0.06104081869125366, 0.3596895635128021, 0.14828410744667053, 0.2704477310180664, 0.5801553130149841, 0.12715156376361847, -0.24735891819000244, 0.44701826572418213, 0.5865610837936401, 0.0028340592980384827, -0.5835179090499878, -0.027999404817819595, -0.17973938584327698, 0.2348884642124176, 0.1315189003944397, -0.07067302614450455, 0.016331374645233154, 0.05956534668803215, -0.13585135340690613, 0.38487479090690613, 0.38126644492149353, -0.0635414719581604, 0.12624821066856384, -0.4026651084423065, -0.12859098613262177, 0.09584838151931763, 0.0007425248622894287, 0.13769903779029846, 0.46016591787338257, -0.37963807582855225, -0.05982212722301483, 0.04709918051958084, -0.18435326218605042, 0.6863640546798706, -0.038188956677913666, -0.23901528120040894, 0.27325382828712463, -0.16150327026844025, 0.2652587890625, 0.11319082975387573, 0.18576081097126007, -0.27622339129447937, -0.3076208829879761, 0.09239345043897629, -0.22662188112735748, 0.19002646207809448, -0.1945817917585373, -0.35113221406936646, 0.2596142590045929, 0.056455522775650024, -0.1498304009437561, -0.01857663504779339, 0.04060542583465576, 0.0024130530655384064, -0.2937503457069397, -0.35251885652542114, 0.05176938325166702, -0.19053009152412415, 0.20617206394672394, -0.19724199175834656, -0.18334566056728363, -0.13894698023796082, -0.18653225898742676, -0.03310432285070419, -0.10903612524271011, -0.6445786356925964, 0.23709844052791595, 0.331447958946228, -0.30874407291412354, 0.20051701366901398, -0.11113806068897247, 0.09509916603565216, -0.029330428689718246, -0.17394958436489105, 0.12651289999485016, 0.19933393597602844, 0.016686126589775085, -0.11088885366916656, -0.1729525476694107, 0.41977205872535706, -0.08396558463573456, 0.005003355443477631, 0.05766690522432327, 0.0366227887570858, -0.02253437601029873, 0.4702345132827759, 0.3512614965438843, 0.36815720796585083, 0.15069279074668884, -0.0755765438079834, 0.18104708194732666, 0.26167428493499756, -0.19587774574756622, 0.07804243266582489, 0.10197475552558899, -0.15308482944965363, 0.25580713152885437, -0.10751378536224365, -0.10032512247562408, -0.0019220784306526184, 0.33977267146110535, 0.12967140972614288, -0.016099872067570686, 0.18322160840034485, 0.15517212450504303, -0.25584256649017334, -0.08447626233100891, 0.16883498430252075, -0.3087923228740692, -0.30041390657424927, 0.24127690494060516, -0.01991329714655876, 0.04912756383419037, 0.07449450343847275, 0.7340956330299377, 0.24561472237110138, -0.36856839060783386, -0.13207823038101196, -0.3772929310798645, -0.532602071762085, 0.14176955819129944, -0.12052443623542786, -0.09494303166866302, 0.2369503676891327, 0.38368919491767883, 0.12086799740791321, 0.1284111887216568, -0.22089064121246338, 0.10524002462625504, -0.1584770381450653, 0.15400409698486328, 0.2756504416465759, -0.09605134278535843, 0.037291642278432846, 0.08599011600017548, 0.004242096096277237, 0.15297813713550568, 0.06710018217563629, -0.22495436668395996, -0.11465848982334137, 0.13268038630485535, -0.10255377739667892, 0.04087069630622864, -0.1180262416601181, -0.15128540992736816, -0.23003512620925903, -0.1715022474527359, 0.15905165672302246, 0.03512432426214218, -0.08184225857257843, -0.13215582072734833, 0.2920050024986267, -0.09662965685129166, -0.21740175783634186, 0.40256673097610474, 0.11779451370239258, 0.08100748062133789, 0.07766655087471008, 0.16602984070777893, 0.1665424406528473, 0.1832786202430725, 0.01752975769340992, -0.22533944249153137, -0.09167061746120453, -0.17651286721229553, 0.09427857398986816, -0.332089364528656, -0.014022985473275185, 0.06999459117650986, -0.02750704064965248, 0.4203798174858093, -0.128956601023674, -0.20998479425907135, 0.04724186286330223, 0.08578092604875565, -0.3888078033924103, 0.031112665310502052, 0.3042639493942261, 0.15485861897468567, 0.175432488322258, 0.27228689193725586, 0.08177223801612854, 0.08188551664352417, 0.154409721493721, 0.3952523171901703, 0.24472272396087646, -0.02283744141459465, 0.2661111354827881, -0.20580080151557922, 0.08578258752822876, 0.23063425719738007, 0.23611019551753998, 0.11843210458755493, 0.03810544312000275, 0.1526695191860199, -0.15018275380134583, 0.29597920179367065, 0.14464405179023743, -0.1672733724117279, 0.236530601978302, -0.35960227251052856, 0.24245594441890717, -0.09867691993713379, 0.056907590478658676, -0.13632822036743164, 0.14178645610809326, 0.3276463747024536, -0.0491860955953598, -0.08844646066427231, -0.16085386276245117, -0.0030408762395381927, -0.30019035935401917, 0.27094078063964844, 0.463823139667511, -0.09763085097074509, -0.09312394261360168, -0.04317595064640045, 0.2145770937204361, 0.21752935647964478, 0.5374786853790283, 0.31591200828552246, -0.16689996421337128, -0.489629864692688, -0.12244034558534622, 0.5082059502601624, -0.12667304277420044, -0.18445323407649994, 0.46237364411354065, -0.1348707228899002, 0.010012004524469376, -0.16528092324733734, 0.3222160041332245, 0.48848477005958557, 0.30063140392303467, -0.13834859430789948, -0.2075253427028656, 0.25662702322006226, -0.18010574579238892, -0.13837358355522156, 0.21072137355804443, 0.05968470871448517, 0.2941666543483734, 0.2981707453727722, 0.08425383269786835, -0.16908782720565796, -0.03203669562935829, 0.22073021531105042, -0.3357614278793335, -0.44092005491256714, 0.20642870664596558, -0.15670649707317352, -0.0026589184999465942, -0.18978410959243774, 0.09799990057945251, -0.45638951659202576, 0.228825181722641, 0.31567293405532837, -0.22243843972682953, -0.06700214743614197, -0.14896313846111298, 0.04495946317911148, -0.03079943358898163, 0.36052775382995605, 0.24672430753707886, 0.3562099039554596, -0.20113036036491394, -0.10377411544322968, -0.8396953344345093, 0.31460127234458923, 0.03366610035300255, -0.011729884892702103, -0.03855240345001221, 0.1393253058195114, -0.0011319294571876526, 0.3212944269180298, 0.42011260986328125, 0.04542860388755798, 0.19012098014354706, 0.0372287854552269, -0.46201586723327637, -0.2717553377151489, 0.09004093706607819, -0.44547635316848755, 0.005056355148553848, -0.39179009199142456, -0.004098299890756607, -0.2824527323246002, -0.04146796092391014, -0.027398236095905304, -0.44652727246284485, 0.2701761722564697, 0.30223745107650757, 0.2959739863872528, -0.043755583465099335, 0.672249436378479, -0.053657323122024536, 0.09963686019182205, -0.06906487047672272, -0.31764477491378784, -0.02696423977613449, 0.15782961249351501, 0.3953222930431366, 0.21142929792404175, -0.24911025166511536, 0.07488315552473068, -0.12848514318466187, 0.13370411098003387, 0.13303139805793762, 0.012898829765617847, -0.2782156467437744, 0.06854169815778732, -0.16541364789009094, 0.40305227041244507, -0.13011346757411957, 0.18237262964248657, 0.0637911930680275, 0.270514577627182, -0.30365630984306335, -0.3571581244468689, 0.3911992311477661, -0.3434479832649231, -0.45859771966934204, -0.4276731014251709, 0.2904641032218933, 0.1598198413848877, -0.20495663583278656, -0.47420862317085266, 0.009304091334342957, 0.25498899817466736, -0.1533088982105255, -0.15550047159194946, 0.5398076772689819, 0.06995464116334915, 0.21426241099834442, -0.12199611961841583, 0.2098640501499176, 0.004663359373807907, -0.1189010739326477, -0.11650529503822327, -0.0643656998872757 ]
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.4603261947631836, -0.21482723951339722, -0.024375155568122864, 0.26821368932724, 0.13541258871555328, 0.051994286477565765, 0.4973770081996918, -0.10748469829559326, 0.19837096333503723, 0.08495311439037323, -0.3266311287879944, 0.4753236174583435, -0.17426998913288116, 0.14874869585037231, -0.2584463059902191, 0.0984698161482811, -0.06618600338697433, 0.05820343643426895, -0.29070377349853516, 0.09561516344547272, 0.020291589200496674, 0.33088865876197815, -0.6335689425468445, -0.3468567132949829, -0.5786890983581543, -0.21004125475883484, -0.027741465717554092, 0.1687910556793213, -0.2702192962169647, -0.29201188683509827, 0.34782305359840393, 0.17705842852592468, 0.09218983352184296, 0.5697172284126282, -0.00011724024079740047, 0.071513831615448, 0.39330965280532837, -0.07875339686870575, -0.24568915367126465, -0.39187127351760864, -0.3461526036262512, -0.32919514179229736, 0.36862221360206604, -0.10739286243915558, 0.1058262512087822, 0.4041653275489807, -0.1357310265302658, -0.1332755982875824, 0.2626950144767761, 0.13527971506118774, 0.19363439083099365, 0.5491981506347656, 0.16306062042713165, -0.19249211251735687, -0.112586610019207, -0.19337718188762665, -0.20208260416984558, 0.7461526393890381, 0.4174172282218933, 0.016857216134667397, -0.05102520436048508, 0.260494589805603, -0.09926759451627731, 0.28908771276474, 0.1862415373325348, -0.03342142701148987, 0.10510128736495972, -0.48058244585990906, 0.10063742846250534, 0.1743774265050888, 0.4806714653968811, -0.23342707753181458, 0.04439101368188858, -0.12202340364456177, 0.20947349071502686, -0.29246780276298523, 0.26190072298049927, -0.09856943041086197, -0.21185947954654694, 0.049008019268512726, -0.02269648015499115, -0.08961708843708038, -0.012308187782764435, 0.0164375938475132, -0.09338505566120148, 0.3655080497264862, -0.14300742745399475, -0.11182595044374466, 0.06986599415540695, -0.10964182019233704, 0.5018091201782227, -0.016182418912649155, -0.026868749409914017, 0.20632801949977875, -0.46800071001052856, -0.009329862892627716, -0.09887120872735977, -0.14084962010383606, -0.05169881135225296, -0.101495161652565, -0.03618770092725754, 0.017466964200139046, -0.11100838333368301, 0.30348390340805054, 0.1848021298646927, 0.14225013554096222, 0.03475920483469963, 0.018299318850040436, 0.12265371531248093, 0.28642842173576355, -0.20076322555541992, 0.22739505767822266, -0.2592831254005432, -0.3118799924850464, 0.18450964987277985, -0.029213808476924896, 0.2715786099433899, -0.003710556775331497, -0.3190620243549347, -0.18184518814086914, 0.009568311274051666, 0.10504192113876343, 0.044623006135225296, 0.3990536034107208, 0.05579536780714989, 0.10570748150348663, -0.03462187945842743, 0.0016943030059337616, -0.3566536009311676, -0.2394375503063202, -0.053845297545194626, 0.19369657337665558, -0.06428003311157227, -0.11529896408319473, 0.06780320405960083, -0.1549988090991974, 0.260187029838562, -0.012420693412423134, 0.30920425057411194, -0.05996089428663254, 0.10367490351200104, -0.30253922939300537, -0.06064548343420029, 0.33190855383872986, 0.1287347972393036, 0.08720263093709946, -0.06231299415230751, -0.20557771623134613, -0.07788833975791931, 0.23551705479621887, -0.47706204652786255, -0.14423641562461853, -0.024315720424056053, 0.14294669032096863, -0.13391470909118652, -0.22443091869354248, -0.5850229859352112, 0.16483381390571594, 0.14476317167282104, -0.08128141611814499, -0.08496227115392685, -0.30628329515457153, -0.23307207226753235, -0.15358301997184753, 0.12368910759687424, 0.44828277826309204, -0.230927973985672, -0.14231464266777039, -0.2176900953054428, 0.12052683532238007, 0.12727144360542297, 0.2348233312368393, -0.20215444266796112, 0.1736098825931549, -0.09626368433237076, -0.11714153736829758, 0.49064862728118896, -0.4326359033584595, -0.46712425351142883, -0.020347552374005318, -0.26607608795166016, -0.005254989489912987, -0.08970627933740616, 0.04857945442199707, 0.35772332549095154, -0.0669405460357666, 0.5458381175994873, 0.26293760538101196, -0.13903236389160156, -0.03660433739423752, -0.1640910506248474, -0.40990614891052246, 0.129425048828125, 0.04181985929608345, 0.1834629327058792, -0.21777135133743286, 0.20303262770175934, -0.05337478965520859, 0.10123809427022934, 0.18599453568458557, -0.12113004177808762, 0.38433337211608887, 0.2429012954235077, -0.2223786860704422, 0.03727400675415993, -0.18595775961875916, -0.4775201678276062, 0.22404831647872925, 0.40929317474365234, 0.07997104525566101, -0.06749936938285828, 0.05132478475570679, -0.43819695711135864, 0.0791066437959671, -0.25944483280181885, 0.06764287501573563, 0.09941282868385315, -0.06667003035545349, -0.1751299351453781, 0.08892688155174255, -0.2604826092720032, 0.7403798699378967, 0.03770691156387329, 0.21759319305419922, -0.31834158301353455, 0.21578845381736755, -0.185904398560524, -0.30818042159080505, 0.17629240453243256, 0.13617098331451416, 0.07532516866922379, -0.09227313101291656, -0.23890826106071472, 0.14212170243263245, 0.2554137706756592, 0.17134174704551697, 0.06189180910587311, -0.27765583992004395, 0.4123670160770416, -0.2740117311477661, 0.0123243797570467, -0.10668379068374634, 0.20857034623622894, 0.005822665989398956, 0.25511759519577026, 0.15657132863998413, -0.3707028329372406, -0.041073717176914215, -0.03051150217652321, 0.09053774923086166, 0.3726443946361542, 0.12399688363075256, -0.0050925202667713165, -0.18564948439598083, 0.32518327236175537, 0.2222953736782074, 0.192473366856575, 0.09374195337295532, -0.12973235547542572, 0.2881334722042084, 0.30617618560791016, 0.2452448010444641, 0.038779787719249725, -0.26856058835983276, -0.2554308772087097, 0.06336416304111481, 0.19228708744049072, 0.2518083453178406, 0.4446455240249634, 0.1803884208202362, 0.10491905361413956, 0.03163178265094757, 0.03184742107987404, -0.15611714124679565, 0.11512020975351334, 0.2919997572898865, 0.2558416426181793, 0.1311035454273224, 0.41208258271217346, 0.09674409031867981, -0.07899901270866394, -0.3894115686416626, 0.1753251701593399, 0.15031079947948456, -0.3317718803882599, 0.07662685960531235, -0.2146015763282776, -0.1139470562338829, -0.1419464349746704, -0.4253390431404114, -0.14645244181156158, -0.19783437252044678, -0.10580100119113922, 0.2810259163379669, 0.26506251096725464, 0.1936631053686142, -0.023994125425815582, 0.05001609027385712, 0.06250487267971039, -0.14248375594615936, -0.05581655725836754, -0.2506774961948395, -0.0925881490111351, 0.001515813171863556, 0.3277399241924286, 0.24681228399276733, 0.36850666999816895, -0.3038308620452881, -0.06956318020820618, 0.1436997652053833, -0.33209845423698425, 0.17634516954421997, -0.005681924521923065, 0.29198017716407776, -0.013443134725093842, -0.07797126471996307, -0.3206302523612976, -0.1939188688993454, 0.021536927670240402, -0.13462315499782562, -0.1827469766139984, 0.04727959632873535, -0.18002915382385254, -0.22977454960346222, -0.001990780234336853, -0.29268914461135864, -0.4344460070133209, -0.3998571038246155, -0.3682097792625427, 0.047247033566236496, -0.00890260934829712, 0.46030038595199585, -0.04271635785698891, 0.2933921813964844, 0.22506874799728394, 0.05083863437175751, 0.01793590746819973, -0.33309119939804077, 0.47338175773620605, -0.2865111827850342, -0.29365772008895874, 0.28012070059776306, -0.26804664731025696, 0.383608877658844, 0.01818273589015007, -0.11044345051050186, -0.21353133022785187, -0.02148006297647953, 0.3837369680404663, -0.10093994438648224, 0.04168296977877617, 0.08463618904352188, 0.11366260051727295, 0.07825879007577896, -0.0924062728881836, -0.18155242502689362, -0.20405012369155884, 0.21963191032409668, 0.1930782049894333, -0.16571488976478577, 0.2265985906124115, -0.0363360233604908, 0.8421140313148499, 0.07719995081424713, -0.04005073383450508, 0.3015676736831665, -0.061655908823013306, 0.30649134516716003, -0.10642503947019577, -0.5121486186981201, -0.06968443095684052, -0.10731104016304016, -0.03928337246179581, 0.0819719135761261, -0.18397611379623413, -0.11122237890958786, -0.28478556871414185, -0.2727971076965332, -0.3160196840763092, -0.2918527126312256, -0.11478537321090698, -0.20039106905460358, 0.1308547854423523, 0.1986786276102066, -0.06129222363233566, -0.1620076298713684, -0.11249642819166183, 0.04898270219564438, 0.4355244040489197, -0.42080315947532654, -0.01861443743109703, 0.3795589506626129, -0.07285643368959427, -0.3464910387992859, 0.1986522525548935, 0.13178493082523346, 0.33032768964767456, 0.07662573456764221, 0.11820036917924881, 0.06014160439372063, -0.049325086176395416, 0.11224476993083954, 0.05919680744409561, -0.08000089228153229, 0.23661664128303528, -0.014693204313516617, -0.4012737274169922, -0.05774395167827606, -0.22556288540363312, 0.2240987867116928, 0.4793197214603424, 0.08615291863679886, -0.26678454875946045, 0.2115171253681183, 0.23633220791816711, 0.14127321541309357, -0.11422277987003326, -0.1485227793455124, -0.43875283002853394, -0.31343740224838257, -0.3784107267856598, -0.06004489213228226, 0.18504583835601807, 0.23917530477046967, 0.04166954755783081, -0.07086963206529617, -0.06402760744094849, -0.21697252988815308, 0.06104081869125366, 0.3596895635128021, 0.14828410744667053, 0.2704477310180664, 0.5801553130149841, 0.12715156376361847, -0.24735891819000244, 0.44701826572418213, 0.5865610837936401, 0.0028340592980384827, -0.5835179090499878, -0.027999404817819595, -0.17973938584327698, 0.2348884642124176, 0.1315189003944397, -0.07067302614450455, 0.016331374645233154, 0.05956534668803215, -0.13585135340690613, 0.38487479090690613, 0.38126644492149353, -0.0635414719581604, 0.12624821066856384, -0.4026651084423065, -0.12859098613262177, 0.09584838151931763, 0.0007425248622894287, 0.13769903779029846, 0.46016591787338257, -0.37963807582855225, -0.05982212722301483, 0.04709918051958084, -0.18435326218605042, 0.6863640546798706, -0.038188956677913666, -0.23901528120040894, 0.27325382828712463, -0.16150327026844025, 0.2652587890625, 0.11319082975387573, 0.18576081097126007, -0.27622339129447937, -0.3076208829879761, 0.09239345043897629, -0.22662188112735748, 0.19002646207809448, -0.1945817917585373, -0.35113221406936646, 0.2596142590045929, 0.056455522775650024, -0.1498304009437561, -0.01857663504779339, 0.04060542583465576, 0.0024130530655384064, -0.2937503457069397, -0.35251885652542114, 0.05176938325166702, -0.19053009152412415, 0.20617206394672394, -0.19724199175834656, -0.18334566056728363, -0.13894698023796082, -0.18653225898742676, -0.03310432285070419, -0.10903612524271011, -0.6445786356925964, 0.23709844052791595, 0.331447958946228, -0.30874407291412354, 0.20051701366901398, -0.11113806068897247, 0.09509916603565216, -0.029330428689718246, -0.17394958436489105, 0.12651289999485016, 0.19933393597602844, 0.016686126589775085, -0.11088885366916656, -0.1729525476694107, 0.41977205872535706, -0.08396558463573456, 0.005003355443477631, 0.05766690522432327, 0.0366227887570858, -0.02253437601029873, 0.4702345132827759, 0.3512614965438843, 0.36815720796585083, 0.15069279074668884, -0.0755765438079834, 0.18104708194732666, 0.26167428493499756, -0.19587774574756622, 0.07804243266582489, 0.10197475552558899, -0.15308482944965363, 0.25580713152885437, -0.10751378536224365, -0.10032512247562408, -0.0019220784306526184, 0.33977267146110535, 0.12967140972614288, -0.016099872067570686, 0.18322160840034485, 0.15517212450504303, -0.25584256649017334, -0.08447626233100891, 0.16883498430252075, -0.3087923228740692, -0.30041390657424927, 0.24127690494060516, -0.01991329714655876, 0.04912756383419037, 0.07449450343847275, 0.7340956330299377, 0.24561472237110138, -0.36856839060783386, -0.13207823038101196, -0.3772929310798645, -0.532602071762085, 0.14176955819129944, -0.12052443623542786, -0.09494303166866302, 0.2369503676891327, 0.38368919491767883, 0.12086799740791321, 0.1284111887216568, -0.22089064121246338, 0.10524002462625504, -0.1584770381450653, 0.15400409698486328, 0.2756504416465759, -0.09605134278535843, 0.037291642278432846, 0.08599011600017548, 0.004242096096277237, 0.15297813713550568, 0.06710018217563629, -0.22495436668395996, -0.11465848982334137, 0.13268038630485535, -0.10255377739667892, 0.04087069630622864, -0.1180262416601181, -0.15128540992736816, -0.23003512620925903, -0.1715022474527359, 0.15905165672302246, 0.03512432426214218, -0.08184225857257843, -0.13215582072734833, 0.2920050024986267, -0.09662965685129166, -0.21740175783634186, 0.40256673097610474, 0.11779451370239258, 0.08100748062133789, 0.07766655087471008, 0.16602984070777893, 0.1665424406528473, 0.1832786202430725, 0.01752975769340992, -0.22533944249153137, -0.09167061746120453, -0.17651286721229553, 0.09427857398986816, -0.332089364528656, -0.014022985473275185, 0.06999459117650986, -0.02750704064965248, 0.4203798174858093, -0.128956601023674, -0.20998479425907135, 0.04724186286330223, 0.08578092604875565, -0.3888078033924103, 0.031112665310502052, 0.3042639493942261, 0.15485861897468567, 0.175432488322258, 0.27228689193725586, 0.08177223801612854, 0.08188551664352417, 0.154409721493721, 0.3952523171901703, 0.24472272396087646, -0.02283744141459465, 0.2661111354827881, -0.20580080151557922, 0.08578258752822876, 0.23063425719738007, 0.23611019551753998, 0.11843210458755493, 0.03810544312000275, 0.1526695191860199, -0.15018275380134583, 0.29597920179367065, 0.14464405179023743, -0.1672733724117279, 0.236530601978302, -0.35960227251052856, 0.24245594441890717, -0.09867691993713379, 0.056907590478658676, -0.13632822036743164, 0.14178645610809326, 0.3276463747024536, -0.0491860955953598, -0.08844646066427231, -0.16085386276245117, -0.0030408762395381927, -0.30019035935401917, 0.27094078063964844, 0.463823139667511, -0.09763085097074509, -0.09312394261360168, -0.04317595064640045, 0.2145770937204361, 0.21752935647964478, 0.5374786853790283, 0.31591200828552246, -0.16689996421337128, -0.489629864692688, -0.12244034558534622, 0.5082059502601624, -0.12667304277420044, -0.18445323407649994, 0.46237364411354065, -0.1348707228899002, 0.010012004524469376, -0.16528092324733734, 0.3222160041332245, 0.48848477005958557, 0.30063140392303467, -0.13834859430789948, -0.2075253427028656, 0.25662702322006226, -0.18010574579238892, -0.13837358355522156, 0.21072137355804443, 0.05968470871448517, 0.2941666543483734, 0.2981707453727722, 0.08425383269786835, -0.16908782720565796, -0.03203669562935829, 0.22073021531105042, -0.3357614278793335, -0.44092005491256714, 0.20642870664596558, -0.15670649707317352, -0.0026589184999465942, -0.18978410959243774, 0.09799990057945251, -0.45638951659202576, 0.228825181722641, 0.31567293405532837, -0.22243843972682953, -0.06700214743614197, -0.14896313846111298, 0.04495946317911148, -0.03079943358898163, 0.36052775382995605, 0.24672430753707886, 0.3562099039554596, -0.20113036036491394, -0.10377411544322968, -0.8396953344345093, 0.31460127234458923, 0.03366610035300255, -0.011729884892702103, -0.03855240345001221, 0.1393253058195114, -0.0011319294571876526, 0.3212944269180298, 0.42011260986328125, 0.04542860388755798, 0.19012098014354706, 0.0372287854552269, -0.46201586723327637, -0.2717553377151489, 0.09004093706607819, -0.44547635316848755, 0.005056355148553848, -0.39179009199142456, -0.004098299890756607, -0.2824527323246002, -0.04146796092391014, -0.027398236095905304, -0.44652727246284485, 0.2701761722564697, 0.30223745107650757, 0.2959739863872528, -0.043755583465099335, 0.672249436378479, -0.053657323122024536, 0.09963686019182205, -0.06906487047672272, -0.31764477491378784, -0.02696423977613449, 0.15782961249351501, 0.3953222930431366, 0.21142929792404175, -0.24911025166511536, 0.07488315552473068, -0.12848514318466187, 0.13370411098003387, 0.13303139805793762, 0.012898829765617847, -0.2782156467437744, 0.06854169815778732, -0.16541364789009094, 0.40305227041244507, -0.13011346757411957, 0.18237262964248657, 0.0637911930680275, 0.270514577627182, -0.30365630984306335, -0.3571581244468689, 0.3911992311477661, -0.3434479832649231, -0.45859771966934204, -0.4276731014251709, 0.2904641032218933, 0.1598198413848877, -0.20495663583278656, -0.47420862317085266, 0.009304091334342957, 0.25498899817466736, -0.1533088982105255, -0.15550047159194946, 0.5398076772689819, 0.06995464116334915, 0.21426241099834442, -0.12199611961841583, 0.2098640501499176, 0.004663359373807907, -0.1189010739326477, -0.11650529503822327, -0.0643656998872757 ]
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.4603261947631836, -0.21482723951339722, -0.024375155568122864, 0.26821368932724, 0.13541258871555328, 0.051994286477565765, 0.4973770081996918, -0.10748469829559326, 0.19837096333503723, 0.08495311439037323, -0.3266311287879944, 0.4753236174583435, -0.17426998913288116, 0.14874869585037231, -0.2584463059902191, 0.0984698161482811, -0.06618600338697433, 0.05820343643426895, -0.29070377349853516, 0.09561516344547272, 0.020291589200496674, 0.33088865876197815, -0.6335689425468445, -0.3468567132949829, -0.5786890983581543, -0.21004125475883484, -0.027741465717554092, 0.1687910556793213, -0.2702192962169647, -0.29201188683509827, 0.34782305359840393, 0.17705842852592468, 0.09218983352184296, 0.5697172284126282, -0.00011724024079740047, 0.071513831615448, 0.39330965280532837, -0.07875339686870575, -0.24568915367126465, -0.39187127351760864, -0.3461526036262512, -0.32919514179229736, 0.36862221360206604, -0.10739286243915558, 0.1058262512087822, 0.4041653275489807, -0.1357310265302658, -0.1332755982875824, 0.2626950144767761, 0.13527971506118774, 0.19363439083099365, 0.5491981506347656, 0.16306062042713165, -0.19249211251735687, -0.112586610019207, -0.19337718188762665, -0.20208260416984558, 0.7461526393890381, 0.4174172282218933, 0.016857216134667397, -0.05102520436048508, 0.260494589805603, -0.09926759451627731, 0.28908771276474, 0.1862415373325348, -0.03342142701148987, 0.10510128736495972, -0.48058244585990906, 0.10063742846250534, 0.1743774265050888, 0.4806714653968811, -0.23342707753181458, 0.04439101368188858, -0.12202340364456177, 0.20947349071502686, -0.29246780276298523, 0.26190072298049927, -0.09856943041086197, -0.21185947954654694, 0.049008019268512726, -0.02269648015499115, -0.08961708843708038, -0.012308187782764435, 0.0164375938475132, -0.09338505566120148, 0.3655080497264862, -0.14300742745399475, -0.11182595044374466, 0.06986599415540695, -0.10964182019233704, 0.5018091201782227, -0.016182418912649155, -0.026868749409914017, 0.20632801949977875, -0.46800071001052856, -0.009329862892627716, -0.09887120872735977, -0.14084962010383606, -0.05169881135225296, -0.101495161652565, -0.03618770092725754, 0.017466964200139046, -0.11100838333368301, 0.30348390340805054, 0.1848021298646927, 0.14225013554096222, 0.03475920483469963, 0.018299318850040436, 0.12265371531248093, 0.28642842173576355, -0.20076322555541992, 0.22739505767822266, -0.2592831254005432, -0.3118799924850464, 0.18450964987277985, -0.029213808476924896, 0.2715786099433899, -0.003710556775331497, -0.3190620243549347, -0.18184518814086914, 0.009568311274051666, 0.10504192113876343, 0.044623006135225296, 0.3990536034107208, 0.05579536780714989, 0.10570748150348663, -0.03462187945842743, 0.0016943030059337616, -0.3566536009311676, -0.2394375503063202, -0.053845297545194626, 0.19369657337665558, -0.06428003311157227, -0.11529896408319473, 0.06780320405960083, -0.1549988090991974, 0.260187029838562, -0.012420693412423134, 0.30920425057411194, -0.05996089428663254, 0.10367490351200104, -0.30253922939300537, -0.06064548343420029, 0.33190855383872986, 0.1287347972393036, 0.08720263093709946, -0.06231299415230751, -0.20557771623134613, -0.07788833975791931, 0.23551705479621887, -0.47706204652786255, -0.14423641562461853, -0.024315720424056053, 0.14294669032096863, -0.13391470909118652, -0.22443091869354248, -0.5850229859352112, 0.16483381390571594, 0.14476317167282104, -0.08128141611814499, -0.08496227115392685, -0.30628329515457153, -0.23307207226753235, -0.15358301997184753, 0.12368910759687424, 0.44828277826309204, -0.230927973985672, -0.14231464266777039, -0.2176900953054428, 0.12052683532238007, 0.12727144360542297, 0.2348233312368393, -0.20215444266796112, 0.1736098825931549, -0.09626368433237076, -0.11714153736829758, 0.49064862728118896, -0.4326359033584595, -0.46712425351142883, -0.020347552374005318, -0.26607608795166016, -0.005254989489912987, -0.08970627933740616, 0.04857945442199707, 0.35772332549095154, -0.0669405460357666, 0.5458381175994873, 0.26293760538101196, -0.13903236389160156, -0.03660433739423752, -0.1640910506248474, -0.40990614891052246, 0.129425048828125, 0.04181985929608345, 0.1834629327058792, -0.21777135133743286, 0.20303262770175934, -0.05337478965520859, 0.10123809427022934, 0.18599453568458557, -0.12113004177808762, 0.38433337211608887, 0.2429012954235077, -0.2223786860704422, 0.03727400675415993, -0.18595775961875916, -0.4775201678276062, 0.22404831647872925, 0.40929317474365234, 0.07997104525566101, -0.06749936938285828, 0.05132478475570679, -0.43819695711135864, 0.0791066437959671, -0.25944483280181885, 0.06764287501573563, 0.09941282868385315, -0.06667003035545349, -0.1751299351453781, 0.08892688155174255, -0.2604826092720032, 0.7403798699378967, 0.03770691156387329, 0.21759319305419922, -0.31834158301353455, 0.21578845381736755, -0.185904398560524, -0.30818042159080505, 0.17629240453243256, 0.13617098331451416, 0.07532516866922379, -0.09227313101291656, -0.23890826106071472, 0.14212170243263245, 0.2554137706756592, 0.17134174704551697, 0.06189180910587311, -0.27765583992004395, 0.4123670160770416, -0.2740117311477661, 0.0123243797570467, -0.10668379068374634, 0.20857034623622894, 0.005822665989398956, 0.25511759519577026, 0.15657132863998413, -0.3707028329372406, -0.041073717176914215, -0.03051150217652321, 0.09053774923086166, 0.3726443946361542, 0.12399688363075256, -0.0050925202667713165, -0.18564948439598083, 0.32518327236175537, 0.2222953736782074, 0.192473366856575, 0.09374195337295532, -0.12973235547542572, 0.2881334722042084, 0.30617618560791016, 0.2452448010444641, 0.038779787719249725, -0.26856058835983276, -0.2554308772087097, 0.06336416304111481, 0.19228708744049072, 0.2518083453178406, 0.4446455240249634, 0.1803884208202362, 0.10491905361413956, 0.03163178265094757, 0.03184742107987404, -0.15611714124679565, 0.11512020975351334, 0.2919997572898865, 0.2558416426181793, 0.1311035454273224, 0.41208258271217346, 0.09674409031867981, -0.07899901270866394, -0.3894115686416626, 0.1753251701593399, 0.15031079947948456, -0.3317718803882599, 0.07662685960531235, -0.2146015763282776, -0.1139470562338829, -0.1419464349746704, -0.4253390431404114, -0.14645244181156158, -0.19783437252044678, -0.10580100119113922, 0.2810259163379669, 0.26506251096725464, 0.1936631053686142, -0.023994125425815582, 0.05001609027385712, 0.06250487267971039, -0.14248375594615936, -0.05581655725836754, -0.2506774961948395, -0.0925881490111351, 0.001515813171863556, 0.3277399241924286, 0.24681228399276733, 0.36850666999816895, -0.3038308620452881, -0.06956318020820618, 0.1436997652053833, -0.33209845423698425, 0.17634516954421997, -0.005681924521923065, 0.29198017716407776, -0.013443134725093842, -0.07797126471996307, -0.3206302523612976, -0.1939188688993454, 0.021536927670240402, -0.13462315499782562, -0.1827469766139984, 0.04727959632873535, -0.18002915382385254, -0.22977454960346222, -0.001990780234336853, -0.29268914461135864, -0.4344460070133209, -0.3998571038246155, -0.3682097792625427, 0.047247033566236496, -0.00890260934829712, 0.46030038595199585, -0.04271635785698891, 0.2933921813964844, 0.22506874799728394, 0.05083863437175751, 0.01793590746819973, -0.33309119939804077, 0.47338175773620605, -0.2865111827850342, -0.29365772008895874, 0.28012070059776306, -0.26804664731025696, 0.383608877658844, 0.01818273589015007, -0.11044345051050186, -0.21353133022785187, -0.02148006297647953, 0.3837369680404663, -0.10093994438648224, 0.04168296977877617, 0.08463618904352188, 0.11366260051727295, 0.07825879007577896, -0.0924062728881836, -0.18155242502689362, -0.20405012369155884, 0.21963191032409668, 0.1930782049894333, -0.16571488976478577, 0.2265985906124115, -0.0363360233604908, 0.8421140313148499, 0.07719995081424713, -0.04005073383450508, 0.3015676736831665, -0.061655908823013306, 0.30649134516716003, -0.10642503947019577, -0.5121486186981201, -0.06968443095684052, -0.10731104016304016, -0.03928337246179581, 0.0819719135761261, -0.18397611379623413, -0.11122237890958786, -0.28478556871414185, -0.2727971076965332, -0.3160196840763092, -0.2918527126312256, -0.11478537321090698, -0.20039106905460358, 0.1308547854423523, 0.1986786276102066, -0.06129222363233566, -0.1620076298713684, -0.11249642819166183, 0.04898270219564438, 0.4355244040489197, -0.42080315947532654, -0.01861443743109703, 0.3795589506626129, -0.07285643368959427, -0.3464910387992859, 0.1986522525548935, 0.13178493082523346, 0.33032768964767456, 0.07662573456764221, 0.11820036917924881, 0.06014160439372063, -0.049325086176395416, 0.11224476993083954, 0.05919680744409561, -0.08000089228153229, 0.23661664128303528, -0.014693204313516617, -0.4012737274169922, -0.05774395167827606, -0.22556288540363312, 0.2240987867116928, 0.4793197214603424, 0.08615291863679886, -0.26678454875946045, 0.2115171253681183, 0.23633220791816711, 0.14127321541309357, -0.11422277987003326, -0.1485227793455124, -0.43875283002853394, -0.31343740224838257, -0.3784107267856598, -0.06004489213228226, 0.18504583835601807, 0.23917530477046967, 0.04166954755783081, -0.07086963206529617, -0.06402760744094849, -0.21697252988815308, 0.06104081869125366, 0.3596895635128021, 0.14828410744667053, 0.2704477310180664, 0.5801553130149841, 0.12715156376361847, -0.24735891819000244, 0.44701826572418213, 0.5865610837936401, 0.0028340592980384827, -0.5835179090499878, -0.027999404817819595, -0.17973938584327698, 0.2348884642124176, 0.1315189003944397, -0.07067302614450455, 0.016331374645233154, 0.05956534668803215, -0.13585135340690613, 0.38487479090690613, 0.38126644492149353, -0.0635414719581604, 0.12624821066856384, -0.4026651084423065, -0.12859098613262177, 0.09584838151931763, 0.0007425248622894287, 0.13769903779029846, 0.46016591787338257, -0.37963807582855225, -0.05982212722301483, 0.04709918051958084, -0.18435326218605042, 0.6863640546798706, -0.038188956677913666, -0.23901528120040894, 0.27325382828712463, -0.16150327026844025, 0.2652587890625, 0.11319082975387573, 0.18576081097126007, -0.27622339129447937, -0.3076208829879761, 0.09239345043897629, -0.22662188112735748, 0.19002646207809448, -0.1945817917585373, -0.35113221406936646, 0.2596142590045929, 0.056455522775650024, -0.1498304009437561, -0.01857663504779339, 0.04060542583465576, 0.0024130530655384064, -0.2937503457069397, -0.35251885652542114, 0.05176938325166702, -0.19053009152412415, 0.20617206394672394, -0.19724199175834656, -0.18334566056728363, -0.13894698023796082, -0.18653225898742676, -0.03310432285070419, -0.10903612524271011, -0.6445786356925964, 0.23709844052791595, 0.331447958946228, -0.30874407291412354, 0.20051701366901398, -0.11113806068897247, 0.09509916603565216, -0.029330428689718246, -0.17394958436489105, 0.12651289999485016, 0.19933393597602844, 0.016686126589775085, -0.11088885366916656, -0.1729525476694107, 0.41977205872535706, -0.08396558463573456, 0.005003355443477631, 0.05766690522432327, 0.0366227887570858, -0.02253437601029873, 0.4702345132827759, 0.3512614965438843, 0.36815720796585083, 0.15069279074668884, -0.0755765438079834, 0.18104708194732666, 0.26167428493499756, -0.19587774574756622, 0.07804243266582489, 0.10197475552558899, -0.15308482944965363, 0.25580713152885437, -0.10751378536224365, -0.10032512247562408, -0.0019220784306526184, 0.33977267146110535, 0.12967140972614288, -0.016099872067570686, 0.18322160840034485, 0.15517212450504303, -0.25584256649017334, -0.08447626233100891, 0.16883498430252075, -0.3087923228740692, -0.30041390657424927, 0.24127690494060516, -0.01991329714655876, 0.04912756383419037, 0.07449450343847275, 0.7340956330299377, 0.24561472237110138, -0.36856839060783386, -0.13207823038101196, -0.3772929310798645, -0.532602071762085, 0.14176955819129944, -0.12052443623542786, -0.09494303166866302, 0.2369503676891327, 0.38368919491767883, 0.12086799740791321, 0.1284111887216568, -0.22089064121246338, 0.10524002462625504, -0.1584770381450653, 0.15400409698486328, 0.2756504416465759, -0.09605134278535843, 0.037291642278432846, 0.08599011600017548, 0.004242096096277237, 0.15297813713550568, 0.06710018217563629, -0.22495436668395996, -0.11465848982334137, 0.13268038630485535, -0.10255377739667892, 0.04087069630622864, -0.1180262416601181, -0.15128540992736816, -0.23003512620925903, -0.1715022474527359, 0.15905165672302246, 0.03512432426214218, -0.08184225857257843, -0.13215582072734833, 0.2920050024986267, -0.09662965685129166, -0.21740175783634186, 0.40256673097610474, 0.11779451370239258, 0.08100748062133789, 0.07766655087471008, 0.16602984070777893, 0.1665424406528473, 0.1832786202430725, 0.01752975769340992, -0.22533944249153137, -0.09167061746120453, -0.17651286721229553, 0.09427857398986816, -0.332089364528656, -0.014022985473275185, 0.06999459117650986, -0.02750704064965248, 0.4203798174858093, -0.128956601023674, -0.20998479425907135, 0.04724186286330223, 0.08578092604875565, -0.3888078033924103, 0.031112665310502052, 0.3042639493942261, 0.15485861897468567, 0.175432488322258, 0.27228689193725586, 0.08177223801612854, 0.08188551664352417, 0.154409721493721, 0.3952523171901703, 0.24472272396087646, -0.02283744141459465, 0.2661111354827881, -0.20580080151557922, 0.08578258752822876, 0.23063425719738007, 0.23611019551753998, 0.11843210458755493, 0.03810544312000275, 0.1526695191860199, -0.15018275380134583, 0.29597920179367065, 0.14464405179023743, -0.1672733724117279, 0.236530601978302, -0.35960227251052856, 0.24245594441890717, -0.09867691993713379, 0.056907590478658676, -0.13632822036743164, 0.14178645610809326, 0.3276463747024536, -0.0491860955953598, -0.08844646066427231, -0.16085386276245117, -0.0030408762395381927, -0.30019035935401917, 0.27094078063964844, 0.463823139667511, -0.09763085097074509, -0.09312394261360168, -0.04317595064640045, 0.2145770937204361, 0.21752935647964478, 0.5374786853790283, 0.31591200828552246, -0.16689996421337128, -0.489629864692688, -0.12244034558534622, 0.5082059502601624, -0.12667304277420044, -0.18445323407649994, 0.46237364411354065, -0.1348707228899002, 0.010012004524469376, -0.16528092324733734, 0.3222160041332245, 0.48848477005958557, 0.30063140392303467, -0.13834859430789948, -0.2075253427028656, 0.25662702322006226, -0.18010574579238892, -0.13837358355522156, 0.21072137355804443, 0.05968470871448517, 0.2941666543483734, 0.2981707453727722, 0.08425383269786835, -0.16908782720565796, -0.03203669562935829, 0.22073021531105042, -0.3357614278793335, -0.44092005491256714, 0.20642870664596558, -0.15670649707317352, -0.0026589184999465942, -0.18978410959243774, 0.09799990057945251, -0.45638951659202576, 0.228825181722641, 0.31567293405532837, -0.22243843972682953, -0.06700214743614197, -0.14896313846111298, 0.04495946317911148, -0.03079943358898163, 0.36052775382995605, 0.24672430753707886, 0.3562099039554596, -0.20113036036491394, -0.10377411544322968, -0.8396953344345093, 0.31460127234458923, 0.03366610035300255, -0.011729884892702103, -0.03855240345001221, 0.1393253058195114, -0.0011319294571876526, 0.3212944269180298, 0.42011260986328125, 0.04542860388755798, 0.19012098014354706, 0.0372287854552269, -0.46201586723327637, -0.2717553377151489, 0.09004093706607819, -0.44547635316848755, 0.005056355148553848, -0.39179009199142456, -0.004098299890756607, -0.2824527323246002, -0.04146796092391014, -0.027398236095905304, -0.44652727246284485, 0.2701761722564697, 0.30223745107650757, 0.2959739863872528, -0.043755583465099335, 0.672249436378479, -0.053657323122024536, 0.09963686019182205, -0.06906487047672272, -0.31764477491378784, -0.02696423977613449, 0.15782961249351501, 0.3953222930431366, 0.21142929792404175, -0.24911025166511536, 0.07488315552473068, -0.12848514318466187, 0.13370411098003387, 0.13303139805793762, 0.012898829765617847, -0.2782156467437744, 0.06854169815778732, -0.16541364789009094, 0.40305227041244507, -0.13011346757411957, 0.18237262964248657, 0.0637911930680275, 0.270514577627182, -0.30365630984306335, -0.3571581244468689, 0.3911992311477661, -0.3434479832649231, -0.45859771966934204, -0.4276731014251709, 0.2904641032218933, 0.1598198413848877, -0.20495663583278656, -0.47420862317085266, 0.009304091334342957, 0.25498899817466736, -0.1533088982105255, -0.15550047159194946, 0.5398076772689819, 0.06995464116334915, 0.21426241099834442, -0.12199611961841583, 0.2098640501499176, 0.004663359373807907, -0.1189010739326477, -0.11650529503822327, -0.0643656998872757 ]
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.4603261947631836, -0.21482723951339722, -0.024375155568122864, 0.26821368932724, 0.13541258871555328, 0.051994286477565765, 0.4973770081996918, -0.10748469829559326, 0.19837096333503723, 0.08495311439037323, -0.3266311287879944, 0.4753236174583435, -0.17426998913288116, 0.14874869585037231, -0.2584463059902191, 0.0984698161482811, -0.06618600338697433, 0.05820343643426895, -0.29070377349853516, 0.09561516344547272, 0.020291589200496674, 0.33088865876197815, -0.6335689425468445, -0.3468567132949829, -0.5786890983581543, -0.21004125475883484, -0.027741465717554092, 0.1687910556793213, -0.2702192962169647, -0.29201188683509827, 0.34782305359840393, 0.17705842852592468, 0.09218983352184296, 0.5697172284126282, -0.00011724024079740047, 0.071513831615448, 0.39330965280532837, -0.07875339686870575, -0.24568915367126465, -0.39187127351760864, -0.3461526036262512, -0.32919514179229736, 0.36862221360206604, -0.10739286243915558, 0.1058262512087822, 0.4041653275489807, -0.1357310265302658, -0.1332755982875824, 0.2626950144767761, 0.13527971506118774, 0.19363439083099365, 0.5491981506347656, 0.16306062042713165, -0.19249211251735687, -0.112586610019207, -0.19337718188762665, -0.20208260416984558, 0.7461526393890381, 0.4174172282218933, 0.016857216134667397, -0.05102520436048508, 0.260494589805603, -0.09926759451627731, 0.28908771276474, 0.1862415373325348, -0.03342142701148987, 0.10510128736495972, -0.48058244585990906, 0.10063742846250534, 0.1743774265050888, 0.4806714653968811, -0.23342707753181458, 0.04439101368188858, -0.12202340364456177, 0.20947349071502686, -0.29246780276298523, 0.26190072298049927, -0.09856943041086197, -0.21185947954654694, 0.049008019268512726, -0.02269648015499115, -0.08961708843708038, -0.012308187782764435, 0.0164375938475132, -0.09338505566120148, 0.3655080497264862, -0.14300742745399475, -0.11182595044374466, 0.06986599415540695, -0.10964182019233704, 0.5018091201782227, -0.016182418912649155, -0.026868749409914017, 0.20632801949977875, -0.46800071001052856, -0.009329862892627716, -0.09887120872735977, -0.14084962010383606, -0.05169881135225296, -0.101495161652565, -0.03618770092725754, 0.017466964200139046, -0.11100838333368301, 0.30348390340805054, 0.1848021298646927, 0.14225013554096222, 0.03475920483469963, 0.018299318850040436, 0.12265371531248093, 0.28642842173576355, -0.20076322555541992, 0.22739505767822266, -0.2592831254005432, -0.3118799924850464, 0.18450964987277985, -0.029213808476924896, 0.2715786099433899, -0.003710556775331497, -0.3190620243549347, -0.18184518814086914, 0.009568311274051666, 0.10504192113876343, 0.044623006135225296, 0.3990536034107208, 0.05579536780714989, 0.10570748150348663, -0.03462187945842743, 0.0016943030059337616, -0.3566536009311676, -0.2394375503063202, -0.053845297545194626, 0.19369657337665558, -0.06428003311157227, -0.11529896408319473, 0.06780320405960083, -0.1549988090991974, 0.260187029838562, -0.012420693412423134, 0.30920425057411194, -0.05996089428663254, 0.10367490351200104, -0.30253922939300537, -0.06064548343420029, 0.33190855383872986, 0.1287347972393036, 0.08720263093709946, -0.06231299415230751, -0.20557771623134613, -0.07788833975791931, 0.23551705479621887, -0.47706204652786255, -0.14423641562461853, -0.024315720424056053, 0.14294669032096863, -0.13391470909118652, -0.22443091869354248, -0.5850229859352112, 0.16483381390571594, 0.14476317167282104, -0.08128141611814499, -0.08496227115392685, -0.30628329515457153, -0.23307207226753235, -0.15358301997184753, 0.12368910759687424, 0.44828277826309204, -0.230927973985672, -0.14231464266777039, -0.2176900953054428, 0.12052683532238007, 0.12727144360542297, 0.2348233312368393, -0.20215444266796112, 0.1736098825931549, -0.09626368433237076, -0.11714153736829758, 0.49064862728118896, -0.4326359033584595, -0.46712425351142883, -0.020347552374005318, -0.26607608795166016, -0.005254989489912987, -0.08970627933740616, 0.04857945442199707, 0.35772332549095154, -0.0669405460357666, 0.5458381175994873, 0.26293760538101196, -0.13903236389160156, -0.03660433739423752, -0.1640910506248474, -0.40990614891052246, 0.129425048828125, 0.04181985929608345, 0.1834629327058792, -0.21777135133743286, 0.20303262770175934, -0.05337478965520859, 0.10123809427022934, 0.18599453568458557, -0.12113004177808762, 0.38433337211608887, 0.2429012954235077, -0.2223786860704422, 0.03727400675415993, -0.18595775961875916, -0.4775201678276062, 0.22404831647872925, 0.40929317474365234, 0.07997104525566101, -0.06749936938285828, 0.05132478475570679, -0.43819695711135864, 0.0791066437959671, -0.25944483280181885, 0.06764287501573563, 0.09941282868385315, -0.06667003035545349, -0.1751299351453781, 0.08892688155174255, -0.2604826092720032, 0.7403798699378967, 0.03770691156387329, 0.21759319305419922, -0.31834158301353455, 0.21578845381736755, -0.185904398560524, -0.30818042159080505, 0.17629240453243256, 0.13617098331451416, 0.07532516866922379, -0.09227313101291656, -0.23890826106071472, 0.14212170243263245, 0.2554137706756592, 0.17134174704551697, 0.06189180910587311, -0.27765583992004395, 0.4123670160770416, -0.2740117311477661, 0.0123243797570467, -0.10668379068374634, 0.20857034623622894, 0.005822665989398956, 0.25511759519577026, 0.15657132863998413, -0.3707028329372406, -0.041073717176914215, -0.03051150217652321, 0.09053774923086166, 0.3726443946361542, 0.12399688363075256, -0.0050925202667713165, -0.18564948439598083, 0.32518327236175537, 0.2222953736782074, 0.192473366856575, 0.09374195337295532, -0.12973235547542572, 0.2881334722042084, 0.30617618560791016, 0.2452448010444641, 0.038779787719249725, -0.26856058835983276, -0.2554308772087097, 0.06336416304111481, 0.19228708744049072, 0.2518083453178406, 0.4446455240249634, 0.1803884208202362, 0.10491905361413956, 0.03163178265094757, 0.03184742107987404, -0.15611714124679565, 0.11512020975351334, 0.2919997572898865, 0.2558416426181793, 0.1311035454273224, 0.41208258271217346, 0.09674409031867981, -0.07899901270866394, -0.3894115686416626, 0.1753251701593399, 0.15031079947948456, -0.3317718803882599, 0.07662685960531235, -0.2146015763282776, -0.1139470562338829, -0.1419464349746704, -0.4253390431404114, -0.14645244181156158, -0.19783437252044678, -0.10580100119113922, 0.2810259163379669, 0.26506251096725464, 0.1936631053686142, -0.023994125425815582, 0.05001609027385712, 0.06250487267971039, -0.14248375594615936, -0.05581655725836754, -0.2506774961948395, -0.0925881490111351, 0.001515813171863556, 0.3277399241924286, 0.24681228399276733, 0.36850666999816895, -0.3038308620452881, -0.06956318020820618, 0.1436997652053833, -0.33209845423698425, 0.17634516954421997, -0.005681924521923065, 0.29198017716407776, -0.013443134725093842, -0.07797126471996307, -0.3206302523612976, -0.1939188688993454, 0.021536927670240402, -0.13462315499782562, -0.1827469766139984, 0.04727959632873535, -0.18002915382385254, -0.22977454960346222, -0.001990780234336853, -0.29268914461135864, -0.4344460070133209, -0.3998571038246155, -0.3682097792625427, 0.047247033566236496, -0.00890260934829712, 0.46030038595199585, -0.04271635785698891, 0.2933921813964844, 0.22506874799728394, 0.05083863437175751, 0.01793590746819973, -0.33309119939804077, 0.47338175773620605, -0.2865111827850342, -0.29365772008895874, 0.28012070059776306, -0.26804664731025696, 0.383608877658844, 0.01818273589015007, -0.11044345051050186, -0.21353133022785187, -0.02148006297647953, 0.3837369680404663, -0.10093994438648224, 0.04168296977877617, 0.08463618904352188, 0.11366260051727295, 0.07825879007577896, -0.0924062728881836, -0.18155242502689362, -0.20405012369155884, 0.21963191032409668, 0.1930782049894333, -0.16571488976478577, 0.2265985906124115, -0.0363360233604908, 0.8421140313148499, 0.07719995081424713, -0.04005073383450508, 0.3015676736831665, -0.061655908823013306, 0.30649134516716003, -0.10642503947019577, -0.5121486186981201, -0.06968443095684052, -0.10731104016304016, -0.03928337246179581, 0.0819719135761261, -0.18397611379623413, -0.11122237890958786, -0.28478556871414185, -0.2727971076965332, -0.3160196840763092, -0.2918527126312256, -0.11478537321090698, -0.20039106905460358, 0.1308547854423523, 0.1986786276102066, -0.06129222363233566, -0.1620076298713684, -0.11249642819166183, 0.04898270219564438, 0.4355244040489197, -0.42080315947532654, -0.01861443743109703, 0.3795589506626129, -0.07285643368959427, -0.3464910387992859, 0.1986522525548935, 0.13178493082523346, 0.33032768964767456, 0.07662573456764221, 0.11820036917924881, 0.06014160439372063, -0.049325086176395416, 0.11224476993083954, 0.05919680744409561, -0.08000089228153229, 0.23661664128303528, -0.014693204313516617, -0.4012737274169922, -0.05774395167827606, -0.22556288540363312, 0.2240987867116928, 0.4793197214603424, 0.08615291863679886, -0.26678454875946045, 0.2115171253681183, 0.23633220791816711, 0.14127321541309357, -0.11422277987003326, -0.1485227793455124, -0.43875283002853394, -0.31343740224838257, -0.3784107267856598, -0.06004489213228226, 0.18504583835601807, 0.23917530477046967, 0.04166954755783081, -0.07086963206529617, -0.06402760744094849, -0.21697252988815308, 0.06104081869125366, 0.3596895635128021, 0.14828410744667053, 0.2704477310180664, 0.5801553130149841, 0.12715156376361847, -0.24735891819000244, 0.44701826572418213, 0.5865610837936401, 0.0028340592980384827, -0.5835179090499878, -0.027999404817819595, -0.17973938584327698, 0.2348884642124176, 0.1315189003944397, -0.07067302614450455, 0.016331374645233154, 0.05956534668803215, -0.13585135340690613, 0.38487479090690613, 0.38126644492149353, -0.0635414719581604, 0.12624821066856384, -0.4026651084423065, -0.12859098613262177, 0.09584838151931763, 0.0007425248622894287, 0.13769903779029846, 0.46016591787338257, -0.37963807582855225, -0.05982212722301483, 0.04709918051958084, -0.18435326218605042, 0.6863640546798706, -0.038188956677913666, -0.23901528120040894, 0.27325382828712463, -0.16150327026844025, 0.2652587890625, 0.11319082975387573, 0.18576081097126007, -0.27622339129447937, -0.3076208829879761, 0.09239345043897629, -0.22662188112735748, 0.19002646207809448, -0.1945817917585373, -0.35113221406936646, 0.2596142590045929, 0.056455522775650024, -0.1498304009437561, -0.01857663504779339, 0.04060542583465576, 0.0024130530655384064, -0.2937503457069397, -0.35251885652542114, 0.05176938325166702, -0.19053009152412415, 0.20617206394672394, -0.19724199175834656, -0.18334566056728363, -0.13894698023796082, -0.18653225898742676, -0.03310432285070419, -0.10903612524271011, -0.6445786356925964, 0.23709844052791595, 0.331447958946228, -0.30874407291412354, 0.20051701366901398, -0.11113806068897247, 0.09509916603565216, -0.029330428689718246, -0.17394958436489105, 0.12651289999485016, 0.19933393597602844, 0.016686126589775085, -0.11088885366916656, -0.1729525476694107, 0.41977205872535706, -0.08396558463573456, 0.005003355443477631, 0.05766690522432327, 0.0366227887570858, -0.02253437601029873, 0.4702345132827759, 0.3512614965438843, 0.36815720796585083, 0.15069279074668884, -0.0755765438079834, 0.18104708194732666, 0.26167428493499756, -0.19587774574756622, 0.07804243266582489, 0.10197475552558899, -0.15308482944965363, 0.25580713152885437, -0.10751378536224365, -0.10032512247562408, -0.0019220784306526184, 0.33977267146110535, 0.12967140972614288, -0.016099872067570686, 0.18322160840034485, 0.15517212450504303, -0.25584256649017334, -0.08447626233100891, 0.16883498430252075, -0.3087923228740692, -0.30041390657424927, 0.24127690494060516, -0.01991329714655876, 0.04912756383419037, 0.07449450343847275, 0.7340956330299377, 0.24561472237110138, -0.36856839060783386, -0.13207823038101196, -0.3772929310798645, -0.532602071762085, 0.14176955819129944, -0.12052443623542786, -0.09494303166866302, 0.2369503676891327, 0.38368919491767883, 0.12086799740791321, 0.1284111887216568, -0.22089064121246338, 0.10524002462625504, -0.1584770381450653, 0.15400409698486328, 0.2756504416465759, -0.09605134278535843, 0.037291642278432846, 0.08599011600017548, 0.004242096096277237, 0.15297813713550568, 0.06710018217563629, -0.22495436668395996, -0.11465848982334137, 0.13268038630485535, -0.10255377739667892, 0.04087069630622864, -0.1180262416601181, -0.15128540992736816, -0.23003512620925903, -0.1715022474527359, 0.15905165672302246, 0.03512432426214218, -0.08184225857257843, -0.13215582072734833, 0.2920050024986267, -0.09662965685129166, -0.21740175783634186, 0.40256673097610474, 0.11779451370239258, 0.08100748062133789, 0.07766655087471008, 0.16602984070777893, 0.1665424406528473, 0.1832786202430725, 0.01752975769340992, -0.22533944249153137, -0.09167061746120453, -0.17651286721229553, 0.09427857398986816, -0.332089364528656, -0.014022985473275185, 0.06999459117650986, -0.02750704064965248, 0.4203798174858093, -0.128956601023674, -0.20998479425907135, 0.04724186286330223, 0.08578092604875565, -0.3888078033924103, 0.031112665310502052, 0.3042639493942261, 0.15485861897468567, 0.175432488322258, 0.27228689193725586, 0.08177223801612854, 0.08188551664352417, 0.154409721493721, 0.3952523171901703, 0.24472272396087646, -0.02283744141459465, 0.2661111354827881, -0.20580080151557922, 0.08578258752822876, 0.23063425719738007, 0.23611019551753998, 0.11843210458755493, 0.03810544312000275, 0.1526695191860199, -0.15018275380134583, 0.29597920179367065, 0.14464405179023743, -0.1672733724117279, 0.236530601978302, -0.35960227251052856, 0.24245594441890717, -0.09867691993713379, 0.056907590478658676, -0.13632822036743164, 0.14178645610809326, 0.3276463747024536, -0.0491860955953598, -0.08844646066427231, -0.16085386276245117, -0.0030408762395381927, -0.30019035935401917, 0.27094078063964844, 0.463823139667511, -0.09763085097074509, -0.09312394261360168, -0.04317595064640045, 0.2145770937204361, 0.21752935647964478, 0.5374786853790283, 0.31591200828552246, -0.16689996421337128, -0.489629864692688, -0.12244034558534622, 0.5082059502601624, -0.12667304277420044, -0.18445323407649994, 0.46237364411354065, -0.1348707228899002, 0.010012004524469376, -0.16528092324733734, 0.3222160041332245, 0.48848477005958557, 0.30063140392303467, -0.13834859430789948, -0.2075253427028656, 0.25662702322006226, -0.18010574579238892, -0.13837358355522156, 0.21072137355804443, 0.05968470871448517, 0.2941666543483734, 0.2981707453727722, 0.08425383269786835, -0.16908782720565796, -0.03203669562935829, 0.22073021531105042, -0.3357614278793335, -0.44092005491256714, 0.20642870664596558, -0.15670649707317352, -0.0026589184999465942, -0.18978410959243774, 0.09799990057945251, -0.45638951659202576, 0.228825181722641, 0.31567293405532837, -0.22243843972682953, -0.06700214743614197, -0.14896313846111298, 0.04495946317911148, -0.03079943358898163, 0.36052775382995605, 0.24672430753707886, 0.3562099039554596, -0.20113036036491394, -0.10377411544322968, -0.8396953344345093, 0.31460127234458923, 0.03366610035300255, -0.011729884892702103, -0.03855240345001221, 0.1393253058195114, -0.0011319294571876526, 0.3212944269180298, 0.42011260986328125, 0.04542860388755798, 0.19012098014354706, 0.0372287854552269, -0.46201586723327637, -0.2717553377151489, 0.09004093706607819, -0.44547635316848755, 0.005056355148553848, -0.39179009199142456, -0.004098299890756607, -0.2824527323246002, -0.04146796092391014, -0.027398236095905304, -0.44652727246284485, 0.2701761722564697, 0.30223745107650757, 0.2959739863872528, -0.043755583465099335, 0.672249436378479, -0.053657323122024536, 0.09963686019182205, -0.06906487047672272, -0.31764477491378784, -0.02696423977613449, 0.15782961249351501, 0.3953222930431366, 0.21142929792404175, -0.24911025166511536, 0.07488315552473068, -0.12848514318466187, 0.13370411098003387, 0.13303139805793762, 0.012898829765617847, -0.2782156467437744, 0.06854169815778732, -0.16541364789009094, 0.40305227041244507, -0.13011346757411957, 0.18237262964248657, 0.0637911930680275, 0.270514577627182, -0.30365630984306335, -0.3571581244468689, 0.3911992311477661, -0.3434479832649231, -0.45859771966934204, -0.4276731014251709, 0.2904641032218933, 0.1598198413848877, -0.20495663583278656, -0.47420862317085266, 0.009304091334342957, 0.25498899817466736, -0.1533088982105255, -0.15550047159194946, 0.5398076772689819, 0.06995464116334915, 0.21426241099834442, -0.12199611961841583, 0.2098640501499176, 0.004663359373807907, -0.1189010739326477, -0.11650529503822327, -0.0643656998872757 ]
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.3526870310306549, -0.38677507638931274, -0.05106469243764877, 0.29108232259750366, 0.20721015334129333, 0.04866698384284973, -0.1169927567243576, 0.22957120835781097, 0.14507237076759338, 0.07490798830986023, -0.20717808604240417, 0.2856615483760834, 0.0034070750698447227, 0.08608546853065491, 0.1964895874261856, -0.24455323815345764, 0.07021966576576233, 0.11960999667644501, 0.07149249315261841, -0.039535149931907654, -0.09413012862205505, 0.13154956698417664, -0.22600989043712616, 0.07776833325624466, -0.24664799869060516, 0.12610840797424316, 0.09169398993253708, 0.20669278502464294, -0.3236723244190216, -0.402915358543396, 0.6594864130020142, -0.08827123045921326, 0.2548994719982147, 0.6138730049133301, -0.00010954505705740303, 0.044442206621170044, 0.23890164494514465, -0.07726716995239258, 0.008579285815358162, -0.5894996523857117, -0.3442198932170868, -0.42345941066741943, -0.06812826544046402, -0.18224787712097168, -0.031781088560819626, -0.13605961203575134, -0.11955974996089935, -0.12697544693946838, 0.3041214346885681, 0.27583444118499756, 0.2564079165458679, 0.4237174391746521, 0.2048840969800949, -0.1892295628786087, 0.42425480484962463, 0.009092673659324646, -0.30907315015792847, 0.25384795665740967, 0.42193037271499634, 0.16500800848007202, 0.48486658930778503, 0.2082422524690628, -0.06955406814813614, 0.04207891970872879, 0.1297951340675354, 0.06795624643564224, -0.1117197796702385, -0.4720567762851715, 0.05966152995824814, 0.31280139088630676, 0.4577900767326355, -0.2595134973526001, -0.3999505937099457, -0.13686755299568176, 0.111048124730587, -0.29193615913391113, 0.3227856457233429, 0.2403823733329773, -0.011217563413083553, 0.061995744705200195, 0.046406544744968414, -0.051686856895685196, -0.03862341493368149, 0.15139810740947723, -0.04271981120109558, 0.25688299536705017, -0.2622475028038025, -0.007769286632537842, 0.10310310870409012, -0.04652552306652069, 0.3317068815231323, -0.00039161741733551025, -0.07215408980846405, 0.18081282079219818, -0.29715317487716675, 0.03361472487449646, -0.08123409003019333, -0.10326883941888809, 0.3259279727935791, -0.06594550609588623, -0.15249736607074738, -0.05523558706045151, -0.18486908078193665, 0.06460414826869965, 0.20718897879123688, 0.2051493376493454, 0.04988139122724533, 0.06477561593055725, 0.2026151716709137, 0.19577708840370178, 0.06564916670322418, -0.06469079852104187, -0.18101820349693298, -0.0279596708714962, 0.0963965654373169, -0.09407079964876175, 0.45404064655303955, -0.38077378273010254, -0.34516972303390503, -0.010213122703135014, -0.003938343375921249, 0.06083352118730545, 0.12192124128341675, 0.14745734632015228, -0.0968998372554779, 0.38713815808296204, -0.10441362857818604, 0.3990941047668457, -0.23336930572986603, -0.04210934415459633, -0.18323200941085815, 0.35379087924957275, -0.2850377559661865, -0.20128577947616577, 0.25249597430229187, -0.22338904440402985, 0.3617871403694153, 0.10004857927560806, 0.3133208453655243, -0.2062496542930603, 0.04280439019203186, -0.024835731834173203, -0.3530004918575287, 0.41047412157058716, 0.18018043041229248, 0.23402409255504608, -0.14645658433437347, 0.0782417356967926, -0.12965136766433716, 0.16544100642204285, -0.6251088976860046, -0.08751887828111649, -0.09849061071872711, 0.19422326982021332, -0.20820049941539764, -0.10468670725822449, -0.6656985282897949, -0.16765564680099487, -0.09001227468252182, 0.1431586593389511, 0.08342050015926361, -0.20539559423923492, 0.15429550409317017, -0.17904934287071228, 0.20058852434158325, 0.2411438673734665, -0.2552343010902405, 0.060992345213890076, -0.15331967175006866, -0.2647593319416046, -0.07657729834318161, 0.12627606093883514, -0.20855718851089478, 0.010369375348091125, -0.3422112762928009, 0.32321375608444214, 0.45526543259620667, -0.6140801310539246, -0.5974394679069519, -0.10523244738578796, -0.2622515857219696, 0.08987851440906525, -0.061728186905384064, 0.10772309452295303, -0.035716645419597626, -0.07880023121833801, 0.10143280029296875, 0.24511757493019104, 0.06928177177906036, -0.06313815712928772, -0.16512265801429749, -0.20464235544204712, -0.36259180307388306, 0.352990061044693, 0.20832175016403198, -0.05789630860090256, 0.07861138880252838, 0.07613274455070496, 0.08778247237205505, -0.0318487174808979, -0.03062349371612072, 0.4155045747756958, 0.3037116527557373, -0.000134199857711792, -0.14926597476005554, -0.3682318925857544, -0.36478087306022644, 0.31553927063941956, -0.005127498880028725, -0.22662487626075745, -0.016195915639400482, -0.08621752262115479, -0.4500857889652252, 0.19822268187999725, -0.22092802822589874, -0.06065263971686363, 0.07694801688194275, 0.0073377639055252075, 0.22018751502037048, 0.08368061482906342, -0.22902490198612213, 0.1458612084388733, 0.016322346404194832, 0.14315569400787354, -0.4204466938972473, 0.31511637568473816, -0.0489114373922348, -0.1553790420293808, 0.0702609270811081, 0.05262356251478195, 0.25888392329216003, -0.20407778024673462, -0.15415659546852112, 0.2960608899593353, -0.1171707808971405, 0.054653752595186234, 0.24518799781799316, 0.11211179941892624, 0.1407470554113388, -0.5683165192604065, 0.24283871054649353, 0.056833237409591675, 0.004801702685654163, 0.1328020691871643, -0.08019400388002396, 0.32855015993118286, 0.07428722083568573, -0.1284794807434082, -0.14433316886425018, 0.12464768439531326, 0.37017592787742615, -0.17427125573158264, 0.062316544353961945, -0.03869686275720596, 0.37989339232444763, -0.15709789097309113, 0.2001883089542389, -0.18170222640037537, -0.3316302001476288, 0.09807395935058594, 0.25023120641708374, -0.10697327554225922, 0.18609580397605896, 0.14447557926177979, -0.1026412770152092, 0.1593286395072937, -0.0966137945652008, 0.16764062643051147, 0.5179627537727356, 0.12853242456912994, -0.006795022636651993, 0.06414773315191269, 0.008288860321044922, -0.11846422404050827, 0.05905475467443466, 0.10467775166034698, -0.32398808002471924, 0.08276226371526718, 0.16127480566501617, 0.10360335558652878, -0.22502401471138, -0.13487794995307922, -0.13452057540416718, 0.09700615704059601, -0.14784441888332367, -0.025735894218087196, -0.19357439875602722, -0.10623928904533386, -0.0235617533326149, -0.062760129570961, -0.26309236884117126, -0.1395758092403412, -0.062465034425258636, 0.3216553032398224, 0.32960066199302673, 0.15250332653522491, -0.3904195725917816, -0.09540082514286041, 0.035277359187603, -0.31493645906448364, -0.21272166073322296, 0.3404066562652588, -0.04747195541858673, 0.06628438830375671, 0.09629659354686737, 0.08081473410129547, 0.23569771647453308, -0.370800644159317, 0.2722421884536743, -0.4419669508934021, -0.20299428701400757, 0.09664206206798553, -0.2410515397787094, 0.46961709856987, 0.11202339828014374, 0.1265445500612259, -0.03220555931329727, 0.22293919324874878, 0.3095315992832184, -0.40436768531799316, -0.003925444558262825, 0.03079044818878174, 0.02605830691754818, -0.17586125433444977, 0.03693429008126259, -0.12701424956321716, -0.3618343472480774, -0.33960217237472534, 0.02835000306367874, 0.08013699948787689, -0.02215544879436493, 0.010164042003452778, 0.0757041797041893, -0.029958773404359818, -0.10440471768379211, -0.15335926413536072, -0.2170979380607605, -0.7377822399139404, 0.5196605324745178, -0.2019713968038559, -0.4470084011554718, 0.30164653062820435, 0.05565150827169418, 0.2421494722366333, 0.04314151406288147, -0.5795794725418091, -0.3328724205493927, -0.2093738168478012, 0.38576462864875793, 0.026241634041070938, 0.17258918285369873, 0.179884672164917, -0.3582766056060791, 0.02497953735291958, -0.2073284089565277, -0.24073559045791626, -0.32744863629341125, 0.1376807689666748, 0.30692413449287415, 0.06160854920744896, 0.16857516765594482, -0.11486746370792389, 0.4480392336845398, 0.14030691981315613, 0.14536547660827637, 0.5500613451004028, -0.02253040112555027, 0.32528358697891235, -0.15455713868141174, -0.3528733253479004, -0.17012688517570496, 0.09418264776468277, 0.11933653056621552, -0.019556038081645966, 0.2615583837032318, 0.0613199844956398, -0.3054990768432617, -0.1316124051809311, -0.038707420229911804, -0.08326515555381775, -0.03145398199558258, 0.11913669854402542, 0.11375264823436737, 0.08111180365085602, 0.22966396808624268, -0.14880594611167908, -0.18250378966331482, 0.022129110991954803, 0.41565781831741333, 0.1601017713546753, 0.2835170328617096, -0.5198411345481873, 0.1627901792526245, -0.34634360671043396, 0.21804334223270416, -0.005147446412593126, 0.3751673698425293, 0.0005977638065814972, 0.18227776885032654, 0.2526141405105591, 0.019084041938185692, 0.33654898405075073, -0.18747572600841522, 0.26267147064208984, 0.15674199163913727, -0.18845222890377045, -0.2643439471721649, -0.18348084390163422, -0.08804722875356674, 0.15104837715625763, 0.22193996608257294, 0.4319806694984436, -0.28724461793899536, -0.21122750639915466, 0.22684840857982635, 0.2067934274673462, 0.02413792535662651, -0.1701166182756424, -0.24351829290390015, -0.5633919835090637, -0.1476869136095047, -0.12003747373819351, 0.24042271077632904, 0.055603403598070145, 0.16018839180469513, 0.00377606600522995, -0.24642299115657806, -0.08841506391763687, 0.14636778831481934, 0.17059047520160675, 0.33958008885383606, -0.13379675149917603, 0.3536369800567627, 0.14351144433021545, -0.32970187067985535, 0.26703059673309326, 0.7374879121780396, 0.005829513072967529, -0.44945138692855835, 0.07186760008335114, -0.0187180507928133, -0.07819440215826035, 0.11433649063110352, -0.20377489924430847, -0.09733473509550095, -0.21869872510433197, 0.0812811478972435, 0.02573658898472786, 0.1539979875087738, 0.37716683745384216, 0.0625731572508812, -0.5213437080383301, -0.32200887799263, 0.5426341891288757, 0.2666316628456116, 0.11965236067771912, 0.22630852460861206, -0.08638899028301239, 0.04703559726476669, -0.22560374438762665, -0.08381394296884537, 0.9448816776275635, -0.011238351464271545, 0.03393387049436569, 0.12457124888896942, 0.01454857736825943, 0.1615140438079834, -0.19247783720493317, 0.06991104781627655, -0.15221679210662842, -0.4263078272342682, -0.1463763564825058, -0.1881897747516632, 0.12861397862434387, -0.05776407569646835, 0.06214269623160362, 0.22552064061164856, -0.07259972393512726, 0.11926019191741943, 0.0648181140422821, 0.0723349079489708, -0.1526961624622345, -0.17077787220478058, -0.5171347856521606, 0.1991240382194519, -0.06974808871746063, 0.40648603439331055, -0.13882941007614136, -0.1040901318192482, -0.19832292199134827, -0.09594371914863586, -0.12185150384902954, 0.29168206453323364, 0.0023222225718200207, 0.07156017422676086, 0.05790328234434128, -0.6102404594421387, 0.038579899817705154, 0.05268688127398491, 0.016225576400756836, 0.1011551022529602, -0.26593494415283203, 0.3533174395561218, -0.0021151676774024963, -0.22667281329631805, 0.1472962498664856, -0.13593535125255585, -0.15312300622463226, -0.09447260200977325, -0.10863145440816879, 0.176240473985672, -0.08289368450641632, -0.19283750653266907, -0.2500215768814087, 0.0991542637348175, -0.1647956371307373, -0.0987403616309166, -0.17749455571174622, -0.19709864258766174, 0.3366287350654602, -0.20214608311653137, 0.15160217881202698, 0.2968965172767639, 0.05587144196033478, 0.06312154233455658, 0.03861909359693527, -0.2568095326423645, -0.1473996341228485, 0.4189609885215759, -0.08218681067228317, -0.08379846811294556, 0.11377876996994019, 0.12573975324630737, 0.00022012367844581604, -0.13328970968723297, 0.13917288184165955, 0.05861080810427666, -0.630976676940918, 0.044120367616415024, -0.17518092691898346, 0.08802582323551178, -0.11304664611816406, 0.31121647357940674, 0.2554550766944885, -0.3791309595108032, 0.24184592068195343, -0.6552190780639648, -0.0697513073682785, 0.0945664644241333, 0.02273545414209366, 0.20296671986579895, 0.01342785358428955, 0.076626718044281, 0.12920355796813965, -0.2599184811115265, -0.3166565001010895, 0.17486068606376648, -0.09047149121761322, -0.13869544863700867, 0.2489343285560608, 0.15426881611347198, 0.2799367308616638, -0.0008408562280237675, 0.14454154670238495, 0.07905948907136917, -0.31336358189582825, -0.16963651776313782, -0.03908861428499222, 0.09756017476320267, 0.007312679663300514, -0.1443009376525879, 0.025096260011196136, -0.1934470534324646, -0.20184680819511414, -0.016270561143755913, 0.07147741317749023, 0.2128663957118988, 0.054809972643852234, -0.17678916454315186, -0.12021264433860779, 0.05239975079894066, -0.27127766609191895, 0.3782553970813751, 0.15260955691337585, 0.13628968596458435, -0.07072193175554276, 0.16988937556743622, -0.004589228890836239, 0.03778162598609924, -0.35075393319129944, -0.15372368693351746, -0.009986914694309235, 0.32343384623527527, 0.3173133432865143, -0.23383556306362152, 0.33995112776756287, 0.5180964469909668, 0.2589374780654907, 0.35059958696365356, -0.33267056941986084, 0.22881922125816345, 0.20446759462356567, 0.2669622600078583, -0.3421085476875305, -0.1972789317369461, 0.34911277890205383, 0.33815741539001465, -0.022210869938135147, 0.33346495032310486, 0.2860364317893982, 0.09993584454059601, 0.2936142086982727, 0.18924593925476074, 0.7017911672592163, 0.1483009159564972, 0.3616807460784912, 0.4879668056964874, 0.0453408919274807, 0.05475457012653351, 0.4047201871871948, 0.2209097146987915, 0.058906517922878265, 0.5563629865646362, -0.15010929107666016, 0.37051916122436523, 0.027698829770088196, 0.141074076294899, -0.17363426089286804, -0.2919469475746155, -0.22927506268024445, -0.030001908540725708, 0.032843805849552155, 0.0066137611865997314, -0.102440744638443, 0.07175160944461823, -0.37856075167655945, -0.04421618580818176, -0.3720661401748657, 0.2042677402496338, -0.1073925569653511, 0.1628192514181137, 0.10049979388713837, -0.20544055104255676, -0.0019078031182289124, 0.004627950489521027, -0.010631740093231201, 0.023676935583353043, 0.2068847119808197, 0.059800662100315094, -0.20067106187343597, -0.2601108253002167, 0.0146148931235075, 0.35342222452163696, -0.025885820388793945, -0.10442088544368744, 0.4160718023777008, 0.09790392965078354, -0.15582987666130066, 0.011497538536787033, 0.3531687259674072, 0.34718695282936096, 0.15516842901706696, 0.13553011417388916, -0.045528680086135864, 0.08789801597595215, -0.06547122448682785, -0.003728186711668968, 0.23003283143043518, 0.032555148005485535, 0.37879547476768494, 0.21364668011665344, 0.2474651038646698, -0.20603708922863007, 0.21662987768650055, -0.17801544070243835, 0.10442264378070831, -0.31611281633377075, 0.027656473219394684, -0.30755382776260376, -0.10171793401241302, -0.2598285675048828, -0.21140477061271667, -0.1291494518518448, 0.08093360811471939, 0.2977316379547119, 0.019351933151483536, 0.004231344908475876, -0.32314106822013855, 0.07377290725708008, -0.11022067070007324, 0.13803820312023163, 0.43471410870552063, -0.054104067385196686, -0.18879306316375732, -0.1329212784767151, -0.8249319195747375, 0.2049008011817932, -0.3134782016277313, -0.35932624340057373, 0.22307784855365753, -0.19670601189136505, -0.13373252749443054, 0.29501068592071533, 0.38235151767730713, 0.19866399466991425, 0.1417558342218399, 0.26967886090278625, -0.3786466419696808, -0.17550064623355865, 0.11647522449493408, 0.08052205294370651, 0.15503469109535217, -0.19661012291908264, 0.002044510096311569, -0.060507290065288544, 0.029626324772834778, -0.17870551347732544, -0.10147905349731445, -0.15460112690925598, -0.27308225631713867, 0.7128173112869263, -0.02658209763467312, 0.181878000497818, 0.008934896439313889, -0.14159438014030457, -0.34793218970298767, -0.3359901010990143, -0.17175090312957764, 0.16549313068389893, 0.03805627301335335, 0.2271934151649475, -0.18519511818885803, 0.045430172234773636, -0.4097554087638855, 0.11654042452573776, 0.019004538655281067, -0.03139004483819008, -0.1484304964542389, 0.1617600917816162, -0.3718976676464081, 0.12413128465414047, 0.27023160457611084, 0.20670905709266663, -0.07511565089225769, 0.20496681332588196, -0.1371408849954605, -0.4007471203804016, 0.3941507339477539, -0.0630497857928276, -0.26418018341064453, -0.03380297124385834, 0.09102742373943329, -0.017506346106529236, -0.22288629412651062, -0.20463630557060242, 0.3222982883453369, 0.3259676396846771, 0.04176516458392143, -0.07421053946018219, 0.18011051416397095, -0.1593884974718094, -0.005547024309635162, 0.16678504645824432, 0.5679104924201965, -0.052946433424949646, -0.16625440120697021, 0.47791174054145813, 0.06449881941080093 ]
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.26797476410865784, -0.4418164789676666, -0.11762620508670807, 0.2636517584323883, 0.22728614509105682, 0.10944119840860367, -0.18489310145378113, 0.23797139525413513, 0.10634960234165192, 0.14721691608428955, -0.15637658536434174, 0.2612072229385376, 0.034029848873615265, 0.0054815541952848434, 0.18876518309116364, -0.2929280698299408, -0.023113317787647247, 0.15719307959079742, 0.08547989279031754, -0.012771259993314743, -0.04482568800449371, 0.16231244802474976, -0.17775842547416687, 0.16605809330940247, -0.2347061038017273, 0.06105795502662659, 0.08143384754657745, 0.1718650758266449, -0.3454204201698303, -0.4189865291118622, 0.566159725189209, -0.09494569897651672, 0.21820507943630219, 0.7195150852203369, -0.00010372391989221796, 0.02921348065137863, 0.21765975654125214, -0.02619452401995659, 0.0566016249358654, -0.4336366057395935, -0.31205040216445923, -0.26808229088783264, -0.05471713840961456, -0.2174524962902069, -0.14002910256385803, -0.10075313597917557, -0.08805616199970245, -0.17501363158226013, 0.2505106031894684, 0.3105108141899109, 0.3232138752937317, 0.3803207278251648, 0.1769942343235016, -0.20664069056510925, 0.3996117413043976, -0.09418922662734985, -0.3172445595264435, 0.0890607088804245, 0.291251003742218, 0.17611095309257507, 0.5273678302764893, 0.3237524628639221, -0.03599005192518234, 0.015475748106837273, 0.143870547413826, 0.04106945917010307, -0.062305696308612823, -0.4709222614765167, 0.061264768242836, 0.30001065135002136, 0.42715713381767273, -0.2391212284564972, -0.3885630965232849, -0.1054571270942688, 0.10490264743566513, -0.4078121781349182, 0.2444295585155487, 0.1799367517232895, -0.016277797520160675, 0.10525032877922058, 0.009664187207818031, -0.09781486541032791, -0.041935041546821594, 0.06196022778749466, -0.07766803354024887, 0.22211994230747223, -0.21848726272583008, -0.06830205768346786, 0.05881013721227646, -0.0759771317243576, 0.20788390934467316, 0.051151350140571594, -0.027582306414842606, 0.12765371799468994, -0.2452935427427292, 0.06006501615047455, 0.06321902573108673, -0.12915530800819397, 0.20962780714035034, -0.07913963496685028, -0.08923745155334473, 0.011494413018226624, -0.14732392132282257, 0.06197664141654968, 0.06594699621200562, 0.24394910037517548, 0.03833010792732239, 0.023759163916110992, 0.20913371443748474, 0.1862056404352188, 0.08141490817070007, -0.10257598012685776, -0.17370547354221344, 0.011304565705358982, 0.19545960426330566, -0.029461562633514404, 0.3959267735481262, -0.3529491722583771, -0.280838280916214, 0.022182118147611618, 0.039759621024131775, 0.04080568253993988, 0.08661338686943054, 0.2145688533782959, -0.08242984116077423, 0.4011298418045044, -0.150149866938591, 0.3440099358558655, -0.2506440281867981, 0.07704656571149826, -0.21695400774478912, 0.29246726632118225, -0.29314127564430237, -0.15263758599758148, 0.19205553829669952, -0.08127675950527191, 0.34817972779273987, -0.035037677735090256, 0.3502659797668457, -0.1696179062128067, 0.15936827659606934, 0.06127016618847847, -0.2728777527809143, 0.42044538259506226, 0.17265519499778748, 0.16748076677322388, -0.08565180003643036, 0.06869794428348541, -0.15842078626155853, 0.05944972112774849, -0.5414465069770813, -0.2124159336090088, -0.029190799221396446, 0.2986299395561218, -0.12435373663902283, -0.029222026467323303, -0.5017436742782593, -0.24244092404842377, -0.0926840677857399, 0.2001236081123352, 0.06880471110343933, -0.2365984469652176, 0.16970093548297882, -0.20659440755844116, 0.12182342261075974, 0.14040341973304749, -0.18714861571788788, 0.06829372048377991, -0.07627208530902863, -0.2601483464241028, -0.128107488155365, 0.0846770703792572, -0.18926331400871277, 0.053847745060920715, -0.3212263584136963, 0.27980703115463257, 0.5203257203102112, -0.660707414150238, -0.5881971716880798, -0.1088327169418335, -0.3328566551208496, 0.03814096748828888, -0.03289995342493057, 0.11681810021400452, -0.09820231795310974, 0.0026608090847730637, 0.22063568234443665, 0.20922130346298218, 0.07293221354484558, -0.04591827839612961, -0.14698933064937592, -0.19961263239383698, -0.39544546604156494, 0.288985013961792, 0.21859249472618103, -0.11555630713701248, 0.06307297199964523, 0.008683308027684689, 0.12666717171669006, -0.0867341011762619, -0.05698391795158386, 0.47889941930770874, 0.30955660343170166, 0.0865388885140419, -0.079288050532341, -0.32167550921440125, -0.22478732466697693, 0.247271329164505, -0.07057279348373413, -0.09634721279144287, -0.032742008566856384, -0.18870487809181213, -0.45332303643226624, 0.1431085765361786, -0.3158532381057739, -0.12302835285663605, 0.1752059906721115, 0.12606826424598694, 0.2419702410697937, 0.013847820460796356, -0.24117307364940643, 0.05915219336748123, 0.11692295968532562, 0.12515577673912048, -0.43203216791152954, 0.22130471467971802, -0.14918872714042664, -0.10530456900596619, 0.0922812670469284, 0.16731080412864685, 0.24369972944259644, -0.22509396076202393, -0.09084714949131012, 0.32467103004455566, -0.09670242667198181, 0.035516705363988876, 0.3533552885055542, 0.09784235060214996, 0.08451666682958603, -0.590810239315033, 0.23348581790924072, 0.10352075099945068, -0.018788479268550873, 0.13006553053855896, -0.04315146803855896, 0.30242645740509033, 0.15142735838890076, -0.11505179852247238, -0.04870589077472687, 0.07426221668720245, 0.42988282442092896, -0.17364811897277832, 0.07141288369894028, -0.13067969679832458, 0.2847750186920166, -0.14198167622089386, 0.10406702756881714, -0.2299806922674179, -0.29760584235191345, 0.232619047164917, 0.3081139326095581, -0.1277645379304886, 0.18269792199134827, 0.056287918239831924, -0.06403357535600662, 0.17220571637153625, -0.055121228098869324, 0.11231659352779388, 0.39238107204437256, 0.1955975443124771, 0.0783933699131012, 0.09048713743686676, 0.025134138762950897, -0.07450704276561737, 0.05146055296063423, 0.03094993159174919, -0.27356261014938354, 0.007225830107927322, 0.15777535736560822, 0.055133286863565445, -0.2244778275489807, -0.21987643837928772, -0.17389759421348572, 0.1265789121389389, -0.05642992630600929, -0.09230814129114151, -0.282547265291214, -0.15875574946403503, -0.0015431437641382217, -0.06703036278486252, -0.25263699889183044, -0.22269684076309204, 0.04910707473754883, 0.22052447497844696, 0.2909300923347473, 0.1391831487417221, -0.4456422030925751, -0.1586829572916031, 0.12052582204341888, -0.3013072907924652, -0.1710585653781891, 0.24451777338981628, -0.07019682228565216, 0.13093769550323486, -0.04957423359155655, -0.01477043330669403, 0.22988474369049072, -0.4031030833721161, 0.2660704255104065, -0.4210813343524933, -0.23560240864753723, 0.14199203252792358, -0.2103901207447052, 0.29744836688041687, 0.14244896173477173, 0.09106677025556564, -0.018968231976032257, 0.165024995803833, 0.32283279299736023, -0.4411509335041046, -0.04668619483709335, 0.04022679477930069, 0.05519280582666397, -0.22431908547878265, 0.01460687443614006, -0.18939468264579773, -0.3284142017364502, -0.359683632850647, -0.04067403823137283, 0.15064610540866852, 0.034425459802150726, -0.018505729734897614, 0.08033838123083115, 0.08852473646402359, -0.06856214255094528, -0.05118810385465622, -0.25146976113319397, -0.7017883658409119, 0.463675320148468, -0.26449257135391235, -0.40400105714797974, 0.40381112694740295, 0.03437555581331253, 0.287476122379303, 0.028159547597169876, -0.6414681077003479, -0.42650672793388367, -0.20814290642738342, 0.4057200849056244, 0.09103068709373474, 0.16230447590351105, 0.24888840317726135, -0.19399666786193848, -0.08049803972244263, -0.12964856624603271, -0.2731977701187134, -0.33932363986968994, 0.12310773879289627, 0.35141822695732117, 0.0049010105431079865, 0.16939008235931396, -0.05665282532572746, 0.479763388633728, 0.14117103815078735, 0.2660493552684784, 0.4828202724456787, 0.007464500144124031, 0.41045477986335754, -0.1722000539302826, -0.25948938727378845, -0.11807604879140854, 0.05536675453186035, 0.0891868844628334, -0.005733005702495575, 0.3468688428401947, 0.03250227868556976, -0.3200872540473938, -0.08238297700881958, -0.12698253989219666, -0.11694757640361786, -0.13468125462532043, 0.16198906302452087, 0.08263600617647171, 0.10315118730068207, 0.2671738266944885, -0.2168579399585724, -0.0569072887301445, 0.10093125700950623, 0.4193550944328308, 0.05837779492139816, 0.24100354313850403, -0.632591187953949, 0.1530989110469818, -0.5051292777061462, 0.24587102234363556, -0.011550829745829105, 0.27052149176597595, 0.021567966789007187, 0.09080333262681961, 0.23920601606369019, -0.029436111450195312, 0.2986416816711426, -0.27927491068840027, 0.21417081356048584, 0.22150497138500214, -0.17756815254688263, -0.1594887226819992, -0.17939408123493195, -0.10528764873743057, 0.11015116423368454, 0.21034756302833557, 0.3577743172645569, -0.2909293472766876, -0.20928870141506195, 0.2081020623445511, 0.11214693635702133, -0.036481793969869614, -0.11052444577217102, -0.2614937424659729, -0.6037278771400452, -0.13079743087291718, -0.1397305727005005, 0.18186017870903015, 0.06383036077022552, 0.1908939778804779, 0.009821247309446335, -0.20435966551303864, -0.08113150298595428, 0.2022401988506317, 0.21325920522212982, 0.34426936507225037, -0.13253863155841827, 0.12477245926856995, 0.08892084658145905, -0.28171491622924805, 0.18702392280101776, 0.6367663145065308, -0.10250614583492279, -0.35394608974456787, 0.10426332801580429, -0.07600792497396469, -0.020129196345806122, 0.1653689444065094, -0.11589083075523376, -0.0652604028582573, -0.20036479830741882, 0.19658535718917847, 0.03419753164052963, 0.22089529037475586, 0.3908568322658539, 0.01548807043582201, -0.42926356196403503, -0.29443293809890747, 0.40855005383491516, 0.24116303026676178, 0.09592357277870178, 0.21094118058681488, -0.03550409525632858, -0.010892810299992561, -0.12197855114936829, -0.06402657181024551, 0.9632131457328796, -0.03136115521192551, 0.03398827463388443, 0.16077882051467896, 0.026023514568805695, 0.14425630867481232, -0.18713051080703735, 0.2287026196718216, -0.1123213917016983, -0.41420745849609375, -0.1158687174320221, -0.12935422360897064, 0.01891958713531494, -0.06649643927812576, 0.04764232411980629, 0.33106452226638794, -0.0027631521224975586, 0.14323657751083374, 0.06295230239629745, 0.05800483375787735, -0.1306237429380417, -0.11495135724544525, -0.5382678508758545, 0.25399115681648254, 0.025471605360507965, 0.37905362248420715, -0.16564291715621948, -0.10758372396230698, -0.1945646107196808, -0.1265374720096588, -0.039481811225414276, 0.27018627524375916, 0.046523600816726685, 0.0725010484457016, -0.00015102699398994446, -0.5629293918609619, -0.1786338835954666, 0.020747408270835876, 0.031384702771902084, 0.12407806515693665, -0.22929507493972778, 0.3382999002933502, 0.036353014409542084, -0.2561446726322174, 0.08993618190288544, -0.1675921231508255, -0.12276497483253479, -0.1348511278629303, -0.16968899965286255, 0.26845914125442505, -0.042885132133960724, -0.2032647579908371, -0.22382625937461853, 0.07836241275072098, -0.11643284559249878, -0.054386720061302185, -0.0939946323633194, -0.12663137912750244, 0.21960660815238953, -0.21418868005275726, 0.20093506574630737, 0.18666714429855347, -0.07296429574489594, 0.057586025446653366, 0.02946873940527439, -0.2769967317581177, -0.15531374514102936, 0.30606427788734436, -0.004521969705820084, -0.12933725118637085, 0.0959787666797638, 0.11445695161819458, -0.08687100559473038, -0.18448427319526672, -0.04741005599498749, 0.12272292375564575, -0.4821638762950897, -0.02824598178267479, -0.1865496188402176, -0.006931617856025696, 0.0028715082444250584, 0.1874542385339737, 0.2820075750350952, -0.3644222021102905, 0.16173748672008514, -0.5957939028739929, -0.1318207085132599, 0.13251201808452606, 0.023461541160941124, 0.22704768180847168, 0.03167976438999176, 0.046721894294023514, 0.11960609257221222, -0.2379748821258545, -0.4012407958507538, 0.12365848571062088, -0.14982055127620697, -0.0982622355222702, 0.1478443443775177, 0.006423253566026688, 0.2935067415237427, 0.027584344148635864, 0.21964554488658905, 0.06001913920044899, -0.399873286485672, -0.2403433620929718, 0.05520641431212425, 0.06278237700462341, -0.03830600529909134, -0.11964438110589981, 0.01859964057803154, -0.12851428985595703, -0.1325446516275406, -0.0398796945810318, 0.08919595181941986, 0.1925431787967682, 0.09865311533212662, -0.1837013065814972, -0.06929343938827515, 0.016741789877414703, -0.16425210237503052, 0.3258415460586548, 0.13986238837242126, 0.23185792565345764, -0.014497611671686172, 0.1323750615119934, -0.08561006933450699, 0.006634727120399475, -0.18700557947158813, -0.14577314257621765, 0.05460552126169205, 0.33409199118614197, 0.2917371094226837, -0.25574833154678345, 0.2778262197971344, 0.5029007792472839, 0.2845911383628845, 0.2882710099220276, -0.2615933418273926, 0.2006414532661438, 0.18766510486602783, 0.34328895807266235, -0.2725110650062561, -0.21513055264949799, 0.40911543369293213, 0.33772987127304077, 0.02342997118830681, 0.34953394532203674, 0.22787418961524963, 0.0965242087841034, 0.3864108920097351, 0.23785364627838135, 0.7002608180046082, 0.01092221587896347, 0.306496798992157, 0.39677947759628296, 0.02978115901350975, 0.027974290773272514, 0.41112232208251953, 0.24532712996006012, 0.05719634145498276, 0.5404452085494995, -0.11166857928037643, 0.3812040388584137, 0.05084414780139923, 0.15161199867725372, -0.202122300863266, -0.18425443768501282, -0.2625828981399536, -0.053845956921577454, 0.11766991019248962, 0.056900713592767715, -0.020486779510974884, -0.040452487766742706, -0.35880059003829956, -0.01770338974893093, -0.381813645362854, 0.1952456831932068, -0.10122119635343552, 0.14436514675617218, 0.11840902268886566, -0.2016303539276123, 0.03957478702068329, -0.030149370431900024, 0.06569360941648483, 0.027811184525489807, 0.1514739990234375, -0.02157875895500183, -0.11752645671367645, -0.26326102018356323, -0.009696360677480698, 0.23298951983451843, 0.031977634876966476, -0.0951240286231041, 0.39854860305786133, 0.13747073709964752, -0.051979079842567444, -0.04334487393498421, 0.34608644247055054, 0.3359368145465851, 0.15916232764720917, 0.022549202665686607, -0.04020831733942032, 0.0929909497499466, -0.12295027077198029, -0.08612987399101257, 0.15117718279361725, -0.034975484013557434, 0.3215077519416809, 0.2348559945821762, 0.306463360786438, -0.25807467103004456, 0.18450887501239777, -0.2394280880689621, 0.11451031267642975, -0.24632993340492249, 0.003174610435962677, -0.27018600702285767, -0.09753263741731644, -0.27018314599990845, -0.12828218936920166, -0.2590591609477997, 0.04861193150281906, 0.2965446710586548, -0.07215164601802826, 0.004525370895862579, -0.3530625104904175, 0.1089877039194107, -0.11539022624492645, 0.13042975962162018, 0.4215751886367798, 0.029854701831936836, -0.141917884349823, -0.09968985617160797, -0.8327540755271912, 0.26545608043670654, -0.37244704365730286, -0.3370600640773773, 0.1744968742132187, -0.10680080205202103, -0.1851884126663208, 0.25560685992240906, 0.4662516713142395, 0.15342028439044952, 0.16422973573207855, 0.2508542835712433, -0.38393262028694153, -0.09464363753795624, 0.22546562552452087, 0.03524051979184151, 0.1736326962709427, -0.24990081787109375, 0.005758795887231827, -0.07232087105512619, 0.1074134036898613, -0.1509798914194107, -0.09821265190839767, -0.17458301782608032, -0.22461029887199402, 0.7090946435928345, 0.041595086455345154, 0.049666598439216614, -0.01448427140712738, -0.2729935050010681, -0.3072054386138916, -0.28807592391967773, -0.15137404203414917, 0.08444377034902573, 0.06160099059343338, 0.22247958183288574, -0.1881359964609146, 0.04456983879208565, -0.4247748851776123, 0.24655024707317352, 0.10286952555179596, -0.047945234924554825, -0.09123010188341141, 0.23598060011863708, -0.3780371844768524, 0.12008482962846756, 0.2901979684829712, 0.15471795201301575, 0.04042034596204758, 0.18297922611236572, -0.08114580065011978, -0.42462649941444397, 0.5179022550582886, -0.017821595072746277, -0.27359676361083984, -0.03817848116159439, 0.10458798706531525, 0.07301852852106094, -0.23870140314102173, -0.24715617299079895, 0.31855788826942444, 0.25810208916664124, 0.12043805420398712, -0.13168393075466156, 0.16690154373645782, -0.2302272915840149, -0.04358617588877678, 0.12296156585216522, 0.542710542678833, -0.09237593412399292, -0.12143553793430328, 0.3414202630519867, 0.009655158966779709 ]
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.318206250667572, -0.3272886276245117, -0.11037570238113403, 0.28357940912246704, 0.23289568722248077, 0.06587646156549454, -0.09190882742404938, 0.18606695532798767, 0.046389635652303696, 0.24007052183151245, -0.2260718047618866, 0.20973317325115204, -0.03433855623006821, -0.14891085028648376, 0.1411532461643219, -0.2330799400806427, -0.023975469172000885, 0.0649309903383255, 0.08692891150712967, -0.003018997609615326, -0.043550197035074234, 0.09998910874128342, -0.13460567593574524, 0.16274313628673553, -0.28168871998786926, 0.16419057548046112, 0.13392555713653564, 0.15280568599700928, -0.36103150248527527, -0.5697415471076965, 0.5499166250228882, -0.07189933955669403, 0.2162339687347412, 0.6330674290657043, -0.00010452626884216443, 0.02743057906627655, 0.25137922167778015, -0.07012395560741425, 0.0219656303524971, -0.33032160997390747, -0.1703118532896042, -0.33266669511795044, -0.055918410420417786, -0.23264214396476746, -0.04928465560078621, -0.16108587384223938, -0.04300142079591751, -0.27366384863853455, 0.18779397010803223, 0.3142368197441101, 0.302845299243927, 0.3407108187675476, 0.19742201268672943, -0.18405379354953766, 0.4177662432193756, -0.11729957163333893, -0.2915063798427582, 0.09863317012786865, 0.2888219654560089, 0.25449132919311523, 0.3358382284641266, 0.34670454263687134, -0.062466494739055634, 0.13617588579654694, 0.11522260308265686, 0.11143489927053452, 0.035921208560466766, -0.4036867320537567, 0.10345453768968582, 0.30536454916000366, 0.3668738901615143, -0.22575709223747253, -0.37037789821624756, -0.1280183494091034, -0.0011335304006934166, -0.41359516978263855, 0.2864316403865814, 0.18856094777584076, -0.06144477427005768, 0.04873470589518547, 0.05901297926902771, -0.06409545242786407, -0.009463362395763397, 0.08222944289445877, -0.23675449192523956, 0.30455315113067627, -0.23986591398715973, -0.08100803941488266, 0.06117784604430199, -0.09763318300247192, 0.42668765783309937, 0.10552200675010681, -0.04986253008246422, 0.1894540935754776, -0.19107063114643097, 0.08615577220916748, 0.09162610024213791, -0.031315430998802185, 0.187950998544693, -0.09396803379058838, -0.08703821152448654, 0.021232670173048973, -0.12130366265773773, 0.053342752158641815, -0.023665573447942734, 0.22360584139823914, 0.013699449598789215, 0.012361054308712482, 0.33646631240844727, 0.16754305362701416, -0.025204326957464218, -0.10390948504209518, -0.0610518753528595, 0.02101939171552658, 0.34712308645248413, 0.015184612944722176, 0.26794469356536865, -0.4040788412094116, -0.14627838134765625, 0.10883597284555435, 0.08115652948617935, 0.004061225336045027, 0.07536830753087997, 0.2696227431297302, -0.13104446232318878, 0.500430166721344, -0.1439535915851593, 0.277445912361145, -0.1786133050918579, -0.05459355190396309, -0.23051407933235168, 0.2875286042690277, -0.3185655176639557, -0.16405384242534637, 0.26813945174217224, -0.08859540522098541, 0.3424474000930786, 0.01930377632379532, 0.44857311248779297, -0.22766698896884918, 0.1455591470003128, -0.0391327440738678, -0.15679478645324707, 0.3950023949146271, 0.21865150332450867, 0.24177871644496918, -0.057085540145635605, 0.10700929164886475, -0.1398312747478485, 0.054744571447372437, -0.5332152843475342, -0.14452068507671356, 0.04843616858124733, 0.2813415229320526, -0.11093277484178543, 0.04434642940759659, -0.4615257680416107, -0.2585170269012451, 0.018442213535308838, 0.03684790059924126, 0.06546986103057861, -0.23707519471645355, 0.10366794466972351, -0.2727523446083069, 0.119480200111866, 0.18611887097358704, -0.1496264934539795, 0.08114057779312134, -0.15082034468650818, -0.18407312035560608, -0.10368714481592178, 0.09497623145580292, -0.23242513835430145, -0.028052307665348053, -0.34313639998435974, 0.17889519035816193, 0.4966640770435333, -0.5603682398796082, -0.6766213178634644, -0.19450239837169647, -0.21672479808330536, 0.10571853071451187, 0.052240848541259766, 0.12844455242156982, -0.1195860505104065, -0.07556945085525513, 0.11651293933391571, 0.23148465156555176, 0.06893377751111984, -0.043196260929107666, -0.2029491811990738, -0.15801392495632172, -0.3941795825958252, 0.2986283302307129, 0.33048996329307556, -0.08664389699697495, 0.12136630713939667, -0.046384651213884354, 0.05001820623874664, -0.17774918675422668, 0.05388869345188141, 0.4001021981239319, 0.087631456553936, 0.049962118268013, -0.10794752091169357, -0.39609190821647644, -0.2692897617816925, 0.3049807846546173, -0.23149119317531586, -0.0901011973619461, 0.04228635132312775, -0.16579702496528625, -0.3381284773349762, 0.12523482739925385, -0.25495848059654236, -0.13805155456066132, 0.1980193853378296, 0.21799412369728088, 0.21073448657989502, 0.043291788548231125, -0.18562935292720795, 0.20936930179595947, 0.13472677767276764, 0.04546556994318962, -0.3934728503227234, 0.09887862950563431, -0.1647430956363678, -0.08480293303728104, -0.01860905811190605, 0.03183300048112869, 0.22331863641738892, -0.11318963021039963, -0.13132557272911072, 0.2966015338897705, -0.14107438921928406, 0.19472941756248474, 0.17668059468269348, 0.12903380393981934, 0.06987597793340683, -0.5461262464523315, 0.3711172938346863, 0.08369812369346619, 0.013775701634585857, 0.1292070746421814, -0.12382694333791733, 0.39759260416030884, 0.22586344182491302, -0.10468266159296036, -0.007353436201810837, 0.057475924491882324, 0.4007212817668915, -0.18396490812301636, 0.13768137991428375, -0.2009601593017578, 0.32231655716896057, -0.07788640260696411, 0.08909019827842712, -0.14088723063468933, -0.361868292093277, 0.22394287586212158, 0.29937228560447693, -0.07305222749710083, 0.2745702266693115, 0.051355186849832535, -0.2327727973461151, 0.10065113753080368, -0.16562993824481964, 0.1345452070236206, 0.40024882555007935, 0.16550083458423615, 0.15854094922542572, 0.11279754340648651, 0.0303281769156456, -0.12193158268928528, 0.06401839852333069, 0.07981318980455399, -0.30829083919525146, 0.13864529132843018, 0.22006487846374512, 0.047818467020988464, -0.25842395424842834, -0.04352334886789322, -0.1759921908378601, 0.0869176983833313, -0.1290673464536667, -0.05492715537548065, -0.28915834426879883, -0.01870899088680744, -0.021273650228977203, -0.12968599796295166, -0.3267957270145416, -0.28940412402153015, 0.08331463485956192, 0.30192360281944275, 0.3182376027107239, 0.07388751953840256, -0.47916537523269653, -0.10916386544704437, -0.025845646858215332, -0.15133033692836761, -0.23010069131851196, 0.18495531380176544, -0.08721377700567245, 0.12949004769325256, -0.012881595641374588, -0.031949616968631744, 0.2024100124835968, -0.3810044527053833, 0.29932308197021484, -0.39082464575767517, -0.23954784870147705, 0.12278387695550919, -0.09641878306865692, 0.3663293719291687, 0.1242184117436409, 0.0071554407477378845, 0.04958996921777725, 0.2909891903400421, 0.3144437372684479, -0.569962739944458, -0.059918515384197235, -0.02514858916401863, -0.010382445529103279, -0.11314483731985092, -0.00269491970539093, -0.2132197916507721, -0.4026874005794525, -0.358548104763031, -0.1287240833044052, 0.22208257019519806, 0.08458398282527924, -0.1363319456577301, -0.03533016890287399, -0.023460496217012405, -0.052817922085523605, 0.013287520036101341, -0.3657124936580658, -0.7164652943611145, 0.5234923362731934, -0.3666723966598511, -0.343744695186615, 0.315321147441864, 0.04939603805541992, 0.32500165700912476, 0.026676930487155914, -0.5940796732902527, -0.4159547984600067, -0.19209671020507812, 0.24970221519470215, 0.07498952746391296, 0.19580592215061188, 0.25181859731674194, -0.20472924411296844, -0.11693668365478516, -0.17701077461242676, -0.19275140762329102, -0.32998043298721313, -0.01041439175605774, 0.2748670279979706, -0.04866400361061096, 0.21048781275749207, -0.020535839721560478, 0.504395604133606, -0.004030738025903702, 0.29219236969947815, 0.5138953924179077, -0.015721933916211128, 0.38786253333091736, -0.1739790141582489, -0.22701986134052277, -0.10054958611726761, 0.03596305847167969, 0.11801300942897797, -0.08140617609024048, 0.3046610653400421, -0.02977428399026394, -0.3115227222442627, 0.0018642954528331757, 0.0753890872001648, -0.100046306848526, -0.02017918787896633, 0.2238382250070572, 0.1390817016363144, 0.11914783716201782, 0.21779069304466248, -0.33375197649002075, -0.1647450029850006, 0.06461785733699799, 0.2860427796840668, 0.07199718058109283, 0.2217724770307541, -0.6987012028694153, 0.2945079803466797, -0.35494813323020935, 0.2589453458786011, 0.1331322193145752, 0.29727688431739807, 0.08919039368629456, -0.035693492740392685, 0.24968001246452332, -0.031428731977939606, 0.292850136756897, -0.2753559350967407, 0.1924654245376587, 0.24880748987197876, -0.18901504576206207, -0.2577942907810211, -0.14766520261764526, -0.0607866607606411, 0.09505341947078705, 0.07411234080791473, 0.2206854522228241, -0.251130610704422, -0.20981155335903168, 0.19762831926345825, 0.1668665111064911, -0.12271352112293243, -0.05757030099630356, -0.2543344497680664, -0.3855940103530884, -0.21997825801372528, -0.1009286418557167, 0.16314777731895447, 0.024086009711027145, 0.1836426556110382, 0.13391637802124023, -0.28186753392219543, 0.022679101675748825, 0.2182975560426712, 0.22947268187999725, 0.4041045308113098, -0.17795416712760925, 0.08621716499328613, 0.13543915748596191, -0.25171709060668945, 0.23599638044834137, 0.6561264991760254, -0.06928141415119171, -0.19752490520477295, 0.23362895846366882, -0.023096924647688866, -0.1156221255660057, 0.1739463359117508, -0.13965925574302673, -0.0992717519402504, -0.23163774609565735, 0.1636510193347931, 0.03458210825920105, 0.2379446178674698, 0.27542051672935486, 0.021460745483636856, -0.44277065992355347, -0.265260249376297, 0.41334959864616394, 0.2995724380016327, 0.08543159067630768, 0.11068937182426453, -0.17490996420383453, -0.009616957977414131, -0.23603981733322144, 0.05759717524051666, 1.0173087120056152, 0.05723504722118378, 0.2175721973180771, 0.029011473059654236, 0.0634130984544754, 0.056551966816186905, -0.24853400886058807, 0.20465287566184998, -0.12233318388462067, -0.3878816068172455, -0.14553579688072205, -0.1915268898010254, 0.014588907361030579, -0.16037605702877045, 0.07106810808181763, 0.34864887595176697, -0.058682121336460114, 0.21973343193531036, 0.12151791900396347, 0.05306718498468399, -0.21795593202114105, -0.17735540866851807, -0.47430452704429626, 0.2352398931980133, 0.024823766201734543, 0.34449324011802673, -0.1160425916314125, -0.03816457837820053, -0.18437328934669495, -0.027828242629766464, 0.0443977415561676, 0.2960224747657776, -0.04698340967297554, 0.1254900097846985, 0.014810508117079735, -0.5127175450325012, -0.17163610458374023, -0.012647401541471481, 0.08561890572309494, 0.09798566997051239, -0.16778354346752167, 0.35723060369491577, 0.062294263392686844, -0.14300468564033508, 0.1259821355342865, -0.12414699047803879, -0.014224881306290627, -0.17085713148117065, -0.08811645954847336, 0.33636540174484253, -0.051058486104011536, -0.2698978781700134, -0.3379271924495697, 0.10861359536647797, -0.06416405737400055, -0.03677312657237053, -0.09968160092830658, -0.1845031976699829, 0.26470938324928284, -0.19556686282157898, 0.19588345289230347, 0.21992790699005127, -0.051443688571453094, 0.07630296051502228, -0.023475538939237595, -0.27158868312835693, -0.12406374514102936, 0.44348350167274475, 0.13636212050914764, -0.1830362230539322, 0.15230149030685425, 0.1323879510164261, -0.07473468780517578, -0.16107657551765442, -0.07924643158912659, 0.1676332801580429, -0.5585591793060303, 0.05910317972302437, -0.23989920318126678, -0.08129248768091202, 0.06038351729512215, 0.15776662528514862, 0.25058966875076294, -0.2583152949810028, 0.07150493562221527, -0.5780922174453735, -0.26975446939468384, 0.02959347888827324, -0.058696191757917404, 0.18199172616004944, 0.004594329744577408, 0.013815788552165031, 0.013300592079758644, -0.14909428358078003, -0.39931410551071167, 0.2320011854171753, -0.1090373769402504, -0.10811756551265717, 0.0873616486787796, -0.007823076099157333, 0.2727997899055481, 0.06367452442646027, 0.1723722666501999, 0.1119483932852745, -0.4826047718524933, -0.22584760189056396, -0.006813501939177513, 0.09103216230869293, -0.03556566685438156, -0.14361874759197235, -0.00724733667448163, -0.09986250847578049, -0.11021891236305237, -0.008454352617263794, 0.11707715690135956, 0.20975074172019958, 0.041296832263469696, -0.20900987088680267, -0.11594587564468384, 0.011296175420284271, -0.15041986107826233, 0.36458203196525574, 0.1342121958732605, 0.049959369003772736, -0.0004247915931046009, 0.1925399750471115, -0.13597089052200317, -0.01299741119146347, -0.11213900148868561, -0.08918177336454391, 0.061237335205078125, 0.2666771709918976, 0.3983951508998871, -0.21411101520061493, 0.21447649598121643, 0.5816681981086731, 0.2518545985221863, 0.22961245477199554, -0.29591020941734314, 0.16073811054229736, 0.1413058042526245, 0.32879531383514404, -0.3148750364780426, -0.27815935015678406, 0.4195448160171509, 0.2699160873889923, 0.06077386066317558, 0.3457842767238617, 0.3644166588783264, 0.12672042846679688, 0.4909856915473938, 0.24108994007110596, 0.7073953151702881, -0.09043623507022858, 0.30906176567077637, 0.33320268988609314, -0.0311150923371315, 0.08852316439151764, 0.5610828995704651, 0.264636367559433, 0.10687790811061859, 0.5835360884666443, -0.07246581465005875, 0.4266376495361328, 0.09149714559316635, 0.05570404604077339, -0.14978793263435364, -0.17353558540344238, -0.26298049092292786, 0.09684693068265915, 0.12158318608999252, 0.159330815076828, -0.11357128620147705, -0.10258675366640091, -0.2767370045185089, -0.07490765303373337, -0.41282883286476135, 0.20288868248462677, -0.1576402485370636, 0.009830556809902191, 0.0702221617102623, -0.2928049862384796, -0.06222563236951828, 0.08222679793834686, 0.025968031957745552, 0.08877566456794739, 0.10943222045898438, 0.04198670759797096, -0.1684211641550064, -0.27362918853759766, -0.15726357698440552, 0.2412979006767273, 0.08170931041240692, -0.1552296131849289, 0.36936551332473755, 0.15134944021701813, -0.10859240591526031, -0.020573094487190247, 0.30774497985839844, 0.3604058623313904, 0.11557415872812271, 0.06116601452231407, -0.05243544280529022, 0.0979597419500351, -0.07908371835947037, -0.15986421704292297, 0.12522631883621216, 0.05049288645386696, 0.30377697944641113, 0.18883880972862244, 0.27696940302848816, -0.29731664061546326, 0.2524174451828003, -0.26542800664901733, 0.1609313040971756, -0.27562710642814636, -0.1300501525402069, -0.14355023205280304, -0.083307184278965, -0.24921277165412903, -0.10994068533182144, -0.24493053555488586, -0.016088049858808517, 0.2885899543762207, -0.10559988766908646, 0.020326130092144012, -0.4095284044742584, 0.10320792347192764, -0.02760949358344078, 0.21060919761657715, 0.46020370721817017, -0.09421815723180771, -0.11565905064344406, -0.17806266248226166, -0.936528205871582, 0.306698203086853, -0.2836104929447174, -0.20834346115589142, 0.16222049295902252, -0.11185669153928757, -0.06829928606748581, 0.25748592615127563, 0.4689868688583374, 0.15690459311008453, 0.21408379077911377, 0.2086198776960373, -0.39695531129837036, -0.09383031725883484, 0.3109642267227173, 0.011094536632299423, 0.16616421937942505, -0.28094515204429626, -0.032566022127866745, -0.1328885406255722, 0.1413196325302124, -0.15115761756896973, -0.09384772181510925, -0.10223349928855896, -0.07180824875831604, 0.7232587933540344, 0.06363566219806671, 0.049497537314891815, 0.006365954875946045, -0.31309837102890015, -0.3735239803791046, -0.23019568622112274, -0.18442575633525848, -0.006505884230136871, 0.09046083688735962, 0.33275556564331055, -0.22017855942249298, -0.028315801173448563, -0.4172605574131012, 0.189425528049469, 0.11888004839420319, -0.02969662845134735, -0.13131989538669586, 0.18387934565544128, -0.3572978079319, 0.12472990900278091, 0.3231876790523529, 0.20142295956611633, 0.04413854703307152, 0.2464495748281479, -0.1630656123161316, -0.39189139008522034, 0.45604798197746277, 0.03839884325861931, -0.27262240648269653, -0.15722410380840302, 0.0500912219285965, 0.020418621599674225, -0.19614997506141663, -0.2693955898284912, 0.272989958524704, 0.24591279029846191, 0.11814084649085999, -0.12393118441104889, 0.15389175713062286, -0.2061365246772766, -0.019058752804994583, 0.03741654381155968, 0.49051764607429504, 0.0262592900544405, -0.13666164875030518, 0.2494582235813141, 0.0027827732264995575 ]
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.48817336559295654, -0.10125721991062164, 0.2679367661476135, 0.24242693185806274, 0.07438801974058151, -0.13321955502033234, 0.24527542293071747, 0.1442694365978241, 0.1187141016125679, -0.2436654418706894, 0.2646331191062927, 0.04616197943687439, 0.046501219272613525, 0.19172696769237518, -0.32676002383232117, 0.044765785336494446, 0.12794174253940582, 0.011155776679515839, -0.03764417767524719, -0.14200150966644287, 0.16778366267681122, -0.20663276314735413, 0.12030035257339478, -0.22432094812393188, 0.10204814374446869, 0.07733601331710815, 0.15690764784812927, -0.31002551317214966, -0.4581517279148102, 0.6455742120742798, -0.06338100135326385, 0.26817700266838074, 0.6048031449317932, -0.00010537993512116373, 0.021037884056568146, 0.26430898904800415, -0.04645184427499771, 0.16474957764148712, -0.43619948625564575, -0.2859489321708679, -0.3566255271434784, -0.03016701526939869, -0.22491472959518433, -0.04071221873164177, -0.22274444997310638, -0.10895960032939911, -0.11490178108215332, 0.2539047598838806, 0.22421090304851532, 0.294454962015152, 0.388627290725708, 0.1530681550502777, -0.21500137448310852, 0.4348999261856079, -0.07210992276668549, -0.31418731808662415, 0.10848847031593323, 0.38062506914138794, 0.18384134769439697, 0.46409884095191956, 0.27481478452682495, -0.04134295880794525, 0.05878480523824692, 0.15891534090042114, 0.09773270040750504, -0.04952622205018997, -0.46378013491630554, 0.038880594074726105, 0.3281194865703583, 0.3879866302013397, -0.2812056243419647, -0.34497061371803284, -0.07006536424160004, 0.06340298801660538, -0.3715289533138275, 0.28637367486953735, 0.18026424944400787, -0.013923591934144497, 0.04063151031732559, 0.018126823008060455, -0.048152390867471695, -0.05538291856646538, 0.1107015311717987, -0.034117646515369415, 0.2764603793621063, -0.22529880702495575, -0.03317120671272278, 0.10915862023830414, -0.0374770313501358, 0.23858772218227386, 0.08675190806388855, -0.055585552006959915, 0.16896560788154602, -0.2702021300792694, 0.06840551644563675, 0.007477939128875732, -0.08387767523527145, 0.3481564223766327, -0.0777064710855484, -0.19825392961502075, 0.0007951613515615463, -0.12921376526355743, 0.06225459650158882, 0.09460608661174774, 0.14081990718841553, 0.08070079982280731, 0.03240271657705307, 0.20747168362140656, 0.16733284294605255, 0.08492183685302734, -0.07909689843654633, -0.13016140460968018, -0.035225674510002136, 0.15702468156814575, -0.041582539677619934, 0.37306928634643555, -0.3932171165943146, -0.26540407538414, 0.05481135845184326, 0.08347026258707047, 0.06911221146583557, 0.07208187878131866, 0.25623172521591187, -0.104668989777565, 0.33722299337387085, -0.14892198145389557, 0.43225395679473877, -0.22055545449256897, 0.038446951657533646, -0.20848320424556732, 0.3019190728664398, -0.29578593373298645, -0.2560023367404938, 0.2096581608057022, -0.15046194195747375, 0.3913123607635498, 0.07291935384273529, 0.3850792646408081, -0.1997150033712387, 0.061492107808589935, 0.008468417450785637, -0.30923157930374146, 0.38157257437705994, 0.191742941737175, 0.1878197193145752, -0.12229996919631958, 0.1563587337732315, -0.15462464094161987, 0.09938143193721771, -0.5259687900543213, -0.06680157780647278, -0.0467686802148819, 0.26076382398605347, -0.12343733757734299, -0.06805753707885742, -0.589420735836029, -0.14135026931762695, -0.055317409336566925, 0.18391633033752441, 0.10500509291887283, -0.23989053070545197, 0.1146361380815506, -0.20363549888134003, 0.23717570304870605, 0.1873573660850525, -0.2137732058763504, -0.02684950828552246, -0.018270613625645638, -0.35183823108673096, -0.09155995398759842, 0.15202194452285767, -0.19241538643836975, -0.019013315439224243, -0.2748939096927643, 0.335999071598053, 0.4756493866443634, -0.5591961741447449, -0.565131664276123, -0.09633263945579529, -0.2180439680814743, 0.0007034670561552048, -0.020006492733955383, 0.09620565176010132, -0.11177179962396622, -0.000489391852170229, 0.09948661923408508, 0.24887339770793915, 0.06312213093042374, -0.022626059129834175, -0.1768684834241867, -0.22660082578659058, -0.38624513149261475, 0.3425418436527252, 0.2518790364265442, -0.09440899640321732, 0.0663158968091011, -0.00023513194173574448, 0.1595534086227417, -0.08313184976577759, -0.048657938838005066, 0.37308162450790405, 0.22867260873317719, 0.0447256937623024, -0.10366899520158768, -0.3814464211463928, -0.3556775748729706, 0.289523720741272, -0.09283274412155151, -0.15574197471141815, 0.04682709276676178, -0.15422984957695007, -0.4698534607887268, 0.2062281221151352, -0.25095224380493164, -0.08038297295570374, 0.13269643485546112, 0.08986711502075195, 0.205564945936203, 0.03268959000706673, -0.23760652542114258, 0.0768260583281517, 0.05264370143413544, 0.11502702534198761, -0.3940128982067108, 0.23547695577144623, -0.08728238940238953, -0.16352106630802155, 0.06840760260820389, 0.06498682498931885, 0.21223360300064087, -0.23789215087890625, -0.13212433457374573, 0.3139253854751587, -0.09635340422391891, 0.14059346914291382, 0.24120861291885376, 0.03670471906661987, 0.06820046156644821, -0.6196577548980713, 0.2208232581615448, 0.07193499803543091, -0.01068954449146986, 0.13093620538711548, -0.08789829164743423, 0.3659489154815674, 0.09591171145439148, -0.11232919245958328, -0.07867570966482162, 0.09644242376089096, 0.37415480613708496, -0.18692202866077423, 0.12587854266166687, -0.0770229920744896, 0.35278648138046265, -0.08772295713424683, 0.1305992752313614, -0.218817338347435, -0.3352217674255371, 0.09510116279125214, 0.243926003575325, -0.08090882748365402, 0.20463970303535461, 0.0871257558465004, -0.10896765440702438, 0.16965878009796143, -0.08366440236568451, 0.058660175651311874, 0.42006486654281616, 0.19100578129291534, 0.022281870245933533, 0.109669990837574, -0.012607765384018421, -0.11495567858219147, 0.0522860549390316, 0.06968081742525101, -0.2818581163883209, 0.054544124752283096, 0.11045979708433151, 0.04077181965112686, -0.30767783522605896, -0.13452516496181488, -0.15212449431419373, 0.11308968812227249, -0.11949940025806427, -0.11159591376781464, -0.1741674840450287, -0.09300079941749573, -0.0067223673686385155, -0.044184572994709015, -0.22301387786865234, -0.18070422112941742, -0.003233838826417923, 0.25088176131248474, 0.30063655972480774, 0.18570584058761597, -0.42579954862594604, -0.17678169906139374, 0.04923257976770401, -0.3311212956905365, -0.24144338071346283, 0.27396073937416077, -0.06484667211771011, 0.12813912332057953, 0.0012632282450795174, 0.10260693728923798, 0.2570173442363739, -0.3908741772174835, 0.28349220752716064, -0.37801483273506165, -0.2129535973072052, 0.0874035432934761, -0.2608725428581238, 0.39517027139663696, 0.16707348823547363, 0.06188395246863365, -0.10022707283496857, 0.23853789269924164, 0.37193506956100464, -0.4895251393318176, -0.024997543543577194, 0.03113526478409767, 0.011684499680995941, -0.20289063453674316, 0.0012989267706871033, -0.2291317582130432, -0.34068652987480164, -0.33328109979629517, 0.025175385177135468, 0.16010136902332306, 0.05426313728094101, -0.03209919482469559, 0.084642194211483, 0.012780087999999523, -0.1503259241580963, -0.12153148651123047, -0.24920965731143951, -0.6595410108566284, 0.47088348865509033, -0.21776214241981506, -0.4426345229148865, 0.2858899235725403, 0.06933815777301788, 0.27427369356155396, 0.07972150295972824, -0.5939117074012756, -0.34380051493644714, -0.20704954862594604, 0.4223085641860962, 0.048591338098049164, 0.21060766279697418, 0.19162708520889282, -0.2807765305042267, -0.05582233518362045, -0.19828036427497864, -0.2254241704940796, -0.3088796138763428, 0.03966628015041351, 0.24598363041877747, -0.0177326537668705, 0.20067989826202393, -0.14119693636894226, 0.45592546463012695, 0.15665380656719208, 0.22505025565624237, 0.5607690811157227, -0.07845442742109299, 0.29693707823753357, -0.1781841516494751, -0.3331463932991028, -0.07799701392650604, 0.13338616490364075, 0.13934588432312012, 0.004904106259346008, 0.2621769607067108, 0.04158475995063782, -0.2719682455062866, -0.06843282282352448, -0.008797239512205124, -0.07614696770906448, -0.05517849326133728, 0.1933763325214386, 0.07456918060779572, 0.01789282262325287, 0.2722100019454956, -0.16370943188667297, -0.10977629572153091, 0.07795350253582001, 0.3760092258453369, 0.06090862676501274, 0.2542286813259125, -0.6363354921340942, 0.19943195581436157, -0.4225568473339081, 0.2633745074272156, 0.02293528988957405, 0.30328449606895447, 0.02714500203728676, 0.1275615394115448, 0.22689300775527954, 0.017395667731761932, 0.37386637926101685, -0.21157889068126678, 0.235604390501976, 0.16902978718280792, -0.15636983513832092, -0.30377718806266785, -0.12200887501239777, -0.155605286359787, 0.08489841967821121, 0.18497410416603088, 0.4261046350002289, -0.2923204004764557, -0.20296820998191833, 0.24188435077667236, 0.1523057371377945, 0.03013913705945015, -0.13695339858531952, -0.30142346024513245, -0.5566598176956177, -0.19767601788043976, -0.06412509828805923, 0.20567913353443146, 0.06415201723575592, 0.18856419622898102, -0.028785794973373413, -0.2342074066400528, -0.06345853209495544, 0.1824837476015091, 0.2650255262851715, 0.3496652841567993, -0.15817391872406006, 0.20699726045131683, 0.08872739970684052, -0.34613266587257385, 0.21187469363212585, 0.6712542772293091, -0.03439473733305931, -0.45213937759399414, 0.09676998853683472, -0.037271831184625626, -0.004940822720527649, 0.06295518577098846, -0.17537692189216614, -0.058041252195835114, -0.2222934067249298, 0.15226973593235016, 0.056397587060928345, 0.24177514016628265, 0.38567018508911133, 0.0768095999956131, -0.4572792649269104, -0.29300883412361145, 0.5171842575073242, 0.2759592533111572, 0.11061026155948639, 0.2264082133769989, -0.07557062804698944, 0.005940715316683054, -0.1686210334300995, -0.03679487109184265, 0.8605216145515442, -0.020094193518161774, -0.009047780185937881, 0.20497038960456848, 0.023418962955474854, 0.19267098605632782, -0.10321463644504547, 0.0858306884765625, -0.16769906878471375, -0.43185776472091675, -0.12421515583992004, -0.18552008271217346, 0.1440001130104065, -0.058413468301296234, -0.011208001524209976, 0.2490832358598709, -0.01739533245563507, 0.10418063402175903, 0.07067080587148666, 0.07292884588241577, -0.15683849155902863, -0.18701381981372833, -0.5920320153236389, 0.22917529940605164, -0.01891934871673584, 0.35688209533691406, -0.16453981399536133, -0.06271326541900635, -0.18355681002140045, -0.11840228736400604, -0.005898706614971161, 0.3321670889854431, -0.016996631398797035, 0.0666976273059845, 0.03307248279452324, -0.540325939655304, -0.04950504004955292, 0.06615365296602249, 0.06495432555675507, 0.12411335110664368, -0.23675289750099182, 0.31963661313056946, 0.005638286471366882, -0.24709385633468628, 0.11954451352357864, -0.13841086626052856, -0.1862735003232956, -0.11693822592496872, -0.18020913004875183, 0.1975170373916626, -0.04738781973719597, -0.21741385757923126, -0.22882267832756042, 0.036548469215631485, -0.10862970352172852, -0.11266078799962997, -0.1459476500749588, -0.21846458315849304, 0.2761244475841522, -0.227749302983284, 0.18006643652915955, 0.24619749188423157, -0.01488393172621727, 0.11215315759181976, 0.08978913724422455, -0.31750932335853577, -0.18006545305252075, 0.3480762839317322, -0.03944481164216995, -0.12059105932712555, 0.12185415625572205, 0.19297289848327637, -0.03525704890489578, -0.1940976083278656, 0.046047329902648926, 0.20119430124759674, -0.6195085644721985, 0.02085595205426216, -0.1373981237411499, 0.014248594641685486, -0.05306539312005043, 0.27016088366508484, 0.24818192422389984, -0.3544396460056305, 0.24667035043239594, -0.5972573757171631, -0.20120017230510712, 0.14331267774105072, -0.01297510415315628, 0.21363018453121185, 0.10111016780138016, 0.08657848834991455, 0.11632058024406433, -0.20846928656101227, -0.3718104958534241, 0.14842696487903595, -0.08513406664133072, -0.09411618113517761, 0.14082098007202148, 0.09268505126237869, 0.2820592224597931, 0.0364789180457592, 0.19129207730293274, 0.090354785323143, -0.3732389509677887, -0.234014630317688, -0.03996885567903519, 0.07093508541584015, -0.026769235730171204, -0.15226015448570251, 0.0009432462975382805, -0.06217911094427109, -0.20293422043323517, -0.04877536743879318, 0.14839015901088715, 0.19908756017684937, 0.04717902094125748, -0.11445368826389313, 0.008384395390748978, 0.030397869646549225, -0.23314493894577026, 0.285408616065979, 0.1517048180103302, 0.09035289287567139, -0.1003665179014206, 0.14426098763942719, -0.059041064232587814, -0.04323993995785713, -0.2194739580154419, -0.10265738517045975, 0.14568334817886353, 0.28541383147239685, 0.2501859962940216, -0.19645096361637115, 0.3128248453140259, 0.513656735420227, 0.2690923810005188, 0.31900662183761597, -0.27704572677612305, 0.2185477316379547, 0.15709468722343445, 0.32231655716896057, -0.3402841091156006, -0.16490210592746735, 0.37434789538383484, 0.32582810521125793, 0.02829534187912941, 0.36288386583328247, 0.24533045291900635, 0.16051700711250305, 0.33009400963783264, 0.1862073540687561, 0.6517940759658813, 0.04808322340250015, 0.33175793290138245, 0.49079078435897827, -0.009580135345458984, 0.06816208362579346, 0.46288248896598816, 0.25847741961479187, 0.06249309331178665, 0.5506407022476196, -0.12201323360204697, 0.38237982988357544, 0.010941708460450172, 0.12272125482559204, -0.14260181784629822, -0.2383996844291687, -0.29245272278785706, -0.014076754450798035, 0.07631547749042511, 0.0464271679520607, -0.051743775606155396, 0.10193709284067154, -0.3627043068408966, -0.07678481191396713, -0.4085571765899658, 0.19557078182697296, -0.1277138888835907, 0.061122212558984756, 0.08159380406141281, -0.19395387172698975, -0.02485087141394615, 0.0003706328570842743, -0.039614226669073105, -0.0183502659201622, 0.2154422402381897, 0.0037960857152938843, -0.18776141107082367, -0.2962324917316437, 0.0072561949491500854, 0.3406340479850769, -0.021618478000164032, -0.11001454293727875, 0.38683784008026123, 0.0700778216123581, -0.09094907343387604, -0.02020397037267685, 0.38416588306427, 0.32090896368026733, 0.18812336027622223, 0.10014282166957855, -0.06892657279968262, 0.10084898769855499, -0.05254652723670006, -0.06263677030801773, 0.1833416372537613, 0.019440531730651855, 0.40598469972610474, 0.2199336588382721, 0.29205814003944397, -0.26019158959388733, 0.16276204586029053, -0.17336152493953705, 0.1274046152830124, -0.2675941586494446, 0.0019135549664497375, -0.3240405023097992, -0.11664090305566788, -0.2153548002243042, -0.15643057227134705, -0.18796300888061523, 0.0399816669523716, 0.29716119170188904, -0.00815588515251875, 0.044037241488695145, -0.3504030704498291, 0.09831301122903824, -0.11319532990455627, 0.1918172985315323, 0.39567679166793823, 0.022183816879987717, -0.23519383370876312, -0.11023269593715668, -0.8148162364959717, 0.2829461693763733, -0.24055013060569763, -0.35485488176345825, 0.21548445522785187, -0.16331636905670166, -0.10390468686819077, 0.3233463168144226, 0.40293246507644653, 0.15405994653701782, 0.22691284120082855, 0.24292729794979095, -0.36440011858940125, -0.10511615872383118, 0.1346462368965149, 0.06780487298965454, 0.18774358928203583, -0.27484604716300964, 0.021661628037691116, -0.07156743109226227, 0.07031811028718948, -0.21778063476085663, -0.11807750165462494, -0.12925505638122559, -0.23973652720451355, 0.7350839972496033, 0.020960945636034012, 0.1643332690000534, -0.06894759833812714, -0.15079142153263092, -0.33297011256217957, -0.37566763162612915, -0.19210119545459747, 0.17446626722812653, 0.006828818470239639, 0.24602332711219788, -0.14615455269813538, 0.015409061685204506, -0.3872995376586914, 0.17980404198169708, 0.07976306974887848, -0.058799341320991516, -0.10461681336164474, 0.18209952116012573, -0.33726319670677185, 0.058262038975954056, 0.23785869777202606, 0.16923215985298157, -0.013562925159931183, 0.23194827139377594, -0.11460429430007935, -0.442940354347229, 0.4428628087043762, 0.01886596530675888, -0.2732517123222351, -0.07015193998813629, 0.06074828654527664, 0.07881896197795868, -0.2855616509914398, -0.33776283264160156, 0.33958491683006287, 0.28118380904197693, 0.1168803721666336, -0.0960109680891037, 0.16937044262886047, -0.1990388035774231, -0.03343915566802025, 0.11445976793766022, 0.565711259841919, -0.0420866385102272, -0.1423904001712799, 0.4052656292915344, -0.009842801839113235 ]
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.27593740820884705, -0.3480374217033386, -0.0593666136264801, 0.3470790982246399, 0.1086408868432045, 0.05548489838838577, 0.0214385986328125, 0.21326732635498047, 0.31078818440437317, 0.06811357289552689, -0.23722738027572632, 0.21728762984275818, -0.07426787167787552, 0.18294000625610352, 0.2306460291147232, -0.16709937155246735, 0.018207326531410217, 0.03839600086212158, 0.10407383739948273, -0.10596632957458496, -0.006804697215557098, 0.06880657374858856, -0.23525302112102509, 0.0341520719230175, -0.20676878094673157, -0.02873278595507145, 0.092677041888237, 0.33188337087631226, -0.36993300914764404, -0.3751952052116394, 0.613910436630249, -0.0842423290014267, 0.18517588078975677, 0.5841585993766785, -0.00011201744200661778, 0.06529664993286133, 0.13743966817855835, -0.10217470675706863, -0.07750017940998077, -0.5789536833763123, -0.3472648859024048, -0.400753915309906, -0.08617828041315079, -0.1636054962873459, -0.05116748809814453, -0.11172913759946823, -0.015020495280623436, -0.17295116186141968, 0.5082510709762573, 0.36959296464920044, 0.22408366203308105, 0.5469508171081543, 0.17208176851272583, -0.13783150911331177, 0.36112427711486816, 0.15620459616184235, -0.23778791725635529, 0.43675220012664795, 0.32167690992355347, 0.1157640814781189, 0.41128817200660706, 0.17754559218883514, -0.0996759757399559, -0.1689160317182541, 0.13081371784210205, 0.01335623674094677, -0.22667068243026733, -0.44701987504959106, 0.07840226590633392, 0.20777630805969238, 0.3536137342453003, -0.13388538360595703, -0.4127598702907562, -0.36149781942367554, 0.1108664721250534, -0.1548251360654831, 0.27279630303382874, 0.1956171691417694, -0.035945214331150055, 0.1448785960674286, 0.05994207784533501, -0.1014329120516777, -0.01291896402835846, 0.05937981978058815, 0.017310939729213715, 0.3373430371284485, -0.25776949524879456, 0.014401402324438095, 0.10922390967607498, -0.07515318691730499, 0.3978736996650696, 0.05320795625448227, -0.04792926833033562, 0.12322265654802322, -0.14118416607379913, 0.005374491214752197, -0.05404464155435562, 0.013752821832895279, 0.24823930859565735, 0.019401952624320984, -0.07855647057294846, -0.08088546246290207, -0.2006906121969223, 0.024139728397130966, 0.1848609745502472, 0.30487027764320374, 0.14914116263389587, -0.10333167016506195, 0.1745782494544983, 0.3312751352787018, 0.19600282609462738, -0.043459370732307434, -0.296379029750824, 0.04456603154540062, -0.07223236560821533, -0.1512652337551117, 0.524373471736908, -0.2715303599834442, -0.3970918655395508, -0.01952715590596199, 0.02004208415746689, -0.0885455459356308, 0.1340084671974182, 0.21829357743263245, -0.10686563700437546, 0.2549780011177063, -0.0760687068104744, 0.2554854154586792, -0.1630507856607437, -0.15157653391361237, -0.1914505511522293, 0.40514224767684937, -0.23432539403438568, -0.1603657454252243, 0.1848147064447403, -0.24350565671920776, 0.4186854660511017, 0.1288653463125229, 0.3946612477302551, -0.15003013610839844, 0.10271075367927551, 0.09227626025676727, -0.1681758463382721, 0.3451003432273865, 0.1561536192893982, 0.12696433067321777, -0.014146074652671814, -0.23485513031482697, -0.11575305461883545, 0.05715145915746689, -0.5933468341827393, -0.14030614495277405, -0.19937562942504883, 0.16793093085289001, -0.2249722182750702, -0.1307011842727661, -0.48890557885169983, -0.15030065178871155, -0.11522512882947922, 0.041369449347257614, 0.17457714676856995, -0.09398297965526581, 0.22784876823425293, -0.12942473590373993, 0.18803894519805908, 0.43616414070129395, -0.23277299106121063, 0.033409446477890015, -0.17923730611801147, -0.09939521551132202, -0.0730854794383049, 0.09469972550868988, -0.29049447178840637, -0.05204429477453232, -0.4483391344547272, 0.19978581368923187, 0.2893699109554291, -0.7500986456871033, -0.5598582625389099, -0.08986182510852814, -0.47064208984375, 0.233006551861763, 0.004725918173789978, 0.09293925762176514, -0.025757011026144028, -0.11671839654445648, 0.18439403176307678, 0.0955507904291153, 0.16993369162082672, -0.12243109941482544, -0.20455434918403625, -0.24447830021381378, -0.26241058111190796, 0.2842635214328766, 0.06227127090096474, 0.06812142580747604, 0.0910939946770668, 0.28272077441215515, 0.209821879863739, -0.022856298834085464, -0.09339399635791779, 0.3326898217201233, 0.29237255454063416, 0.02337469905614853, -0.28683993220329285, -0.24777817726135254, -0.4232817590236664, 0.3309374749660492, 0.028075598180294037, -0.10510250926017761, -0.0007373318076133728, -0.22657698392868042, -0.5678091645240784, 0.16133266687393188, -0.18888945877552032, -0.1785440742969513, 0.06777366995811462, 0.1239679604768753, 0.15140029788017273, 0.049659181386232376, -0.24743244051933289, 0.22337831556797028, 0.018843619152903557, 0.154360830783844, -0.5641950368881226, 0.231150284409523, -0.11551328748464584, -0.06040988117456436, 0.035269200801849365, 0.046638838946819305, 0.25018176436424255, -0.2004784643650055, -0.05564713478088379, 0.3803125321865082, -0.19201262295246124, 0.015970036387443542, 0.25293290615081787, 0.052241548895835876, 0.19395548105239868, -0.49884355068206787, 0.24358779191970825, 0.054659683257341385, 0.023515377193689346, 0.16728425025939941, -0.2205289900302887, 0.44482845067977905, 0.030579624697566032, -0.23731619119644165, -0.14011995494365692, 0.12625202536582947, 0.22308292984962463, -0.1306058168411255, -0.027224993333220482, -0.14736418426036835, 0.2565683424472809, -0.29585641622543335, 0.4428706169128418, -0.19185853004455566, -0.3940768241882324, 0.09244191646575928, 0.25510501861572266, -0.09547017514705658, 0.1634530872106552, 0.10629818588495255, 0.0065809935331344604, 0.07547877728939056, 0.09183290600776672, 0.17481526732444763, 0.44845640659332275, 0.12878401577472687, 0.045522768050432205, 0.12200789153575897, 0.11265307664871216, -0.18755948543548584, 0.18221387267112732, -0.05994783341884613, -0.41532188653945923, 0.05256936699151993, 0.22997871041297913, 0.071446992456913, -0.354528546333313, -0.24064213037490845, -0.18772177398204803, 0.030026789754629135, -0.24943557381629944, -0.017913930118083954, -0.12863358855247498, -0.2612888216972351, -0.028374508023262024, -0.005692390725016594, -0.3994726538658142, -0.14123572409152985, -0.14873157441616058, 0.27083680033683777, 0.24932855367660522, 0.00640427740290761, -0.3584638237953186, 0.1185186505317688, -0.007516210898756981, -0.136756032705307, -0.31219789385795593, 0.36243027448654175, -0.028594747185707092, 0.04847722128033638, 0.11055396497249603, -0.029360732063651085, 0.23589830100536346, -0.4157184958457947, 0.10523217171430588, -0.35739508271217346, -0.326935350894928, 0.045169759541749954, -0.2162959724664688, 0.4289378821849823, 0.14537806808948517, 0.2217923253774643, -0.0008092969655990601, 0.052984438836574554, 0.20600828528404236, -0.21674789488315582, -0.02999837137758732, -0.21004076302051544, 0.0807584747672081, -0.1460525095462799, 0.006058916449546814, -0.026528827846050262, -0.40589988231658936, -0.37755656242370605, 0.2012755423784256, 0.14822927117347717, -0.03480254113674164, 0.20053516328334808, 0.009733653627336025, 0.11228526383638382, -0.17344476282596588, -0.14913178980350494, -0.1994175910949707, -0.8692610263824463, 0.4091027081012726, -0.20428529381752014, -0.39791107177734375, 0.22636961936950684, 0.19632932543754578, 0.17211966216564178, -0.1776619404554367, -0.5201545357704163, -0.4196142554283142, -0.22183366119861603, 0.4353312849998474, -0.002196677029132843, 0.1379334032535553, 0.25158244371414185, -0.28240343928337097, 0.007737277075648308, -0.13846470415592194, -0.27884742617607117, -0.2825561463832855, 0.22684547305107117, 0.172235369682312, -0.0015173442661762238, 0.022435754537582397, -0.049886252731084824, 0.37948518991470337, 0.13088881969451904, 0.16113615036010742, 0.56105637550354, -0.07442913949489594, 0.4397810995578766, -0.17662981152534485, -0.46284282207489014, -0.18869061768054962, 0.09637804329395294, 0.03230372071266174, -0.054435789585113525, 0.2265833616256714, 0.2790609896183014, -0.3562266230583191, -0.1995038539171219, -0.07672357559204102, -0.06453629583120346, -0.11057449877262115, 0.009363621473312378, -0.004446044564247131, 0.07964685559272766, 0.2570379972457886, -0.18332485854625702, -0.15097260475158691, -0.023652590811252594, 0.448408305644989, 0.22387191653251648, 0.2405962347984314, -0.5096664428710938, 0.2740626931190491, -0.3780689835548401, 0.18878930807113647, -0.03187273070216179, 0.3348712623119354, -0.14445818960666656, 0.0845755860209465, 0.22956010699272156, 0.01338258944451809, 0.44357311725616455, -0.07757068425416946, 0.35447001457214355, 0.07104314863681793, -0.12260059267282486, -0.2085142284631729, -0.1054215282201767, -0.043526541441679, 0.07709724456071854, 0.19538311660289764, 0.5760700702667236, -0.2933999001979828, -0.1664152890443802, 0.24041227996349335, 0.1298152506351471, 0.036487940698862076, 0.03773990646004677, -0.22540561854839325, -0.6075822710990906, -0.15737025439739227, -0.04449210315942764, 0.2579650282859802, -0.0299638994038105, 0.10444391518831253, 0.11273325979709625, -0.15937069058418274, -0.018980130553245544, 0.18711459636688232, 0.15398620069026947, 0.2559453845024109, -0.02474389225244522, 0.21651537716388702, 0.19080600142478943, -0.1383112072944641, 0.2649725377559662, 0.8343398571014404, 0.010611947625875473, -0.34290140867233276, 0.0427495501935482, 0.06391266733407974, 0.005725733935832977, 0.3877778947353363, -0.1211978942155838, -0.08534353226423264, 0.004819046705961227, 0.19616788625717163, -0.0233454667031765, 0.23013713955879211, 0.3775060176849365, -0.014942338690161705, -0.4949689209461212, -0.3380512297153473, 0.5363481640815735, 0.13028258085250854, 0.07425211369991302, 0.1904316395521164, 0.13293005526065826, 0.005733570083975792, -0.1068955734372139, -0.09717156738042831, 1.17197847366333, 0.05622548609972, 0.24920910596847534, 0.24550148844718933, -0.08527915924787521, 0.25620967149734497, -0.0884597897529602, -0.016800254583358765, -0.10136967897415161, -0.416463166475296, -0.14298208057880402, -0.11638627201318741, 0.141139954328537, -0.09018366038799286, 0.0010755807161331177, 0.13746003806591034, -0.17166109383106232, 0.17395947873592377, 0.11532146483659744, 0.16875874996185303, -0.2411976158618927, -0.06120395287871361, -0.47335803508758545, 0.14260995388031006, -0.0069752037525177, 0.3821440041065216, -0.201096773147583, -0.2299177050590515, -0.20837467908859253, -0.11662252992391586, -0.06601283699274063, 0.23273298144340515, 0.10835418850183487, -0.0123802050948143, -0.06929013133049011, -0.5590739250183105, 0.08887499570846558, 0.07135340571403503, 0.0060646310448646545, 0.17972341179847717, -0.3232235312461853, 0.3109990954399109, -0.06928469985723495, -0.20360015332698822, 0.12903043627738953, -0.13624411821365356, -0.11403121054172516, -0.03521218150854111, -0.12585757672786713, 0.09298399835824966, -0.14366090297698975, -0.13943174481391907, -0.3856866955757141, 0.25108444690704346, -0.27728915214538574, -0.22686104476451874, -0.16449794173240662, -0.183538019657135, 0.3595428466796875, -0.25304141640663147, 0.10408750176429749, 0.14854545891284943, 0.1078656017780304, -0.2641794681549072, 0.1531636267900467, -0.29874730110168457, -0.1521567553281784, 0.5257740616798401, -0.19889920949935913, 0.03345557302236557, 0.1715100258588791, 0.01307646557688713, 0.020417526364326477, -0.13792884349822998, 0.14128240942955017, 0.06168390437960625, -0.6248801946640015, 0.11882927268743515, -0.24299989640712738, 0.022717013955116272, -0.22952252626419067, 0.3468097150325775, 0.38233405351638794, -0.26651307940483093, 0.2866685092449188, -0.5378330945968628, -0.07704335451126099, 0.1276141256093979, 0.08791058510541916, 0.0976177528500557, 0.09596055001020432, 0.12194232642650604, 0.1061663031578064, -0.1598075032234192, -0.3132171630859375, 0.17005868256092072, -0.12199673801660538, -0.18988220393657684, 0.3454618752002716, 0.04323790222406387, 0.37520432472229004, -0.016101233661174774, 0.1467810720205307, 0.05332983285188675, -0.29338955879211426, -0.13978679478168488, -0.050471074879169464, 0.14103516936302185, 0.05210269242525101, -0.24710465967655182, 0.05494171008467674, -0.16843818128108978, -0.16050320863723755, 0.013202095404267311, 0.03670128434896469, 0.2360641360282898, 0.11743633449077606, -0.14498957991600037, -0.16024388372898102, 0.19506755471229553, -0.24500781297683716, 0.34189391136169434, 0.2247631847858429, 0.034051939845085144, -0.10053078830242157, 0.17875637114048004, -0.12208470702171326, 0.01832730323076248, -0.2611812949180603, -0.0856623575091362, 0.07760360836982727, 0.3909316956996918, 0.3376339375972748, -0.13468387722969055, 0.23933148384094238, 0.3750903010368347, 0.2669954001903534, 0.31256014108657837, -0.2661040425300598, 0.17914733290672302, 0.1509803831577301, 0.20225074887275696, -0.3251588046550751, -0.18439961969852448, 0.28958266973495483, 0.2845369875431061, 0.00792764499783516, 0.29079362750053406, 0.2425779402256012, 0.14553196728229523, 0.010319285094738007, 0.13364994525909424, 0.8089542388916016, 0.2793613076210022, 0.367297500371933, 0.5459698438644409, -0.1114082932472229, -0.023929413408041, 0.4142664968967438, 0.20472277700901031, 0.18806055188179016, 0.46599245071411133, -0.1904221773147583, 0.3810591399669647, 0.00385478138923645, 0.17149470746517181, -0.13262790441513062, -0.32778024673461914, 0.0001665055751800537, 0.021436110138893127, 0.13995394110679626, 0.038477398455142975, -0.015022553503513336, 0.13346190750598907, -0.4537135064601898, -0.05773903802037239, -0.2650274932384491, 0.272807240486145, -0.15445351600646973, 0.10550051927566528, 0.07804658263921738, -0.3082304894924164, -0.04167104512453079, 0.029684599488973618, -0.08328680694103241, -0.14579181373119354, 0.21159489452838898, 0.03862791880965233, -0.13418903946876526, -0.20178605616092682, -0.11250459402799606, 0.3462390899658203, 0.08701939880847931, -0.19626812636852264, 0.42368578910827637, 0.2718050479888916, -0.1568727195262909, 0.04980863630771637, 0.3523482084274292, 0.46505123376846313, 0.05593901872634888, 0.26564928889274597, 0.0647215023636818, 0.06830354034900665, -0.10310584306716919, -0.08045710623264313, 0.23124946653842926, 0.03518470749258995, 0.4370707869529724, 0.23584039509296417, 0.23888930678367615, -0.23836125433444977, 0.2402353286743164, -0.2012108713388443, 0.01603664830327034, -0.44596847891807556, -0.004109412431716919, -0.35929521918296814, -0.19207707047462463, -0.24634099006652832, -0.18671342730522156, -0.1615370362997055, 0.10502685606479645, 0.19374112784862518, 0.052290014922618866, 0.07899492979049683, -0.30367547273635864, 0.0630609467625618, -0.005830975249409676, 0.21796315908432007, 0.4620444178581238, -0.08861619979143143, -0.08662599325180054, -0.1759016215801239, -0.8899625539779663, 0.20225203037261963, -0.17494045197963715, -0.3776007294654846, 0.10363404452800751, -0.2651175856590271, -0.052191607654094696, 0.16557154059410095, 0.22131577134132385, 0.26031070947647095, 0.14729605615139008, 0.12785854935646057, -0.2324410080909729, -0.08360840380191803, 0.18633417785167694, 0.13791704177856445, 0.1272399127483368, -0.15802061557769775, 0.15139953792095184, 0.07856887578964233, 0.019998162984848022, -0.05841647833585739, -0.06052793189883232, -0.17887702584266663, -0.33292481303215027, 0.6669119596481323, 0.0348968543112278, 0.18830977380275726, -0.1101698949933052, -0.20086535811424255, -0.32985132932662964, -0.15506400167942047, -0.17849725484848022, 0.2253369688987732, 0.13516953587532043, 0.3386975824832916, -0.0827755481004715, -0.03105788305401802, -0.37157776951789856, 0.30311718583106995, 0.021615147590637207, -0.035338401794433594, -0.2809804081916809, 0.06849180161952972, -0.37363705039024353, 0.06309458613395691, 0.2487875372171402, 0.2379319965839386, -0.06996199488639832, 0.05898137390613556, -0.1878475546836853, -0.46837228536605835, 0.5749187469482422, -0.1280220001935959, -0.24617689847946167, 0.07783836871385574, 0.17045561969280243, -0.004245594143867493, -0.29911473393440247, -0.08877308666706085, 0.2385408580303192, 0.31785714626312256, -0.03178833797574043, -0.04752681404352188, 0.17783710360527039, -0.2720613181591034, -0.03164743632078171, 0.10307763516902924, 0.7202532291412354, 0.06735627353191376, -0.22547027468681335, 0.569835364818573, 0.02354925125837326 ]
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.05232269689440727, 0.23420944809913635, -0.023168426007032394, -0.013346292078495026, 0.38935381174087524, 0.2707953453063965, 0.49291592836380005, 0.2463013380765915, 0.021960560232400894, 0.12010999768972397, -0.08146566897630692, 0.4607103765010834, -0.1719954013824463, -0.15122415125370026, -0.013641304336488247, -0.07142224907875061, 0.29882198572158813, -0.10981579124927521, -0.007108956575393677, 0.15809400379657745, -0.42976778745651245, -0.016797209158539772, -0.06327955424785614, 0.05253199487924576, -0.14488711953163147, -0.10601525753736496, -0.019148241728544235, 0.06997914612293243, -0.01076117530465126, -0.2462688386440277, 0.09018073976039886, -0.05551354959607124, 0.17500248551368713, 0.39352795481681824, -0.0001104695547837764, -0.1174473911523819, 0.016952160745859146, -0.025437476113438606, -0.3840664327144623, -0.16772682964801788, -0.2794014811515808, -0.22320769727230072, -0.1534653902053833, -0.5357642769813538, 0.27652135491371155, -0.0022119302302598953, -0.12286128103733063, -0.31250718235969543, 0.17969442903995514, 0.2632056176662445, 0.2940930128097534, 0.10835742950439453, 0.2733328640460968, -0.16357363760471344, 0.07362089306116104, 0.09863312542438507, -0.37880802154541016, 0.26853957772254944, -0.2693730592727661, -0.0911075621843338, 0.12269970774650574, 0.29151567816734314, -0.10827967524528503, -0.06900990009307861, 0.1018073633313179, 0.04682440310716629, 0.11524038016796112, -0.24159979820251465, 0.2724040746688843, -0.10150032490491867, 0.41599875688552856, -0.5450066924095154, -0.4493023753166199, -0.006957791745662689, 0.23864251375198364, -0.3515322208404541, 0.243631511926651, 0.11555211246013641, 0.024603184312582016, 0.13353905081748962, 0.03932345286011696, -0.2681630253791809, -0.1927662193775177, 0.006016690284013748, 0.030041620135307312, -0.20125353336334229, -0.17308978736400604, 0.18610529601573944, 0.02523924596607685, -0.12778276205062866, 0.3110422194004059, -0.061842724680900574, -0.055818598717451096, 0.06762108951807022, -0.4282258450984955, -0.044142238795757294, -0.07651416212320328, -0.10827284306287766, -0.1432768553495407, 0.23413556814193726, -0.06290336698293686, -0.14092311263084412, 0.21533232927322388, 0.2729782164096832, -0.0386805422604084, 0.2238941490650177, -0.002631634473800659, 0.4684872627258301, 0.3518582582473755, 0.11973381042480469, 0.003254026174545288, -0.10482118278741837, 0.07833746075630188, 0.04824826866388321, 0.6009228825569153, -0.04789730906486511, 0.46251100301742554, -0.06035103648900986, -0.3091147243976593, 0.3789646327495575, 0.10445962101221085, -0.034299835562705994, 0.001284956932067871, 0.24470254778862, 0.15515603125095367, 0.03566385433077812, 0.0988406091928482, 0.3300386071205139, 0.15123596787452698, 0.16735637187957764, -0.18452918529510498, -0.023599427193403244, -0.07707667350769043, 0.12052226811647415, 0.1922728717327118, 0.2134324461221695, 0.06039509177207947, 0.14188966155052185, -0.1296939104795456, -0.08187122642993927, 0.0638231635093689, -0.19763720035552979, 0.031638555228710175, 0.32309454679489136, 0.08128747344017029, 0.24178187549114227, 0.13322381675243378, -0.2870056629180908, 0.047301776707172394, 0.21957361698150635, -0.1257433295249939, -0.1329016387462616, -0.4467068612575531, 0.23658689856529236, 0.12731152772903442, 0.14149120450019836, -0.4421406090259552, -0.2893781363964081, 0.4343978762626648, -0.09662371873855591, 0.23201251029968262, -0.018288511782884598, 0.08114822208881378, -0.40903541445732117, 0.05210892856121063, 0.2215987890958786, -0.10674460232257843, 0.22335407137870789, -0.31368520855903625, 0.1113029271364212, 0.12216915190219879, 0.1585766226053238, 0.07593540847301483, -0.07611797004938126, -0.13437049090862274, 0.03812716156244278, 0.4585376977920532, -0.37724900245666504, -0.49126914143562317, -0.19106432795524597, -0.15871968865394592, -0.02771160565316677, 0.0377323180437088, 0.057578057050704956, 0.20011243224143982, -0.1936406046152115, -0.03504573553800583, 0.1537041813135147, 0.15324565768241882, 0.03865978866815567, -0.21266475319862366, -0.014591540209949017, -0.015180006623268127, -0.1022224873304367, -0.08539018034934998, 0.13328710198402405, 0.17471858859062195, -0.007197476923465729, 0.1526002287864685, -0.08989593386650085, 0.24904729425907135, 0.29588764905929565, 0.4298884868621826, 0.03850216418504715, -0.016620339825749397, -0.2765231132507324, -0.6019973158836365, 0.10725551098585129, 0.25196659564971924, -0.29311805963516235, -0.32418274879455566, -0.07735881209373474, -0.2935066223144531, 0.01490258239209652, -0.22054480016231537, 0.009118301793932915, 0.16364647448062897, 0.2512086033821106, 0.01419030874967575, -0.02009650692343712, -0.24523170292377472, 0.267657071352005, -0.3195350766181946, 0.19486775994300842, -0.20833729207515717, 0.20121093094348907, -0.22178076207637787, -0.29692551493644714, -0.1804710179567337, 0.14209914207458496, 0.2723113000392914, 0.09250043332576752, -0.2997998595237732, 0.4652594029903412, 0.005930816754698753, 0.06988169252872467, -0.12980377674102783, -0.03260771930217743, -0.1389693170785904, -0.14735646545886993, 0.07759841531515121, -0.004706030711531639, 0.24196353554725647, 0.06903352588415146, -0.3622961640357971, 0.09007425606250763, -0.06377053260803223, 0.22058165073394775, 0.03016532212495804, 0.11507789045572281, 0.17081625759601593, -0.11709429323673248, -0.006445375271141529, -0.2951323091983795, 0.009042102843523026, 0.0664559155702591, 0.21988724172115326, -0.29322153329849243, -0.12163969874382019, 0.05609215795993805, 0.465021014213562, 0.06487731635570526, 0.17610004544258118, 0.1861427128314972, -0.09013772755861282, 0.019898895174264908, -0.012183645740151405, 0.6143770217895508, 0.38143664598464966, 0.009004774503409863, -0.058126162737607956, -0.029317041859030724, -0.14477890729904175, -0.05312338098883629, 0.1978243589401245, 0.010227523744106293, 0.19767671823501587, 0.13353636860847473, 0.33634814620018005, 0.020911626517772675, -0.1498912274837494, -0.1165846437215805, 0.17405983805656433, 0.3704487979412079, -0.3543176054954529, 0.0263503510504961, -0.13029350340366364, 0.1459713876247406, 0.0057374718599021435, -0.2700253427028656, -0.13905860483646393, -0.370757520198822, -0.3373614549636841, 0.6752127408981323, 0.006346721202135086, 0.08448789268732071, -0.11346204578876495, -0.12328137457370758, 0.02668534405529499, 0.12290141731500626, -0.37915971875190735, -0.04389609023928642, 0.05528636276721954, 0.0447738952934742, 0.07632270455360413, -0.22862908244132996, 0.5205156207084656, -0.039729371666908264, 0.05128656327724457, -0.5295782089233398, -0.1521553099155426, -0.21532011032104492, -0.1279689222574234, 0.30627885460853577, 0.11742018163204193, 0.31389787793159485, -0.14502345025539398, -0.2756856381893158, 0.24031201004981995, 0.11215652525424957, -0.10989634692668915, 0.1784873902797699, 0.1534108817577362, -0.030277609825134277, -0.04898424819111824, -0.1432928442955017, -0.2808941602706909, -0.37851959466934204, 0.3248312473297119, -0.06423790007829666, 0.12482619285583496, 0.09864383190870285, -0.1798851490020752, 0.11139994859695435, 0.0895824283361435, 0.08789331465959549, -0.26454946398735046, -0.19452175498008728, 0.43659645318984985, -0.23900015652179718, -0.22034652531147003, 0.03303666040301323, 0.15416914224624634, 0.13763545453548431, -0.01651347428560257, -0.24844872951507568, -0.06537390500307083, -0.24813099205493927, 0.471909761428833, -0.30349698662757874, 0.13039939105510712, 0.29348865151405334, 0.30407285690307617, -0.03279811516404152, -0.07504916936159134, -0.29424452781677246, -0.06985905021429062, 0.29079994559288025, 0.2731863558292389, -0.10388369113206863, 0.4481270909309387, -0.10904014110565186, 0.2552028298377991, 0.10940928757190704, 0.17020821571350098, 0.3902417719364166, 0.017050690948963165, 0.1714862883090973, -0.2735750377178192, -0.5204061269760132, -0.009663020260632038, -0.2813242971897125, -0.05769344046711922, -0.22827298939228058, -0.10181740671396255, 0.0015255119651556015, 0.0120261050760746, 0.02949218824505806, -0.1431078314781189, -0.2657018005847931, -0.09985975921154022, -0.2131257951259613, 0.2652602195739746, 0.0499812476336956, 0.07229877263307571, -0.2405623346567154, -0.09927526116371155, 0.0027421293780207634, 0.3389512300491333, 0.14102138578891754, -0.0870114341378212, -0.3747834265232086, -0.029065053910017014, -0.41433000564575195, 0.2166876494884491, -0.08478835225105286, 0.521547257900238, 0.051260437816381454, -0.08714655041694641, 0.09380943328142166, -0.011224249377846718, 0.5587118268013, -0.129103884100914, -0.007969234138727188, 0.2835007607936859, 0.337125301361084, -0.44983839988708496, -0.07150831818580627, 0.05951155349612236, 0.2570036053657532, -0.07824774086475372, 0.5526589155197144, -0.08925566077232361, 0.02650982327759266, 0.13155251741409302, 0.27332431077957153, -0.20385079085826874, -0.09626665711402893, -0.24847178161144257, -0.23620107769966125, -0.42784273624420166, 0.016236871480941772, -0.09695526957511902, 0.05537809059023857, -0.02052121050655842, 0.18086020648479462, -0.2027263343334198, -0.250031977891922, -0.137149840593338, 0.10488152503967285, 0.34595978260040283, -0.10310938209295273, 0.29912009835243225, -0.026797734200954437, 0.04924376681447029, 0.17333948612213135, 0.2378220111131668, -0.32259202003479004, -0.30998608469963074, 0.1373329609632492, -0.09731234610080719, 0.24580571055412292, -0.03127780556678772, -0.10003349930047989, 0.16952863335609436, -0.14430248737335205, 0.0795336663722992, -0.18887817859649658, -0.11261475086212158, 0.15327449142932892, -0.048041872680187225, -0.2947724759578705, -0.2696513831615448, 0.5598939061164856, 0.15213842689990997, -0.025652050971984863, 0.37246227264404297, 0.3968016505241394, -0.2268085926771164, 0.2994346022605896, -0.02493070811033249, 0.8441886901855469, 0.06682775169610977, 0.13037824630737305, 0.14751839637756348, -0.46045243740081787, 0.18100495636463165, 0.14924877882003784, 0.11740414798259735, -0.4521842300891876, -0.12117315828800201, 0.06082284450531006, -0.07660512626171112, 0.2374444305896759, -0.0963650792837143, -0.2902877926826477, 0.1960967481136322, -0.40510451793670654, 0.1026284247636795, 0.022263314574956894, -0.04237442463636398, -0.4003828763961792, -0.3322460651397705, -0.06421668827533722, 0.20727123320102692, -0.09535880386829376, -0.0329136960208416, 0.09672051668167114, 0.17447127401828766, -0.16753870248794556, -0.0488152839243412, -0.22891534864902496, 0.002429092302918434, -0.033078573644161224, 0.3684224486351013, -0.3195154070854187, -0.5360775589942932, 0.08699873089790344, 0.04261377453804016, 0.3537864089012146, 0.17561651766300201, -0.14518971741199493, 0.042650043964385986, 0.19010230898857117, 0.30622556805610657, 0.08305170387029648, -0.06590010970830917, 0.23517078161239624, 0.021959278732538223, -0.11835929751396179, -0.04416539520025253, -0.04097996652126312, -0.30008822679519653, -0.15200097858905792, 0.12036791443824768, 0.3928641080856323, -0.3056310713291168, -0.1839408576488495, -0.13246303796768188, -0.13159745931625366, -0.5064847469329834, 0.20508898794651031, -0.06190037727355957, -0.05684378743171692, 0.4300704896450043, -0.40372416377067566, -0.15849871933460236, 0.026249606162309647, 0.5301278233528137, -0.045866139233112335, 0.25938931107521057, 0.49737587571144104, -0.19791793823242188, -0.15868639945983887, -0.19093233346939087, 0.24718093872070312, -0.09295972436666489, -0.372448205947876, 0.2927717864513397, -0.10329332947731018, 0.16134940087795258, -0.1380385011434555, -0.18584288656711578, -0.034180574119091034, -0.07350341230630875, -0.07384201139211655, -0.4374048709869385, -0.5035831928253174, -0.04592268168926239, 0.20806081593036652, 0.12268783152103424, 0.018689438700675964, -0.07172025740146637, -0.24176189303398132, -0.11532387137413025, -0.338756263256073, 0.033312566578388214, -0.2050580233335495, 0.2201223075389862, 0.3785308003425598, -0.06232864409685135, 0.04902533069252968, -0.31516361236572266, 0.273401141166687, 0.21163339912891388, 0.17346054315567017, -0.28222551941871643, -0.29616379737854004, 0.061923667788505554, 0.0030182916671037674, -0.1757013350725174, -0.1491793543100357, -0.41681623458862305, -0.027630984783172607, -0.08999387174844742, -0.1916022151708603, 0.3427518904209137, 0.09356176108121872, 0.1535225510597229, -0.1112636923789978, 0.16433238983154297, 0.1769537478685379, 0.05092920735478401, -0.1345408707857132, -0.09258243441581726, -0.18505044281482697, 0.35653620958328247, -0.029032431542873383, 0.029155895113945007, -0.6280361413955688, -0.1532265543937683, -0.1658814698457718, 0.07374390959739685, 0.2543138861656189, -0.19663511216640472, -0.13228777050971985, 0.05639716237783432, 0.2729432284832001, 0.307105153799057, -0.23027251660823822, -0.33565881848335266, 0.32397565245628357, 0.23711945116519928, -0.19027835130691528, -0.10960561037063599, 0.08421725034713745, -0.25136157870292664, -0.0419563427567482, 0.04261963814496994, -0.12560461461544037, -0.0768938884139061, -0.4428114891052246, 0.040111783891916275, 0.3885575830936432, -0.4339447021484375, 0.1690964698791504, 0.6197505593299866, 0.004332259297370911, 0.1773350089788437, 0.38907548785209656, 0.11327765882015228, 0.013830780982971191, 0.6791509389877319, 0.026543881744146347, 0.32086774706840515, 0.32019829750061035, -0.11896379292011261, 0.0929333046078682, -0.0943547934293747, 0.07580287754535675, -0.26984891295433044, -0.2856898605823517, 0.232177734375, 0.0891435444355011, -0.0066608041524887085, -0.33130037784576416, -0.059994202107191086, 0.006547344848513603, 0.31667160987854004, -0.2491106390953064, -0.07740212976932526, -0.05085393041372299, -0.05630946159362793, 0.19673749804496765, -0.05537924915552139, -0.25162526965141296, -0.10578559339046478, 0.4781978726387024, 0.16164271533489227, 0.048095524311065674, -0.21938611567020416, -0.05508200824260712, 0.21410953998565674, 0.2809593975543976, -0.28969165682792664, 0.06017225980758667, 0.297110915184021, -0.1570805013179779, -0.23465892672538757, 0.15637479722499847, 0.3924597501754761, 0.1510295271873474, 0.12923218309879303, 0.14918732643127441, 0.04692113399505615, -0.2155088186264038, 0.1399225890636444, 0.19678173959255219, -0.0572788268327713, 0.0629948079586029, 0.17104582488536835, 0.19727952778339386, -0.1851179301738739, 0.0799921378493309, 0.180964857339859, 0.27027350664138794, -0.09439697861671448, 0.4931672215461731, -0.14642849564552307, -0.46553710103034973, 0.004910042509436607, 0.08173535764217377, -0.04880310595035553, -0.011434146203100681, 0.4544944763183594, 0.03912399709224701, 0.07215321063995361, -0.16666416823863983, 0.11946055293083191, 0.10832430422306061, 0.3438279330730438, 0.37300896644592285, -0.4471417963504791, -0.3782072067260742, -0.0831017792224884, -0.4274824857711792, -0.051516301929950714, -0.010502498596906662, -0.07574934512376785, -0.049839913845062256, -0.015897447243332863, -0.07845627516508102, -0.0717112198472023, 0.2825305163860321, -0.07656795531511307, 0.03177303448319435, 0.4928273856639862, -0.17429789900779724, -0.078168123960495, 0.22102729976177216, 0.05407232046127319, 0.08433519303798676, -0.4384557604789734, 0.38795235753059387, 0.346406489610672, 0.12487667053937912, -0.2808242440223694, 0.09618993103504181, 0.20243556797504425, 0.19280120730400085, 0.4804944694042206, 0.06636123359203339, 0.027349717915058136, -0.06691552698612213, -0.3371921479701996, -0.015191290527582169, -0.047307584434747696, -0.09021006524562836, 0.07537972182035446, 0.09147436916828156, 0.42266860604286194, 0.02399694360792637, -0.1941932886838913, -0.330969899892807, 0.21396534144878387, -0.2441735565662384, 0.14769934117794037, -0.2238074690103531, 0.11571923643350601, 0.25666144490242004, 0.07305654883384705, 0.08291365951299667, 0.055912066251039505, -0.026504918932914734, 0.6643062233924866, -0.44868582487106323, -0.44179537892341614, 0.5646382570266724, -0.052674680948257446, -0.522144615650177, 0.058365218341350555, 0.41575369238853455, -0.10478917509317398, -0.076828233897686, -0.47926655411720276, -0.1339033842086792, 0.33356669545173645, -0.13860082626342773, -0.24728482961654663, 0.37738892436027527, -0.15689216554164886, 0.21295256912708282, 0.08694161474704742, 0.7443244457244873, -0.019680939614772797, -0.21628524363040924, 0.2112085521221161, -0.09522774815559387 ]
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.18478290736675262, -0.02222297340631485, -0.15432094037532806, 0.03291977196931839, 0.028286075219511986, 0.07203493267297745, 0.5509453415870667, 0.31172364950180054, 0.05221717432141304, 0.10430456697940826, -0.3407954275608063, -0.2625410258769989, 0.017813952639698982, 0.009818708524107933, 0.177806094288826, 0.10359233617782593, 0.07632675766944885, 0.0028084218502044678, 0.030701976269483566, -0.2599347233772278, -0.24830247461795807, 0.16670973598957062, 0.035642631351947784, 0.23090295493602753, -0.3309555649757385, 0.07476738095283508, 0.23508036136627197, -0.0006581433117389679, 0.09454372525215149, -0.2600385546684265, -0.05056321248412132, -0.021815162152051926, -0.11511953175067902, 0.4908210337162018, -0.00010460455087013543, 0.20014514029026031, 0.3720235824584961, -0.14612585306167603, -0.25772586464881897, -0.4023926854133606, 0.049658551812171936, -0.06524921208620071, -0.3410947918891907, -0.19799140095710754, -0.388395220041275, -0.20930059254169464, -0.08249083161354065, -0.42586052417755127, -0.023914560675621033, 0.214408740401268, 0.2111903429031372, 0.469842791557312, -0.139143705368042, 0.10683805495500565, -0.019964858889579773, -0.21264271438121796, -0.07850319892168045, 0.21423260867595673, 0.05358029901981354, 0.5240815281867981, 0.29987046122550964, 0.5605417490005493, 0.21119865775108337, -0.07978507876396179, -0.12258007377386093, 0.24120624363422394, -0.11610468477010727, -0.15451984107494354, 0.23094213008880615, 0.29403650760650635, 0.3640366494655609, -0.3231702148914337, -0.10783037543296814, 0.0924723818898201, -0.05159381777048111, -0.2096337229013443, 0.48786813020706177, 0.1322399228811264, -0.08334192633628845, 0.27224335074424744, -0.016273558139801025, -0.2900928556919098, 0.025776587426662445, 0.25547629594802856, -0.23943643271923065, 0.5161877274513245, 0.10047513991594315, 0.047917868942022324, 0.10231997072696686, -0.20736736059188843, 0.24903112649917603, -0.2282049059867859, 0.1534503996372223, 0.09446243196725845, 0.09368525445461273, -0.2620149254798889, -0.21627715229988098, 0.014501821249723434, -0.34061360359191895, -0.31544750928878784, 0.07597275078296661, 0.25950872898101807, -0.18257087469100952, 0.04205659031867981, -0.3105466067790985, 0.0559438057243824, 0.43051877617836, -0.267348974943161, 0.45299726724624634, -0.23089946806430817, 0.002622980624437332, -0.14282682538032532, -0.03791641443967819, -0.060127291828393936, -0.3148113191127777, -0.14796027541160583, -0.005595264956355095, 0.29824286699295044, 0.02293604426085949, -0.04914620518684387, -0.49831169843673706, -0.5706431269645691, -0.030425578355789185, 0.37894293665885925, 0.16166755557060242, -0.3083963990211487, -0.14611485600471497, -0.03962872177362442, -0.3200582265853882, -0.5419682264328003, -0.20431162416934967, 0.10960741341114044, -0.14667819440364838, -0.08252518624067307, 0.08077949285507202, -0.18208511173725128, 0.30798330903053284, -0.0946761816740036, 0.03141876310110092, 0.16003888845443726, -0.24208253622055054, 0.0018399441614747047, 0.30782487988471985, 0.06600064784288406, -0.12639719247817993, 0.08215150982141495, -0.07062804698944092, -0.22005002200603485, -0.1961161494255066, 0.1325778067111969, -0.3130851089954376, 0.11749473214149475, 0.2477205991744995, 0.20299406349658966, -0.1501319855451584, -0.004773668944835663, 0.06287045776844025, 0.2855401337146759, -0.014290280640125275, 0.06296882033348083, 0.3462478518486023, -0.051514990627765656, 0.0772693008184433, -0.10474441945552826, -0.1049221083521843, 0.27858448028564453, -0.48335495591163635, -0.44567686319351196, 0.11262205243110657, -0.03399711474776268, -0.08104909211397171, 0.5016030073165894, -0.29188135266304016, 0.17239755392074585, -0.17469121515750885, 0.37073183059692383, 0.2921556830406189, -0.3053900897502899, -0.31079691648483276, -0.0459158681333065, 0.044210657477378845, -0.058015670627355576, -0.16853231191635132, -0.15296973288059235, 0.04981730505824089, -0.14014354348182678, 0.07990242540836334, -0.06562785059213638, 0.20237579941749573, -0.17849253118038177, -0.05079542100429535, 0.03778522461652756, 0.39847493171691895, -0.012750636786222458, 0.1060541570186615, -0.02192237228155136, 0.11212493479251862, -0.009025349281728268, 0.25457194447517395, -0.15081408619880676, 0.21935831010341644, 0.0614951029419899, 0.040063973516225815, 0.10596682876348495, 0.18416659533977509, -0.010976957157254219, -0.19527879357337952, 0.07958727329969406, -0.1208207979798317, 0.2615235447883606, -0.06321540474891663, 0.06690617650747299, 0.07041150331497192, -0.13752338290214539, -0.1428227424621582, -0.12687665224075317, 0.23770847916603088, 0.03594709560275078, -0.12610135972499847, 0.2591712772846222, -0.2723129093647003, 0.09403133392333984, -0.32694360613822937, 0.028544439002871513, -0.1553591787815094, 0.16287116706371307, -0.12213731557130814, 0.03931782394647598, -0.2129368931055069, 0.3802616596221924, 0.1243666335940361, -0.4671669602394104, -0.09332159906625748, 0.08448169380426407, -0.2620694041252136, 0.1656293123960495, 0.111180379986763, 0.5108311772346497, 0.5489285588264465, -0.36589816212654114, 0.3155202269554138, 0.18581074476242065, -0.05104079097509384, -0.10899178683757782, 0.2349345088005066, 0.23083485662937164, 0.34957942366600037, 0.11669975519180298, 0.12177430093288422, -0.22671377658843994, 0.4270859360694885, 0.03584321215748787, -0.14118435978889465, -0.3088139295578003, -0.09274640679359436, 0.11466604471206665, 0.5891348123550415, 0.25243276357650757, -0.19192585349082947, 0.08646810799837112, 1.0686198472976685, -0.21396908164024353, -0.07196708768606186, 0.09561654925346375, -0.2867284119129181, 0.10481280833482742, 0.034709382802248, -0.11564117670059204, 0.059134840965270996, 0.13227428495883942, 0.2981182932853699, 0.18102401494979858, 0.19423533976078033, -0.2748286724090576, 0.32441332936286926, 0.2057228535413742, 0.0029119274113327265, -0.0032607093453407288, 0.08014363795518875, -0.1853950023651123, -0.42775610089302063, 0.15693771839141846, 0.058292947709560394, -0.1904049813747406, -0.22719638049602509, 0.2576310336589813, -0.46871915459632874, -0.10345286875963211, -0.3631180226802826, -0.4276827275753021, -0.5842369794845581, -0.07407667487859726, 0.06891670823097229, -0.23834967613220215, -0.010095389559864998, 0.2999589741230011, 0.3809863030910492, 0.1638941764831543, -0.34293508529663086, 0.05578643083572388, -0.2732769846916199, -0.18711116909980774, -0.28629449009895325, 0.14061903953552246, 0.11635442078113556, -0.3061370551586151, 0.2784307301044464, -0.37964290380477905, -0.27487659454345703, -0.18655745685100555, -0.44556042551994324, 0.4134853482246399, -0.16880910098552704, -0.1180185079574585, -0.11873354017734528, -0.02725936472415924, -0.047596246004104614, -0.08130678534507751, -0.003480846993625164, -0.27977198362350464, -0.29552340507507324, -0.2735089957714081, -0.054481733590364456, 0.03874930366873741, -0.08339856564998627, -0.5276803970336914, -0.6048951148986816, -0.0471697635948658, 0.008123129606246948, -0.19595272839069366, -0.027698419988155365, 0.1241644099354744, -0.23776499927043915, -0.15583476424217224, 0.29111945629119873, -0.2068575769662857, -0.34724247455596924, -0.09257479012012482, 0.20368103682994843, -0.4344359338283539, -0.09207898378372192, 0.15603454411029816, 0.021818194538354874, 0.4703035354614258, 0.07393455505371094, -0.024964693933725357, 0.3892801105976105, 0.02562059462070465, 0.2439538538455963, 0.2953720688819885, -0.054168760776519775, 0.2268235832452774, 0.005541761871427298, -0.10261226445436478, -0.33468443155288696, 0.034510381519794464, 0.2723381817340851, 0.05606847256422043, 0.34729745984077454, 0.45921748876571655, 0.11060869693756104, 0.10231499373912811, 0.4332117438316345, 0.13357418775558472, -0.3373226821422577, 0.3171926736831665, 0.19437924027442932, 0.32832813262939453, -0.22449269890785217, -0.04350666329264641, 0.1524132788181305, 0.08910533040761948, 0.2402951866388321, 0.3073193430900574, -0.05827733874320984, -0.11261224001646042, -0.015107350423932076, -0.06891603767871857, -0.4128377139568329, -0.19738322496414185, 0.08300110697746277, 0.1685200035572052, 0.312977135181427, 0.4733051657676697, 0.0657673254609108, -0.10823701322078705, -0.19082897901535034, 0.34245064854621887, 0.18064939975738525, -0.14936283230781555, 0.14261746406555176, -0.392443984746933, -0.282672643661499, -0.5756276249885559, 0.11832474172115326, 0.12055742740631104, 0.21564719080924988, -0.02420276403427124, 0.06320948898792267, 0.12141455709934235, 0.12165997922420502, 0.43903106451034546, -0.33548998832702637, -0.05786973237991333, 0.10016253590583801, -0.04777691513299942, 0.11524734646081924, -0.08922576904296875, -0.40804046392440796, 0.1072462648153305, 0.5992041230201721, 0.259500116109848, -0.3122325539588928, -0.3205431401729584, -0.004612911492586136, -0.12596145272254944, -0.2476208359003067, -0.2767196297645569, -0.05706861615180969, -0.1351340115070343, -0.13763225078582764, -0.3238411545753479, 0.13893747329711914, -0.10936915874481201, -0.13884679973125458, 0.10050399601459503, 0.3756709694862366, -0.1748197376728058, 0.2626541256904602, 0.1723306030035019, 0.16976621747016907, 0.303004652261734, -0.2415582686662674, 0.4287996292114258, 0.35479944944381714, 0.48209017515182495, 0.39266881346702576, -0.10906431078910828, -0.37893128395080566, -0.08148765563964844, -0.2688358426094055, 0.24206098914146423, 0.49994850158691406, 0.13798761367797852, 0.06858555972576141, 0.03407856449484825, -0.12370002269744873, -0.11908868700265884, 0.18127374351024628, 0.24222832918167114, 0.31624963879585266, -0.22685067355632782, -0.4142286777496338, 0.2150869071483612, -0.341646671295166, -0.008280634880065918, 0.27259278297424316, 0.30269724130630493, -0.33498984575271606, 0.04344072937965393, 0.09654044359922409, 1.0030596256256104, 0.12500515580177307, -0.043286342173814774, 0.14593955874443054, -0.1284824162721634, 0.265216201543808, -0.4718642234802246, -0.026832975447177887, -0.055021099746227264, 0.3103020489215851, -0.13043825328350067, -0.017135925590991974, -0.07885938137769699, 0.45745283365249634, 0.07109503448009491, 0.3584784269332886, 0.012664824724197388, 0.20631881058216095, 0.2466011792421341, 0.10023021697998047, 0.09536954760551453, -0.19745619595050812, -0.10752029716968536, 0.12766695022583008, -0.0016971826553344727, 0.26576492190361023, -0.16747057437896729, -0.25537174940109253, -0.07066181302070618, 0.0818953812122345, 0.05573858320713043, -0.12312565743923187, -0.2867531180381775, 0.3074195384979248, 0.0006256103515625, -0.2795160412788391, 0.23783892393112183, -0.04106662794947624, 0.8017961978912354, -0.06415300071239471, -0.13517871499061584, 0.3463766872882843, 0.10398224741220474, 0.047953568398952484, -0.15430472791194916, -0.01860000565648079, 0.1850300133228302, -0.14754383265972137, -0.443172812461853, 0.12059192359447479, 0.0532846599817276, -0.2749577760696411, -0.28681856393814087, -0.003200918436050415, -0.2513614296913147, 0.2532126009464264, 0.23221823573112488, 0.24170389771461487, -0.08406107872724533, -0.15915603935718536, 0.14645707607269287, -0.3185131549835205, 0.058534346520900726, -0.31144028902053833, 0.2933880686759949, -0.19855570793151855, -0.3302374482154846, 0.0831746831536293, 0.292717307806015, -0.07695843279361725, 0.30997347831726074, 0.0649394541978836, -0.3664093017578125, -0.12309636920690536, -0.2681160271167755, 0.3906422555446625, -0.11100976914167404, -0.07927651703357697, 0.08778925240039825, -0.09826813638210297, -0.41581854224205017, 0.19062265753746033, 0.02501925267279148, 0.11569097638130188, -0.3648861050605774, -0.01802653819322586, -0.016649886965751648, 0.25286543369293213, -0.22554408013820648, -0.08736759424209595, 0.10486599057912827, 0.5610261559486389, -0.0658603385090828, -0.0028837919235229492, -0.34084051847457886, 0.04991646856069565, 0.08088291436433792, 0.01662120223045349, 0.14802129566669464, -0.10962248593568802, 0.20107556879520416, 0.057828065007925034, 0.09891041368246078, 0.03251037746667862, -0.34312358498573303, -0.2032054364681244, -0.18244808912277222, 0.06596788763999939, -0.03711886703968048, -0.020119991153478622, -0.010698797181248665, 0.022532526403665543, 0.201994389295578, -0.2463754117488861, 0.1390528380870819, 0.14083707332611084, 0.22173847258090973, 0.4221210181713104, 0.3345201015472412, -0.11490636318922043, 0.11290574073791504, -0.055493228137493134, 0.2061086893081665, 0.4034077525138855, 0.15212564170360565, 0.023726657032966614, -0.005211032927036285, 0.04826028645038605, 0.02131500467658043, 0.194006085395813, 0.016373537480831146, 0.1617126166820526, 0.2007458209991455, -0.3083599805831909, 0.19750024378299713, 0.0398343950510025, 0.15420319139957428, 0.1245030015707016, -0.35962843894958496, -0.3416134715080261, 0.19547781348228455, 0.22104312479496002, -0.340546578168869, -0.2511647045612335, 0.23237258195877075, 0.15888181328773499, 0.24423345923423767, 0.24020642042160034, 0.6543264985084534, 0.2860364317893982, 0.1946171224117279, -0.09122749418020248, 0.4273197650909424, -0.47847068309783936, 0.0240701362490654, -0.19361546635627747, 0.014433350414037704, 0.2894088327884674, 0.5641242861747742, 0.006003350019454956, -0.07564806193113327, 0.5502744913101196, 0.09726002812385559, 0.1881624460220337, 0.1705637276172638, 0.20475038886070251, 0.037084560841321945, -0.16479554772377014, -0.13292719423770905, 0.023648910224437714, -0.124248206615448, 0.3433171808719635, 0.1148877888917923, -0.186701238155365, 0.2773746848106384, -0.32521361112594604, -0.001470843330025673, -0.027865048497915268, -0.27066880464553833, -0.055534087121486664, -0.11099254339933395, -0.12493158876895905, -0.033250853419303894, 0.19421720504760742, 0.11142338812351227, -0.046475253999233246, 0.07968740165233612, 0.1588645577430725, -0.12168894708156586, 0.0806332677602768, -0.10100410133600235, -0.2985263466835022, 0.01165027916431427, -0.09982562065124512, 0.25142183899879456, 0.07647237181663513, -0.10488490760326385, 0.09954468905925751, -0.050433821976184845, 0.08873395621776581, -0.17288941144943237, 0.15249356627464294, 0.2156710922718048, -0.2303614318370819, -0.19269055128097534, -0.11220158636569977, 0.05102241039276123, 0.31615149974823, -0.12403137981891632, 0.09321323037147522, 0.14940199255943298, -0.13092279434204102, -0.16433216631412506, 0.37759795784950256, 0.1715945452451706, -0.19050419330596924, -0.02332606166601181, -0.27052024006843567, -0.030778508633375168, -0.35390931367874146, 0.0057447850704193115, -0.41285455226898193, 0.3363724946975708, 0.4712305963039398, -0.3097416162490845, -0.002327193506062031, -0.0018189070979133248, 0.11367955803871155, 0.03904739022254944, 0.46144673228263855, -0.07124002277851105, -0.04011240601539612, 0.010814652778208256, -0.393279492855072, -0.31231191754341125, -0.04989036172628403, -0.2666436731815338, 0.7237250804901123, -0.2092267870903015, 0.15341493487358093, 0.4759405553340912, -0.12840771675109863, 0.502977728843689, 0.029253197833895683, -0.0931166559457779, -0.3235897421836853, -0.3461983799934387, -0.043153997510671616, 0.031019877642393112, 0.3263244926929474, 0.0789150670170784, 0.14037415385246277, 0.10001295804977417, -0.2765105962753296, -0.00006994232535362244, -0.21098709106445312, 0.19741830229759216, 0.40747910737991333, -0.044852666556835175, 0.26846569776535034, 0.1391962617635727, 0.40695735812187195, -0.22315263748168945, -0.10189040750265121, 0.12561962008476257, -0.026408547535538673, -0.2576506733894348, 0.4738188087940216, -0.031355854123830795, 0.06708722561597824, -0.1327977478504181, -0.39894625544548035, -0.13157986104488373, 0.42517024278640747, 0.11499275267124176, 0.1058419719338417, -0.2703825831413269, -0.030484843999147415, -0.33857297897338867, 0.015402771532535553, 0.09254469722509384, 0.38406115770339966, 0.008444525301456451, -0.19052547216415405, 0.009177416563034058, -0.20551732182502747, 0.4161725640296936, -0.2887670695781708, -0.1860838681459427, -0.1703767478466034, 0.13274410367012024, 0.11813200265169144, 0.11678776144981384, -0.3195803165435791, -0.04792460799217224, 0.3436785340309143, -0.09135586023330688, -0.35258784890174866, 0.20319832861423492, 0.02276589162647724, -0.04068540036678314, -0.03986584022641182, 0.014054063707590103, 0.259304016828537, -0.3928050696849823, -0.037774525582790375, -0.19888126850128174 ]
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.1667788028717041, -0.08356857299804688, -0.0892024114727974, 0.06112080067396164, 0.23247972130775452, -0.018036052584648132, 0.22198177874088287, 0.4122389853000641, -0.015883944928646088, -0.018412739038467407, -0.31409305334091187, -0.16981172561645508, 0.0033473987132310867, 0.25454166531562805, 0.1932535320520401, 0.1975346952676773, 0.016377240419387817, -0.04768417775630951, -0.09808708727359772, -0.11507846415042877, -0.16931147873401642, 0.2598113417625427, 0.02129889279603958, 0.10309812426567078, -0.34536924958229065, 0.18144011497497559, 0.09315413236618042, 0.22526100277900696, -0.19601234793663025, -0.3190949559211731, -0.018224697560071945, 0.093965545296669, -0.0006306776776909828, 0.43576592206954956, -0.00010592042963253334, 0.03304468095302582, 0.3800247311592102, -0.19922836124897003, -0.37627875804901123, -0.28924137353897095, 0.020964257419109344, -0.23936542868614197, -0.2559768259525299, -0.08116194605827332, -0.4343552589416504, -0.16282711923122406, -0.1122974157333374, -0.43392089009284973, 0.10440561920404434, 0.19892103970050812, 0.2612396776676178, 0.3563447594642639, -0.03299419954419136, -0.035164907574653625, -0.11764361709356308, 0.022888019680976868, -0.11342000961303711, 0.17921482026576996, 0.15805035829544067, 0.34892213344573975, 0.14830103516578674, 0.5432716608047485, 0.29033389687538147, -0.07641227543354034, -0.1122613474726677, 0.11476399749517441, 0.003207981586456299, 0.05725909024477005, 0.3240352272987366, 0.1487487405538559, 0.3166534900665283, -0.2415892481803894, -0.15542760491371155, -0.05681680887937546, -0.13192369043827057, 0.024327950552105904, 0.5333497524261475, 0.17463426291942596, -0.16490903496742249, 0.25876477360725403, -0.2961871027946472, -0.33850061893463135, 0.1553281545639038, 0.2498282641172409, -0.07719456404447556, 0.4242900013923645, -0.08886248618364334, -0.09679404646158218, 0.2540958523750305, -0.37602317333221436, 0.23491325974464417, -0.08906364440917969, 0.06638863682746887, 0.11926114559173584, 0.11986231058835983, -0.18653477728366852, -0.0233285054564476, 0.44027602672576904, -0.06545987725257874, -0.1952185034751892, -0.02064141258597374, 0.4489218294620514, 0.028278660029172897, -0.1221645399928093, -0.21540558338165283, 0.019582562148571014, 0.4062906503677368, -0.29216518998146057, 0.4357174038887024, 0.17941914498806, 0.029977861791849136, -0.12225853651762009, -0.027585715055465698, 0.00997762568295002, -0.34330448508262634, -0.15357095003128052, 0.0033576469868421555, -0.015800870954990387, 0.05647096037864685, -0.236188605427742, -0.33660849928855896, -0.5890083312988281, 0.0629420131444931, 0.5665413737297058, 0.13119283318519592, -0.34345582127571106, -0.13096104562282562, 0.026705265045166016, -0.3744470775127411, -0.5479002594947815, -0.18467335402965546, 0.005719218403100967, -0.2793676555156708, 0.08022988587617874, 0.22987569868564606, -0.026113208383321762, 0.2447015345096588, -0.05600687116384506, 0.042587533593177795, 0.14333079755306244, -0.20350271463394165, 0.2507782578468323, 0.19294774532318115, -0.01886432245373726, -0.051099568605422974, 0.09143494069576263, 0.0767902135848999, -0.09555837512016296, -0.11638356745243073, -0.2118169069290161, -0.0828721895813942, -0.03787592798471451, 0.31680071353912354, 0.21384918689727783, -0.09610156714916229, 0.03326956182718277, 0.1287432163953781, 0.2874472141265869, -0.24420776963233948, -0.05018644779920578, 0.08779100328683853, 0.11123719066381454, 0.13603542745113373, 0.016586454585194588, 0.10651170462369919, 0.5581018328666687, -0.15082648396492004, -0.4534164369106293, 0.005912997294217348, 0.06847778707742691, -0.052617065608501434, 0.21695885062217712, -0.2650274634361267, -0.039618417620658875, -0.27802574634552, 0.19990451633930206, 0.2216721475124359, -0.2611604332923889, -0.31475067138671875, 0.10428959876298904, -0.05087103694677353, 0.0783575177192688, -0.05826839059591293, -0.25086963176727295, -0.09137095510959625, -0.03128807619214058, 0.14336271584033966, -0.02501310035586357, 0.21209536492824554, -0.14666032791137695, -0.16139614582061768, 0.009155208244919777, 0.10786106437444687, 0.031023122370243073, 0.05633975937962532, 0.03327526897192001, 0.2991705536842346, 0.03291447460651398, 0.3045870065689087, -0.14292821288108826, 0.3440971076488495, 0.10782146453857422, 0.10124465823173523, 0.10821950435638428, 0.17022213339805603, 0.02760041132569313, -0.12841621041297913, -0.01335933804512024, -0.12664814293384552, 0.44527745246887207, -0.326127827167511, 0.002790655940771103, -0.08439284563064575, -0.16437900066375732, -0.2925625145435333, -0.24762555956840515, 0.2804225981235504, 0.23898255825042725, 0.13203155994415283, 0.24330489337444305, -0.04123266413807869, 0.22250401973724365, -0.047925714403390884, 0.0427355095744133, -0.1773313730955124, 0.13000322878360748, -0.17181934416294098, 0.08895282447338104, -0.050499819219112396, 0.3366706073284149, 0.2604977786540985, -0.42086556553840637, -0.03334929794073105, 0.19787976145744324, -0.22655460238456726, 0.018190592527389526, 0.4222950041294098, 0.34691673517227173, 0.4615175724029541, -0.4829181730747223, 0.2479090392589569, 0.21084584295749664, -0.017013240605592728, -0.05489504337310791, 0.1468932330608368, 0.2738034129142761, 0.19131287932395935, 0.17750239372253418, 0.23030002415180206, 0.031356871128082275, 0.5397230386734009, 0.08329589664936066, -0.11530669033527374, -0.5012761950492859, 0.07006965577602386, -0.10248538851737976, 0.5470161437988281, 0.04932532459497452, -0.22173495590686798, 0.22882765531539917, 0.5540846586227417, -0.07128220796585083, -0.002407163381576538, 0.07421346008777618, -0.31269463896751404, 0.034273721277713776, 0.10633242130279541, -0.01467747613787651, -0.011430129408836365, 0.26965364813804626, 0.17962364852428436, 0.17941461503505707, 0.18788869678974152, -0.28129157423973083, 0.34737464785575867, 0.1071498692035675, -0.06310645490884781, -0.03260320425033569, 0.1392664909362793, -0.2676079571247101, -0.5354732871055603, 0.05884873494505882, -0.11642897874116898, -0.24010440707206726, -0.24076716601848602, 0.15073037147521973, -0.4924582540988922, -0.2797498106956482, -0.3269933760166168, -0.4875529408454895, -0.5873581767082214, -0.12755611538887024, 0.12733659148216248, -0.22874462604522705, -0.030402205884456635, 0.24086256325244904, 0.10119062662124634, 0.05555333197116852, -0.3660440444946289, 0.09106411784887314, -0.25256627798080444, -0.11768792569637299, -0.28505536913871765, 0.15810567140579224, 0.2618584930896759, -0.14136922359466553, 0.32742711901664734, -0.5285528898239136, -0.10046697407960892, -0.403368204832077, -0.5248317718505859, 0.45199429988861084, -0.050759486854076385, 0.08642890304327011, 0.10220586508512497, 0.06596587598323822, -0.1033918485045433, -0.06350134313106537, 0.36582842469215393, -0.27409282326698303, -0.25762391090393066, -0.047156669199466705, -0.033130817115306854, -0.01171756349503994, -0.10120494663715363, -0.4515065848827362, -0.4519302248954773, -0.13686780631542206, -0.0734957903623581, 0.030394766479730606, -0.06782837212085724, 0.05357998609542847, -0.19673281908035278, -0.11933852732181549, -0.021014081314206123, -0.09749384969472885, -0.33913445472717285, -0.06350391358137131, 0.38065966963768005, -0.4907185435295105, -0.250194251537323, 0.0935727208852768, 0.08472301065921783, 0.33257460594177246, -0.073440320789814, -0.01078670471906662, 0.27635666728019714, -0.05866653472185135, 0.12567757070064545, 0.2447042316198349, 0.1293506920337677, 0.22931963205337524, 0.19690515100955963, -0.19861137866973877, -0.28332608938217163, -0.07693910598754883, 0.18198969960212708, -0.221714586019516, 0.508034884929657, 0.2685973048210144, 0.07530121505260468, 0.05917954817414284, 0.2819240987300873, 0.23166164755821228, -0.031447481364011765, 0.5248022079467773, 0.09785651415586472, 0.3908880054950714, -0.10251826792955399, -0.18204006552696228, 0.0640387162566185, 0.08608148247003555, 0.2643454670906067, 0.3846736550331116, 0.15787339210510254, 0.09935817122459412, -0.29879018664360046, -0.08008765429258347, -0.548273503780365, -0.2185358703136444, -0.04319924861192703, 0.10957922041416168, 0.2598341107368469, 0.4453332722187042, 0.09547936171293259, -0.08525185286998749, -0.16594061255455017, 0.3163290023803711, 0.21111056208610535, -0.20775002241134644, 0.2665354609489441, -0.48918288946151733, -0.15793275833129883, -0.4886634349822998, 0.2576252222061157, 0.061564549803733826, 0.1776459813117981, -0.08521191775798798, -0.09917903691530228, 0.23099422454833984, -0.021469993516802788, 0.4347785711288452, -0.31387051939964294, -0.07235102355480194, 0.016222979873418808, -0.1698947250843048, 0.040079839527606964, 0.06437145173549652, -0.29644593596458435, 0.18764930963516235, 0.5032933950424194, 0.20435971021652222, -0.46380704641342163, -0.25459057092666626, -0.014586299657821655, -0.16794148087501526, -0.1308717280626297, -0.2449602335691452, -0.08606825768947601, -0.1080700233578682, -0.15441615879535675, -0.2814118266105652, -0.010272584855556488, 0.1695229411125183, -0.005158441141247749, 0.045404065400362015, 0.39107418060302734, -0.17134201526641846, 0.21341337263584137, 0.43957698345184326, 0.33154037594795227, 0.10935945808887482, -0.14358627796173096, 0.5581194162368774, 0.451691597700119, 0.4931236207485199, 0.5625641942024231, 0.03715430572628975, -0.2261766791343689, -0.12746334075927734, -0.2054804563522339, 0.14982499182224274, 0.49635711312294006, 0.1881473809480667, -0.002673916518688202, 0.20855681598186493, 0.07944636791944504, -0.11601326614618301, 0.004847616422921419, 0.08488814532756805, 0.1599770039319992, -0.3092435598373413, -0.2858945429325104, 0.19674329459667206, -0.48009705543518066, 0.022711962461471558, 0.13603529334068298, 0.5112377405166626, -0.39891332387924194, -0.05604833737015724, 0.038833893835544586, 1.044321060180664, 0.08342637866735458, -0.08887439966201782, -0.038006559014320374, -0.10198896378278732, 0.17080888152122498, -0.31624478101730347, -0.0056045521050691605, -0.014518581330776215, 0.49626755714416504, -0.05401855707168579, 0.026562031358480453, 0.023666393011808395, 0.30655527114868164, -0.1433667093515396, 0.36281779408454895, -0.02666541561484337, 0.20555566251277924, 0.16727174818515778, 0.08930222690105438, -0.11651960760354996, -0.13108548521995544, -0.4001877009868622, 0.2069392204284668, 0.0027549900114536285, 0.30165407061576843, -0.14202198386192322, -0.3613625168800354, -0.2012767344713211, -0.19891038537025452, 0.08410029113292694, -0.07001692801713943, -0.39039692282676697, 0.13702905178070068, 0.041674382984638214, -0.1735151708126068, 0.19872549176216125, -0.12131230533123016, 0.6124113202095032, 0.03383335471153259, -0.3374800980091095, 0.28116732835769653, 0.05890309065580368, -0.026647338643670082, -0.1697266399860382, 0.006277662701904774, 0.01870729774236679, -0.1443842649459839, -0.44610875844955444, 0.038898151367902756, 0.06954371929168701, -0.20948955416679382, -0.2025313675403595, -0.11526483297348022, -0.2897142171859741, 0.1632697433233261, 0.09551332890987396, 0.06334571540355682, 0.050185490399599075, -0.29195910692214966, 0.16024598479270935, -0.3013712167739868, 0.023059049621224403, -0.38830500841140747, 0.5311204791069031, -0.0046143680810928345, -0.3006279468536377, 0.18694689869880676, -0.0246383398771286, -0.15381813049316406, 0.11079193651676178, 0.16922691464424133, -0.38295072317123413, -0.19937369227409363, -0.22656118869781494, 0.35005107522010803, -0.13629551231861115, -0.1332392692565918, 0.1816173493862152, -0.14823174476623535, -0.21149109303951263, 0.32606014609336853, 0.08726052939891815, -0.008355475962162018, -0.1710875928401947, -0.11185181140899658, 0.018997935578227043, 0.34216707944869995, -0.15684610605239868, -0.15719427168369293, 0.05086012929677963, 0.45915311574935913, 0.04871766269207001, 0.07712672650814056, -0.36214011907577515, -0.0012986292131245136, -0.057530246675014496, -0.06817906349897385, 0.07789982855319977, 0.0007976815104484558, 0.24967601895332336, 0.04480038583278656, 0.12849469482898712, 0.06211482360959053, -0.40786153078079224, -0.18529021739959717, 0.011253491044044495, 0.09064198285341263, 0.017982622608542442, -0.20813976228237152, -0.09242979437112808, 0.12494295835494995, 0.19200335443019867, -0.29836633801460266, 0.04131736978888512, 0.07881125062704086, 0.14412707090377808, 0.08696433156728745, 0.33298933506011963, -0.43884727358818054, 0.012805450707674026, -0.09859202802181244, 0.16813775897026062, 0.19853591918945312, 0.17895884811878204, -0.07088572531938553, -0.08860031515359879, -0.03545921668410301, 0.2975744903087616, 0.2921349108219147, 0.04178256914019585, 0.2276308834552765, 0.18885666131973267, -0.2756192684173584, 0.18841885030269623, 0.28389403223991394, 0.3251851797103882, 0.16745468974113464, -0.22085990011692047, -0.1551884412765503, 0.18593239784240723, 0.22922544181346893, -0.42455217242240906, -0.2475096434354782, 0.2709745466709137, -0.012471829541027546, 0.24133223295211792, 0.2041700929403305, 0.6218903064727783, 0.11915655434131622, 0.20239894092082977, 0.04921845346689224, 0.35674139857292175, -0.28475433588027954, 0.033480606973171234, -0.12816502153873444, 0.07521793246269226, 0.2980564832687378, 0.5230847001075745, -0.17819687724113464, -0.13141578435897827, 0.5701141953468323, -0.24489212036132812, 0.1640882045030594, 0.0527413971722126, 0.20454522967338562, -0.13923949003219604, -0.13264010846614838, 0.17637695372104645, -0.040069580078125, 0.08640729635953903, 0.22473829984664917, -0.00047679245471954346, 0.1777476668357849, 0.0588064081966877, -0.2287229746580124, -0.14114010334014893, -0.048010412603616714, -0.2195734679698944, -0.04571022093296051, 0.09104995429515839, -0.3784233331680298, -0.11719872057437897, 0.057626280933618546, 0.07857309281826019, -0.114405557513237, 0.26868098974227905, -0.017896495759487152, 0.007978320121765137, -0.4327700138092041, -0.048911333084106445, -0.09541983157396317, 0.03957969695329666, -0.13795258104801178, 0.2741236984729767, 0.17329896986484528, -0.09634532034397125, 0.21652744710445404, -0.018226539716124535, 0.21541279554367065, -0.05600045621395111, 0.11539000272750854, 0.08154656738042831, -0.27196893095970154, -0.22066332399845123, -0.23056702315807343, 0.1775820255279541, 0.2813597321510315, -0.16584134101867676, 0.0341939851641655, 0.17491202056407928, -0.19402723014354706, -0.20475339889526367, 0.20679134130477905, 0.1573321372270584, 0.07713992893695831, -0.0748557522892952, -0.37153947353363037, 0.12322837859392166, -0.2839224636554718, -0.04744730144739151, -0.4346112608909607, 0.4222894012928009, 0.3308517336845398, -0.341086208820343, -0.02607887051999569, -0.20937703549861908, 0.12318110466003418, 0.2381913810968399, 0.40408408641815186, -0.11322104930877686, -0.12609747052192688, 0.039442189037799835, -0.5264498591423035, -0.5373827219009399, -0.10350171476602554, -0.21647581458091736, 0.4150047302246094, -0.2493385672569275, 0.10597188770771027, 0.5088515877723694, -0.10906821489334106, 0.5761890411376953, 0.16630412638187408, 0.050691500306129456, -0.30683663487434387, -0.37913113832473755, 0.09020908921957016, 0.16998055577278137, 0.31194984912872314, 0.032210517674684525, 0.06366273760795593, 0.2861621379852295, -0.2917155921459198, 0.054403938353061676, -0.049579933285713196, 0.2915845215320587, 0.06949803233146667, -0.3489285111427307, 0.19766709208488464, 0.2845180332660675, 0.4594619572162628, -0.35922619700431824, -0.12852078676223755, -0.10301028192043304, -0.12031686305999756, -0.03907250985503197, 0.45129814743995667, 0.02792203798890114, 0.2293427586555481, -0.16790735721588135, -0.4276463985443115, -0.22773832082748413, 0.506293535232544, 0.16060033440589905, 0.22747395932674408, -0.1285737156867981, 0.058163970708847046, -0.27751827239990234, -0.060947977006435394, -0.010172120295464993, 0.25177982449531555, -0.02929682284593582, -0.16795077919960022, -0.025076724588871002, -0.3688817024230957, 0.4275466203689575, -0.26792892813682556, -0.21365466713905334, 0.005118502303957939, 0.13107363879680634, 0.1438254565000534, -0.13548576831817627, -0.4822455048561096, 0.07071033865213394, 0.1772766262292862, 0.060700129717588425, -0.21887987852096558, 0.33694911003112793, -0.1613609790802002, -0.11166976392269135, -0.061790309846401215, 0.09237179160118103, 0.3087482750415802, -0.22689665853977203, 0.015099551528692245, -0.05352067947387695 ]
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.07028897106647491, -0.030393891036510468, 0.0002651140093803406, 0.3026077449321747, 0.16153420507907867, 0.022486843168735504, 0.38125547766685486, 0.14873217046260834, 0.06321458518505096, 0.20608064532279968, -0.14543572068214417, 0.05857262760400772, 0.13281576335430145, -0.0630713701248169, 0.07194045186042786, -0.006297007203102112, 0.24742460250854492, -0.1418851912021637, -0.227530837059021, -0.08221878111362457, -0.14616316556930542, 0.2783482074737549, -0.009433194994926453, -0.14673425257205963, -0.3533283472061157, 0.06876379996538162, -0.08586204797029495, 0.40321651101112366, -0.08312315493822098, -0.2152673304080963, 0.384534627199173, 0.2588376998901367, -0.1833360195159912, 0.3635748624801636, -0.00010858388850465417, 0.13274987041950226, 0.11915452778339386, 0.1520768404006958, -0.30956998467445374, 0.061505623161792755, 0.10821282118558884, -0.012575380504131317, 0.01731344498693943, -0.011009134352207184, 0.08298715204000473, -0.31595706939697266, 0.09177521616220474, -0.24317549169063568, 0.41258323192596436, 0.1412675380706787, 0.2476854771375656, 0.230679452419281, 0.028656821697950363, -0.15980401635169983, 0.36223283410072327, 0.012787606567144394, -0.0677059069275856, 0.12477089464664459, 0.17059794068336487, 0.025872206315398216, -0.03829891234636307, 0.5596491694450378, 0.005925903096795082, -0.10497403144836426, 0.03516942635178566, 0.1814073622226715, -0.03396084904670715, -0.08457063883543015, 0.07112550735473633, 0.09556011855602264, -0.04161814600229263, -0.26653704047203064, -0.29616743326187134, -0.381069153547287, -0.07982896268367767, 0.15124526619911194, 0.33468523621559143, -0.131476029753685, 0.0732257068157196, -0.10041479766368866, -0.16174988448619843, 0.11536961048841476, 0.10036355257034302, -0.03747490048408508, 0.05391145497560501, -0.018183402717113495, 0.024516217410564423, 0.1457735002040863, 0.27915769815444946, -0.09567275643348694, 0.04126279056072235, -0.09639796614646912, -0.2437053620815277, 0.12515896558761597, -0.31862640380859375, 0.184761643409729, 0.07415051013231277, -0.01416683942079544, 0.4505220949649811, 0.17456723749637604, 0.16648392379283905, -0.12772324681282043, -0.16611497104167938, 0.006290070712566376, 0.26418423652648926, 0.11394834518432617, -0.20392584800720215, 0.1781056672334671, 0.17408055067062378, 0.25171855092048645, -0.028145363554358482, 0.05426616966724396, 0.15935522317886353, -0.19008532166481018, 0.006515398621559143, -0.26853007078170776, 0.21321363747119904, -0.26872700452804565, -0.33836933970451355, 0.15184617042541504, -0.04514436423778534, 0.07428456097841263, -0.2210177481174469, 0.23518973588943481, 0.229050874710083, 0.13244876265525818, 0.16394448280334473, -0.00910746306180954, -0.2775207459926605, -0.26768192648887634, -0.3610759377479553, 0.0377253033220768, -0.16983851790428162, -0.013306874781847, 0.05015687271952629, -0.3885461091995239, 0.2597261667251587, 0.3444271981716156, 0.20778803527355194, -0.20499517023563385, 0.08521659672260284, 0.018267789855599403, -0.04652000218629837, 0.1520565003156662, 0.02719409391283989, 0.17768071591854095, 0.10240635275840759, -0.2849932909011841, 0.07870370894670486, -0.08898115903139114, -0.08253223448991776, -0.015492867678403854, -0.29076895117759705, 0.2522125542163849, 0.007713077589869499, 0.06480437517166138, -0.019112631678581238, 0.1038387268781662, 0.0420776791870594, -0.12596555054187775, 0.05617346987128258, 0.0037841349840164185, -0.04855355992913246, -0.04685654491186142, 0.0524539053440094, 0.540634036064148, 0.12147724628448486, -0.3457821011543274, 0.2633037269115448, -0.16283468902111053, 0.18128284811973572, 0.28038865327835083, -0.21483786404132843, -0.044438235461711884, -0.46850821375846863, -0.2270374596118927, -0.03705007582902908, -0.388776034116745, -0.42299556732177734, 0.15726891160011292, -0.27349376678466797, 0.3648270070552826, 0.2113611102104187, 0.08954697102308273, -0.06697078794240952, -0.025856520980596542, -0.11108429729938507, 0.027751605957746506, 0.03426588699221611, 0.10075203329324722, -0.4402084946632385, -0.3214177191257477, 0.07690805196762085, 0.15788614749908447, -0.007033061236143112, -0.04005581885576248, 0.20769180357456207, 0.01390122901648283, 0.30164793133735657, -0.07795673608779907, -0.025600280612707138, 0.19172713160514832, 0.19421517848968506, -0.053372859954833984, 0.31694337725639343, 0.11185967177152634, -0.5789566040039062, 0.17407137155532837, -0.2582860589027405, 0.08222651481628418, 0.12658442556858063, -0.37453484535217285, -0.1260652095079422, -0.08620966225862503, -0.4764728248119354, -0.5406157970428467, 0.1560218781232834, 0.28490331768989563, -0.049137912690639496, -0.10527209937572479, -0.24039357900619507, 0.5512447357177734, -0.26264721155166626, 0.21512554585933685, -0.476530522108078, 0.1979457288980484, -0.07498039305210114, 0.15279196202754974, 0.11726930737495422, 0.10102706402540207, 0.004388932138681412, 0.11118194460868835, 0.04732634499669075, 0.2589431703090668, 0.05524482950568199, 0.3331559896469116, 0.1939169466495514, -0.015593767166137695, 0.3004576563835144, -0.17417468130588531, -0.1487472653388977, 0.11297906935214996, 0.0885687991976738, 0.060131095349788666, -0.3865833282470703, 0.23966465890407562, -0.20319698750972748, 0.0032812729477882385, -0.05483444035053253, -0.13082362711429596, 0.2923993170261383, -0.1416109800338745, -0.0034339847043156624, -0.5109378099441528, 0.253530889749527, 0.08865314722061157, 0.46953463554382324, 0.19722525775432587, -0.24428407847881317, 0.19276872277259827, 0.04079917445778847, 0.14078357815742493, -0.1942283809185028, -0.016259141266345978, -0.14127472043037415, -0.134919673204422, -0.07986286282539368, 0.17907659709453583, 0.3696674406528473, 0.28519827127456665, -0.10356961190700531, 0.1510414332151413, -0.13237765431404114, -0.19445280730724335, 0.2456234097480774, -0.23505796492099762, -0.07997342199087143, 0.20352110266685486, 0.3219786584377289, 0.13787198066711426, -0.6552873849868774, -0.06862004101276398, 0.012459924444556236, -0.0030525121837854385, -0.48601698875427246, -0.1635308563709259, -0.11577210575342178, -0.3308985233306885, -0.4506738483905792, 0.19377587735652924, -0.37267687916755676, -0.29682472348213196, 0.217734232544899, 0.1844274252653122, -0.29092931747436523, 0.05593820661306381, -0.1773146539926529, 0.5094547867774963, -0.19053229689598083, 0.15088574588298798, -0.10499271750450134, 0.17993976175785065, -0.33064860105514526, 0.16565795242786407, 0.08999425172805786, -0.1211978867650032, 0.35238760709762573, -0.038950804620981216, -0.21157486736774445, -0.5472992658615112, -0.5236177444458008, 0.20843040943145752, 0.13915541768074036, 0.36966410279273987, 0.3066103458404541, -0.12800109386444092, -0.05712301284074783, -0.29249003529548645, 0.027307959273457527, 0.10667309165000916, -0.3492104709148407, -0.09586784988641739, -0.32383546233177185, 0.14989207684993744, -0.14760029315948486, -0.14493197202682495, 0.0635174885392189, -0.20537887513637543, 0.060659658163785934, -0.13722367584705353, 0.08459968864917755, 0.3050028383731842, -0.1538962870836258, 0.06029175594449043, -0.3173989951610565, -0.03887535631656647, -0.4645872414112091, -0.43545955419540405, -0.010894443839788437, -0.18292644619941711, -0.2920602858066559, -0.15871010720729828, 0.0971512496471405, -0.041164617985486984, 0.14235122501850128, -0.6871283054351807, -0.4630123972892761, -0.1058351993560791, 0.002717219293117523, 0.028215453028678894, 0.18613369762897491, 0.21626237034797668, 0.14209766685962677, -0.20226725935935974, -0.19532644748687744, -0.011418092995882034, 0.382899671792984, -0.16363027691841125, 0.30353835225105286, -0.11524709314107895, 0.1026085615158081, 0.07643599808216095, 0.31375348567962646, 0.8434228897094727, -0.001469835638999939, 0.4338819980621338, -0.06739205121994019, 0.3124110996723175, -0.020849190652370453, -0.18817073106765747, 0.14424429833889008, -0.07555574178695679, 0.15858279168605804, 0.401827335357666, -0.046321477741003036, -0.03643553704023361, 0.028762616217136383, -0.14630305767059326, -0.2654135823249817, -0.2283644825220108, -0.0789322555065155, 0.05482878535985947, 0.07165294885635376, 0.0920657217502594, -0.2884065806865692, -0.03318599611520767, -0.15154370665550232, 0.15729542076587677, 0.03709366172552109, 0.14509400725364685, 0.13489051163196564, -0.24685806035995483, 0.26025450229644775, -0.23894694447517395, 0.16796427965164185, 0.13473859429359436, 0.15145714581012726, -0.015814345329999924, -0.057734232395887375, 0.013694949448108673, -0.022812936455011368, 0.7903959155082703, -0.03403260558843613, 0.20426717400550842, 0.027810540050268173, -0.14602282643318176, -0.17567229270935059, -0.13851021230220795, 0.05382632836699486, -0.13235639035701752, 0.042110227048397064, 0.4128998816013336, -0.3416711390018463, 0.07112999260425568, 0.43287163972854614, -0.04431797191500664, -0.15703433752059937, -0.1497315913438797, -0.15783093869686127, -0.3200145363807678, -0.15701638162136078, 0.02714662253856659, -0.023990215733647346, 0.1375606507062912, -0.06738962978124619, -0.18924783170223236, -0.13642850518226624, -0.2950671315193176, 0.08589784801006317, 0.06670863926410675, 0.30329981446266174, 0.2618994414806366, 0.4669041037559509, 0.4708629846572876, 0.3350973129272461, 0.14659269154071808, 1.0519506931304932, -0.14418485760688782, -0.5197609663009644, 0.021676335483789444, -0.09264262765645981, -0.005141004920005798, 0.48990651965141296, 0.08962751924991608, 0.12154477834701538, 0.06473815441131592, 0.04679805412888527, 0.050846245139837265, -0.01932794228196144, 0.27047163248062134, -0.0013512000441551208, -0.18338170647621155, -0.150709867477417, 0.4275880753993988, 0.14615507423877716, -0.12429879605770111, 0.420608788728714, 0.2107413113117218, -0.314668744802475, 0.2819371819496155, 0.04041345790028572, 0.9385853409767151, 0.15588131546974182, 0.2149760127067566, 0.037555426359176636, -0.2692112922668457, 0.5875101685523987, -0.02893814817070961, -0.1418972760438919, -0.21764296293258667, -0.49189314246177673, 0.14328786730766296, -0.01014833152294159, -0.034152865409851074, -0.0936078131198883, 0.048499640077352524, 0.09052766859531403, -0.05717788636684418, 0.27108678221702576, 0.07206898927688599, 0.08792835474014282, -0.2031657099723816, -0.13663321733474731, -0.18814848363399506, 0.1276732087135315, -0.025396175682544708, 0.01043383777141571, 0.02165684849023819, 0.0600932352244854, -0.03224188834428787, -0.38472533226013184, -0.11230536550283432, 0.16744464635849, -0.5221054553985596, 0.1415778398513794, 0.09156195819377899, 0.01772875338792801, -0.03064749762415886, 0.09669159352779388, 0.44137275218963623, -0.12224826216697693, -0.05859139561653137, 0.22681009769439697, 0.24961161613464355, 0.26763346791267395, -0.10773887485265732, -0.198730930685997, 0.3762800693511963, -0.16056272387504578, -0.08390619605779648, -0.1093355044722557, 0.15930473804473877, -0.2135661542415619, -0.47147849202156067, 0.0761866569519043, -0.45968860387802124, -0.045472800731658936, -0.010232960805296898, 0.03267418593168259, 0.20392973721027374, -0.2811039090156555, 0.1403631716966629, -0.037848688662052155, -0.013037821277976036, -0.09098688513040543, 0.08146604895591736, -0.3286115527153015, -0.1354030966758728, 0.5333243012428284, 0.2865940034389496, -0.2705761194229126, 0.1788008064031601, 0.11921131610870361, -0.03772228956222534, -0.07700856029987335, -0.22537100315093994, 0.5069440603256226, -0.6518533229827881, 0.1981792002916336, -0.36168524622917175, -0.005338802933692932, -0.002753238659352064, 0.422392874956131, 0.18421722948551178, 0.03925338387489319, 0.13211295008659363, -0.3254238963127136, -0.04983305186033249, 0.28625550866127014, -0.13084450364112854, 0.33406656980514526, 0.1672138273715973, 0.2803395092487335, -0.1923382729291916, 0.17968641221523285, -0.3889954686164856, 0.0801335871219635, -0.06453847885131836, 0.010260775685310364, 0.10125201940536499, -0.015119113028049469, 0.1557547152042389, -0.0029584337025880814, 0.14028099179267883, 0.2721838355064392, -0.12523207068443298, -0.2485208511352539, -0.3904348313808441, 0.13174456357955933, -0.12100028246641159, -0.07050559669733047, 0.00387708842754364, -0.028160927817225456, 0.1299728900194168, -0.04256376251578331, 0.5148795247077942, 0.0577579140663147, 0.008961118757724762, -0.20921549201011658, -0.005176182836294174, -0.02911948412656784, 0.07348661869764328, 0.04269691929221153, -0.03800690174102783, 0.0841832309961319, 0.308903306722641, 0.07679762691259384, -0.34393298625946045, -0.13981419801712036, 0.2705495059490204, 0.13432620465755463, 0.14856505393981934, 0.18327370285987854, -0.016714029014110565, -0.2120533138513565, -0.23113560676574707, 0.24640636146068573, 0.3307933211326599, 0.2452830821275711, -0.4638025462627411, -0.1886003613471985, -0.19902393221855164, 0.2618715167045593, -0.4365542531013489, -0.4500628709793091, -0.0400509387254715, 0.016951538622379303, -0.027950799092650414, 0.15929509699344635, 0.4390650689601898, -0.2071942389011383, 0.017078205943107605, 0.0962802842259407, 0.5881932377815247, -0.2251540571451187, 0.19439922273159027, -0.18354153633117676, -0.10259431600570679, -0.09284143149852753, -0.10024706274271011, 0.07913955301046371, 0.2035963237285614, 0.20972613990306854, -0.15402263402938843, 0.3255162239074707, 0.009819559752941132, 0.33142122626304626, 0.23306721448898315, -0.2210325449705124, 0.1576390564441681, 0.4859612286090851, -0.24273452162742615, 0.3098113536834717, 0.07935278117656708, 0.1540992259979248, 0.11075320094823837, -0.11085294187068939, -0.2532787322998047, 0.30330055952072144, -0.010630406439304352, -0.09718059003353119, -0.10202519595623016, -0.3589634597301483, -0.574790358543396, 0.23608335852622986, -0.20802611112594604, -0.14386463165283203, 0.3955692946910858, -0.04889051616191864, -0.3522401452064514, -0.5194406509399414, -0.13292336463928223, 0.28538259863853455, 0.349598228931427, -0.406220942735672, 0.34005501866340637, 0.6960604786872864, -0.2867569327354431, 0.230922669172287, 0.5722978711128235, 0.43502917885780334, 0.10019391775131226, 0.3267900049686432, 0.007667877711355686, -0.06825204193592072, 0.10638871788978577, -0.28504425287246704, 0.17400334775447845, -0.11718741059303284, -0.27772659063339233, 0.3249940574169159, 0.15360954403877258, -0.25020739436149597, -0.32456904649734497, 0.022323772311210632, 0.30172866582870483, -0.4690496027469635, 0.12863649427890778, -0.35702744126319885, 0.27636393904685974, -0.003168851137161255, 0.0753345713019371, -0.45125603675842285, -0.23825006186962128, 0.3177047669887543, -0.020225247368216515, 0.1521892547607422, -0.06548599898815155, 0.11481288075447083, 0.1379261314868927, 0.45355546474456787, 0.2049618810415268, -0.024590015411376953, -0.04048873111605644, -0.4924445152282715, -0.5506691932678223, 0.34236153960227966, -0.11473110318183899, 0.2573946416378021, 0.10160306841135025, 0.10143902152776718, -0.06900598853826523, -0.08478802442550659, 0.20855337381362915, 0.21211519837379456, -0.045935388654470444, 0.17737674713134766, -0.3282060921192169, -0.009974639862775803, -0.10703262686729431, -0.11188043653964996, 0.0895473062992096, -0.2577894926071167, 0.2668514549732208, -0.00409901887178421, 0.0399763360619545, 0.048139579594135284, 0.05663282424211502, 0.19338852167129517, -0.28510141372680664, 0.20231236517429352, 0.35191574692726135, 0.2769767642021179, -0.1271616816520691, -0.34843936562538147, -0.2969304919242859, -0.1960519701242447, -0.33396396040916443, 0.20654788613319397, 0.16902677714824677, 0.3120591640472412, 0.006532413884997368, -0.4518447816371918, -0.02307356894016266, 0.15627065300941467, 0.20456689596176147, 0.15135562419891357, -0.514557957649231, 0.15814702212810516, -0.07080742716789246, 0.013726222328841686, 0.1419333517551422, 0.46316421031951904, 0.025792211294174194, 0.08709028363227844, -0.007263243198394775, -0.5874012112617493, 0.20395521819591522, -0.5411154627799988, 0.06107338145375252, -0.018232040107250214, 0.28442323207855225, 0.0451313778758049, -0.05109678953886032, -0.5387964844703674, 0.015393324196338654, 0.30554986000061035, 0.0063499026000499725, -0.06911219656467438, 0.3009802997112274, 0.11689899861812592, 0.015402425080537796, -0.007980059832334518, 0.08619167655706406, 0.3158293664455414, -0.20340439677238464, 0.357343465089798, -0.2383291870355606 ]
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.20848973095417023, 0.47808146476745605, -0.05400737375020981, 0.39984995126724243, 0.3617136478424072, 0.22684070467948914, 0.07851603627204895, 0.42884522676467896, -0.15867401659488678, 0.24357493221759796, 0.04682699590921402, 0.26792794466018677, -0.06666454672813416, -0.21087217330932617, 0.04908262938261032, 0.01756327971816063, -0.08829981833696365, 0.14268243312835693, 0.2282307893037796, -0.2342807799577713, -0.2054755985736847, 0.18188251554965973, -0.19302549958229065, 0.0730275809764862, -0.21082794666290283, -0.0789325162768364, 0.14610953629016876, 0.6233422160148621, -0.17660845816135406, -0.6049431562423706, 0.13058923184871674, 0.02113978937268257, 0.1271800845861435, 0.34388288855552673, -0.00011290806287433952, -0.0840204656124115, 0.5609159469604492, -0.09088180214166641, -0.207767516374588, -0.2428603321313858, -0.2933351397514343, 0.08937762677669525, -0.1876996010541916, -0.2272580862045288, 0.051939770579338074, 0.1707770824432373, 0.04398868605494499, -0.5675264596939087, 0.3152768015861511, 0.5750638246536255, 0.22179239988327026, -0.09192615002393723, 0.03311103209853172, -0.08004874736070633, 0.37786078453063965, 0.045462094247341156, 0.11142385751008987, 0.44612303376197815, 0.40498095750808716, -0.10606689006090164, -0.06456214934587479, 0.30808693170547485, -0.39144769310951233, -0.09315155446529388, 0.08107896894216537, -0.11042918264865875, 0.2468280792236328, -0.3147919178009033, 0.631677508354187, 0.16827517747879028, 0.7650752067565918, -0.21637344360351562, -0.08185826987028122, 0.010955564677715302, 0.19510532915592194, -0.27394068241119385, 0.18894781172275543, 0.38462409377098083, -0.3076023459434509, 0.09811586141586304, -0.0437702015042305, -0.017862841486930847, -0.24402599036693573, -0.030239276587963104, -0.1594131886959076, 0.06866403669118881, -0.09785473346710205, 0.03098968416452408, -0.24857984483242035, 0.0831884890794754, 0.3431301712989807, -0.08795321732759476, -0.2779463529586792, 0.38064563274383545, 0.03563348948955536, 0.17545050382614136, 0.17778515815734863, 0.029999475926160812, -0.062369454652071, 0.17347227036952972, -0.0929439589381218, 0.18983986973762512, 0.15818677842617035, 0.24506378173828125, 0.09535917639732361, -0.05205151066184044, 0.1189916580915451, 0.3499029278755188, 0.2957804799079895, -0.009253334254026413, -0.06258424371480942, -0.08848362416028976, -0.384227454662323, -0.3853070139884949, -0.11336064338684082, 0.24777501821517944, 0.2131844013929367, -0.3699800372123718, -0.4927597939968109, 0.3212738037109375, -0.07401280850172043, 0.019471675157546997, -0.060754332691431046, 0.4851856529712677, 0.1276373714208603, 0.04700559005141258, 0.2408127635717392, 0.24301256239414215, -0.18959978222846985, -0.07867607474327087, -0.18977366387844086, 0.15300078690052032, -0.04858608916401863, -0.043867357075214386, 0.13170628249645233, -0.5761978030204773, 0.11765479296445847, -0.01844196394085884, 0.3553459644317627, -0.320559561252594, -0.3360747694969177, -0.06480161845684052, -0.10945411771535873, 0.08054375648498535, -0.055988699197769165, 0.007181650027632713, 0.1801803708076477, -0.3210010528564453, -0.061889730393886566, -0.026008404791355133, -0.1589972972869873, -0.3241138458251953, -0.04794912785291672, 0.21770280599594116, 0.0325050912797451, 0.12401702255010605, -0.2615475058555603, 0.09874828159809113, 0.45696720480918884, -0.18387559056282043, 0.012119360268115997, -0.03662678599357605, -0.1992594301700592, -0.11160693317651749, 0.06852919608354568, 0.7190653681755066, 0.0927184522151947, 0.061755985021591187, 0.4470207393169403, 0.22045069932937622, 0.2396678924560547, -0.03465693071484566, -0.03030000627040863, 0.19475823640823364, -0.21614482998847961, 0.1940481811761856, 0.17385050654411316, -0.6035791635513306, -0.0017288550734519958, 0.19102606177330017, 0.04417945444583893, 0.12953077256679535, 0.054736923426389694, -0.3995583653450012, 0.42232903838157654, -0.353151798248291, 0.18093432486057281, 0.40035557746887207, -0.007808489724993706, 0.042234160006046295, -0.20970001816749573, -0.00949146132916212, -0.059294551610946655, 0.14079102873802185, 0.09565523266792297, 0.037147656083106995, 0.44472816586494446, 0.019530437886714935, 0.5081384778022766, -0.2271018922328949, -0.043508291244506836, 0.2044646143913269, -0.06371043622493744, 0.005708478391170502, -0.015798795968294144, -0.22926390171051025, -0.10089612752199173, 0.2268027365207672, -0.03854646161198616, -0.018679775297641754, -0.30475473403930664, -0.12036781013011932, -0.33639004826545715, 0.09419646859169006, -0.17249101400375366, -0.0096028633415699, 0.14682860672473907, 0.0825057327747345, 0.12274949252605438, 0.21110627055168152, -0.24854695796966553, 0.25062552094459534, -0.3510059118270874, 0.12943853437900543, -0.5143998861312866, 0.2901625335216522, 0.03663729503750801, -0.1802811175584793, 0.39105120301246643, 0.5273911356925964, 0.2063743770122528, -0.13158676028251648, -0.24504178762435913, 0.329573392868042, -0.2906765639781952, 0.6357574462890625, -0.3684309720993042, -0.21028967201709747, 0.15563692152500153, -0.3921349346637726, 0.19127105176448822, 0.1315571367740631, 0.2919694781303406, -0.10651187598705292, 0.22682994604110718, 0.12965914607048035, 0.0019431263208389282, 0.06161870062351227, 0.15708805620670319, -0.012435706332325935, 0.32170528173446655, -0.001480352133512497, -0.19805842638015747, -0.3063357174396515, 0.6450017690658569, 0.21857379376888275, 0.15654180943965912, -0.10520562529563904, -0.241617351770401, 0.05936024338006973, 0.4993922710418701, -0.09960204362869263, -0.026761651039123535, 0.035702649503946304, -0.010722704231739044, 0.02342335134744644, 0.012714982032775879, -0.14616107940673828, 0.14719539880752563, 0.021702822297811508, -0.10395358502864838, 0.032354686409235, 0.07160806655883789, -0.3352055549621582, 0.3919107913970947, -0.16878394782543182, 0.01420255471020937, 0.45102474093437195, 0.028291206806898117, 0.012384437024593353, -0.3308030366897583, -0.18815022706985474, 0.04717544466257095, 0.0889909416437149, -0.5186870694160461, 0.08404541015625, -0.2582149803638458, -0.27286967635154724, -0.23436640202999115, -0.3481082320213318, -0.0588163323700428, -0.10133454203605652, -0.0612812414765358, 0.14182323217391968, -0.076571986079216, 0.061471134424209595, -0.32260677218437195, 0.1384904682636261, -0.1622716337442398, 0.1579313725233078, -0.16137464344501495, -0.16258303821086884, -0.1952570676803589, -0.03746316581964493, 0.41069358587265015, 0.20903617143630981, 0.14561229944229126, -0.3906182050704956, 0.07566814124584198, -0.1550305187702179, -0.19672486186027527, 0.19226200878620148, -0.007283013314008713, 0.04450207203626633, -0.09627626836299896, -0.10302487015724182, 0.6314190626144409, -0.18735294044017792, 0.07747972011566162, 0.04037556052207947, -0.009592311456799507, 0.41204723715782166, 0.10204929858446121, -0.4308471381664276, -0.0713261067867279, -0.23927918076515198, -0.38404354453086853, -0.511367917060852, -0.21835921704769135, 0.08914913237094879, 0.2631496787071228, 0.40021300315856934, -0.2125224769115448, -0.04718682914972305, -0.029674651101231575, 0.33166345953941345, -0.12996932864189148, -0.22950312495231628, 0.20375990867614746, -0.2909752428531647, -0.3221522271633148, 0.10637880861759186, 0.06827641278505325, 0.3978848457336426, -0.026679910719394684, -0.29908525943756104, 0.20098991692066193, 0.07369157671928406, 0.08079661428928375, -0.1829187273979187, -0.03266478329896927, 0.16819602251052856, 0.06594514101743698, 0.0074232760816812515, -0.07654386758804321, 0.033720310777425766, -0.326450377702713, -0.025369316339492798, -0.12873852252960205, -0.05596211552619934, 0.20268943905830383, -0.17251314222812653, 0.06192030757665634, 0.48529136180877686, 0.09820149838924408, 0.28679603338241577, 0.05151120573282242, 0.2136230766773224, 0.014720551669597626, -0.24608372151851654, 0.47079741954803467, -0.19306546449661255, -0.22432947158813477, 0.3553863763809204, 0.05292004719376564, -0.1348506659269333, -0.21529430150985718, 0.07238736748695374, -0.1209128350019455, -0.29521429538726807, 0.05247966945171356, -0.3898857533931732, 0.2485881745815277, 0.06683844327926636, 0.39029717445373535, 0.07654944062232971, -0.20692530274391174, -0.008462190628051758, 0.3520241975784302, 0.15688268840312958, -0.12519781291484833, 0.01423734799027443, 0.1312180757522583, -0.48014700412750244, 0.344865620136261, 0.21024811267852783, -0.06401629000902176, -0.04329557716846466, 0.26088157296180725, 0.05872817710042, -0.1514604687690735, 0.09130479395389557, -0.22611597180366516, 0.2672905921936035, 0.20792517066001892, 0.38545823097229004, -0.2534749507904053, -0.04415830969810486, -0.01802113465964794, 0.48185455799102783, -0.08010037243366241, -0.045967862010002136, -0.09827540814876556, 0.12115850299596786, 0.07315713167190552, 0.12247557193040848, -0.08885125815868378, -0.18771810829639435, -0.2884797751903534, -0.35917121171951294, -0.31031176447868347, -0.23352232575416565, 0.06878215074539185, 0.31029757857322693, -0.13124850392341614, -0.11986105144023895, -0.0953502282500267, -0.03445577621459961, 0.19424524903297424, 0.08229956030845642, 0.09218871593475342, -0.07522440701723099, 0.11568772792816162, -0.013178680092096329, -0.1346062421798706, 0.3768357038497925, 0.7526923418045044, -0.13343825936317444, -0.5529475808143616, -0.11591244488954544, -0.3700488209724426, 0.07848943024873734, 0.44503167271614075, -0.21247601509094238, -0.13393190503120422, 0.059346314519643784, -0.05054686963558197, -0.3437473773956299, -0.2992703914642334, 0.050476089119911194, 0.099344402551651, -0.27841559052467346, -0.5206422209739685, 0.46235454082489014, -0.12712164223194122, 0.031140156090259552, 0.14684933423995972, 0.04181676730513573, -0.3473615348339081, 0.13728605210781097, 0.00645194947719574, 0.9900810122489929, 0.21408289670944214, -0.135793074965477, 0.07534268498420715, -0.2174912393093109, 0.05287395045161247, -0.22489503026008606, 0.19801901280879974, -0.2843388020992279, 0.02223992347717285, -0.1518346220254898, 0.20459064841270447, 0.26885029673576355, 0.06212630867958069, -0.21585382521152496, 0.19955073297023773, -0.07139971852302551, -0.2375732958316803, -0.04850330203771591, 0.003161802887916565, -0.41991233825683594, -0.25801384449005127, -0.5787035822868347, 0.11728213727474213, -0.11793215572834015, 0.11924758553504944, -0.11890983581542969, 0.03592992573976517, 0.04550871625542641, -0.32669520378112793, -0.4608328342437744, 0.3758390247821808, -0.2024468332529068, -0.15040534734725952, -0.057751696556806564, -0.38144147396087646, 0.3199521601200104, 0.056190866976976395, 0.25048762559890747, 0.039197757840156555, -0.04294220358133316, 0.14526335895061493, 0.19812217354774475, -0.03390701487660408, -0.024359142407774925, 0.08548836410045624, 0.23856577277183533, -0.06631956249475479, -0.11321285367012024, 0.2658348083496094, -0.04365915060043335, -0.18375371396541595, 0.2556540071964264, 0.06612878292798996, -0.08261808753013611, -0.03951672092080116, -0.04328209534287453, 0.09551656246185303, 0.18097944557666779, -0.06299910694360733, 0.14030644297599792, 0.1276882290840149, -0.28988203406333923, -0.05441058427095413, -0.11074316501617432, -0.26976096630096436, 0.08129045367240906, 0.2204330563545227, -0.03618469089269638, -0.08389484137296677, 0.4614362418651581, 0.4005640745162964, -0.20998935401439667, -0.11762211471796036, -0.34794726967811584, 0.18725867569446564, -0.5638506412506104, 0.03685687854886055, -0.0007270809728652239, 0.006248176097869873, -0.15868987143039703, 0.4170023202896118, -0.1392204612493515, -0.09379603713750839, 0.06255452334880829, -0.5232269763946533, -0.03873101621866226, 0.11545684188604355, -0.010350268334150314, 0.0329328253865242, -0.04875241965055466, 0.00014414265751838684, -0.23697514832019806, 0.11447948962450027, -0.3007833659648895, 0.10386241972446442, -0.20777711272239685, 0.137283056974411, 0.4296358823776245, -0.03401312977075577, -0.10302070528268814, -0.20394742488861084, 0.13359062373638153, 0.33601248264312744, -0.11274916678667068, -0.1500055342912674, -0.008557864464819431, 0.13779222965240479, 0.03241600841283798, -0.08051225543022156, 0.0895502120256424, -0.050176627933979034, -0.10576418042182922, -0.19346390664577484, 0.21797947585582733, 0.1474805772304535, 0.026141490787267685, -0.02772221714258194, -0.44821855425834656, 0.2940055727958679, -0.0006676055490970612, 0.2398095279932022, -0.1485021710395813, 0.4302428364753723, -0.11852985620498657, 0.12390348315238953, -0.2088456004858017, -0.03537400811910629, -0.11504817754030228, 0.25618070363998413, -0.0961359441280365, 0.06558652967214584, 0.43631479144096375, -0.24515561759471893, 0.3256570100784302, 0.48719266057014465, -0.08354673534631729, 0.3445187211036682, -0.40915438532829285, 0.028119830414652824, 0.026262568309903145, 0.21024452149868011, -0.18367736041545868, -0.018114667385816574, -0.49608948826789856, -0.04794016107916832, -0.09000492095947266, 0.2297481894493103, 0.11052343249320984, -0.370781272649765, -0.23056243360042572, 0.09063786268234253, 0.4767536520957947, -0.006316963583230972, 0.21916407346725464, 0.023105330765247345, 0.04931417480111122, -0.019284967333078384, -0.07029915601015091, 0.2188102751970291, 0.04618663713335991, 0.27203088998794556, -0.46463310718536377, 0.30939286947250366, 0.24947243928909302, 0.18010178208351135, -0.008530743420124054, -0.441162645816803, 0.04823687672615051, 0.2103957086801529, 0.08521953225135803, 0.4002787470817566, 0.16099023818969727, 0.15860091149806976, -0.14752593636512756, -0.1259336769580841, -0.16134700179100037, 0.04106694459915161, -0.05831831693649292, 0.04725276678800583, -0.31452664732933044, -0.21366673707962036, -0.17241989076137543, -0.10437792539596558, -0.1697821021080017, 0.11930190026760101, 0.07531823962926865, 0.15568983554840088, -0.34762752056121826, -0.3463914692401886, 0.1377420723438263, -0.20963770151138306, 0.24470335245132446, -0.12532836198806763, 0.5787795186042786, 0.4382143020629883, 0.08463551849126816, 0.42588868737220764, 0.30174779891967773, 0.7615880370140076, 0.3058425486087799, 0.053504955023527145, 0.19278031587600708, -0.18105542659759521, -0.12506377696990967, 0.10440588742494583, 0.39842233061790466, 0.04488162696361542, 0.3953401744365692, 0.043963152915239334, 0.18636570870876312, -0.13800552487373352, 0.144394189119339, 0.2655777037143707, 0.4306212067604065, -0.19145897030830383, 0.2662215828895569, -0.17391031980514526, -0.05721883848309517, -0.41987738013267517, -0.09465410560369492, -0.37711653113365173, 0.13632753491401672, 0.2699836790561676, -0.0920642614364624, 0.09514010697603226, -0.00836112815886736, 0.10252707451581955, 0.07400330901145935, 0.3087230622768402, 0.4034370481967926, 0.13573509454727173, 0.025536436587572098, -0.20816145837306976, -0.4297654330730438, 0.3247809112071991, -0.09087194502353668, -0.3741280436515808, -0.06660348176956177, 0.0824076235294342, 0.19193395972251892, 0.11558326333761215, 0.12382199615240097, -0.043221425265073776, 0.38333314657211304, 0.05972364544868469, -0.1724226027727127, -0.014610059559345245, 0.2414138913154602, -0.06203330308198929, -0.3025849759578705, -0.36429324746131897, 0.032573118805885315, -0.22731968760490417, 0.07015573978424072, 0.048275671899318695, -0.03996368497610092, -0.09226003289222717, -0.264672189950943, 0.3722169101238251, 0.061068691313266754, 0.21667730808258057, -0.31074222922325134, -0.22672675549983978, -0.3663763999938965, -0.1446741819381714, -0.15450014173984528, 0.4856228232383728, 0.1616639494895935, 0.2741343080997467, -0.07876952737569809, 0.025311162695288658, -0.2682865858078003, 0.18794193863868713, -0.11796917766332626, 0.26936110854148865, -0.39832714200019836, -0.06192439794540405, -0.1300138682126999, 0.06348057836294174, -0.00024346262216567993, 0.241636723279953, 0.013725083321332932, 0.07287728786468506, -0.1267952173948288, -0.6861609220504761, 0.42833638191223145, -0.5565595626831055, -0.41566526889801025, 0.08782657235860825, 0.601387083530426, 0.005116462707519531, 0.07253186404705048, -0.6429913640022278, 0.24273759126663208, 0.0948258489370346, -0.20157089829444885, -0.18874754011631012, -0.007277907803654671, -0.12395967543125153, -0.13155333697795868, -0.04032430425286293, 0.0875852108001709, 0.2611960172653198, -0.16496849060058594, 0.16412353515625, -0.40806102752685547 ]
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.20848973095417023, 0.47808146476745605, -0.05400737375020981, 0.39984995126724243, 0.3617136478424072, 0.22684070467948914, 0.07851603627204895, 0.42884522676467896, -0.15867401659488678, 0.24357493221759796, 0.04682699590921402, 0.26792794466018677, -0.06666454672813416, -0.21087217330932617, 0.04908262938261032, 0.01756327971816063, -0.08829981833696365, 0.14268243312835693, 0.2282307893037796, -0.2342807799577713, -0.2054755985736847, 0.18188251554965973, -0.19302549958229065, 0.0730275809764862, -0.21082794666290283, -0.0789325162768364, 0.14610953629016876, 0.6233422160148621, -0.17660845816135406, -0.6049431562423706, 0.13058923184871674, 0.02113978937268257, 0.1271800845861435, 0.34388288855552673, -0.00011290806287433952, -0.0840204656124115, 0.5609159469604492, -0.09088180214166641, -0.207767516374588, -0.2428603321313858, -0.2933351397514343, 0.08937762677669525, -0.1876996010541916, -0.2272580862045288, 0.051939770579338074, 0.1707770824432373, 0.04398868605494499, -0.5675264596939087, 0.3152768015861511, 0.5750638246536255, 0.22179239988327026, -0.09192615002393723, 0.03311103209853172, -0.08004874736070633, 0.37786078453063965, 0.045462094247341156, 0.11142385751008987, 0.44612303376197815, 0.40498095750808716, -0.10606689006090164, -0.06456214934587479, 0.30808693170547485, -0.39144769310951233, -0.09315155446529388, 0.08107896894216537, -0.11042918264865875, 0.2468280792236328, -0.3147919178009033, 0.631677508354187, 0.16827517747879028, 0.7650752067565918, -0.21637344360351562, -0.08185826987028122, 0.010955564677715302, 0.19510532915592194, -0.27394068241119385, 0.18894781172275543, 0.38462409377098083, -0.3076023459434509, 0.09811586141586304, -0.0437702015042305, -0.017862841486930847, -0.24402599036693573, -0.030239276587963104, -0.1594131886959076, 0.06866403669118881, -0.09785473346710205, 0.03098968416452408, -0.24857984483242035, 0.0831884890794754, 0.3431301712989807, -0.08795321732759476, -0.2779463529586792, 0.38064563274383545, 0.03563348948955536, 0.17545050382614136, 0.17778515815734863, 0.029999475926160812, -0.062369454652071, 0.17347227036952972, -0.0929439589381218, 0.18983986973762512, 0.15818677842617035, 0.24506378173828125, 0.09535917639732361, -0.05205151066184044, 0.1189916580915451, 0.3499029278755188, 0.2957804799079895, -0.009253334254026413, -0.06258424371480942, -0.08848362416028976, -0.384227454662323, -0.3853070139884949, -0.11336064338684082, 0.24777501821517944, 0.2131844013929367, -0.3699800372123718, -0.4927597939968109, 0.3212738037109375, -0.07401280850172043, 0.019471675157546997, -0.060754332691431046, 0.4851856529712677, 0.1276373714208603, 0.04700559005141258, 0.2408127635717392, 0.24301256239414215, -0.18959978222846985, -0.07867607474327087, -0.18977366387844086, 0.15300078690052032, -0.04858608916401863, -0.043867357075214386, 0.13170628249645233, -0.5761978030204773, 0.11765479296445847, -0.01844196394085884, 0.3553459644317627, -0.320559561252594, -0.3360747694969177, -0.06480161845684052, -0.10945411771535873, 0.08054375648498535, -0.055988699197769165, 0.007181650027632713, 0.1801803708076477, -0.3210010528564453, -0.061889730393886566, -0.026008404791355133, -0.1589972972869873, -0.3241138458251953, -0.04794912785291672, 0.21770280599594116, 0.0325050912797451, 0.12401702255010605, -0.2615475058555603, 0.09874828159809113, 0.45696720480918884, -0.18387559056282043, 0.012119360268115997, -0.03662678599357605, -0.1992594301700592, -0.11160693317651749, 0.06852919608354568, 0.7190653681755066, 0.0927184522151947, 0.061755985021591187, 0.4470207393169403, 0.22045069932937622, 0.2396678924560547, -0.03465693071484566, -0.03030000627040863, 0.19475823640823364, -0.21614482998847961, 0.1940481811761856, 0.17385050654411316, -0.6035791635513306, -0.0017288550734519958, 0.19102606177330017, 0.04417945444583893, 0.12953077256679535, 0.054736923426389694, -0.3995583653450012, 0.42232903838157654, -0.353151798248291, 0.18093432486057281, 0.40035557746887207, -0.007808489724993706, 0.042234160006046295, -0.20970001816749573, -0.00949146132916212, -0.059294551610946655, 0.14079102873802185, 0.09565523266792297, 0.037147656083106995, 0.44472816586494446, 0.019530437886714935, 0.5081384778022766, -0.2271018922328949, -0.043508291244506836, 0.2044646143913269, -0.06371043622493744, 0.005708478391170502, -0.015798795968294144, -0.22926390171051025, -0.10089612752199173, 0.2268027365207672, -0.03854646161198616, -0.018679775297641754, -0.30475473403930664, -0.12036781013011932, -0.33639004826545715, 0.09419646859169006, -0.17249101400375366, -0.0096028633415699, 0.14682860672473907, 0.0825057327747345, 0.12274949252605438, 0.21110627055168152, -0.24854695796966553, 0.25062552094459534, -0.3510059118270874, 0.12943853437900543, -0.5143998861312866, 0.2901625335216522, 0.03663729503750801, -0.1802811175584793, 0.39105120301246643, 0.5273911356925964, 0.2063743770122528, -0.13158676028251648, -0.24504178762435913, 0.329573392868042, -0.2906765639781952, 0.6357574462890625, -0.3684309720993042, -0.21028967201709747, 0.15563692152500153, -0.3921349346637726, 0.19127105176448822, 0.1315571367740631, 0.2919694781303406, -0.10651187598705292, 0.22682994604110718, 0.12965914607048035, 0.0019431263208389282, 0.06161870062351227, 0.15708805620670319, -0.012435706332325935, 0.32170528173446655, -0.001480352133512497, -0.19805842638015747, -0.3063357174396515, 0.6450017690658569, 0.21857379376888275, 0.15654180943965912, -0.10520562529563904, -0.241617351770401, 0.05936024338006973, 0.4993922710418701, -0.09960204362869263, -0.026761651039123535, 0.035702649503946304, -0.010722704231739044, 0.02342335134744644, 0.012714982032775879, -0.14616107940673828, 0.14719539880752563, 0.021702822297811508, -0.10395358502864838, 0.032354686409235, 0.07160806655883789, -0.3352055549621582, 0.3919107913970947, -0.16878394782543182, 0.01420255471020937, 0.45102474093437195, 0.028291206806898117, 0.012384437024593353, -0.3308030366897583, -0.18815022706985474, 0.04717544466257095, 0.0889909416437149, -0.5186870694160461, 0.08404541015625, -0.2582149803638458, -0.27286967635154724, -0.23436640202999115, -0.3481082320213318, -0.0588163323700428, -0.10133454203605652, -0.0612812414765358, 0.14182323217391968, -0.076571986079216, 0.061471134424209595, -0.32260677218437195, 0.1384904682636261, -0.1622716337442398, 0.1579313725233078, -0.16137464344501495, -0.16258303821086884, -0.1952570676803589, -0.03746316581964493, 0.41069358587265015, 0.20903617143630981, 0.14561229944229126, -0.3906182050704956, 0.07566814124584198, -0.1550305187702179, -0.19672486186027527, 0.19226200878620148, -0.007283013314008713, 0.04450207203626633, -0.09627626836299896, -0.10302487015724182, 0.6314190626144409, -0.18735294044017792, 0.07747972011566162, 0.04037556052207947, -0.009592311456799507, 0.41204723715782166, 0.10204929858446121, -0.4308471381664276, -0.0713261067867279, -0.23927918076515198, -0.38404354453086853, -0.511367917060852, -0.21835921704769135, 0.08914913237094879, 0.2631496787071228, 0.40021300315856934, -0.2125224769115448, -0.04718682914972305, -0.029674651101231575, 0.33166345953941345, -0.12996932864189148, -0.22950312495231628, 0.20375990867614746, -0.2909752428531647, -0.3221522271633148, 0.10637880861759186, 0.06827641278505325, 0.3978848457336426, -0.026679910719394684, -0.29908525943756104, 0.20098991692066193, 0.07369157671928406, 0.08079661428928375, -0.1829187273979187, -0.03266478329896927, 0.16819602251052856, 0.06594514101743698, 0.0074232760816812515, -0.07654386758804321, 0.033720310777425766, -0.326450377702713, -0.025369316339492798, -0.12873852252960205, -0.05596211552619934, 0.20268943905830383, -0.17251314222812653, 0.06192030757665634, 0.48529136180877686, 0.09820149838924408, 0.28679603338241577, 0.05151120573282242, 0.2136230766773224, 0.014720551669597626, -0.24608372151851654, 0.47079741954803467, -0.19306546449661255, -0.22432947158813477, 0.3553863763809204, 0.05292004719376564, -0.1348506659269333, -0.21529430150985718, 0.07238736748695374, -0.1209128350019455, -0.29521429538726807, 0.05247966945171356, -0.3898857533931732, 0.2485881745815277, 0.06683844327926636, 0.39029717445373535, 0.07654944062232971, -0.20692530274391174, -0.008462190628051758, 0.3520241975784302, 0.15688268840312958, -0.12519781291484833, 0.01423734799027443, 0.1312180757522583, -0.48014700412750244, 0.344865620136261, 0.21024811267852783, -0.06401629000902176, -0.04329557716846466, 0.26088157296180725, 0.05872817710042, -0.1514604687690735, 0.09130479395389557, -0.22611597180366516, 0.2672905921936035, 0.20792517066001892, 0.38545823097229004, -0.2534749507904053, -0.04415830969810486, -0.01802113465964794, 0.48185455799102783, -0.08010037243366241, -0.045967862010002136, -0.09827540814876556, 0.12115850299596786, 0.07315713167190552, 0.12247557193040848, -0.08885125815868378, -0.18771810829639435, -0.2884797751903534, -0.35917121171951294, -0.31031176447868347, -0.23352232575416565, 0.06878215074539185, 0.31029757857322693, -0.13124850392341614, -0.11986105144023895, -0.0953502282500267, -0.03445577621459961, 0.19424524903297424, 0.08229956030845642, 0.09218871593475342, -0.07522440701723099, 0.11568772792816162, -0.013178680092096329, -0.1346062421798706, 0.3768357038497925, 0.7526923418045044, -0.13343825936317444, -0.5529475808143616, -0.11591244488954544, -0.3700488209724426, 0.07848943024873734, 0.44503167271614075, -0.21247601509094238, -0.13393190503120422, 0.059346314519643784, -0.05054686963558197, -0.3437473773956299, -0.2992703914642334, 0.050476089119911194, 0.099344402551651, -0.27841559052467346, -0.5206422209739685, 0.46235454082489014, -0.12712164223194122, 0.031140156090259552, 0.14684933423995972, 0.04181676730513573, -0.3473615348339081, 0.13728605210781097, 0.00645194947719574, 0.9900810122489929, 0.21408289670944214, -0.135793074965477, 0.07534268498420715, -0.2174912393093109, 0.05287395045161247, -0.22489503026008606, 0.19801901280879974, -0.2843388020992279, 0.02223992347717285, -0.1518346220254898, 0.20459064841270447, 0.26885029673576355, 0.06212630867958069, -0.21585382521152496, 0.19955073297023773, -0.07139971852302551, -0.2375732958316803, -0.04850330203771591, 0.003161802887916565, -0.41991233825683594, -0.25801384449005127, -0.5787035822868347, 0.11728213727474213, -0.11793215572834015, 0.11924758553504944, -0.11890983581542969, 0.03592992573976517, 0.04550871625542641, -0.32669520378112793, -0.4608328342437744, 0.3758390247821808, -0.2024468332529068, -0.15040534734725952, -0.057751696556806564, -0.38144147396087646, 0.3199521601200104, 0.056190866976976395, 0.25048762559890747, 0.039197757840156555, -0.04294220358133316, 0.14526335895061493, 0.19812217354774475, -0.03390701487660408, -0.024359142407774925, 0.08548836410045624, 0.23856577277183533, -0.06631956249475479, -0.11321285367012024, 0.2658348083496094, -0.04365915060043335, -0.18375371396541595, 0.2556540071964264, 0.06612878292798996, -0.08261808753013611, -0.03951672092080116, -0.04328209534287453, 0.09551656246185303, 0.18097944557666779, -0.06299910694360733, 0.14030644297599792, 0.1276882290840149, -0.28988203406333923, -0.05441058427095413, -0.11074316501617432, -0.26976096630096436, 0.08129045367240906, 0.2204330563545227, -0.03618469089269638, -0.08389484137296677, 0.4614362418651581, 0.4005640745162964, -0.20998935401439667, -0.11762211471796036, -0.34794726967811584, 0.18725867569446564, -0.5638506412506104, 0.03685687854886055, -0.0007270809728652239, 0.006248176097869873, -0.15868987143039703, 0.4170023202896118, -0.1392204612493515, -0.09379603713750839, 0.06255452334880829, -0.5232269763946533, -0.03873101621866226, 0.11545684188604355, -0.010350268334150314, 0.0329328253865242, -0.04875241965055466, 0.00014414265751838684, -0.23697514832019806, 0.11447948962450027, -0.3007833659648895, 0.10386241972446442, -0.20777711272239685, 0.137283056974411, 0.4296358823776245, -0.03401312977075577, -0.10302070528268814, -0.20394742488861084, 0.13359062373638153, 0.33601248264312744, -0.11274916678667068, -0.1500055342912674, -0.008557864464819431, 0.13779222965240479, 0.03241600841283798, -0.08051225543022156, 0.0895502120256424, -0.050176627933979034, -0.10576418042182922, -0.19346390664577484, 0.21797947585582733, 0.1474805772304535, 0.026141490787267685, -0.02772221714258194, -0.44821855425834656, 0.2940055727958679, -0.0006676055490970612, 0.2398095279932022, -0.1485021710395813, 0.4302428364753723, -0.11852985620498657, 0.12390348315238953, -0.2088456004858017, -0.03537400811910629, -0.11504817754030228, 0.25618070363998413, -0.0961359441280365, 0.06558652967214584, 0.43631479144096375, -0.24515561759471893, 0.3256570100784302, 0.48719266057014465, -0.08354673534631729, 0.3445187211036682, -0.40915438532829285, 0.028119830414652824, 0.026262568309903145, 0.21024452149868011, -0.18367736041545868, -0.018114667385816574, -0.49608948826789856, -0.04794016107916832, -0.09000492095947266, 0.2297481894493103, 0.11052343249320984, -0.370781272649765, -0.23056243360042572, 0.09063786268234253, 0.4767536520957947, -0.006316963583230972, 0.21916407346725464, 0.023105330765247345, 0.04931417480111122, -0.019284967333078384, -0.07029915601015091, 0.2188102751970291, 0.04618663713335991, 0.27203088998794556, -0.46463310718536377, 0.30939286947250366, 0.24947243928909302, 0.18010178208351135, -0.008530743420124054, -0.441162645816803, 0.04823687672615051, 0.2103957086801529, 0.08521953225135803, 0.4002787470817566, 0.16099023818969727, 0.15860091149806976, -0.14752593636512756, -0.1259336769580841, -0.16134700179100037, 0.04106694459915161, -0.05831831693649292, 0.04725276678800583, -0.31452664732933044, -0.21366673707962036, -0.17241989076137543, -0.10437792539596558, -0.1697821021080017, 0.11930190026760101, 0.07531823962926865, 0.15568983554840088, -0.34762752056121826, -0.3463914692401886, 0.1377420723438263, -0.20963770151138306, 0.24470335245132446, -0.12532836198806763, 0.5787795186042786, 0.4382143020629883, 0.08463551849126816, 0.42588868737220764, 0.30174779891967773, 0.7615880370140076, 0.3058425486087799, 0.053504955023527145, 0.19278031587600708, -0.18105542659759521, -0.12506377696990967, 0.10440588742494583, 0.39842233061790466, 0.04488162696361542, 0.3953401744365692, 0.043963152915239334, 0.18636570870876312, -0.13800552487373352, 0.144394189119339, 0.2655777037143707, 0.4306212067604065, -0.19145897030830383, 0.2662215828895569, -0.17391031980514526, -0.05721883848309517, -0.41987738013267517, -0.09465410560369492, -0.37711653113365173, 0.13632753491401672, 0.2699836790561676, -0.0920642614364624, 0.09514010697603226, -0.00836112815886736, 0.10252707451581955, 0.07400330901145935, 0.3087230622768402, 0.4034370481967926, 0.13573509454727173, 0.025536436587572098, -0.20816145837306976, -0.4297654330730438, 0.3247809112071991, -0.09087194502353668, -0.3741280436515808, -0.06660348176956177, 0.0824076235294342, 0.19193395972251892, 0.11558326333761215, 0.12382199615240097, -0.043221425265073776, 0.38333314657211304, 0.05972364544868469, -0.1724226027727127, -0.014610059559345245, 0.2414138913154602, -0.06203330308198929, -0.3025849759578705, -0.36429324746131897, 0.032573118805885315, -0.22731968760490417, 0.07015573978424072, 0.048275671899318695, -0.03996368497610092, -0.09226003289222717, -0.264672189950943, 0.3722169101238251, 0.061068691313266754, 0.21667730808258057, -0.31074222922325134, -0.22672675549983978, -0.3663763999938965, -0.1446741819381714, -0.15450014173984528, 0.4856228232383728, 0.1616639494895935, 0.2741343080997467, -0.07876952737569809, 0.025311162695288658, -0.2682865858078003, 0.18794193863868713, -0.11796917766332626, 0.26936110854148865, -0.39832714200019836, -0.06192439794540405, -0.1300138682126999, 0.06348057836294174, -0.00024346262216567993, 0.241636723279953, 0.013725083321332932, 0.07287728786468506, -0.1267952173948288, -0.6861609220504761, 0.42833638191223145, -0.5565595626831055, -0.41566526889801025, 0.08782657235860825, 0.601387083530426, 0.005116462707519531, 0.07253186404705048, -0.6429913640022278, 0.24273759126663208, 0.0948258489370346, -0.20157089829444885, -0.18874754011631012, -0.007277907803654671, -0.12395967543125153, -0.13155333697795868, -0.04032430425286293, 0.0875852108001709, 0.2611960172653198, -0.16496849060058594, 0.16412353515625, -0.40806102752685547 ]
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.20848973095417023, 0.47808146476745605, -0.05400737375020981, 0.39984995126724243, 0.3617136478424072, 0.22684070467948914, 0.07851603627204895, 0.42884522676467896, -0.15867401659488678, 0.24357493221759796, 0.04682699590921402, 0.26792794466018677, -0.06666454672813416, -0.21087217330932617, 0.04908262938261032, 0.01756327971816063, -0.08829981833696365, 0.14268243312835693, 0.2282307893037796, -0.2342807799577713, -0.2054755985736847, 0.18188251554965973, -0.19302549958229065, 0.0730275809764862, -0.21082794666290283, -0.0789325162768364, 0.14610953629016876, 0.6233422160148621, -0.17660845816135406, -0.6049431562423706, 0.13058923184871674, 0.02113978937268257, 0.1271800845861435, 0.34388288855552673, -0.00011290806287433952, -0.0840204656124115, 0.5609159469604492, -0.09088180214166641, -0.207767516374588, -0.2428603321313858, -0.2933351397514343, 0.08937762677669525, -0.1876996010541916, -0.2272580862045288, 0.051939770579338074, 0.1707770824432373, 0.04398868605494499, -0.5675264596939087, 0.3152768015861511, 0.5750638246536255, 0.22179239988327026, -0.09192615002393723, 0.03311103209853172, -0.08004874736070633, 0.37786078453063965, 0.045462094247341156, 0.11142385751008987, 0.44612303376197815, 0.40498095750808716, -0.10606689006090164, -0.06456214934587479, 0.30808693170547485, -0.39144769310951233, -0.09315155446529388, 0.08107896894216537, -0.11042918264865875, 0.2468280792236328, -0.3147919178009033, 0.631677508354187, 0.16827517747879028, 0.7650752067565918, -0.21637344360351562, -0.08185826987028122, 0.010955564677715302, 0.19510532915592194, -0.27394068241119385, 0.18894781172275543, 0.38462409377098083, -0.3076023459434509, 0.09811586141586304, -0.0437702015042305, -0.017862841486930847, -0.24402599036693573, -0.030239276587963104, -0.1594131886959076, 0.06866403669118881, -0.09785473346710205, 0.03098968416452408, -0.24857984483242035, 0.0831884890794754, 0.3431301712989807, -0.08795321732759476, -0.2779463529586792, 0.38064563274383545, 0.03563348948955536, 0.17545050382614136, 0.17778515815734863, 0.029999475926160812, -0.062369454652071, 0.17347227036952972, -0.0929439589381218, 0.18983986973762512, 0.15818677842617035, 0.24506378173828125, 0.09535917639732361, -0.05205151066184044, 0.1189916580915451, 0.3499029278755188, 0.2957804799079895, -0.009253334254026413, -0.06258424371480942, -0.08848362416028976, -0.384227454662323, -0.3853070139884949, -0.11336064338684082, 0.24777501821517944, 0.2131844013929367, -0.3699800372123718, -0.4927597939968109, 0.3212738037109375, -0.07401280850172043, 0.019471675157546997, -0.060754332691431046, 0.4851856529712677, 0.1276373714208603, 0.04700559005141258, 0.2408127635717392, 0.24301256239414215, -0.18959978222846985, -0.07867607474327087, -0.18977366387844086, 0.15300078690052032, -0.04858608916401863, -0.043867357075214386, 0.13170628249645233, -0.5761978030204773, 0.11765479296445847, -0.01844196394085884, 0.3553459644317627, -0.320559561252594, -0.3360747694969177, -0.06480161845684052, -0.10945411771535873, 0.08054375648498535, -0.055988699197769165, 0.007181650027632713, 0.1801803708076477, -0.3210010528564453, -0.061889730393886566, -0.026008404791355133, -0.1589972972869873, -0.3241138458251953, -0.04794912785291672, 0.21770280599594116, 0.0325050912797451, 0.12401702255010605, -0.2615475058555603, 0.09874828159809113, 0.45696720480918884, -0.18387559056282043, 0.012119360268115997, -0.03662678599357605, -0.1992594301700592, -0.11160693317651749, 0.06852919608354568, 0.7190653681755066, 0.0927184522151947, 0.061755985021591187, 0.4470207393169403, 0.22045069932937622, 0.2396678924560547, -0.03465693071484566, -0.03030000627040863, 0.19475823640823364, -0.21614482998847961, 0.1940481811761856, 0.17385050654411316, -0.6035791635513306, -0.0017288550734519958, 0.19102606177330017, 0.04417945444583893, 0.12953077256679535, 0.054736923426389694, -0.3995583653450012, 0.42232903838157654, -0.353151798248291, 0.18093432486057281, 0.40035557746887207, -0.007808489724993706, 0.042234160006046295, -0.20970001816749573, -0.00949146132916212, -0.059294551610946655, 0.14079102873802185, 0.09565523266792297, 0.037147656083106995, 0.44472816586494446, 0.019530437886714935, 0.5081384778022766, -0.2271018922328949, -0.043508291244506836, 0.2044646143913269, -0.06371043622493744, 0.005708478391170502, -0.015798795968294144, -0.22926390171051025, -0.10089612752199173, 0.2268027365207672, -0.03854646161198616, -0.018679775297641754, -0.30475473403930664, -0.12036781013011932, -0.33639004826545715, 0.09419646859169006, -0.17249101400375366, -0.0096028633415699, 0.14682860672473907, 0.0825057327747345, 0.12274949252605438, 0.21110627055168152, -0.24854695796966553, 0.25062552094459534, -0.3510059118270874, 0.12943853437900543, -0.5143998861312866, 0.2901625335216522, 0.03663729503750801, -0.1802811175584793, 0.39105120301246643, 0.5273911356925964, 0.2063743770122528, -0.13158676028251648, -0.24504178762435913, 0.329573392868042, -0.2906765639781952, 0.6357574462890625, -0.3684309720993042, -0.21028967201709747, 0.15563692152500153, -0.3921349346637726, 0.19127105176448822, 0.1315571367740631, 0.2919694781303406, -0.10651187598705292, 0.22682994604110718, 0.12965914607048035, 0.0019431263208389282, 0.06161870062351227, 0.15708805620670319, -0.012435706332325935, 0.32170528173446655, -0.001480352133512497, -0.19805842638015747, -0.3063357174396515, 0.6450017690658569, 0.21857379376888275, 0.15654180943965912, -0.10520562529563904, -0.241617351770401, 0.05936024338006973, 0.4993922710418701, -0.09960204362869263, -0.026761651039123535, 0.035702649503946304, -0.010722704231739044, 0.02342335134744644, 0.012714982032775879, -0.14616107940673828, 0.14719539880752563, 0.021702822297811508, -0.10395358502864838, 0.032354686409235, 0.07160806655883789, -0.3352055549621582, 0.3919107913970947, -0.16878394782543182, 0.01420255471020937, 0.45102474093437195, 0.028291206806898117, 0.012384437024593353, -0.3308030366897583, -0.18815022706985474, 0.04717544466257095, 0.0889909416437149, -0.5186870694160461, 0.08404541015625, -0.2582149803638458, -0.27286967635154724, -0.23436640202999115, -0.3481082320213318, -0.0588163323700428, -0.10133454203605652, -0.0612812414765358, 0.14182323217391968, -0.076571986079216, 0.061471134424209595, -0.32260677218437195, 0.1384904682636261, -0.1622716337442398, 0.1579313725233078, -0.16137464344501495, -0.16258303821086884, -0.1952570676803589, -0.03746316581964493, 0.41069358587265015, 0.20903617143630981, 0.14561229944229126, -0.3906182050704956, 0.07566814124584198, -0.1550305187702179, -0.19672486186027527, 0.19226200878620148, -0.007283013314008713, 0.04450207203626633, -0.09627626836299896, -0.10302487015724182, 0.6314190626144409, -0.18735294044017792, 0.07747972011566162, 0.04037556052207947, -0.009592311456799507, 0.41204723715782166, 0.10204929858446121, -0.4308471381664276, -0.0713261067867279, -0.23927918076515198, -0.38404354453086853, -0.511367917060852, -0.21835921704769135, 0.08914913237094879, 0.2631496787071228, 0.40021300315856934, -0.2125224769115448, -0.04718682914972305, -0.029674651101231575, 0.33166345953941345, -0.12996932864189148, -0.22950312495231628, 0.20375990867614746, -0.2909752428531647, -0.3221522271633148, 0.10637880861759186, 0.06827641278505325, 0.3978848457336426, -0.026679910719394684, -0.29908525943756104, 0.20098991692066193, 0.07369157671928406, 0.08079661428928375, -0.1829187273979187, -0.03266478329896927, 0.16819602251052856, 0.06594514101743698, 0.0074232760816812515, -0.07654386758804321, 0.033720310777425766, -0.326450377702713, -0.025369316339492798, -0.12873852252960205, -0.05596211552619934, 0.20268943905830383, -0.17251314222812653, 0.06192030757665634, 0.48529136180877686, 0.09820149838924408, 0.28679603338241577, 0.05151120573282242, 0.2136230766773224, 0.014720551669597626, -0.24608372151851654, 0.47079741954803467, -0.19306546449661255, -0.22432947158813477, 0.3553863763809204, 0.05292004719376564, -0.1348506659269333, -0.21529430150985718, 0.07238736748695374, -0.1209128350019455, -0.29521429538726807, 0.05247966945171356, -0.3898857533931732, 0.2485881745815277, 0.06683844327926636, 0.39029717445373535, 0.07654944062232971, -0.20692530274391174, -0.008462190628051758, 0.3520241975784302, 0.15688268840312958, -0.12519781291484833, 0.01423734799027443, 0.1312180757522583, -0.48014700412750244, 0.344865620136261, 0.21024811267852783, -0.06401629000902176, -0.04329557716846466, 0.26088157296180725, 0.05872817710042, -0.1514604687690735, 0.09130479395389557, -0.22611597180366516, 0.2672905921936035, 0.20792517066001892, 0.38545823097229004, -0.2534749507904053, -0.04415830969810486, -0.01802113465964794, 0.48185455799102783, -0.08010037243366241, -0.045967862010002136, -0.09827540814876556, 0.12115850299596786, 0.07315713167190552, 0.12247557193040848, -0.08885125815868378, -0.18771810829639435, -0.2884797751903534, -0.35917121171951294, -0.31031176447868347, -0.23352232575416565, 0.06878215074539185, 0.31029757857322693, -0.13124850392341614, -0.11986105144023895, -0.0953502282500267, -0.03445577621459961, 0.19424524903297424, 0.08229956030845642, 0.09218871593475342, -0.07522440701723099, 0.11568772792816162, -0.013178680092096329, -0.1346062421798706, 0.3768357038497925, 0.7526923418045044, -0.13343825936317444, -0.5529475808143616, -0.11591244488954544, -0.3700488209724426, 0.07848943024873734, 0.44503167271614075, -0.21247601509094238, -0.13393190503120422, 0.059346314519643784, -0.05054686963558197, -0.3437473773956299, -0.2992703914642334, 0.050476089119911194, 0.099344402551651, -0.27841559052467346, -0.5206422209739685, 0.46235454082489014, -0.12712164223194122, 0.031140156090259552, 0.14684933423995972, 0.04181676730513573, -0.3473615348339081, 0.13728605210781097, 0.00645194947719574, 0.9900810122489929, 0.21408289670944214, -0.135793074965477, 0.07534268498420715, -0.2174912393093109, 0.05287395045161247, -0.22489503026008606, 0.19801901280879974, -0.2843388020992279, 0.02223992347717285, -0.1518346220254898, 0.20459064841270447, 0.26885029673576355, 0.06212630867958069, -0.21585382521152496, 0.19955073297023773, -0.07139971852302551, -0.2375732958316803, -0.04850330203771591, 0.003161802887916565, -0.41991233825683594, -0.25801384449005127, -0.5787035822868347, 0.11728213727474213, -0.11793215572834015, 0.11924758553504944, -0.11890983581542969, 0.03592992573976517, 0.04550871625542641, -0.32669520378112793, -0.4608328342437744, 0.3758390247821808, -0.2024468332529068, -0.15040534734725952, -0.057751696556806564, -0.38144147396087646, 0.3199521601200104, 0.056190866976976395, 0.25048762559890747, 0.039197757840156555, -0.04294220358133316, 0.14526335895061493, 0.19812217354774475, -0.03390701487660408, -0.024359142407774925, 0.08548836410045624, 0.23856577277183533, -0.06631956249475479, -0.11321285367012024, 0.2658348083496094, -0.04365915060043335, -0.18375371396541595, 0.2556540071964264, 0.06612878292798996, -0.08261808753013611, -0.03951672092080116, -0.04328209534287453, 0.09551656246185303, 0.18097944557666779, -0.06299910694360733, 0.14030644297599792, 0.1276882290840149, -0.28988203406333923, -0.05441058427095413, -0.11074316501617432, -0.26976096630096436, 0.08129045367240906, 0.2204330563545227, -0.03618469089269638, -0.08389484137296677, 0.4614362418651581, 0.4005640745162964, -0.20998935401439667, -0.11762211471796036, -0.34794726967811584, 0.18725867569446564, -0.5638506412506104, 0.03685687854886055, -0.0007270809728652239, 0.006248176097869873, -0.15868987143039703, 0.4170023202896118, -0.1392204612493515, -0.09379603713750839, 0.06255452334880829, -0.5232269763946533, -0.03873101621866226, 0.11545684188604355, -0.010350268334150314, 0.0329328253865242, -0.04875241965055466, 0.00014414265751838684, -0.23697514832019806, 0.11447948962450027, -0.3007833659648895, 0.10386241972446442, -0.20777711272239685, 0.137283056974411, 0.4296358823776245, -0.03401312977075577, -0.10302070528268814, -0.20394742488861084, 0.13359062373638153, 0.33601248264312744, -0.11274916678667068, -0.1500055342912674, -0.008557864464819431, 0.13779222965240479, 0.03241600841283798, -0.08051225543022156, 0.0895502120256424, -0.050176627933979034, -0.10576418042182922, -0.19346390664577484, 0.21797947585582733, 0.1474805772304535, 0.026141490787267685, -0.02772221714258194, -0.44821855425834656, 0.2940055727958679, -0.0006676055490970612, 0.2398095279932022, -0.1485021710395813, 0.4302428364753723, -0.11852985620498657, 0.12390348315238953, -0.2088456004858017, -0.03537400811910629, -0.11504817754030228, 0.25618070363998413, -0.0961359441280365, 0.06558652967214584, 0.43631479144096375, -0.24515561759471893, 0.3256570100784302, 0.48719266057014465, -0.08354673534631729, 0.3445187211036682, -0.40915438532829285, 0.028119830414652824, 0.026262568309903145, 0.21024452149868011, -0.18367736041545868, -0.018114667385816574, -0.49608948826789856, -0.04794016107916832, -0.09000492095947266, 0.2297481894493103, 0.11052343249320984, -0.370781272649765, -0.23056243360042572, 0.09063786268234253, 0.4767536520957947, -0.006316963583230972, 0.21916407346725464, 0.023105330765247345, 0.04931417480111122, -0.019284967333078384, -0.07029915601015091, 0.2188102751970291, 0.04618663713335991, 0.27203088998794556, -0.46463310718536377, 0.30939286947250366, 0.24947243928909302, 0.18010178208351135, -0.008530743420124054, -0.441162645816803, 0.04823687672615051, 0.2103957086801529, 0.08521953225135803, 0.4002787470817566, 0.16099023818969727, 0.15860091149806976, -0.14752593636512756, -0.1259336769580841, -0.16134700179100037, 0.04106694459915161, -0.05831831693649292, 0.04725276678800583, -0.31452664732933044, -0.21366673707962036, -0.17241989076137543, -0.10437792539596558, -0.1697821021080017, 0.11930190026760101, 0.07531823962926865, 0.15568983554840088, -0.34762752056121826, -0.3463914692401886, 0.1377420723438263, -0.20963770151138306, 0.24470335245132446, -0.12532836198806763, 0.5787795186042786, 0.4382143020629883, 0.08463551849126816, 0.42588868737220764, 0.30174779891967773, 0.7615880370140076, 0.3058425486087799, 0.053504955023527145, 0.19278031587600708, -0.18105542659759521, -0.12506377696990967, 0.10440588742494583, 0.39842233061790466, 0.04488162696361542, 0.3953401744365692, 0.043963152915239334, 0.18636570870876312, -0.13800552487373352, 0.144394189119339, 0.2655777037143707, 0.4306212067604065, -0.19145897030830383, 0.2662215828895569, -0.17391031980514526, -0.05721883848309517, -0.41987738013267517, -0.09465410560369492, -0.37711653113365173, 0.13632753491401672, 0.2699836790561676, -0.0920642614364624, 0.09514010697603226, -0.00836112815886736, 0.10252707451581955, 0.07400330901145935, 0.3087230622768402, 0.4034370481967926, 0.13573509454727173, 0.025536436587572098, -0.20816145837306976, -0.4297654330730438, 0.3247809112071991, -0.09087194502353668, -0.3741280436515808, -0.06660348176956177, 0.0824076235294342, 0.19193395972251892, 0.11558326333761215, 0.12382199615240097, -0.043221425265073776, 0.38333314657211304, 0.05972364544868469, -0.1724226027727127, -0.014610059559345245, 0.2414138913154602, -0.06203330308198929, -0.3025849759578705, -0.36429324746131897, 0.032573118805885315, -0.22731968760490417, 0.07015573978424072, 0.048275671899318695, -0.03996368497610092, -0.09226003289222717, -0.264672189950943, 0.3722169101238251, 0.061068691313266754, 0.21667730808258057, -0.31074222922325134, -0.22672675549983978, -0.3663763999938965, -0.1446741819381714, -0.15450014173984528, 0.4856228232383728, 0.1616639494895935, 0.2741343080997467, -0.07876952737569809, 0.025311162695288658, -0.2682865858078003, 0.18794193863868713, -0.11796917766332626, 0.26936110854148865, -0.39832714200019836, -0.06192439794540405, -0.1300138682126999, 0.06348057836294174, -0.00024346262216567993, 0.241636723279953, 0.013725083321332932, 0.07287728786468506, -0.1267952173948288, -0.6861609220504761, 0.42833638191223145, -0.5565595626831055, -0.41566526889801025, 0.08782657235860825, 0.601387083530426, 0.005116462707519531, 0.07253186404705048, -0.6429913640022278, 0.24273759126663208, 0.0948258489370346, -0.20157089829444885, -0.18874754011631012, -0.007277907803654671, -0.12395967543125153, -0.13155333697795868, -0.04032430425286293, 0.0875852108001709, 0.2611960172653198, -0.16496849060058594, 0.16412353515625, -0.40806102752685547 ]
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.3157353103160858, -0.08313131332397461, -0.11097219586372375, 0.16588294506072998, 0.17944487929344177, -0.022079698741436005, 0.3208152651786804, 0.2708316743373871, -0.028439786285161972, -0.052530184388160706, -0.1436268538236618, 0.8592839241027832, 0.09228108823299408, 0.23786576092243195, 0.020910007879137993, -0.04791047424077988, 0.1613054871559143, 0.22564023733139038, -0.04348625987768173, 0.05146914720535278, -0.06438539177179337, 0.07713019847869873, -0.2960684895515442, 0.2006775140762329, -0.059249721467494965, -0.36576831340789795, 0.17989450693130493, -0.014297127723693848, -0.2524805963039398, -0.34737369418144226, 0.40367263555526733, -0.1720397025346756, 0.1640070229768753, 0.37874549627304077, -0.00010879820911213756, 0.06694211065769196, 0.3618471026420593, -0.029119927436113358, -0.37028536200523376, -0.10772331058979034, -0.21760767698287964, -0.6008000373840332, 0.0832868441939354, -0.28471076488494873, 0.47020864486694336, -0.28577518463134766, -0.26305916905403137, -0.19219203293323517, 0.20561185479164124, 0.18169011175632477, 0.22064998745918274, 0.477471262216568, 0.480704128742218, 0.00923158135265112, 0.2772544026374817, -0.12895114719867706, -0.2072610855102539, 0.3021780550479889, 0.24013155698776245, -0.21127073466777802, 0.11662492156028748, 0.12655603885650635, -0.06769179552793503, 0.03007057122886181, 0.10252189636230469, 0.01681739091873169, -0.1558157205581665, -0.3838818073272705, -0.06789321452379227, 0.05810694396495819, 0.4930500388145447, -0.5021772980690002, -0.2771851420402527, -0.12386657297611237, 0.11405434459447861, 0.0022394973784685135, 0.14000922441482544, 0.17300625145435333, -0.06770285964012146, -0.09622757136821747, 0.2432512491941452, -0.2378113716840744, -0.2651635408401489, 0.18640154600143433, -0.18608874082565308, 0.45965301990509033, -0.048525188118219376, 0.0963282585144043, 0.2849807143211365, -0.1344875693321228, 0.6502168774604797, -0.09686828404664993, -0.13297094404697418, 0.11464828997850418, -0.4117368161678314, 0.09713193774223328, 0.010408993810415268, -0.042587488889694214, 0.11656039208173752, 0.10594705492258072, 0.10661374032497406, 0.11889128386974335, 0.09632890671491623, 0.3061646521091461, 0.07815905660390854, 0.3834518492221832, 0.028837811201810837, 0.36331528425216675, 0.2639464735984802, 0.29053112864494324, 0.2459653615951538, -0.06257437914609909, -0.07487743347883224, -0.3948994576931, 0.08091112971305847, -0.05938166379928589, 0.26449060440063477, 0.15669949352741241, -0.424513041973114, -0.00658660102635622, -0.2908201813697815, -0.052670832723379135, 0.0005870293825864792, 0.12607790529727936, -0.2189186066389084, 0.15704837441444397, 0.15392562747001648, 0.18134208023548126, -0.11788662523031235, -0.05939874053001404, -0.12012673914432526, 0.3064025640487671, -0.021890969946980476, -0.2258305698633194, 0.044958893209695816, -0.293634295463562, 0.24428299069404602, 0.024580828845500946, 0.22952546179294586, 0.17503546178340912, 0.17053289711475372, -0.12573231756687164, -0.19194120168685913, 0.350600928068161, 0.032108206301927567, 0.11539322882890701, 0.12777213752269745, -0.39318716526031494, -0.12470000237226486, 0.07880904525518417, -0.166256844997406, -0.08047707378864288, -0.2768656313419342, 0.18099622428417206, -0.2906894087791443, 0.05142517760396004, -0.5761381387710571, -0.25163304805755615, 0.0038180947303771973, -0.05011795461177826, -0.0043989792466163635, -0.19658513367176056, 0.23443055152893066, -0.25447773933410645, 0.2506348490715027, 0.053461313247680664, -0.3594914376735687, 0.04744432866573334, -0.22104176878929138, -0.20704768598079681, -0.06444410234689713, 0.12893271446228027, -0.2450413554906845, 0.17761726677417755, -0.22886349260807037, 0.13484980165958405, 0.6730292439460754, -0.6061065793037415, -0.5256841778755188, 0.025764329358935356, -0.0934763252735138, 0.014890817925333977, -0.013019412755966187, 0.09445749223232269, -0.10299075394868851, 0.2157650738954544, 0.06773780286312103, 0.1622852087020874, -0.0314892902970314, -0.19102658331394196, -0.2592289447784424, -0.28716591000556946, 0.05788549780845642, 0.18066510558128357, 0.09252683818340302, -0.2924068868160248, 0.18479150533676147, -0.15393482148647308, 0.03819490969181061, 0.06003773957490921, 0.12027481943368912, 0.05656534060835838, 0.3603734076023102, 0.05278401076793671, -0.012401910498738289, -0.12482557445764542, -0.29170650243759155, 0.2685142159461975, -0.13982701301574707, 0.03489387780427933, -0.4064071774482727, -0.08324369788169861, -0.36111313104629517, 0.3012939989566803, -0.2174004763364792, 0.052547916769981384, 0.16979964077472687, -0.12373605370521545, 0.01050049439072609, 0.35210320353507996, -0.007704857736825943, 0.38210511207580566, 0.19184356927871704, 0.1550072878599167, -0.3192882835865021, 0.30611473321914673, -0.3814674913883209, -0.1457509845495224, 0.06154531240463257, 0.13012903928756714, -0.1030455157160759, 0.02512875758111477, -0.044316913932561874, 0.11395902931690216, 0.07721336930990219, 0.023945920169353485, 0.010299786925315857, -0.2309059351682663, 0.17629045248031616, -0.3153470754623413, 0.1356552243232727, 0.13354185223579407, 0.30493202805519104, 0.09287463873624802, 0.09618949890136719, 0.09530489146709442, -0.059251535683870316, -0.09579847007989883, 0.01486678421497345, 0.2575814425945282, 0.20676545798778534, 0.20188328623771667, 0.06122478097677231, -0.12222295999526978, 0.18432120978832245, -0.023839343339204788, 0.10303877294063568, -0.08725133538246155, -0.1367315948009491, -0.023939400911331177, 0.3600414991378784, 0.009661301970481873, 0.14368516206741333, 0.00973118469119072, -0.3445079028606415, 0.21861916780471802, 0.2709662914276123, 0.015254218131303787, 0.38705116510391235, 0.21182869374752045, -0.21345773339271545, -0.07350566983222961, -0.0510982982814312, -0.10950466990470886, 0.12252125144004822, 0.31493836641311646, 0.39168742299079895, 0.17711785435676575, 0.24585594236850739, -0.06541534513235092, 0.011416587978601456, -0.2596937119960785, -0.04270273074507713, 0.21476714313030243, -0.18772460520267487, 0.25593459606170654, -0.2284219115972519, -0.23713240027427673, -0.16273155808448792, -0.19927604496479034, 0.01172054186463356, -0.4043586552143097, -0.2368003875017166, 0.2449382245540619, 0.16853763163089752, 0.18492360413074493, 0.14706119894981384, -0.11814065277576447, 0.07499653100967407, -0.28547435998916626, -0.24323126673698425, -0.3484175205230713, -0.3759361207485199, 0.10307855904102325, 0.35107800364494324, 0.1604805886745453, 0.2290237545967102, -0.1745561957359314, 0.2487831860780716, -0.40511807799339294, -0.4474342465400696, -0.21086335182189941, -0.09327638149261475, 0.4236428439617157, 0.2669565975666046, 0.16138654947280884, -0.23775459825992584, -0.28122106194496155, 0.3301028907299042, 0.15859681367874146, -0.2695577144622803, 0.13337495923042297, -0.110493004322052, -0.22008734941482544, 0.03033556416630745, -0.3240673243999481, -0.3991331458091736, -0.41534626483917236, 0.31014078855514526, 0.18538106977939606, -0.13164815306663513, -0.15191203355789185, 0.3288976550102234, 0.21017733216285706, 0.174677312374115, 0.022654041647911072, 0.07371968775987625, 0.2688189446926117, 0.5995615124702454, -0.11755728721618652, -0.4101836681365967, 0.22298115491867065, -0.23266251385211945, 0.30329009890556335, -0.07549615949392319, -0.42560672760009766, 0.014736517332494259, -0.1739688664674759, 0.6500646471977234, -0.21768581867218018, 0.22310806810855865, 0.18106892704963684, 0.20368029177188873, 0.07050551474094391, -0.12438606470823288, -0.2514384388923645, -0.121640644967556, -0.11919952183961868, 0.05733508989214897, 0.05538379028439522, 0.11765773594379425, 0.042580779641866684, 0.5509262084960938, 0.05373096093535423, -0.06524062156677246, 0.25830551981925964, -0.08189573884010315, 0.21384187042713165, 0.07649616152048111, -0.40191397070884705, -0.049556516110897064, -0.1408323049545288, 0.2763577699661255, -0.15398721396923065, -0.25080758333206177, -0.21860568225383759, -0.3311212956905365, -0.17562633752822876, -0.15065309405326843, -0.1933949589729309, 0.0008872412145137787, -0.1569957733154297, 0.005802452564239502, 0.08069248497486115, -0.0736648216843605, -0.18820787966251373, -0.13479450345039368, 0.1647777259349823, 0.030729278922080994, -0.3172060251235962, 0.11594473570585251, -0.3461397886276245, -0.49143484234809875, -0.15530076622962952, 0.3025520145893097, 0.12901604175567627, 0.28151175379753113, 0.16029499471187592, -0.16675004363059998, 0.07052089273929596, -0.1935516893863678, 0.4416455030441284, -0.0341806635260582, -0.24061040580272675, 0.24958458542823792, 0.2823733687400818, -0.7925548553466797, -0.31758224964141846, -0.2055814564228058, 0.07808913290500641, 0.18726830184459686, 0.110877126455307, -0.25357601046562195, 0.15501506626605988, -0.03094681352376938, 0.44605234265327454, -0.03487914055585861, 0.058526646345853806, -0.47138482332229614, -0.43794867396354675, -0.3892832398414612, -0.11561033874750137, -0.0409340038895607, 0.32131531834602356, -0.025428900495171547, -0.04106251150369644, -0.2078598290681839, -0.07322143018245697, -0.1497972160577774, 0.29257553815841675, 0.22519683837890625, -0.16154398024082184, 0.2594014108181, -0.10842923820018768, -0.0424693301320076, 0.45094358921051025, 0.4091881215572357, 0.09626467525959015, -0.7135205864906311, -0.164494127035141, -0.08195710182189941, 0.1051102802157402, -0.16934695839881897, -0.16028009355068207, 0.14341717958450317, -0.0038491040468215942, 0.020818568766117096, 0.06150110810995102, 0.0626363456249237, 0.17629118263721466, 0.14788192510604858, -0.12856201827526093, -0.19095595180988312, 0.4781818389892578, 0.3002479076385498, 0.028641849756240845, 0.4108388125896454, 0.02588576078414917, -0.14775048196315765, 0.09951231628656387, 0.1331350952386856, 0.6035107970237732, 0.009960606694221497, 0.051503218710422516, 0.5848051309585571, -0.31376224756240845, 0.5632754564285278, -0.13169407844543457, 0.03937436640262604, -0.43160489201545715, -0.2410881072282791, -0.002315884456038475, -0.3130732774734497, 0.31809836626052856, -0.3315044045448303, -0.2583673596382141, 0.07859259843826294, -0.2612185478210449, 0.17561139166355133, 0.10274501889944077, 0.16114503145217896, -0.3093279004096985, -0.06002577766776085, -0.1455911546945572, 0.1129976212978363, -0.13090871274471283, 0.21480819582939148, -0.06616067886352539, -0.0331401489675045, -0.5395650267601013, -0.1773795485496521, -0.1691555380821228, 0.014456737786531448, -0.288834810256958, 0.5264728665351868, 0.1666906625032425, -0.320305198431015, 0.34276092052459717, 0.4244215488433838, 0.24712996184825897, 0.005772419273853302, -0.04558529704809189, 0.08898814022541046, 0.208577960729599, -0.23716895282268524, 0.25291338562965393, 0.04621597006917, 0.20427314937114716, -0.15639902651309967, -0.3190079629421234, 0.4772292971611023, -0.08465543389320374, -0.029560916125774384, 0.0000969618558883667, 0.49715882539749146, 0.11319243907928467, -0.1217273622751236, -0.1202554702758789, -0.15953069925308228, 0.12495283782482147, -0.1015983521938324, 0.13220882415771484, 0.11192712932825089, 0.04660935327410698, 0.45567163825035095, -0.1267768144607544, 0.051972731947898865, -0.027489852160215378, 0.22347700595855713, -0.11493492871522903, 0.06203041225671768, 0.21230633556842804, 0.06965862214565277, -0.329240620136261, -0.16836047172546387, 0.15087014436721802, -0.153079554438591, -0.343826025724411, 0.0077214548364281654, 0.13187161087989807, -0.008227065205574036, -0.25200381875038147, 0.3728192150592804, 0.20312120020389557, -0.10848916321992874, 0.12799407541751862, -0.43495577573776245, -0.2474522888660431, 0.34845346212387085, -0.022029031068086624, -0.117876335978508, 0.2887571454048157, 0.08775772154331207, -0.0058840978890657425, -0.0320906937122345, -0.2641662061214447, 0.19318170845508575, -0.32276514172554016, -0.03169820457696915, 0.14257284998893738, 0.11276426911354065, 0.010572853498160839, -0.08566252887248993, 0.13983291387557983, 0.046155981719493866, -0.04372132197022438, -0.25670957565307617, -0.06590873003005981, 0.0574808269739151, -0.03435299172997475, -0.14740817248821259, 0.07413483411073685, -0.26439303159713745, 0.06597238779067993, -0.00423014722764492, -0.09471674263477325, 0.03165165334939957, -0.13093502819538116, 0.046778641641139984, -0.08077093958854675, 0.11944425106048584, -0.25792694091796875, 0.2794894576072693, -0.17301243543624878, -0.018698908388614655, -0.006907342933118343, 0.22523239254951477, 0.24785034358501434, 0.18446707725524902, -0.009556719101965427, -0.16141048073768616, -0.29800236225128174, -0.018074434250593185, 0.2375544011592865, -0.3787606358528137, 0.1076786071062088, -0.09005001187324524, 0.051765210926532745, 0.518921434879303, -0.26996466517448425, 0.008283019065856934, 0.3809460997581482, 0.19897277653217316, -0.44222989678382874, -0.3729235529899597, 0.17861001193523407, -0.07099995762109756, -0.017153166234493256, 0.0885268896818161, 0.20251861214637756, -0.08049102872610092, -0.020155340433120728, 0.26541534066200256, 0.1258953958749771, -0.1370832473039627, 0.31399959325790405, 0.4234539568424225, -0.03783435374498367, 0.023216381669044495, 0.28127554059028625, 0.29637494683265686, 0.18558847904205322, 0.4047451615333557, -0.3500569760799408, 0.02828906662762165, -0.03694978356361389, 0.104503333568573, -0.05479886382818222, -0.28557848930358887, -0.053226862102746964, -0.05716688930988312, -0.10709881782531738, -0.18453934788703918, 0.10975965857505798, 0.43011194467544556, 0.057470593601465225, 0.030786320567131042, 0.05207779258489609, 0.017702443525195122, -0.10238014906644821, 0.29199057817459106, -0.033643510192632675, -0.12727876007556915, 0.13215647637844086, -0.06172095611691475, 0.15198837220668793, -0.2190735787153244, 0.381620854139328, 0.23500916361808777, -0.20985905826091766, -0.2127111852169037, 0.21843969821929932, 0.4200311303138733, 0.07604372501373291, -0.13247369229793549, -0.10672814399003983, 0.24076704680919647, -0.19356656074523926, -0.38239768147468567, 0.23151016235351562, 0.6090107560157776, 0.3060411512851715, -0.25816163420677185, 0.1225212961435318, 0.0871988832950592, -0.1709100753068924, -0.039890360087156296, 0.07451024651527405, 0.1315118968486786, 0.06934070587158203, 0.27788248658180237, 0.2114035040140152, -0.17689095437526703, -0.0950511246919632, 0.13589048385620117, 0.19367358088493347, -0.1657043993473053, 0.16189703345298767, -0.3206716477870941, -0.26774734258651733, -0.05314251780509949, 0.04815084859728813, -0.2507857084274292, 0.43754780292510986, 0.24095314741134644, 0.2532978653907776, 0.03142547607421875, -0.306551456451416, 0.08897379785776138, 0.057439010590314865, 0.45280730724334717, 0.23094415664672852, 0.3824343681335449, -0.13606664538383484, -0.1408260315656662, -0.5310809016227722, 0.06656444817781448, -0.0521794892847538, -0.3010041117668152, -0.01289912685751915, 0.0071573201566934586, -0.06458532065153122, 0.23492567241191864, 0.17802155017852783, 0.02696540206670761, 0.3565102219581604, 0.15200215578079224, -0.3744761645793915, -0.3461708426475525, 0.32029277086257935, -0.19878530502319336, 0.045425109565258026, -0.39098280668258667, 0.05373317748308182, -0.37669649720191956, 0.14348053932189941, -0.3492605686187744, -0.05994622781872749, 0.27649855613708496, 0.09353293478488922, 0.5667518377304077, -0.0021583717316389084, 0.5926170349121094, 0.19349807500839233, 0.0967663824558258, -0.004380565136671066, -0.17075565457344055, -0.153761625289917, 0.2509740889072418, 0.1735660582780838, 0.17451967298984528, -0.26262977719306946, -0.08907510340213776, -0.17915078997612, 0.4046063721179962, 0.2431992143392563, 0.14853689074516296, -0.0523441806435585, 0.09029009938240051, -0.030059827491641045, -0.0034678392112255096, 0.07763076573610306, 0.07138554006814957, -0.17397555708885193, 0.13927435874938965, -0.385503888130188, -0.4081262946128845, 0.24259713292121887, -0.22504886984825134, -0.29577550292015076, -0.014650730416178703, -0.001050218939781189, 0.057516805827617645, -0.0983290821313858, -0.3163687586784363, 0.011841006577014923, 0.39547863602638245, -0.059940338134765625, -0.22446155548095703, 0.30578893423080444, 0.1292087882757187, 0.05642780289053917, -0.09659408777952194, 0.4190942347049713, -0.1479630470275879, -0.11253717541694641, 0.07883673906326294, -0.10651106387376785 ]
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.33920297026634216, -0.075551338493824, -0.114092156291008, 0.1258435845375061, 0.20034997165203094, 0.01308874785900116, 0.3512440621852875, 0.32860398292541504, -0.030617589130997658, -0.03462016582489014, -0.1804625242948532, 0.8273155093193054, 0.08167616277933121, 0.23343391716480255, 0.04593752324581146, -0.06990908831357956, 0.11407089233398438, 0.20138207077980042, -0.049040257930755615, 0.07037803530693054, -0.1178436428308487, 0.08349210023880005, -0.28841453790664673, 0.2321559339761734, -0.05840827152132988, -0.33814653754234314, 0.16716891527175903, -0.01415775716304779, -0.24300776422023773, -0.37904518842697144, 0.37848466634750366, -0.1966225653886795, 0.18173721432685852, 0.3294719457626343, -0.00010536887566559017, 0.06046758592128754, 0.33732396364212036, -0.01246629748493433, -0.31024327874183655, -0.10455816984176636, -0.14425049722194672, -0.5257619619369507, 0.10285931080579758, -0.3128528594970703, 0.42798173427581787, -0.31949910521507263, -0.24022121727466583, -0.12766335904598236, 0.2308553010225296, 0.19617760181427002, 0.2656956911087036, 0.4633559584617615, 0.48622018098831177, 0.0011485412251204252, 0.37416407465934753, -0.11436200141906738, -0.17437972128391266, 0.36280709505081177, 0.2402820587158203, -0.22482790052890778, 0.05008452758193016, 0.11818768084049225, -0.050972528755664825, 0.06260859966278076, 0.13127189874649048, 0.0576724112033844, -0.1053004190325737, -0.3694542646408081, -0.0583915039896965, 0.05251171812415123, 0.5115419626235962, -0.5075421333312988, -0.2177429348230362, -0.08145241439342499, 0.12246808409690857, -0.028666432946920395, 0.13781079649925232, 0.20505784451961517, -0.05018322169780731, -0.1210189014673233, 0.28346380591392517, -0.2121218591928482, -0.2584419846534729, 0.20056606829166412, -0.1483699083328247, 0.43712878227233887, -0.040634144097566605, 0.0960497111082077, 0.29359060525894165, -0.15358133614063263, 0.607909619808197, -0.08813078701496124, -0.11160752177238464, 0.12102806568145752, -0.3806024491786957, 0.12399569153785706, 0.06792313605546951, -0.06739682704210281, 0.09920728951692581, 0.0918952226638794, 0.09359774738550186, 0.15505409240722656, 0.12129528820514679, 0.3166666626930237, 0.11749374866485596, 0.3261021077632904, 0.01660000905394554, 0.29971593618392944, 0.28647464513778687, 0.30173084139823914, 0.17292729020118713, -0.08002764731645584, -0.07473060488700867, -0.39693206548690796, 0.1270086169242859, -0.06984301656484604, 0.3046584129333496, 0.17475691437721252, -0.3466570973396301, -0.05297449231147766, -0.33507898449897766, -0.06375221163034439, -0.01169054489582777, 0.1123063787817955, -0.20940916240215302, 0.11521624773740768, 0.18749937415122986, 0.14600038528442383, -0.1666172593832016, -0.06828649342060089, -0.15214979648590088, 0.30628514289855957, -0.02518973872065544, -0.22677764296531677, 0.02882937714457512, -0.3074618875980377, 0.19009679555892944, 0.045926839113235474, 0.22939187288284302, 0.1597648561000824, 0.18903520703315735, -0.11234334111213684, -0.20459729433059692, 0.3003137409687042, 0.06010384485125542, 0.07128976285457611, 0.12994319200515747, -0.4086226224899292, -0.13515377044677734, 0.10636560618877411, -0.20695489645004272, -0.11172570288181305, -0.2594727575778961, 0.22620593011379242, -0.22215476632118225, 0.05046265944838524, -0.5596429109573364, -0.20544913411140442, -0.017304852604866028, -0.08585241436958313, 0.0026638805866241455, -0.23962004482746124, 0.20154798030853271, -0.26709452271461487, 0.250483900308609, 0.030216746032238007, -0.35858362913131714, 0.012738905847072601, -0.24593353271484375, -0.2216101586818695, -0.07057804614305496, 0.16049553453922272, -0.28480520844459534, 0.1845780909061432, -0.22644084692001343, 0.18871833384037018, 0.6347007751464844, -0.5204706788063049, -0.4979521930217743, -0.01864038035273552, -0.1067589670419693, -0.04136591777205467, -0.06167500466108322, 0.11734572798013687, -0.12337452173233032, 0.2213112711906433, 0.0595051646232605, 0.17618289589881897, -0.03561215102672577, -0.16292385756969452, -0.24307629466056824, -0.25097331404685974, 0.10739906132221222, 0.16395637392997742, 0.0860651433467865, -0.3046601712703705, 0.19188228249549866, -0.1370873898267746, 0.07819325476884842, 0.04833609610795975, 0.09523136168718338, 0.03523768112063408, 0.3661612272262573, 0.014555331319570541, 0.04648808017373085, -0.1311744749546051, -0.27346643805503845, 0.2382599413394928, -0.19558316469192505, 0.05143703520298004, -0.3236401677131653, -0.09541286528110504, -0.3622358441352844, 0.2734932601451874, -0.2208881825208664, 0.0895867869257927, 0.20021843910217285, -0.1121823787689209, -0.00923190638422966, 0.36172720789909363, -0.02420150302350521, 0.26810726523399353, 0.15524068474769592, 0.1296822875738144, -0.3341867923736572, 0.36520132422447205, -0.38343000411987305, -0.18056514859199524, 0.10777944326400757, 0.10408639162778854, -0.10194111615419388, 0.038060661405324936, -0.043064042925834656, 0.13663512468338013, 0.08263670653104782, 0.0447763092815876, -0.012010626494884491, -0.19606806337833405, 0.15639767050743103, -0.3880777359008789, 0.07274951785802841, 0.14350531995296478, 0.31626906991004944, 0.08371468633413315, 0.0832006186246872, 0.12967342138290405, -0.06753349304199219, -0.09835731238126755, 0.00492917001247406, 0.22758768498897552, 0.15671075880527496, 0.18688374757766724, 0.11461258679628372, -0.09869751334190369, 0.15405483543872833, -0.0639597475528717, 0.08718173205852509, -0.08767642825841904, -0.1409797966480255, -0.028021521866321564, 0.4053035378456116, 0.023354072123765945, 0.18083754181861877, 0.030434412881731987, -0.39627695083618164, 0.16441741585731506, 0.24273723363876343, -0.030016720294952393, 0.35357046127319336, 0.22562293708324432, -0.2056579887866974, -0.041272230446338654, -0.02822345867753029, -0.14694607257843018, 0.13395050168037415, 0.29996100068092346, 0.3659515678882599, 0.16451579332351685, 0.26971104741096497, -0.08715209364891052, -0.07744739204645157, -0.20469258725643158, -0.06536766141653061, 0.2356102019548416, -0.17830635607242584, 0.23260287940502167, -0.21686014533042908, -0.27431097626686096, -0.1611236035823822, -0.16322244703769684, -0.021597575396299362, -0.44833502173423767, -0.21084855496883392, 0.24846386909484863, 0.14353913068771362, 0.17733041942119598, 0.17886511981487274, -0.11519236862659454, 0.0936763733625412, -0.23968981206417084, -0.25380635261535645, -0.40000247955322266, -0.37908175587654114, 0.14327162504196167, 0.32571935653686523, 0.15817366540431976, 0.2266284078359604, -0.15190593898296356, 0.25323134660720825, -0.40792596340179443, -0.47011807560920715, -0.2024703025817871, -0.08139141649007797, 0.37396639585494995, 0.2682340741157532, 0.14277462661266327, -0.2532346844673157, -0.3090766966342926, 0.3830127418041229, 0.06784188747406006, -0.27301478385925293, 0.16933250427246094, -0.10987915843725204, -0.17844967544078827, 0.02533198893070221, -0.35717564821243286, -0.36641305685043335, -0.4171213209629059, 0.30464524030685425, 0.1833467334508896, -0.12228409945964813, -0.15017221868038177, 0.28703024983406067, 0.23864103853702545, 0.14025937020778656, -0.03319087624549866, 0.04384538158774376, 0.2569073736667633, 0.5885711312294006, -0.1185484305024147, -0.42156773805618286, 0.20813128352165222, -0.25300443172454834, 0.2879260778427124, -0.12129940092563629, -0.4119744896888733, 0.005975357256829739, -0.15816493332386017, 0.6464037299156189, -0.19376270473003387, 0.2262536883354187, 0.1384781301021576, 0.18837982416152954, 0.014980955049395561, -0.0934886485338211, -0.2597438097000122, -0.12562444806098938, -0.03817234933376312, 0.016267001628875732, 0.03282991424202919, 0.11833358556032181, 0.02688932791352272, 0.5717328786849976, -0.02527446299791336, -0.05605846270918846, 0.27822649478912354, -0.1158832386136055, 0.20861178636550903, 0.0487818606197834, -0.39882925152778625, -0.028875909745693207, -0.14409345388412476, 0.264316201210022, -0.12593546509742737, -0.2704826593399048, -0.24749688804149628, -0.2997136414051056, -0.21480761468410492, -0.12636300921440125, -0.22219491004943848, -0.005458928644657135, -0.07572560757398605, 0.010881863534450531, 0.059568148106336594, -0.10004329681396484, -0.20029835402965546, -0.17454999685287476, 0.20066595077514648, -0.008293509483337402, -0.28061383962631226, 0.10128709673881531, -0.3764595687389374, -0.48131129145622253, -0.169822096824646, 0.3195931911468506, 0.1419183909893036, 0.20677818357944489, 0.13615600764751434, -0.18118056654930115, 0.0918804183602333, -0.19554618000984192, 0.3912830948829651, -0.00005046278238296509, -0.18314006924629211, 0.2893389165401459, 0.21205812692642212, -0.794004499912262, -0.29840224981307983, -0.21684463322162628, 0.024593204259872437, 0.15184156596660614, 0.055601831525564194, -0.23587456345558167, 0.1825491189956665, -0.006749898195266724, 0.4255683124065399, -0.05207537114620209, 0.046656858175992966, -0.45441991090774536, -0.4137456715106964, -0.3685903251171112, -0.12700602412223816, -0.051420532166957855, 0.3349307179450989, 0.0022670868784189224, 0.005324248224496841, -0.1855454444885254, -0.11196402460336685, -0.15769220888614655, 0.26703572273254395, 0.21462559700012207, -0.11158768087625504, 0.2346782386302948, -0.11387217044830322, -0.07426159083843231, 0.4554007947444916, 0.4173566997051239, 0.12067723274230957, -0.7068598866462708, -0.15796318650245667, -0.10263627767562866, 0.09674261510372162, -0.22020584344863892, -0.1588287055492401, 0.1977936327457428, 0.02218865603208542, 0.04379800707101822, 0.04174366220831871, 0.08069788664579391, 0.19852221012115479, 0.08623255044221878, -0.065568707883358, -0.1619846075773239, 0.4999954104423523, 0.2260810285806656, 0.04862351715564728, 0.4143019914627075, 0.014600366353988647, -0.13903073966503143, 0.09274611622095108, 0.15260446071624756, 0.5871582627296448, -0.03016534447669983, 0.056094393134117126, 0.590744137763977, -0.30141210556030273, 0.5513142347335815, -0.1230454295873642, 0.07412981986999512, -0.4628841280937195, -0.22477036714553833, 0.005508964881300926, -0.3155348002910614, 0.29695022106170654, -0.3124716281890869, -0.25427964329719543, 0.03295620158314705, -0.2659882605075836, 0.20803627371788025, 0.05537782609462738, 0.17813041806221008, -0.28303518891334534, -0.01186196506023407, -0.1498596966266632, 0.1494501829147339, -0.1639215648174286, 0.19597159326076508, -0.06254696100950241, -0.05027377977967262, -0.4486028850078583, -0.1684483140707016, -0.16431598365306854, 0.04416342079639435, -0.2691604793071747, 0.5237220525741577, 0.189053475856781, -0.30105459690093994, 0.3148760199546814, 0.3913813531398773, 0.17511284351348877, -0.038777243345975876, -0.05697920173406601, 0.10744033753871918, 0.16162049770355225, -0.24806639552116394, 0.21283619105815887, 0.08064386993646622, 0.20555853843688965, -0.18669524788856506, -0.32984626293182373, 0.527228593826294, -0.045222267508506775, -0.035511650145053864, -0.03419813513755798, 0.4944115877151489, 0.10254157334566116, -0.1520352065563202, -0.0937955230474472, -0.1552097201347351, 0.07233874499797821, -0.11728520691394806, 0.16013263165950775, 0.10953392088413239, 0.05874038487672806, 0.41399991512298584, -0.10571865737438202, 0.026906132698059082, -0.02960057556629181, 0.25407829880714417, -0.1155887320637703, 0.10670974850654602, 0.25000840425491333, 0.13031889498233795, -0.3078182339668274, -0.19458189606666565, 0.1806531548500061, -0.06221505254507065, -0.35417792201042175, 0.04794245585799217, 0.14965908229351044, 0.10581758618354797, -0.20282785594463348, 0.3725809156894684, 0.15339630842208862, -0.12137847393751144, 0.12878228724002838, -0.38336339592933655, -0.2656593918800354, 0.33851879835128784, -0.009002957493066788, -0.11039616167545319, 0.2926878035068512, 0.07819928973913193, 0.03133063018321991, -0.006215609610080719, -0.30843034386634827, 0.2052081972360611, -0.3302132487297058, 0.008381577208638191, 0.10119204968214035, 0.07941389828920364, -0.030886108055710793, -0.0641276091337204, 0.17227794229984283, 0.043854810297489166, -0.0863538607954979, -0.29665958881378174, -0.0732492208480835, 0.043224647641181946, -0.04798301309347153, -0.15681375563144684, 0.07919500768184662, -0.24203431606292725, 0.05019170045852661, -0.012974265962839127, -0.07027241587638855, 0.03019334375858307, -0.1627742201089859, 0.08944486081600189, -0.08568236231803894, 0.040817990899086, -0.2453521490097046, 0.22265776991844177, -0.19171786308288574, -0.008079282939434052, 0.002384474966675043, 0.1824350655078888, 0.2653457820415497, 0.14516618847846985, -0.017272427678108215, -0.13758090138435364, -0.3005627989768982, -0.0740329772233963, 0.2530134320259094, -0.3708565831184387, 0.03026658669114113, -0.12115493416786194, 0.06815994530916214, 0.4832284152507782, -0.2564837634563446, 0.022794729098677635, 0.31778353452682495, 0.2227734476327896, -0.4727802574634552, -0.34020599722862244, 0.1669093817472458, -0.027611419558525085, -0.005912207067012787, 0.04025780409574509, 0.1804121881723404, -0.021456655114889145, -0.046472758054733276, 0.2500554621219635, 0.12498149275779724, -0.16556794941425323, 0.27971991896629333, 0.4209260046482086, -0.049494724720716476, 0.026437856256961823, 0.26752182841300964, 0.2963804006576538, 0.20453360676765442, 0.35704177618026733, -0.32764819264411926, 0.06017564982175827, -0.056229546666145325, 0.037839505821466446, -0.005666621029376984, -0.3138677477836609, -0.10838824510574341, -0.010536342859268188, -0.10384491086006165, -0.18556922674179077, 0.12919169664382935, 0.44322678446769714, 0.1279406100511551, 0.05935470014810562, 0.08447184413671494, 0.06076502054929733, -0.1108185276389122, 0.2886039912700653, -0.07291208207607269, -0.10204121470451355, 0.08749134838581085, -0.04017683118581772, 0.12147259712219238, -0.2050810605287552, 0.40827253460884094, 0.24223493039608002, -0.19695977866649628, -0.20692288875579834, 0.203692227602005, 0.4047403931617737, 0.07805920392274857, -0.14161670207977295, -0.14259251952171326, 0.24954909086227417, -0.18847015500068665, -0.3304872512817383, 0.2276613861322403, 0.5777512788772583, 0.2577289640903473, -0.27404358983039856, 0.11547046154737473, 0.07171717286109924, -0.17433655261993408, -0.018098315224051476, 0.05405007302761078, 0.1704169660806656, 0.12481266260147095, 0.2793818414211273, 0.24896052479743958, -0.18990673124790192, -0.1014498770236969, 0.11929035931825638, 0.17148622870445251, -0.17781858146190643, 0.14402076601982117, -0.3029226064682007, -0.26793384552001953, -0.0933259129524231, 0.05388448014855385, -0.20716914534568787, 0.4015527665615082, 0.26853346824645996, 0.2801015079021454, 0.013948405161499977, -0.31204870343208313, 0.11214753985404968, 0.05171530693769455, 0.47439339756965637, 0.243885338306427, 0.3920074999332428, -0.1502235233783722, -0.12266620248556137, -0.5042756795883179, 0.10378564149141312, -0.04408258572220802, -0.3021399974822998, 0.005827582441270351, 0.031148718670010567, -0.03863015025854111, 0.24103473126888275, 0.21643143892288208, -0.011149005964398384, 0.33051392436027527, 0.11247368156909943, -0.35942208766937256, -0.28804221749305725, 0.3069218397140503, -0.2013656347990036, 0.02823200821876526, -0.35204389691352844, 0.09429177641868591, -0.4053054451942444, 0.17816764116287231, -0.3622366786003113, -0.10471417009830475, 0.2711576223373413, 0.10819575190544128, 0.5927190780639648, -0.019798969849944115, 0.5346364974975586, 0.17098098993301392, 0.16506490111351013, 0.01994895562529564, -0.2127310335636139, -0.14480918645858765, 0.23924553394317627, 0.12700657546520233, 0.2343885898590088, -0.2212747186422348, -0.09601609408855438, -0.2016211897134781, 0.41184455156326294, 0.21909396350383759, 0.1606910675764084, -0.028342746198177338, 0.0924786925315857, -0.005644235759973526, -0.025082917883992195, 0.08121713995933533, 0.05688219889998436, -0.14964568614959717, 0.12836454808712006, -0.38664883375167847, -0.4248799681663513, 0.2752149701118469, -0.21760685741901398, -0.3154257535934448, -0.03749453276395798, 0.013421192765235901, 0.10106055438518524, -0.10233942419290543, -0.31622031331062317, 0.012067459523677826, 0.4264298379421234, -0.035958193242549896, -0.21006131172180176, 0.2819174826145172, 0.1119934469461441, 0.1220197081565857, -0.08989881724119186, 0.3843320906162262, -0.09534049779176712, -0.11463898420333862, 0.022027399390935898, -0.1456836462020874 ]
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.3438682556152344, -0.07707995176315308, -0.11421932280063629, 0.13209156692028046, 0.19162112474441528, 0.010946236550807953, 0.3406420648097992, 0.33104607462882996, -0.040551140904426575, -0.031570255756378174, -0.17700380086898804, 0.8259584903717041, 0.07840710133314133, 0.21675577759742737, 0.04229586943984032, -0.07512940466403961, 0.11513491719961166, 0.20600025355815887, -0.05403396487236023, 0.06841492652893066, -0.12047342956066132, 0.08219103515148163, -0.2884451746940613, 0.23086735606193542, -0.05367624759674072, -0.3353981077671051, 0.16340143978595734, -0.015641264617443085, -0.2512475848197937, -0.3893158733844757, 0.37914907932281494, -0.20304764807224274, 0.1786520779132843, 0.3298626244068146, -0.00010546908742981032, 0.055777326226234436, 0.33311939239501953, -0.0016957689076662064, -0.3189176023006439, -0.0971904844045639, -0.14497493207454681, -0.5241263508796692, 0.11398466676473618, -0.31694552302360535, 0.42528870701789856, -0.33021557331085205, -0.23765109479427338, -0.12070231884717941, 0.23491546511650085, 0.2009017914533615, 0.2643296718597412, 0.4617821276187897, 0.48618751764297485, -0.004376288037747145, 0.38449910283088684, -0.1263226717710495, -0.1678389310836792, 0.3752983808517456, 0.2364213615655899, -0.22638936340808868, 0.04133709892630577, 0.11752520501613617, -0.06141038239002228, 0.06328283995389938, 0.12766492366790771, 0.04926028475165367, -0.1038784459233284, -0.36744657158851624, -0.06833145767450333, 0.05039679631590843, 0.5075064301490784, -0.5111186504364014, -0.21696355938911438, -0.08546020835638046, 0.12432113289833069, -0.033104509115219116, 0.1380397528409958, 0.20169751346111298, -0.05358969420194626, -0.11015446484088898, 0.2808273434638977, -0.20640915632247925, -0.2585776448249817, 0.193715900182724, -0.1518898606300354, 0.44038835167884827, -0.0387483611702919, 0.09537803381681442, 0.2886868715286255, -0.14609846472740173, 0.6073460578918457, -0.08554735034704208, -0.12035034596920013, 0.12166944146156311, -0.378759503364563, 0.12028110027313232, 0.06833140552043915, -0.06435976177453995, 0.09703487902879715, 0.08821560442447662, 0.09196574240922928, 0.14560464024543762, 0.13050352036952972, 0.312741219997406, 0.11704036593437195, 0.3272089660167694, 0.009206682443618774, 0.2912883758544922, 0.279818594455719, 0.291229248046875, 0.16915960609912872, -0.07662445306777954, -0.06993764638900757, -0.3918396830558777, 0.13440105319023132, -0.06948097050189972, 0.3126770853996277, 0.1718909740447998, -0.3556828498840332, -0.04945753142237663, -0.34133267402648926, -0.06107207387685776, -0.018745526671409607, 0.11719813942909241, -0.21346215903759003, 0.11041980981826782, 0.18445125222206116, 0.14404627680778503, -0.16706758737564087, -0.07192084193229675, -0.15177622437477112, 0.30459773540496826, -0.029399532824754715, -0.2297070473432541, 0.020893629640340805, -0.3086882531642914, 0.18702073395252228, 0.05158008635044098, 0.2191481590270996, 0.1520770937204361, 0.19079561531543732, -0.11568041145801544, -0.1989668905735016, 0.30345362424850464, 0.05972960218787193, 0.07516193389892578, 0.1255253553390503, -0.4011133313179016, -0.12948155403137207, 0.10902117192745209, -0.20784515142440796, -0.11302678287029266, -0.2632027864456177, 0.22986562550067902, -0.21520063281059265, 0.05390156805515289, -0.5561850070953369, -0.2042221575975418, -0.01615455001592636, -0.09570357203483582, 0.00885365903377533, -0.2448430210351944, 0.20653855800628662, -0.27543532848358154, 0.24363973736763, 0.03799711912870407, -0.359899640083313, 0.019681744277477264, -0.25437021255493164, -0.22622430324554443, -0.0632978305220604, 0.15920090675354004, -0.28632065653800964, 0.19538572430610657, -0.2295815646648407, 0.1917760819196701, 0.6380636096000671, -0.5143747925758362, -0.49432286620140076, -0.018339956179261208, -0.11208782345056534, -0.029625801369547844, -0.05690649896860123, 0.114212267100811, -0.12338151037693024, 0.22074516117572784, 0.06381677836179733, 0.16991741955280304, -0.03144317865371704, -0.15496589243412018, -0.24697406589984894, -0.24764251708984375, 0.10741645842790604, 0.16192872822284698, 0.08611095696687698, -0.3101314604282379, 0.1939123272895813, -0.1340436190366745, 0.0820700153708458, 0.048896998167037964, 0.08613482862710953, 0.041035108268260956, 0.3639858067035675, 0.0073455944657325745, 0.04127989336848259, -0.1453772485256195, -0.27893808484077454, 0.23349878191947937, -0.20378197729587555, 0.043385233730077744, -0.31818848848342896, -0.09762507677078247, -0.3575020134449005, 0.2770490050315857, -0.2133731096982956, 0.08117526769638062, 0.20150983333587646, -0.10527142882347107, -0.0017689131200313568, 0.3523835241794586, -0.0231050793081522, 0.2652149796485901, 0.15163733065128326, 0.13248680531978607, -0.3389766812324524, 0.3570483326911926, -0.3791435956954956, -0.19112934172153473, 0.1065421849489212, 0.10103223472833633, -0.09904893487691879, 0.03755217418074608, -0.040021561086177826, 0.13910934329032898, 0.08696503192186356, 0.05051609128713608, -0.029967576265335083, -0.19732289016246796, 0.15610477328300476, -0.38743841648101807, 0.07629508525133133, 0.14115425944328308, 0.3138980269432068, 0.09010138362646103, 0.09193466603755951, 0.12511932849884033, -0.057135988026857376, -0.10568516701459885, 0.010007370263338089, 0.21469514071941376, 0.1489289104938507, 0.18479962646961212, 0.1219906136393547, -0.09526578336954117, 0.16374939680099487, -0.05755871906876564, 0.08766454458236694, -0.08312424272298813, -0.1441521942615509, -0.025374270975589752, 0.4067188799381256, 0.027504581958055496, 0.18406587839126587, 0.029344400390982628, -0.3974841237068176, 0.1613837480545044, 0.23779095709323883, -0.0388253778219223, 0.35217154026031494, 0.2281309813261032, -0.20386505126953125, -0.03670243173837662, -0.025722432881593704, -0.14596696197986603, 0.13845586776733398, 0.29917973279953003, 0.3653387725353241, 0.1721174716949463, 0.2751636803150177, -0.0793750211596489, -0.07499031722545624, -0.20255593955516815, -0.06626103818416595, 0.2388167679309845, -0.179316908121109, 0.23284627497196198, -0.2155468910932541, -0.28134846687316895, -0.16775557398796082, -0.16836759448051453, -0.017846770584583282, -0.4374026954174042, -0.2076960653066635, 0.2531125843524933, 0.13706065714359283, 0.17950409650802612, 0.18914306163787842, -0.11910523474216461, 0.09144657850265503, -0.24013082683086395, -0.2524128556251526, -0.3897513747215271, -0.3771704435348511, 0.14074935019016266, 0.3231414258480072, 0.16103100776672363, 0.23223726451396942, -0.15233707427978516, 0.24474532902240753, -0.4053630232810974, -0.4641483426094055, -0.1996774673461914, -0.07983376085758209, 0.37535718083381653, 0.27120351791381836, 0.1453298181295395, -0.25076645612716675, -0.3088528513908386, 0.3701550364494324, 0.06788317114114761, -0.278037428855896, 0.16338783502578735, -0.11023963987827301, -0.17212386429309845, 0.030149411410093307, -0.3643362820148468, -0.366202175617218, -0.4178314208984375, 0.3031975030899048, 0.18234014511108398, -0.12022127211093903, -0.15832804143428802, 0.286970317363739, 0.2404126673936844, 0.12970036268234253, -0.026720022782683372, 0.051749128848314285, 0.2594490945339203, 0.5824719667434692, -0.11348418891429901, -0.4176758825778961, 0.19867241382598877, -0.2575911283493042, 0.28349339962005615, -0.12021251022815704, -0.42129313945770264, 0.0007621115073561668, -0.16049060225486755, 0.6609593629837036, -0.19919490814208984, 0.21469031274318695, 0.1496122181415558, 0.19047105312347412, 0.012940635904669762, -0.08903169631958008, -0.2557503879070282, -0.14029964804649353, -0.03633485734462738, 0.010837934911251068, 0.022987356409430504, 0.12076690047979355, 0.01570465788245201, 0.5826401114463806, -0.022584591060876846, -0.053331296890974045, 0.2751410901546478, -0.12124372273683548, 0.2058853805065155, 0.0454714372754097, -0.40026065707206726, -0.030818508937954903, -0.1482352912425995, 0.25347650051116943, -0.12386380136013031, -0.27598896622657776, -0.24879346787929535, -0.3007621169090271, -0.22170129418373108, -0.13517729938030243, -0.2148839831352234, -0.0007900502532720566, -0.0668293759226799, 0.019146107137203217, 0.06087447330355644, -0.0958225280046463, -0.18997864425182343, -0.17741647362709045, 0.19920270144939423, -0.012645900249481201, -0.27870815992355347, 0.09548215568065643, -0.36411768198013306, -0.48508042097091675, -0.1638599932193756, 0.3125026822090149, 0.14825230836868286, 0.19706253707408905, 0.14090019464492798, -0.17663002014160156, 0.0947592481970787, -0.19500909745693207, 0.3924494981765747, 0.005731587298214436, -0.17826789617538452, 0.28521502017974854, 0.21998360753059387, -0.7880533933639526, -0.2938234508037567, -0.22271594405174255, 0.02384585700929165, 0.15743659436702728, 0.05748999863862991, -0.23757311701774597, 0.18725134432315826, 0.005227845162153244, 0.43987447023391724, -0.05482159182429314, 0.04374701902270317, -0.4539211392402649, -0.4103517234325409, -0.3626696467399597, -0.12044744938611984, -0.04820451885461807, 0.3372291922569275, 0.0038945276755839586, 0.0014652088284492493, -0.1842184215784073, -0.10645346343517303, -0.16292496025562286, 0.2704038619995117, 0.2156517505645752, -0.12126815319061279, 0.23663491010665894, -0.12296657264232635, -0.07863587141036987, 0.4644378125667572, 0.4202217757701874, 0.12378127872943878, -0.6989765167236328, -0.15927788615226746, -0.08174831420183182, 0.10295155644416809, -0.2168060839176178, -0.16423822939395905, 0.2025851011276245, 0.021502569317817688, 0.044337473809719086, 0.04031134396791458, 0.07559850811958313, 0.20126549899578094, 0.08744733780622482, -0.07337429374456406, -0.15103411674499512, 0.5053032636642456, 0.22790755331516266, 0.04965975880622864, 0.40686002373695374, 0.013320252299308777, -0.13642434775829315, 0.09588582813739777, 0.1526995301246643, 0.6006845831871033, -0.02783014625310898, 0.0508120022714138, 0.602599561214447, -0.30677568912506104, 0.5539407730102539, -0.13000589609146118, 0.08401219546794891, -0.4649183452129364, -0.21816807985305786, 0.007001196965575218, -0.3166860044002533, 0.2950654923915863, -0.31999218463897705, -0.25084489583969116, 0.035639312118291855, -0.2634040117263794, 0.20716571807861328, 0.057378724217414856, 0.18010777235031128, -0.2765648066997528, -0.008458636701107025, -0.15260066092014313, 0.14601637423038483, -0.16789475083351135, 0.19331930577754974, -0.06967614591121674, -0.05161827430129051, -0.4364544749259949, -0.1682930439710617, -0.1661468744277954, 0.043758369982242584, -0.27520352602005005, 0.5126566886901855, 0.18874070048332214, -0.3083452582359314, 0.303802490234375, 0.3915409445762634, 0.15757465362548828, -0.032569896429777145, -0.05513593554496765, 0.10629886388778687, 0.15929222106933594, -0.24998177587985992, 0.21638084948062897, 0.08224287629127502, 0.20630435645580292, -0.18703293800354004, -0.3244168162345886, 0.5305283665657043, -0.0557473823428154, -0.030215639621019363, -0.02450978010892868, 0.4902905225753784, 0.10989101231098175, -0.15390463173389435, -0.09123367071151733, -0.15353401005268097, 0.07097969949245453, -0.12607257068157196, 0.15970785915851593, 0.10155156254768372, 0.05880055949091911, 0.41413000226020813, -0.1115618646144867, 0.0191839337348938, -0.041933704167604446, 0.2632979452610016, -0.10645807534456253, 0.11084572970867157, 0.24571435153484344, 0.1302165389060974, -0.31011903285980225, -0.19411799311637878, 0.1747111976146698, -0.06257854402065277, -0.36093670129776, 0.051026832312345505, 0.14427626132965088, 0.1181773692369461, -0.20491671562194824, 0.3655370771884918, 0.159381702542305, -0.11603821069002151, 0.12172618508338928, -0.38307052850723267, -0.25655439496040344, 0.3387969136238098, 0.003723137080669403, -0.11631238460540771, 0.30040791630744934, 0.08133772015571594, 0.030302459374070168, -0.0058218929916620255, -0.30745387077331543, 0.2028246968984604, -0.32542115449905396, 0.011559836566448212, 0.09506544470787048, 0.08245643228292465, -0.03083922527730465, -0.06428593397140503, 0.17814335227012634, 0.047864146530628204, -0.08286610245704651, -0.29791784286499023, -0.06921486556529999, 0.04366856813430786, -0.05298735946416855, -0.15592209994792938, 0.07894015312194824, -0.24277739226818085, 0.06138056889176369, -0.011820323765277863, -0.06395299732685089, 0.024487130343914032, -0.16005441546440125, 0.08145830780267715, -0.07733793556690216, 0.040908217430114746, -0.2512699067592621, 0.22821582853794098, -0.19287490844726562, -0.01635434478521347, -0.004309763200581074, 0.18926866352558136, 0.26216045022010803, 0.14220374822616577, -0.01266530156135559, -0.14550697803497314, -0.2946562170982361, -0.07144568860530853, 0.2462889850139618, -0.3729652762413025, 0.0193476639688015, -0.1245211660861969, 0.07011937350034714, 0.48789653182029724, -0.2644606828689575, 0.021816281601786613, 0.32130396366119385, 0.2248583734035492, -0.4720917046070099, -0.3357242941856384, 0.16089433431625366, -0.028791848570108414, -0.0033935867249965668, 0.04601816087961197, 0.17434436082839966, -0.025052987039089203, -0.03990393877029419, 0.24980896711349487, 0.11671129614114761, -0.1551571488380432, 0.26989397406578064, 0.42286837100982666, -0.04521893337368965, 0.02074575051665306, 0.2719666361808777, 0.3008866012096405, 0.20523236691951752, 0.3551137447357178, -0.32482120394706726, 0.06455634534358978, -0.051687829196453094, 0.03776688128709793, -0.01196955144405365, -0.30605846643447876, -0.10699756443500519, -0.003531903028488159, -0.10442371666431427, -0.19028833508491516, 0.12795579433441162, 0.43193069100379944, 0.13195426762104034, 0.05573978275060654, 0.08284635096788406, 0.0617179200053215, -0.11907226592302322, 0.29644614458084106, -0.06051899492740631, -0.10374736785888672, 0.09121666848659515, -0.03830508887767792, 0.11628678441047668, -0.2087956815958023, 0.4120827913284302, 0.2387768030166626, -0.20035915076732635, -0.20896336436271667, 0.20515695214271545, 0.40496906638145447, 0.07703123241662979, -0.14475728571414948, -0.13086746633052826, 0.2532721161842346, -0.19047853350639343, -0.340083509683609, 0.23628957569599152, 0.5830232501029968, 0.25807520747184753, -0.27517110109329224, 0.10936052352190018, 0.07312199473381042, -0.17655032873153687, -0.021940289065241814, 0.057635266333818436, 0.16017299890518188, 0.13684798777103424, 0.2793981432914734, 0.25090116262435913, -0.19371896982192993, -0.09180693328380585, 0.12458445131778717, 0.1629541963338852, -0.19050565361976624, 0.14474013447761536, -0.29706668853759766, -0.2748735547065735, -0.08792411535978317, 0.05974967032670975, -0.20579451322555542, 0.40846970677375793, 0.27451273798942566, 0.2821592688560486, 0.00496017187833786, -0.30788156390190125, 0.11188583076000214, 0.05498668923974037, 0.475966215133667, 0.2466980218887329, 0.397646963596344, -0.15499882400035858, -0.12841913104057312, -0.5016839504241943, 0.11088933795690536, -0.05249824747443199, -0.30146780610084534, 0.003836093470454216, 0.030938955023884773, -0.04693228751420975, 0.255698025226593, 0.2194007784128189, -0.0072293528355658054, 0.32487720251083374, 0.12294767796993256, -0.3567814826965332, -0.2917696535587311, 0.3050174415111542, -0.20671255886554718, 0.02959616482257843, -0.35040098428726196, 0.10540710389614105, -0.41346994042396545, 0.17660769820213318, -0.3590978980064392, -0.10725103318691254, 0.28136542439460754, 0.11461028456687927, 0.5974825024604797, -0.01933533139526844, 0.5290720462799072, 0.16651740670204163, 0.15858983993530273, 0.02538975328207016, -0.21360018849372864, -0.14344698190689087, 0.24465900659561157, 0.13016441464424133, 0.23025035858154297, -0.2169489711523056, -0.09752947092056274, -0.1996530145406723, 0.40941810607910156, 0.22015021741390228, 0.16378405690193176, -0.021873585879802704, 0.08712064474821091, -0.0011446289718151093, -0.023640837520360947, 0.08054300397634506, 0.05554937943816185, -0.14188167452812195, 0.12738637626171112, -0.3887636065483093, -0.4281505346298218, 0.27443981170654297, -0.22183090448379517, -0.31075480580329895, -0.038869887590408325, 0.02449316531419754, 0.10103452950716019, -0.10539566725492477, -0.3233843445777893, 0.011641137301921844, 0.43790555000305176, -0.03783274441957474, -0.20448461174964905, 0.2812793254852295, 0.10532253980636597, 0.12282159924507141, -0.08605995774269104, 0.3797082006931305, -0.09527095407247543, -0.11661364138126373, 0.031525034457445145, -0.1509280800819397 ]
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.09684586524963379, -0.06861140578985214, -0.05390683561563492, 0.4750131368637085, 0.2311234325170517, 0.23958024382591248, 0.005816321820020676, 0.16763201355934143, -0.017036043107509613, -0.10581767559051514, -0.025985006242990494, -0.29927322268486023, 0.16184596717357635, -0.03180019184947014, 0.0029819179326295853, -0.11933287978172302, 0.13585470616817474, 0.08486100286245346, -0.13912031054496765, -0.3514159321784973, -0.11538223177194595, 0.09119187295436859, -0.1484108418226242, 0.11585482209920883, -0.026407290250062943, -0.027494078502058983, 0.005661604925990105, 0.08159982413053513, -0.3496823310852051, -0.3620357811450958, 0.5557940006256104, 0.10423947870731354, 0.17857341468334198, 0.07448068261146545, -0.00011677344446070492, -0.18653851747512817, 0.30246004462242126, -0.3341221511363983, -0.13408787548542023, -0.12163238227367401, -0.3307466208934784, -0.20629067718982697, -0.24196796119213104, -0.3494568169116974, -0.04425906389951706, -0.14099591970443726, 0.15530768036842346, -0.11969376355409622, 0.03511062264442444, 0.4630729854106903, 0.1809934377670288, -0.10437338054180145, 0.00837433710694313, -0.18091614544391632, -0.09256089478731155, 0.010255075991153717, 0.06696025282144547, 0.1523747444152832, 0.11259131133556366, 0.2954724133014679, 0.3457047641277313, 0.14385032653808594, 0.023414114490151405, -0.04617413505911827, 0.264805406332016, -0.1932268589735031, 0.1687992811203003, -0.38408204913139343, 0.30179068446159363, 0.27151089906692505, 0.9384872317314148, -0.14330708980560303, -0.1691131442785263, 0.24676549434661865, 0.18929721415042877, -0.18559882044792175, 0.2946262061595917, 0.6772638559341431, -0.06799337267875671, 0.1251315176486969, -0.32608118653297424, -0.1865651160478592, -0.11974625289440155, 0.2777037024497986, -0.12928101420402527, -0.21794423460960388, 0.0771925151348114, -0.051841892302036285, 0.10029866546392441, 0.20468567311763763, 0.0032096304930746555, -0.40798425674438477, -0.1779828667640686, 0.2119586169719696, -0.11531679332256317, 0.0007461085915565491, -0.4127686321735382, 0.3904479146003723, -0.08808347582817078, -0.04882340133190155, -0.24433235824108124, -0.07201795279979706, -0.16063441336154938, 0.08103957772254944, 0.18064124882221222, -0.04470507428050041, 0.13689051568508148, 0.15672877430915833, 0.08027753233909607, -0.14902980625629425, 0.1545657068490982, -0.09443322569131851, -0.18084481358528137, -0.31860217452049255, -0.06164918839931488, 0.2068345844745636, -0.1288011521100998, -0.4318053126335144, -0.22984085977077484, 0.23124966025352478, -0.31195828318595886, 0.07695769518613815, -0.11251433938741684, 0.4242168962955475, -0.43252691626548767, -0.052869535982608795, -0.08158890902996063, 0.14843440055847168, -0.05913347005844116, -0.5108188986778259, -0.11773642152547836, 0.056705541908741, -0.2882999777793884, -0.2188444435596466, 0.28050100803375244, -0.5110835433006287, 0.29502633213996887, 0.05213771015405655, 0.17217940092086792, -0.11801266670227051, -0.08355676382780075, -0.3251761198043823, 0.08741593360900879, 0.2726626396179199, -0.1362612545490265, 0.12452877312898636, 0.2622082531452179, -0.29802030324935913, 0.028888322412967682, -0.041017018258571625, -0.3503586947917938, -0.12040992826223373, -0.16345250606536865, 0.1190708801150322, -0.21251565217971802, -0.009393863379955292, -0.34964826703071594, -0.25597628951072693, 0.24433383345603943, -0.09214803576469421, 0.1594795435667038, -0.31662094593048096, 0.03177350386977196, -0.16815614700317383, -0.04482736438512802, 0.3502213954925537, -0.362042635679245, 0.018054381012916565, -0.032912593334913254, -0.11093735694885254, 0.3610650300979614, 0.2010711282491684, -0.17297831177711487, 0.3088463544845581, -0.2813074588775635, 0.2549063563346863, 0.048899635672569275, -0.5429533123970032, -0.45508483052253723, 0.23926131427288055, 0.10148699581623077, -0.07876046746969223, -0.2260330319404602, -0.07064902037382126, 0.38818392157554626, -0.1845715194940567, -0.05142827332019806, 0.06852972507476807, 0.09100300073623657, 0.04544581472873688, -0.13692545890808105, 0.05823665112257004, 0.1933748722076416, -0.036191675812006, 0.20074202120304108, -0.09156978875398636, 0.2835772633552551, -0.12945957481861115, 0.24641859531402588, -0.19030088186264038, 0.17272593080997467, 0.2742316722869873, 0.18232102692127228, -0.12281167507171631, 0.13213056325912476, 0.3525640666484833, -0.4031897485256195, 0.16285240650177002, -0.04386962950229645, -0.000148870050907135, -0.020208731293678284, 0.003059491515159607, -0.263375461101532, -0.19606123864650726, -0.28289204835891724, -0.08162806928157806, 0.02956581860780716, -0.17281168699264526, 0.03644627705216408, 0.15137521922588348, 0.1686389297246933, 0.5813813209533691, -0.23743632435798645, 0.0732225626707077, 0.16477297246456146, 0.30524593591690063, -0.11461811512708664, 0.3243883550167084, 0.06050775200128555, -0.19762423634529114, 0.3011152148246765, -0.11830458790063858, -0.174178808927536, 0.18022921681404114, 0.2748379707336426, 0.21194367110729218, -0.3257676959037781, 0.005127504467964172, 0.4052170217037201, -0.37863263487815857, 0.1828545480966568, 0.4098120629787445, 0.1813717484474182, -0.04248596727848053, 0.010512802749872208, -0.00256984680891037, -0.08980165421962738, -0.2186424732208252, 0.027364611625671387, 0.10815995186567307, 0.354726642370224, -0.01612180843949318, -0.269157350063324, -0.16400596499443054, 0.3425183594226837, -0.27339237928390503, 0.04014848545193672, -0.007994456216692924, -0.17746421694755554, -0.3209874629974365, 0.4895764887332916, 0.06071169301867485, -0.039963558316230774, 0.1609400510787964, -0.028032004833221436, 0.05748545378446579, 0.3541266620159149, 0.20055703818798065, 0.5117332935333252, -0.02721988782286644, -0.20330578088760376, 0.2647411525249481, 0.13748972117900848, -0.18593287467956543, 0.3109615743160248, -0.21975140273571014, 0.10998950898647308, 0.1862860918045044, -0.08798195421695709, -0.12057428807020187, -0.39987894892692566, 0.15048901736736298, 0.3180183172225952, 0.08841097354888916, -0.3093157410621643, 0.12854662537574768, -0.4081655740737915, -0.23066973686218262, -0.2915109097957611, -0.13828396797180176, -0.0635012835264206, 0.05578231066465378, 0.003945276141166687, -0.10817039012908936, -0.14059466123580933, -0.004835076630115509, -0.6207499504089355, -0.043201521039009094, -0.04077773168683052, -0.17095400393009186, 0.03946036100387573, 0.2573709785938263, -0.23515364527702332, 0.009477291256189346, 0.10989414155483246, 0.08838953077793121, 0.3553433120250702, -0.39844274520874023, 0.2627764344215393, -0.38343876600265503, -0.20119774341583252, 0.2526559829711914, 0.08352849632501602, -0.17934300005435944, -0.023576341569423676, 0.2764126658439636, -0.33039695024490356, -0.14719662070274353, -0.08177490532398224, 0.05934245139360428, -0.15935488045215607, 0.19851695001125336, 0.0402032807469368, -0.1698152720928192, -0.1646367311477661, -0.5502980947494507, -0.4189051389694214, -0.08548572659492493, -0.16077035665512085, -0.17523430287837982, 0.03962201997637749, 0.4361671507358551, 0.018226124346256256, -0.07804308831691742, 0.10903329402208328, -0.1596164107322693, -0.25427719950675964, -0.12099164724349976, 0.42981472611427307, -0.25393614172935486, -0.583658754825592, 0.10299208760261536, 0.010724324733018875, 0.17444521188735962, 0.3262523412704468, -0.33509665727615356, 0.3499172031879425, 0.10392525047063828, 0.021326210349798203, 0.02530694752931595, -0.2157396525144577, 0.34576910734176636, -0.22299247980117798, 0.12444649636745453, -0.13639584183692932, 0.27129969000816345, 0.1059965267777443, 0.2097361981868744, 0.5329779386520386, -0.44212663173675537, -0.030273333191871643, 0.1538640856742859, 0.2319277971982956, 0.1277967393398285, -0.2935446798801422, 0.5387869477272034, 0.2865949869155884, 0.35814106464385986, 0.2793966829776764, -0.3494912087917328, 0.33415767550468445, -0.2343030869960785, -0.06060229241847992, 0.33068981766700745, -0.19232606887817383, -0.3205665946006775, -0.15435686707496643, 0.13522101938724518, -0.34581977128982544, -0.12566529214382172, -0.09959989786148071, -0.023235835134983063, 0.367254376411438, 0.32434460520744324, 0.3868767321109772, 0.2190694659948349, -0.2529470920562744, 0.08798296749591827, 0.366508424282074, 0.19227752089500427, 0.12189372628927231, -0.15943434834480286, -0.2385473996400833, -0.013744302093982697, 0.2690025568008423, 0.35129714012145996, 0.14291886985301971, 0.008692871779203415, 0.33666926622390747, -0.016954496502876282, 0.02738858200609684, 0.5130402445793152, -0.3365211486816406, 0.1041378453373909, -0.11993204057216644, 0.31650882959365845, -0.19129842519760132, -0.29062187671661377, -0.11217001080513, 0.005234661046415567, 0.25637197494506836, 0.26475805044174194, -0.3294282853603363, 0.15964701771736145, -0.15779422223567963, 0.3297688961029053, -0.07170850783586502, -0.34899553656578064, -0.18009307980537415, -0.3787814974784851, -0.2861407995223999, 0.20975852012634277, 0.03445243835449219, 0.1097165197134018, -0.25216352939605713, 0.0800887793302536, 0.11536027491092682, 0.4076043963432312, 0.18587172031402588, 0.064852774143219, 0.2890307605266571, 0.07514739781618118, -0.005817044526338577, -0.015391852706670761, 0.03914715349674225, 0.7092402577400208, 0.36610135436058044, -0.16851308941841125, -0.28025633096694946, -0.11381437629461288, -0.2125696986913681, 0.1873958706855774, 0.10636603087186813, 0.013256910257041454, -0.1825782060623169, 0.23834972083568573, -0.26547151803970337, 0.07524964213371277, 0.38414838910102844, 0.17352227866649628, -0.05790196359157562, -0.641761839389801, -0.42794156074523926, 0.02717398852109909, -0.16576392948627472, 0.07674664258956909, 0.15311583876609802, 0.21852630376815796, -0.1480732262134552, -0.2544136345386505, 0.2818486988544464, 0.8829848170280457, 0.10328644514083862, -0.17454084753990173, -0.04683242738246918, -0.15705718100070953, 0.1641252189874649, -0.6999180316925049, 0.06349194049835205, -0.22915026545524597, -0.47589725255966187, -0.2166135460138321, -0.14549490809440613, 0.30873239040374756, 0.48037803173065186, -0.2660753130912781, 0.32674652338027954, 0.12082454562187195, 0.2696646749973297, 0.0956338569521904, 0.11729568243026733, 0.08676153421401978, -0.22919826209545135, -0.3270390033721924, 0.13728563487529755, -0.22785280644893646, 0.38161501288414, -0.3304395079612732, -0.08741152286529541, -0.03549383953213692, -0.34327954053878784, -0.26529330015182495, 0.31943511962890625, 0.043342698365449905, 0.0522049143910408, 0.005462706089019775, -0.08032885938882828, 0.33634668588638306, 0.37962570786476135, 0.3059648275375366, 0.5810826420783997, -0.1137591004371643, 0.0904679149389267, 0.08296786993741989, -0.21401116251945496, -0.0017045794520527124, -0.18632929027080536, 0.07272282987833023, -0.2209593951702118, -0.16374386847019196, 0.12524151802062988, 0.025680165737867355, -0.15543295443058014, 0.35425078868865967, -0.005230896174907684, -0.3836021423339844, -0.04852549731731415, -0.31853771209716797, 0.0018292516469955444, 0.08064685761928558, 0.07416340708732605, 0.054236844182014465, 0.009240694344043732, -0.04840090870857239, 0.2165425717830658, 0.28884992003440857, -0.27386343479156494, -0.10937462747097015, 0.48208189010620117, 0.006907382979989052, -0.42257750034332275, 0.3957422375679016, 0.06928418576717377, -0.285916805267334, -0.23460838198661804, -0.2766020596027374, -0.32260170578956604, -0.43782639503479004, -0.21228289604187012, -0.1211898997426033, 0.2519952654838562, -0.3501027822494507, 0.2291536182165146, 0.10924340039491653, -0.08859961479902267, 0.33423367142677307, -0.46250998973846436, -0.12606874108314514, 0.0029637888073921204, -0.17802022397518158, -0.02326071634888649, 0.11585008352994919, -0.06081860885024071, 0.17735084891319275, 0.048065513372421265, -0.2034521996974945, 0.0295513104647398, -0.22067831456661224, 0.0934596061706543, 0.18449844419956207, 0.029181236401200294, -0.014967585913836956, -0.2728753089904785, 0.010682707652449608, 0.2006673812866211, -0.1280088722705841, -0.10326344519853592, -0.04361603409051895, 0.19198019802570343, 0.15635406970977783, 0.0032913750037550926, 0.31319114565849304, -0.22572866082191467, -0.16050410270690918, -0.04295622929930687, -0.04857572540640831, 0.25988900661468506, -0.035370662808418274, 0.2518925368785858, 0.25162214040756226, 0.11580882221460342, -0.2370559126138687, 0.0919007733464241, 0.11321330070495605, 0.4768441915512085, -0.010512115433812141, 0.08806437253952026, 0.142078697681427, 0.04848155379295349, -0.23340560495853424, 0.099497951567173, 0.2594979405403137, -0.06110546737909317, 0.30479344725608826, -0.3842666745185852, 0.4487791657447815, 0.15277209877967834, 0.025995593518018723, 0.21585607528686523, -0.20954960584640503, -0.04459397494792938, 0.4983428716659546, 0.1671551764011383, -0.2295720875263214, -0.054187413305044174, 0.16485212743282318, 0.20721685886383057, -0.27206337451934814, -0.049347035586833954, 0.19951209425926208, -0.3289792537689209, 0.26001089811325073, 0.06320144236087799, 0.39418825507164, 0.006607402116060257, 0.26525944471359253, 0.4170483648777008, -0.05228245630860329, 0.19954845309257507, 0.05269612371921539, -0.13648325204849243, -0.10172843188047409, 0.13111236691474915, 0.1045001894235611, -0.23105497658252716, 0.3705918788909912, 0.2657856345176697, 0.023488182574510574, -0.4831438660621643, -0.04678233340382576, 0.31820398569107056, -0.042555660009384155, 0.1746273934841156, 0.4242458641529083, -0.1332392394542694, 0.3142975866794586, -0.19722378253936768, -0.8147053718566895, 0.213456928730011, -0.11366098374128342, 0.2533864974975586, -0.057082682847976685, -0.23549595475196838, 0.18783435225486755, 0.3116333782672882, -0.12428495287895203, -0.0830516368150711, 0.11010423302650452, 0.3088507056236267, -0.21867360174655914, -0.24009309709072113, 0.2889837920665741, 0.027847107499837875, 0.029252775013446808, -0.21235860884189606, 0.23175759613513947, 0.20562800765037537, 0.09635688364505768, 0.1508675068616867, 0.016842711716890335, 0.21875740587711334, 0.3880808651447296, 0.22878192365169525, 0.01262407936155796, 0.014551824890077114, -0.01183769479393959, 0.1728644073009491, 0.5091115236282349, 0.49285849928855896, 0.17758703231811523, 0.3632190525531769, 0.07827188819646835, -0.058883972465991974, 0.13057291507720947, 0.05974585935473442, 0.11488175392150879, -0.148616760969162, 0.21046587824821472, -0.07804727554321289, 0.08696352690458298, -0.380533903837204, -0.06499544531106949, -0.2805468440055847, 0.31119653582572937, 0.5664157271385193, -0.01621434837579727, 0.11519142240285873, -0.1281658113002777, 0.02915676310658455, -0.11010177433490753, 0.3644063174724579, 0.21824400126934052, 0.4985846281051636, -0.30342066287994385, -0.23964542150497437, -0.6170095801353455, 0.36631566286087036, -0.37596219778060913, 0.23659256100654602, -0.13079725205898285, -0.012215964496135712, 0.33237484097480774, 0.3707733750343323, -0.06659263372421265, 0.30857741832733154, 0.14302967488765717, 0.4748994708061218, -0.053218740969896317, -0.07031334936618805, 0.20460271835327148, 0.0699489638209343, -0.1227097138762474, -0.4148938059806824, 0.05047544091939926, -0.10696157813072205, 0.07983549684286118, -0.18072524666786194, -0.03658962994813919, -0.06134173646569252, 0.23185309767723083, 0.3578606843948364, 0.10507999360561371, 0.8830099105834961, -0.056726180016994476, -0.010340051725506783, -0.00946977362036705, 0.05414443090558052, -0.14287903904914856, 0.27690359950065613, 0.020986143499612808, 0.1057201474905014, 0.025450920686125755, 0.019499188289046288, -0.12325815856456757, 0.44624361395835876, 0.1924264281988144, 0.13853707909584045, -0.3047603964805603, -0.2555628716945648, -0.366091787815094, -0.23978234827518463, -0.08903653174638748, -0.10242664068937302, -0.012979477643966675, -0.08468390256166458, 0.047341182827949524, -0.404579222202301, 0.5043479204177856, -0.5797138214111328, -0.1596442461013794, -0.05191752687096596, 0.19029194116592407, -0.03869427740573883, -0.17019765079021454, -0.17261558771133423, 0.24938291311264038, 0.38826265931129456, -0.2096816897392273, -0.27871617674827576, -0.015338743105530739, 0.00803402066230774, -0.020850539207458496, -0.05171623080968857, 0.7078821659088135, 0.05155391991138458, -0.44943371415138245, -0.1627378612756729, -0.4089479446411133 ]
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.03600166365504265, -0.0390106663107872, -0.04464858025312424, 0.4204438328742981, 0.22434505820274353, 0.24260079860687256, -0.02689221128821373, 0.15308493375778198, -0.0672711730003357, -0.029162168502807617, 0.01647341251373291, -0.2508126199245453, 0.15667754411697388, 0.04993098974227905, 0.0004600267857313156, -0.05730072408914566, 0.12339276075363159, 0.0768575519323349, -0.13000494241714478, -0.2965219020843506, -0.12795281410217285, 0.06371424347162247, -0.14548736810684204, 0.09782914817333221, -0.015724850818514824, 0.004198901355266571, -0.03612176328897476, 0.11285340040922165, -0.3306387960910797, -0.4125276505947113, 0.586749792098999, 0.08645016700029373, 0.25146961212158203, 0.060792673379182816, -0.00011312435526633635, -0.18661770224571228, 0.32078397274017334, -0.28202059864997864, -0.17490004003047943, -0.1334165781736374, -0.3252374529838562, -0.1429717242717743, -0.22703960537910461, -0.34869280457496643, -0.05865281820297241, -0.08707282692193985, 0.15259912610054016, -0.1404474675655365, 0.029326066374778748, 0.3692462146282196, 0.21021443605422974, -0.1186656653881073, 0.0342109240591526, -0.20886334776878357, -0.14667141437530518, -0.09703388810157776, 0.067707858979702, 0.16247209906578064, 0.13681700825691223, 0.28226879239082336, 0.3550720512866974, 0.20878206193447113, -0.041719261556863785, -0.0173640176653862, 0.3091588616371155, -0.2235090583562851, 0.2251720428466797, -0.3702126741409302, 0.33609071373939514, 0.27965861558914185, 0.9650487899780273, -0.10463549941778183, -0.15881280601024628, 0.285429984331131, 0.22511261701583862, -0.17314206063747406, 0.34631064534187317, 0.6254932880401611, -0.09347519278526306, 0.14465603232383728, -0.32392004132270813, -0.2792811393737793, -0.11341822147369385, 0.2988189160823822, -0.1196642816066742, -0.18171852827072144, 0.12404842674732208, -0.03445613384246826, 0.189472496509552, 0.21155470609664917, 0.0512721985578537, -0.35727906227111816, -0.22942280769348145, 0.24400801956653595, -0.1396590769290924, -0.010947190225124359, -0.3934461772441864, 0.40900877118110657, -0.1072905883193016, -0.030837833881378174, -0.3079858720302582, -0.04929891228675842, -0.1120639219880104, 0.09445996582508087, 0.2030046582221985, -0.06977793574333191, 0.11986908316612244, 0.11491937190294266, 0.10162315517663956, -0.15297754108905792, 0.2040785700082779, -0.05457824468612671, -0.18379123508930206, -0.3530227243900299, -0.09422264993190765, 0.15584921836853027, -0.12330381572246552, -0.3783263862133026, -0.1654164046049118, 0.176402285695076, -0.35750535130500793, 0.1171480342745781, -0.13702154159545898, 0.4213329553604126, -0.390378475189209, -0.050491780042648315, -0.03595064580440521, 0.11070794612169266, -0.11205218732357025, -0.5132812857627869, -0.12105902284383774, 0.07894761115312576, -0.2682023346424103, -0.22682495415210724, 0.27645671367645264, -0.5189315676689148, 0.20747677981853485, 0.04414333030581474, 0.1534954309463501, -0.06714441627264023, -0.08733111619949341, -0.282405287027359, 0.026424996554851532, 0.2698512673377991, -0.12030406296253204, 0.07067730277776718, 0.2335556149482727, -0.32447582483291626, 0.012957237660884857, 0.013095717877149582, -0.3358473777770996, -0.15693147480487823, -0.20962758362293243, 0.14171968400478363, -0.1472771167755127, -0.037568241357803345, -0.35253867506980896, -0.2765512764453888, 0.23899871110916138, -0.09173189103603363, 0.13400685787200928, -0.28951871395111084, -0.0120527483522892, -0.16460812091827393, -0.07267669588327408, 0.35153213143348694, -0.3475574553012848, 0.02240203320980072, -0.06331326812505722, -0.09841661155223846, 0.3028392195701599, 0.1756017804145813, -0.19843173027038574, 0.2672303020954132, -0.2671556770801544, 0.2501600980758667, -0.013776741921901703, -0.5401051044464111, -0.5093708038330078, 0.26959195733070374, 0.0551133006811142, -0.06869363784790039, -0.21885791420936584, -0.03552717715501785, 0.3348929286003113, -0.19231976568698883, 0.013415269553661346, 0.139502614736557, 0.06482543796300888, 0.05646827816963196, -0.10899680852890015, -0.01767844893038273, 0.22343583405017853, -0.04553782194852829, 0.21588531136512756, -0.05589907616376877, 0.2599472999572754, -0.0973491370677948, 0.22863051295280457, -0.23374712467193604, 0.17186105251312256, 0.3047974705696106, 0.2269146740436554, -0.17651373147964478, 0.058829694986343384, 0.33985933661460876, -0.40500372648239136, 0.20014646649360657, 0.016384825110435486, 0.09920646250247955, -0.03257928788661957, -0.006912926211953163, -0.1949695348739624, -0.17704607546329498, -0.2826218605041504, -0.09938514232635498, 0.03564772009849548, -0.2061428725719452, 0.03587408736348152, 0.13149122893810272, 0.19092580676078796, 0.5959506630897522, -0.21694844961166382, 0.0794815644621849, 0.13610248267650604, 0.263871431350708, -0.18123026192188263, 0.3510245978832245, 0.022807233035564423, -0.17560601234436035, 0.25622066855430603, -0.14293022453784943, -0.15280529856681824, 0.23498821258544922, 0.21686916053295135, 0.2181946486234665, -0.3224676251411438, -0.015166714787483215, 0.39121758937835693, -0.3939555585384369, 0.14231210947036743, 0.38449394702911377, 0.21877971291542053, -0.016002770513296127, 0.0914732813835144, -0.04635339975357056, -0.11192360520362854, -0.22086957097053528, 0.04277248680591583, 0.09839463233947754, 0.3558838665485382, 0.0020109452307224274, -0.2500750422477722, -0.1520540714263916, 0.34401050209999084, -0.3176959455013275, -0.006803728640079498, -0.03880111873149872, -0.10953311622142792, -0.3359967768192291, 0.4060755968093872, 0.09465160965919495, -0.03739515691995621, 0.165310338139534, -0.023726515471935272, 0.027425769716501236, 0.31577491760253906, 0.2485596388578415, 0.4471750855445862, -0.013600561767816544, -0.21439021825790405, 0.2998838424682617, 0.15738214552402496, -0.16022299230098724, 0.3488222062587738, -0.2297731190919876, 0.1348239779472351, 0.05081178620457649, -0.10896556079387665, -0.09183664619922638, -0.3125118017196655, 0.11669427156448364, 0.31336021423339844, 0.15521937608718872, -0.27927204966545105, 0.131876602768898, -0.4109163284301758, -0.24897465109825134, -0.18480364978313446, -0.18501517176628113, -0.08525298535823822, 0.04582539200782776, -0.0152914859354496, -0.06333261728286743, -0.13389919698238373, -0.020053183659911156, -0.5972514748573303, -0.060582682490348816, -0.03651852905750275, -0.23656056821346283, 0.0650053471326828, 0.16952644288539886, -0.218221515417099, 0.03483566269278526, 0.15680281817913055, 0.009487010538578033, 0.36651813983917236, -0.3867039978504181, 0.22427687048912048, -0.3541089594364166, -0.23438847064971924, 0.24377231299877167, 0.058888986706733704, -0.1631186157464981, -0.0350465327501297, 0.2716342806816101, -0.37719881534576416, -0.12626542150974274, -0.1053919866681099, 0.016588782891631126, -0.16420726478099823, 0.21197491884231567, 0.11102720350027084, -0.19945788383483887, -0.17520150542259216, -0.5475426912307739, -0.40198537707328796, -0.08435346186161041, -0.15553465485572815, -0.17611563205718994, 0.02004189044237137, 0.44364258646965027, 0.0465707927942276, -0.05506463348865509, 0.13535283505916595, -0.2508653402328491, -0.3042044937610626, -0.10633066296577454, 0.3193987309932709, -0.26240694522857666, -0.55755615234375, 0.1595308482646942, 0.02740698680281639, 0.1751662641763687, 0.3157694935798645, -0.3637109398841858, 0.38877004384994507, 0.09783945232629776, 0.10544751584529877, -0.030131585896015167, -0.22193776071071625, 0.43510860204696655, -0.2020958811044693, 0.0946490690112114, -0.09567125141620636, 0.276398241519928, 0.08469875901937485, 0.15218020975589752, 0.5275925993919373, -0.4281849265098572, -0.03821483254432678, 0.163630872964859, 0.17683249711990356, 0.055130619555711746, -0.24532590806484222, 0.5363045930862427, 0.27245068550109863, 0.39666318893432617, 0.24146637320518494, -0.36658066511154175, 0.33765387535095215, -0.2462863028049469, -0.09732631593942642, 0.30545976758003235, -0.22020313143730164, -0.312265008687973, -0.2184074968099594, 0.06713294982910156, -0.2943167984485626, -0.17756064236164093, -0.12286898493766785, -0.055158503353595734, 0.30679160356521606, 0.3584986925125122, 0.38227641582489014, 0.23450326919555664, -0.2700301706790924, 0.028006352484226227, 0.3280121982097626, 0.12048559635877609, 0.10909821093082428, -0.1994674652814865, -0.24111375212669373, -0.06923440843820572, 0.3282167315483093, 0.38174909353256226, 0.19860751926898956, 0.03272927924990654, 0.3442448377609253, -0.0016992613673210144, -0.002299872227013111, 0.5099645256996155, -0.2901911735534668, 0.13602232933044434, -0.13470669090747833, 0.2955148220062256, -0.2025732696056366, -0.2343927025794983, -0.049421485513448715, 0.025140494108200073, 0.2978614866733551, 0.21749912202358246, -0.279897540807724, 0.17006373405456543, -0.14172835648059845, 0.3046315908432007, -0.028335941955447197, -0.3298509120941162, -0.1842498481273651, -0.3711106479167938, -0.31300225853919983, 0.21866214275360107, 0.005644841119647026, 0.16865980625152588, -0.20480434596538544, 0.13315200805664062, 0.06940140575170517, 0.40124815702438354, 0.13604116439819336, 0.04668648540973663, 0.26891058683395386, 0.07114461064338684, -0.003164844587445259, -0.012465737760066986, 0.02926606684923172, 0.7025741338729858, 0.3302222192287445, -0.13469089567661285, -0.27162185311317444, -0.1439032256603241, -0.12448602169752121, 0.13919879496097565, 0.11082322895526886, 0.016814112663269043, -0.18976926803588867, 0.28592485189437866, -0.26999104022979736, 0.032289519906044006, 0.28135907649993896, 0.13068094849586487, -0.030732594430446625, -0.6320244073867798, -0.4210788309574127, 0.060908298939466476, -0.1813705414533615, 0.0958573967218399, 0.1489226520061493, 0.2680451273918152, -0.12857158482074738, -0.21744459867477417, 0.21882840991020203, 0.8750134110450745, 0.12908734381198883, -0.13012607395648956, -0.026467185467481613, -0.08860550820827484, 0.21637645363807678, -0.6644511818885803, 0.1195860505104065, -0.22566501796245575, -0.3912491202354431, -0.22046110033988953, -0.1284361332654953, 0.32625120878219604, 0.41411924362182617, -0.256935179233551, 0.3033982515335083, 0.05099692940711975, 0.23801659047603607, 0.09886003285646439, 0.08867760002613068, 0.0070951832458376884, -0.24925732612609863, -0.25337734818458557, 0.16598467528820038, -0.2577994465827942, 0.34935685992240906, -0.34058111906051636, -0.0519937127828598, -0.047962140291929245, -0.36749547719955444, -0.3082837462425232, 0.36980894207954407, 0.026316598057746887, 0.10837734490633011, 0.0024819709360599518, -0.00614667683839798, 0.36160221695899963, 0.30974769592285156, 0.34402602910995483, 0.5899114608764648, -0.15183250606060028, 0.10535812377929688, 0.09752488136291504, -0.2661145031452179, 0.04072898253798485, -0.2164756953716278, 0.11555370688438416, -0.192195862531662, -0.2545386552810669, 0.11873985826969147, 0.039211686700582504, -0.20714321732521057, 0.405892014503479, 0.035161830484867096, -0.30028730630874634, 0.003974413499236107, -0.3729747533798218, 0.009059920907020569, 0.11769448220729828, 0.03169284388422966, 0.08881250023841858, -0.011498622596263885, -0.08979436010122299, 0.17070958018302917, 0.301586776971817, -0.2777354121208191, -0.08117455244064331, 0.5380645394325256, -0.016519296914339066, -0.4363056719303131, 0.4067167341709137, 0.09109988808631897, -0.2650632858276367, -0.2602674067020416, -0.23032146692276, -0.35991665720939636, -0.3782092332839966, -0.2318970113992691, -0.07806985080242157, 0.24429352581501007, -0.34759244322776794, 0.2121434509754181, 0.053466856479644775, -0.03267113119363785, 0.3668105900287628, -0.47177252173423767, -0.10387915372848511, -0.005159780383110046, -0.24117226898670197, -0.02631959691643715, 0.17953535914421082, 0.017305975779891014, 0.14487387239933014, 0.0666748657822609, -0.23241198062896729, 0.018877841532230377, -0.2115810364484787, 0.06079910695552826, 0.2579629421234131, 0.015774622559547424, 0.03316774219274521, -0.3173059821128845, 0.056263357400894165, 0.23541635274887085, -0.13832856714725494, -0.14425355195999146, -0.04354356974363327, 0.1712249517440796, 0.14155204594135284, -0.0547134131193161, 0.3798897862434387, -0.2556416988372803, -0.18250900506973267, -0.004794434644281864, -0.028569171205163002, 0.3092053532600403, -0.04800115525722504, 0.1978422999382019, 0.23159044981002808, 0.16249562799930573, -0.2306026667356491, 0.13846352696418762, 0.08223053812980652, 0.4809699058532715, -0.07675930112600327, 0.09640982747077942, 0.08726608753204346, 0.055979207158088684, -0.2521456480026245, 0.06560821831226349, 0.23220467567443848, -0.008838672190904617, 0.2820623219013214, -0.41666239500045776, 0.4334471523761749, 0.1091424822807312, -0.012771831825375557, 0.2232503443956375, -0.24258163571357727, -0.10637184232473373, 0.565065860748291, 0.19571252167224884, -0.24593180418014526, -0.044881418347358704, 0.10908311605453491, 0.16161781549453735, -0.2950551509857178, -0.020071960985660553, 0.1439019739627838, -0.33228278160095215, 0.1799612045288086, 0.06278890371322632, 0.3500894606113434, -0.07054635137319565, 0.28517016768455505, 0.4285660982131958, -0.1124064177274704, 0.15801849961280823, 0.01753300242125988, -0.09012533724308014, -0.044987209141254425, 0.1519811451435089, 0.020785190165042877, -0.2855871319770813, 0.3917180597782135, 0.3113308548927307, -0.039286792278289795, -0.5306154489517212, -0.01697242632508278, 0.33374983072280884, -0.057357534766197205, 0.13620507717132568, 0.4013494849205017, -0.13841712474822998, 0.25279825925827026, -0.14553380012512207, -0.7807798981666565, 0.29337847232818604, -0.12416224926710129, 0.1993795782327652, 0.044794417917728424, -0.18246608972549438, 0.19924288988113403, 0.27377161383628845, -0.11258834600448608, -0.12412935495376587, 0.08946847915649414, 0.3351050615310669, -0.202726349234581, -0.2588579058647156, 0.25894802808761597, 0.0043820105493068695, -0.022876836359500885, -0.22049620747566223, 0.19673381745815277, 0.16131950914859772, 0.11659780144691467, 0.12137280404567719, 0.027868973091244698, 0.2811054587364197, 0.3800276815891266, 0.1551164835691452, 0.005199222359806299, -0.05129777267575264, 0.03080887906253338, 0.21066823601722717, 0.4682562053203583, 0.5239810347557068, 0.19572265446186066, 0.3474480211734772, 0.08084041625261307, -0.061709482222795486, 0.10587576031684875, 0.08854788541793823, 0.1906844824552536, -0.13260337710380554, 0.21887025237083435, -0.07925654202699661, 0.1500312089920044, -0.41932037472724915, 0.03140969201922417, -0.25482064485549927, 0.3473966419696808, 0.5314042568206787, -0.05585445091128349, 0.11739888042211533, -0.12155836075544357, 0.04544743895530701, -0.0932249128818512, 0.3865915834903717, 0.24005913734436035, 0.4453103840351105, -0.28618136048316956, -0.1872863471508026, -0.6304112076759338, 0.3185945153236389, -0.3895479440689087, 0.18973706662654877, -0.1382475197315216, 0.020808910951018333, 0.31157028675079346, 0.3615577816963196, -0.13070635497570038, 0.34100449085235596, 0.15389689803123474, 0.4440053701400757, -0.024161843582987785, -0.047953974455595016, 0.2248772531747818, 0.01066534873098135, -0.10288076102733612, -0.47510674595832825, 0.030057324096560478, -0.10461399704217911, 0.08701861649751663, -0.15085619688034058, -0.013043154031038284, -0.02128709852695465, 0.1397136151790619, 0.4028863310813904, 0.0827024057507515, 0.8158758878707886, -0.031241780146956444, -0.02696315012872219, -0.0647721141576767, 0.04369368776679039, -0.1682129055261612, 0.2752498984336853, 0.09536784142255783, 0.06574161350727081, -0.027701346203684807, 0.02656276524066925, -0.14459016919136047, 0.46080681681632996, 0.13002809882164001, 0.16491781175136566, -0.33779892325401306, -0.234468013048172, -0.354850709438324, -0.1299705058336258, -0.12786465883255005, -0.08096063882112503, -0.018934622406959534, -0.026522044092416763, 0.04693536460399628, -0.4027721583843231, 0.5305591821670532, -0.5888618230819702, -0.15716353058815002, -0.029735855758190155, 0.1984480619430542, -0.041412755846977234, -0.2330588400363922, -0.10988737642765045, 0.28023675084114075, 0.3406994640827179, -0.11726415902376175, -0.2922652065753937, 0.008228190243244171, -0.04379911348223686, 0.02045464888215065, -0.07098107039928436, 0.7276512384414673, 0.03267611935734749, -0.41514623165130615, -0.16170552372932434, -0.3914833664894104 ]
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.05162966623902321, -0.5501684546470642, 0.08731426298618317, 0.20385704934597015, 0.46819043159484863, -0.06437960267066956, 0.17485928535461426, -0.19538798928260803, 0.34517553448677063, 0.28289735317230225, 0.06791256368160248, 0.44621676206588745, 0.17837204039096832, 0.02425527013838291, -0.018203120678663254, 0.061698056757450104, 0.10580431669950485, -0.3587125837802887, -0.0846237987279892, -0.2987220287322998, -0.40688377618789673, 0.010205199010670185, -0.40486276149749756, 0.020255327224731445, -0.20062288641929626, 0.06136380136013031, -0.03478535637259483, -0.17003685235977173, 0.0016802577301859856, -0.003901716321706772, 0.3077569007873535, 0.12656521797180176, -0.09706734865903854, 0.36638689041137695, -0.00012357808009255677, -0.0986127108335495, 0.452625572681427, -0.1368989199399948, -0.03718136250972748, -0.011109232902526855, -0.176451176404953, 0.014776406809687614, -0.12447772175073624, -0.35091716051101685, 0.19185540080070496, 0.10585090517997742, -0.1739196926355362, -0.38249269127845764, 0.23381704092025757, 0.36850297451019287, 0.06368295103311539, 0.15738630294799805, -0.20920811593532562, -0.17202095687389374, -0.29599615931510925, -0.10444577038288116, -0.18503902852535248, 0.4786292016506195, -0.6841751337051392, -0.07330294698476791, -0.16761627793312073, 0.09176990389823914, 0.15016208589076996, -0.012652534991502762, 0.7468210458755493, 0.03993167355656624, 0.3019670844078064, 0.11366303265094757, 0.1792101263999939, -0.1155981495976448, 0.06793665885925293, -0.3869565427303314, -0.40357497334480286, -0.14624100923538208, 0.09400846064090729, -0.76938396692276, 0.10778280347585678, 0.014416707679629326, -0.22673597931861877, -0.09297265112400055, -0.10468219220638275, -0.116883285343647, -0.3561753034591675, 0.07649867236614227, -0.0503024123609066, 0.6123220920562744, 0.0015165875665843487, 0.0829186737537384, 0.1927204132080078, 0.1838296353816986, 0.040633901953697205, -0.29307782649993896, 0.028406087309122086, 0.07169141620397568, -0.2631751596927643, 0.21082043647766113, -0.039530716836452484, -0.06361667066812515, 0.27936896681785583, 0.05149959772825241, -0.07608576864004135, 0.04378318041563034, 0.4305036664009094, 0.05325872451066971, 0.19740816950798035, 0.5313014388084412, 0.4781777560710907, 0.33009472489356995, -0.01640075445175171, 0.07755768299102783, -0.19735869765281677, -0.24801978468894958, 0.2715126574039459, -0.005865264683961868, 0.24951289594173431, 0.16649532318115234, 0.019845623522996902, -0.07760163396596909, -0.298347145318985, -0.08159968256950378, 0.04883623868227005, -0.013127601705491543, 0.03460685908794403, 0.15964454412460327, -0.04791977256536484, 0.34199488162994385, 0.058227576315402985, 0.36950069665908813, -0.11243392527103424, -0.015164677985012531, -0.2224205732345581, 0.1949930489063263, -0.4361763298511505, 0.14417040348052979, -0.2022401988506317, -0.12393547594547272, 0.5087718963623047, -0.0023838961496949196, 0.6064444184303284, -0.4638637900352478, -0.09306445717811584, 0.03858204558491707, -0.01924063265323639, -0.012211587280035019, -0.4288243055343628, 0.24125511944293976, 0.03379887342453003, 0.06149902194738388, 0.04386202245950699, -0.016410313546657562, -0.32455480098724365, -0.08430211246013641, 0.48188284039497375, 0.0413154661655426, -0.29566502571105957, -0.1328897774219513, -0.18590807914733887, 0.21786201000213623, 0.02084720879793167, 0.11415903270244598, 0.036766670644283295, -0.14536906778812408, -0.5320342183113098, -0.2027048021554947, 0.7653903365135193, 0.06728962808847427, 0.12443558871746063, -0.2514534592628479, -0.13326720893383026, 0.08056777715682983, -0.0005602911114692688, 0.05522547662258148, 0.032728515565395355, 0.27925437688827515, -0.04574890807271004, 0.062303945422172546, 0.24063456058502197, -0.6767408847808838, -0.4408140778541565, 0.025120969861745834, 0.04600999504327774, -0.033232681453228, 0.20002350211143494, -0.17513394355773926, 0.35213202238082886, -0.0047272611409425735, 0.1999824494123459, 0.4301861524581909, -0.1823693960905075, -0.06753619760274887, -0.4210839867591858, -0.04798217862844467, 0.048952437937259674, -0.11043259501457214, 0.42577648162841797, 0.06625078618526459, 0.08449672162532806, 0.2618038058280945, 0.03608320280909538, 0.19154797494411469, -0.1473138928413391, 0.049512945115566254, 0.07015590369701385, -0.353040874004364, 0.08565213531255722, 0.055506423115730286, -0.14571380615234375, 0.10352598875761032, -0.1434565782546997, -0.16814331710338593, 0.19271445274353027, -0.3029264807701111, -0.7353893518447876, 0.23798523843288422, -0.012679014354944229, -0.1675952821969986, 0.027924522757530212, -0.0007099956274032593, -0.14024797081947327, 0.2118355631828308, 0.12469233572483063, -0.28771716356277466, -0.2155005782842636, 0.0689760223031044, 0.2514442801475525, 0.08795883506536484, -0.027527006343007088, -0.11782296001911163, -0.05401420593261719, 0.26175954937934875, 0.41945627331733704, 0.02817060798406601, -0.04297316446900368, 0.5366613268852234, 0.22599093616008759, 0.1409418135881424, 0.16081532835960388, 0.03406447172164917, 0.2441127449274063, -0.032878272235393524, 0.04781189560890198, 0.3331088423728943, 0.1005692332983017, -0.19796222448349, -0.09774362295866013, 0.4207776188850403, 0.12519247829914093, 0.33272844552993774, -0.08693581819534302, 0.27263152599334717, -0.2567581236362457, 0.09712237119674683, -0.1023765280842781, -0.20689314603805542, -0.07798357307910919, -0.49069228768348694, -0.020364662632346153, -0.2348928302526474, 0.024976573884487152, 0.12153097987174988, 0.433232843875885, 0.19954943656921387, 0.15231838822364807, -0.07605814188718796, -0.22779440879821777, -0.06245691329240799, 0.08356952667236328, -0.11119590699672699, 0.4364541172981262, 0.15620215237140656, 0.03434937447309494, 0.20551878213882446, -0.1461104303598404, -0.09510936588048935, 0.1814318746328354, 0.4817380905151367, -0.08056432753801346, 0.2435985505580902, -0.09375264495611191, -0.11314857751131058, -0.06352292001247406, 0.22185662388801575, 0.0521542951464653, -0.07927441596984863, -0.5283739566802979, 0.23644129931926727, -0.039213575422763824, 0.20111966133117676, -0.21591050922870636, 0.09860137104988098, -0.17114141583442688, -0.7540903091430664, -0.10332182049751282, 0.08215010911226273, -0.14892755448818207, 0.36350131034851074, -0.20498459041118622, 0.2673446834087372, -0.04965019226074219, 0.022340860217809677, 0.036627113819122314, -0.31930795311927795, -0.17085754871368408, -0.14803145825862885, 0.212432861328125, -0.028786323964595795, 0.3443078398704529, 0.38732606172561646, 0.21644319593906403, 0.0731532871723175, -0.4658793807029724, -0.1431509256362915, 0.08147729188203812, 0.9184209108352661, -0.03831903636455536, -0.16736410558223724, -0.33282244205474854, -0.07754012197256088, 0.35460904240608215, -0.2792418897151947, 0.07533099502325058, 0.16676224768161774, 0.05443189665675163, 0.1211799681186676, -0.3318282961845398, -0.14089038968086243, 0.059988729655742645, -0.19813337922096252, -0.13652440905570984, -0.128469780087471, -0.2889368534088135, 0.3429212272167206, 0.1867971271276474, 0.000910299364477396, -0.03509121760725975, -0.0836619883775711, -0.0976049080491066, 0.0677943229675293, 0.3448292016983032, -0.19711115956306458, -0.22511495649814606, 0.0398050956428051, -0.009201247245073318, 0.23852823674678802, -0.033647287636995316, -0.3195250630378723, -0.44392743706703186, 0.20715400576591492, 0.10570232570171356, 0.04399161413311958, 0.16537241637706757, -0.08928772807121277, -0.45938006043434143, 0.11713148653507233, -0.2870641052722931, -0.21910016238689423, 0.3560734987258911, -0.2641611695289612, 0.1047709584236145, -0.13695663213729858, 0.3790748119354248, 0.25724369287490845, 0.6966185569763184, 0.05036573484539986, 0.15829476714134216, -0.029958128929138184, 0.002202507108449936, 0.22478003799915314, 0.07232643663883209, -0.31291282176971436, 0.1803697943687439, 0.03022008389234543, -0.17684489488601685, 0.2460014969110489, 0.11623253673315048, 0.2928943932056427, -0.05784086138010025, -0.3579828143119812, -0.2600938081741333, -0.3655107915401459, -0.1559731662273407, -0.021926455199718475, 0.20306923985481262, 0.14553293585777283, 0.5626994967460632, -0.43488210439682007, -0.08220658451318741, 0.30349376797676086, -0.12146733701229095, -0.026632651686668396, 0.08715612441301346, -0.24013139307498932, -0.37643638253211975, -0.19239941239356995, 0.16943246126174927, -0.12736186385154724, 0.40589168667793274, 0.08941547572612762, 0.2031170129776001, 0.12763595581054688, -0.10067179054021835, 0.29762202501296997, -0.2545890510082245, 0.17823784053325653, 0.1883017122745514, 0.16518791019916534, -0.38481754064559937, -0.16946212947368622, -0.14411640167236328, -0.13515108823776245, 0.26669391989707947, 0.06919863820075989, -0.5115237236022949, -0.13170303404331207, 0.1223713755607605, -0.05088285729289055, -0.24660320580005646, -0.1446668952703476, -0.24619393050670624, -0.2586560845375061, 0.15327651798725128, 0.03809903562068939, 0.150067999958992, 0.39294442534446716, -0.0927802100777626, 0.5734647512435913, -0.11201150715351105, -0.2354331612586975, 0.2397029846906662, -0.0630115196108818, 0.5529723763465881, -0.019410209730267525, 0.0340888686478138, 0.1222648099064827, -0.12650904059410095, -0.20531611144542694, 0.12265793979167938, 0.13564737141132355, -0.3416358530521393, -0.14377635717391968, -0.38328856229782104, 0.5200101733207703, 0.22930550575256348, -0.27531135082244873, 0.1477000117301941, -0.33164411783218384, -0.19775430858135223, -0.010631985031068325, -0.057023223489522934, 0.2516389489173889, -0.04704664275050163, 0.11791633069515228, -0.20572930574417114, 0.5350646376609802, 0.21493282914161682, -0.16246406733989716, 0.4008508622646332, 0.15371489524841309, -0.4334544241428375, 0.149129256606102, 0.3389038145542145, 0.7175227999687195, 0.47811460494995117, -0.038588885217905045, 0.4263070821762085, -0.2586623430252075, 0.11593495309352875, 0.05638105422258377, -0.004118150100111961, -0.20777365565299988, -0.3220457136631012, 0.19190199673175812, 0.011621948331594467, 0.10581927001476288, 0.0006326138973236084, -0.08648237586021423, 0.17898862063884735, -0.20337824523448944, 0.3869847357273102, 0.10234246402978897, 0.2675033211708069, 0.06082533299922943, 0.033773645758628845, -0.10493995249271393, 0.017254754900932312, 0.09077528864145279, -0.11770777404308319, 0.05351453274488449, -0.3840709924697876, 0.031319763511419296, -0.17551341652870178, -0.001668304204940796, 0.052239589393138885, -0.25613781809806824, 0.06429577618837357, 0.11666253209114075, -0.0008834376931190491, 0.11949017643928528, 0.0016816332936286926, 0.5374202728271484, -0.0359356515109539, -0.13394467532634735, 0.2569856345653534, -0.4386560320854187, 0.032488830387592316, 0.17406192421913147, 0.13647954165935516, 0.040622297674417496, -0.05968263000249863, -0.22852128744125366, 0.3244858384132385, 0.058630019426345825, -0.17316657304763794, -0.21005702018737793, -0.25835758447647095, -0.2615671753883362, -0.15216496586799622, -0.21960380673408508, -0.05316720902919769, -0.01927105151116848, -0.1628284901380539, 0.0028899814933538437, -0.12408825755119324, 0.024422870948910713, 0.4010937809944153, -0.10810856521129608, -0.11336589604616165, 0.090379998087883, 0.3428356349468231, -0.23234540224075317, -0.28535181283950806, 0.47271427512168884, -0.3125240206718445, -0.08266724646091461, -0.05053131282329559, 0.17488285899162292, -0.19989421963691711, -0.2814690172672272, 0.2686013877391815, -0.01612759381532669, 0.10396708548069, 0.0345948189496994, 0.4042828679084778, 0.11582820117473602, -0.10111463814973831, -0.0572219155728817, -0.435041218996048, 0.1116831824183464, 0.40854203701019287, -0.2350722700357437, -0.09524242579936981, -0.42583614587783813, 0.1973533183336258, 0.07796765863895416, 0.19759230315685272, -0.21191194653511047, -0.27551352977752686, 0.12485776096582413, -0.1465166211128235, 0.2670939564704895, 0.09461352229118347, 0.045810308307409286, 0.024284735321998596, -0.06313564628362656, 0.08846517652273178, -0.09659973531961441, -0.029773985967040062, -0.2549295723438263, 0.16867117583751678, 0.0313180573284626, 0.33045852184295654, 0.08700192719697952, -0.045147981494665146, -0.1597488820552826, -0.21329493820667267, 0.02330012619495392, 0.18651047348976135, -0.11653611063957214, 0.5392253398895264, 0.10410211980342865, 0.8976359963417053, 0.21349658071994781, -0.05343148857355118, 0.20535001158714294, 0.29135626554489136, -0.0549788735806942, 0.10576950013637543, 0.31329023838043213, 0.13654597103595734, -0.28823018074035645, -0.0891079530119896, -0.3128884434700012, 0.06536609679460526, 0.2927872836589813, -0.10101580619812012, 0.012087833136320114, 0.4501209855079651, 0.02169012650847435, 0.2443929761648178, -0.17398601770401, 0.03329010307788849, -0.3316774070262909, 0.10880004614591599, -0.16152599453926086, 0.15177513659000397, 0.13816121220588684, 0.1890215277671814, 0.037213850766420364, 0.2193833887577057, 0.3896559476852417, -0.18260982632637024, 0.15385645627975464, 0.007175492122769356, 0.24802564084529877, -0.27779656648635864, 0.3476076126098633, 0.15185053646564484, 0.2368542104959488, 0.23643264174461365, 0.2788352370262146, 0.06365495920181274, 0.0487266480922699, 0.441836416721344, 0.15065625309944153, 0.23161688446998596, 0.13681723177433014, -0.028341922909021378, -0.14248895645141602, -0.0037018433213233948, -0.05756441876292229, 0.04733467102050781, -0.0968373566865921, 0.16361939907073975, -0.30070000886917114, 0.21426022052764893, -0.003268185071647167, -0.322829008102417, -0.2563192546367645, -0.24403490126132965, -0.015512660145759583, -0.23929625749588013, -0.5574417114257812, -0.24172210693359375, -0.050631918013095856, -0.11818642914295197, 0.17584913969039917, -0.00519319623708725, 0.24978426098823547, -0.24859504401683807, -0.14419372379779816, 0.26684144139289856, -0.26187995076179504, 0.3737459182739258, 0.5232930183410645, -0.34832867980003357, 0.05877669155597687, -0.10052135586738586, 0.270924836397171, 0.2109977900981903, 0.3054182529449463, 0.23909717798233032, 0.3020240068435669, -0.36684340238571167, -0.23658588528633118, 0.1456976681947708, -0.2033139318227768, 0.11447903513908386, 0.32902881503105164, 0.281485378742218, -0.20714931190013885, 0.20279450714588165, 0.046712279319763184, -0.15567375719547272, 0.1896241456270218, 0.27591702342033386, 0.20000645518302917, -0.4089818000793457, 0.342404842376709, -0.03960157185792923, -0.03229784220457077, 0.12214349955320358, -0.14284560084342957, -0.04273723065853119, -0.2502230107784271, 0.09336288273334503, 0.20452839136123657, -0.023229695856571198, -0.5147498250007629, 0.039631713181734085, 0.029586926102638245, 0.3810945451259613, 0.0585155263543129, 0.012301497161388397, -0.49149006605148315, -0.01013452559709549, -0.6506743431091309, -0.0930294319987297, 0.2496902048587799, -0.14954893290996552, 0.14566291868686676, 0.16611377894878387, -0.07593607157468796, 0.0699998140335083, 0.07189121842384338, 0.5094345808029175, 0.17520929872989655, -0.0033009424805641174, -0.40875890851020813, -0.1453213393688202, -0.20161311328411102, -0.2168283611536026, 0.23219725489616394, -0.17590680718421936, -0.009785067290067673, -0.39744386076927185, -0.015004564076662064, 0.06006203219294548, 0.003353103995323181, 0.16454264521598816, 0.6511231660842896, 0.18738128244876862, 0.02063021808862686, 0.7741087675094604, 0.013642385601997375, 0.029988909140229225, -0.4132039546966553, -0.19022955000400543, -0.22279438376426697, -0.09533347934484482, -0.13628509640693665, 0.33835259079933167, -0.015167389065027237, -0.4483850598335266, -0.039370715618133545, 0.21139205992221832, 0.31707608699798584, -0.4165574014186859, -0.019399717450141907, 0.3332817554473877, -0.19061332941055298, -0.09212169796228409, 0.02344278246164322, 0.3206248879432678, -0.09957028925418854, 0.23113247752189636, 0.054653823375701904, -0.2851712703704834, 0.2310819774866104, -0.34076517820358276, -0.34363478422164917, -0.28627532720565796, 0.30496513843536377, -0.09929270297288895, -0.17290033400058746, -0.6666843891143799, -0.14167040586471558, 0.28235068917274475, 0.11225994676351547, -0.03394212946295738, 0.2595967650413513, -0.001544194296002388, 0.050624582916498184, -0.028896361589431763, 0.014309875667095184, -0.1536702811717987, -0.11830083280801773, 0.08074483275413513, -0.11492155492305756 ]
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.05162966623902321, -0.5501684546470642, 0.08731426298618317, 0.20385704934597015, 0.46819043159484863, -0.06437960267066956, 0.17485928535461426, -0.19538798928260803, 0.34517553448677063, 0.28289735317230225, 0.06791256368160248, 0.44621676206588745, 0.17837204039096832, 0.02425527013838291, -0.018203120678663254, 0.061698056757450104, 0.10580431669950485, -0.3587125837802887, -0.0846237987279892, -0.2987220287322998, -0.40688377618789673, 0.010205199010670185, -0.40486276149749756, 0.020255327224731445, -0.20062288641929626, 0.06136380136013031, -0.03478535637259483, -0.17003685235977173, 0.0016802577301859856, -0.003901716321706772, 0.3077569007873535, 0.12656521797180176, -0.09706734865903854, 0.36638689041137695, -0.00012357808009255677, -0.0986127108335495, 0.452625572681427, -0.1368989199399948, -0.03718136250972748, -0.011109232902526855, -0.176451176404953, 0.014776406809687614, -0.12447772175073624, -0.35091716051101685, 0.19185540080070496, 0.10585090517997742, -0.1739196926355362, -0.38249269127845764, 0.23381704092025757, 0.36850297451019287, 0.06368295103311539, 0.15738630294799805, -0.20920811593532562, -0.17202095687389374, -0.29599615931510925, -0.10444577038288116, -0.18503902852535248, 0.4786292016506195, -0.6841751337051392, -0.07330294698476791, -0.16761627793312073, 0.09176990389823914, 0.15016208589076996, -0.012652534991502762, 0.7468210458755493, 0.03993167355656624, 0.3019670844078064, 0.11366303265094757, 0.1792101263999939, -0.1155981495976448, 0.06793665885925293, -0.3869565427303314, -0.40357497334480286, -0.14624100923538208, 0.09400846064090729, -0.76938396692276, 0.10778280347585678, 0.014416707679629326, -0.22673597931861877, -0.09297265112400055, -0.10468219220638275, -0.116883285343647, -0.3561753034591675, 0.07649867236614227, -0.0503024123609066, 0.6123220920562744, 0.0015165875665843487, 0.0829186737537384, 0.1927204132080078, 0.1838296353816986, 0.040633901953697205, -0.29307782649993896, 0.028406087309122086, 0.07169141620397568, -0.2631751596927643, 0.21082043647766113, -0.039530716836452484, -0.06361667066812515, 0.27936896681785583, 0.05149959772825241, -0.07608576864004135, 0.04378318041563034, 0.4305036664009094, 0.05325872451066971, 0.19740816950798035, 0.5313014388084412, 0.4781777560710907, 0.33009472489356995, -0.01640075445175171, 0.07755768299102783, -0.19735869765281677, -0.24801978468894958, 0.2715126574039459, -0.005865264683961868, 0.24951289594173431, 0.16649532318115234, 0.019845623522996902, -0.07760163396596909, -0.298347145318985, -0.08159968256950378, 0.04883623868227005, -0.013127601705491543, 0.03460685908794403, 0.15964454412460327, -0.04791977256536484, 0.34199488162994385, 0.058227576315402985, 0.36950069665908813, -0.11243392527103424, -0.015164677985012531, -0.2224205732345581, 0.1949930489063263, -0.4361763298511505, 0.14417040348052979, -0.2022401988506317, -0.12393547594547272, 0.5087718963623047, -0.0023838961496949196, 0.6064444184303284, -0.4638637900352478, -0.09306445717811584, 0.03858204558491707, -0.01924063265323639, -0.012211587280035019, -0.4288243055343628, 0.24125511944293976, 0.03379887342453003, 0.06149902194738388, 0.04386202245950699, -0.016410313546657562, -0.32455480098724365, -0.08430211246013641, 0.48188284039497375, 0.0413154661655426, -0.29566502571105957, -0.1328897774219513, -0.18590807914733887, 0.21786201000213623, 0.02084720879793167, 0.11415903270244598, 0.036766670644283295, -0.14536906778812408, -0.5320342183113098, -0.2027048021554947, 0.7653903365135193, 0.06728962808847427, 0.12443558871746063, -0.2514534592628479, -0.13326720893383026, 0.08056777715682983, -0.0005602911114692688, 0.05522547662258148, 0.032728515565395355, 0.27925437688827515, -0.04574890807271004, 0.062303945422172546, 0.24063456058502197, -0.6767408847808838, -0.4408140778541565, 0.025120969861745834, 0.04600999504327774, -0.033232681453228, 0.20002350211143494, -0.17513394355773926, 0.35213202238082886, -0.0047272611409425735, 0.1999824494123459, 0.4301861524581909, -0.1823693960905075, -0.06753619760274887, -0.4210839867591858, -0.04798217862844467, 0.048952437937259674, -0.11043259501457214, 0.42577648162841797, 0.06625078618526459, 0.08449672162532806, 0.2618038058280945, 0.03608320280909538, 0.19154797494411469, -0.1473138928413391, 0.049512945115566254, 0.07015590369701385, -0.353040874004364, 0.08565213531255722, 0.055506423115730286, -0.14571380615234375, 0.10352598875761032, -0.1434565782546997, -0.16814331710338593, 0.19271445274353027, -0.3029264807701111, -0.7353893518447876, 0.23798523843288422, -0.012679014354944229, -0.1675952821969986, 0.027924522757530212, -0.0007099956274032593, -0.14024797081947327, 0.2118355631828308, 0.12469233572483063, -0.28771716356277466, -0.2155005782842636, 0.0689760223031044, 0.2514442801475525, 0.08795883506536484, -0.027527006343007088, -0.11782296001911163, -0.05401420593261719, 0.26175954937934875, 0.41945627331733704, 0.02817060798406601, -0.04297316446900368, 0.5366613268852234, 0.22599093616008759, 0.1409418135881424, 0.16081532835960388, 0.03406447172164917, 0.2441127449274063, -0.032878272235393524, 0.04781189560890198, 0.3331088423728943, 0.1005692332983017, -0.19796222448349, -0.09774362295866013, 0.4207776188850403, 0.12519247829914093, 0.33272844552993774, -0.08693581819534302, 0.27263152599334717, -0.2567581236362457, 0.09712237119674683, -0.1023765280842781, -0.20689314603805542, -0.07798357307910919, -0.49069228768348694, -0.020364662632346153, -0.2348928302526474, 0.024976573884487152, 0.12153097987174988, 0.433232843875885, 0.19954943656921387, 0.15231838822364807, -0.07605814188718796, -0.22779440879821777, -0.06245691329240799, 0.08356952667236328, -0.11119590699672699, 0.4364541172981262, 0.15620215237140656, 0.03434937447309494, 0.20551878213882446, -0.1461104303598404, -0.09510936588048935, 0.1814318746328354, 0.4817380905151367, -0.08056432753801346, 0.2435985505580902, -0.09375264495611191, -0.11314857751131058, -0.06352292001247406, 0.22185662388801575, 0.0521542951464653, -0.07927441596984863, -0.5283739566802979, 0.23644129931926727, -0.039213575422763824, 0.20111966133117676, -0.21591050922870636, 0.09860137104988098, -0.17114141583442688, -0.7540903091430664, -0.10332182049751282, 0.08215010911226273, -0.14892755448818207, 0.36350131034851074, -0.20498459041118622, 0.2673446834087372, -0.04965019226074219, 0.022340860217809677, 0.036627113819122314, -0.31930795311927795, -0.17085754871368408, -0.14803145825862885, 0.212432861328125, -0.028786323964595795, 0.3443078398704529, 0.38732606172561646, 0.21644319593906403, 0.0731532871723175, -0.4658793807029724, -0.1431509256362915, 0.08147729188203812, 0.9184209108352661, -0.03831903636455536, -0.16736410558223724, -0.33282244205474854, -0.07754012197256088, 0.35460904240608215, -0.2792418897151947, 0.07533099502325058, 0.16676224768161774, 0.05443189665675163, 0.1211799681186676, -0.3318282961845398, -0.14089038968086243, 0.059988729655742645, -0.19813337922096252, -0.13652440905570984, -0.128469780087471, -0.2889368534088135, 0.3429212272167206, 0.1867971271276474, 0.000910299364477396, -0.03509121760725975, -0.0836619883775711, -0.0976049080491066, 0.0677943229675293, 0.3448292016983032, -0.19711115956306458, -0.22511495649814606, 0.0398050956428051, -0.009201247245073318, 0.23852823674678802, -0.033647287636995316, -0.3195250630378723, -0.44392743706703186, 0.20715400576591492, 0.10570232570171356, 0.04399161413311958, 0.16537241637706757, -0.08928772807121277, -0.45938006043434143, 0.11713148653507233, -0.2870641052722931, -0.21910016238689423, 0.3560734987258911, -0.2641611695289612, 0.1047709584236145, -0.13695663213729858, 0.3790748119354248, 0.25724369287490845, 0.6966185569763184, 0.05036573484539986, 0.15829476714134216, -0.029958128929138184, 0.002202507108449936, 0.22478003799915314, 0.07232643663883209, -0.31291282176971436, 0.1803697943687439, 0.03022008389234543, -0.17684489488601685, 0.2460014969110489, 0.11623253673315048, 0.2928943932056427, -0.05784086138010025, -0.3579828143119812, -0.2600938081741333, -0.3655107915401459, -0.1559731662273407, -0.021926455199718475, 0.20306923985481262, 0.14553293585777283, 0.5626994967460632, -0.43488210439682007, -0.08220658451318741, 0.30349376797676086, -0.12146733701229095, -0.026632651686668396, 0.08715612441301346, -0.24013139307498932, -0.37643638253211975, -0.19239941239356995, 0.16943246126174927, -0.12736186385154724, 0.40589168667793274, 0.08941547572612762, 0.2031170129776001, 0.12763595581054688, -0.10067179054021835, 0.29762202501296997, -0.2545890510082245, 0.17823784053325653, 0.1883017122745514, 0.16518791019916534, -0.38481754064559937, -0.16946212947368622, -0.14411640167236328, -0.13515108823776245, 0.26669391989707947, 0.06919863820075989, -0.5115237236022949, -0.13170303404331207, 0.1223713755607605, -0.05088285729289055, -0.24660320580005646, -0.1446668952703476, -0.24619393050670624, -0.2586560845375061, 0.15327651798725128, 0.03809903562068939, 0.150067999958992, 0.39294442534446716, -0.0927802100777626, 0.5734647512435913, -0.11201150715351105, -0.2354331612586975, 0.2397029846906662, -0.0630115196108818, 0.5529723763465881, -0.019410209730267525, 0.0340888686478138, 0.1222648099064827, -0.12650904059410095, -0.20531611144542694, 0.12265793979167938, 0.13564737141132355, -0.3416358530521393, -0.14377635717391968, -0.38328856229782104, 0.5200101733207703, 0.22930550575256348, -0.27531135082244873, 0.1477000117301941, -0.33164411783218384, -0.19775430858135223, -0.010631985031068325, -0.057023223489522934, 0.2516389489173889, -0.04704664275050163, 0.11791633069515228, -0.20572930574417114, 0.5350646376609802, 0.21493282914161682, -0.16246406733989716, 0.4008508622646332, 0.15371489524841309, -0.4334544241428375, 0.149129256606102, 0.3389038145542145, 0.7175227999687195, 0.47811460494995117, -0.038588885217905045, 0.4263070821762085, -0.2586623430252075, 0.11593495309352875, 0.05638105422258377, -0.004118150100111961, -0.20777365565299988, -0.3220457136631012, 0.19190199673175812, 0.011621948331594467, 0.10581927001476288, 0.0006326138973236084, -0.08648237586021423, 0.17898862063884735, -0.20337824523448944, 0.3869847357273102, 0.10234246402978897, 0.2675033211708069, 0.06082533299922943, 0.033773645758628845, -0.10493995249271393, 0.017254754900932312, 0.09077528864145279, -0.11770777404308319, 0.05351453274488449, -0.3840709924697876, 0.031319763511419296, -0.17551341652870178, -0.001668304204940796, 0.052239589393138885, -0.25613781809806824, 0.06429577618837357, 0.11666253209114075, -0.0008834376931190491, 0.11949017643928528, 0.0016816332936286926, 0.5374202728271484, -0.0359356515109539, -0.13394467532634735, 0.2569856345653534, -0.4386560320854187, 0.032488830387592316, 0.17406192421913147, 0.13647954165935516, 0.040622297674417496, -0.05968263000249863, -0.22852128744125366, 0.3244858384132385, 0.058630019426345825, -0.17316657304763794, -0.21005702018737793, -0.25835758447647095, -0.2615671753883362, -0.15216496586799622, -0.21960380673408508, -0.05316720902919769, -0.01927105151116848, -0.1628284901380539, 0.0028899814933538437, -0.12408825755119324, 0.024422870948910713, 0.4010937809944153, -0.10810856521129608, -0.11336589604616165, 0.090379998087883, 0.3428356349468231, -0.23234540224075317, -0.28535181283950806, 0.47271427512168884, -0.3125240206718445, -0.08266724646091461, -0.05053131282329559, 0.17488285899162292, -0.19989421963691711, -0.2814690172672272, 0.2686013877391815, -0.01612759381532669, 0.10396708548069, 0.0345948189496994, 0.4042828679084778, 0.11582820117473602, -0.10111463814973831, -0.0572219155728817, -0.435041218996048, 0.1116831824183464, 0.40854203701019287, -0.2350722700357437, -0.09524242579936981, -0.42583614587783813, 0.1973533183336258, 0.07796765863895416, 0.19759230315685272, -0.21191194653511047, -0.27551352977752686, 0.12485776096582413, -0.1465166211128235, 0.2670939564704895, 0.09461352229118347, 0.045810308307409286, 0.024284735321998596, -0.06313564628362656, 0.08846517652273178, -0.09659973531961441, -0.029773985967040062, -0.2549295723438263, 0.16867117583751678, 0.0313180573284626, 0.33045852184295654, 0.08700192719697952, -0.045147981494665146, -0.1597488820552826, -0.21329493820667267, 0.02330012619495392, 0.18651047348976135, -0.11653611063957214, 0.5392253398895264, 0.10410211980342865, 0.8976359963417053, 0.21349658071994781, -0.05343148857355118, 0.20535001158714294, 0.29135626554489136, -0.0549788735806942, 0.10576950013637543, 0.31329023838043213, 0.13654597103595734, -0.28823018074035645, -0.0891079530119896, -0.3128884434700012, 0.06536609679460526, 0.2927872836589813, -0.10101580619812012, 0.012087833136320114, 0.4501209855079651, 0.02169012650847435, 0.2443929761648178, -0.17398601770401, 0.03329010307788849, -0.3316774070262909, 0.10880004614591599, -0.16152599453926086, 0.15177513659000397, 0.13816121220588684, 0.1890215277671814, 0.037213850766420364, 0.2193833887577057, 0.3896559476852417, -0.18260982632637024, 0.15385645627975464, 0.007175492122769356, 0.24802564084529877, -0.27779656648635864, 0.3476076126098633, 0.15185053646564484, 0.2368542104959488, 0.23643264174461365, 0.2788352370262146, 0.06365495920181274, 0.0487266480922699, 0.441836416721344, 0.15065625309944153, 0.23161688446998596, 0.13681723177433014, -0.028341922909021378, -0.14248895645141602, -0.0037018433213233948, -0.05756441876292229, 0.04733467102050781, -0.0968373566865921, 0.16361939907073975, -0.30070000886917114, 0.21426022052764893, -0.003268185071647167, -0.322829008102417, -0.2563192546367645, -0.24403490126132965, -0.015512660145759583, -0.23929625749588013, -0.5574417114257812, -0.24172210693359375, -0.050631918013095856, -0.11818642914295197, 0.17584913969039917, -0.00519319623708725, 0.24978426098823547, -0.24859504401683807, -0.14419372379779816, 0.26684144139289856, -0.26187995076179504, 0.3737459182739258, 0.5232930183410645, -0.34832867980003357, 0.05877669155597687, -0.10052135586738586, 0.270924836397171, 0.2109977900981903, 0.3054182529449463, 0.23909717798233032, 0.3020240068435669, -0.36684340238571167, -0.23658588528633118, 0.1456976681947708, -0.2033139318227768, 0.11447903513908386, 0.32902881503105164, 0.281485378742218, -0.20714931190013885, 0.20279450714588165, 0.046712279319763184, -0.15567375719547272, 0.1896241456270218, 0.27591702342033386, 0.20000645518302917, -0.4089818000793457, 0.342404842376709, -0.03960157185792923, -0.03229784220457077, 0.12214349955320358, -0.14284560084342957, -0.04273723065853119, -0.2502230107784271, 0.09336288273334503, 0.20452839136123657, -0.023229695856571198, -0.5147498250007629, 0.039631713181734085, 0.029586926102638245, 0.3810945451259613, 0.0585155263543129, 0.012301497161388397, -0.49149006605148315, -0.01013452559709549, -0.6506743431091309, -0.0930294319987297, 0.2496902048587799, -0.14954893290996552, 0.14566291868686676, 0.16611377894878387, -0.07593607157468796, 0.0699998140335083, 0.07189121842384338, 0.5094345808029175, 0.17520929872989655, -0.0033009424805641174, -0.40875890851020813, -0.1453213393688202, -0.20161311328411102, -0.2168283611536026, 0.23219725489616394, -0.17590680718421936, -0.009785067290067673, -0.39744386076927185, -0.015004564076662064, 0.06006203219294548, 0.003353103995323181, 0.16454264521598816, 0.6511231660842896, 0.18738128244876862, 0.02063021808862686, 0.7741087675094604, 0.013642385601997375, 0.029988909140229225, -0.4132039546966553, -0.19022955000400543, -0.22279438376426697, -0.09533347934484482, -0.13628509640693665, 0.33835259079933167, -0.015167389065027237, -0.4483850598335266, -0.039370715618133545, 0.21139205992221832, 0.31707608699798584, -0.4165574014186859, -0.019399717450141907, 0.3332817554473877, -0.19061332941055298, -0.09212169796228409, 0.02344278246164322, 0.3206248879432678, -0.09957028925418854, 0.23113247752189636, 0.054653823375701904, -0.2851712703704834, 0.2310819774866104, -0.34076517820358276, -0.34363478422164917, -0.28627532720565796, 0.30496513843536377, -0.09929270297288895, -0.17290033400058746, -0.6666843891143799, -0.14167040586471558, 0.28235068917274475, 0.11225994676351547, -0.03394212946295738, 0.2595967650413513, -0.001544194296002388, 0.050624582916498184, -0.028896361589431763, 0.014309875667095184, -0.1536702811717987, -0.11830083280801773, 0.08074483275413513, -0.11492155492305756 ]
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.24204759299755096, -0.3245055377483368, -0.03341708332300186, -0.04402045160531998, -0.09772257506847382, -0.08601107448339462, 0.402295857667923, 0.11040088534355164, -0.012091586366295815, 0.3323681354522705, -0.03994428366422653, 0.27644553780555725, -0.1313701719045639, 0.22048445045948029, -0.2396436333656311, -0.08105559647083282, 0.14075139164924622, -0.12439212203025818, 0.43353748321533203, 0.18165521323680878, -0.25267887115478516, 0.3090565502643585, -0.1334243267774582, -0.2920534014701843, -0.14436648786067963, -0.11162000149488449, 0.1702490895986557, 0.16937384009361267, 0.18139950931072235, -0.20507335662841797, -0.2966965436935425, 0.14663556218147278, -0.1574241816997528, -0.06633783131837845, -0.00012120659812353551, -0.016575053334236145, 0.3360559940338135, -0.025188488885760307, 0.16749730706214905, 0.02981678396463394, -0.26107147336006165, -0.26579901576042175, -0.11181563138961792, -0.36796069145202637, 0.15891817212104797, 0.25733208656311035, 0.07961025834083557, -0.10901205241680145, 0.2735993266105652, 0.182412251830101, 0.026637805625796318, -0.038130611181259155, 0.27318787574768066, 0.18717370927333832, -0.12316853553056717, -0.05842672288417816, -0.13419891893863678, -0.13731050491333008, 0.1717836558818817, 0.2883937656879425, 0.1722884178161621, 0.2656446397304535, -0.07141014188528061, -0.02921253815293312, -0.04930850863456726, 0.07902510464191437, 0.06767401099205017, -0.29995375871658325, -0.07281090319156647, 0.16272644698619843, -0.10094799846410751, -0.09414055198431015, -0.3561585247516632, -0.2951520085334778, -0.11133620142936707, -0.5862666964530945, -0.09102072566747665, -0.056989580392837524, -0.004695326089859009, 0.001620013266801834, -0.2583360970020294, -0.13528993725776672, -0.11159677803516388, -0.09750278294086456, 0.05597352236509323, -0.04923805594444275, 0.1559401899576187, 0.23136112093925476, 0.42390745878219604, -0.11601640284061432, -0.2813231348991394, -0.03675568103790283, 0.1901647001504898, -0.09958448261022568, -0.3182109296321869, -0.23319923877716064, 0.06707191467285156, -0.2741042673587799, -0.19163155555725098, 0.24053220450878143, -0.06529159098863602, 0.3501674234867096, 0.1451139897108078, 0.2800198197364807, -0.008260123431682587, -0.36760252714157104, 0.10556952655315399, -0.20280279219150543, 0.08662264794111252, 0.08546911180019379, -0.0438372828066349, 0.014223696663975716, 0.10419696569442749, -0.18642055988311768, 0.2379487305879593, 0.061043787747621536, -0.2247464805841446, 0.013462547212839127, -0.13269107043743134, 0.12457828968763351, 0.04091551899909973, -0.1848435252904892, -0.10385516285896301, 0.11811888217926025, 0.12111478298902512, 0.4554590880870819, -0.28972774744033813, 0.1267378032207489, -0.1991177797317505, 0.08457987010478973, -0.00600288575515151, 0.17520736157894135, -0.12121334671974182, 0.30382803082466125, -0.09456570446491241, 0.33635255694389343, -0.16603249311447144, -0.18130581080913544, 0.42674803733825684, 0.014327969402074814, 0.007167194038629532, -0.16150827705860138, -0.027764752507209778, 0.3133516013622284, -0.05258144438266754, -0.026376374065876007, -0.002702370285987854, -0.6090402007102966, -0.5215035080909729, 0.08724141120910645, -0.42473304271698, -0.561714231967926, 0.0674498975276947, -0.010556771419942379, 0.04133128374814987, 0.053050696849823, -0.7100692987442017, 0.19128870964050293, 0.14685168862342834, 0.01725035533308983, -0.29965394735336304, -0.031364694237709045, -0.3974219560623169, -0.3379460871219635, 0.004092086106538773, 0.18467573821544647, -0.03454955294728279, 0.1666763573884964, -0.10573069751262665, 0.1573311686515808, 0.49119988083839417, 0.3862869441509247, 0.04172670841217041, 0.15123164653778076, 0.13841459155082703, 0.4020535945892334, 0.12160906195640564, -0.2359776794910431, -0.35324305295944214, 0.3436238467693329, -0.1950226128101349, 0.1283872127532959, 0.5897715091705322, 0.16199377179145813, 0.1941804140806198, -0.19638831913471222, 0.5543395280838013, 0.08413735032081604, -0.04598160833120346, 0.21911168098449707, -0.2883826196193695, -0.019076133146882057, -0.6522366404533386, 0.2896903157234192, 0.06808621436357498, 0.08453656733036041, 0.19111895561218262, -0.274148553609848, 0.27901917695999146, -0.12537702918052673, 0.026949536055326462, 0.11802390217781067, 0.21631258726119995, -0.11524060368537903, -0.26343297958374023, 0.10628395527601242, -0.09533364325761795, 0.33886247873306274, 0.24822303652763367, 0.110420823097229, -0.09170642495155334, -0.16062432527542114, 0.24626949429512024, 0.17965783178806305, 0.09668223559856415, 0.1453397125005722, -0.05407888442277908, -0.2201894223690033, -0.14855827391147614, -0.09626369178295135, -0.06842482089996338, 0.593616247177124, 0.16743557155132294, -0.07752172648906708, -0.41221651434898376, 0.17720292508602142, 0.09011028707027435, -0.1776474565267563, 0.016718149185180664, 0.1800408661365509, 0.08307614177465439, -0.18112418055534363, 0.20299410820007324, 0.08585266768932343, 0.23116125166416168, 0.17593513429164886, -0.02017827332019806, 0.3995897173881531, 0.05849597603082657, 0.19842326641082764, 0.036102890968322754, -0.22410596907138824, 0.0027488498017191887, -0.25176095962524414, -0.16874489188194275, 0.7329328656196594, 0.23399841785430908, 0.5969921350479126, 0.17844653129577637, -0.10981567203998566, 0.29740825295448303, 0.00585627555847168, 0.003261243924498558, -0.09489326179027557, 0.10273914039134979, 0.433377206325531, -0.4786275029182434, -0.2609359920024872, -0.3565048575401306, 0.4948638379573822, 0.3255593180656433, 0.16140629351139069, -0.25803500413894653, 0.29643285274505615, 0.3624887466430664, 0.019534774124622345, 0.16270650923252106, 0.3779310882091522, 0.6566367745399475, 0.22483089566230774, -0.134400874376297, -0.06227334588766098, 0.04528762772679329, -0.3232687711715698, 0.05037620663642883, 0.09435403347015381, 0.3693329691886902, 0.03944318741559982, 0.2078123241662979, 0.015268602408468723, 0.04428385943174362, -0.5829305648803711, -0.06707404553890228, 0.03214281424880028, -0.14752967655658722, 0.16563671827316284, -0.1907571405172348, 0.5931070446968079, 0.06945205479860306, 0.0002796342596411705, 0.19941546022891998, -0.4266071021556854, -0.018970243632793427, 0.5152559280395508, -0.15105773508548737, -0.1607409566640854, 0.14707587659358978, 0.05440182983875275, -0.38486748933792114, -0.33046260476112366, -0.26152628660202026, -0.020019952207803726, 0.195440411567688, -0.08818952739238739, 0.3558397889137268, -0.06678397953510284, 0.23893609642982483, -0.004679088480770588, 0.04582081362605095, 0.025941547006368637, -0.18938925862312317, -0.04888401925563812, -0.15145984292030334, 0.17161615192890167, -0.020606793463230133, -0.16444791853427887, -0.0581386536359787, -0.2877839505672455, 0.2799786329269409, 0.11378210783004761, -0.0842137262225151, 0.22838526964187622, -0.2359648048877716, -0.16185873746871948, 0.15693534910678864, 0.08270526677370071, -0.25319990515708923, -0.29115286469459534, 0.5311346054077148, 0.1381751000881195, 0.3013710379600525, -0.4351005256175995, 0.17384852468967438, -0.16553400456905365, 0.020321596413850784, 0.054014332592487335, 0.05094127357006073, -0.4110967218875885, 0.3229978382587433, -0.0502161867916584, -0.09402382373809814, -0.1275964230298996, -0.019810819998383522, 0.18177518248558044, 0.12512679398059845, -0.23384904861450195, -0.3862811326980591, -0.20700253546237946, 0.10832305252552032, -0.01940418779850006, -0.20677489042282104, 0.44289320707321167, 0.18686777353286743, -0.1519828885793686, 0.13704338669776917, -0.11708076298236847, 0.17738011479377747, -0.1496584713459015, -0.19701829552650452, -0.04743414372205734, 0.5124171376228333, 0.19802923500537872, 0.6017040610313416, 0.2563299238681793, -0.05576491728425026, 0.28041690587997437, 0.12766844034194946, -0.18448294699192047, -0.1950065791606903, -0.13906118273735046, -0.017240485176444054, -0.1265529990196228, 0.033510517328977585, -0.051507994532585144, 0.027429472655057907, -0.44362691044807434, -0.03786814212799072, 0.15971876680850983, -0.3875322937965393, -0.35006198287010193, 0.2630932927131653, 0.20340554416179657, -0.16242918372154236, -0.12105509638786316, -0.21431240439414978, -0.23551037907600403, 0.049195051193237305, -0.25178036093711853, 0.4220288395881653, 0.14401012659072876, -0.3891441524028778, -0.3714800477027893, -0.461039274930954, -0.6336143016815186, 0.45339542627334595, 0.10177738219499588, 0.1259106695652008, 0.07991184294223785, -0.12999635934829712, 0.1769382357597351, -0.47401317954063416, 0.42306452989578247, -0.27889129519462585, -0.3419281244277954, 0.4411659836769104, -0.2057158499956131, -0.12369630485773087, -0.016587939113378525, 0.019872326403856277, 0.2513076364994049, 0.42589232325553894, 0.7600973844528198, -0.36086195707321167, -0.1523105502128601, -0.020907610654830933, -0.28203028440475464, -0.11592251062393188, -0.3202495574951172, -0.1753614991903305, -0.32288867235183716, -0.46661531925201416, 0.11010198295116425, 0.10170715302228928, 0.4080095887184143, -0.005739931482821703, -0.08363813161849976, -0.07339372485876083, -0.20061150193214417, 0.3292170763015747, -0.13133801519870758, -0.12549066543579102, 0.022170566022396088, 0.24929699301719666, -0.4836690127849579, 0.06716809421777725, 0.2951049208641052, 0.20293782651424408, -0.013853110373020172, -0.09985800087451935, -0.13867446780204773, 0.15347228944301605, 0.393867164850235, 0.258635938167572, 0.04214779660105705, 0.14900106191635132, -0.2551932632923126, 0.6260353922843933, -0.04865238070487976, 0.014114804565906525, -0.025326700881123543, 0.15288634598255157, -0.21881969273090363, 0.09562065452337265, 0.38785484433174133, 0.11292654275894165, -0.09570644050836563, 0.017812568694353104, 0.16870805621147156, -0.06754732877016068, 0.1491483747959137, 0.22514158487319946, 0.9898102879524231, -0.300015926361084, 0.13465121388435364, -0.1427125632762909, 0.02963598072528839, -0.060961488634347916, -0.5919108390808105, 0.13420432806015015, -0.06597109884023666, -0.133182555437088, 0.08681675791740417, -0.04254914075136185, 0.21607553958892822, 0.37805259227752686, -0.0626920685172081, 0.31772005558013916, 0.4126949906349182, -0.4591324031352997, -0.08937417715787888, 0.34142225980758667, -0.21012234687805176, -0.5266342759132385, -0.06002938747406006, -0.02112066000699997, 0.263619601726532, -0.4082714021205902, 0.008906140923500061, -0.12394087016582489, -0.11021313071250916, 0.08266227692365646, -0.30391258001327515, -0.08076518774032593, 0.14312855899333954, 0.17467674612998962, 0.11770117282867432, -0.12860779464244843, 0.004805503413081169, 0.1438341736793518, 0.30513447523117065, -0.01940208300948143, -0.06410025805234909, -0.15035094320774078, -0.09032688289880753, -0.06496687233448029, 0.11516661196947098, -0.498392254114151, 0.3140546977519989, -0.2099173367023468, -0.17600613832473755, -0.1197834387421608, 0.1505506932735443, -0.5108477473258972, -0.10430338978767395, 0.24407567083835602, 0.2966718077659607, 0.2887219488620758, -0.21086345613002777, 0.3275492191314697, -0.40234676003456116, -0.2975880801677704, -0.007566498592495918, 0.27863502502441406, -0.1586083322763443, 0.5502766370773315, -0.5499788522720337, -0.1529865264892578, 0.03825635835528374, 0.1312534660100937, 0.14653821289539337, -0.06245030462741852, 0.0038702115416526794, -0.09766310453414917, -0.2169625461101532, -0.09718453139066696, 0.13124936819076538, -0.0407387800514698, 0.05533771961927414, 0.10163069516420364, -0.14360468089580536, -0.1815689504146576, 0.06397032737731934, -0.1180485188961029, -0.08771441876888275, -0.07253802567720413, -0.09360511600971222, -0.309911847114563, -0.2076794058084488, 0.135159432888031, -0.17026671767234802, -0.04608939215540886, -0.12751123309135437, 0.1745937317609787, -0.26505526900291443, 0.2505458891391754, -0.17618702352046967, 0.051884301006793976, -0.2666458785533905, 0.053145214915275574, 0.2940180003643036, -0.11344067007303238, 0.10167211294174194, 0.1896573007106781, 0.08798006922006607, 0.26873689889907837, -0.20806849002838135, -0.13120204210281372, 0.11382335424423218, 0.19188351929187775, -0.06353192776441574, 0.0977945402264595, 0.19164343178272247, 0.24870596826076508, -0.35943862795829773, -0.170164093375206, 0.060947153717279434, 0.006894197314977646, -0.27174603939056396, -0.1422349214553833, 0.7559414505958557, 0.06704328954219818, 0.0869179517030716, 0.1275443434715271, 0.037001222372055054, 0.6623560786247253, -0.2667348384857178, 0.2846900522708893, -0.0016674983780831099, -0.17134317755699158, 0.02108500339090824, 0.10791201144456863, 0.2110741138458252, 0.15106350183486938, 0.4081350564956665, -0.005455367267131805, -0.24495188891887665, -0.18771372735500336, 0.25108247995376587, 0.011266548186540604, -0.019619932398200035, 0.02640843577682972, 0.1363801658153534, 0.09551643580198288, 0.06549035757780075, -0.3602897524833679, 0.22025731205940247, -0.09147609025239944, 0.19218315184116364, 0.35537055134773254, 0.07955130934715271, 0.13644976913928986, -0.10066071152687073, 0.006425719708204269, 0.13846156001091003, -0.22237391769886017, -0.4793306291103363, -0.4439972937107086, 0.16286124289035797, 0.1356545090675354, 0.3500678837299347, -0.04459671303629875, 0.21382667124271393, 0.13912071287631989, -0.09870067983865738, 0.9213712811470032, 0.23343560099601746, 0.21349374949932098, -0.015367880463600159, -0.10056784749031067, 0.08202019333839417, 0.12423238158226013, 0.09118186682462692, 0.38820376992225647, 0.129515141248703, 0.24984410405158997, 0.02214808762073517, 0.05998901650309563, -0.24476054310798645, 0.4115554988384247, 0.1417621374130249, -0.4825485944747925, 0.13492871820926666, 0.02694082260131836, -0.15173561871051788, 0.04849839583039284, -0.04392430558800697, 0.1780872493982315, 0.47963476181030273, 0.18045508861541748, 0.4221510887145996, 0.06080258637666702, -0.15454164147377014, -0.1378026306629181, 0.4936310648918152, -0.28339242935180664, 0.060276471078395844, 0.2513501048088074, -0.2618722915649414, -0.06398500502109528, -0.0025817733258008957, 0.3616582453250885, 0.001284714788198471, 0.06632915139198303, 0.22029194235801697, -0.11019636690616608, 0.04518822580575943, -0.05297132581472397, 0.3104569613933563, 0.03578166291117668, 0.2876114845275879, 0.13120779395103455, 0.029160520061850548, -0.17186543345451355, 0.0844171792268753, -0.04816794767975807, 0.09338550269603729, -0.048811834305524826, 0.40578094124794006, 0.07559256255626678, -0.5193169116973877, 0.17987413704395294, 0.2910905182361603, -0.48332417011260986, -0.26640766859054565, 0.1483108252286911, -0.642767071723938, 0.015082452446222305, 0.07116212695837021, 0.02863595262169838, -0.07111652195453644, 0.39171668887138367, -0.42998263239860535, 0.42326828837394714, -0.39513328671455383, -0.07317664474248886, -0.16552746295928955, -0.07227969914674759, -0.18217195570468903, 0.14099450409412384, 0.02467217668890953, 0.4999508857727051, 0.25925713777542114, 0.4662973880767822, -0.058702558279037476, 0.05911455303430557, -0.3290480971336365, 0.5914947986602783, -0.35106322169303894, 0.4751753807067871, 0.390549898147583, -0.2426527440547943, 0.06152763217687607, -0.28556275367736816, 0.40053790807724, 0.09334255754947662, 0.03392387926578522, -0.18000006675720215, 0.286739319562912, 0.0044845715165138245, 0.21071164309978485, 0.19440822303295135, 0.19329994916915894, 0.06860633194446564, -0.3118370473384857, -0.1851769983768463, -0.014324557036161423, 0.3048582077026367, -0.14153523743152618, -0.0948524996638298, -0.1159188449382782, 0.5137312412261963, -0.24556724727153778, 0.3382502794265747, 0.05922378599643707, -0.10401300340890884, -0.17770898342132568, -0.4909539520740509, -0.1758880764245987, 0.0819053128361702, 0.040016092360019684, 0.3124937117099762, -0.12319063395261765, 0.4903729259967804, 0.2959272265434265, 0.03275338560342789, -0.1817997395992279, -0.13212889432907104, 0.2517073452472687, -0.1657273918390274, -0.10344617068767548, -0.06647507846355438, 0.25987374782562256, -0.4155706465244293, 0.5195032358169556, -0.24916177988052368, -0.19546522200107574, 0.22284647822380066, 0.059337347745895386, -0.38318154215812683, 0.547203540802002, 0.09825336933135986, -0.6427058577537537, -0.07747772336006165, -0.19204705953598022, -0.09151271730661392, -0.2088407725095749, -0.29021233320236206, -0.23562593758106232 ]
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.057370301336050034, -0.22968141734600067, -0.19698558747768402, 0.05125843733549118, 0.20142236351966858, 0.2186499834060669, 0.5181803703308105, 0.11737103760242462, 0.334380567073822, 0.4082850217819214, -0.14732207357883453, 0.383078008890152, 0.0007235631346702576, 0.21959973871707916, -0.26104027032852173, -0.34903064370155334, -0.1463271677494049, 0.14113584160804749, 0.08572743833065033, 0.013587146997451782, -0.1727699488401413, -0.30083897709846497, -0.3479204773902893, 0.015592209994792938, -0.06391094624996185, -0.20463812351226807, -0.24874883890151978, -0.27311524748802185, -0.37452828884124756, -0.22841918468475342, -0.05097701773047447, 0.48187023401260376, -0.09989318996667862, 0.04209911823272705, -0.00010220228432444856, -0.2425403892993927, 0.049416057765483856, 0.045004360377788544, -0.37280336022377014, -0.319779634475708, -0.19853931665420532, -0.22483383119106293, 0.32597094774246216, -0.3805678188800812, -0.14598557353019714, -0.17690713703632355, -0.20341983437538147, -0.25261300802230835, -0.0332646518945694, 0.08786772936582565, 0.309818834066391, -0.014179129153490067, -0.21257399022579193, 0.0007960515795275569, -0.03958848863840103, 0.16322217881679535, -0.19487740099430084, -0.0862274020910263, 0.42514264583587646, -0.0222674198448658, 0.2404668927192688, 0.10230979323387146, -0.23896083235740662, 0.07993697375059128, 0.07896757125854492, 0.16551165282726288, 0.2781161367893219, -0.2613498270511627, 0.08097785711288452, 0.2927650213241577, 0.7717722058296204, -0.18946605920791626, -0.4718894362449646, -0.21023979783058167, 0.4684532582759857, -0.19778555631637573, -0.3191840946674347, 0.2664969563484192, -0.2287948727607727, 0.22751866281032562, 0.11294049769639969, -0.268891841173172, -0.1090148538351059, 0.14868509769439697, -0.15572059154510498, 0.33265769481658936, -0.043013688176870346, 0.05515725910663605, 0.131431445479393, -0.02223512902855873, 0.12336363643407822, -0.10490827262401581, 0.12927328050136566, 0.1556301712989807, -0.6503587365150452, -0.2172849327325821, -0.22390758991241455, -0.20292875170707703, 0.16815876960754395, 0.21599937975406647, -0.02360997349023819, -0.023137912154197693, -0.118830107152462, 0.3164629340171814, 0.48385465145111084, -0.04580621048808098, -0.04397466033697128, 0.3890669643878937, -0.03434298187494278, -0.1517443209886551, 0.009490981698036194, -0.018074531108140945, -0.09105754643678665, 0.04097454622387886, 0.009580623358488083, 0.2227686047554016, 0.03322913125157356, 0.0254824198782444, -0.21435309946537018, -0.20530012249946594, -0.104871965944767, -0.2566322684288025, -0.061286959797143936, 0.46255019307136536, 0.11206010729074478, 0.39077141880989075, -0.19363056123256683, 0.23149532079696655, 0.21480414271354675, -0.2290375530719757, -0.2068745642900467, 0.2864537239074707, 0.15822964906692505, -0.11849822849035263, 0.1220540851354599, 0.06708372384309769, -0.17883092164993286, 0.31738296151161194, 0.030091986060142517, -0.3956841230392456, -0.12174790352582932, -0.3682636022567749, 0.04128725454211235, 0.16459225118160248, -0.017106853425502777, 0.10427480190992355, 0.2690175175666809, -0.21687231957912445, -0.31455597281455994, 0.3942934274673462, 0.04674047976732254, -0.15735244750976562, -0.21714171767234802, 0.18812574446201324, 0.1842949539422989, -0.3066885471343994, -0.0916229709982872, 0.5061639547348022, -0.06248738616704941, 0.36236363649368286, 0.1700689196586609, 0.029100043699145317, 0.04958761855959892, -0.34280750155448914, -0.060774125158786774, 0.3431546688079834, -0.5089312791824341, 0.08423173427581787, 0.1649499535560608, -0.09672942757606506, -0.008022196590900421, 0.16336262226104736, -0.2780385911464691, 0.08630567789077759, 0.22519052028656006, 0.03584040701389313, 0.3047427237033844, -0.3884333372116089, -0.1144217848777771, 0.1912814825773239, 0.07854261994361877, 0.17735229432582855, 0.4585636258125305, 0.10773640125989914, 0.18816161155700684, 0.23336464166641235, 0.05772791802883148, 0.19334088265895844, 0.024873416870832443, 0.07736041396856308, 0.2218865603208542, -0.40661919116973877, 0.27644848823547363, 0.14775000512599945, -0.15390555560588837, 0.16838914155960083, -0.15992441773414612, -0.1816748082637787, 0.34452205896377563, -0.2589389383792877, -0.13856206834316254, 0.18108882009983063, 0.31312206387519836, 0.1123528927564621, -0.09729665517807007, -0.40430325269699097, -0.2775416076183319, 0.11912889033555984, 0.4883978068828583, 0.13800138235092163, 0.012243837118148804, -0.43818819522857666, -0.15345802903175354, 0.05827673524618149, -0.15951627492904663, 0.1654392033815384, 0.25065091252326965, -0.2094157338142395, -0.10757297277450562, -0.10198080539703369, -0.5070762634277344, 0.36669814586639404, -0.1956883817911148, 0.1371772736310959, 0.19884614646434784, 0.17114397883415222, 0.004280637949705124, 0.17438386380672455, 0.02991047501564026, 0.019562270492315292, 0.20088332891464233, 0.17936041951179504, 0.14910447597503662, 0.08411753177642822, 0.19764457643032074, -0.07012414932250977, -0.30168718099594116, -0.03031007945537567, 0.0741778314113617, 0.19230732321739197, -0.016045553609728813, -0.2838517427444458, 0.12542180716991425, 0.026412516832351685, -0.18526560068130493, 0.09362377226352692, -0.1243559867143631, 0.2316794991493225, 0.013006821274757385, 0.015229793265461922, 0.19074024260044098, -0.1493624448776245, -0.13044139742851257, -0.363596111536026, 0.005460169166326523, -0.01619674637913704, -0.08549550920724869, -0.036862269043922424, -0.4798966646194458, -0.023961998522281647, 0.04464661329984665, 0.14152956008911133, 0.11124329268932343, 0.008340544998645782, 0.20612233877182007, 0.18853384256362915, -0.014446767047047615, 0.2635803520679474, 0.3555063009262085, 0.2335144430398941, -0.21856164932250977, -0.1486167162656784, -0.08733870834112167, 0.043703917413949966, 0.17723101377487183, 0.1707768738269806, 0.04954339191317558, 0.1987365484237671, 0.1211189404129982, 0.013651411980390549, -0.15659701824188232, -0.16189497709274292, 0.2901354432106018, 0.14824624359607697, -0.03906580060720444, -0.05747656524181366, -0.4436934292316437, -0.3970942199230194, 0.25073733925819397, -0.17098592221736908, 0.2013525366783142, -0.22107546031475067, -0.0407894104719162, -0.02848619595170021, 0.08271262049674988, -0.1632942408323288, -0.13306152820587158, 0.3956555724143982, -0.02607821300625801, -0.043518029153347015, 0.12535177171230316, -0.08678143471479416, 0.24361294507980347, 0.18329450488090515, 0.03633132576942444, 0.0684397742152214, 0.15902386605739594, 0.5090216398239136, -0.1408693492412567, -0.28232377767562866, 0.09545733779668808, 0.030174747109413147, -0.11058378219604492, 0.15716542303562164, 0.20846307277679443, 0.2270529866218567, -0.028624746948480606, -0.00059508066624403, 0.15428954362869263, 0.5449561476707458, -0.03392636030912399, -0.1696290373802185, 0.2931038737297058, -0.008518570102751255, -0.015081195160746574, -0.16301357746124268, -0.48175686597824097, -0.34276625514030457, 0.2621438503265381, -0.05715635418891907, 0.17881876230239868, -0.06866208463907242, -0.046550847589969635, -0.30990034341812134, 0.1274474561214447, 0.333383709192276, -0.30926191806793213, 0.11385710537433624, 0.10151740908622742, -0.1127336174249649, -0.13506802916526794, -0.2750646770000458, 0.06708210706710815, 0.035520367324352264, -0.10641369223594666, -0.06778043508529663, -0.28762608766555786, -0.2491900473833084, -0.1500190645456314, -0.22341614961624146, 0.14576691389083862, 0.08618353307247162, 0.19933028519153595, -0.08431129902601242, -0.03411693498492241, -0.18658922612667084, 0.04304824024438858, 0.3065353333950043, -0.18678373098373413, 0.15136641263961792, 0.20288094878196716, 0.07449229061603546, 0.01813122257590294, 0.4157295823097229, 0.22603744268417358, 0.27965468168258667, -0.07394223660230637, -0.037149880081415176, 0.03573103994131088, -0.39221009612083435, -0.31937000155448914, -0.20477294921875, 0.0584680512547493, 0.04166390001773834, -0.032073013484478, -0.08970116823911667, -0.20264899730682373, 0.20674659311771393, -0.19311994314193726, -0.14504799246788025, 0.05215965211391449, -0.48188138008117676, 0.08910779654979706, -0.11589856445789337, -0.16791707277297974, -0.1721756011247635, 0.21996212005615234, -0.15733283758163452, 0.02824334055185318, 0.14483407139778137, -0.3076135218143463, -0.18536044657230377, -0.07037322968244553, -0.20664358139038086, 0.08877071738243103, 0.1710275113582611, 0.24106785655021667, 0.12623094022274017, 0.19083544611930847, 0.2949068546295166, 0.1917140930891037, 0.633070707321167, -0.3205316960811615, -0.40393781661987305, 0.09167072176933289, -0.21996794641017914, -0.26546475291252136, 0.037142712622880936, -0.21444760262966156, -0.14256501197814941, -0.27235954999923706, 0.291530966758728, -0.4198490083217621, -0.15051913261413574, 0.3161567449569702, 0.31539857387542725, -0.21181228756904602, -0.4538210928440094, 0.014548022300004959, 0.11729905754327774, -0.22154322266578674, -0.06642339378595352, 0.27883803844451904, 0.12312375754117966, 0.10095944255590439, 0.012382615357637405, -0.10809262096881866, -0.100977823138237, 0.2842489778995514, 0.03700247034430504, -0.07762937992811203, -0.04875193163752556, 0.12094023823738098, 0.07255955040454865, -0.07834993302822113, -0.10666683316230774, 0.5034681558609009, -0.26330357789993286, -0.3774501383304596, -0.1949511468410492, -0.06768274307250977, 0.6232669353485107, 0.3686959743499756, 0.14763860404491425, 0.7594156265258789, -0.30970698595046997, -0.03165535628795624, -0.09056347608566284, -0.4885082542896271, 0.30020424723625183, -0.05553024262189865, -0.37220901250839233, -0.5473951101303101, 0.45306000113487244, -0.008856544271111488, -0.095086969435215, 0.3091559112071991, 0.37562817335128784, -0.06511357426643372, 0.32240891456604004, 0.12479032576084137, 0.813847005367279, -0.2744165062904358, -0.12294036149978638, -0.3575759828090668, -0.11769204586744308, 0.45890748500823975, -0.08238451182842255, 0.18526755273342133, -0.2941491901874542, -0.3110421597957611, -0.049784399569034576, -0.018712114542722702, 0.29678189754486084, 0.26005685329437256, -0.3409380614757538, 0.07824130356311798, -0.4393921494483948, 0.06987035274505615, 0.1553506702184677, 0.2486591339111328, -0.13984856009483337, -0.27779674530029297, -0.11045856773853302, 0.14250439405441284, -0.11223700642585754, -0.14615102112293243, 0.13125741481781006, 0.10547024756669998, -0.05454571545124054, 0.020936720073223114, -0.4702295660972595, -0.2768162190914154, -0.07651359587907791, 0.11073527485132217, 0.08553988486528397, -0.19645357131958008, 0.3327314257621765, 0.2712891399860382, 0.11469921469688416, 0.22385381162166595, 0.10998597741127014, 0.03014443814754486, 0.1507944017648697, 0.06763119995594025, -0.22513875365257263, 0.008145655505359173, 0.2617016136646271, 0.112797312438488, -0.3346259593963623, 0.3105539381504059, 0.11755725741386414, -0.503383219242096, -0.31436195969581604, 0.2931497097015381, 0.39774662256240845, -0.26471415162086487, -0.40582236647605896, -0.004808709025382996, 0.18312540650367737, -0.3095090389251709, 0.1849840134382248, 0.017867956310510635, -0.01930609904229641, 0.3045940101146698, 0.00854787603020668, 0.14188510179519653, -0.06277021765708923, 0.07624437659978867, 0.17918837070465088, -0.02779274433851242, 0.20331087708473206, 0.15646600723266602, -0.2664814591407776, -0.20135587453842163, -0.06805805116891861, -0.14499865472316742, 0.051150910556316376, 0.1259908527135849, -0.041315145790576935, 0.01991325616836548, 0.06584891676902771, 0.3281395435333252, 0.01027851551771164, 0.2176457941532135, -0.36940106749534607, -0.33934539556503296, 0.07482930272817612, 0.13421538472175598, -0.06599903106689453, 0.24297772347927094, -0.1170240268111229, 0.07762280106544495, -0.3198792338371277, 0.23930710554122925, -0.38374239206314087, -0.16775204241275787, -0.338458389043808, 0.08951959758996964, 0.4663960039615631, 0.08858822286128998, -0.312701940536499, -0.006382061168551445, 0.3497030735015869, 0.19773033261299133, 0.364749014377594, -0.3827804923057556, -0.23392608761787415, 0.040680453181266785, 0.16890418529510498, 0.32947221398353577, -0.004332468379288912, -0.22408665716648102, -0.2607190012931824, -0.12676963210105896, 0.14283660054206848, 0.2729926109313965, 0.009267225861549377, 0.1664814054965973, 0.02107846736907959, -0.20673877000808716, -0.210630863904953, 0.15793029963970184, -0.14626778662204742, -0.10519348084926605, 0.2947707176208496, 0.16506993770599365, 0.019418051466345787, -0.011125922203063965, -0.41323617100715637, 0.18177440762519836, -0.0364183634519577, -0.004477616399526596, -0.06629293411970139, 0.07913093268871307, 0.191642165184021, -0.026895588263869286, 0.3772662878036499, 0.13286516070365906, -0.14439518749713898, 0.20265312492847443, 0.22152811288833618, 0.28331512212753296, -0.31964394450187683, -0.3168656527996063, -0.10069632530212402, 0.015360232442617416, 0.3064977824687958, 0.6884777545928955, 0.08139704167842865, 0.23724991083145142, 0.10051381587982178, -0.3109855353832245, 0.22295360267162323, -0.020465072244405746, 0.046640027314424515, 0.5463965535163879, 0.13999071717262268, -0.33245640993118286, 0.23728041350841522, 0.2519739866256714, 0.09243752062320709, 0.24947001039981842, -0.006837733089923859, -0.0004600808024406433, 0.1208667978644371, 0.07191239297389984, 0.3791206479072571, -0.060392387211322784, 0.5356012582778931, -0.07906955480575562, -0.1834256947040558, -0.19362929463386536, -0.10612794756889343, 0.09475797414779663, -0.02758881077170372, 0.06097288057208061, -0.236452117562294, 0.35800889134407043, -0.03364571928977966, -0.25967830419540405, 0.04616989940404892, -0.1539088785648346, 0.1392642855644226, -0.19821962714195251, -0.06519520282745361, -0.30603110790252686, 0.09379294514656067, -0.15416742861270905, 0.40405821800231934, -0.3358252942562103, 0.2959904372692108, -0.06217256933450699, 0.43092355132102966, -0.3050549626350403, -0.009330151602625847, 0.027992472052574158, 0.07905007153749466, 0.12789547443389893, 0.10901088267564774, 0.0680750161409378, 0.26361900568008423, 0.0589408315718174, -0.11092594265937805, -0.46883678436279297, -0.1591547578573227, 0.20301567018032074, -0.008528344333171844, 0.049416132271289825, -0.030681755393743515, 0.4116615056991577, 0.2149246335029602, -0.1834036409854889, -0.010774321854114532, 0.20676261186599731, 0.38939517736434937, -0.6877526044845581, 0.13805799186229706, 0.30349409580230713, -0.20250263810157776, 0.1468922197818756, -0.03614313155412674, -0.4176557660102844, -0.24830572307109833, 0.13126911222934723, -0.08216919749975204, 0.07020099461078644, 0.15769770741462708, 0.1691780984401703, -0.0320064015686512, -0.12099890410900116, -0.03002435341477394, 0.13714337348937988, -0.11603064090013504, 0.024316929280757904, -0.21835240721702576, -0.24659836292266846, -0.09637683629989624, -0.5737482309341431, 0.3190421462059021, 0.08918683975934982, 0.15614089369773865, 0.25607967376708984, 0.11149507761001587, -0.04660777002573013, -0.12486805766820908, 0.5571193695068359, -0.18550202250480652, -0.37692490220069885, 0.19680006802082062, 0.013088921085000038, -0.028981521725654602, -0.10834112763404846, 0.1454731523990631, 0.15994374454021454, 0.1609099805355072, -0.37093687057495117, 0.21209725737571716, 0.13740970194339752, 0.0904126837849617, 0.050401974469423294, -0.03973567485809326, 0.40857136249542236, 0.09492678195238113, 0.14405347406864166, 0.03539588302373886, 0.09420686215162277, -0.2229648232460022, -0.006330065429210663, 0.16148586571216583, 0.23729795217514038, -0.12767519056797028, -0.022360388189554214, 0.16135364770889282, -0.07752145826816559, 0.02350744605064392, -0.08185173571109772, -0.1837725192308426, 0.14476154744625092, 0.3329295814037323, -0.1348555088043213, -0.08583824336528778, 0.01069650799036026, -0.05390357971191406, 0.19860626757144928, 0.13700735569000244, -0.326591432094574, 0.23282255232334137, 0.059399254620075226, -0.3388378322124481, 0.08963824063539505, 0.08262664079666138, -0.06132892519235611, 0.19922387599945068, -0.23595693707466125, -0.1262849122285843, 0.393127977848053, -0.09347710013389587, -0.13591432571411133, 0.4957377016544342, 0.12586960196495056, 0.023541774600744247, -0.1318911910057068, -0.22998905181884766, -0.0278310663998127, 0.18751782178878784, -0.47011807560920715, -0.24912305176258087 ]
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.1123061329126358, -0.3079834282398224, -0.16178551316261292, 0.1745094656944275, 0.2768069803714752, 0.29545262455940247, 0.4830068349838257, 0.10786187648773193, 0.27095648646354675, 0.43542784452438354, -0.10715539753437042, 0.1811605840921402, -0.005708280019462109, 0.11102320998907089, -0.12057644128799438, -0.4149244427680969, -0.14601099491119385, 0.12393900007009506, 0.10936463624238968, 0.1609402745962143, -0.18014578521251678, -0.408698171377182, -0.2840026021003723, -0.0011805742979049683, -0.09229615330696106, -0.12191411107778549, -0.31275174021720886, -0.3032178580760956, -0.3770618438720703, -0.2049785554409027, -0.01966107450425625, 0.30440136790275574, -0.013469051569700241, 0.1382133811712265, -0.00010265551100019366, -0.2590750455856323, 0.1286846101284027, 0.11750280857086182, -0.2449200600385666, -0.13372693955898285, -0.2202560007572174, -0.3395719826221466, 0.28274059295654297, -0.33616262674331665, -0.0875573456287384, -0.1732635498046875, -0.2556641101837158, -0.13583752512931824, -0.2600296139717102, 0.06589582562446594, 0.32346174120903015, 0.15289759635925293, -0.18894343078136444, 0.0023041737731546164, 0.006346933543682098, 0.12776818871498108, -0.2579074800014496, -0.16084671020507812, 0.4758288562297821, -0.1474858522415161, 0.3507173955440521, -0.003997754771262407, -0.18676406145095825, 0.032689813524484634, 0.08362022042274475, 0.10342606157064438, 0.2566028833389282, -0.2503735423088074, 0.106682687997818, 0.2868086099624634, 0.7255772948265076, -0.1725480556488037, -0.4039953351020813, -0.15376994013786316, 0.521260678768158, -0.33764272928237915, -0.21310126781463623, 0.50813227891922, -0.1903928518295288, 0.10007992386817932, -0.04669575393199921, -0.3265557289123535, -0.07298089563846588, 0.222853422164917, -0.10818956792354584, 0.27322614192962646, 0.028263859450817108, 0.039263881742954254, 0.38726139068603516, -0.0016130656003952026, 0.2152475118637085, -0.18406622111797333, 0.17683783173561096, 0.23212149739265442, -0.7773073315620422, -0.250190407037735, -0.23567655682563782, -0.11169078201055527, 0.21653401851654053, 0.1640046387910843, 0.027720127254724503, -0.10024357587099075, -0.182840034365654, 0.28714805841445923, 0.44553396105766296, -0.01512899436056614, -0.3066447973251343, 0.31555765867233276, 0.10224521160125732, -0.05622352287173271, 0.1859583705663681, -0.006298132240772247, 0.027145281434059143, 0.02073337510228157, 0.21960000693798065, 0.1581210196018219, -0.17804411053657532, 0.09761881828308105, -0.03289923816919327, -0.265165239572525, -0.08944825828075409, -0.2567329704761505, -0.028229940682649612, 0.36763903498649597, 0.06664089858531952, 0.3588038384914398, -0.19160982966423035, 0.164985790848732, 0.17184357345104218, -0.2895749807357788, -0.24681970477104187, 0.3928835690021515, 0.0549776665866375, -0.029188072308897972, 0.24982668459415436, -0.02509857341647148, -0.2088538408279419, 0.37340623140335083, -0.040671221911907196, -0.3881937265396118, -0.04906172305345535, -0.41340169310569763, -0.014646507799625397, 0.27031469345092773, 0.003730352967977524, 0.09972316026687622, 0.16968578100204468, -0.05087707191705704, -0.39538997411727905, 0.4790831208229065, -0.0024674013257026672, -0.3585245907306671, -0.0582650825381279, 0.12347347289323807, 0.2299959510564804, -0.12563259899616241, -0.25168463587760925, 0.3921019732952118, 0.04485328495502472, 0.40985649824142456, 0.26166531443595886, 0.0018017459660768509, 0.015751224011182785, -0.29868486523628235, -0.046856604516506195, 0.36743074655532837, -0.32420146465301514, 0.1272619068622589, 0.07684651017189026, -0.10381199419498444, -0.07150875777006149, 0.22608093917369843, -0.2931676208972931, -0.09785682708024979, 0.1805267632007599, -0.013064056634902954, 0.21617677807807922, -0.24424663186073303, -0.09006645530462265, 0.08573657274246216, 0.042293794453144073, 0.09279411286115646, 0.40339139103889465, 0.22048595547676086, -0.0306517593562603, 0.26270902156829834, 0.057952433824539185, 0.3283013105392456, -0.052146025002002716, 0.2525752782821655, 0.19940820336341858, -0.48310691118240356, 0.22638563811779022, 0.13782350718975067, 0.0445592999458313, 0.015186160802841187, -0.1832599937915802, -0.08654901385307312, 0.2737623453140259, -0.18245847523212433, -0.13852088153362274, 0.25409621000289917, 0.17926929891109467, 0.019986402243375778, -0.1123359203338623, -0.3947775959968567, -0.3011065423488617, 0.15688160061836243, 0.4884350597858429, 0.06428942084312439, 0.169643372297287, -0.2737731337547302, 0.03907781466841698, 0.0045264773070812225, -0.09818632900714874, 0.26528435945510864, 0.15439510345458984, -0.20621135830879211, -0.0029777325689792633, -0.10110464692115784, -0.39931580424308777, 0.4738369882106781, -0.2296888381242752, 0.13211748003959656, 0.027505509555339813, 0.25118762254714966, 0.06499864906072617, 0.12462885677814484, 0.16460451483726501, -0.13190504908561707, 0.28439316153526306, 0.15175364911556244, 0.09081979095935822, 0.11256099492311478, 0.1458587348461151, 0.0646824985742569, -0.3552842438220978, 0.1177152544260025, 0.16719211637973785, 0.17947721481323242, 0.026034856215119362, -0.3332141935825348, 0.08463150262832642, 0.02469731867313385, -0.12321200221776962, 0.05884184315800667, -0.34141960740089417, 0.2632928192615509, 0.11295783519744873, -0.012340729124844074, 0.15533237159252167, -0.10839268565177917, -0.1047372817993164, -0.1918957531452179, 0.16660940647125244, 0.08428944647312164, -0.23919115960597992, -0.024814927950501442, -0.6293268799781799, -0.16539785265922546, -0.07216440141201019, 0.16293756663799286, 0.0634675920009613, -0.0024510398507118225, 0.15560606122016907, 0.20158690214157104, 0.04252413287758827, 0.11423549056053162, 0.47955960035324097, 0.1736515462398529, -0.22300869226455688, -0.19621692597866058, -0.05807042121887207, 0.0025857649743556976, 0.18320012092590332, 0.20669327676296234, 0.04574176296591759, 0.15097874402999878, 0.26373291015625, -0.02208830788731575, -0.13529084622859955, -0.0007269755005836487, 0.46318021416664124, 0.13839353621006012, 0.012177746742963791, -0.07804394513368607, -0.4353892207145691, -0.2944478690624237, 0.14504870772361755, -0.20592838525772095, 0.13114909827709198, -0.09541255980730057, -0.06344597786664963, 0.15924711525440216, 0.19584162533283234, -0.20356601476669312, -0.2929728627204895, 0.5270124673843384, -0.07904878258705139, 0.01362765021622181, 0.13286373019218445, 0.10829396545886993, 0.2760705351829529, 0.11997543275356293, 0.12611977756023407, 0.035675544291734695, 0.1787349134683609, 0.6488924026489258, -0.12773877382278442, -0.3254697024822235, 0.1147143766283989, -0.06498939543962479, -0.0020174384117126465, 0.08030153810977936, 0.05819040909409523, 0.1841237097978592, 0.0059460923075675964, -0.006148516200482845, 0.1868942528963089, 0.46030959486961365, 0.021434294059872627, -0.10871033370494843, 0.2561403512954712, 0.03137704357504845, -0.003277003765106201, -0.04566214233636856, -0.4483952224254608, -0.3211634159088135, 0.23273307085037231, -0.13095881044864655, 0.18822945654392242, -0.11141786724328995, -0.009425573982298374, -0.4182296693325043, 0.06957316398620605, 0.10077718645334244, -0.21087150275707245, 0.03733101859688759, 0.1368306577205658, -0.12184490263462067, -0.14738647639751434, -0.27517732977867126, 0.19806942343711853, 0.003696013242006302, -0.015331987291574478, -0.10164792090654373, -0.18618197739124298, -0.3659267723560333, -0.26519274711608887, -0.2874380648136139, 0.16335470974445343, 0.16498127579689026, 0.11001813411712646, -0.024429453536868095, 0.08062321692705154, -0.26689380407333374, -0.0728357657790184, 0.34530577063560486, -0.06534989923238754, 0.203998863697052, 0.22252264618873596, 0.08626383543014526, 0.05248505249619484, 0.36439773440361023, 0.26744934916496277, 0.31094497442245483, -0.012216808274388313, -0.13675999641418457, 0.05285603925585747, -0.5359572768211365, -0.3218105137348175, -0.20364487171173096, 0.12611380219459534, 0.06351308524608612, -0.0032936539500951767, -0.18053792417049408, -0.23375481367111206, 0.20823170244693756, -0.017064278945326805, -0.08294788002967834, 0.06520410627126694, -0.3010798692703247, 0.2161559760570526, -0.20760652422904968, -0.3492353856563568, -0.31708967685699463, 0.05779709666967392, -0.14902275800704956, 0.0522468164563179, 0.08733035624027252, -0.2652089595794678, -0.17171968519687653, -0.08429376780986786, -0.22349950671195984, 0.0026800110936164856, 0.11234874278306961, 0.224179208278656, 0.09200462698936462, 0.23550528287887573, 0.3232549726963043, 0.27593255043029785, 0.6166086196899414, -0.17454443871974945, -0.3837955594062805, 0.05089510604739189, -0.3853892385959625, -0.36691975593566895, -0.04136227071285248, -0.12331119179725647, -0.15692265331745148, -0.31983593106269836, 0.4189453423023224, -0.2965470850467682, -0.1368434876203537, 0.3415650427341461, 0.3486954867839813, -0.273238867521286, -0.5648308992385864, -0.07811316847801208, 0.15733563899993896, -0.1444011777639389, 0.006103113293647766, 0.20958678424358368, 0.1210961565375328, 0.026399463415145874, -0.02215876430273056, -0.09570316225290298, -0.09200320392847061, 0.28351277112960815, -0.16392746567726135, -0.14786937832832336, 0.006845192052423954, 0.21502035856246948, 0.0852208286523819, -0.2006314992904663, -0.13541001081466675, 0.45997199416160583, -0.24180269241333008, -0.34096571803092957, -0.16026237607002258, -0.05879274383187294, 0.5828826427459717, 0.3401693105697632, 0.21830762922763824, 0.7634496688842773, -0.33234667778015137, 0.07736267149448395, -0.17144879698753357, -0.45479273796081543, 0.2537872791290283, -0.1395789533853531, -0.3544488251209259, -0.4438304305076599, 0.5387898683547974, 0.07981136441230774, -0.04913228005170822, 0.3948579430580139, 0.34429359436035156, -0.06743118166923523, 0.00004062429070472717, 0.1498573124408722, 0.8275068998336792, -0.43155497312545776, -0.21116411685943604, -0.490225225687027, -0.08412869274616241, 0.31792494654655457, -0.14319127798080444, 0.33818626403808594, -0.24942408502101898, -0.5191377997398376, 0.05974633991718292, -0.07864593714475632, 0.27489739656448364, 0.1233869343996048, -0.20356377959251404, 0.010695274919271469, -0.4162721633911133, 0.02674616500735283, 0.07814157009124756, 0.2290377914905548, -0.13850803673267365, -0.3053465783596039, -0.07368294149637222, 0.15643300116062164, -0.15147405862808228, -0.10418370366096497, 0.1494266390800476, 0.2186596393585205, -0.052198536694049835, 0.06237275153398514, -0.4842541217803955, -0.18864598870277405, -0.039100050926208496, 0.201690673828125, -0.005202971398830414, -0.1411769986152649, 0.2614850103855133, 0.24319995939731598, 0.09406763315200806, 0.1636536419391632, 0.18167690932750702, -0.07636143267154694, 0.08982333540916443, -0.029333990067243576, -0.3864745497703552, 0.05322425812482834, 0.1954733282327652, 0.052370741963386536, -0.3014819920063019, 0.44723156094551086, 0.12160107493400574, -0.5736985802650452, -0.4057828187942505, 0.363628625869751, 0.35620492696762085, -0.1317458301782608, -0.4770769774913788, 0.007982522249221802, 0.2676298916339874, -0.23438867926597595, 0.177158385515213, 0.07035446912050247, 0.0031151592265814543, 0.3291624188423157, -0.013482380658388138, 0.168364018201828, -0.12780286371707916, 0.2369876503944397, 0.14567320048809052, 0.05406973510980606, 0.18637335300445557, 0.2619105577468872, -0.20443710684776306, -0.14091721177101135, -0.04705408215522766, -0.020416978746652603, 0.055782251060009, 0.03699783980846405, -0.22692576050758362, 0.08653824031352997, 0.15221746265888214, 0.29395580291748047, -0.006181593984365463, 0.1769746094942093, -0.2811832129955292, -0.2921193242073059, 0.01652076654136181, 0.09892420470714569, -0.05595836415886879, 0.2511581778526306, -0.15033060312271118, -0.03701193630695343, -0.30576643347740173, 0.36039429903030396, -0.336481511592865, -0.09052284806966782, -0.2678512930870056, 0.11224875599145889, 0.4826429784297943, 0.10332528501749039, -0.44879797101020813, -0.04260228946805, 0.27522948384284973, 0.1906019002199173, 0.3579069972038269, -0.30080509185791016, -0.21606574952602386, 0.040190160274505615, 0.16743546724319458, 0.28232845664024353, 0.03282560780644417, -0.31110697984695435, -0.24167713522911072, -0.07237404584884644, 0.135964035987854, 0.23521676659584045, -0.018106356263160706, 0.03469850867986679, 0.12051703035831451, -0.40688762068748474, -0.25121018290519714, 0.3073607385158539, -0.14208661019802094, -0.10134433209896088, 0.3795367181301117, 0.162858784198761, 0.11690767854452133, -0.009836271405220032, -0.594338595867157, 0.12912924587726593, -0.06240971386432648, -0.021227937191724777, -0.004967592656612396, 0.11717821657657623, 0.22631055116653442, 0.039561204612255096, 0.20114855468273163, 0.055925022810697556, -0.11855123192071915, 0.3107338547706604, 0.14976510405540466, 0.22676986455917358, -0.23870643973350525, -0.4814903736114502, -0.2971482574939728, 0.10946483165025711, 0.15564610064029694, 0.6094631552696228, 0.11711473762989044, 0.26213374733924866, 0.04178301990032196, -0.2218044400215149, 0.27768635749816895, -0.002774365246295929, 0.04465140029788017, 0.5172439813613892, 0.10849769413471222, -0.3845739960670471, 0.36766937375068665, 0.27225762605667114, 0.03275497257709503, 0.0297847930341959, -0.011831052601337433, 0.03624338656663895, 0.06759701669216156, 0.013689808547496796, 0.36878520250320435, -0.13227708637714386, 0.2324119508266449, -0.03620976209640503, -0.14614199101924896, -0.14169469475746155, -0.1570497751235962, 0.13730475306510925, -0.049522146582603455, 0.06447962671518326, -0.3368624150753021, 0.3564513325691223, -0.014976371079683304, -0.13214819133281708, 0.10064472258090973, -0.17826707661151886, 0.06509870290756226, 0.019055556505918503, 0.02257223054766655, -0.280273973941803, 0.35399237275123596, -0.08967119455337524, 0.328338086605072, -0.2615712583065033, 0.30978667736053467, 0.23046016693115234, 0.34554871916770935, -0.3301072418689728, -0.12537074089050293, -0.021831363439559937, -0.018837623298168182, -0.007564697414636612, 0.08747967332601547, -0.10434605181217194, 0.2899876534938812, 0.22238481044769287, -0.0856923758983612, -0.4326566755771637, -0.12361016124486923, 0.24596351385116577, 0.0005931295454502106, 0.11649652570486069, 0.010341424494981766, 0.3054494857788086, 0.16789837181568146, -0.18681944906711578, 0.04685506597161293, 0.11302753537893295, 0.412139356136322, -0.8193488717079163, 0.09937264025211334, 0.31421568989753723, -0.26760801672935486, 0.053128983825445175, 0.01573794335126877, -0.3119896650314331, -0.13694798946380615, 0.1825876384973526, -0.0499921552836895, -0.004855169914662838, 0.1363016664981842, 0.12820598483085632, -0.1264781504869461, -0.03532504662871361, -0.04395182803273201, -0.046957410871982574, -0.19795146584510803, -0.10682886838912964, -0.22495639324188232, -0.2449551820755005, -0.20735174417495728, -0.4267035722732544, 0.4060291349887848, 0.0711873397231102, 0.013223476707935333, 0.22813422977924347, 0.10538376122713089, -0.16225095093250275, 0.0006875591352581978, 0.5898196697235107, -0.2509428560733795, -0.39702993631362915, 0.26232588291168213, 0.020080754533410072, -0.030644863843917847, -0.0898488312959671, 0.25433605909347534, 0.13976819813251495, 0.12569183111190796, -0.4077950716018677, 0.2397899031639099, 0.07848130166530609, 0.21957115828990936, 0.18878677487373352, -0.11258837580680847, 0.27857357263565063, 0.16203346848487854, 0.15205754339694977, -0.048219870775938034, 0.16391333937644958, -0.12644647061824799, -0.05845241993665695, 0.15647031366825104, 0.2043757438659668, -0.2094188630580902, -0.007286474108695984, 0.100992850959301, 0.056474216282367706, -0.15976965427398682, -0.14021754264831543, -0.051852405071258545, -0.07052423059940338, 0.35434189438819885, -0.07407936453819275, 0.08843624591827393, -0.034124597907066345, -0.07026028633117676, 0.1476786583662033, 0.1522464007139206, -0.24811726808547974, 0.07531186938285828, 0.09075566381216049, -0.19306804239749908, -0.08108406513929367, 0.14528845250606537, -0.10629438608884811, 0.27461761236190796, -0.2596268653869629, -0.18570592999458313, 0.31580013036727905, -0.16117805242538452, -0.07264472544193268, 0.5669781565666199, 0.16104359924793243, 0.03840382769703865, -0.10692156851291656, -0.17746758460998535, 0.00779963843524456, 0.2639756202697754, -0.4143882989883423, -0.1318202018737793 ]
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.31214675307273865, 0.10842429101467133, -0.09980076551437378, 0.06170530989766121, 0.1377466917037964, -0.10339891910552979, 0.1825830042362213, 0.27576762437820435, -0.0348222516477108, 0.2482767254114151, 0.23722442984580994, 0.2212010771036148, -0.4187541604042053, 0.2228209227323532, -0.24981296062469482, -0.10577404499053955, -0.1940758228302002, 0.2266797125339508, 0.1973595768213272, 0.0241289883852005, 0.05008118599653244, -0.1404726356267929, 0.12590782344341278, -0.22754473984241486, 0.09559009969234467, 0.040823034942150116, 0.277046799659729, 0.0032735392451286316, -0.43095919489860535, -0.40940436720848083, -0.12647098302841187, 0.594369113445282, 0.11197654902935028, 0.3047802448272705, -0.00010643877612892538, -0.1363658308982849, 0.42946523427963257, -0.06463310867547989, -0.416669636964798, -0.28114575147628784, -0.27099937200546265, -0.045695483684539795, 0.38289088010787964, -0.06490013748407364, -0.23660901188850403, 0.000030444934964179993, 0.1893431842327118, -0.25075432658195496, 0.39809101819992065, 0.3040393590927124, 0.18413466215133667, 0.14316010475158691, -0.16896505653858185, 0.11032002419233322, 0.2620273232460022, 0.2505035698413849, -0.23536831140518188, 0.19927944242954254, 0.13442069292068481, 0.3304222524166107, -0.36212092638015747, 0.3760128617286682, -0.1080576479434967, 0.027884336188435555, 0.23962071537971497, -0.11627448350191116, -0.2675046920776367, -0.3587147891521454, -0.10972187668085098, 0.39161747694015503, 0.8121824860572815, -0.06779353320598602, -0.2669246196746826, -0.2799853980541229, 0.21927455067634583, -0.1652316004037857, 0.27075862884521484, 0.07791174948215485, -0.3087136149406433, 0.22897186875343323, -0.37394896149635315, -0.3058999478816986, -0.4223289489746094, 0.06085214018821716, 0.002090074121952057, 0.287655234336853, 0.045427192002534866, -0.056426092982292175, 0.2633782625198364, 0.1848200410604477, 0.22921818494796753, 0.04317799583077431, 0.02346986159682274, -0.022735025733709335, -0.3078724443912506, -0.33802929520606995, 0.0473385751247406, -0.16073155403137207, 0.17491617798805237, 0.3495368957519531, 0.36004942655563354, 0.1747974157333374, -0.06864548474550247, 0.26104405522346497, 0.3030853867530823, -0.004378847777843475, 0.11630448698997498, -0.29841357469558716, 0.3219967484474182, 0.16303955018520355, 0.13934367895126343, -0.14539507031440735, 0.1518915295600891, 0.10234224051237106, 0.19675084948539734, 0.13892413675785065, 0.41906124353408813, -0.1786617487668991, -0.12023760378360748, 0.0440853014588356, -0.20554634928703308, -0.3528251349925995, 0.030381683260202408, 0.211704283952713, -0.22658671438694, 0.18789169192314148, -0.11772563308477402, 0.16218827664852142, 0.12797603011131287, -0.36757102608680725, 0.009399613365530968, 0.038210928440093994, -0.21828104555606842, 0.20386190712451935, 0.14907382428646088, -0.5337642431259155, -0.0831710547208786, 0.013075754977762699, -0.15494924783706665, -0.03131215274333954, 0.3512853682041168, -0.153452530503273, -0.003380008041858673, 0.11384784430265427, -0.016181297600269318, -0.09841274470090866, -0.008227050304412842, 0.10183151066303253, -0.2609637379646301, 0.2310144603252411, -0.08875653892755508, -0.22457392513751984, 0.0018788352608680725, 0.2684466540813446, -0.2341555505990982, -0.15325428545475006, -0.1981973946094513, 0.5610989332199097, -0.47616663575172424, -0.22254236042499542, 0.1492544561624527, 0.30534374713897705, -0.09724223613739014, -0.17266595363616943, -0.0284196175634861, 0.4456050395965576, -0.240935817360878, -0.17909565567970276, -0.3171626031398773, -0.4264680743217468, 0.39744630455970764, 0.07746122032403946, -0.17629125714302063, 0.07929599285125732, 0.05245190113782883, 0.09325286746025085, 0.5550787448883057, -0.06977872550487518, -0.11101751774549484, 0.5365386009216309, -0.3236945867538452, 0.3182695209980011, 0.32173120975494385, 0.13688313961029053, 0.3014828562736511, 0.03137370944023132, 0.05066120624542236, 0.3944000005722046, -0.09760387241840363, -0.01376948319375515, -0.31381696462631226, -0.29595842957496643, 0.19709418714046478, 0.26165086030960083, 0.15033265948295593, 0.1946418583393097, 0.17300599813461304, -0.17894123494625092, 0.15962156653404236, 0.0251370370388031, -0.03539784997701645, -0.07468248903751373, 0.46967989206314087, -0.00592399388551712, -0.3908091187477112, 0.08821284770965576, -0.353420227766037, 0.009237401187419891, 0.12177030742168427, 0.09983530640602112, 0.07569731771945953, -0.31549394130706787, -0.17601627111434937, -0.14099961519241333, -0.11864332854747772, 0.04586264491081238, 0.19925279915332794, 0.2442772388458252, -0.23805877566337585, 0.09903654456138611, -0.2280896157026291, 0.24912653863430023, -0.2165427803993225, 0.2083420753479004, -0.22820653021335602, 0.15886026620864868, 0.10627436637878418, -0.07241504639387131, 0.15794211626052856, -0.30280300974845886, 0.18095090985298157, 0.015652449801564217, -0.09017239511013031, 0.37117645144462585, 0.04644149914383888, 0.5940017104148865, 0.07155462354421616, 0.27122774720191956, 0.2272627204656601, -0.28360670804977417, 0.190956249833107, 0.3033677935600281, 0.011006434448063374, 0.007328324019908905, -0.37513765692710876, 0.21430405974388123, 0.11327657103538513, -0.10765273123979568, 0.18071703612804413, -0.1787671595811844, 0.13052454590797424, -0.0777629017829895, -0.3311733603477478, -0.02160760387778282, 0.16093988716602325, 0.0429353341460228, -0.16341449320316315, 0.02938343770802021, -0.3633929491043091, -0.17847955226898193, 0.27484264969825745, 0.0663696676492691, -0.049643248319625854, 0.5686532855033875, -0.011993050575256348, -0.3284750282764435, 0.2952466309070587, 0.215291365981102, 0.3742591142654419, 0.2192714810371399, 0.26088854670524597, 0.10186160355806351, 0.3289048373699188, -0.12841010093688965, 0.10908425599336624, 0.043393202126026154, -0.11855518817901611, 0.1851852834224701, 0.0774020254611969, 0.04251528158783913, -0.4282298982143402, -0.19885094463825226, 0.02961614914238453, 0.18148314952850342, -0.0835997611284256, -0.059926196932792664, -0.09862018376588821, -0.15974757075309753, 0.001625344157218933, -0.18292221426963806, -0.12299244105815887, -0.12213151156902313, 0.27373769879341125, 0.6344070434570312, -0.26174142956733704, -0.006678251549601555, -0.24722333252429962, 0.42849743366241455, -0.15422801673412323, -0.0365397110581398, -0.30524149537086487, 0.00852089375257492, 0.12650638818740845, 0.18049031496047974, 0.1358107030391693, -0.0603521503508091, 0.7215876579284668, 0.22353017330169678, 0.2180977761745453, -0.4833521842956543, -0.29572659730911255, 0.14002281427383423, 0.06200031936168671, 0.09277675300836563, -0.06450237333774567, 0.24192485213279724, 0.1780836582183838, -0.4123825132846832, 0.06390378624200821, -0.06455380469560623, -0.014477558434009552, 0.21159948408603668, 0.046388451009988785, 0.2912002205848694, -0.0600486695766449, -0.4394129812717438, -0.37887609004974365, -0.5287724137306213, 0.26295071840286255, -0.013259101659059525, 0.07579787820577621, 0.2690794765949249, 0.07192481309175491, -0.1398298740386963, 0.14984172582626343, 0.09194493293762207, -0.16397656500339508, -0.3578229248523712, 0.042528606951236725, -0.10433647781610489, -0.016339626163244247, 0.06379814445972443, 0.11839038133621216, -0.1711730659008026, 0.5343626141548157, -0.38512706756591797, -0.058321017771959305, -0.11360767483711243, -0.2023056149482727, -0.11552751064300537, -0.5180276036262512, 0.27435302734375, 0.15757489204406738, -0.2281765341758728, 0.11273836344480515, -0.028465302661061287, -0.22893953323364258, 0.1795027256011963, 0.11579498648643494, 0.06848418712615967, 0.4184277355670929, 0.02420629933476448, 0.3933296799659729, 0.040167924016714096, -0.04784556105732918, 0.4635883569717407, 0.21074503660202026, 0.26241451501846313, 0.03863198310136795, -0.014625538140535355, 0.11453887075185776, 0.07273148745298386, -0.34400784969329834, 0.3816339373588562, -0.010327693074941635, -0.36191171407699585, -0.3208202123641968, -0.050795409828424454, -0.2861061096191406, -0.15682093799114227, 0.3188701272010803, -0.03350494056940079, 0.18134579062461853, -0.16496503353118896, 0.00615914911031723, 0.25497546792030334, -0.2481222152709961, 0.0024466924369335175, 0.3957555890083313, 0.42717042565345764, -0.20076875388622284, -0.2212192714214325, 0.1668199896812439, -0.32075902819633484, 0.1439553201198578, -0.09521377831697464, 0.13457433879375458, -0.28149697184562683, -0.14874190092086792, 0.13079774379730225, 0.047101788222789764, 0.17212915420532227, -0.5037595629692078, -0.3077431917190552, -0.1230984628200531, 0.18044932186603546, 0.12462396174669266, -0.11564409732818604, -0.134614497423172, -0.008113181218504906, -0.08410505950450897, 0.2051529437303543, -0.32975736260414124, 0.05227474123239517, 0.10617020726203918, -0.1360587775707245, -0.1200307160615921, -0.3209204077720642, -0.08395186066627502, 0.11415412276983261, -0.23055650293827057, 0.17543847858905792, -0.1583172082901001, -0.2460884302854538, -0.32093480229377747, -0.323527991771698, 0.24427787959575653, 0.14144867658615112, 0.2715736925601959, 0.2621290683746338, 0.09923060983419418, 0.03475078195333481, 0.012847259640693665, 0.06798630207777023, 0.08147932589054108, 0.36018720269203186, 0.40023913979530334, 0.17363427579402924, -0.2835346460342407, 0.012098114006221294, -0.11003322154283524, 0.12902410328388214, 0.25471991300582886, -0.07255029678344727, 0.3577914834022522, 0.38735947012901306, 0.2700958549976349, -0.3172825276851654, 0.1379450410604477, 0.26314079761505127, -0.3558494746685028, -0.3819209039211273, -0.5331363677978516, 0.5077525973320007, -0.03404860198497772, -0.22490228712558746, 0.3006293475627899, -0.13972364366054535, -0.21132239699363708, 0.14037616550922394, 0.007770709693431854, 1.1393033266067505, -0.08133505284786224, -0.28637200593948364, 0.028147686272859573, -0.2087208330631256, 0.3228914737701416, -0.6179010272026062, 0.01712103746831417, -0.13278938829898834, -0.38344883918762207, -0.23881115019321442, -0.0798732191324234, 0.19858214259147644, 0.12350340932607651, -0.6832177042961121, -0.0016386667266488075, -0.08938398957252502, 0.18612870573997498, 0.004374971613287926, 0.6372838616371155, -0.3760329782962799, -0.17596161365509033, -0.4483300447463989, 0.13943567872047424, -0.24471552670001984, 0.24599377810955048, -0.12751248478889465, -0.1912698745727539, 0.4177616238594055, -0.1814320832490921, -0.3381596803665161, -0.11814878135919571, -0.3152579963207245, -0.26687896251678467, -0.4614507555961609, -0.35430020093917847, 0.06804974377155304, 0.050748277455568314, -0.17401106655597687, -0.09376724064350128, -0.24491015076637268, 0.17079542577266693, -0.17932632565498352, 0.14767473936080933, -0.14035706222057343, -0.02487441524863243, 0.41863155364990234, -0.20089766383171082, -0.0720951110124588, 0.43728384375572205, 0.012420757673680782, -0.3833429217338562, 0.103107750415802, -0.28478437662124634, 0.2615050971508026, -0.2877121567726135, -0.01956462301313877, -0.0967930406332016, -0.34475141763687134, -0.11515681445598602, 0.1612798124551773, 0.08265352249145508, -0.009265338070690632, -0.08570443838834763, 0.2834565043449402, -0.06519586592912674, -0.2721075713634491, 0.3171854317188263, 0.0930134579539299, -0.23973464965820312, 0.007562980055809021, -0.025569690391421318, -0.3257598876953125, -0.33892935514450073, -0.14032310247421265, 0.12018226832151413, -0.02494894340634346, -0.017429213970899582, 0.04686854034662247, 0.09075000882148743, 0.06683621555566788, -0.0461542047560215, 0.13894104957580566, 0.12200668454170227, -0.03997126966714859, -0.16427519917488098, -0.2067992389202118, 0.08375013619661331, -0.07638481259346008, 0.2557649612426758, -0.3581163287162781, -0.2978528141975403, 0.14457350969314575, 0.04980834200978279, -0.3824308216571808, -0.33466488122940063, -0.14565475285053253, 0.02200082689523697, 0.20064038038253784, 0.13485601544380188, 0.2724134922027588, -0.1450318992137909, 0.08512551337480545, -0.0014293082058429718, -0.16003292798995972, -0.18322008848190308, -0.0749991312623024, 0.17629921436309814, 0.24947679042816162, 0.08028659969568253, -0.16967065632343292, -0.15459753572940826, -0.11271058022975922, 0.03163205087184906, 0.2693570554256439, 0.08639436215162277, -0.10767041146755219, 0.11219178885221481, 0.21540766954421997, 0.20126238465309143, -0.4698941707611084, -0.1330144703388214, -0.13610553741455078, 0.2858874499797821, 0.13753308355808258, -0.17586027085781097, -0.02333937957882881, -0.06576812267303467, -0.2573368549346924, 0.19211871922016144, 0.5488521456718445, 0.23205286264419556, 0.11281706392765045, 0.10308831930160522, 0.08541367948055267, -0.11167638748884201, 0.3619663119316101, 0.34290215373039246, -0.2478908896446228, -0.025294378399848938, 0.19757080078125, 0.316572368144989, 0.037254758179187775, -0.011717280372977257, -0.14208021759986877, -0.23070986568927765, 0.17557165026664734, -0.049280695617198944, 0.12661515176296234, 0.2202087938785553, 0.3079923987388611, 0.05769891291856766, 0.04366550222039223, -0.10604247450828552, 0.36549368500709534, 0.22470484673976898, -0.05374004319310188, 0.016536995768547058, 0.1116279661655426, 0.09528084099292755, 0.06405454128980637, -0.14402024447917938, -0.0732368603348732, 0.4655798077583313, 0.14211063086986542, 0.021919425576925278, -0.12038389593362808, -0.3483915328979492, -0.06470999121665955, 0.4036750793457031, -0.13326780498027802, 0.33058497309684753, 0.3621428906917572, 0.23711514472961426, 0.13171692192554474, 0.047481779009103775, -0.2780638039112091, -0.15521538257598877, 0.0312140341848135, 0.30187538266181946, -0.14666998386383057, -0.3033549189567566, -0.336745947599411, 0.08959388732910156, 0.05388374626636505, 0.17747041583061218, 0.023667268455028534, 0.25558236241340637, 0.048001982271671295, -0.05028530955314636, -0.04248437285423279, -0.15954998135566711, 0.3600119352340698, -0.40731266140937805, -0.022846991196274757, 0.0944233387708664, 0.186483234167099, 0.4190031588077545, 0.15054059028625488, 0.027803167700767517, 0.22216729819774628, 0.06068389490246773, 0.12191355228424072, -0.04566609486937523, -0.040287211537361145, 0.018028292804956436, 0.2732663154602051, 0.3632722795009613, -0.006076175719499588, -0.02762317657470703, 0.241256445646286, -0.24994605779647827, 0.4658040404319763, -0.11588302254676819, -0.10679148137569427, -0.3139314353466034, -0.061418406665325165, 0.5476928949356079, -0.2058526873588562, -0.2013743370771408, -0.3311993181705475, -0.2827058434486389, -0.056299760937690735, 0.21696379780769348, 0.08527284860610962, -0.09550827741622925, -0.11602954566478729, 0.09902708232402802, 0.21641840040683746, 0.13886885344982147, 0.13111184537410736, -0.05071256309747696, -0.23273523151874542, -0.14795488119125366, -0.6127150654792786, 0.10116977244615555, -0.014172054827213287, 0.0776282250881195, 0.14028224349021912, 0.09241962432861328, 0.03728538006544113, 0.5932247042655945, -0.2085786610841751, -0.20351265370845795, -0.1500021368265152, -0.05029623955488205, -0.4235233664512634, -0.1181761771440506, 0.3140208125114441, 0.0358930341899395, -0.21466617286205292, -0.1417922079563141, 0.1993778944015503, -0.11840947717428207, 0.06493419408798218, -0.22699466347694397, -0.11332523822784424, -0.04403027147054672, 0.26981574296951294, 0.583631157875061, -0.032782696187496185, 0.6000120639801025, -0.24259403347969055, -0.07789875566959381, 0.04917898029088974, -0.0037100068293511868, -0.17753930389881134, -0.08049223572015762, 0.1503087431192398, 0.5112550258636475, 0.30862921476364136, 0.05216130614280701, -0.4756872355937958, 0.5256845355033875, -0.13721847534179688, -0.12622429430484772, -0.34932056069374084, -0.059453338384628296, 0.20604565739631653, 0.13059310615062714, -0.012976621277630329, 0.08982513844966888, 0.1220908984541893, -0.14285841584205627, -0.4350023865699768, -0.2368568480014801, 0.4311566650867462, -0.1696445494890213, -0.09173357486724854, 0.07750450074672699, 0.13490496575832367, 0.14892178773880005, 0.29170334339141846, -0.6755431294441223, 0.27585580945014954, 0.24598518013954163, -0.22962209582328796, 0.28422605991363525, 0.3128635585308075, 0.25139591097831726, 0.08038271963596344, 0.0008698143064975739, 0.21121397614479065, 0.032168880105018616, -0.16106045246124268, -0.08381706476211548, -0.24690623581409454 ]
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.23873288929462433, -0.15577000379562378, 0.00665205717086792, 0.1112368255853653, 0.3777100443840027, -0.19912627339363098, 0.00820193812251091, -0.13702020049095154, 0.11175185441970825, 0.3464577794075012, -0.3380078673362732, 0.4965122640132904, -0.1501326858997345, 0.44433242082595825, 0.21384276449680328, 0.20122018456459045, 0.09505775570869446, 0.2073047161102295, -0.29916515946388245, 0.05134614557027817, -0.14978444576263428, -0.11977022886276245, -0.1633816957473755, -0.14368923008441925, -0.2040838897228241, 0.219362273812294, 0.07276784628629684, 0.08116436004638672, -0.29055869579315186, -0.2938537001609802, 0.16270171105861664, 0.5292003154754639, 0.40157637000083923, 0.32710134983062744, -0.00010832505358848721, -0.190035879611969, 0.36401528120040894, -0.4076462686061859, -0.5083051919937134, -0.1703520268201828, -0.2225590944290161, 0.2536764144897461, -0.15919184684753418, -0.09340527653694153, -0.6251899003982544, -0.1363317221403122, 0.013374809175729752, -0.11008600145578384, 0.25968343019485474, 0.17321951687335968, 0.22598858177661896, -0.05559021234512329, -0.0955960750579834, -0.15105782449245453, 0.19198349118232727, 0.2502143383026123, -0.1117713674902916, -0.022680573165416718, 0.1821223497390747, 0.014635317027568817, 0.14113715291023254, 0.28839147090911865, -0.13534943759441376, -0.12514933943748474, 0.6657478213310242, -0.1592927724123001, -0.03402771055698395, -0.047616831958293915, -0.0653878003358841, 0.28973791003227234, 0.6062099933624268, -0.23076185584068298, -0.3986752927303314, 0.13176733255386353, 0.04896438494324684, -0.13678832352161407, -0.051132529973983765, -0.16705326735973358, -0.18046198785305023, -0.009785212576389313, -0.1593211144208908, -0.2900250256061554, 0.016899116337299347, -0.09919269382953644, 0.12573747336864471, 0.4029808044433594, -0.21496962010860443, -0.24862375855445862, 0.10877472162246704, -0.19184993207454681, -0.2502999007701874, 0.20072416961193085, 0.24914465844631195, 0.12138239294290543, -0.2323535531759262, -0.12403526902198792, 0.2190018892288208, -0.22821593284606934, 0.013481814414262772, 0.013471955433487892, 0.255519837141037, 0.06636875867843628, 0.07365729659795761, 0.0467756986618042, 0.21220684051513672, 0.32631468772888184, 0.3418334722518921, -0.07581441849470139, 0.12669849395751953, 0.323527991771698, 0.12131449580192566, -0.04695580154657364, -0.47927120327949524, 0.0506928525865078, -0.38329339027404785, 0.12917646765708923, 0.03265467286109924, -0.29105326533317566, -0.17502112686634064, -0.13623972237110138, 0.22217315435409546, 0.08945201337337494, 0.19042472541332245, 0.6082087755203247, -0.1698201298713684, 0.016282634809613228, -0.13856950402259827, 0.19913633167743683, -0.2245854288339615, 0.38183122873306274, -0.12505203485488892, 0.1218162477016449, -0.20758917927742004, 0.20607754588127136, 0.1558455526828766, -0.3326059579849243, 0.13543130457401276, -0.03655364364385605, 0.09257477521896362, -0.03509912267327309, -0.31067728996276855, 0.2560380697250366, 0.1394769698381424, 0.011243298649787903, 0.2154383361339569, -0.02426827698945999, -0.4070393443107605, -0.018533214926719666, -0.26680275797843933, 0.09708040952682495, 0.2298036515712738, -0.30902254581451416, -0.24026556313037872, 0.26878592371940613, -0.21128886938095093, -0.23998713493347168, -0.20934191346168518, 0.2070327252149582, -0.025995485484600067, -0.3565528690814972, -0.04725665599107742, -0.1550927609205246, -0.18735788762569427, 0.08068737387657166, 0.36181923747062683, 0.04938701540231705, 0.14107540249824524, -0.23852194845676422, -0.06132245063781738, -0.021332241594791412, 0.15267673134803772, -0.022349189966917038, 0.1086406484246254, 0.15498995780944824, 0.045429863035678864, 0.3059653043746948, 0.021339252591133118, -0.7309920787811279, -0.29565587639808655, -0.025389164686203003, -0.07040148228406906, 0.04739543795585632, 0.07588070631027222, 0.026697788387537003, 0.5626784563064575, -0.36665892601013184, 0.026768475770950317, 0.41693031787872314, 0.10459814965724945, 0.02718365751206875, -0.11378154158592224, -0.1186167523264885, 0.1551038920879364, 0.3331930637359619, -0.14123773574829102, -0.013246491551399231, -0.02013840526342392, 0.5371372699737549, 0.11159415543079376, -0.2153894603252411, 0.13519783318042755, -0.030437946319580078, 0.19726555049419403, 0.25059956312179565, 0.018922194838523865, -0.13430547714233398, -0.15660208463668823, -0.07148076593875885, 0.354475736618042, 0.3644615113735199, -0.24443678557872772, -0.48128193616867065, -0.0186538714915514, -0.20858566462993622, -0.23489584028720856, -0.0008715018630027771, 0.19661250710487366, 0.17948773503303528, 0.4501183032989502, -0.2948078215122223, -0.1031232699751854, -0.45383402705192566, -0.15392889082431793, -0.07763433456420898, -0.04576212912797928, 0.027646636590361595, -0.07101339101791382, -0.07545559108257294, 0.27406978607177734, 0.42820069193840027, -0.013410933315753937, 0.0006366049638018012, 0.019820893183350563, 0.36060234904289246, -0.1204632967710495, 0.27161550521850586, -0.03309846669435501, 0.4144013226032257, 0.0200408436357975, -0.519940197467804, 0.1516590118408203, 0.0607667900621891, 0.06110669672489166, -0.03367935121059418, -0.0852077528834343, 0.08017294108867645, -0.21565969288349152, 0.11415623873472214, 0.24574236571788788, -0.20124463737010956, 0.282216876745224, 0.016078222543001175, -0.14298754930496216, -0.1003035455942154, -0.0837654173374176, -0.0753236711025238, 0.1822255551815033, 0.03749021887779236, -0.29564034938812256, 0.013416245579719543, 0.1434491127729416, -0.15083162486553192, 0.20648843050003052, -0.001338467001914978, -0.09631510823965073, -0.20689260959625244, 0.11922341585159302, -0.17253302037715912, 0.05884649604558945, 0.22694239020347595, 0.28866642713546753, -0.005675917491316795, -0.08357005566358566, -0.13001766800880432, 0.13594992458820343, -0.09626799821853638, -0.01869109831750393, 0.31496962904930115, 0.01943349651992321, -0.011138821952044964, -0.4310700297355652, 0.050069477409124374, -0.05655195564031601, -0.02384708635509014, -0.08443523943424225, -0.44127923250198364, -0.045211419463157654, -0.6270548105239868, 0.0019318051636219025, -0.43875256180763245, 0.12301956117153168, 0.18730150163173676, 0.2541447877883911, 0.00013147667050361633, -0.3270377218723297, 0.2696534991264343, 0.34595707058906555, 0.2631186246871948, -0.2504717707633972, -0.04771958291530609, -0.30701810121536255, -0.2446100413799286, -0.006103157997131348, 0.15910744667053223, 0.1529824137687683, 0.011962391436100006, 0.058523960411548615, 0.01056515984237194, 0.22021371126174927, -0.2467617690563202, -0.13107088208198547, 0.25984370708465576, -0.059428878128528595, 0.18962934613227844, 0.048685766756534576, -0.008442521095275879, 0.2503090500831604, -0.08310748636722565, 0.054191842675209045, -0.33199650049209595, -0.15468910336494446, -0.04133293777704239, 0.09509335458278656, -0.005971489939838648, -0.3511026203632355, -0.386465460062027, -0.1713494062423706, -0.4853633940219879, -0.2212010771036148, -0.11974616348743439, 0.0970890149474144, -0.05555764585733414, -0.31575533747673035, 0.025246620178222656, 0.153276726603508, 0.43914294242858887, -0.20172426104545593, -0.09282311797142029, 0.2107277512550354, -0.43196848034858704, -0.17959636449813843, -0.16294896602630615, -0.0613175667822361, 0.2938213646411896, 0.03433498740196228, -0.19300897419452667, -0.07727315276861191, 0.14868119359016418, -0.14295123517513275, 0.06080995500087738, -0.04306188225746155, 0.3532960116863251, 0.12417668104171753, -0.09493979811668396, -0.18351495265960693, -0.2840724289417267, 0.08021992444992065, 0.3533504903316498, 0.1515350043773651, -0.07023070752620697, 0.024417690932750702, -0.039540521800518036, 0.31054216623306274, 0.06572970747947693, -0.030512366443872452, 0.294180691242218, 0.02162245102226734, 0.15717191994190216, -0.0036711469292640686, 0.16096287965774536, 0.41164907813072205, 0.09167174994945526, -0.2100941240787506, 0.598488986492157, 0.2012271285057068, 0.07221860438585281, -0.12211302667856216, -0.04307793825864792, -0.496040403842926, -0.12290631234645844, -0.12758804857730865, -0.19472354650497437, 0.006691768765449524, -0.07123671472072601, 0.16881924867630005, 0.1662696897983551, -0.050268735736608505, 0.30539950728416443, 0.18464338779449463, 0.3476543128490448, 0.01915498822927475, -0.16707731783390045, -0.22362573444843292, -0.29161766171455383, 0.16893979907035828, 0.22476013004779816, 0.13013200461864471, -0.17033551633358002, -0.32541751861572266, -0.03935648500919342, -0.19530296325683594, 0.09271538257598877, -0.3638093173503876, 0.14253699779510498, 0.08325809240341187, 0.09210774302482605, -0.17738355696201324, 0.002285771071910858, -0.11711385846138, -0.045259833335876465, -0.047796208411455154, 0.036805544048547745, -0.4489268660545349, -0.0813799649477005, 0.23491929471492767, -0.03244157135486603, -0.1318279653787613, -0.19539618492126465, -0.03754265978932381, -0.6822200417518616, -0.058765098452568054, 0.11679396033287048, 0.08172409236431122, 0.29427242279052734, -0.050162240862846375, -0.11177103221416473, 0.2129608392715454, 0.10415583103895187, 0.13878042995929718, 0.11174243688583374, 0.24448034167289734, 0.2800197899341583, 0.1165294200181961, 0.24863772094249725, 0.06916298717260361, 0.4142341911792755, 0.5681794881820679, -0.1052539050579071, -0.06243829429149628, 0.0022765807807445526, -0.13005803525447845, 0.38962018489837646, 0.12064812332391739, 0.20801298320293427, 0.1284276694059372, -0.01036626473069191, -0.18305732309818268, -0.7336471080780029, 0.3549478054046631, 0.13936498761177063, 0.0852794274687767, -0.18308784067630768, -0.604661762714386, 0.394453763961792, 0.1575474739074707, -0.14955049753189087, 0.08656248450279236, -0.14253583550453186, -0.35773739218711853, 0.27066922187805176, 0.15639282763004303, 1.0518196821212769, -0.2577364444732666, -0.02052951231598854, -0.06825719028711319, -0.11025336384773254, 0.2670957148075104, -0.28118839859962463, 0.12631559371948242, -0.03639867156744003, -0.049960777163505554, 0.048907384276390076, 0.2216235101222992, -0.08256497234106064, 0.11102891713380814, -0.3840634226799011, 0.24602584540843964, 0.12158326804637909, 0.06902153789997101, 0.018895527347922325, 0.2989874482154846, 0.020060498267412186, -0.37318965792655945, -0.2414265275001526, 0.157666876912117, -0.14481453597545624, 0.2374418079853058, -0.14956659078598022, 0.025353457778692245, 0.10366524755954742, -0.11331257969141006, -0.015233658254146576, 0.2427363395690918, 0.0636698305606842, -0.3152551054954529, -0.20608332753181458, -0.15480366349220276, 0.09559428691864014, 0.30370384454727173, -0.15157027542591095, 0.2297079712152481, -0.10608014464378357, 0.12115141749382019, 0.06873566657304764, 0.31636783480644226, 0.06354125589132309, 0.0734943076968193, 0.3956182301044464, -0.15212488174438477, 0.24922534823417664, 0.012368161231279373, 0.2981199324131012, -0.1289324164390564, -0.2205694168806076, -0.3212551474571228, 0.02932615764439106, -0.04700478911399841, 0.08646689355373383, 0.2525443136692047, -0.0306524857878685, -0.1810583472251892, 0.20062750577926636, -0.062848761677742, -0.4676536023616791, 0.22131586074829102, -0.030125129967927933, -0.06680060923099518, -0.03897989168763161, 0.21983671188354492, 0.11383519321680069, -0.3127257525920868, -0.0027812905609607697, 0.15303200483322144, -0.03039749152958393, -0.31131476163864136, -0.4853426516056061, -0.23330385982990265, 0.008499816060066223, 0.0897144228219986, 0.10984155535697937, -0.3046220541000366, -0.0016217827796936035, 0.6208373308181763, 0.02621523104608059, -0.21266892552375793, -0.19558298587799072, 0.20604094862937927, -0.2056099772453308, 0.21313261985778809, 0.17549775540828705, 0.4463227391242981, -0.029449228197336197, 0.23260371387004852, -0.04606970027089119, 0.11750387400388718, -0.41526225209236145, -0.17242173850536346, -0.45068538188934326, 0.36891159415245056, 0.028984079137444496, 0.05651591718196869, 0.15968245267868042, -0.11165481805801392, 0.21435540914535522, -0.06048912554979324, 0.005414779298007488, -0.19858017563819885, -0.009351015090942383, 0.09744557738304138, 0.23212450742721558, 0.07164490967988968, -0.2855548858642578, 0.07761742174625397, -0.22195781767368317, -0.20224106311798096, 0.34122100472450256, 0.26956605911254883, -0.061186179518699646, 0.35563957691192627, 0.03303363174200058, -0.043259672820568085, -0.03846757858991623, 0.12939763069152832, 0.12086424976587296, 0.3543013334274292, 0.0388859286904335, 0.10905063152313232, 0.1320512890815735, -0.18861180543899536, 0.06208111718297005, 0.17770341038703918, 0.42663055658340454, -0.0461699441075325, 0.1700855791568756, -0.0015139169991016388, -0.015882423147559166, 0.23759792745113373, 0.6916751861572266, 0.054159510880708694, -0.05908793956041336, -0.2120250016450882, 0.16091018915176392, 0.37085607647895813, -0.1485457420349121, -0.012919419445097446, -0.5179475545883179, -0.28495949506759644, 0.10036535561084747, 0.2510239779949188, 0.011584941297769547, 0.016935043036937714, -0.24692927300930023, -0.023668665438890457, -0.0586126372218132, 0.07714410871267319, 0.07854855060577393, 0.10353441536426544, -0.008073922246694565, -0.02055547758936882, 0.16793401539325714, -0.15701551735401154, -0.053477443754673004, 0.43283557891845703, 0.12365925312042236, 0.516559898853302, 0.2849937677383423, 0.4423142373561859, 0.02610541135072708, -0.053811632096767426, 0.0328543484210968, 0.1794985830783844, -0.1046275794506073, 0.26353520154953003, -0.15210658311843872, 0.5993233919143677, -0.3265374004840851, -0.08334486186504364, -0.1794985979795456, 0.12008030712604523, -0.2615883946418762, -0.21343781054019928, -0.015200337395071983, -0.25570258498191833, 0.17661473155021667, 0.09088313579559326, -0.05401531979441643, 0.11695313453674316, -0.000536896288394928, -0.007379211485385895, 0.07118670642375946, -0.014263652265071869, 0.03483495116233826, 0.09198501706123352, 0.19310519099235535, -0.23127368092536926, 0.4226834774017334, 0.2814003825187683, 0.035751476883888245, 0.3122563064098358, 0.4274137616157532, 0.2777601182460785, 0.2222020924091339, -0.3424447178840637, -0.06848235428333282, 0.03380166366696358, 0.018384182825684547, -0.09381596744060516, 0.42020082473754883, 0.25141531229019165, 0.3408820629119873, 0.2904651165008545, 0.22425493597984314, -0.2440182864665985, 0.17848116159439087, -0.06948408484458923, -0.006063604727387428, 0.0527367927134037, 0.47938933968544006, 0.1439274251461029, -0.047190841287374496, -0.09958948194980621, 0.1491749882698059, -0.7908724546432495, -0.26100802421569824, 0.11874552071094513, -0.30481523275375366, 0.16290119290351868, -0.3607218563556671, 0.11671367287635803, 0.09100665152072906, 0.5737720131874084, 0.20015135407447815, 0.28872525691986084, 0.06572511047124863, -0.2745937705039978, -0.358031690120697, -0.06065420061349869, 0.2796650528907776, 0.03790885955095291, -0.24960952997207642, 0.14698684215545654, 0.13924795389175415, 0.04938264191150665, -0.4266399145126343, 0.018609633669257164, -0.10710267722606659, 0.21977469325065613, -0.11976784467697144, 0.3733874559402466, -0.16244255006313324, 0.17147307097911835, -0.05842694640159607, -0.18962576985359192, -0.1771627813577652, -0.22544334828853607, 0.02156989276409149, 0.08298438787460327, 0.35268616676330566, 0.14508992433547974, -0.2686477303504944, 0.3546155095100403, -0.23035293817520142, 0.5316294431686401, -0.34170666337013245, 0.026185469701886177, 0.1350889801979065, 0.032993510365486145, -0.3262866139411926, -0.30184608697891235, -0.2989818751811981, 0.1844824254512787, 0.15855509042739868, 0.49813926219940186, -0.25549742579460144, -0.2075781673192978, -0.050176553428173065, 0.32353121042251587, -0.1857932060956955, -0.01708587259054184, -0.42601171135902405, -0.2550641894340515, -0.018728751689195633, 0.2147427797317505, 0.08817613869905472, -0.12169020622968674, -0.4048176407814026, -0.5538057088851929, 0.3240549564361572, 0.2493554949760437, -0.25713273882865906, -0.4015716314315796, 0.27067190408706665, 0.13351334631443024, 0.015163201838731766, -0.6682811379432678, 0.2751125693321228, 0.0016297819092869759, 0.1941593885421753, -0.06602220237255096, 0.41547536849975586, -0.07313567399978638, -0.1756199300289154, -0.18335387110710144, -0.15226955711841583, 0.132865309715271, 0.011361872777342796, -0.14482127130031586, -0.3962375521659851 ]
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.23063240945339203, -0.3324861228466034, -0.05473162233829498, 0.06616602092981339, 0.3352731466293335, -0.2812386453151703, 0.08374211937189102, -0.061148930341005325, -0.11445456743240356, 0.40886038541793823, -0.41407933831214905, 0.4271577000617981, -0.1571253091096878, 0.3467774987220764, 0.15715283155441284, 0.059658538550138474, 0.040840957313776016, 0.24557365477085114, -0.31445440649986267, -0.04645780473947525, -0.06598591804504395, 0.015527714043855667, -0.11186636984348297, -0.28752273321151733, -0.16763480007648468, 0.31256502866744995, 0.01593531109392643, -0.07903789728879929, -0.34333881735801697, -0.246842622756958, 0.1256902664899826, 0.47267404198646545, 0.281219482421875, 0.32635658979415894, -0.00010449870023876429, -0.24343468248844147, 0.1248144581913948, -0.40716925263404846, -0.30415570735931396, 0.02051074057817459, -0.14001135528087616, 0.25290367007255554, -0.2431374490261078, -0.10042371600866318, -0.6214829087257385, -0.10666175931692123, -0.07157469540834427, 0.058737799525260925, 0.3838646411895752, 0.2615119516849518, 0.25223851203918457, -0.12538334727287292, 0.018766488879919052, -0.041631486266851425, 0.31062841415405273, 0.23722831904888153, -0.15412789583206177, -0.004361329600214958, 0.22088977694511414, 0.04007326066493988, 0.030664481222629547, 0.2973974645137787, -0.20160801708698273, -0.0407218299806118, 0.4242480397224426, -0.3073331415653229, 0.09612918645143509, -0.1444907933473587, 0.06313807517290115, 0.4065573513507843, 0.4522714912891388, -0.20494195818901062, -0.28870296478271484, 0.2152062952518463, 0.007737265434116125, -0.25055447220802307, -0.24919256567955017, -0.04043392091989517, -0.2725813090801239, -0.0228525809943676, -0.20609456300735474, -0.13763949275016785, 0.03241266310214996, -0.1914399415254593, 0.019092008471488953, 0.37045466899871826, -0.2671471834182739, -0.30091822147369385, 0.22604058682918549, -0.13459894061088562, -0.31983110308647156, 0.3320155739784241, 0.20188412070274353, 0.1263996809720993, -0.21403445303440094, -0.1842057853937149, 0.24914085865020752, -0.38305899500846863, -0.0471484549343586, -0.04621405154466629, 0.2658657729625702, 0.10865751653909683, 0.25456827878952026, 0.06960973888635635, 0.024816231802105904, 0.15012839436531067, 0.23642516136169434, -0.03541947901248932, -0.0448729544878006, 0.1341966837644577, -0.050639860332012177, -0.0012753568589687347, -0.4389599561691284, 0.03305012360215187, -0.36481016874313354, 0.17468076944351196, -0.0583857037127018, -0.310342013835907, -0.20337148010730743, -0.12876330316066742, -0.01961888186633587, 0.22133904695510864, 0.07943995296955109, 0.4776502251625061, -0.09489304572343826, 0.06497791409492493, -0.05091152340173721, 0.2270582765340805, -0.24902822077274323, 0.36209121346473694, -0.10590387880802155, 0.16599170863628387, -0.14578068256378174, 0.019976846873760223, 0.23154102265834808, -0.3207782208919525, 0.13981923460960388, -0.04993937909603119, 0.17330269515514374, -0.11513327062129974, -0.2575056254863739, 0.19035649299621582, 0.2721082866191864, -0.03160085901618004, 0.14457577466964722, -0.17088380455970764, -0.3705866038799286, 0.041767798364162445, -0.23420250415802002, -0.016772210597991943, 0.29339399933815, -0.22806185483932495, -0.23698939383029938, 0.3036904036998749, -0.15065480768680573, -0.13594162464141846, 0.030542664229869843, 0.20154358446598053, 0.09776703268289566, -0.30385613441467285, -0.05485760420560837, -0.25128477811813354, -0.2239760309457779, 0.1178683266043663, 0.3892635405063629, -0.07017938792705536, 0.11603909730911255, -0.22456227242946625, -0.005119124427437782, -0.008488427847623825, 0.2964230179786682, -0.03317032381892204, 0.22588878870010376, 0.06786369532346725, 0.032679855823516846, 0.19002117216587067, -0.04799220710992813, -0.5481699705123901, -0.22455646097660065, -0.007439847569912672, 0.022699512541294098, 0.03134503960609436, 0.13556396961212158, 0.004555931314826012, 0.6181926727294922, -0.3744720220565796, -0.0381607860326767, 0.33805131912231445, 0.07251465320587158, 0.09976442903280258, -0.13109326362609863, -0.019114093855023384, 0.01185295358300209, 0.23934586346149445, -0.08138424158096313, -0.08089444786310196, -0.06767373532056808, 0.49702611565589905, 0.23344042897224426, -0.17255796492099762, 0.121738001704216, -0.011945236474275589, 0.2894858419895172, 0.0910600945353508, 0.021703999489545822, -0.18551889061927795, 0.06784459203481674, -0.1747249960899353, 0.258867084980011, 0.383089542388916, -0.03891928493976593, -0.41509681940078735, -0.001008749008178711, -0.16621533036231995, -0.20900963246822357, -0.0032305344939231873, 0.29271399974823, 0.24284961819648743, 0.4071400761604309, -0.3336690664291382, -0.01677381992340088, -0.6764429211616516, -0.07113071531057358, -0.09231653064489365, -0.004501409828662872, -0.020000098273158073, -0.07987245917320251, -0.11890952289104462, 0.38517144322395325, 0.5336642861366272, -0.050777800381183624, 0.03146178275346756, 0.08879945427179337, 0.2988005578517914, -0.07260852307081223, 0.265864759683609, -0.2084181308746338, 0.4722292423248291, -0.08954538404941559, -0.5653331279754639, 0.04700160399079323, 0.19990035891532898, 0.09583821147680283, -0.06547689437866211, 0.005532544106245041, 0.1372518688440323, -0.09537440538406372, 0.07784172892570496, 0.2655320167541504, -0.20626768469810486, 0.22088393568992615, -0.015245813876390457, -0.16191084682941437, 0.008832551538944244, 0.05607329681515694, -0.2033195197582245, 0.012015275657176971, 0.0018844101577997208, -0.24244768917560577, 0.04176170006394386, 0.1776091754436493, -0.1071043312549591, 0.14403954148292542, -0.01822894811630249, -0.09818405658006668, -0.2613982856273651, -0.017363468185067177, -0.08523145318031311, -0.1022641658782959, 0.27480897307395935, 0.3855222761631012, -0.11909426003694534, -0.14841550588607788, -0.07941552996635437, 0.19391115009784698, -0.080950066447258, -0.11371734738349915, 0.47924771904945374, 0.06182246655225754, -0.0789259746670723, -0.4903309941291809, 0.007199838757514954, -0.047758907079696655, -0.015073185786604881, -0.014699168503284454, -0.3657623529434204, 0.024548320099711418, -0.5591478943824768, -0.06591977179050446, -0.5107610821723938, 0.1796451210975647, 0.1567973494529724, 0.35384780168533325, 0.10140450298786163, -0.2838631570339203, 0.321027547121048, 0.36695578694343567, 0.22013892233371735, -0.08987681567668915, 0.07928744703531265, -0.1918422132730484, -0.19402842223644257, 0.08484281599521637, 0.23795130848884583, 0.12254002690315247, 0.06494508683681488, 0.06674159318208694, -0.0530557706952095, 0.0843593180179596, -0.14861731231212616, -0.103923499584198, 0.2008405178785324, -0.07755841314792633, 0.08799264580011368, 0.04927606135606766, 0.050036169588565826, 0.17403589189052582, -0.14631599187850952, -0.0014393413439393044, -0.292612761259079, -0.16808867454528809, 0.16363485157489777, 0.007772281765937805, -0.009843064472079277, -0.39688852429389954, -0.380254864692688, -0.019026027992367744, -0.498848557472229, -0.12824901938438416, -0.03625917062163353, 0.2246869057416916, 0.044333331286907196, -0.17437680065631866, 0.024072442203760147, 0.12433970719575882, 0.4566858112812042, -0.15727025270462036, -0.10981579124927521, 0.19766829907894135, -0.3751402497291565, -0.22547222673892975, -0.21043990552425385, -0.09103896468877792, 0.3619688153266907, 0.05246848613023758, -0.09414856135845184, -0.0015295417979359627, 0.16339650750160217, -0.24505676329135895, -0.009935624897480011, 0.05435003340244293, 0.2658222019672394, 0.11493369936943054, -0.1168086975812912, -0.21954169869422913, 0.023520633578300476, 0.050532449036836624, 0.2868497669696808, 0.2303687036037445, -0.15807217359542847, -0.04390428960323334, 0.00797523558139801, 0.3405776023864746, -0.033566221594810486, -0.1394282430410385, 0.19180338084697723, -0.07809095084667206, 0.09992624819278717, 0.083836629986763, 0.1801457554101944, 0.45426836609840393, 0.008078321814537048, -0.13520857691764832, 0.6013185977935791, 0.16536715626716614, 0.04733729362487793, -0.0611424446105957, 0.2469249665737152, -0.3664110600948334, -0.08590111881494522, -0.022958291694521904, -0.12261447310447693, 0.08057905733585358, -0.06978102773427963, 0.1989881992340088, 0.31789839267730713, -0.05154642462730408, 0.26627862453460693, 0.03248605132102966, 0.33584463596343994, 0.001838288502767682, -0.07210681587457657, -0.15898706018924713, -0.31561654806137085, 0.02799765020608902, 0.3300448954105377, 0.033132802695035934, -0.09817525744438171, -0.35147514939308167, -0.06175243854522705, -0.2059914469718933, 0.024125710129737854, -0.22243010997772217, 0.2713909149169922, 0.2328324317932129, 0.08831131458282471, -0.03812522813677788, -0.008395440876483917, -0.3488224446773529, -0.1965791881084442, 0.06519205868244171, -0.14539623260498047, -0.4111146330833435, -0.055100467056035995, 0.2846321761608124, 0.03609388694167137, 0.002689279615879059, -0.05814163759350777, -0.11575397849082947, -0.552930474281311, -0.028726879507303238, 0.169833242893219, 0.14826586842536926, 0.21861030161380768, -0.17437897622585297, -0.12731830775737762, 0.17812444269657135, 0.005089357495307922, 0.1613931506872177, 0.17027726769447327, 0.2613532841205597, 0.19521985948085785, 0.1688321977853775, 0.07518486678600311, -0.07105880975723267, 0.4589058458805084, 0.38650327920913696, -0.044437896460294724, 0.09431756287813187, 0.06677775084972382, -0.16569702327251434, 0.3028511106967926, 0.050418272614479065, 0.33100223541259766, 0.11025791615247726, -0.1322110891342163, -0.05509836971759796, -0.6019113659858704, 0.42752644419670105, 0.1789325624704361, 0.057401143014431, -0.010048282332718372, -0.4498078227043152, 0.36644309759140015, -0.05532536655664444, -0.07616816461086273, 0.027781406417489052, -0.15920349955558777, -0.22617831826210022, 0.32783353328704834, 0.22649097442626953, 1.0557324886322021, -0.1432824283838272, -0.04076926037669182, 0.09892779588699341, -0.08211793005466461, 0.0767417773604393, -0.31988704204559326, 0.23814958333969116, -0.07093489915132523, -0.06175929307937622, -0.00018668174743652344, 0.24123013019561768, -0.15443357825279236, 0.05697891488671303, -0.42245689034461975, 0.03859985992312431, 0.21036721765995026, -0.011685125529766083, -0.03432207554578781, -0.004992842674255371, 0.05231358855962753, -0.22251562774181366, -0.19308477640151978, 0.2036750167608261, -0.1351483017206192, 0.08841729164123535, -0.09635182470083237, -0.01802663318812847, 0.15382559597492218, -0.1409376710653305, -0.0319010466337204, 0.22302165627479553, -0.01132720522582531, -0.28552043437957764, -0.06438253819942474, -0.19611606001853943, -0.0370364636182785, 0.22707611322402954, -0.34336233139038086, 0.24739356338977814, -0.03304484486579895, 0.0383862629532814, 0.13834163546562195, 0.2762380540370941, 0.03890145197510719, 0.12287193536758423, 0.2784726917743683, -0.16569429636001587, 0.25972920656204224, -0.04958372563123703, 0.25973325967788696, 0.022277511656284332, -0.03763163834810257, -0.2906148433685303, 0.09643322229385376, 0.05141439288854599, 0.14923924207687378, 0.25723621249198914, -0.1945396214723587, -0.16821783781051636, 0.2234097719192505, -0.060149163007736206, -0.6823365092277527, 0.26860448718070984, 0.03365067020058632, -0.05258801579475403, -0.014658074826002121, 0.17200346291065216, 0.1937294602394104, -0.20562462508678436, -0.031504012644290924, 0.19556647539138794, -0.06082429736852646, -0.3801857531070709, -0.42881590127944946, -0.23414838314056396, -0.09884803742170334, 0.02946966513991356, 0.09792321175336838, -0.3611578941345215, 0.14738328754901886, 0.5644741058349609, -0.03584897518157959, -0.1570376455783844, -0.27886295318603516, 0.20006009936332703, -0.17018549144268036, 0.09732642024755478, 0.08608373999595642, 0.5324313640594482, -0.13319924473762512, 0.22801831364631653, -0.0996868833899498, 0.25333064794540405, -0.44818127155303955, -0.1555621176958084, -0.4357392191886902, 0.4334951639175415, -0.04239283502101898, -0.11468865722417831, 0.06958553940057755, -0.06410752236843109, 0.27567848563194275, 0.07565937936306, -0.09462792426347733, -0.2677781283855438, -0.02592666633427143, 0.07982310652732849, 0.14190387725830078, 0.08415823429822922, -0.15236176550388336, 0.3329120874404907, -0.33649301528930664, -0.22002778947353363, 0.32655051350593567, 0.2005954086780548, -0.05331110209226608, 0.32328706979751587, -0.07275304198265076, -0.020612798631191254, 0.012121208012104034, -0.08390491455793381, 0.1334695667028427, 0.17652365565299988, 0.014723729342222214, 0.10952838510274887, 0.13582190871238708, -0.208904430270195, 0.1125444769859314, 0.2479683756828308, 0.3644375205039978, -0.25715285539627075, 0.26285672187805176, 0.09267616271972656, 0.03905956819653511, 0.23215550184249878, 0.6654081344604492, 0.09813928604125977, -0.000772551167756319, -0.25438857078552246, 0.15838128328323364, 0.444545716047287, -0.24278557300567627, 0.004215610679239035, -0.555668830871582, -0.2629688084125519, 0.19848895072937012, 0.21556788682937622, -0.06384749710559845, -0.2041836529970169, -0.11554446816444397, 0.012432362884283066, -0.11260668188333511, -0.02852538228034973, 0.007502963300794363, 0.23120540380477905, 0.08351351320743561, -0.09034988284111023, -0.04918178915977478, -0.20329228043556213, 0.037811413407325745, 0.40396976470947266, 0.007707588374614716, 0.5663604736328125, 0.2026456594467163, 0.2588070333003998, 0.061327263712882996, 0.03918464854359627, -0.06021915003657341, 0.29877835512161255, -0.14480575919151306, 0.37997281551361084, -0.12335114181041718, 0.45662838220596313, -0.2239583432674408, -0.16225497424602509, -0.25351381301879883, 0.1247859001159668, -0.23024171590805054, -0.12287798523902893, 0.004566527903079987, -0.26927420496940613, -0.033942658454179764, 0.013291973620653152, 0.07114287465810776, 0.27597635984420776, -0.02175043523311615, -0.0007496029138565063, 0.13040348887443542, -0.008394567295908928, -0.129239022731781, 0.02839042618870735, 0.3064994215965271, -0.29776814579963684, 0.3046829104423523, 0.3741050362586975, -0.020856507122516632, 0.207950621843338, 0.36676648259162903, 0.2912706136703491, 0.11628614366054535, -0.2981623113155365, 0.0292447991669178, -0.07715970277786255, -0.02212640270590782, -0.1009693369269371, 0.33790674805641174, 0.26253563165664673, 0.3141918480396271, 0.22411495447158813, 0.21914279460906982, -0.2802015542984009, 0.18965768814086914, -0.015835296362638474, -0.14960631728172302, 0.05563535913825035, 0.3040377199649811, 0.0036886930465698242, 0.005247868597507477, -0.17463399469852448, 0.04419208690524101, -0.6745702028274536, -0.21936535835266113, 0.03207779675722122, -0.2078758180141449, 0.18616223335266113, -0.19321516156196594, 0.1298995018005371, 0.013716785237193108, 0.5280650854110718, 0.1954893171787262, 0.18486478924751282, 0.09357333928346634, -0.2953622341156006, -0.27516549825668335, 0.04236888140439987, 0.315133661031723, 0.022745510563254356, -0.27157384157180786, 0.13542579114437103, 0.3042466640472412, 0.13861553370952606, -0.5134696364402771, -0.02238425612449646, 0.04717496037483215, 0.31297263503074646, -0.20739220082759857, 0.3606789708137512, -0.14822138845920563, 0.13252940773963928, -0.04035085067152977, -0.2700541913509369, -0.2355538159608841, -0.36041706800460815, 0.17358937859535217, 0.1764334738254547, 0.2119525671005249, 0.06783343851566315, -0.08827947080135345, 0.015706386417150497, -0.15590918064117432, 0.44645601511001587, -0.3855411112308502, -0.0427052266895771, 0.13932399451732635, 0.06590960174798965, -0.20020192861557007, -0.3122698664665222, -0.17095080018043518, 0.3210391104221344, 0.2248518168926239, 0.38308316469192505, -0.15349438786506653, -0.1580287367105484, 0.07113233953714371, 0.3729650676250458, -0.23645178973674774, 0.0506320521235466, -0.37692973017692566, -0.24578338861465454, 0.02393975853919983, 0.18787482380867004, 0.12923337519168854, -0.10240297764539719, -0.4255017638206482, -0.5281776785850525, 0.30489492416381836, 0.11317143589258194, -0.24404913187026978, -0.45018407702445984, 0.3223857879638672, 0.1904885619878769, 0.0026970654726028442, -0.6447272300720215, 0.22251489758491516, -0.039206672459840775, 0.17356130480766296, -0.0894956961274147, 0.3659561276435852, -0.018861740827560425, -0.22354091703891754, -0.15414369106292725, -0.16731756925582886, 0.20738652348518372, 0.026492634788155556, -0.15504197776317596, -0.4224492311477661 ]
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.44193917512893677, -0.16378001868724823, 0.08767956495285034, -0.16250595450401306, 0.13949280977249146, -0.022706206887960434, 0.42936640977859497, 0.22887471318244934, 0.0989457219839096, 0.14454549551010132, 0.1754797101020813, 0.6159747838973999, -0.1407674252986908, 0.10084474831819534, -0.1938813030719757, 0.19400347769260406, 0.02293555438518524, 0.06182760000228882, 0.0973690003156662, -0.005186934024095535, -0.27382153272628784, -0.21245843172073364, -0.45375025272369385, 0.11771436035633087, -0.19084589183330536, -0.09941364079713821, 0.28195929527282715, -0.06763837486505508, -0.1347370743751526, -0.6845767498016357, 0.3213672935962677, 0.06557965278625488, 0.1590012162923813, 0.6035618782043457, -0.00013190129538998008, -0.0627550259232521, 0.5607284307479858, 0.1790856420993805, -0.2247186005115509, -0.17187325656414032, -0.5930761098861694, -0.3090307414531708, 0.39252594113349915, -0.07069800794124603, 0.029787637293338776, -0.3474462032318115, -0.1272033303976059, -0.2612382471561432, 0.23456798493862152, 0.1812131702899933, -0.007189154624938965, 0.24828481674194336, -0.03723974525928497, 0.5450520515441895, 0.26355841755867004, 0.19938477873802185, -0.27681905031204224, 0.15516911447048187, 0.4623754918575287, -0.23476260900497437, -0.3073786497116089, 0.30434224009513855, -0.33918991684913635, 0.08919061720371246, 0.3648151159286499, -0.11117148399353027, 0.651395857334137, -0.5470013618469238, 0.3078685700893402, 0.1294252574443817, 0.3183060884475708, -0.28568875789642334, -0.3883459270000458, -0.19222021102905273, -0.04621293768286705, -0.07142669707536697, 0.16431137919425964, -0.04508310556411743, -0.3889567255973816, 0.1488925665616989, -0.7792398929595947, -0.12063225358724594, -0.24463675916194916, 0.2550939917564392, 0.19097504019737244, 0.27444231510162354, -0.027682118117809296, 0.1187567338347435, 0.11788837611675262, -0.1365889310836792, 0.060777679085731506, -0.25452932715415955, 0.011691737920045853, 0.24831880629062653, -0.4572414755821228, -0.06157204508781433, 0.3918225169181824, 0.1325472891330719, 0.14989402890205383, -0.09308156371116638, -0.15620894730091095, 0.1936071515083313, 0.16164343059062958, 0.1653100848197937, 0.28754398226737976, 0.14979912340641022, 0.5941344499588013, 0.28321197628974915, 0.2572876214981079, 0.1503211259841919, 0.1399829089641571, 0.2325320839881897, 0.39868593215942383, -0.4250464141368866, 0.4426827132701874, 0.3641912043094635, 0.32085365056991577, -0.2956037223339081, 0.05458986014127731, 0.04054100066423416, -0.4391990005970001, -0.07710429280996323, 0.2471940666437149, -0.13803896307945251, 0.4477904140949249, -0.33117857575416565, 0.15456180274486542, 0.23596931993961334, -0.17458443343639374, 0.0984208881855011, 0.009688857942819595, -0.27650904655456543, -0.2854011654853821, 0.18432828783988953, 0.2677907347679138, -0.21366198360919952, 0.20890077948570251, 0.1451047956943512, -0.2515016794204712, 0.04893451929092407, 0.3056747615337372, 0.015948468819260597, 0.5277965068817139, 0.4136827886104584, -0.27339890599250793, 0.2552737891674042, -0.011760100722312927, 0.014866113662719727, -0.12866061925888062, 0.4761303961277008, -0.07665041834115982, -0.4540790021419525, -0.18195122480392456, -0.05783424898982048, -0.41701430082321167, 0.16425809264183044, -0.5429643392562866, 0.3450356423854828, 0.2866152822971344, -0.034627266228199005, 0.3771917521953583, -0.1488112211227417, -0.5182574391365051, -0.09828685969114304, 0.18852084875106812, 0.4915156960487366, -0.6797258853912354, -0.1832248568534851, -0.3486943244934082, -0.2553296983242035, 0.20474693179130554, 0.031141769140958786, -0.2359318733215332, 0.01983978971838951, -0.05902290344238281, 0.3680260181427002, -0.015865735709667206, -0.1317312866449356, -0.30919694900512695, 0.3006395399570465, -0.05163959041237831, 0.11743142455816269, 0.06482497602701187, -0.24047429859638214, -0.11727139353752136, -0.23521512746810913, 0.06694533675909042, -0.05427514761686325, 0.20404265820980072, -0.19347572326660156, -0.23015636205673218, -0.2625630795955658, 0.05438399314880371, 0.005721744149923325, -0.12770892679691315, 0.09636029601097107, 0.16686999797821045, -0.40693411231040955, 0.45885607600212097, 0.018678981810808182, 0.1751149296760559, 0.23143143951892853, 0.3669460415840149, -0.4304535388946533, -0.02623310312628746, -0.08060045540332794, -0.12457456439733505, 0.19553250074386597, -0.10730329155921936, -0.08750787377357483, -0.3066434860229492, -0.3172888159751892, 0.09357308596372604, 0.003149794414639473, -0.2190503627061844, -0.20501653850078583, -0.13744758069515228, -0.24007681012153625, -0.1346873641014099, -0.18130385875701904, -0.28457358479499817, -0.20896600186824799, -0.37237951159477234, 0.0575658343732357, -0.14725473523139954, 0.05751246213912964, 0.2907566428184509, -0.3923132121562958, 0.07556883245706558, 0.16883714497089386, 0.23681160807609558, 0.12075921893119812, -0.12592467665672302, 0.32437047362327576, -0.14172717928886414, 0.5567006468772888, -0.10046804696321487, 0.2094574123620987, 0.12113770842552185, -0.12093393504619598, 0.02659192681312561, 0.16092216968536377, -0.2660253643989563, 0.2535665035247803, 0.10314035415649414, 0.01713699847459793, 0.4108290672302246, 0.2966621518135071, -0.08132946491241455, -0.022741355001926422, 0.01759280078113079, -0.12527987360954285, -0.26961079239845276, -0.4073411524295807, 0.24049311876296997, 0.2748618423938751, 0.4156724512577057, -0.045531824231147766, 0.1888781189918518, 0.030358262360095978, 0.5161702036857605, 0.04422890022397041, 0.10402610898017883, -0.016276203095912933, -0.20683839917182922, -0.18987664580345154, 0.31385934352874756, -0.09905968606472015, 0.3751358389854431, 0.11184559017419815, 0.21997356414794922, 0.14965930581092834, -0.02129162847995758, -0.04909979924559593, 0.13073879480361938, 0.2823374271392822, 0.09096013009548187, 0.2894971966743469, 0.08593983203172684, -0.1233440712094307, -0.18330860137939453, -0.16384920477867126, -0.17815296351909637, 0.04418139159679413, -0.500053346157074, 0.09473457932472229, -0.29148033261299133, -0.19456681609153748, -0.030008483678102493, 0.085610531270504, -0.26026442646980286, 0.03204052895307541, 0.17474454641342163, 0.09062260389328003, -0.22275492548942566, 0.4843934178352356, 0.2578098475933075, -0.10744903981685638, 0.19332927465438843, -0.14572888612747192, -0.472420871257782, -0.08663343638181686, -0.12539300322532654, -0.18234333395957947, -0.018942145630717278, -0.21488243341445923, -0.12846145033836365, 0.22282665967941284, -0.1062045618891716, -0.1972336620092392, -0.06309135258197784, -0.04968678951263428, -0.10866501927375793, 0.22929978370666504, 0.01868879795074463, 0.06871268898248672, -0.09760787338018417, 0.19988997280597687, -0.09564132243394852, -0.32642704248428345, -0.016680322587490082, -0.13595128059387207, -0.24077902734279633, 0.2194424867630005, -0.1885673999786377, 0.06686665862798691, -0.24788148701190948, -0.14159135520458221, -0.07911494374275208, -0.3582979142665863, 0.12852756679058075, 0.26758095622062683, 0.1696367859840393, 0.3616364002227783, -0.16216281056404114, -0.28074267506599426, 0.09953804314136505, -0.5332375764846802, 0.24865123629570007, -0.0036415753420442343, 0.08050292730331421, -0.07062117755413055, 0.08757269382476807, -0.030748721212148666, 0.3047383427619934, -0.3325499892234802, -0.06668250262737274, -0.241240993142128, 0.042278070002794266, 0.06579823046922684, 0.0382695347070694, 0.23399899899959564, 0.05008075758814812, 0.023520393297076225, -0.07352186739444733, -0.3944573700428009, 0.0005840957164764404, 0.2307644486427307, 0.35198158025741577, 0.18082287907600403, 0.2470564842224121, 0.06386223435401917, 0.4577195644378662, 0.5331853628158569, -0.045776646584272385, 0.0876518115401268, 0.20528264343738556, 0.21067170798778534, 0.09152550995349884, -0.13753661513328552, -0.22290602326393127, 0.04650694876909256, -0.19456471502780914, 0.10779264569282532, 0.07197462767362595, -0.2971439063549042, 0.15068356692790985, -0.5093949437141418, 0.005221664905548096, -0.3185647130012512, -0.22712653875350952, -0.1176442801952362, 0.3608938753604889, -0.1305043250322342, 0.2869963049888611, -0.14697501063346863, -0.22820919752120972, -0.15037116408348083, 0.09297066926956177, 0.32581984996795654, -0.007566459942609072, -0.022230813279747963, -0.14276131987571716, -0.7272331714630127, 0.3539392948150635, 0.09460971504449844, 0.1905517876148224, -0.23277989029884338, 0.04966289550065994, 0.10377755761146545, 0.3628753125667572, 0.22939744591712952, -0.5157280564308167, 0.5419456362724304, -0.10002094507217407, 0.06815776228904724, -0.4487815797328949, -0.12843579053878784, -0.0385269820690155, 0.4695371091365814, 0.28559303283691406, 0.333414763212204, 0.03060895949602127, -0.25518226623535156, -0.033653900027275085, 0.17086218297481537, 0.10286945104598999, -0.2805168032646179, -0.4779946506023407, 0.1124444380402565, -0.11995165050029755, 0.1532059758901596, 0.127065971493721, -0.14903628826141357, -0.29054608941078186, -0.4047376215457916, 0.4099109172821045, -0.21081820130348206, -0.039225563406944275, 0.03438907489180565, 0.040403928607702255, 0.029397455975413322, -0.1926472783088684, 0.3561827540397644, -0.1313866227865219, 0.1562400460243225, 0.3615209758281708, 0.12008567154407501, -0.3876292109489441, -0.041524648666381836, -0.24098044633865356, 0.2633202373981476, 0.35915935039520264, -0.31822270154953003, 0.2258411943912506, 0.25112849473953247, 0.21787995100021362, -0.0568469800055027, -0.39265531301498413, 0.37672528624534607, 0.08252006024122238, -0.24413691461086273, 0.03668120503425598, 0.36152032017707825, 0.28462839126586914, 0.004882842302322388, 0.3582073152065277, -0.14397042989730835, -0.355771541595459, 0.1363278031349182, 0.19284534454345703, 0.670352578163147, 0.04642397165298462, -0.05550561472773552, -0.11470942944288254, -0.021610822528600693, 0.20488984882831573, 0.2880737781524658, 0.3241162896156311, -0.07973591238260269, -0.02708221599459648, -0.07312428206205368, -0.21701382100582123, 0.36601966619491577, 0.42605823278427124, -0.06114799901843071, 0.10538686066865921, -0.3908005952835083, 0.186841681599617, 0.02167636528611183, 0.09572701156139374, 0.0689624547958374, -0.10616971552371979, -0.5644493699073792, -0.10388927906751633, 0.138388991355896, 0.12611590325832367, 0.09428652375936508, 0.02760494500398636, 0.2706149220466614, -0.18548068404197693, -0.29280149936676025, 0.11063284426927567, -0.003472740761935711, -0.011296398937702179, -0.060146477073431015, -0.42107170820236206, 0.35737645626068115, 0.1404002159833908, -0.004003264009952545, 0.04177402704954147, -0.3574363887310028, -0.11729612946510315, 0.13701775670051575, 0.3045186698436737, -0.08250308781862259, -0.05776267126202583, 0.31070008873939514, -0.019249189645051956, -0.37642011046409607, 0.3355257213115692, -0.048745203763246536, -0.3803365230560303, -0.10268840193748474, 0.009149983525276184, 0.18324999511241913, -0.024840693920850754, 0.3616974949836731, -0.09160017967224121, 0.216423898935318, -0.07545268535614014, -0.018480844795703888, 0.21745681762695312, -0.05910879746079445, 0.4294334053993225, -0.40747252106666565, -0.5229225754737854, -0.09270066022872925, 0.43900224566459656, -0.06347255408763885, 0.1430635005235672, 0.4201374053955078, 0.1718606799840927, -0.09514474868774414, -0.14412343502044678, -0.07774890959262848, 0.5916374921798706, -0.20728227496147156, 0.07253668457269669, 0.26950883865356445, 0.27782142162323, 0.1658398061990738, 0.050128526985645294, -0.20872916281223297, 0.21751338243484497, -0.42123275995254517, -0.25437799096107483, -0.3175618052482605, -0.008860282599925995, -0.07374094426631927, 0.24212822318077087, -0.1627405285835266, 0.21458670496940613, 0.32625439763069153, -0.12387585639953613, -0.06870615482330322, -0.15038616955280304, -0.041536878794431686, -0.0758056491613388, 0.019660556688904762, 0.4972255825996399, 0.25904345512390137, -0.058503612875938416, -0.21448293328285217, -0.027156535536050797, -0.2456522285938263, 0.001147022470831871, -0.048767101019620895, 0.20120619237422943, 0.023199021816253662, -0.19600774347782135, 0.11446116119623184, -0.16259923577308655, -0.0466732494533062, -0.06107994168996811, 0.3420162796974182, 0.4181251525878906, 0.20394854247570038, 0.4495311379432678, -0.15160521864891052, 0.0352695994079113, -0.18400514125823975, -0.17118732631206512, -0.1577930748462677, 0.07316264510154724, -0.021801477298140526, 0.24253903329372406, 0.24668465554714203, 0.0664243996143341, 0.15736360847949982, -0.14603903889656067, -0.008736953139305115, 0.5891338586807251, -0.10700548440217972, 0.05464756861329079, -0.08479248732328415, -0.1332150548696518, 0.2813194692134857, 0.1972283571958542, -0.20999598503112793, -0.36871641874313354, -0.18187516927719116, -0.013719892129302025, -0.10132377594709396, -0.29786890745162964, 0.28766828775405884, 0.17619359493255615, 0.0931803435087204, 0.07620547711849213, -0.30278974771499634, 0.007699452340602875, 0.25026747584342957, 0.19595938920974731, -0.11391571909189224, -0.20096483826637268, 0.21309329569339752, 0.3879196345806122, -0.14460161328315735, -0.04775472357869148, 0.42813512682914734, 0.21704255044460297, 0.2008771449327469, 0.2702791690826416, 0.21176984906196594, 0.4954337179660797, 0.16918215155601501, 0.10413990914821625, -0.21144232153892517, -0.22126010060310364, -0.3109474182128906, 0.2509046792984009, -0.33407142758369446, -0.11394452303647995, 0.17985209822654724, 0.2877371311187744, -0.10510225594043732, -0.2036348432302475, 0.07618938386440277, -0.1378474235534668, -0.08043563365936279, 0.015554837882518768, -0.12612730264663696, 0.071787990629673, 0.10989345610141754, -0.0726456344127655, -0.056133393198251724, 0.3540787696838379, 0.38645073771476746, -0.08856740593910217, -0.008713677525520325, -0.03954734653234482, 0.001240663230419159, 0.17790552973747253, 0.3660143315792084, 0.05563214048743248, -0.23273296654224396, -0.20343448221683502, 0.060344234108924866, 0.13899296522140503, 0.28186285495758057, 0.30877357721328735, 0.28921762108802795, 0.12884120643138885, -0.037247177213430405, 0.14571183919906616, -0.08286556601524353, -0.08707566559314728, 0.40283817052841187, 0.015633724629878998, -0.112982839345932, 0.16289310157299042, -0.11517354846000671, 0.11288268864154816, 0.24302762746810913, 0.09320417791604996, 0.30820661783218384, -0.32138171792030334, 0.4500483572483063, 0.19368045032024384, -0.27293387055397034, 0.25649750232696533, -0.1527060866355896, -0.12162801623344421, -0.0642862319946289, 0.6507230997085571, 0.0050391629338264465, -0.01753929816186428, -0.37070903182029724, -0.027963843196630478, -0.2767977714538574, 0.19028368592262268, 0.40777072310447693, 0.1590861827135086, -0.24761682748794556, 0.11713196337223053, -0.42429739236831665, 0.06802081316709518, 0.15523533523082733, -0.004145119339227676, 0.06693859398365021, -0.020929845049977303, -0.37798941135406494, 0.3652941584587097, 0.4599263668060303, -0.6130452156066895, -0.1873299926519394, -0.22898778319358826, -0.07986228168010712, -0.026641253381967545, 0.00736592710018158, 0.101870596408844, -0.1415024995803833, -0.2839634418487549, 0.2648756504058838, -0.2523234188556671, -0.14852535724639893, -0.17041175067424774, -0.30145734548568726, 0.39831072092056274, 0.14246580004692078, 0.5048655271530151, 0.22643549740314484, 0.054314564913511276, -0.03750983998179436, -0.02920760028064251, -0.17851442098617554, 0.16870403289794922, -0.22684407234191895, 0.28165462613105774, -0.06070693954825401, 0.4257083833217621, -0.506567656993866, 0.18212327361106873, -0.1935371458530426, 0.07656357437372208, -0.25710195302963257, -0.0011259722523391247, 0.04922661930322647, 0.12851642072200775, 0.13171496987342834, -0.14357472956180573, -0.21193139255046844, 0.016198337078094482, 0.0666767954826355, 0.3037753701210022, -0.2902292013168335, -0.16409653425216675, 0.3946855068206787, -0.580870509147644, -0.25455015897750854, -0.18750332295894623, 0.497303307056427, 0.08820540457963943, -0.2843630015850067, -0.5184582471847534, -0.1538223922252655, 0.22018039226531982, 0.040552761405706406, -0.21244165301322937, 0.3295533359050751, -0.24283158779144287, 0.3919384777545929, -0.078781858086586, 0.1403309404850006, 0.2935987114906311, 0.1744740903377533, 0.052351322025060654, -0.3468528985977173 ]
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.43882739543914795, -0.20373660326004028, 0.07964253425598145, -0.15226103365421295, 0.16921865940093994, -0.015966162085533142, 0.4777556359767914, 0.20219726860523224, 0.03183535486459732, 0.14753557741641998, 0.16819943487644196, 0.5794955492019653, -0.1528971940279007, 0.10003120452165604, -0.18351444602012634, 0.19449588656425476, 0.026312343776226044, 0.04243768751621246, 0.04576154798269272, 0.0004412718117237091, -0.260673463344574, -0.14668956398963928, -0.47618067264556885, 0.094164177775383, -0.22631627321243286, -0.06946925818920135, 0.2926199436187744, 0.00354047492146492, -0.11762533336877823, -0.6455768942832947, 0.3015625476837158, 0.09003817290067673, 0.14311367273330688, 0.6660017371177673, -0.0001332489773631096, -0.08780256658792496, 0.5361054539680481, 0.1657676249742508, -0.1852538138628006, -0.1453343778848648, -0.5602222084999084, -0.36298006772994995, 0.3905274569988251, -0.061799973249435425, 0.04203879088163376, -0.30053457617759705, -0.15742531418800354, -0.2664180397987366, 0.25404632091522217, 0.17186759412288666, -0.01691301539540291, 0.3063342273235321, -0.10733950138092041, 0.548204243183136, 0.23764020204544067, 0.1451120674610138, -0.30867764353752136, 0.1676183044910431, 0.47501665353775024, -0.2120753675699234, -0.2969585955142975, 0.36103686690330505, -0.319911390542984, 0.10285723209381104, 0.30663833022117615, -0.07691796869039536, 0.6109771132469177, -0.5626847743988037, 0.33434173464775085, 0.17697182297706604, 0.34724190831184387, -0.314115434885025, -0.38680699467658997, -0.1731606125831604, -0.06949936598539352, -0.09286729246377945, 0.2058786153793335, -0.09217195212841034, -0.3756272792816162, 0.1914186328649521, -0.7989662289619446, -0.1072387620806694, -0.23272110521793365, 0.2482955902814865, 0.1075981855392456, 0.2289111465215683, -0.07189032435417175, 0.09634946286678314, 0.07850736379623413, -0.12189614772796631, 0.10315066576004028, -0.2171088606119156, 0.004403308033943176, 0.24919550120830536, -0.5141400098800659, -0.10635276138782501, 0.36154142022132874, 0.07199837267398834, 0.1568300426006317, -0.05956932157278061, -0.1863836646080017, 0.21915188431739807, 0.11588972806930542, 0.13400059938430786, 0.25540581345558167, 0.1776842474937439, 0.5470442771911621, 0.237723246216774, 0.26364296674728394, 0.12370921671390533, 0.150648295879364, 0.20266103744506836, 0.39756718277931213, -0.43578875064849854, 0.4497312605381012, 0.3733794093132019, 0.3258313536643982, -0.2783273756504059, 0.007087839767336845, 0.09318796545267105, -0.3374134600162506, -0.03806691616773605, 0.23725347220897675, -0.08666624873876572, 0.44556838274002075, -0.2540489733219147, 0.14595745503902435, 0.26787304878234863, -0.1896035373210907, 0.02221870794892311, 0.018625939264893532, -0.28873348236083984, -0.25597187876701355, 0.18819347023963928, 0.24046693742275238, -0.15525256097316742, 0.21490147709846497, 0.1360747516155243, -0.14729543030261993, 0.038855090737342834, 0.3051346242427826, -0.019165493547916412, 0.5638678073883057, 0.43353793025016785, -0.28858137130737305, 0.26764145493507385, 0.02486583963036537, 0.025225825607776642, -0.09636659920215607, 0.47030845284461975, -0.05859074741601944, -0.4574699401855469, -0.18706709146499634, -0.067159004509449, -0.40467578172683716, 0.1836811602115631, -0.5151901841163635, 0.38451260328292847, 0.2827964425086975, -0.009050685912370682, 0.4024594724178314, -0.14701685309410095, -0.5378515720367432, -0.08802612125873566, 0.23017045855522156, 0.5276047587394714, -0.6987102031707764, -0.17686134576797485, -0.34210461378097534, -0.24912559986114502, 0.18956543505191803, 0.03269784525036812, -0.20991145074367523, 0.05402795597910881, -0.09551023691892624, 0.3148597478866577, 0.07230816781520844, -0.1670958548784256, -0.36509472131729126, 0.35686495900154114, -0.06522190570831299, 0.1153445616364479, 0.07759637385606766, -0.21853187680244446, -0.11567894369363785, -0.2229301780462265, 0.06756994128227234, -0.061546169221401215, 0.17154793441295624, -0.208000048995018, -0.23562178015708923, -0.2607075870037079, 0.05449625104665756, -0.0067108869552612305, -0.08514951169490814, 0.14192143082618713, 0.1761007308959961, -0.43564215302467346, 0.4553637206554413, 0.07396996766328812, 0.16930678486824036, 0.25822779536247253, 0.3339022099971771, -0.44635915756225586, -0.042659126222133636, -0.10580653697252274, -0.1639450490474701, 0.20828494429588318, -0.10326360911130905, -0.09458781778812408, -0.2895021438598633, -0.3256092667579651, 0.07065745443105698, 0.0064347367733716965, -0.23937873542308807, -0.20696017146110535, -0.15215995907783508, -0.23380419611930847, -0.1510617733001709, -0.20363637804985046, -0.3345758318901062, -0.17617101967334747, -0.3320503830909729, 0.04177986457943916, -0.10157832503318787, 0.05621384084224701, 0.3076053261756897, -0.36174026131629944, 0.05210208147764206, 0.1781620979309082, 0.22827649116516113, 0.1035376563668251, -0.12188874930143356, 0.36526983976364136, -0.14378781616687775, 0.521851658821106, -0.047637514770030975, 0.1986076831817627, 0.11010941118001938, -0.16104456782341003, 0.0058754682540893555, 0.17503124475479126, -0.2611902058124542, 0.27902331948280334, 0.15034541487693787, 0.06619713455438614, 0.3930862843990326, 0.2827351987361908, -0.09471242129802704, -0.016727669164538383, 0.001339958980679512, -0.12630464136600494, -0.2820742726325989, -0.4369443953037262, 0.24767205119132996, 0.26226168870925903, 0.3680642545223236, -0.10686680674552917, 0.10749843716621399, 0.07353484630584717, 0.49142560362815857, 0.05190061405301094, 0.10975202918052673, -0.06057988107204437, -0.2102837860584259, -0.15436255931854248, 0.2606513500213623, -0.09560316801071167, 0.43118947744369507, 0.09335353225469589, 0.2250618040561676, 0.18791840970516205, 0.007255354896187782, -0.04697263240814209, 0.11445216089487076, 0.2845510244369507, 0.03797515109181404, 0.32968634366989136, 0.07634511590003967, -0.11056544631719589, -0.15640638768672943, -0.1601744145154953, -0.14600181579589844, 0.024058155715465546, -0.5067861676216125, 0.13013266026973724, -0.3039032518863678, -0.1741355061531067, -0.029542509466409683, 0.04317527636885643, -0.27863767743110657, -0.01104741357266903, 0.18118026852607727, 0.07007110863924026, -0.20745667815208435, 0.46608442068099976, 0.2094029039144516, -0.08738084137439728, 0.19578954577445984, -0.12631754577159882, -0.4703637957572937, -0.057853814214468, -0.1195598617196083, -0.19127611815929413, -0.04446545988321304, -0.19125479459762573, -0.12275706231594086, 0.1609009951353073, -0.10070647299289703, -0.2174825370311737, -0.05130340903997421, -0.0420953705906868, -0.07917620241641998, 0.304110050201416, 0.023887038230895996, 0.0657120868563652, -0.12461703270673752, 0.2760327458381653, -0.05700284242630005, -0.3113241195678711, -0.0033403709530830383, -0.12410598248243332, -0.24160045385360718, 0.19213157892227173, -0.16500936448574066, 0.08018416166305542, -0.22757863998413086, -0.14456622302532196, -0.14527148008346558, -0.4155721366405487, 0.1291889101266861, 0.2729189395904541, 0.12856009602546692, 0.36160585284233093, -0.1745835542678833, -0.25207868218421936, 0.07682142406702042, -0.586948037147522, 0.2583812177181244, -0.028689052909612656, 0.030861075967550278, -0.045702625066041946, 0.0982181578874588, -0.03204948082566261, 0.27122652530670166, -0.3657184839248657, -0.11378207802772522, -0.21948927640914917, 0.04202190414071083, 0.05286034196615219, 0.04950498044490814, 0.21273764967918396, 0.017099030315876007, 0.03311276435852051, -0.08137950301170349, -0.3952864706516266, -0.05477350205183029, 0.20420071482658386, 0.3584372401237488, 0.14973226189613342, 0.27889159321784973, 0.06660066545009613, 0.5233478546142578, 0.5273794531822205, 0.0182272270321846, 0.0799967348575592, 0.20117820799350739, 0.25990357995033264, 0.08844360709190369, -0.15079492330551147, -0.25430917739868164, 0.0642150416970253, -0.1609964519739151, 0.13072973489761353, 0.05519208684563637, -0.15447267889976501, 0.14478276669979095, -0.4346105754375458, -0.004978775978088379, -0.32199499011039734, -0.23290686309337616, -0.17152942717075348, 0.35730376839637756, -0.11106181144714355, 0.2786034643650055, -0.12469227612018585, -0.19732028245925903, -0.14064539968967438, 0.19760861992835999, 0.24909186363220215, -0.01530415378510952, -0.050352346152067184, -0.11228664219379425, -0.7124305963516235, 0.35198909044265747, 0.07588964700698853, 0.2859664261341095, -0.24449028074741364, 0.011981595307588577, 0.12276174873113632, 0.35034140944480896, 0.280055433511734, -0.4966638684272766, 0.5247855186462402, -0.09292629361152649, 0.019452422857284546, -0.42605137825012207, -0.14608873426914215, -0.04236963763833046, 0.45498308539390564, 0.3069416582584381, 0.34576284885406494, 0.07297942787408829, -0.2809368073940277, -0.038724467158317566, 0.1553349494934082, 0.06935693323612213, -0.32660630345344543, -0.5476048588752747, 0.1364571750164032, -0.09818697720766068, 0.15749236941337585, 0.12470100075006485, -0.14160795509815216, -0.272805392742157, -0.3768729865550995, 0.37260982394218445, -0.25678518414497375, -0.01511894166469574, 0.043017979711294174, 0.03346889466047287, 0.016206169500947, -0.15539351105690002, 0.3270557224750519, -0.1485348790884018, 0.09307150542736053, 0.385893851518631, 0.12865900993347168, -0.3814183175563812, 0.009561016224324703, -0.22514848411083221, 0.26443424820899963, 0.41589295864105225, -0.34621575474739075, 0.23578572273254395, 0.27548274397850037, 0.251071959733963, -0.019245430827140808, -0.36224111914634705, 0.3614010810852051, 0.08450353145599365, -0.24367450177669525, 0.07305543124675751, 0.3501397371292114, 0.2230270951986313, 0.031557597219944, 0.34761592745780945, -0.14591139554977417, -0.29889509081840515, 0.06855340301990509, 0.14009366929531097, 0.732711672782898, 0.06179409474134445, -0.014404531568288803, -0.0860866978764534, 0.018006525933742523, 0.14297470450401306, 0.26866990327835083, 0.3113032579421997, -0.07860247790813446, -0.07178701460361481, -0.10810660570859909, -0.23148804903030396, 0.37629589438438416, 0.40701955556869507, -0.0584804005920887, 0.15552181005477905, -0.37350499629974365, 0.19734369218349457, 0.025992337614297867, 0.0688595250248909, 0.05706731230020523, -0.09090457856655121, -0.56629878282547, -0.11674574017524719, 0.20053164660930634, 0.10181480646133423, 0.05230237543582916, 0.03207770735025406, 0.2647802233695984, -0.14047002792358398, -0.2725673317909241, 0.09081485867500305, -0.06597957015037537, -0.034845687448978424, 0.029049379751086235, -0.4781438708305359, 0.3578084409236908, 0.11155100166797638, 0.050847943872213364, 0.025351308286190033, -0.35424643754959106, -0.11770398914813995, 0.16609662771224976, 0.33589932322502136, -0.06194741278886795, -0.08079743385314941, 0.3207848072052002, -0.006728164851665497, -0.36361658573150635, 0.3760664761066437, -0.04155901446938515, -0.3307172656059265, -0.04056362807750702, 0.03477942571043968, 0.2050369828939438, -0.023002009838819504, 0.36661869287490845, -0.0951419472694397, 0.26708707213401794, -0.09232015907764435, -0.029413525015115738, 0.2634586691856384, -0.058851853013038635, 0.4001791775226593, -0.4039231538772583, -0.5432720184326172, -0.08820493519306183, 0.39989230036735535, -0.07735159248113632, 0.15877580642700195, 0.3989562392234802, 0.19260592758655548, -0.09058888256549835, -0.14879773557186127, -0.024289801716804504, 0.5724536180496216, -0.24458914995193481, 0.08556380867958069, 0.2558707892894745, 0.2815244793891907, 0.17191074788570404, 0.0982377827167511, -0.23008020222187042, 0.16940432786941528, -0.45674118399620056, -0.283752977848053, -0.3306884467601776, -0.03205157071352005, -0.11250707507133484, 0.21955005824565887, -0.18102359771728516, 0.23989443480968475, 0.3140033185482025, -0.12776508927345276, -0.06332290917634964, -0.17045167088508606, -0.05806264653801918, -0.09970244765281677, 0.015306422486901283, 0.4879114031791687, 0.3068165183067322, -0.022267509251832962, -0.2422083020210266, -0.041110359132289886, -0.28856900334358215, 0.00036568380892276764, -0.04726402461528778, 0.22289445996284485, 0.055365920066833496, -0.21788479387760162, 0.10970098525285721, -0.12694382667541504, -0.050903212279081345, -0.06074085086584091, 0.3688482642173767, 0.40174323320388794, 0.2120191901922226, 0.46400168538093567, -0.16593791544437408, 0.010838720947504044, -0.219633549451828, -0.16156525909900665, -0.12661497294902802, 0.10386374592781067, -0.017162449657917023, 0.236626997590065, 0.23756054043769836, 0.08508256077766418, 0.12051405012607574, -0.1252829134464264, 0.02528894692659378, 0.5037798881530762, -0.10735221952199936, 0.031625475734472275, -0.05936678871512413, -0.13734599947929382, 0.2653335630893707, 0.20752054452896118, -0.26959070563316345, -0.4000195562839508, -0.1547544002532959, -0.029150275513529778, -0.10954175889492035, -0.27234917879104614, 0.20481546223163605, 0.15510456264019012, 0.0983930230140686, 0.09574075043201447, -0.2827531099319458, 0.010236240923404694, 0.279898464679718, 0.22017377614974976, -0.14660896360874176, -0.24056656658649445, 0.19621603190898895, 0.3295653760433197, -0.13323551416397095, 0.03162621334195137, 0.4858597218990326, 0.25174254179000854, 0.14962859451770782, 0.2734568119049072, 0.21903172135353088, 0.47662198543548584, 0.1542249172925949, 0.09105059504508972, -0.2495793104171753, -0.254861056804657, -0.2787218391895294, 0.2103089690208435, -0.34672811627388, -0.1554127335548401, 0.141651451587677, 0.25432512164115906, -0.1171518936753273, -0.17730239033699036, 0.08332502841949463, -0.16626302897930145, -0.04450523108243942, -0.0322805792093277, -0.03870734944939613, 0.06992173939943314, 0.1147414892911911, -0.07318222522735596, -0.043607477098703384, 0.3693085312843323, 0.36108601093292236, -0.07912218570709229, -0.01254080981016159, -0.07757385075092316, -0.047795869410037994, 0.23933061957359314, 0.29270997643470764, 0.0355953685939312, -0.20873261988162994, -0.18452660739421844, 0.0805378183722496, 0.18343625962734222, 0.30690035223960876, 0.3027544617652893, 0.2926499545574188, 0.12028592824935913, -0.09028090536594391, 0.1253689080476761, -0.08830655366182327, -0.06260529160499573, 0.4116549789905548, -0.008298538625240326, -0.15072613954544067, 0.19036273658275604, -0.12473315000534058, 0.12036022543907166, 0.19952426850795746, 0.12332378327846527, 0.30671852827072144, -0.38736698031425476, 0.47154122591018677, 0.1450248807668686, -0.22994813323020935, 0.22433900833129883, -0.10974759608507156, -0.16568046808242798, -0.06174924969673157, 0.6827009916305542, -0.03021540679037571, 0.0076493918895721436, -0.34668394923210144, -0.03459882736206055, -0.2770451009273529, 0.19142642617225647, 0.44151368737220764, 0.14709311723709106, -0.2628695070743561, 0.10241542756557465, -0.47193121910095215, 0.08416867256164551, 0.21587254106998444, -0.015001745894551277, 0.08239101618528366, 0.028823288157582283, -0.3979296088218689, 0.39916741847991943, 0.5172964334487915, -0.6161110401153564, -0.1561099737882614, -0.23292237520217896, -0.0829843282699585, -0.04204786941409111, -0.01733613759279251, 0.14155152440071106, -0.1652456820011139, -0.30959704518318176, 0.25035688281059265, -0.2092689424753189, -0.17356576025485992, -0.13569404184818268, -0.29159605503082275, 0.35952454805374146, 0.13252650201320648, 0.49815601110458374, 0.2361738681793213, 0.03760340064764023, -0.01768619753420353, -0.03246758133172989, -0.1756117343902588, 0.15702515840530396, -0.21058237552642822, 0.2739681899547577, -0.045904744416475296, 0.3701009750366211, -0.5149693489074707, 0.16764482855796814, -0.1559266746044159, 0.06544283777475357, -0.22896526753902435, 0.006912645883858204, 0.039950013160705566, 0.1737314760684967, 0.1414290964603424, -0.09923683851957321, -0.18702983856201172, 0.03740398585796356, 0.06067027524113655, 0.3610658049583435, -0.31121203303337097, -0.159925639629364, 0.39003634452819824, -0.5684537887573242, -0.2624584436416626, -0.21463188529014587, 0.519351601600647, 0.06409423053264618, -0.2825244963169098, -0.5841552019119263, -0.154699444770813, 0.21839821338653564, 0.06636394560337067, -0.2001500129699707, 0.36235085129737854, -0.2834409475326538, 0.39498838782310486, -0.06305589526891708, 0.1536169797182083, 0.26501190662384033, 0.18302904069423676, 0.021701406687498093, -0.30926942825317383 ]
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.4173352122306824, 0.14384770393371582, -0.05226642265915871, 0.21039241552352905, 0.23814551532268524, -0.05664842575788498, 0.23771078884601593, 0.29057982563972473, 0.14424525201320648, 0.05731556564569473, -0.08232290297746658, -0.03472256287932396, 0.009593041613698006, 0.2967813014984131, -0.11418581008911133, 0.15321967005729675, 0.12071169912815094, -0.24233463406562805, -0.3290191888809204, 0.18728220462799072, 0.008297838270664215, 0.34751760959625244, -0.1365116983652115, -0.18602772057056427, -0.2225954532623291, 0.0802132710814476, 0.03242741525173187, 0.18776801228523254, -0.3060179352760315, -0.19396302103996277, 0.49986374378204346, 0.16810937225818634, 0.04849870502948761, 0.2420327067375183, -0.00011594981333473697, -0.04564518854022026, 0.3564915060997009, -0.023052170872688293, -0.27545690536499023, -0.17193718254566193, -0.613663911819458, -0.36410751938819885, -0.1625029295682907, -0.05101674050092697, 0.2578020691871643, 0.44851502776145935, -0.07898823916912079, -0.07274077832698822, 0.2911610007286072, 0.36133870482444763, 0.2246931940317154, 0.5078264474868774, 0.5233140587806702, 0.02128329873085022, 0.6007752418518066, 0.028427574783563614, -0.1523161083459854, 0.3020837903022766, 0.04853400960564613, 0.09556888788938522, 0.035789214074611664, 0.22617560625076294, -0.054771408438682556, 0.2072295993566513, 0.050977736711502075, -0.13150618970394135, 0.010116800665855408, -0.2643219232559204, 0.18099898099899292, 0.3761471211910248, 0.7534171938896179, -0.06762411445379257, -0.3866146504878998, -0.2335665225982666, -0.13775312900543213, -0.09534355998039246, 0.3624248206615448, 0.1967550367116928, -0.17909391224384308, 0.11823539435863495, -0.3431761860847473, -0.05590213090181351, -0.1109950840473175, 0.229899600148201, 0.18964466452598572, -0.05891837179660797, -0.20492145419120789, -0.024371087551116943, -0.07471409440040588, -0.11851371824741364, 0.3572814464569092, -0.2774001359939575, -0.02735292539000511, 0.13897576928138733, -0.5924158096313477, -0.1630181074142456, -0.14722228050231934, 0.37855902314186096, 0.51164710521698, 0.5190513730049133, 0.012360981665551662, 0.11494427174329758, -0.277638703584671, -0.10243303328752518, 0.39089205861091614, 0.40256404876708984, -0.021543249487876892, 0.15090592205524445, 0.43782252073287964, 0.35996389389038086, 0.044258516281843185, 0.0989445298910141, 0.06065669655799866, -0.1273137778043747, 0.3956010937690735, -0.04895187169313431, 0.28840190172195435, -0.48711469769477844, -0.30834096670150757, 0.2666875720024109, -0.2881491780281067, -0.25567886233329773, -0.034938037395477295, 0.1287742257118225, -0.2728331685066223, 0.3193649649620056, -0.15816333889961243, 0.23163452744483948, 0.07612086832523346, -0.10683063417673111, -0.26612547039985657, -0.04572911933064461, -0.1917143166065216, 0.1251806765794754, 0.4090272784233093, -0.30894744396209717, 0.38474005460739136, 0.058313287794589996, -0.0366223081946373, -0.10107701271772385, 0.07025036215782166, -0.009757312946021557, -0.3626899719238281, 0.4796491861343384, -0.028375770896673203, 0.3199993371963501, 0.063389353454113, 0.20569829642772675, -0.0027634575963020325, 0.18866252899169922, -0.36185359954833984, -0.3521524965763092, 0.04515869915485382, 0.19000950455665588, -0.3650643825531006, -0.1490505337715149, -0.21039658784866333, -0.09858949482440948, 0.0886906236410141, -0.09896230697631836, -0.0011401176452636719, -0.08086530864238739, -0.17983204126358032, -0.18776072561740875, 0.1709350198507309, 0.2947300672531128, -0.12140274047851562, 0.04928003251552582, -0.21265332400798798, -0.22955700755119324, 0.0075605809688568115, 0.09889888763427734, -0.1021207943558693, 0.051604025065898895, -0.3121567964553833, 0.1910163313150406, -0.03047310560941696, -0.04413006454706192, -0.8213794231414795, 0.11200709640979767, 0.21273328363895416, 0.19958505034446716, 0.02269555628299713, 0.11586090922355652, -0.011540429666638374, -0.05587693303823471, 0.06831210106611252, 0.2879430651664734, -0.11135593056678772, 0.05319826304912567, -0.21354946494102478, -0.21468207240104675, -0.1412273496389389, 0.19240710139274597, 0.21788406372070312, 0.1795273721218109, 0.1498345285654068, -0.0014789486303925514, 0.20002958178520203, 0.060104500502347946, 0.026465680450201035, 0.4225369095802307, 0.23250965774059296, 0.12644320726394653, -0.17918382585048676, -0.4266206920146942, -0.6495071053504944, 0.27391353249549866, -0.15104441344738007, -0.11017224192619324, -0.016951560974121094, -0.10825421661138535, -0.4812156558036804, -0.13967913389205933, -0.06710503995418549, -0.12086108326911926, 0.05439142882823944, 0.11840007454156876, 0.19213032722473145, 0.047396469861269, -0.08080819249153137, 0.6759993433952332, -0.22778697311878204, 0.12510083615779877, -0.2809182107448578, 0.3650704324245453, -0.14652682840824127, -0.11498267948627472, 0.18662261962890625, -0.05708230286836624, 0.15392005443572998, 0.026279184967279434, -0.16387203335762024, 0.3405664563179016, 0.08175889402627945, -0.048176661133766174, 0.1589736044406891, 0.3192971348762512, 0.13570545613765717, -0.20034462213516235, -0.10710232704877853, 0.26863235235214233, 0.08881206810474396, -0.019364453852176666, -0.3108483850955963, 0.10763799399137497, -0.39529484510421753, 0.08627564460039139, -0.08472470194101334, 0.2748886048793793, 0.24876898527145386, -0.15296468138694763, -0.23547141253948212, 0.07560187578201294, 0.49028217792510986, 0.16611242294311523, -0.01591811515390873, 0.027612876147031784, -0.23708292841911316, 0.07203014194965363, 0.3816654086112976, -0.1854057013988495, -0.023677252233028412, 0.23152947425842285, -0.04244287312030792, -0.08485950529575348, 0.05249333381652832, 0.3492446541786194, 0.41211867332458496, 0.07744918018579483, 0.1270790696144104, 0.019257592037320137, -0.06982342153787613, -0.21192771196365356, -0.009726829826831818, 0.10506774485111237, 0.05166354402899742, 0.38736018538475037, 0.08917667716741562, 0.02016514353454113, -0.3156527280807495, 0.017886389046907425, 0.06627410650253296, 0.2733686566352844, -0.49596020579338074, -0.0993698239326477, -0.2257489114999771, -0.008333180099725723, -0.1796368509531021, -0.22728772461414337, -0.433890163898468, -0.41445428133010864, -0.041473373770713806, 0.4321185052394867, -0.007369389757514, 0.1584981083869934, -0.17600423097610474, 0.07660041749477386, 0.1298982799053192, -0.12989170849323273, -0.011059202253818512, 0.12393718957901001, -0.030557788908481598, 0.06747661530971527, 0.4870755076408386, -0.12001994252204895, 0.2683665156364441, -0.3797079622745514, 0.005756299942731857, -0.5876289010047913, -0.025242868810892105, 0.031945303082466125, -0.04297468811273575, 0.32965272665023804, 0.0681995302438736, 0.3912464380264282, -0.33512330055236816, 0.08925798535346985, 0.04128362983465195, 0.030079310759902, -0.28070706129074097, 0.17206628620624542, 0.0588245689868927, 0.042903121560811996, 0.07939662039279938, -0.16391441226005554, -0.15928995609283447, -0.28478357195854187, 0.024616654962301254, -0.10460281372070312, 0.04293742775917053, 0.3333447277545929, -0.059633996337652206, -0.005599525291472673, 0.0306975319981575, 0.023364461958408356, -0.3865581750869751, -0.648318350315094, 0.5215481519699097, 0.001778467558324337, -0.4173828363418579, 0.06354950368404388, 0.10823018848896027, -0.13241057097911835, 0.32341301441192627, -0.5212418437004089, -0.07968642562627792, -0.34604957699775696, 0.20914983749389648, 0.10916604846715927, 0.18931330740451813, 0.41147056221961975, -0.21022500097751617, -0.05873788520693779, -0.005289766937494278, -0.16774027049541473, 0.09513763338327408, -0.05658182501792908, 0.2765403687953949, 0.0760919377207756, 0.09334058314561844, -0.03370498865842819, 0.6843781471252441, 0.2569456994533539, 0.3306369185447693, 0.4993002116680145, 0.15539632737636566, 0.34062016010284424, 0.01406995952129364, -0.13944530487060547, 0.030078696087002754, -0.29881203174591064, 0.11100982129573822, 0.08002081513404846, 0.17965835332870483, 0.21047693490982056, -0.24740825593471527, -0.10856316983699799, -0.2964661121368408, -0.16315853595733643, 0.061718687415122986, -0.18889768421649933, 0.3915341794490814, 0.22359485924243927, 0.008720025420188904, 0.15509477257728577, -0.36798393726348877, 0.14915965497493744, 0.16195186972618103, -0.04544997960329056, -0.07424147427082062, -0.5089079737663269, -0.05375112220644951, -0.39773058891296387, 0.22917771339416504, 0.06533829867839813, 0.40778350830078125, -0.0808592364192009, 0.09330721944570541, -0.012724064290523529, -0.030802611261606216, 0.46124136447906494, -0.16707539558410645, 0.22618959844112396, -0.05589304119348526, -0.006608735769987106, -0.25439053773880005, -0.2947322726249695, -0.041011177003383636, 0.09760425984859467, 0.04450865834951401, 0.29305559396743774, -0.5040321350097656, 0.08144228905439377, 0.20378592610359192, 0.3086684048175812, 0.00899815559387207, -0.20559640228748322, -0.22821973264217377, -0.21562454104423523, -0.4626058340072632, 0.01304914802312851, 0.1228732243180275, 0.19125862419605255, -0.09616350382566452, -0.05546330660581589, 0.068332739174366, -0.029506778344511986, 0.03148186206817627, -0.3027847111225128, 0.22119948267936707, 0.1362631469964981, 0.2531532943248749, 0.049770377576351166, -0.003373119980096817, 0.02103433571755886, 0.8041911125183105, -0.07977554202079773, -0.2488979995250702, 0.18162783980369568, -0.23810407519340515, -0.22770270705223083, 0.24971437454223633, -0.10226984322071075, -0.10964509099721909, 0.2862836718559265, 0.011995039880275726, -0.004020540975034237, -0.08686818182468414, 0.35641899704933167, 0.08563469350337982, -0.2989562749862671, -0.3246099650859833, 0.32099857926368713, 0.0831267237663269, -0.04250635206699371, 0.39911141991615295, 0.2725445628166199, 0.04911839962005615, -0.17125052213668823, -0.03998623043298721, 0.8578278422355652, 0.04983293637633324, 0.08521886169910431, 0.020261580124497414, -0.05678866058588028, 0.4342242181301117, -0.24643781781196594, -0.07296353578567505, -0.24070028960704803, -0.3326314091682434, -0.08466397225856781, -0.2092352658510208, 0.08274081349372864, -0.003093637526035309, -0.06268952786922455, 0.3957352042198181, -0.20627546310424805, 0.39183706045150757, 0.14504334330558777, 0.16941265761852264, -0.35219597816467285, 0.12403251230716705, -0.15809084475040436, 0.15504471957683563, -0.20776455104351044, 0.4187977910041809, -0.13723137974739075, -0.007183609530329704, -0.30309128761291504, -0.1701452136039734, -0.793359100818634, 0.13838177919387817, 0.04771004617214203, 0.014851341024041176, 0.34364160895347595, -0.10294698923826218, 0.01086290180683136, 0.219278484582901, 0.5752387642860413, 0.02042054757475853, -0.36397889256477356, 0.19804657995700836, -0.07578036934137344, -0.025416916236281395, -0.013244728557765484, -0.07633555680513382, 0.31673404574394226, -0.3335464596748352, -0.20464718341827393, 0.1010538637638092, -0.11295229196548462, -0.4047103524208069, -0.1654861718416214, -0.17412416636943817, 0.15974439680576324, -0.43952834606170654, -0.11076086759567261, -0.1657625138759613, 0.11473219096660614, -0.29087162017822266, 0.148652121424675, 0.24632404744625092, 0.004292423836886883, 0.1918431520462036, 0.1145738810300827, -0.08752860128879547, -0.22224508225917816, 0.5563129782676697, -0.10805081576108932, 0.004347030073404312, 0.3435767889022827, 0.2170306295156479, -0.2311033308506012, -0.16219300031661987, 0.17013365030288696, -0.016581272706389427, -0.5097991824150085, 0.03853379189968109, -0.3021147847175598, 0.20160745084285736, -0.2905804514884949, 0.47397738695144653, 0.36473894119262695, 0.24169379472732544, 0.3363366425037384, -0.735557496547699, 0.03863898664712906, -0.037728920578956604, 0.053379494696855545, 0.229182630777359, -0.23308256268501282, -0.39010384678840637, 0.2119867503643036, -0.22080305218696594, -0.27807751297950745, -0.05577138811349869, -0.3257588744163513, -0.07682426273822784, 0.004999119788408279, 0.017316784709692, 0.35890716314315796, -0.21683736145496368, 0.11065775156021118, 0.018686769530177116, -0.15662327408790588, -0.21690335869789124, -0.14303700625896454, 0.12129245698451996, 0.05781791731715202, -0.280361533164978, 0.1490190327167511, -0.23652376234531403, -0.1292472928762436, 0.15398907661437988, 0.013160087168216705, 0.2773086726665497, 0.03675670176744461, 0.011303202249109745, -0.07222600281238556, -0.060303233563899994, -0.26760080456733704, 0.11692177504301071, -0.18615761399269104, 0.27025461196899414, 0.03706924244761467, 0.236031636595726, 0.30515530705451965, -0.04307717829942703, -0.4035193920135498, 0.09675940126180649, 0.0711778998374939, -0.08676642924547195, 0.2332332730293274, -0.45935338735580444, -0.08462496846914291, 0.24118000268936157, 0.4229103922843933, 0.30796635150909424, -0.29833984375, 0.03827342391014099, 0.20609885454177856, 0.2426956743001938, -0.27960363030433655, -0.13084231317043304, 0.2574145197868347, -0.03317638486623764, -0.06990595906972885, -0.0807478055357933, 0.3395245671272278, -0.29813146591186523, 0.27629268169403076, 0.13780781626701355, 0.1826021522283554, 0.23483169078826904, 0.16144397854804993, 0.3945908546447754, 0.07804884016513824, 0.10839459300041199, 0.23433396220207214, -0.14476622641086578, -0.07485846430063248, 0.06264135986566544, 0.029349379241466522, 0.02135256677865982, -0.2543686032295227, 0.2525356113910675, -0.15747040510177612, -0.44553104043006897, 0.28433308005332947, 0.1948123276233673, -0.14933770895004272, -0.0774938091635704, -0.09526591002941132, 0.4345996081829071, -0.1961721032857895, 0.027762575075030327, -0.4497290849685669, 0.059992410242557526, -0.02888622134923935, 0.13808870315551758, -0.013411318883299828, -0.3608102798461914, -0.18731486797332764, 0.31624194979667664, -0.12228669226169586, -0.088706836104393, 0.40752771496772766, 0.0635417178273201, -0.3009316325187683, -0.5092540979385376, 0.2208690643310547, 0.011026028543710709, 0.023164577782154083, -0.19124950468540192, 0.1664225161075592, -0.03327640891075134, -0.1903325617313385, 0.09440279006958008, 0.4231257438659668, 0.29818102717399597, 0.19585107266902924, 0.06105451285839081, -0.030747011303901672, 0.07872292399406433, -0.059815071523189545, 0.08525649458169937, 0.3819754421710968, 0.1442202776670456, -0.18783044815063477, 0.32431137561798096, 0.12665018439292908, -0.20774179697036743, 0.16123494505882263, -0.164062038064003, -0.07607589662075043, -0.16650354862213135, 0.10689117759466171, -0.2139313668012619, 0.22733044624328613, -0.03712613135576248, -0.05360185354948044, -0.24775350093841553, -0.253275603055954, 0.12402594089508057, -0.035630203783512115, 0.053244441747665405, -0.218462735414505, 0.07322319597005844, -0.21176381409168243, 0.4391585886478424, 0.5012009739875793, 0.22038534283638, -0.19893521070480347, -0.3539736270904541, -0.764502763748169, 0.0755133107304573, -0.10555732250213623, 0.17957057058811188, 0.16481082141399384, 0.05905310809612274, -0.23504257202148438, 0.30775946378707886, 0.2918090522289276, -0.1663733869791031, -0.216752827167511, 0.15518081188201904, -0.28011471033096313, 0.02781910076737404, -0.0017779693007469177, 0.03929082304239273, -0.10635508596897125, -0.32701820135116577, 0.44960853457450867, -0.01748683489859104, -0.05183904990553856, 0.057966433465480804, -0.15737560391426086, -0.02242947928607464, -0.06601057201623917, 0.12939324975013733, 0.13142015039920807, 0.4132755696773529, 0.11155808717012405, -0.205824613571167, -0.16116750240325928, -0.1233506053686142, -0.08852557092905045, 0.02456596866250038, -0.19098612666130066, 0.4489959180355072, -0.07435616105794907, 0.014035988599061966, -0.2581723630428314, 0.44580504298210144, 0.07537088543176651, -0.16751208901405334, -0.239991694688797, -0.057100534439086914, -0.030900077894330025, 0.02373620495200157, 0.11772963404655457, -0.057735756039619446, -0.16646690666675568, 0.20779334008693695, -0.228025421500206, -0.1409023553133011, 0.2995198667049408, -0.026036404073238373, -0.12052343785762787, -0.21137824654579163, 0.08014561235904694, 0.13705089688301086, -0.2118653506040573, -0.4640897810459137, 0.19631901383399963, 0.38028356432914734, 0.14719313383102417, -0.26400336623191833, 0.2581166923046112, -0.1581689417362213, 0.15857355296611786, 0.12852846086025238, 0.38422706723213196, 0.06330499798059464, -0.21606555581092834, 0.31938526034355164, -0.13476473093032837 ]
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.44305112957954407, 0.20311906933784485, -0.04543623328208923, 0.4847757816314697, 0.3039817214012146, -0.02337576076388359, 0.2349691241979599, 0.3660460114479065, -0.10822908580303192, 0.0927526205778122, -0.16256952285766602, 0.4678148627281189, -0.007435155101120472, -0.0836077630519867, -0.01741788163781166, -0.13232511281967163, 0.03872229903936386, 0.27786386013031006, -0.6045756340026855, -0.048267826437950134, -0.43124687671661377, 0.3115382790565491, -0.10302935540676117, -0.09901583194732666, 0.03786054626107216, 0.07491367310285568, -0.1906295120716095, 0.3197145462036133, -0.09478820860385895, -0.2602507770061493, -0.020933059975504875, -0.1710365116596222, 0.2840127944946289, 0.5108668208122253, -0.00011839855869766325, 0.29027408361434937, 0.09254644811153412, -0.0907716378569603, -0.40238693356513977, -0.11114567518234253, -0.08325885981321335, -0.10315907746553421, 0.14823736250400543, -0.37903687357902527, -0.04245925694704056, -0.21750065684318542, -0.028211629018187523, -0.5162991285324097, 0.21042084693908691, 0.3379340171813965, 0.1746218502521515, 0.37422260642051697, 0.29021385312080383, -0.14841200411319733, 0.25406238436698914, -0.028347715735435486, -0.04140789806842804, 0.048455141484737396, 0.1556951403617859, -0.05657981336116791, 0.06519733369350433, 0.2920299470424652, -0.1614065021276474, 0.14696410298347473, 0.20899024605751038, 0.05813679099082947, 0.27018678188323975, -0.3370189070701599, 0.35683751106262207, 0.15774409472942352, 0.5403915643692017, -0.0280468687415123, -0.33318567276000977, -0.18784677982330322, 0.013049506582319736, -0.42981070280075073, 0.2435774803161621, 0.22146189212799072, -0.028591927140951157, 0.08683507889509201, 0.14127454161643982, -0.12389440834522247, -0.09403456002473831, 0.30540165305137634, -0.042059507220983505, 0.20012244582176208, -0.05761851370334625, -0.05916342884302139, 0.06311522424221039, 0.22395819425582886, 0.2793525755405426, 0.049779560416936874, -0.010078422725200653, 0.3172570765018463, -0.47452473640441895, 0.17730984091758728, 0.17189936339855194, 0.004030212759971619, 0.09337101876735687, -0.06502818316221237, 0.103612519800663, -0.23186209797859192, -0.023009512573480606, -0.07365299016237259, 0.2052510529756546, 0.047147236764431, -0.2928014397621155, -0.19846820831298828, 0.14046868681907654, 0.06259264796972275, -0.1818169206380844, -0.09568450599908829, -0.19329290091991425, -0.3410632908344269, 0.07598614692687988, 0.13471619784832, 0.575646162033081, -0.17886608839035034, -0.3567045331001282, -0.0537942498922348, -0.1881234347820282, -0.053214479237794876, 0.10692345350980759, 0.2891928255558014, -0.06075628101825714, 0.42051371932029724, 0.24402423202991486, 0.13031461834907532, -0.3833307921886444, 0.01570364460349083, -0.11939722299575806, -0.23960591852664948, -0.17519021034240723, -0.01822587661445141, 0.06443937122821808, -0.4865525960922241, 0.31543251872062683, 0.17321814596652985, -0.07354338467121124, -0.3623708486557007, 0.37775883078575134, -0.07942144572734833, -0.09546210616827011, 0.23110859096050262, -0.0021413490176200867, -0.12617138028144836, 0.1479647159576416, -0.01379336416721344, 0.09772447496652603, 0.4053347110748291, -0.4958994388580322, -0.5249587297439575, -0.47872817516326904, 0.17132887244224548, -0.30533748865127563, 0.13985294103622437, 0.30708828568458557, -0.17518994212150574, 0.1507406383752823, -0.1544896960258484, -0.098591648042202, -0.20918555557727814, -0.33282652497291565, -0.19358797371387482, 0.40815797448158264, 0.4952765107154846, -0.3194471299648285, 0.05533473193645477, -0.2524318993091583, -0.18812771141529083, -0.10420162230730057, -0.023047033697366714, -0.0677800178527832, 0.38774374127388, -0.5029060244560242, -0.26135873794555664, 0.2853181064128876, -0.44295185804367065, -0.6753483414649963, 0.029426265507936478, -0.24769330024719238, 0.04242273420095444, 0.3182738125324249, 0.05899703502655029, 0.3740198314189911, -0.009453913196921349, -0.1303226798772812, 0.21319448947906494, 0.13549134135246277, 0.018598640337586403, -0.14829665422439575, -0.14801062643527985, 0.04531900957226753, 0.24368755519390106, 0.0738343819975853, 0.07524046301841736, 0.1276138424873352, 0.11370600759983063, 0.2993847131729126, -0.14386086165905, -0.18325486779212952, 0.10969243943691254, 0.26585981249809265, 0.13968758285045624, 0.24375571310520172, -0.08726994693279266, -0.46745795011520386, 0.08274263888597488, -0.05335060879588127, 0.032667599618434906, -0.21871741116046906, -0.044813163578510284, -0.12930630147457123, 0.09564366936683655, -0.29363110661506653, -0.3219192624092102, 0.07301808893680573, 0.19819512963294983, 0.006688907742500305, 0.015833813697099686, -0.08682515472173691, 0.3457705080509186, 0.11645106971263885, 0.16742964088916779, -0.2508368492126465, 0.33035364747047424, 0.12076570838689804, -0.03791825845837593, -0.08129213750362396, 0.32041308283805847, 0.04530622437596321, -0.21025049686431885, -0.2788051664829254, 0.4593666195869446, 0.14847977459430695, -0.022525906562805176, -0.09866208583116531, 0.17531704902648926, 0.23589670658111572, -0.2645653188228607, -0.09821882098913193, 0.040937937796115875, 0.2143254578113556, 0.07084404677152634, 0.1004783883690834, 0.00427091121673584, -0.10083906352519989, 0.13193777203559875, 0.1286804974079132, -0.004212509840726852, 0.05995532125234604, -0.23997899889945984, 0.03504905104637146, -0.09277955442667007, 0.3647736608982086, -0.010066952556371689, 0.33986762166023254, 0.11484138667583466, -0.2486354261636734, -0.11684105545282364, 0.4487638473510742, -0.04094887524843216, 0.22450798749923706, 0.10496890544891357, -0.2105499804019928, 0.2330358624458313, -0.05826088786125183, 0.13383814692497253, 0.7634179592132568, 0.11589203029870987, -0.3087420165538788, 0.03031766787171364, 0.15680432319641113, -0.056059181690216064, 0.3047157824039459, 0.21357783675193787, 0.517604410648346, 0.4227156341075897, 0.05485495924949646, 0.21118725836277008, -0.10410769283771515, -0.43727076053619385, 0.1301829218864441, 0.2429523468017578, -0.32689645886421204, -0.02823573909699917, -0.22753216326236725, -0.0035175904631614685, -0.17453528940677643, -0.006303695961833, -0.1977388709783554, -0.11052805185317993, -0.003894757479429245, 0.11990693211555481, -0.05413449928164482, 0.05216340720653534, -0.2768757939338684, 0.08337470889091492, 0.23966117203235626, -0.22750400006771088, 0.17650993168354034, -0.07878781110048294, -0.12283434718847275, -0.07989488542079926, 0.3425711989402771, -0.12984372675418854, 0.25657954812049866, -0.32594648003578186, 0.13476571440696716, -0.17519816756248474, -0.2120332419872284, 0.15609727799892426, 0.28709226846694946, 0.15855251252651215, 0.12684118747711182, 0.21200864017009735, 0.1711958646774292, -0.23682823777198792, 0.23345795273780823, -0.1223336011171341, -0.05518963187932968, 0.11134569346904755, -0.012025494128465652, 0.24420857429504395, -0.0472903773188591, -0.4643706977367401, -0.3488773703575134, -0.48882654309272766, -0.08741694688796997, -0.06712821871042252, 0.2688065767288208, 0.19940298795700073, 0.12610183656215668, 0.2629387080669403, 0.29308655858039856, 0.04730449616909027, -0.01961428113281727, -0.18872235715389252, 0.21649828553199768, -0.30332478880882263, -0.2178204208612442, -0.2564585208892822, 0.0712675079703331, 0.29400137066841125, 0.031647637486457825, -0.6996404528617859, -0.3688037395477295, -0.09585961699485779, 0.19205470383167267, -0.4736229181289673, -0.021840473636984825, 0.22433318197727203, 0.098255455493927, 0.0231324415653944, -0.31204652786254883, 0.0890544056892395, 0.08111860603094101, -0.1509295105934143, 0.22348788380622864, -0.10417480021715164, 0.4505560100078583, -0.21829061210155487, 0.5835209488868713, -0.08966021239757538, -0.23262815177440643, 0.4943561851978302, -0.1522170752286911, 0.35611623525619507, -0.15522509813308716, -0.25264647603034973, -0.2044535130262375, -0.09172743558883667, 0.011841677129268646, 0.29499930143356323, 0.09037910401821136, 0.009650159627199173, -0.26924818754196167, 0.02041105553507805, -0.44740840792655945, -0.21610276401042938, 0.13285449147224426, -0.10353289544582367, 0.25435641407966614, -0.07475504279136658, 0.2682152986526489, -0.18866857886314392, -0.08505479246377945, 0.11541047692298889, 0.2735351324081421, 0.11694963276386261, -0.04271635413169861, 0.006859272718429565, -0.04283053055405617, -0.11970385164022446, 0.24232785403728485, -0.16726373136043549, 0.301117867231369, -0.03964848443865776, -0.10389243066310883, 0.01681344211101532, 0.001757672056555748, 0.8671801090240479, 0.16163405776023865, 0.06117519736289978, 0.07445028424263, 0.0017691440880298615, -0.20961301028728485, -0.1531897336244583, -0.048699844628572464, 0.5598671436309814, 0.4752480983734131, 0.6100463271141052, -0.1361042559146881, -0.20626308023929596, 0.19899393618106842, 0.24311569333076477, -0.09537447988986969, -0.4367496967315674, -0.3278191387653351, -0.3320831060409546, -0.26505768299102783, -0.05603640526533127, -0.05219133943319321, 0.457268089056015, -0.1983003318309784, 0.020833592861890793, -0.1782422810792923, -0.40051546692848206, -0.11744986474514008, 0.07239799201488495, 0.4080718159675598, -0.04514592885971069, 0.34366026520729065, 0.1963212937116623, 0.34036362171173096, 0.30592986941337585, 0.6303961277008057, -0.19953596591949463, -0.5900685787200928, 0.30275723338127136, -0.19650700688362122, 0.06575962901115417, 0.14682742953300476, -0.059620801359415054, -0.11455126851797104, 0.0031636953353881836, 0.18440580368041992, -0.09195885807275772, 0.009287379682064056, 0.23381654918193817, 0.03459400683641434, -0.35804539918899536, -0.30232369899749756, 0.35594606399536133, -0.025090467184782028, 0.003408581018447876, 0.33424845337867737, -0.2428392618894577, -0.15916705131530762, 0.5583696961402893, -0.022190295159816742, 0.8753299117088318, -0.19544367492198944, -0.04615473374724388, 0.033942531794309616, -0.2444026917219162, 0.7470541596412659, -0.44424164295196533, 0.1304812878370285, -0.30956655740737915, -0.38407373428344727, 0.04184189438819885, -0.2273295670747757, 0.1917005181312561, 0.012623488903045654, -0.15387779474258423, 0.10415265709161758, -0.1464485228061676, 0.12133316695690155, 0.16882266104221344, 0.35859090089797974, -0.1928761601448059, -0.1547819823026657, -0.20131930708885193, -0.006766011938452721, 0.07249978929758072, 0.47145894169807434, -0.15762758255004883, -0.25676071643829346, -0.18168959021568298, -0.025129815563559532, -0.05808687582612038, 0.18203681707382202, -0.505465567111969, 0.2635756731033325, -0.039433982223272324, -0.5898035168647766, 0.011645056307315826, 0.7242997288703918, 0.0000030100345611572266, 0.10093068331480026, -0.09026290476322174, 0.2722339332103729, 0.1893349587917328, 0.008150424808263779, 0.2704305946826935, -0.09077345579862595, 0.2482924908399582, -0.07753986120223999, -0.1894858181476593, 0.06359317153692245, -0.2281290590763092, -0.24015985429286957, 0.4469696283340454, -0.06989145278930664, 0.33709269762039185, -0.2419392168521881, -0.19584892690181732, -0.18468067049980164, -0.0030681565403938293, -0.10619980096817017, 0.08529365062713623, 0.08610641956329346, -0.2697000503540039, 0.003233574330806732, -0.17891378700733185, -0.41704270243644714, -0.03038686513900757, 0.3435991704463959, -0.1027662381529808, 0.19585931301116943, 0.5353902578353882, 0.24962250888347626, 0.07004738599061966, -0.12866199016571045, 0.08761406689882278, -0.07888302952051163, -0.863837480545044, 0.0030890400521457195, 0.13294342160224915, 0.19102995097637177, -0.1324959248304367, -0.3879999816417694, -0.04160933196544647, 0.024645797908306122, -0.2592005133628845, -0.8063874840736389, -0.12798772752285004, 0.0003270581364631653, -0.05551381781697273, 0.12090669572353363, 0.012571942061185837, 0.18140089511871338, -0.10557259619235992, -0.12669074535369873, -0.21392935514450073, 0.11383654922246933, -0.04158468171954155, -0.03509064018726349, 0.20873691141605377, -0.026191741228103638, 0.052214913070201874, -0.11483608186244965, 0.12241318821907043, 0.1322823315858841, -0.054590240120887756, -0.15929827094078064, -0.19863761961460114, 0.19145935773849487, -0.1697370409965515, -0.1901639699935913, -0.06949868053197861, -0.26038751006126404, -0.08234643936157227, -0.030807308852672577, 0.13417060673236847, -0.1280401349067688, -0.13420738279819489, -0.18077437579631805, 0.05295386165380478, 0.13503801822662354, -0.258734792470932, 0.30147939920425415, -0.15237823128700256, 0.15339766442775726, -0.046517252922058105, 0.34444162249565125, -0.1278184950351715, 0.06012269854545593, -0.2831701636314392, -0.21503424644470215, -0.019467830657958984, 0.05413035675883293, 0.29219958186149597, -0.2612032890319824, 0.043742503970861435, 0.2345060557126999, 0.06121021509170532, 0.2389371246099472, -0.2238365262746811, 0.04803459346294403, 0.15480610728263855, 0.2138175517320633, -0.20071789622306824, 0.046511538326740265, 0.22981010377407074, 0.2254759669303894, -0.01679867133498192, 0.12261830270290375, 0.12258505821228027, -0.0604853555560112, -0.02988371253013611, 0.07910668849945068, 0.2626868784427643, 0.40717262029647827, 0.37076887488365173, 0.8125099539756775, 0.031991053372621536, 0.22672803699970245, -0.16816796362400055, -0.20031733810901642, -0.013750366866588593, 0.5678637623786926, -0.15702486038208008, 0.14884242415428162, 0.16197752952575684, 0.1495591104030609, 0.07362839579582214, -0.44035494327545166, -0.10111403465270996, -0.05472610890865326, -0.01710961014032364, 0.17525818943977356, -0.2550037205219269, 0.510629415512085, -0.22628487646579742, 0.07696760445833206, -0.25330492854118347, 0.3183329999446869, -0.10501100867986679, 0.08239717781543732, -0.06454236805438995, -0.17114120721817017, 0.15845438838005066, 0.06100298836827278, -0.009204581379890442, 0.040819019079208374, -0.2774723470211029, 0.22813034057617188, -0.2549322843551636, -0.1301783174276352, -0.3134041428565979, 0.35952287912368774, -0.053951047360897064, -0.17070047557353973, 0.35957255959510803, 0.3049602508544922, 0.17471835017204285, 0.18919865787029266, 0.36371418833732605, 0.483135849237442, 0.4503192603588104, -0.32251060009002686, 0.0358877032995224, 0.1269647181034088, 0.08912187814712524, -0.02363135665655136, -0.006765082478523254, 0.013969160616397858, 0.26684126257896423, 0.3173689544200897, 0.06361524015665054, -0.1635798215866089, 0.05070628225803375, 0.027447950094938278, 0.18043124675750732, -0.2532268166542053, -0.02664635330438614, -0.03678330034017563, -0.17808741331100464, -0.11434315145015717, 0.07040093094110489, -0.22778382897377014, -0.1253741979598999, 0.35111886262893677, -0.0495123453438282, -0.0020049866288900375, 0.059643324464559555, 0.021805573254823685, -0.2592396140098572, 0.3652297854423523, 0.21829280257225037, 0.581095814704895, -0.2674707770347595, -0.2173578143119812, -0.6972264051437378, 0.3747785687446594, -0.019284289330244064, -0.2902244031429291, 0.216669961810112, -0.061144500970840454, -0.035545624792575836, 0.15558168292045593, 0.35504692792892456, -0.09201236814260483, 0.35959574580192566, 0.2411310225725174, -0.48582854866981506, -0.3335188627243042, -0.42509162425994873, 0.20828577876091003, -0.055401258170604706, -0.4326462149620056, 0.07480382919311523, 0.03523955121636391, 0.051915593445301056, -0.19041648507118225, -0.13461899757385254, -0.024871613830327988, -0.07959955930709839, 0.4432125687599182, -0.004204871132969856, 0.4430542588233948, -0.08528312295675278, -0.0573902428150177, 0.003983438014984131, -0.17294897139072418, -0.13894012570381165, 0.16092905402183533, 0.32594361901283264, 0.06457024812698364, -0.1252214014530182, -0.3071174919605255, -0.2925894856452942, 0.4147917926311493, -0.06716381758451462, 0.35461440682411194, -0.3536355793476105, 0.09400523453950882, -0.12472780048847198, 0.06841949373483658, 0.2927667498588562, 0.18029889464378357, -0.1506902426481247, 0.1551077961921692, -0.2595289945602417, -0.1846698671579361, 0.41246140003204346, -0.613974392414093, 0.06592804193496704, -0.06192312017083168, 0.3500468134880066, 0.03162258118391037, 0.14756576716899872, -0.3610765039920807, 0.07412854582071304, 0.44866982102394104, 0.0358198843896389, -0.3080539107322693, -0.003214282914996147, 0.1185038685798645, 0.1700795441865921, 0.09246368706226349, 0.3108471632003784, -0.04263036698102951, -0.31244051456451416, 0.08733674883842468, -0.12599606812000275 ]
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.44305112957954407, 0.20311906933784485, -0.04543623328208923, 0.4847757816314697, 0.3039817214012146, -0.02337576076388359, 0.2349691241979599, 0.3660460114479065, -0.10822908580303192, 0.0927526205778122, -0.16256952285766602, 0.4678148627281189, -0.007435155101120472, -0.0836077630519867, -0.01741788163781166, -0.13232511281967163, 0.03872229903936386, 0.27786386013031006, -0.6045756340026855, -0.048267826437950134, -0.43124687671661377, 0.3115382790565491, -0.10302935540676117, -0.09901583194732666, 0.03786054626107216, 0.07491367310285568, -0.1906295120716095, 0.3197145462036133, -0.09478820860385895, -0.2602507770061493, -0.020933059975504875, -0.1710365116596222, 0.2840127944946289, 0.5108668208122253, -0.00011839855869766325, 0.29027408361434937, 0.09254644811153412, -0.0907716378569603, -0.40238693356513977, -0.11114567518234253, -0.08325885981321335, -0.10315907746553421, 0.14823736250400543, -0.37903687357902527, -0.04245925694704056, -0.21750065684318542, -0.028211629018187523, -0.5162991285324097, 0.21042084693908691, 0.3379340171813965, 0.1746218502521515, 0.37422260642051697, 0.29021385312080383, -0.14841200411319733, 0.25406238436698914, -0.028347715735435486, -0.04140789806842804, 0.048455141484737396, 0.1556951403617859, -0.05657981336116791, 0.06519733369350433, 0.2920299470424652, -0.1614065021276474, 0.14696410298347473, 0.20899024605751038, 0.05813679099082947, 0.27018678188323975, -0.3370189070701599, 0.35683751106262207, 0.15774409472942352, 0.5403915643692017, -0.0280468687415123, -0.33318567276000977, -0.18784677982330322, 0.013049506582319736, -0.42981070280075073, 0.2435774803161621, 0.22146189212799072, -0.028591927140951157, 0.08683507889509201, 0.14127454161643982, -0.12389440834522247, -0.09403456002473831, 0.30540165305137634, -0.042059507220983505, 0.20012244582176208, -0.05761851370334625, -0.05916342884302139, 0.06311522424221039, 0.22395819425582886, 0.2793525755405426, 0.049779560416936874, -0.010078422725200653, 0.3172570765018463, -0.47452473640441895, 0.17730984091758728, 0.17189936339855194, 0.004030212759971619, 0.09337101876735687, -0.06502818316221237, 0.103612519800663, -0.23186209797859192, -0.023009512573480606, -0.07365299016237259, 0.2052510529756546, 0.047147236764431, -0.2928014397621155, -0.19846820831298828, 0.14046868681907654, 0.06259264796972275, -0.1818169206380844, -0.09568450599908829, -0.19329290091991425, -0.3410632908344269, 0.07598614692687988, 0.13471619784832, 0.575646162033081, -0.17886608839035034, -0.3567045331001282, -0.0537942498922348, -0.1881234347820282, -0.053214479237794876, 0.10692345350980759, 0.2891928255558014, -0.06075628101825714, 0.42051371932029724, 0.24402423202991486, 0.13031461834907532, -0.3833307921886444, 0.01570364460349083, -0.11939722299575806, -0.23960591852664948, -0.17519021034240723, -0.01822587661445141, 0.06443937122821808, -0.4865525960922241, 0.31543251872062683, 0.17321814596652985, -0.07354338467121124, -0.3623708486557007, 0.37775883078575134, -0.07942144572734833, -0.09546210616827011, 0.23110859096050262, -0.0021413490176200867, -0.12617138028144836, 0.1479647159576416, -0.01379336416721344, 0.09772447496652603, 0.4053347110748291, -0.4958994388580322, -0.5249587297439575, -0.47872817516326904, 0.17132887244224548, -0.30533748865127563, 0.13985294103622437, 0.30708828568458557, -0.17518994212150574, 0.1507406383752823, -0.1544896960258484, -0.098591648042202, -0.20918555557727814, -0.33282652497291565, -0.19358797371387482, 0.40815797448158264, 0.4952765107154846, -0.3194471299648285, 0.05533473193645477, -0.2524318993091583, -0.18812771141529083, -0.10420162230730057, -0.023047033697366714, -0.0677800178527832, 0.38774374127388, -0.5029060244560242, -0.26135873794555664, 0.2853181064128876, -0.44295185804367065, -0.6753483414649963, 0.029426265507936478, -0.24769330024719238, 0.04242273420095444, 0.3182738125324249, 0.05899703502655029, 0.3740198314189911, -0.009453913196921349, -0.1303226798772812, 0.21319448947906494, 0.13549134135246277, 0.018598640337586403, -0.14829665422439575, -0.14801062643527985, 0.04531900957226753, 0.24368755519390106, 0.0738343819975853, 0.07524046301841736, 0.1276138424873352, 0.11370600759983063, 0.2993847131729126, -0.14386086165905, -0.18325486779212952, 0.10969243943691254, 0.26585981249809265, 0.13968758285045624, 0.24375571310520172, -0.08726994693279266, -0.46745795011520386, 0.08274263888597488, -0.05335060879588127, 0.032667599618434906, -0.21871741116046906, -0.044813163578510284, -0.12930630147457123, 0.09564366936683655, -0.29363110661506653, -0.3219192624092102, 0.07301808893680573, 0.19819512963294983, 0.006688907742500305, 0.015833813697099686, -0.08682515472173691, 0.3457705080509186, 0.11645106971263885, 0.16742964088916779, -0.2508368492126465, 0.33035364747047424, 0.12076570838689804, -0.03791825845837593, -0.08129213750362396, 0.32041308283805847, 0.04530622437596321, -0.21025049686431885, -0.2788051664829254, 0.4593666195869446, 0.14847977459430695, -0.022525906562805176, -0.09866208583116531, 0.17531704902648926, 0.23589670658111572, -0.2645653188228607, -0.09821882098913193, 0.040937937796115875, 0.2143254578113556, 0.07084404677152634, 0.1004783883690834, 0.00427091121673584, -0.10083906352519989, 0.13193777203559875, 0.1286804974079132, -0.004212509840726852, 0.05995532125234604, -0.23997899889945984, 0.03504905104637146, -0.09277955442667007, 0.3647736608982086, -0.010066952556371689, 0.33986762166023254, 0.11484138667583466, -0.2486354261636734, -0.11684105545282364, 0.4487638473510742, -0.04094887524843216, 0.22450798749923706, 0.10496890544891357, -0.2105499804019928, 0.2330358624458313, -0.05826088786125183, 0.13383814692497253, 0.7634179592132568, 0.11589203029870987, -0.3087420165538788, 0.03031766787171364, 0.15680432319641113, -0.056059181690216064, 0.3047157824039459, 0.21357783675193787, 0.517604410648346, 0.4227156341075897, 0.05485495924949646, 0.21118725836277008, -0.10410769283771515, -0.43727076053619385, 0.1301829218864441, 0.2429523468017578, -0.32689645886421204, -0.02823573909699917, -0.22753216326236725, -0.0035175904631614685, -0.17453528940677643, -0.006303695961833, -0.1977388709783554, -0.11052805185317993, -0.003894757479429245, 0.11990693211555481, -0.05413449928164482, 0.05216340720653534, -0.2768757939338684, 0.08337470889091492, 0.23966117203235626, -0.22750400006771088, 0.17650993168354034, -0.07878781110048294, -0.12283434718847275, -0.07989488542079926, 0.3425711989402771, -0.12984372675418854, 0.25657954812049866, -0.32594648003578186, 0.13476571440696716, -0.17519816756248474, -0.2120332419872284, 0.15609727799892426, 0.28709226846694946, 0.15855251252651215, 0.12684118747711182, 0.21200864017009735, 0.1711958646774292, -0.23682823777198792, 0.23345795273780823, -0.1223336011171341, -0.05518963187932968, 0.11134569346904755, -0.012025494128465652, 0.24420857429504395, -0.0472903773188591, -0.4643706977367401, -0.3488773703575134, -0.48882654309272766, -0.08741694688796997, -0.06712821871042252, 0.2688065767288208, 0.19940298795700073, 0.12610183656215668, 0.2629387080669403, 0.29308655858039856, 0.04730449616909027, -0.01961428113281727, -0.18872235715389252, 0.21649828553199768, -0.30332478880882263, -0.2178204208612442, -0.2564585208892822, 0.0712675079703331, 0.29400137066841125, 0.031647637486457825, -0.6996404528617859, -0.3688037395477295, -0.09585961699485779, 0.19205470383167267, -0.4736229181289673, -0.021840473636984825, 0.22433318197727203, 0.098255455493927, 0.0231324415653944, -0.31204652786254883, 0.0890544056892395, 0.08111860603094101, -0.1509295105934143, 0.22348788380622864, -0.10417480021715164, 0.4505560100078583, -0.21829061210155487, 0.5835209488868713, -0.08966021239757538, -0.23262815177440643, 0.4943561851978302, -0.1522170752286911, 0.35611623525619507, -0.15522509813308716, -0.25264647603034973, -0.2044535130262375, -0.09172743558883667, 0.011841677129268646, 0.29499930143356323, 0.09037910401821136, 0.009650159627199173, -0.26924818754196167, 0.02041105553507805, -0.44740840792655945, -0.21610276401042938, 0.13285449147224426, -0.10353289544582367, 0.25435641407966614, -0.07475504279136658, 0.2682152986526489, -0.18866857886314392, -0.08505479246377945, 0.11541047692298889, 0.2735351324081421, 0.11694963276386261, -0.04271635413169861, 0.006859272718429565, -0.04283053055405617, -0.11970385164022446, 0.24232785403728485, -0.16726373136043549, 0.301117867231369, -0.03964848443865776, -0.10389243066310883, 0.01681344211101532, 0.001757672056555748, 0.8671801090240479, 0.16163405776023865, 0.06117519736289978, 0.07445028424263, 0.0017691440880298615, -0.20961301028728485, -0.1531897336244583, -0.048699844628572464, 0.5598671436309814, 0.4752480983734131, 0.6100463271141052, -0.1361042559146881, -0.20626308023929596, 0.19899393618106842, 0.24311569333076477, -0.09537447988986969, -0.4367496967315674, -0.3278191387653351, -0.3320831060409546, -0.26505768299102783, -0.05603640526533127, -0.05219133943319321, 0.457268089056015, -0.1983003318309784, 0.020833592861890793, -0.1782422810792923, -0.40051546692848206, -0.11744986474514008, 0.07239799201488495, 0.4080718159675598, -0.04514592885971069, 0.34366026520729065, 0.1963212937116623, 0.34036362171173096, 0.30592986941337585, 0.6303961277008057, -0.19953596591949463, -0.5900685787200928, 0.30275723338127136, -0.19650700688362122, 0.06575962901115417, 0.14682742953300476, -0.059620801359415054, -0.11455126851797104, 0.0031636953353881836, 0.18440580368041992, -0.09195885807275772, 0.009287379682064056, 0.23381654918193817, 0.03459400683641434, -0.35804539918899536, -0.30232369899749756, 0.35594606399536133, -0.025090467184782028, 0.003408581018447876, 0.33424845337867737, -0.2428392618894577, -0.15916705131530762, 0.5583696961402893, -0.022190295159816742, 0.8753299117088318, -0.19544367492198944, -0.04615473374724388, 0.033942531794309616, -0.2444026917219162, 0.7470541596412659, -0.44424164295196533, 0.1304812878370285, -0.30956655740737915, -0.38407373428344727, 0.04184189438819885, -0.2273295670747757, 0.1917005181312561, 0.012623488903045654, -0.15387779474258423, 0.10415265709161758, -0.1464485228061676, 0.12133316695690155, 0.16882266104221344, 0.35859090089797974, -0.1928761601448059, -0.1547819823026657, -0.20131930708885193, -0.006766011938452721, 0.07249978929758072, 0.47145894169807434, -0.15762758255004883, -0.25676071643829346, -0.18168959021568298, -0.025129815563559532, -0.05808687582612038, 0.18203681707382202, -0.505465567111969, 0.2635756731033325, -0.039433982223272324, -0.5898035168647766, 0.011645056307315826, 0.7242997288703918, 0.0000030100345611572266, 0.10093068331480026, -0.09026290476322174, 0.2722339332103729, 0.1893349587917328, 0.008150424808263779, 0.2704305946826935, -0.09077345579862595, 0.2482924908399582, -0.07753986120223999, -0.1894858181476593, 0.06359317153692245, -0.2281290590763092, -0.24015985429286957, 0.4469696283340454, -0.06989145278930664, 0.33709269762039185, -0.2419392168521881, -0.19584892690181732, -0.18468067049980164, -0.0030681565403938293, -0.10619980096817017, 0.08529365062713623, 0.08610641956329346, -0.2697000503540039, 0.003233574330806732, -0.17891378700733185, -0.41704270243644714, -0.03038686513900757, 0.3435991704463959, -0.1027662381529808, 0.19585931301116943, 0.5353902578353882, 0.24962250888347626, 0.07004738599061966, -0.12866199016571045, 0.08761406689882278, -0.07888302952051163, -0.863837480545044, 0.0030890400521457195, 0.13294342160224915, 0.19102995097637177, -0.1324959248304367, -0.3879999816417694, -0.04160933196544647, 0.024645797908306122, -0.2592005133628845, -0.8063874840736389, -0.12798772752285004, 0.0003270581364631653, -0.05551381781697273, 0.12090669572353363, 0.012571942061185837, 0.18140089511871338, -0.10557259619235992, -0.12669074535369873, -0.21392935514450073, 0.11383654922246933, -0.04158468171954155, -0.03509064018726349, 0.20873691141605377, -0.026191741228103638, 0.052214913070201874, -0.11483608186244965, 0.12241318821907043, 0.1322823315858841, -0.054590240120887756, -0.15929827094078064, -0.19863761961460114, 0.19145935773849487, -0.1697370409965515, -0.1901639699935913, -0.06949868053197861, -0.26038751006126404, -0.08234643936157227, -0.030807308852672577, 0.13417060673236847, -0.1280401349067688, -0.13420738279819489, -0.18077437579631805, 0.05295386165380478, 0.13503801822662354, -0.258734792470932, 0.30147939920425415, -0.15237823128700256, 0.15339766442775726, -0.046517252922058105, 0.34444162249565125, -0.1278184950351715, 0.06012269854545593, -0.2831701636314392, -0.21503424644470215, -0.019467830657958984, 0.05413035675883293, 0.29219958186149597, -0.2612032890319824, 0.043742503970861435, 0.2345060557126999, 0.06121021509170532, 0.2389371246099472, -0.2238365262746811, 0.04803459346294403, 0.15480610728263855, 0.2138175517320633, -0.20071789622306824, 0.046511538326740265, 0.22981010377407074, 0.2254759669303894, -0.01679867133498192, 0.12261830270290375, 0.12258505821228027, -0.0604853555560112, -0.02988371253013611, 0.07910668849945068, 0.2626868784427643, 0.40717262029647827, 0.37076887488365173, 0.8125099539756775, 0.031991053372621536, 0.22672803699970245, -0.16816796362400055, -0.20031733810901642, -0.013750366866588593, 0.5678637623786926, -0.15702486038208008, 0.14884242415428162, 0.16197752952575684, 0.1495591104030609, 0.07362839579582214, -0.44035494327545166, -0.10111403465270996, -0.05472610890865326, -0.01710961014032364, 0.17525818943977356, -0.2550037205219269, 0.510629415512085, -0.22628487646579742, 0.07696760445833206, -0.25330492854118347, 0.3183329999446869, -0.10501100867986679, 0.08239717781543732, -0.06454236805438995, -0.17114120721817017, 0.15845438838005066, 0.06100298836827278, -0.009204581379890442, 0.040819019079208374, -0.2774723470211029, 0.22813034057617188, -0.2549322843551636, -0.1301783174276352, -0.3134041428565979, 0.35952287912368774, -0.053951047360897064, -0.17070047557353973, 0.35957255959510803, 0.3049602508544922, 0.17471835017204285, 0.18919865787029266, 0.36371418833732605, 0.483135849237442, 0.4503192603588104, -0.32251060009002686, 0.0358877032995224, 0.1269647181034088, 0.08912187814712524, -0.02363135665655136, -0.006765082478523254, 0.013969160616397858, 0.26684126257896423, 0.3173689544200897, 0.06361524015665054, -0.1635798215866089, 0.05070628225803375, 0.027447950094938278, 0.18043124675750732, -0.2532268166542053, -0.02664635330438614, -0.03678330034017563, -0.17808741331100464, -0.11434315145015717, 0.07040093094110489, -0.22778382897377014, -0.1253741979598999, 0.35111886262893677, -0.0495123453438282, -0.0020049866288900375, 0.059643324464559555, 0.021805573254823685, -0.2592396140098572, 0.3652297854423523, 0.21829280257225037, 0.581095814704895, -0.2674707770347595, -0.2173578143119812, -0.6972264051437378, 0.3747785687446594, -0.019284289330244064, -0.2902244031429291, 0.216669961810112, -0.061144500970840454, -0.035545624792575836, 0.15558168292045593, 0.35504692792892456, -0.09201236814260483, 0.35959574580192566, 0.2411310225725174, -0.48582854866981506, -0.3335188627243042, -0.42509162425994873, 0.20828577876091003, -0.055401258170604706, -0.4326462149620056, 0.07480382919311523, 0.03523955121636391, 0.051915593445301056, -0.19041648507118225, -0.13461899757385254, -0.024871613830327988, -0.07959955930709839, 0.4432125687599182, -0.004204871132969856, 0.4430542588233948, -0.08528312295675278, -0.0573902428150177, 0.003983438014984131, -0.17294897139072418, -0.13894012570381165, 0.16092905402183533, 0.32594361901283264, 0.06457024812698364, -0.1252214014530182, -0.3071174919605255, -0.2925894856452942, 0.4147917926311493, -0.06716381758451462, 0.35461440682411194, -0.3536355793476105, 0.09400523453950882, -0.12472780048847198, 0.06841949373483658, 0.2927667498588562, 0.18029889464378357, -0.1506902426481247, 0.1551077961921692, -0.2595289945602417, -0.1846698671579361, 0.41246140003204346, -0.613974392414093, 0.06592804193496704, -0.06192312017083168, 0.3500468134880066, 0.03162258118391037, 0.14756576716899872, -0.3610765039920807, 0.07412854582071304, 0.44866982102394104, 0.0358198843896389, -0.3080539107322693, -0.003214282914996147, 0.1185038685798645, 0.1700795441865921, 0.09246368706226349, 0.3108471632003784, -0.04263036698102951, -0.31244051456451416, 0.08733674883842468, -0.12599606812000275 ]
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.23283571004867554, -0.3903885781764984, -0.04445696994662285, 0.16449064016342163, -0.10854555666446686, -0.06876929104328156, 0.11633878946304321, 0.4056321978569031, 0.6400423049926758, 0.11788129061460495, -0.05657234787940979, 0.24608545005321503, -0.39544111490249634, 0.10435456782579422, -0.16292166709899902, 0.16080279648303986, -0.044933222234249115, 0.14057955145835876, -0.16911719739437103, -0.19149257242679596, -0.3362928330898285, 0.16319964826107025, -0.39792609214782715, -0.050104111433029175, -0.14877139031887054, -0.29197537899017334, 0.2864794433116913, -0.03620988875627518, -0.16281409561634064, -0.2454041987657547, 0.20609132945537567, -0.23282960057258606, -0.20913605391979218, 0.5783204436302185, -0.00012992756091989577, -0.023137491196393967, 0.15059375762939453, -0.18518859148025513, -0.08976078033447266, -0.30296117067337036, -0.1908179223537445, -0.17153027653694153, -0.11571899056434631, -0.28246554732322693, 0.1819458305835724, -0.2716505825519562, -0.19563539326190948, -0.4482395052909851, 0.10719674080610275, 0.2587006390094757, 0.04332170635461807, 0.41881802678108215, 0.0030669011175632477, 0.1764482855796814, 0.3312491774559021, 0.2664015591144562, -0.0753515362739563, 0.12881143391132355, 0.7205767631530762, -0.2881000339984894, 0.022628337144851685, 0.33858999609947205, -0.39218443632125854, 0.07090604305267334, 0.13675549626350403, -0.030903343111276627, 0.23016825318336487, -0.5515580177307129, 0.2697512209415436, 0.3675670623779297, -0.0900002047419548, 0.06078575924038887, -0.4333362579345703, -0.6687809228897095, -0.04030340164899826, -0.09549891948699951, -0.03889739513397217, 0.2810015380382538, -0.42103928327560425, -0.056459683924913406, -0.48461854457855225, 0.12179434299468994, 0.007894709706306458, 0.1618545651435852, 0.030676499009132385, 0.45895466208457947, -0.09304071217775345, 0.2003244161605835, 0.3451099097728729, -0.16183258593082428, -0.09940237551927567, -0.16727103292942047, -0.2236279845237732, 0.5847228765487671, -0.036699797958135605, -0.14598754048347473, 0.3893197476863861, 0.21976801753044128, 0.22303572297096252, -0.3132421374320984, -0.05030704289674759, -0.07427571713924408, 0.2646808922290802, -0.023431487381458282, 0.41594502329826355, 0.0793757289648056, 0.2686937749385834, 0.34931978583335876, -0.005051732063293457, -0.05909411981701851, 0.06769010424613953, 0.11316955834627151, 0.11344167590141296, -0.08908388763666153, -0.009650817140936852, -0.07640804350376129, 0.25678545236587524, -0.07875248044729233, -0.12189842760562897, 0.23410125076770782, -0.4100172519683838, 0.13690681755542755, 0.06204803287982941, 0.12508299946784973, 0.17005744576454163, -0.17767232656478882, 0.1202130913734436, 0.11262907832860947, -0.15702861547470093, 0.1897115707397461, -0.07724695652723312, -0.1316169649362564, -0.19250144064426422, -0.32082515954971313, 0.19647885859012604, -0.33428630232810974, 0.24181696772575378, -0.1585833579301834, 0.019827812910079956, -0.06153399869799614, 0.09574074298143387, -0.26456236839294434, 0.7512259483337402, 0.49378809332847595, -0.11951078474521637, 0.2913576364517212, 0.3966234624385834, -0.2185577154159546, -0.17528337240219116, 0.4062905013561249, -0.3826132118701935, -0.2777351438999176, 0.21004116535186768, -0.040186598896980286, -0.23807570338249207, 0.3465711772441864, -0.5073066353797913, 0.2185843586921692, 0.17824572324752808, 0.08225111663341522, 0.2914721667766571, -0.2697463631629944, -0.10539513826370239, -0.23601150512695312, 0.04256308823823929, 0.6938400864601135, -0.6387714743614197, -0.049924351274967194, 0.11019014567136765, 0.10137894749641418, -0.061366014182567596, 0.34788036346435547, -0.04546039178967476, 0.34811022877693176, -0.4107355773448944, 0.30598658323287964, 0.08731269836425781, -0.12647072970867157, -0.32756295800209045, 0.313419908285141, -0.035814493894577026, 0.23563890159130096, -0.021055027842521667, -0.0642477422952652, 0.5519369840621948, -0.18738888204097748, 0.3676513135433197, -0.17005832493305206, -0.279957115650177, 0.10416298359632492, -0.05038165673613548, -0.03984452039003372, 0.06037992984056473, -0.24208195507526398, 0.19492442905902863, 0.01658736914396286, 0.03907826170325279, -0.5488616228103638, 0.1286391019821167, -0.15087857842445374, 0.33836275339126587, 0.2401699721813202, 0.26210886240005493, 0.1233314499258995, 0.0182515736669302, -0.25635242462158203, -0.47136205434799194, 0.30017632246017456, -0.48803383111953735, 0.021247990429401398, -0.433834433555603, -0.10330353677272797, 0.03096431866288185, 0.18347382545471191, -0.03501986339688301, 0.03309561684727669, -0.07492087781429291, -0.49758055806159973, 0.1765720695257187, -0.021343614906072617, -0.2262362688779831, -0.23706969618797302, -0.13586565852165222, -0.008439034223556519, -0.35672318935394287, 0.07136140018701553, 0.2501074969768524, -0.2921583354473114, -0.2542048990726471, 0.24662992358207703, 0.1149318516254425, -0.11761096864938736, 0.11735381931066513, 0.17585280537605286, -0.03481536731123924, -0.1673574596643448, -0.14001286029815674, 0.13125267624855042, 0.011728176847100258, -0.045801110565662384, 0.10183678567409515, 0.14501364529132843, 0.3444770574569702, -0.23784318566322327, -0.06940644234418869, 0.5054202675819397, -0.18761567771434784, 0.5359300971031189, -0.17968614399433136, 0.05123795568943024, -0.19963207840919495, 0.04260646924376488, -0.20592130720615387, -0.38505059480667114, 0.07628369331359863, -0.15773656964302063, 0.05133714899420738, 0.031914614140987396, 0.001256503164768219, -0.19892141222953796, 0.08561684191226959, -0.046961963176727295, 0.16477924585342407, 0.014488227665424347, -0.06305212527513504, 0.22669023275375366, 0.044692281633615494, -0.014278262853622437, 0.3432701528072357, 0.21914228796958923, -0.0887264758348465, -0.15218167006969452, 0.250440388917923, 0.00012227147817611694, 0.4139186143875122, 0.18166814744472504, 0.026053600013256073, 0.15500998497009277, -0.003640607465058565, -0.06572043895721436, -0.2528342604637146, -0.18143008649349213, 0.005715254694223404, 0.14953403174877167, -0.3952977955341339, -0.03541942685842514, 0.11011520028114319, -0.1585041582584381, 0.06897593289613724, -0.0765034481883049, -0.29085609316825867, -0.30322790145874023, -0.04533405601978302, 0.2601591646671295, -0.27227088809013367, -0.02400803379714489, -0.4013134241104126, 0.01165229082107544, 0.19750960171222687, -0.27471962571144104, -0.2812996208667755, -0.1685466170310974, -0.07561104744672775, -0.07415927201509476, 0.073114313185215, -0.13398690521717072, 0.36156314611434937, 0.25213682651519775, -0.2612817585468292, -0.24377208948135376, -0.09511401504278183, 0.006513349711894989, -0.5370392203330994, 0.2054038941860199, 0.41009241342544556, 0.3981708884239197, -0.2923850417137146, 0.14706027507781982, 0.279386430978775, -0.10714296996593475, -0.24806860089302063, -0.00790521502494812, 0.022333761677145958, 0.15326252579689026, -0.17921561002731323, 0.14743101596832275, 0.0644615963101387, -0.3209299147129059, 0.17818498611450195, -0.18915896117687225, 0.2615518569946289, 0.21945302188396454, 0.27800777554512024, 0.15385715663433075, -0.36937758326530457, -0.4285490810871124, 0.12235129624605179, -0.14167726039886475, 0.4460204839706421, 0.03902313485741615, -0.14693112671375275, 0.1844056248664856, 0.026218421757221222, -0.18531988561153412, 0.2405562698841095, -0.09668606519699097, 0.09396382421255112, -0.056274451315402985, 0.12348286807537079, 0.1900063157081604, 0.3668002188205719, 0.4985276460647583, 0.0864880159497261, 0.04604547470808029, -0.28467217087745667, -0.1089552789926529, 0.08126379549503326, 0.022276651114225388, -0.06451382488012314, 0.42252981662750244, 0.3217892050743103, 0.0287003256380558, 0.7504054307937622, 0.3654770255088806, 0.12721385061740875, 0.09464582800865173, 0.07253674417734146, 0.38223594427108765, -0.11400652676820755, -0.37969261407852173, -0.2082245796918869, 0.1538848727941513, -0.08407792448997498, 0.03251326084136963, 0.05505496263504028, -0.062034204602241516, -0.0012856274843215942, 0.061899978667497635, -0.4879451096057892, -0.18903684616088867, 0.42400965094566345, -0.3093627989292145, 0.07615570724010468, -0.07491466403007507, 0.09561606496572495, -0.27880963683128357, -0.18202704191207886, -0.163715198636055, -0.30362361669540405, 0.6426759958267212, -0.0823243111371994, -0.07537972182035446, -0.11549800634384155, -0.6797433495521545, 0.332533597946167, 0.22118018567562103, -0.08481132984161377, 0.10671699047088623, -0.18529391288757324, 0.06875752657651901, 0.3100571930408478, 0.9494884610176086, -0.19327138364315033, 0.15665507316589355, 0.08142608404159546, -0.0248432457447052, -0.44353413581848145, 0.09980598092079163, -0.3279417157173157, 0.25508660078048706, 0.2495431900024414, 0.5071650147438049, -0.35752564668655396, -0.07234398275613785, -0.04205328971147537, -0.02773205190896988, 0.034722428768873215, -0.026487112045288086, -0.17338134348392487, -0.14954152703285217, -0.13803279399871826, 0.36458098888397217, 0.446945458650589, 0.07268578559160233, 0.13567019999027252, -0.20947128534317017, -0.0988864153623581, 0.048170074820518494, 0.017598874866962433, -0.13403019309043884, 0.4707481265068054, 0.015833018347620964, 0.05059869959950447, 0.27013641595840454, 0.11173439025878906, 0.22062979638576508, 0.49006325006484985, -0.1534297615289688, 0.20740744471549988, -0.1815868616104126, 0.03059045970439911, 0.3123362064361572, 0.4398152828216553, 0.009965001605451107, 0.05791475996375084, 0.3812752068042755, 0.35221797227859497, -0.051504071801900864, -0.2942022383213043, 0.12623605132102966, 0.04640406742691994, -0.5417690277099609, 0.003657648339867592, 0.11587845534086227, -0.09958258271217346, 0.08497054874897003, 0.6082310676574707, 0.5790848731994629, -0.36380505561828613, 0.36096566915512085, 0.043292149901390076, 0.8923065066337585, -0.014892376959323883, 0.10762687027454376, 0.14868056774139404, 0.0709487721323967, 0.24982993304729462, 0.5552586317062378, 0.0943637266755104, 0.008421968668699265, 0.09743781387805939, -0.040766000747680664, -0.008215676993131638, 0.16687512397766113, 0.34003758430480957, 0.10278630256652832, 0.27085989713668823, 0.08195677399635315, 0.12089425325393677, -0.15034636855125427, -0.2895890474319458, 0.28774580359458923, -0.33018115162849426, -0.3449309170246124, -0.07553870975971222, 0.07857071608304977, 0.26576754450798035, -0.05793020501732826, -0.1058482974767685, -0.030923735350370407, -0.40376752614974976, -0.1928453892469406, -0.18520227074623108, -0.44498950242996216, 0.021174756810069084, 0.26389288902282715, -0.2862427532672882, -0.03285883367061615, 0.05158493295311928, -0.48061710596084595, 0.14473272860050201, -0.11111164093017578, -0.13308390974998474, 0.38927921652793884, 0.17192384600639343, 0.021821947768330574, -0.15219280123710632, 0.17261749505996704, 0.1998167335987091, -0.1803189516067505, 0.057553526014089584, -0.45185956358909607, -0.17299476265907288, 0.06446637213230133, 0.40836602449417114, -0.20234115421772003, -0.22289937734603882, -0.3968207836151123, -0.19215920567512512, 0.10154229402542114, 0.03948751464486122, -0.08833837509155273, 0.2670641541481018, -0.07576633989810944, 0.3907504677772522, -0.19200892746448517, -0.45341914892196655, -0.04374212399125099, 0.5255666971206665, 0.03463037312030792, -0.19231882691383362, 0.4125709533691406, 0.15918570756912231, -0.1644415259361267, -0.06954294443130493, 0.13838890194892883, 0.34264320135116577, -0.6278494000434875, 0.5433263778686523, 0.24986962974071503, 0.03699062764644623, 0.13783232867717743, 0.41851022839546204, 0.13686391711235046, 0.27986475825309753, -0.3155876100063324, -0.1867188811302185, -0.2580825090408325, 0.40863823890686035, 0.10354239493608475, 0.035981014370918274, -0.1420457661151886, -0.23673973977565765, 0.3288373351097107, -0.19563071429729462, -0.15207552909851074, 0.06600530445575714, -0.08657748997211456, 0.3288321793079376, 0.21843375265598297, 0.26404255628585815, 0.35698312520980835, -0.08181209862232208, -0.10281717777252197, 0.13153085112571716, -0.27935099601745605, -0.073605477809906, -0.0467090979218483, 0.17635464668273926, 0.10426033288240433, -0.22039881348609924, 0.16272330284118652, -0.40742015838623047, -0.04600652679800987, -0.40626609325408936, 0.26194947957992554, 0.490959107875824, -0.004013814032077789, -0.23783327639102936, 0.3719468116760254, 0.06007802486419678, -0.029746809974312782, 0.20644636452198029, -0.1776881217956543, -0.0705975592136383, -0.06777909398078918, 0.30435365438461304, 0.16345958411693573, 0.03375082463026047, 0.0829736590385437, 0.07204768061637878, 0.014261744916439056, 0.0030940547585487366, 0.42278701066970825, -0.20461107790470123, -0.21244584023952484, 0.3322131633758545, 0.2543899118900299, 0.018418680876493454, -0.02085989899933338, -0.15182942152023315, 0.2098129391670227, 0.006031926721334457, -0.15236224234104156, 0.028843248263001442, 0.15505151450634003, 0.3418107032775879, 0.2605256140232086, 0.3646138310432434, -0.16854192316532135, -0.2591923177242279, 0.017467960715293884, 0.1886158585548401, 0.021103855222463608, 0.03094010427594185, 0.1880583018064499, 0.3906852602958679, 0.33342796564102173, -0.09894318878650665, 0.3222149908542633, 0.07886938750743866, 0.2825942635536194, 0.29012855887413025, 0.23771032691001892, 0.2660050094127655, 0.013971326872706413, 0.08644550293684006, -0.20485392212867737, -0.5083085894584656, 0.03778529912233353, 0.08903393149375916, -0.0027340054512023926, 0.3360837399959564, 0.12346324324607849, 0.15381187200546265, -0.19242210686206818, -0.2750571668148041, 0.04185990244150162, 0.002172861248254776, -0.34546133875846863, -0.06183424964547157, -0.31367623805999756, -0.25614210963249207, 0.41509339213371277, -0.16091686487197876, 0.06273752450942993, -0.34548628330230713, 0.3650219738483429, -0.07760721445083618, -0.09537062048912048, -0.14416520297527313, -0.3677254915237427, 0.024003352969884872, 0.22925874590873718, -0.11037912219762802, 0.13786345720291138, -0.0913228839635849, -0.04632865637540817, 0.05049194395542145, 0.5798308849334717, 0.511163592338562, 0.3985682725906372, -0.02461089938879013, 0.4008246660232544, 0.13015742599964142, -0.24362587928771973, -0.28619271516799927, 0.36318954825401306, -0.05952902138233185, -0.025095298886299133, 0.2001095712184906, -0.010452114045619965, -0.04692602902650833, -0.06305484473705292, -0.0026355870068073273, 0.10762634873390198, 0.16351468861103058, -0.19085565209388733, -0.1974218636751175, -0.23625344038009644, -0.26874762773513794, -0.049194447696208954, -0.08179516345262527, 0.01605377346277237, 0.2938632369041443, -0.09964151680469513, 0.046356067061424255, 0.07786117494106293, -0.001332659274339676, -0.041519973427057266, 0.25831183791160583, 0.45365941524505615, 0.0035885386168956757, -0.48415112495422363, 0.17722325026988983, -0.3718906342983246, -0.03017307072877884, -0.4928686022758484, 0.2783651351928711, 0.03891878202557564, 0.1972583681344986, 0.11981698125600815, -0.12264202535152435, 0.3183072805404663, -0.05017324537038803, -0.043834444135427475, 0.3545491695404053, 0.06481362879276276, -0.27906352281570435, -0.1928185671567917, -0.013535479083657265, 0.010153859853744507, -0.384270578622818, 0.10624651610851288, -0.11351165175437927, -0.0753600001335144, -0.10560978949069977, 0.1699267327785492, -0.15767164528369904, 0.027592303231358528, 0.17741377651691437, 0.3360167443752289, -0.041894957423210144, 0.029431849718093872, -0.017705241218209267, -0.35040315985679626, 0.14641951024532318, -0.12648987770080566, 0.13943663239479065, 0.3596007227897644, 0.4612451493740082, -0.3284626305103302, -0.20270629227161407, -0.02407522313296795, 0.042347151786088943, 0.00464441254734993, 0.036161426454782486, -0.18189294636249542, 0.14358468353748322, -0.3938451409339905, -0.03583987429738045, -0.12207382917404175, 0.022270910441875458, 0.08602289855480194, 0.02708565630018711, -0.25258761644363403, -0.3549431264400482, 0.38276439905166626, -0.6531062126159668, -0.2620072662830353, -0.06931997090578079, 0.3420597016811371, 0.2115110158920288, -0.2256404012441635, -0.3928539752960205, -0.17191985249519348, 0.26260146498680115, -0.06935829669237137, -0.06165467947721481, -0.18479059636592865, -0.5037381052970886, -0.03442905470728874, -0.1576237976551056, 0.11528265476226807, 0.03572014719247818, 0.006658462807536125, 0.2311963438987732, -0.3098658323287964 ]
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.23283571004867554, -0.3903885781764984, -0.04445696994662285, 0.16449064016342163, -0.10854555666446686, -0.06876929104328156, 0.11633878946304321, 0.4056321978569031, 0.6400423049926758, 0.11788129061460495, -0.05657234787940979, 0.24608545005321503, -0.39544111490249634, 0.10435456782579422, -0.16292166709899902, 0.16080279648303986, -0.044933222234249115, 0.14057955145835876, -0.16911719739437103, -0.19149257242679596, -0.3362928330898285, 0.16319964826107025, -0.39792609214782715, -0.050104111433029175, -0.14877139031887054, -0.29197537899017334, 0.2864794433116913, -0.03620988875627518, -0.16281409561634064, -0.2454041987657547, 0.20609132945537567, -0.23282960057258606, -0.20913605391979218, 0.5783204436302185, -0.00012992756091989577, -0.023137491196393967, 0.15059375762939453, -0.18518859148025513, -0.08976078033447266, -0.30296117067337036, -0.1908179223537445, -0.17153027653694153, -0.11571899056434631, -0.28246554732322693, 0.1819458305835724, -0.2716505825519562, -0.19563539326190948, -0.4482395052909851, 0.10719674080610275, 0.2587006390094757, 0.04332170635461807, 0.41881802678108215, 0.0030669011175632477, 0.1764482855796814, 0.3312491774559021, 0.2664015591144562, -0.0753515362739563, 0.12881143391132355, 0.7205767631530762, -0.2881000339984894, 0.022628337144851685, 0.33858999609947205, -0.39218443632125854, 0.07090604305267334, 0.13675549626350403, -0.030903343111276627, 0.23016825318336487, -0.5515580177307129, 0.2697512209415436, 0.3675670623779297, -0.0900002047419548, 0.06078575924038887, -0.4333362579345703, -0.6687809228897095, -0.04030340164899826, -0.09549891948699951, -0.03889739513397217, 0.2810015380382538, -0.42103928327560425, -0.056459683924913406, -0.48461854457855225, 0.12179434299468994, 0.007894709706306458, 0.1618545651435852, 0.030676499009132385, 0.45895466208457947, -0.09304071217775345, 0.2003244161605835, 0.3451099097728729, -0.16183258593082428, -0.09940237551927567, -0.16727103292942047, -0.2236279845237732, 0.5847228765487671, -0.036699797958135605, -0.14598754048347473, 0.3893197476863861, 0.21976801753044128, 0.22303572297096252, -0.3132421374320984, -0.05030704289674759, -0.07427571713924408, 0.2646808922290802, -0.023431487381458282, 0.41594502329826355, 0.0793757289648056, 0.2686937749385834, 0.34931978583335876, -0.005051732063293457, -0.05909411981701851, 0.06769010424613953, 0.11316955834627151, 0.11344167590141296, -0.08908388763666153, -0.009650817140936852, -0.07640804350376129, 0.25678545236587524, -0.07875248044729233, -0.12189842760562897, 0.23410125076770782, -0.4100172519683838, 0.13690681755542755, 0.06204803287982941, 0.12508299946784973, 0.17005744576454163, -0.17767232656478882, 0.1202130913734436, 0.11262907832860947, -0.15702861547470093, 0.1897115707397461, -0.07724695652723312, -0.1316169649362564, -0.19250144064426422, -0.32082515954971313, 0.19647885859012604, -0.33428630232810974, 0.24181696772575378, -0.1585833579301834, 0.019827812910079956, -0.06153399869799614, 0.09574074298143387, -0.26456236839294434, 0.7512259483337402, 0.49378809332847595, -0.11951078474521637, 0.2913576364517212, 0.3966234624385834, -0.2185577154159546, -0.17528337240219116, 0.4062905013561249, -0.3826132118701935, -0.2777351438999176, 0.21004116535186768, -0.040186598896980286, -0.23807570338249207, 0.3465711772441864, -0.5073066353797913, 0.2185843586921692, 0.17824572324752808, 0.08225111663341522, 0.2914721667766571, -0.2697463631629944, -0.10539513826370239, -0.23601150512695312, 0.04256308823823929, 0.6938400864601135, -0.6387714743614197, -0.049924351274967194, 0.11019014567136765, 0.10137894749641418, -0.061366014182567596, 0.34788036346435547, -0.04546039178967476, 0.34811022877693176, -0.4107355773448944, 0.30598658323287964, 0.08731269836425781, -0.12647072970867157, -0.32756295800209045, 0.313419908285141, -0.035814493894577026, 0.23563890159130096, -0.021055027842521667, -0.0642477422952652, 0.5519369840621948, -0.18738888204097748, 0.3676513135433197, -0.17005832493305206, -0.279957115650177, 0.10416298359632492, -0.05038165673613548, -0.03984452039003372, 0.06037992984056473, -0.24208195507526398, 0.19492442905902863, 0.01658736914396286, 0.03907826170325279, -0.5488616228103638, 0.1286391019821167, -0.15087857842445374, 0.33836275339126587, 0.2401699721813202, 0.26210886240005493, 0.1233314499258995, 0.0182515736669302, -0.25635242462158203, -0.47136205434799194, 0.30017632246017456, -0.48803383111953735, 0.021247990429401398, -0.433834433555603, -0.10330353677272797, 0.03096431866288185, 0.18347382545471191, -0.03501986339688301, 0.03309561684727669, -0.07492087781429291, -0.49758055806159973, 0.1765720695257187, -0.021343614906072617, -0.2262362688779831, -0.23706969618797302, -0.13586565852165222, -0.008439034223556519, -0.35672318935394287, 0.07136140018701553, 0.2501074969768524, -0.2921583354473114, -0.2542048990726471, 0.24662992358207703, 0.1149318516254425, -0.11761096864938736, 0.11735381931066513, 0.17585280537605286, -0.03481536731123924, -0.1673574596643448, -0.14001286029815674, 0.13125267624855042, 0.011728176847100258, -0.045801110565662384, 0.10183678567409515, 0.14501364529132843, 0.3444770574569702, -0.23784318566322327, -0.06940644234418869, 0.5054202675819397, -0.18761567771434784, 0.5359300971031189, -0.17968614399433136, 0.05123795568943024, -0.19963207840919495, 0.04260646924376488, -0.20592130720615387, -0.38505059480667114, 0.07628369331359863, -0.15773656964302063, 0.05133714899420738, 0.031914614140987396, 0.001256503164768219, -0.19892141222953796, 0.08561684191226959, -0.046961963176727295, 0.16477924585342407, 0.014488227665424347, -0.06305212527513504, 0.22669023275375366, 0.044692281633615494, -0.014278262853622437, 0.3432701528072357, 0.21914228796958923, -0.0887264758348465, -0.15218167006969452, 0.250440388917923, 0.00012227147817611694, 0.4139186143875122, 0.18166814744472504, 0.026053600013256073, 0.15500998497009277, -0.003640607465058565, -0.06572043895721436, -0.2528342604637146, -0.18143008649349213, 0.005715254694223404, 0.14953403174877167, -0.3952977955341339, -0.03541942685842514, 0.11011520028114319, -0.1585041582584381, 0.06897593289613724, -0.0765034481883049, -0.29085609316825867, -0.30322790145874023, -0.04533405601978302, 0.2601591646671295, -0.27227088809013367, -0.02400803379714489, -0.4013134241104126, 0.01165229082107544, 0.19750960171222687, -0.27471962571144104, -0.2812996208667755, -0.1685466170310974, -0.07561104744672775, -0.07415927201509476, 0.073114313185215, -0.13398690521717072, 0.36156314611434937, 0.25213682651519775, -0.2612817585468292, -0.24377208948135376, -0.09511401504278183, 0.006513349711894989, -0.5370392203330994, 0.2054038941860199, 0.41009241342544556, 0.3981708884239197, -0.2923850417137146, 0.14706027507781982, 0.279386430978775, -0.10714296996593475, -0.24806860089302063, -0.00790521502494812, 0.022333761677145958, 0.15326252579689026, -0.17921561002731323, 0.14743101596832275, 0.0644615963101387, -0.3209299147129059, 0.17818498611450195, -0.18915896117687225, 0.2615518569946289, 0.21945302188396454, 0.27800777554512024, 0.15385715663433075, -0.36937758326530457, -0.4285490810871124, 0.12235129624605179, -0.14167726039886475, 0.4460204839706421, 0.03902313485741615, -0.14693112671375275, 0.1844056248664856, 0.026218421757221222, -0.18531988561153412, 0.2405562698841095, -0.09668606519699097, 0.09396382421255112, -0.056274451315402985, 0.12348286807537079, 0.1900063157081604, 0.3668002188205719, 0.4985276460647583, 0.0864880159497261, 0.04604547470808029, -0.28467217087745667, -0.1089552789926529, 0.08126379549503326, 0.022276651114225388, -0.06451382488012314, 0.42252981662750244, 0.3217892050743103, 0.0287003256380558, 0.7504054307937622, 0.3654770255088806, 0.12721385061740875, 0.09464582800865173, 0.07253674417734146, 0.38223594427108765, -0.11400652676820755, -0.37969261407852173, -0.2082245796918869, 0.1538848727941513, -0.08407792448997498, 0.03251326084136963, 0.05505496263504028, -0.062034204602241516, -0.0012856274843215942, 0.061899978667497635, -0.4879451096057892, -0.18903684616088867, 0.42400965094566345, -0.3093627989292145, 0.07615570724010468, -0.07491466403007507, 0.09561606496572495, -0.27880963683128357, -0.18202704191207886, -0.163715198636055, -0.30362361669540405, 0.6426759958267212, -0.0823243111371994, -0.07537972182035446, -0.11549800634384155, -0.6797433495521545, 0.332533597946167, 0.22118018567562103, -0.08481132984161377, 0.10671699047088623, -0.18529391288757324, 0.06875752657651901, 0.3100571930408478, 0.9494884610176086, -0.19327138364315033, 0.15665507316589355, 0.08142608404159546, -0.0248432457447052, -0.44353413581848145, 0.09980598092079163, -0.3279417157173157, 0.25508660078048706, 0.2495431900024414, 0.5071650147438049, -0.35752564668655396, -0.07234398275613785, -0.04205328971147537, -0.02773205190896988, 0.034722428768873215, -0.026487112045288086, -0.17338134348392487, -0.14954152703285217, -0.13803279399871826, 0.36458098888397217, 0.446945458650589, 0.07268578559160233, 0.13567019999027252, -0.20947128534317017, -0.0988864153623581, 0.048170074820518494, 0.017598874866962433, -0.13403019309043884, 0.4707481265068054, 0.015833018347620964, 0.05059869959950447, 0.27013641595840454, 0.11173439025878906, 0.22062979638576508, 0.49006325006484985, -0.1534297615289688, 0.20740744471549988, -0.1815868616104126, 0.03059045970439911, 0.3123362064361572, 0.4398152828216553, 0.009965001605451107, 0.05791475996375084, 0.3812752068042755, 0.35221797227859497, -0.051504071801900864, -0.2942022383213043, 0.12623605132102966, 0.04640406742691994, -0.5417690277099609, 0.003657648339867592, 0.11587845534086227, -0.09958258271217346, 0.08497054874897003, 0.6082310676574707, 0.5790848731994629, -0.36380505561828613, 0.36096566915512085, 0.043292149901390076, 0.8923065066337585, -0.014892376959323883, 0.10762687027454376, 0.14868056774139404, 0.0709487721323967, 0.24982993304729462, 0.5552586317062378, 0.0943637266755104, 0.008421968668699265, 0.09743781387805939, -0.040766000747680664, -0.008215676993131638, 0.16687512397766113, 0.34003758430480957, 0.10278630256652832, 0.27085989713668823, 0.08195677399635315, 0.12089425325393677, -0.15034636855125427, -0.2895890474319458, 0.28774580359458923, -0.33018115162849426, -0.3449309170246124, -0.07553870975971222, 0.07857071608304977, 0.26576754450798035, -0.05793020501732826, -0.1058482974767685, -0.030923735350370407, -0.40376752614974976, -0.1928453892469406, -0.18520227074623108, -0.44498950242996216, 0.021174756810069084, 0.26389288902282715, -0.2862427532672882, -0.03285883367061615, 0.05158493295311928, -0.48061710596084595, 0.14473272860050201, -0.11111164093017578, -0.13308390974998474, 0.38927921652793884, 0.17192384600639343, 0.021821947768330574, -0.15219280123710632, 0.17261749505996704, 0.1998167335987091, -0.1803189516067505, 0.057553526014089584, -0.45185956358909607, -0.17299476265907288, 0.06446637213230133, 0.40836602449417114, -0.20234115421772003, -0.22289937734603882, -0.3968207836151123, -0.19215920567512512, 0.10154229402542114, 0.03948751464486122, -0.08833837509155273, 0.2670641541481018, -0.07576633989810944, 0.3907504677772522, -0.19200892746448517, -0.45341914892196655, -0.04374212399125099, 0.5255666971206665, 0.03463037312030792, -0.19231882691383362, 0.4125709533691406, 0.15918570756912231, -0.1644415259361267, -0.06954294443130493, 0.13838890194892883, 0.34264320135116577, -0.6278494000434875, 0.5433263778686523, 0.24986962974071503, 0.03699062764644623, 0.13783232867717743, 0.41851022839546204, 0.13686391711235046, 0.27986475825309753, -0.3155876100063324, -0.1867188811302185, -0.2580825090408325, 0.40863823890686035, 0.10354239493608475, 0.035981014370918274, -0.1420457661151886, -0.23673973977565765, 0.3288373351097107, -0.19563071429729462, -0.15207552909851074, 0.06600530445575714, -0.08657748997211456, 0.3288321793079376, 0.21843375265598297, 0.26404255628585815, 0.35698312520980835, -0.08181209862232208, -0.10281717777252197, 0.13153085112571716, -0.27935099601745605, -0.073605477809906, -0.0467090979218483, 0.17635464668273926, 0.10426033288240433, -0.22039881348609924, 0.16272330284118652, -0.40742015838623047, -0.04600652679800987, -0.40626609325408936, 0.26194947957992554, 0.490959107875824, -0.004013814032077789, -0.23783327639102936, 0.3719468116760254, 0.06007802486419678, -0.029746809974312782, 0.20644636452198029, -0.1776881217956543, -0.0705975592136383, -0.06777909398078918, 0.30435365438461304, 0.16345958411693573, 0.03375082463026047, 0.0829736590385437, 0.07204768061637878, 0.014261744916439056, 0.0030940547585487366, 0.42278701066970825, -0.20461107790470123, -0.21244584023952484, 0.3322131633758545, 0.2543899118900299, 0.018418680876493454, -0.02085989899933338, -0.15182942152023315, 0.2098129391670227, 0.006031926721334457, -0.15236224234104156, 0.028843248263001442, 0.15505151450634003, 0.3418107032775879, 0.2605256140232086, 0.3646138310432434, -0.16854192316532135, -0.2591923177242279, 0.017467960715293884, 0.1886158585548401, 0.021103855222463608, 0.03094010427594185, 0.1880583018064499, 0.3906852602958679, 0.33342796564102173, -0.09894318878650665, 0.3222149908542633, 0.07886938750743866, 0.2825942635536194, 0.29012855887413025, 0.23771032691001892, 0.2660050094127655, 0.013971326872706413, 0.08644550293684006, -0.20485392212867737, -0.5083085894584656, 0.03778529912233353, 0.08903393149375916, -0.0027340054512023926, 0.3360837399959564, 0.12346324324607849, 0.15381187200546265, -0.19242210686206818, -0.2750571668148041, 0.04185990244150162, 0.002172861248254776, -0.34546133875846863, -0.06183424964547157, -0.31367623805999756, -0.25614210963249207, 0.41509339213371277, -0.16091686487197876, 0.06273752450942993, -0.34548628330230713, 0.3650219738483429, -0.07760721445083618, -0.09537062048912048, -0.14416520297527313, -0.3677254915237427, 0.024003352969884872, 0.22925874590873718, -0.11037912219762802, 0.13786345720291138, -0.0913228839635849, -0.04632865637540817, 0.05049194395542145, 0.5798308849334717, 0.511163592338562, 0.3985682725906372, -0.02461089938879013, 0.4008246660232544, 0.13015742599964142, -0.24362587928771973, -0.28619271516799927, 0.36318954825401306, -0.05952902138233185, -0.025095298886299133, 0.2001095712184906, -0.010452114045619965, -0.04692602902650833, -0.06305484473705292, -0.0026355870068073273, 0.10762634873390198, 0.16351468861103058, -0.19085565209388733, -0.1974218636751175, -0.23625344038009644, -0.26874762773513794, -0.049194447696208954, -0.08179516345262527, 0.01605377346277237, 0.2938632369041443, -0.09964151680469513, 0.046356067061424255, 0.07786117494106293, -0.001332659274339676, -0.041519973427057266, 0.25831183791160583, 0.45365941524505615, 0.0035885386168956757, -0.48415112495422363, 0.17722325026988983, -0.3718906342983246, -0.03017307072877884, -0.4928686022758484, 0.2783651351928711, 0.03891878202557564, 0.1972583681344986, 0.11981698125600815, -0.12264202535152435, 0.3183072805404663, -0.05017324537038803, -0.043834444135427475, 0.3545491695404053, 0.06481362879276276, -0.27906352281570435, -0.1928185671567917, -0.013535479083657265, 0.010153859853744507, -0.384270578622818, 0.10624651610851288, -0.11351165175437927, -0.0753600001335144, -0.10560978949069977, 0.1699267327785492, -0.15767164528369904, 0.027592303231358528, 0.17741377651691437, 0.3360167443752289, -0.041894957423210144, 0.029431849718093872, -0.017705241218209267, -0.35040315985679626, 0.14641951024532318, -0.12648987770080566, 0.13943663239479065, 0.3596007227897644, 0.4612451493740082, -0.3284626305103302, -0.20270629227161407, -0.02407522313296795, 0.042347151786088943, 0.00464441254734993, 0.036161426454782486, -0.18189294636249542, 0.14358468353748322, -0.3938451409339905, -0.03583987429738045, -0.12207382917404175, 0.022270910441875458, 0.08602289855480194, 0.02708565630018711, -0.25258761644363403, -0.3549431264400482, 0.38276439905166626, -0.6531062126159668, -0.2620072662830353, -0.06931997090578079, 0.3420597016811371, 0.2115110158920288, -0.2256404012441635, -0.3928539752960205, -0.17191985249519348, 0.26260146498680115, -0.06935829669237137, -0.06165467947721481, -0.18479059636592865, -0.5037381052970886, -0.03442905470728874, -0.1576237976551056, 0.11528265476226807, 0.03572014719247818, 0.006658462807536125, 0.2311963438987732, -0.3098658323287964 ]
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.23283571004867554, -0.3903885781764984, -0.04445696994662285, 0.16449064016342163, -0.10854555666446686, -0.06876929104328156, 0.11633878946304321, 0.4056321978569031, 0.6400423049926758, 0.11788129061460495, -0.05657234787940979, 0.24608545005321503, -0.39544111490249634, 0.10435456782579422, -0.16292166709899902, 0.16080279648303986, -0.044933222234249115, 0.14057955145835876, -0.16911719739437103, -0.19149257242679596, -0.3362928330898285, 0.16319964826107025, -0.39792609214782715, -0.050104111433029175, -0.14877139031887054, -0.29197537899017334, 0.2864794433116913, -0.03620988875627518, -0.16281409561634064, -0.2454041987657547, 0.20609132945537567, -0.23282960057258606, -0.20913605391979218, 0.5783204436302185, -0.00012992756091989577, -0.023137491196393967, 0.15059375762939453, -0.18518859148025513, -0.08976078033447266, -0.30296117067337036, -0.1908179223537445, -0.17153027653694153, -0.11571899056434631, -0.28246554732322693, 0.1819458305835724, -0.2716505825519562, -0.19563539326190948, -0.4482395052909851, 0.10719674080610275, 0.2587006390094757, 0.04332170635461807, 0.41881802678108215, 0.0030669011175632477, 0.1764482855796814, 0.3312491774559021, 0.2664015591144562, -0.0753515362739563, 0.12881143391132355, 0.7205767631530762, -0.2881000339984894, 0.022628337144851685, 0.33858999609947205, -0.39218443632125854, 0.07090604305267334, 0.13675549626350403, -0.030903343111276627, 0.23016825318336487, -0.5515580177307129, 0.2697512209415436, 0.3675670623779297, -0.0900002047419548, 0.06078575924038887, -0.4333362579345703, -0.6687809228897095, -0.04030340164899826, -0.09549891948699951, -0.03889739513397217, 0.2810015380382538, -0.42103928327560425, -0.056459683924913406, -0.48461854457855225, 0.12179434299468994, 0.007894709706306458, 0.1618545651435852, 0.030676499009132385, 0.45895466208457947, -0.09304071217775345, 0.2003244161605835, 0.3451099097728729, -0.16183258593082428, -0.09940237551927567, -0.16727103292942047, -0.2236279845237732, 0.5847228765487671, -0.036699797958135605, -0.14598754048347473, 0.3893197476863861, 0.21976801753044128, 0.22303572297096252, -0.3132421374320984, -0.05030704289674759, -0.07427571713924408, 0.2646808922290802, -0.023431487381458282, 0.41594502329826355, 0.0793757289648056, 0.2686937749385834, 0.34931978583335876, -0.005051732063293457, -0.05909411981701851, 0.06769010424613953, 0.11316955834627151, 0.11344167590141296, -0.08908388763666153, -0.009650817140936852, -0.07640804350376129, 0.25678545236587524, -0.07875248044729233, -0.12189842760562897, 0.23410125076770782, -0.4100172519683838, 0.13690681755542755, 0.06204803287982941, 0.12508299946784973, 0.17005744576454163, -0.17767232656478882, 0.1202130913734436, 0.11262907832860947, -0.15702861547470093, 0.1897115707397461, -0.07724695652723312, -0.1316169649362564, -0.19250144064426422, -0.32082515954971313, 0.19647885859012604, -0.33428630232810974, 0.24181696772575378, -0.1585833579301834, 0.019827812910079956, -0.06153399869799614, 0.09574074298143387, -0.26456236839294434, 0.7512259483337402, 0.49378809332847595, -0.11951078474521637, 0.2913576364517212, 0.3966234624385834, -0.2185577154159546, -0.17528337240219116, 0.4062905013561249, -0.3826132118701935, -0.2777351438999176, 0.21004116535186768, -0.040186598896980286, -0.23807570338249207, 0.3465711772441864, -0.5073066353797913, 0.2185843586921692, 0.17824572324752808, 0.08225111663341522, 0.2914721667766571, -0.2697463631629944, -0.10539513826370239, -0.23601150512695312, 0.04256308823823929, 0.6938400864601135, -0.6387714743614197, -0.049924351274967194, 0.11019014567136765, 0.10137894749641418, -0.061366014182567596, 0.34788036346435547, -0.04546039178967476, 0.34811022877693176, -0.4107355773448944, 0.30598658323287964, 0.08731269836425781, -0.12647072970867157, -0.32756295800209045, 0.313419908285141, -0.035814493894577026, 0.23563890159130096, -0.021055027842521667, -0.0642477422952652, 0.5519369840621948, -0.18738888204097748, 0.3676513135433197, -0.17005832493305206, -0.279957115650177, 0.10416298359632492, -0.05038165673613548, -0.03984452039003372, 0.06037992984056473, -0.24208195507526398, 0.19492442905902863, 0.01658736914396286, 0.03907826170325279, -0.5488616228103638, 0.1286391019821167, -0.15087857842445374, 0.33836275339126587, 0.2401699721813202, 0.26210886240005493, 0.1233314499258995, 0.0182515736669302, -0.25635242462158203, -0.47136205434799194, 0.30017632246017456, -0.48803383111953735, 0.021247990429401398, -0.433834433555603, -0.10330353677272797, 0.03096431866288185, 0.18347382545471191, -0.03501986339688301, 0.03309561684727669, -0.07492087781429291, -0.49758055806159973, 0.1765720695257187, -0.021343614906072617, -0.2262362688779831, -0.23706969618797302, -0.13586565852165222, -0.008439034223556519, -0.35672318935394287, 0.07136140018701553, 0.2501074969768524, -0.2921583354473114, -0.2542048990726471, 0.24662992358207703, 0.1149318516254425, -0.11761096864938736, 0.11735381931066513, 0.17585280537605286, -0.03481536731123924, -0.1673574596643448, -0.14001286029815674, 0.13125267624855042, 0.011728176847100258, -0.045801110565662384, 0.10183678567409515, 0.14501364529132843, 0.3444770574569702, -0.23784318566322327, -0.06940644234418869, 0.5054202675819397, -0.18761567771434784, 0.5359300971031189, -0.17968614399433136, 0.05123795568943024, -0.19963207840919495, 0.04260646924376488, -0.20592130720615387, -0.38505059480667114, 0.07628369331359863, -0.15773656964302063, 0.05133714899420738, 0.031914614140987396, 0.001256503164768219, -0.19892141222953796, 0.08561684191226959, -0.046961963176727295, 0.16477924585342407, 0.014488227665424347, -0.06305212527513504, 0.22669023275375366, 0.044692281633615494, -0.014278262853622437, 0.3432701528072357, 0.21914228796958923, -0.0887264758348465, -0.15218167006969452, 0.250440388917923, 0.00012227147817611694, 0.4139186143875122, 0.18166814744472504, 0.026053600013256073, 0.15500998497009277, -0.003640607465058565, -0.06572043895721436, -0.2528342604637146, -0.18143008649349213, 0.005715254694223404, 0.14953403174877167, -0.3952977955341339, -0.03541942685842514, 0.11011520028114319, -0.1585041582584381, 0.06897593289613724, -0.0765034481883049, -0.29085609316825867, -0.30322790145874023, -0.04533405601978302, 0.2601591646671295, -0.27227088809013367, -0.02400803379714489, -0.4013134241104126, 0.01165229082107544, 0.19750960171222687, -0.27471962571144104, -0.2812996208667755, -0.1685466170310974, -0.07561104744672775, -0.07415927201509476, 0.073114313185215, -0.13398690521717072, 0.36156314611434937, 0.25213682651519775, -0.2612817585468292, -0.24377208948135376, -0.09511401504278183, 0.006513349711894989, -0.5370392203330994, 0.2054038941860199, 0.41009241342544556, 0.3981708884239197, -0.2923850417137146, 0.14706027507781982, 0.279386430978775, -0.10714296996593475, -0.24806860089302063, -0.00790521502494812, 0.022333761677145958, 0.15326252579689026, -0.17921561002731323, 0.14743101596832275, 0.0644615963101387, -0.3209299147129059, 0.17818498611450195, -0.18915896117687225, 0.2615518569946289, 0.21945302188396454, 0.27800777554512024, 0.15385715663433075, -0.36937758326530457, -0.4285490810871124, 0.12235129624605179, -0.14167726039886475, 0.4460204839706421, 0.03902313485741615, -0.14693112671375275, 0.1844056248664856, 0.026218421757221222, -0.18531988561153412, 0.2405562698841095, -0.09668606519699097, 0.09396382421255112, -0.056274451315402985, 0.12348286807537079, 0.1900063157081604, 0.3668002188205719, 0.4985276460647583, 0.0864880159497261, 0.04604547470808029, -0.28467217087745667, -0.1089552789926529, 0.08126379549503326, 0.022276651114225388, -0.06451382488012314, 0.42252981662750244, 0.3217892050743103, 0.0287003256380558, 0.7504054307937622, 0.3654770255088806, 0.12721385061740875, 0.09464582800865173, 0.07253674417734146, 0.38223594427108765, -0.11400652676820755, -0.37969261407852173, -0.2082245796918869, 0.1538848727941513, -0.08407792448997498, 0.03251326084136963, 0.05505496263504028, -0.062034204602241516, -0.0012856274843215942, 0.061899978667497635, -0.4879451096057892, -0.18903684616088867, 0.42400965094566345, -0.3093627989292145, 0.07615570724010468, -0.07491466403007507, 0.09561606496572495, -0.27880963683128357, -0.18202704191207886, -0.163715198636055, -0.30362361669540405, 0.6426759958267212, -0.0823243111371994, -0.07537972182035446, -0.11549800634384155, -0.6797433495521545, 0.332533597946167, 0.22118018567562103, -0.08481132984161377, 0.10671699047088623, -0.18529391288757324, 0.06875752657651901, 0.3100571930408478, 0.9494884610176086, -0.19327138364315033, 0.15665507316589355, 0.08142608404159546, -0.0248432457447052, -0.44353413581848145, 0.09980598092079163, -0.3279417157173157, 0.25508660078048706, 0.2495431900024414, 0.5071650147438049, -0.35752564668655396, -0.07234398275613785, -0.04205328971147537, -0.02773205190896988, 0.034722428768873215, -0.026487112045288086, -0.17338134348392487, -0.14954152703285217, -0.13803279399871826, 0.36458098888397217, 0.446945458650589, 0.07268578559160233, 0.13567019999027252, -0.20947128534317017, -0.0988864153623581, 0.048170074820518494, 0.017598874866962433, -0.13403019309043884, 0.4707481265068054, 0.015833018347620964, 0.05059869959950447, 0.27013641595840454, 0.11173439025878906, 0.22062979638576508, 0.49006325006484985, -0.1534297615289688, 0.20740744471549988, -0.1815868616104126, 0.03059045970439911, 0.3123362064361572, 0.4398152828216553, 0.009965001605451107, 0.05791475996375084, 0.3812752068042755, 0.35221797227859497, -0.051504071801900864, -0.2942022383213043, 0.12623605132102966, 0.04640406742691994, -0.5417690277099609, 0.003657648339867592, 0.11587845534086227, -0.09958258271217346, 0.08497054874897003, 0.6082310676574707, 0.5790848731994629, -0.36380505561828613, 0.36096566915512085, 0.043292149901390076, 0.8923065066337585, -0.014892376959323883, 0.10762687027454376, 0.14868056774139404, 0.0709487721323967, 0.24982993304729462, 0.5552586317062378, 0.0943637266755104, 0.008421968668699265, 0.09743781387805939, -0.040766000747680664, -0.008215676993131638, 0.16687512397766113, 0.34003758430480957, 0.10278630256652832, 0.27085989713668823, 0.08195677399635315, 0.12089425325393677, -0.15034636855125427, -0.2895890474319458, 0.28774580359458923, -0.33018115162849426, -0.3449309170246124, -0.07553870975971222, 0.07857071608304977, 0.26576754450798035, -0.05793020501732826, -0.1058482974767685, -0.030923735350370407, -0.40376752614974976, -0.1928453892469406, -0.18520227074623108, -0.44498950242996216, 0.021174756810069084, 0.26389288902282715, -0.2862427532672882, -0.03285883367061615, 0.05158493295311928, -0.48061710596084595, 0.14473272860050201, -0.11111164093017578, -0.13308390974998474, 0.38927921652793884, 0.17192384600639343, 0.021821947768330574, -0.15219280123710632, 0.17261749505996704, 0.1998167335987091, -0.1803189516067505, 0.057553526014089584, -0.45185956358909607, -0.17299476265907288, 0.06446637213230133, 0.40836602449417114, -0.20234115421772003, -0.22289937734603882, -0.3968207836151123, -0.19215920567512512, 0.10154229402542114, 0.03948751464486122, -0.08833837509155273, 0.2670641541481018, -0.07576633989810944, 0.3907504677772522, -0.19200892746448517, -0.45341914892196655, -0.04374212399125099, 0.5255666971206665, 0.03463037312030792, -0.19231882691383362, 0.4125709533691406, 0.15918570756912231, -0.1644415259361267, -0.06954294443130493, 0.13838890194892883, 0.34264320135116577, -0.6278494000434875, 0.5433263778686523, 0.24986962974071503, 0.03699062764644623, 0.13783232867717743, 0.41851022839546204, 0.13686391711235046, 0.27986475825309753, -0.3155876100063324, -0.1867188811302185, -0.2580825090408325, 0.40863823890686035, 0.10354239493608475, 0.035981014370918274, -0.1420457661151886, -0.23673973977565765, 0.3288373351097107, -0.19563071429729462, -0.15207552909851074, 0.06600530445575714, -0.08657748997211456, 0.3288321793079376, 0.21843375265598297, 0.26404255628585815, 0.35698312520980835, -0.08181209862232208, -0.10281717777252197, 0.13153085112571716, -0.27935099601745605, -0.073605477809906, -0.0467090979218483, 0.17635464668273926, 0.10426033288240433, -0.22039881348609924, 0.16272330284118652, -0.40742015838623047, -0.04600652679800987, -0.40626609325408936, 0.26194947957992554, 0.490959107875824, -0.004013814032077789, -0.23783327639102936, 0.3719468116760254, 0.06007802486419678, -0.029746809974312782, 0.20644636452198029, -0.1776881217956543, -0.0705975592136383, -0.06777909398078918, 0.30435365438461304, 0.16345958411693573, 0.03375082463026047, 0.0829736590385437, 0.07204768061637878, 0.014261744916439056, 0.0030940547585487366, 0.42278701066970825, -0.20461107790470123, -0.21244584023952484, 0.3322131633758545, 0.2543899118900299, 0.018418680876493454, -0.02085989899933338, -0.15182942152023315, 0.2098129391670227, 0.006031926721334457, -0.15236224234104156, 0.028843248263001442, 0.15505151450634003, 0.3418107032775879, 0.2605256140232086, 0.3646138310432434, -0.16854192316532135, -0.2591923177242279, 0.017467960715293884, 0.1886158585548401, 0.021103855222463608, 0.03094010427594185, 0.1880583018064499, 0.3906852602958679, 0.33342796564102173, -0.09894318878650665, 0.3222149908542633, 0.07886938750743866, 0.2825942635536194, 0.29012855887413025, 0.23771032691001892, 0.2660050094127655, 0.013971326872706413, 0.08644550293684006, -0.20485392212867737, -0.5083085894584656, 0.03778529912233353, 0.08903393149375916, -0.0027340054512023926, 0.3360837399959564, 0.12346324324607849, 0.15381187200546265, -0.19242210686206818, -0.2750571668148041, 0.04185990244150162, 0.002172861248254776, -0.34546133875846863, -0.06183424964547157, -0.31367623805999756, -0.25614210963249207, 0.41509339213371277, -0.16091686487197876, 0.06273752450942993, -0.34548628330230713, 0.3650219738483429, -0.07760721445083618, -0.09537062048912048, -0.14416520297527313, -0.3677254915237427, 0.024003352969884872, 0.22925874590873718, -0.11037912219762802, 0.13786345720291138, -0.0913228839635849, -0.04632865637540817, 0.05049194395542145, 0.5798308849334717, 0.511163592338562, 0.3985682725906372, -0.02461089938879013, 0.4008246660232544, 0.13015742599964142, -0.24362587928771973, -0.28619271516799927, 0.36318954825401306, -0.05952902138233185, -0.025095298886299133, 0.2001095712184906, -0.010452114045619965, -0.04692602902650833, -0.06305484473705292, -0.0026355870068073273, 0.10762634873390198, 0.16351468861103058, -0.19085565209388733, -0.1974218636751175, -0.23625344038009644, -0.26874762773513794, -0.049194447696208954, -0.08179516345262527, 0.01605377346277237, 0.2938632369041443, -0.09964151680469513, 0.046356067061424255, 0.07786117494106293, -0.001332659274339676, -0.041519973427057266, 0.25831183791160583, 0.45365941524505615, 0.0035885386168956757, -0.48415112495422363, 0.17722325026988983, -0.3718906342983246, -0.03017307072877884, -0.4928686022758484, 0.2783651351928711, 0.03891878202557564, 0.1972583681344986, 0.11981698125600815, -0.12264202535152435, 0.3183072805404663, -0.05017324537038803, -0.043834444135427475, 0.3545491695404053, 0.06481362879276276, -0.27906352281570435, -0.1928185671567917, -0.013535479083657265, 0.010153859853744507, -0.384270578622818, 0.10624651610851288, -0.11351165175437927, -0.0753600001335144, -0.10560978949069977, 0.1699267327785492, -0.15767164528369904, 0.027592303231358528, 0.17741377651691437, 0.3360167443752289, -0.041894957423210144, 0.029431849718093872, -0.017705241218209267, -0.35040315985679626, 0.14641951024532318, -0.12648987770080566, 0.13943663239479065, 0.3596007227897644, 0.4612451493740082, -0.3284626305103302, -0.20270629227161407, -0.02407522313296795, 0.042347151786088943, 0.00464441254734993, 0.036161426454782486, -0.18189294636249542, 0.14358468353748322, -0.3938451409339905, -0.03583987429738045, -0.12207382917404175, 0.022270910441875458, 0.08602289855480194, 0.02708565630018711, -0.25258761644363403, -0.3549431264400482, 0.38276439905166626, -0.6531062126159668, -0.2620072662830353, -0.06931997090578079, 0.3420597016811371, 0.2115110158920288, -0.2256404012441635, -0.3928539752960205, -0.17191985249519348, 0.26260146498680115, -0.06935829669237137, -0.06165467947721481, -0.18479059636592865, -0.5037381052970886, -0.03442905470728874, -0.1576237976551056, 0.11528265476226807, 0.03572014719247818, 0.006658462807536125, 0.2311963438987732, -0.3098658323287964 ]