html_url
stringlengths
48
51
title
stringlengths
5
280
comments
stringlengths
63
51.8k
body
stringlengths
0
36.2k
comment_length
int64
16
1.52k
text
stringlengths
159
54.1k
embeddings
listlengths
768
768
https://github.com/huggingface/datasets/issues/3968
Cannot preview 'indonesian-nlp/eli5_id' dataset
Hi @cahya-wirawan, thanks for reporting. Your dataset is working OK in streaming mode: ```python In [1]: from datasets import load_dataset ...: ds = load_dataset("indonesian-nlp/eli5_id", split="train", streaming=True) ...: item = next(iter(ds)) ...: item Using custom data configuration indonesian-nlp--eli5_id-9fe728a7e760fb7b Out[1]: {'q_id': '1oy5tc', 'title': 'dalam sepak bola apa gunanya menyia-nyiakan dua permainan pertama dengan terburu-buru - di tengah - bukan permainan terburu-buru biasa saya mendapatkannya', 'selftext': '', 'document': '', 'subreddit': 'explainlikeimfive', 'answers': {'a_id': ['ccwtgnz', 'ccwtmho', 'ccwt946', 'ccwvj0u'], 'text': ['Jaga pertahanan tetap jujur, rasakan operan terburu-buru, buka permainan yang lewat. Pelanggaran yang terlalu satu dimensi akan gagal. Dan mereka yang bergegas ke tengah kadang-kadang dapat dibuka lebar-lebar untuk ukuran yard yang besar.', 'Jika Anda melempar bola sepanjang waktu, maka pertahanan akan beradaptasi untuk selalu menutupi umpan. Dengan melakukan permainan lari sederhana sesekali, Anda memaksa pertahanan untuk tetap dekat dan menjaga dari lari. Terkadang, pelanggaran dapat membuat pertahanan lengah dengan berpura-pura berlari dan membebaskan penerima mereka. Selain itu, Anda tidak perlu mendapatkan yard besar di setiap permainan. Terkadang, paling baik mendapatkan beberapa yard sekaligus. Selama Anda mendapatkan yang pertama, Anda dalam kondisi yang baik.', 'Dalam kebanyakan kasus, O-Line seharusnya membuat lubang untuk dilalui kembali. Jika Anda menjalankan terlalu banyak permainan ke luar / melempar, pertahanan akan mengejar. Juga, 2 permainan 5 yard memberi Anda satu set down baru.', 'Saya Anda tidak suka jenis drama itu, tonton CFL. Kami hanya mendapatkan 3 down sehingga Anda tidak bisa menyia-nyiakannya. Lebih banyak lagi yang lewat.'], 'score': [3, 2, 2, 2]}, 'title_urls': {'url': []}, 'selftext_urls': {'url': []}, 'answers_urls': {'url': []}} ``` Therefore, it should be properly rendered in the previewer. Let me ping @severo to have a look at it.
## Dataset viewer issue for '*indonesian-nlp/eli5_id*' **Link:** https://huggingface.co/datasets/indonesian-nlp/eli5_id I can not see the dataset preview. ``` Server Error Status code: 400 Exception: Status400Error Message: Not found. Maybe the cache is missing, or maybe the dataset does not exist. ``` Am I the one who added this dataset ? Yes
271
Cannot preview 'indonesian-nlp/eli5_id' dataset ## Dataset viewer issue for '*indonesian-nlp/eli5_id*' **Link:** https://huggingface.co/datasets/indonesian-nlp/eli5_id I can not see the dataset preview. ``` Server Error Status code: 400 Exception: Status400Error Message: Not found. Maybe the cache is missing, or maybe the dataset does not exist. ``` Am I the one who added this dataset ? Yes Hi @cahya-wirawan, thanks for reporting. Your dataset is working OK in streaming mode: ```python In [1]: from datasets import load_dataset ...: ds = load_dataset("indonesian-nlp/eli5_id", split="train", streaming=True) ...: item = next(iter(ds)) ...: item Using custom data configuration indonesian-nlp--eli5_id-9fe728a7e760fb7b Out[1]: {'q_id': '1oy5tc', 'title': 'dalam sepak bola apa gunanya menyia-nyiakan dua permainan pertama dengan terburu-buru - di tengah - bukan permainan terburu-buru biasa saya mendapatkannya', 'selftext': '', 'document': '', 'subreddit': 'explainlikeimfive', 'answers': {'a_id': ['ccwtgnz', 'ccwtmho', 'ccwt946', 'ccwvj0u'], 'text': ['Jaga pertahanan tetap jujur, rasakan operan terburu-buru, buka permainan yang lewat. Pelanggaran yang terlalu satu dimensi akan gagal. Dan mereka yang bergegas ke tengah kadang-kadang dapat dibuka lebar-lebar untuk ukuran yard yang besar.', 'Jika Anda melempar bola sepanjang waktu, maka pertahanan akan beradaptasi untuk selalu menutupi umpan. Dengan melakukan permainan lari sederhana sesekali, Anda memaksa pertahanan untuk tetap dekat dan menjaga dari lari. Terkadang, pelanggaran dapat membuat pertahanan lengah dengan berpura-pura berlari dan membebaskan penerima mereka. Selain itu, Anda tidak perlu mendapatkan yard besar di setiap permainan. Terkadang, paling baik mendapatkan beberapa yard sekaligus. Selama Anda mendapatkan yang pertama, Anda dalam kondisi yang baik.', 'Dalam kebanyakan kasus, O-Line seharusnya membuat lubang untuk dilalui kembali. Jika Anda menjalankan terlalu banyak permainan ke luar / melempar, pertahanan akan mengejar. Juga, 2 permainan 5 yard memberi Anda satu set down baru.', 'Saya Anda tidak suka jenis drama itu, tonton CFL. Kami hanya mendapatkan 3 down sehingga Anda tidak bisa menyia-nyiakannya. Lebih banyak lagi yang lewat.'], 'score': [3, 2, 2, 2]}, 'title_urls': {'url': []}, 'selftext_urls': {'url': []}, 'answers_urls': {'url': []}} ``` Therefore, it should be properly rendered in the previewer. Let me ping @severo to have a look at it.
[ -0.388446569442749, -0.14188803732395172, -0.07354122400283813, 0.15386773645877838, -0.024768546223640442, 0.23113849759101868, 0.09294120222330093, 0.5587157011032104, 0.013209179043769836, -0.0031360313296318054, -0.22927719354629517, 0.14132031798362732, -0.008997955359518528, 0.05606412887573242, 0.24555952847003937, -0.38528186082839966, 0.10907121002674103, 0.21165594458580017, 0.06616978347301483, 0.20622162520885468, -0.22604292631149292, 0.16908693313598633, -0.17791280150413513, 0.03074214607477188, -0.10166452080011368, 0.12680891156196594, -0.24629183113574982, -0.17877349257469177, -0.23513047397136688, -0.44518280029296875, 0.3270986080169678, -0.006639767438173294, 0.3465333878993988, 0.3288261592388153, -0.00011766615352826193, 0.10150738060474396, 0.47876471281051636, 0.04693922400474548, -0.43619754910469055, -0.28672558069229126, -0.06955055892467499, -0.2629036009311676, 0.16670529544353485, -0.3640160858631134, -0.3667897880077362, -0.14166739583015442, 0.1614738553762436, -0.2331002950668335, 0.4491235017776489, 0.2519758939743042, 0.1802675873041153, 0.18420228362083435, -0.09065774083137512, -0.19519738852977753, 0.004662349820137024, 0.013507630676031113, -0.34055742621421814, -0.031118042767047882, 0.025105882436037064, 0.14836272597312927, 0.07230963557958603, 0.14256827533245087, 0.04148273915052414, 0.00022705458104610443, -0.09835899621248245, -0.1774889975786209, -0.07421677559614182, -0.4272822141647339, 0.26743900775909424, 0.08896969258785248, 0.8293322324752808, -0.13547414541244507, -0.4231262505054474, 0.051659971475601196, 0.18035300076007843, -0.365241140127182, 0.04244117811322212, 0.18072807788848877, 0.021758362650871277, 0.2970370352268219, -0.21483144164085388, -0.17281320691108704, -0.13443604111671448, 0.3529179096221924, 0.09188961982727051, 0.4469756484031677, -0.07294351607561111, 0.17885515093803406, -0.1445164531469345, 0.011088388040661812, 0.36062830686569214, -0.23714813590049744, -0.05542360618710518, 0.3523610532283783, -0.2338985651731491, -0.0025196485221385956, -0.04876675456762314, 0.06588353961706161, -0.04026191309094429, 0.23487259447574615, 0.04179579019546509, 0.126838818192482, 0.20893678069114685, 0.08883848786354065, -0.041993867605924606, 0.27515584230422974, 0.211846262216568, 0.19479796290397644, 0.07959555089473724, 0.10100899636745453, 0.3155803084373474, -0.15075457096099854, -0.1895996332168579, 0.029812458902597427, -0.06314997375011444, -0.10591713339090347, 0.08350536972284317, -0.08259715139865875, -0.2144392430782318, 0.08757087588310242, -0.2015102505683899, -0.10497236251831055, -0.07905833423137665, 0.20950740575790405, -0.27101072669029236, 0.035908911377191544, -0.01974790170788765, 0.329492449760437, -0.17256516218185425, -0.33946138620376587, -0.2045641988515854, -0.09592360258102417, -0.23504416644573212, 0.10741809755563736, 0.26473814249038696, -0.056142840534448624, 0.354819118976593, -0.1756877452135086, -0.016234032809734344, -0.04013891518115997, 0.08682143688201904, -0.07739877700805664, -0.05527123063802719, 0.20236913859844208, 0.2660631835460663, 0.2444278746843338, 0.25426575541496277, -0.1456144154071808, 0.026168175041675568, 0.21864992380142212, -0.060623250901699066, -0.33963871002197266, -0.269155353307724, 0.12921173870563507, -0.5351642966270447, 0.010772839188575745, -0.4277227818965912, 0.24429360032081604, 0.08396472036838531, -0.22132159769535065, -0.02927633374929428, 0.18893331289291382, -0.39942216873168945, -0.08398507535457611, 0.11382376402616501, 0.5005108118057251, -0.3949447572231293, -0.3168524205684662, -0.47912314534187317, -0.23373711109161377, 0.20020067691802979, 0.29491138458251953, -0.15335945785045624, 0.09408126771450043, -0.41113540530204773, 0.2337619513273239, 0.6692295074462891, -0.15842397511005402, -0.8022481799125671, 0.3397338390350342, -0.25357329845428467, 0.1907271295785904, 0.2465168535709381, 0.18795663118362427, 0.2971203029155731, -0.21255818009376526, 0.02854975312948227, 0.14095710217952728, 0.23703330755233765, -0.14956790208816528, -0.20303526520729065, -0.17908631265163422, 0.3119286298751831, 0.12200549244880676, 0.13934075832366943, 0.035403572022914886, 0.020109884440898895, -0.029742170125246048, 0.38511574268341064, 0.28667590022087097, 0.19016596674919128, -0.05520230531692505, 0.1308944672346115, 0.14124226570129395, -0.0467299222946167, -0.11305541545152664, -0.10659628361463547, 0.1706550419330597, 0.030096672475337982, 0.004067171365022659, -0.13359612226486206, -0.11955983191728592, -0.5475381016731262, 0.16186101734638214, -0.40237751603126526, -0.25621989369392395, 0.150111123919487, 0.1153145283460617, 0.32330670952796936, 0.2405790239572525, -0.013345763087272644, 0.31652703881263733, -0.14120560884475708, -0.14346513152122498, -0.3764170706272125, 0.36854520440101624, -0.04964689165353775, 0.08963785320520401, 0.222292959690094, 0.1586567908525467, 0.36999747157096863, 0.03899272158741951, -0.16210949420928955, 0.27749305963516235, -0.26280394196510315, 0.11496206372976303, 0.2878967225551605, 0.0580265149474144, 0.18517501652240753, -0.6591468453407288, 0.22410298883914948, 0.08019916713237762, 0.08488532155752182, -0.08880003541707993, -0.18915891647338867, 0.12378227710723877, 0.08635401725769043, 0.05095230042934418, -0.1372753381729126, 0.11716528981924057, 0.3348384499549866, 0.03142181411385536, -0.1587207019329071, -0.15814566612243652, 0.289885550737381, -0.2606801986694336, 0.47401660680770874, -0.24030233919620514, -0.1924533247947693, 0.10251019150018692, 0.0009773187339305878, -0.09070885181427002, 0.03058493137359619, 0.1434003710746765, -0.20733866095542908, -0.2956686317920685, 0.010598782449960709, 0.08807975053787231, 0.45639169216156006, 0.23631998896598816, 0.20786353945732117, 0.08939215540885925, 0.08964136242866516, -0.132479727268219, 0.0991058275103569, 0.06993678212165833, 0.14542239904403687, 0.1838042140007019, 0.1430676430463791, -0.07324272394180298, -0.2717491090297699, 0.00957782194018364, 0.32969993352890015, 0.2500695586204529, -0.09623081982135773, -0.007689598016440868, -0.22448644042015076, -0.5751370787620544, -0.031958986073732376, -0.29155561327934265, 0.007231030613183975, -0.4501573443412781, 0.10411661118268967, 0.07079558074474335, 0.16658912599086761, 0.34649500250816345, -0.4401090443134308, 0.08726513385772705, 0.15774856507778168, 0.05151437222957611, -0.15671119093894958, 0.033669862896203995, -0.08889030665159225, 0.06923860311508179, 0.2791857421398163, 0.03930310532450676, 0.4615880846977234, -0.2586062550544739, 0.1123819649219513, -0.5453109741210938, -0.27793797850608826, 0.08502314984798431, 0.06781896948814392, 0.43146175146102905, -0.17688840627670288, 0.2624557912349701, 0.10447794198989868, -0.12492245435714722, 0.25603312253952026, -0.10205097496509552, -0.1849180907011032, 0.11374056339263916, 0.029207749292254448, -0.009925833903253078, 0.19517557322978973, -0.3396381139755249, -0.44549429416656494, -0.3778809607028961, 0.03241316229104996, -0.13362549245357513, 0.04664238914847374, 0.04143229126930237, 0.11917169392108917, -0.038157422095537186, 0.12337227910757065, -0.2101922482252121, -0.3526589870452881, -0.46951353549957275, 0.3989984393119812, -0.46003466844558716, -0.439298540353775, 0.17796838283538818, -0.02805999480187893, 0.31654825806617737, -0.14250949025154114, -0.5763730406761169, 0.15025833249092102, -0.04028324782848358, 0.2317180335521698, 0.1383293867111206, -0.2001967430114746, 0.18440194427967072, -0.18680056929588318, -0.0026975590735673904, -0.07389714568853378, -0.062962606549263, -0.21948090195655823, -0.3743029534816742, 0.49208304286003113, -0.05244130641222, 0.5958858132362366, 0.08006161451339722, 0.776944100856781, 0.5118923187255859, 0.1964692324399948, 0.3109143078327179, -0.055898718535900116, 0.1896194964647293, -0.15419995784759521, -0.33309629559516907, -0.030729247257113457, -0.10418224334716797, 0.056107185781002045, 0.37020260095596313, 0.0461917482316494, -0.7478686571121216, -0.22288452088832855, -0.31800976395606995, -0.3578883409500122, -0.0025215186178684235, 0.044653456658124924, -0.09500859677791595, 0.305508553981781, 0.10230967402458191, -0.07704301923513412, -0.2671769857406616, -0.3467079997062683, -0.170609250664711, 0.24302051961421967, 0.194295734167099, 0.2239893078804016, -0.23601485788822174, -0.10757829248905182, -0.5076069235801697, 0.2159338891506195, -0.08617860078811646, 0.6778613924980164, -0.1766461730003357, 0.07514151930809021, 0.24100784957408905, 0.11033166199922562, 0.6576359868049622, -0.37529417872428894, 0.12447138130664825, 0.007263002917170525, -0.033623553812503815, -0.2673303186893463, -0.02792530320584774, 0.17220842838287354, 0.5803573727607727, 0.1842869222164154, 0.24977104365825653, 0.00668586790561676, -0.050286680459976196, 0.26165321469306946, -0.022647133097052574, -0.36879146099090576, -0.5654732584953308, -0.19406026601791382, -0.019146626815199852, -0.13399799168109894, -0.04536774009466171, -0.03195757046341896, 0.1435600072145462, -0.049883075058460236, 0.05812825635075569, -0.1275375336408615, -0.04827593266963959, -0.15933217108249664, 0.10203109681606293, 0.02810538001358509, 0.2048400193452835, 0.27866411209106445, 0.37286922335624695, -0.1358553171157837, 0.03006482869386673, 0.5851710438728333, 0.19806386530399323, -0.2018023133277893, 0.15869462490081787, 0.056099001318216324, 0.0859510600566864, 0.19414231181144714, -0.03654700890183449, -0.11160296946763992, 0.21259263157844543, 0.21647268533706665, -0.10008794069290161, -0.1457442343235016, 0.35633161664009094, -0.1601371467113495, -0.5005031824111938, -0.47306138277053833, 0.745915412902832, 0.19949324429035187, 0.07626570761203766, 0.06614580005407333, 0.06872279942035675, -0.03548743575811386, -0.012917623855173588, -0.1387714147567749, 0.8892339468002319, 0.11971459537744522, -0.026469435542821884, 0.22144585847854614, -0.2874382734298706, 0.21089597046375275, -0.23357656598091125, -0.030162476003170013, -0.1675376445055008, -0.18867547810077667, -0.1513211876153946, 0.0019486546516418457, 0.31229451298713684, 0.026754245162010193, -0.1512972116470337, 0.029593704268336296, 0.09231147170066833, -0.10380655527114868, 0.09746932238340378, 0.1633690893650055, -0.21874499320983887, -0.06622542440891266, -0.33910518884658813, 0.18344949185848236, -0.18134737014770508, 0.21268334984779358, -0.07277299463748932, -0.10095404088497162, -0.22172856330871582, 0.08763055503368378, -0.4429877996444702, 0.1619928479194641, 0.1331002116203308, 0.2509572505950928, -0.21989914774894714, -0.5399462580680847, 0.14935407042503357, 0.1943843960762024, -0.01364009827375412, 0.09024795889854431, -0.2952406406402588, 0.22192557156085968, -0.16962721943855286, -0.194675475358963, -0.1625351756811142, -0.07873587310314178, 0.2975398302078247, -0.13965895771980286, -0.38924404978752136, 0.3875061273574829, 0.14119380712509155, -0.04314366355538368, 0.07913753390312195, -0.08646970987319946, 0.04437888786196709, -0.20010069012641907, -0.36078161001205444, -0.06907255947589874, -0.14878475666046143, -0.1544012427330017, 0.10514356195926666, 0.0870816558599472, -0.34119167923927307, -0.22025102376937866, 0.14002829790115356, -0.03797110170125961, -0.1428450047969818, 0.7056677937507629, 0.059555985033512115, 0.08699075877666473, 0.4904760420322418, 0.3333446681499481, -0.17873598635196686, -0.07754922658205032, -0.051348038017749786, 0.049818314611911774, -0.48228687047958374, -0.27133214473724365, -0.06980065256357193, 0.4400418996810913, -0.0883147269487381, -0.03885995224118233, 0.06232987344264984, -0.2550338804721832, -0.029488977044820786, -0.457513689994812, -0.2191416621208191, 0.04985963553190231, -0.08835723996162415, 0.2604641616344452, -0.07863201200962067, 0.029578909277915955, 0.3363891541957855, 0.2489471435546875, -0.25943368673324585, -0.12261118739843369, -0.1895541548728943, 0.1012907475233078, 0.09917787462472916, 0.07073339819908142, 0.03513931483030319, -0.1600397527217865, 0.004694726318120956, 0.14951980113983154, -0.33332812786102295, -0.2071995735168457, 0.0023847855627536774, 0.18009044229984283, 0.20039120316505432, -0.08956868946552277, -0.04667837172746658, -0.1384355127811432, 0.04237229377031326, 0.11602763086557388, -0.06959268450737, 0.1081567034125328, 0.12592068314552307, 0.14624427258968353, 0.31749123334884644, -0.14603766798973083, -0.09593752026557922, 0.16839943826198578, 0.07684589177370071, 0.3887249231338501, 0.011947937309741974, 0.07979472726583481, 0.06837184727191925, 0.04070832580327988, -0.2020660787820816, -0.25711870193481445, -0.10966594517230988, 0.012326408177614212, 0.3643967807292938, -0.5675036311149597, 0.43860024213790894, 0.3499166965484619, 0.18906863033771515, 0.11975651979446411, -0.2355908900499344, -0.055470794439315796, 0.3459934592247009, 0.10083557665348053, -0.509803056716919, -0.1697947084903717, 0.4381875693798065, 0.11872775107622147, -0.06131475791335106, 0.017645739018917084, 0.1672244518995285, -0.0134844109416008, 0.18382477760314941, 0.18338236212730408, 0.37386319041252136, -0.21234849095344543, 0.2902963161468506, 0.34470129013061523, 0.005264889448881149, 0.10136914998292923, 0.11251935362815857, 0.30937403440475464, -0.0947454497218132, 0.4523063898086548, -0.08075165003538132, 0.17242898046970367, 0.09136614948511124, 0.3398771584033966, -0.09393420070409775, -0.25336718559265137, -0.08043055236339569, -0.07415039837360382, -0.1495150327682495, 0.20966055989265442, -0.03677743673324585, 0.25511687994003296, 0.18931816518306732, 0.33638420701026917, -0.31447336077690125, 0.2508847415447235, 0.002663254737854004, 0.07993318140506744, -0.20914804935455322, -0.09001098573207855, -0.24693655967712402, -0.005783220753073692, -0.01590324193239212, -0.20408476889133453, -0.0663076639175415, 0.14552490413188934, -0.3640390634536743, -0.18809863924980164, 0.02820577472448349, 0.3198610544204712, 0.08738396316766739, -0.2854595482349396, 0.20245952904224396, 0.2979589104652405, 0.020744185894727707, 0.03544570505619049, 0.29927858710289, 0.3583689332008362, -0.040148258209228516, -0.08965256810188293, 0.09997858107089996, 0.1719648241996765, -0.2692626118659973, 0.060232438147068024, 0.3017130494117737, 0.36160075664520264, -0.06938591599464417, 0.1742500513792038, 0.09614573419094086, -0.1493699699640274, 0.4373694658279419, 0.20774959027767181, 0.3869384229183197, -0.23528528213500977, 0.1379617303609848, -0.41062822937965393, -0.20104163885116577, -0.17438308894634247, -0.12826290726661682, -0.5305160284042358, 0.3635143041610718, 0.15980403125286102, -0.03756793588399887, 0.10290680080652237, -0.3247040808200836, 0.0440877303481102, -0.20245568454265594, 0.4809061288833618, 0.4734501242637634, -0.0433599054813385, -0.1094524934887886, -0.2864559292793274, -0.6149173974990845, -0.00945524126291275, -0.28164687752723694, 0.03117998130619526, 0.20192451775074005, 0.017405079677700996, -0.06641576439142227, 0.35642051696777344, 0.047402285039424896, -0.0017102728597819805, 0.025137346237897873, 0.5438547134399414, -0.21859702467918396, -0.22574912011623383, 0.07608392834663391, 0.42429879307746887, -0.2082584798336029, -0.12181711941957474, 0.05545607954263687, -0.02102140709757805, -0.012867793440818787, -0.13531522452831268, -0.18031053245067596, -0.0992373526096344, -0.09279628098011017, 0.3081395924091339, 0.2015083134174347, 0.4533555209636688, 0.047351107001304626, 0.11195465177297592, -0.3511611223220825, -0.07325032353401184, 0.04637845233082771, 0.28718024492263794, 0.2551564872264862, 0.43971407413482666, -0.21094724535942078, -0.28664740920066833, -0.021829457953572273, -0.10080211609601974, -0.08918559551239014, 0.062214240431785583, -0.29000452160835266, -0.06478450447320938, -0.21312019228935242, 0.09485681354999542, 0.22003242373466492, 0.34169360995292664, -0.04048784822225571, 0.0923786461353302, -0.1147850751876831, -0.23014898598194122, 0.3132925033569336, -0.5833634734153748, -0.20706593990325928, 0.10216084867715836, 0.03274060785770416, 0.11785654723644257, -0.036672547459602356, -0.3416643440723419, 0.2622629404067993, 0.422270268201828, -0.1620434820652008, 0.37446293234825134, 0.3310524523258209, -0.01631838083267212, 0.1882605403661728, 0.010053973644971848, 0.565096378326416, -0.02826043590903282, 0.027999067679047585, 0.09989497065544128, -0.4115597605705261 ]
https://github.com/huggingface/datasets/issues/3968
Cannot preview 'indonesian-nlp/eli5_id' dataset
Thanks @albertvillanova for checking it. Btw, I have another dataset indonesian-nlp/lfqa_id which has the same issue. However, this dataset is still private, is it the reason why the preview doesn't work?
## Dataset viewer issue for '*indonesian-nlp/eli5_id*' **Link:** https://huggingface.co/datasets/indonesian-nlp/eli5_id I can not see the dataset preview. ``` Server Error Status code: 400 Exception: Status400Error Message: Not found. Maybe the cache is missing, or maybe the dataset does not exist. ``` Am I the one who added this dataset ? Yes
31
Cannot preview 'indonesian-nlp/eli5_id' dataset ## Dataset viewer issue for '*indonesian-nlp/eli5_id*' **Link:** https://huggingface.co/datasets/indonesian-nlp/eli5_id I can not see the dataset preview. ``` Server Error Status code: 400 Exception: Status400Error Message: Not found. Maybe the cache is missing, or maybe the dataset does not exist. ``` Am I the one who added this dataset ? Yes Thanks @albertvillanova for checking it. Btw, I have another dataset indonesian-nlp/lfqa_id which has the same issue. However, this dataset is still private, is it the reason why the preview doesn't work?
[ -0.3352316617965698, -0.12393232434988022, -0.02713606134057045, 0.27798882126808167, -0.1499146968126297, 0.2525174617767334, 0.16896089911460876, 0.4171845316886902, 0.02622237056493759, 0.1278896927833557, -0.20933124423027039, 0.027342122048139572, 0.07286307960748672, -0.06333626061677933, 0.23375660181045532, -0.25249388813972473, 0.1370038092136383, 0.20767802000045776, 0.04189997911453247, 0.1397501528263092, -0.34119853377342224, 0.1387016475200653, -0.08473949134349823, 0.09565822035074234, -0.17528098821640015, 0.1472758948802948, -0.2631247043609619, -0.16256597638130188, -0.17501652240753174, -0.2988177239894867, 0.3090737462043762, 0.009431226179003716, 0.31507211923599243, 0.2825850546360016, -0.00012071405217284337, 0.10246151685714722, 0.5217806100845337, 0.08144128322601318, -0.3983308672904968, -0.17046238481998444, -0.29273754358291626, -0.19740967452526093, 0.10726204514503479, -0.24278676509857178, -0.34091052412986755, -0.0719873234629631, 0.20314747095108032, -0.28951048851013184, 0.3366415798664093, 0.10133499652147293, 0.1765972524881363, 0.2822762727737427, 0.009648393839597702, -0.418073445558548, 0.09976962208747864, 0.11393945664167404, -0.36441150307655334, -0.03607213497161865, -0.032578244805336, 0.1766185313463211, 0.13809959590435028, 0.17120355367660522, 0.18456663191318512, -0.049615953117609024, -0.05242670327425003, -0.11375615745782852, -0.08091463893651962, -0.38239234685897827, 0.39473462104797363, 0.10504522919654846, 0.9738979339599609, 0.05374601483345032, -0.4218577444553375, 0.21852293610572815, 0.16505765914916992, -0.2702130675315857, 0.2160297930240631, 0.07771504670381546, 0.20297428965568542, 0.2938157916069031, -0.2840122580528259, -0.2240879237651825, -0.04251174256205559, 0.26719486713409424, 0.04840181767940521, 0.36175304651260376, -0.14861078560352325, 0.17610852420330048, -0.11856605112552643, -0.031570881605148315, 0.2541719675064087, -0.20680400729179382, -0.19600580632686615, 0.3550168573856354, -0.07897023856639862, 0.0018302612006664276, -0.0349566712975502, 0.12326841056346893, 0.04786980152130127, 0.1794871687889099, -0.13061760365962982, 0.1282433122396469, 0.057645756751298904, 0.10625170171260834, -0.09100957214832306, 0.26938387751579285, 0.22682467103004456, 0.16273123025894165, 0.23761940002441406, 0.04615773260593414, 0.35269010066986084, -0.14909100532531738, -0.2292904257774353, 0.1273760050535202, -0.12622281908988953, -0.2348271906375885, 0.12062883377075195, -0.16501154005527496, -0.2759542167186737, 0.10546387732028961, -0.08660206943750381, -0.10341287404298782, -0.11406005173921585, 0.26036345958709717, -0.16272011399269104, -0.21836933493614197, 0.015011388808488846, 0.2727588415145874, -0.15244124829769135, -0.4064304828643799, -0.2044021040201187, -0.14342114329338074, -0.2629234790802002, 0.2153833657503128, 0.1966869980096817, 0.08341692388057709, 0.33321502804756165, -0.16329793632030487, 0.06385046243667603, -0.04733945056796074, 0.05709003657102585, 0.07911184430122375, -0.2406432032585144, 0.23726800084114075, 0.193550705909729, 0.2929942309856415, 0.15423762798309326, -0.16005265712738037, 0.11966527253389359, 0.18816301226615906, -0.07894245535135269, -0.3005828857421875, -0.3701651096343994, 0.07837773859500885, -0.514566957950592, 0.05446614697575569, -0.3898007571697235, 0.16477671265602112, 0.12245059013366699, -0.1828579306602478, 0.020093999803066254, 0.28394830226898193, -0.3336379826068878, -0.06869122385978699, 0.058161430060863495, 0.5976070165634155, -0.4043651819229126, -0.2873673737049103, -0.5321162343025208, -0.33037257194519043, 0.1480829268693924, 0.35756123065948486, -0.16740843653678894, -0.06330171972513199, -0.48277828097343445, 0.1629849225282669, 0.5765405297279358, -0.0882451981306076, -0.77303147315979, 0.2138250321149826, -0.29967251420021057, 0.003966746851801872, 0.15715289115905762, 0.15839460492134094, 0.21351195871829987, -0.29198649525642395, -0.13135327398777008, -0.03703176975250244, 0.27168014645576477, -0.2453710436820984, -0.16605257987976074, -0.21208272874355316, 0.33135539293289185, 0.15054042637348175, 0.20933933556079865, 0.08635405451059341, 0.15338297188282013, -0.06444760411977768, 0.18473747372627258, 0.26707157492637634, 0.20595569908618927, 0.051854752004146576, 0.11939944326877594, 0.19184257090091705, -0.015681233257055283, -0.026711227372288704, -0.1420505940914154, 0.12477438896894455, -0.15526673197746277, -0.027243323624134064, 0.003446131944656372, -0.17618992924690247, -0.4698728322982788, 0.09156344085931778, -0.3309875428676605, -0.2598211169242859, 0.0590096116065979, 0.22522081434726715, 0.22955307364463806, 0.2239297777414322, -0.028514064848423004, 0.14536608755588531, -0.07884702831506729, -0.11757272481918335, -0.31686165928840637, 0.19576388597488403, -0.038568586111068726, 0.13300850987434387, 0.12026643753051758, 0.1876128762960434, 0.3888684809207916, -0.06245611235499382, -0.14877787232398987, 0.20904812216758728, -0.30427607893943787, 0.04996834322810173, 0.47003501653671265, -0.002441123127937317, 0.13868588209152222, -0.6537966132164001, 0.16421140730381012, -0.0789460688829422, 0.06734827160835266, -0.027591433376073837, -0.19461527466773987, 0.08803874999284744, 0.1664419174194336, -0.07031089812517166, -0.2632864713668823, 0.15008479356765747, 0.35354673862457275, 0.05829272046685219, -0.02606380730867386, -0.2253333181142807, 0.36183369159698486, -0.19106918573379517, 0.48719918727874756, -0.2137669175863266, -0.2533414959907532, 0.11723731458187103, -0.07451146841049194, -0.1371077299118042, 0.15310056507587433, 0.15932711958885193, -0.06869391351938248, -0.12840111553668976, -0.02796470932662487, -0.049327217042446136, 0.4077872633934021, 0.17671002447605133, 0.16486099362373352, -0.02656721882522106, 0.10691191256046295, -0.13718333840370178, 0.014903366565704346, -0.020079299807548523, 0.13774952292442322, -0.024966545403003693, 0.18920034170150757, -0.06551837176084518, -0.27614626288414, 0.1478751301765442, 0.4390670955181122, 0.20866210758686066, -0.12487152218818665, 0.04828742891550064, -0.1794448047876358, -0.5138227939605713, 0.08776793628931046, -0.2043241411447525, -0.14178664982318878, -0.35608333349227905, 0.17615875601768494, -0.02443578466773033, 0.1562802791595459, 0.30136168003082275, -0.36352789402008057, 0.3201650381088257, 0.013475893065333366, 0.21438241004943848, -0.22976413369178772, 0.1407669335603714, -0.09027885645627975, 0.045907583087682724, 0.27521559596061707, -0.02458626963198185, 0.3592139780521393, -0.2050982415676117, 0.24906833469867706, -0.6150688529014587, -0.3445729613304138, 0.04697901010513306, 0.07291330397129059, 0.45688849687576294, -0.13754728436470032, 0.22758328914642334, 0.11456429958343506, -0.012342492118477821, 0.1849178820848465, -0.03820806369185448, -0.26664987206459045, 0.05143290013074875, -0.053528718650341034, -0.16559167206287384, 0.07788451015949249, -0.12348530441522598, -0.3930378556251526, -0.27591797709465027, 0.10007371008396149, -0.20518949627876282, -0.006753645837306976, -0.08449145406484604, -0.07004261016845703, -0.02247374877333641, -0.06881174445152283, -0.24684354662895203, -0.4568459689617157, -0.5459211468696594, 0.5053567290306091, -0.49593615531921387, -0.44904330372810364, 0.2937423288822174, 0.026734326034784317, 0.33208176493644714, -0.29241377115249634, -0.5488405227661133, 0.12159661203622818, -0.08195269107818604, 0.23486271500587463, 0.21944227814674377, -0.2633045017719269, 0.3224679231643677, -0.29243627190589905, 0.012878065928816795, -0.12330279499292374, -0.14790990948677063, -0.15011057257652283, -0.4924747049808502, 0.616743803024292, -0.1961088478565216, 0.48329389095306396, -0.09046082198619843, 0.8399673104286194, 0.423422634601593, 0.26434066891670227, 0.31518495082855225, -0.01890486292541027, 0.3202707767486572, -0.21866130828857422, -0.3000474274158478, -0.07885394990444183, -0.04974246025085449, 0.06747542321681976, 0.3744087815284729, 0.020259849727153778, -0.7472123503684998, -0.24052275717258453, -0.37605908513069153, -0.29796096682548523, 0.022814441472291946, -0.15056516230106354, -0.02658851444721222, 0.24466702342033386, 0.16150088608264923, -0.03690619021654129, -0.26567336916923523, -0.34865662455558777, -0.08877629041671753, 0.39109504222869873, 0.3220137357711792, 0.19461917877197266, -0.20614397525787354, -0.03846666216850281, -0.3674553632736206, 0.36812180280685425, -0.18240268528461456, 0.6677199602127075, -0.3354753851890564, 0.1652267873287201, 0.2646195888519287, 0.10087872296571732, 0.6739162802696228, -0.27844229340553284, 0.10780367255210876, 0.016849331557750702, -0.06230154260993004, -0.12144976109266281, -0.04529020935297012, 0.24113142490386963, 0.4831806421279907, 0.1190367341041565, 0.30900660157203674, 0.011448964476585388, -0.027931775897741318, 0.3707348704338074, -0.15224553644657135, -0.41306281089782715, -0.4959721267223358, -0.31194424629211426, -0.058026619255542755, 0.0017379820346832275, -0.023169368505477905, -0.18106426298618317, 0.09103856235742569, 0.03408224135637283, 0.0976182073354721, -0.13240087032318115, -0.12266137450933456, -0.1574326604604721, 0.11286191642284393, -0.00885641947388649, 0.21425528824329376, 0.2703534960746765, 0.5959441661834717, -0.11322104930877686, 0.12876053154468536, 0.46403175592422485, 0.13718494772911072, -0.2585144639015198, 0.2785639464855194, -0.09476171433925629, 0.09313452243804932, 0.3057398498058319, -0.02871014177799225, -0.013813525438308716, 0.26925957202911377, 0.1149502694606781, -0.1032634824514389, -0.17408588528633118, 0.2771359384059906, -0.14572258293628693, -0.5776084661483765, -0.37950584292411804, 0.7008556723594666, 0.15640507638454437, 0.05200287699699402, 0.14800944924354553, 0.237295463681221, 0.010529455728828907, -0.09433288127183914, -0.13863667845726013, 1.0113329887390137, 0.05203794687986374, -0.10379287600517273, 0.08715975284576416, -0.18121172487735748, 0.2235640585422516, -0.23072849214076996, -0.023555271327495575, -0.096062071621418, -0.2620486617088318, -0.16066522896289825, -0.0390588715672493, 0.35521844029426575, -0.12231609225273132, 0.014336597174406052, -0.018730254843831062, -0.05769937485456467, -0.05074727162718773, 0.1314932107925415, 0.04216275364160538, -0.1614251434803009, -0.009593812748789787, -0.11674091219902039, 0.17339114844799042, -0.05560516566038132, 0.3339977562427521, -0.15320080518722534, -0.12207941710948944, -0.25375014543533325, 0.04294981062412262, -0.4701380729675293, 0.16405779123306274, 0.1708625853061676, 0.17500053346157074, -0.09040530025959015, -0.40825217962265015, 0.3106299340724945, 0.09935832023620605, 0.14541229605674744, 0.1535443663597107, -0.35866492986679077, 0.2522357404232025, -0.23792985081672668, -0.20440499484539032, -0.31375059485435486, -0.05595173314213753, 0.13663287460803986, -0.11002526432275772, -0.33109766244888306, 0.3761489987373352, 0.04562865197658539, -0.10046455264091492, -0.08095195144414902, -0.024115033447742462, -0.04630889743566513, -0.14505316317081451, -0.1649249941110611, -0.061842381954193115, -0.08178578317165375, -0.1797822117805481, 0.07837066054344177, 0.1923118680715561, -0.2830057144165039, -0.3162434995174408, 0.1903945356607437, -0.022974707186222076, -0.20078782737255096, 0.6034666299819946, -0.013439323753118515, -0.007219355553388596, 0.43266987800598145, 0.1778029501438141, -0.2177864909172058, -0.09251667559146881, 0.06531583517789841, 0.14087998867034912, -0.5903137922286987, -0.29356613755226135, -0.10763107240200043, 0.3710592985153198, -0.08782085031270981, 0.05567481368780136, 0.08929956704378128, -0.3599933683872223, -0.015050698071718216, -0.44500696659088135, -0.2125077098608017, 0.07760965824127197, -0.2005683034658432, 0.27316805720329285, -0.11412133276462555, 0.07909327745437622, 0.3658861219882965, 0.31553199887275696, -0.22028490900993347, -0.1274372935295105, -0.23331786692142487, 0.06182553246617317, 0.27277040481567383, 0.16257062554359436, 0.14345496892929077, -0.20789967477321625, -0.052855122834444046, 0.21554306149482727, -0.26329508423805237, -0.12381385266780853, 0.047863077372312546, 0.20252442359924316, 0.0881289690732956, -0.07523897290229797, 0.014942226000130177, -0.12213435769081116, 0.131520077586174, 0.2157425582408905, -0.04897529259324074, -0.018084628507494926, 0.1550087332725525, -0.09509839862585068, 0.2673540711402893, -0.14910387992858887, -0.1010991558432579, 0.2239990234375, 0.18986806273460388, 0.46954846382141113, -0.10190390795469284, 0.06062961369752884, 0.04862777143716812, 0.0037937909364700317, 0.011084146797657013, -0.21531817317008972, -0.11398273706436157, 0.016637733206152916, 0.2953808605670929, -0.5593099594116211, 0.45937415957450867, 0.41852205991744995, 0.06585954129695892, 0.03386669233441353, -0.19131150841712952, 0.08176545053720474, 0.33912715315818787, 0.06622102111577988, -0.46098774671554565, -0.12959010899066925, 0.45162147283554077, 0.26437509059906006, -0.20714101195335388, 0.0768795758485794, 0.18744859099388123, 0.09373773634433746, 0.1796858012676239, 0.2059786021709442, 0.3449179232120514, -0.19136255979537964, 0.33657029271125793, 0.2531099021434784, -0.08945967257022858, 0.22074909508228302, 0.33033955097198486, 0.31205007433891296, -0.1715109944343567, 0.5860205292701721, -0.08288220316171646, 0.2512965500354767, 0.06065850704908371, 0.396487295627594, -0.02647469937801361, -0.3360005021095276, 0.00921224057674408, -0.16201049089431763, -0.014834679663181305, 0.15467801690101624, -0.04674762487411499, 0.2804749310016632, 0.02691449224948883, 0.3673226535320282, -0.4465808570384979, 0.28841307759284973, -0.07470199465751648, 0.10521295666694641, -0.14233222603797913, -0.18254363536834717, -0.12874074280261993, 0.02010803297162056, 0.07621350139379501, -0.15766103565692902, 0.015325896441936493, 0.023558512330055237, -0.33785539865493774, -0.12586697936058044, 0.058069825172424316, 0.37480542063713074, 0.03449323773384094, -0.27792054414749146, 0.24308200180530548, 0.2139624059200287, -0.08363263309001923, 0.17822249233722687, 0.3870229423046112, 0.27140676975250244, -0.05144193023443222, 0.02676220051944256, 0.09706965833902359, 0.058513328433036804, -0.2838377058506012, 0.04208546131849289, 0.39801591634750366, 0.43043676018714905, -0.14650267362594604, 0.1134057343006134, 0.05374610424041748, -0.08625466376543045, 0.502834677696228, 0.16956020891666412, 0.48535990715026855, -0.2164716124534607, 0.09327703714370728, -0.6445349454879761, -0.11975321173667908, -0.20960374176502228, -0.11414266377687454, -0.35394287109375, 0.49821382761001587, 0.21797992289066315, 0.032141588628292084, -0.03706851601600647, -0.28953924775123596, 0.007881971076130867, -0.10456445813179016, 0.4067363440990448, 0.4573463499546051, -0.00007520616054534912, -0.12194611877202988, -0.2979068160057068, -0.5945020914077759, 0.11521720141172409, -0.23090237379074097, 0.22964468598365784, 0.08857785910367966, 0.015618821606040001, 0.0441887192428112, 0.25642111897468567, 0.33630532026290894, 0.07657787948846817, 0.17982356250286102, 0.4292666018009186, -0.07181696593761444, -0.1806187480688095, 0.09879367053508759, 0.2010396420955658, -0.23260316252708435, -0.07627423107624054, 0.18280985951423645, -0.021839279681444168, -0.06656648218631744, -0.1717883050441742, -0.1515779197216034, -0.15359371900558472, -0.12042386829853058, 0.3688366711139679, 0.22745823860168457, 0.46507662534713745, 0.15262249112129211, 0.006000284105539322, -0.30648162961006165, -0.2236141562461853, 0.07997263222932816, 0.20377501845359802, 0.2527174949645996, 0.26500147581100464, -0.24831455945968628, -0.2452792376279831, -0.10720685869455338, -0.05544890835881233, -0.17286674678325653, 0.32805392146110535, -0.3576889932155609, -0.09952495247125626, -0.3826439380645752, -0.06059671938419342, 0.3981665372848511, 0.1726895570755005, 0.04130641371011734, -0.05470256507396698, -0.12146006524562836, -0.08092251420021057, 0.2616744339466095, -0.6758461594581604, -0.16476933658123016, 0.03960886597633362, 0.08387403190135956, 0.09762286394834518, -0.34161993861198425, -0.28357163071632385, 0.1940414011478424, 0.3804618716239929, -0.08901259303092957, 0.42239272594451904, 0.26081985235214233, 0.01684866100549698, 0.07932412624359131, -0.05784419924020767, 0.7129948139190674, 0.0037543587386608124, 0.08389239013195038, 0.14821872115135193, -0.3717834949493408 ]
https://github.com/huggingface/datasets/issues/3965
TypeError: Couldn't cast array of type for JSONLines dataset
Hi @lewtun, thanks for reporting. It seems that our library fails at inferring the dtype of the columns: - `milestone` - `performed_via_github_app` (and assigns them `null` dtype).
## Describe the bug One of the [course participants](https://discuss.huggingface.co/t/chapter-5-questions/11744/20?u=lewtun) is having trouble loading a JSONLines dataset that's composed of the GitHub issues from `spacy` (see stack trace below). This reminds me a bit of #2799 where one can load the dataset in `pandas` but not in `datasets` and perhaps increasing the `block_size` is needed again. ## 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/Evan/spaCy-github-issues/resolve/main/spacy-issues.jsonl' data_files = hf_hub_url(repo_id="Evan/spaCy-github-issues", filename="spacy-issues.jsonl", repo_type="dataset") # throws TypeError: Couldn't cast array of type dset = load_dataset("json", data_files=data_files, split="test") # no problem with pandas - note this take a while as the file is >2GB 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 ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/load.py", line 1702, in load_dataset builder_instance.download_and_prepare( File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/builder.py", line 594, in download_and_prepare self._download_and_prepare( File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/builder.py", line 683, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/builder.py", line 1136, in _prepare_split writer.write_table(table) File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/arrow_writer.py", line 511, in write_table pa_table = table_cast(pa_table, self._schema) File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/table.py", line 1121, in table_cast return cast_table_to_features(table, Features.from_arrow_schema(schema)) File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/table.py", line 1102, in cast_table_to_features arrays = [cast_array_to_feature(table[name], feature) for name, feature in features.items()] File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/table.py", line 1102, in <listcomp> arrays = [cast_array_to_feature(table[name], feature) for name, feature in features.items()] File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/table.py", line 944, in wrapper return func(array, *args, **kwargs) File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/table.py", line 918, in wrapper return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks]) File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/table.py", line 918, in <listcomp> return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks]) File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/table.py", line 1086, in cast_array_to_feature return array_cast(array, feature(), allow_number_to_str=allow_number_to_str) File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/table.py", line 944, in wrapper return func(array, *args, **kwargs) File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/table.py", line 920, in wrapper return func(array, *args, **kwargs) File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/table.py", line 1019, in array_cast raise TypeError(f"Couldn't cast array of type\n{array.type}\nto\n{pa_type}") TypeError: Couldn't cast array of type struct<url: string, html_url: string, labels_url: string, id: int64, node_id: string, number: int64, title: string, description: string, creator: struct<login: string, id: int64, node_id: string, avatar_url: string, gravatar_id: string, url: string, html_url: string, followers_url: string, following_url: string, gists_url: string, starred_url: string, subscriptions_url: string, organizations_url: string, repos_url: string, events_url: string, received_events_url: string, type: string, site_admin: bool>, open_issues: int64, closed_issues: int64, state: string, created_at: timestamp[s], updated_at: timestamp[s], due_on: null, closed_at: timestamp[s]> to null ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.0.0 - Platform: macOS-10.16-x86_64-i386-64bit - Python version: 3.9.7 - PyArrow version: 7.0.0 - Pandas version: 1.4.1
27
TypeError: Couldn't cast array of type for JSONLines dataset ## Describe the bug One of the [course participants](https://discuss.huggingface.co/t/chapter-5-questions/11744/20?u=lewtun) is having trouble loading a JSONLines dataset that's composed of the GitHub issues from `spacy` (see stack trace below). This reminds me a bit of #2799 where one can load the dataset in `pandas` but not in `datasets` and perhaps increasing the `block_size` is needed again. ## 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/Evan/spaCy-github-issues/resolve/main/spacy-issues.jsonl' data_files = hf_hub_url(repo_id="Evan/spaCy-github-issues", filename="spacy-issues.jsonl", repo_type="dataset") # throws TypeError: Couldn't cast array of type dset = load_dataset("json", data_files=data_files, split="test") # no problem with pandas - note this take a while as the file is >2GB 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 ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/load.py", line 1702, in load_dataset builder_instance.download_and_prepare( File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/builder.py", line 594, in download_and_prepare self._download_and_prepare( File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/builder.py", line 683, in _download_and_prepare self._prepare_split(split_generator, **prepare_split_kwargs) File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/builder.py", line 1136, in _prepare_split writer.write_table(table) File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/arrow_writer.py", line 511, in write_table pa_table = table_cast(pa_table, self._schema) File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/table.py", line 1121, in table_cast return cast_table_to_features(table, Features.from_arrow_schema(schema)) File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/table.py", line 1102, in cast_table_to_features arrays = [cast_array_to_feature(table[name], feature) for name, feature in features.items()] File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/table.py", line 1102, in <listcomp> arrays = [cast_array_to_feature(table[name], feature) for name, feature in features.items()] File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/table.py", line 944, in wrapper return func(array, *args, **kwargs) File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/table.py", line 918, in wrapper return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks]) File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/table.py", line 918, in <listcomp> return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks]) File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/table.py", line 1086, in cast_array_to_feature return array_cast(array, feature(), allow_number_to_str=allow_number_to_str) File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/table.py", line 944, in wrapper return func(array, *args, **kwargs) File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/table.py", line 920, in wrapper return func(array, *args, **kwargs) File "/Users/lewtun/miniconda3/envs/hf/lib/python3.9/site-packages/datasets/table.py", line 1019, in array_cast raise TypeError(f"Couldn't cast array of type\n{array.type}\nto\n{pa_type}") TypeError: Couldn't cast array of type struct<url: string, html_url: string, labels_url: string, id: int64, node_id: string, number: int64, title: string, description: string, creator: struct<login: string, id: int64, node_id: string, avatar_url: string, gravatar_id: string, url: string, html_url: string, followers_url: string, following_url: string, gists_url: string, starred_url: string, subscriptions_url: string, organizations_url: string, repos_url: string, events_url: string, received_events_url: string, type: string, site_admin: bool>, open_issues: int64, closed_issues: int64, state: string, created_at: timestamp[s], updated_at: timestamp[s], due_on: null, closed_at: timestamp[s]> to null ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.0.0 - Platform: macOS-10.16-x86_64-i386-64bit - Python version: 3.9.7 - PyArrow version: 7.0.0 - Pandas version: 1.4.1 Hi @lewtun, thanks for reporting. It seems that our library fails at inferring the dtype of the columns: - `milestone` - `performed_via_github_app` (and assigns them `null` dtype).
[ 0.003606155514717102, -0.04799984395503998, -0.053586676716804504, 0.4342816472053528, 0.45925408601760864, 0.15033957362174988, 0.4873129725456238, 0.32419562339782715, 0.4770776629447937, -0.05750115215778351, -0.06118413060903549, 0.13117903470993042, -0.11000127345323563, 0.2816884219646454, -0.0008709458634257317, -0.394147127866745, -0.014688894152641296, -0.044532909989356995, 0.1062433198094368, 0.1749325841665268, -0.0933481827378273, 0.17309102416038513, -0.11966510117053986, -0.10318084061145782, -0.14942091703414917, -0.08525588363409042, 0.13660499453544617, 0.28533387184143066, -0.055841587483882904, -0.46646353602409363, 0.5960639715194702, 0.027426976710557938, 0.2970758378505707, 0.4774361252784729, -0.00011623252794379368, 0.26589685678482056, 0.3623138666152954, 0.043948374688625336, -0.20509740710258484, -0.3944782018661499, -0.21750515699386597, -0.22689105570316315, 0.2927969694137573, -0.2615484893321991, 0.029212437570095062, 0.02092902734875679, -0.28764909505844116, -0.280803918838501, 0.6315004825592041, 0.3120798170566559, 0.1566186100244522, 0.5220168828964233, 0.13600756227970123, -0.16798445582389832, -0.022439569234848022, 0.28469979763031006, -0.21992161870002747, 0.2597152888774872, -0.02675841748714447, 0.39749661087989807, 0.12068402767181396, -0.08542215824127197, -0.15134890377521515, -0.07701753079891205, 0.42574653029441833, -0.1706189066171646, -0.02522570639848709, 0.055203888565301895, -0.02018176019191742, 0.21618050336837769, 0.38921207189559937, -0.1799871027469635, -0.28100404143333435, -0.445833295583725, 0.030425459146499634, 0.22690387070178986, 0.10460846871137619, 0.10482767224311829, -0.10747173428535461, 0.15740710496902466, -0.3536056578159332, 0.16008946299552917, -0.18177582323551178, 0.07387302815914154, -0.05264054238796234, -0.3760055601596832, -0.1472245156764984, 0.07133808732032776, 0.006673309952020645, -0.14036956429481506, -0.10993165522813797, -0.07879963517189026, 0.00005650520324707031, 0.20296195149421692, -0.03240428492426872, 0.04409509897232056, 0.24548658728599548, -0.4204908609390259, 0.34820494055747986, 0.0516686886548996, 0.16133788228034973, 0.1043185144662857, -0.2260720431804657, 0.054342836141586304, 0.5339519381523132, 0.10736417770385742, -0.06462343782186508, 0.07453344017267227, 0.07937993109226227, 0.5198201537132263, -0.029612503945827484, -0.04020579159259796, -0.23377591371536255, -0.04877700284123421, -0.14485889673233032, -0.11290956288576126, 0.45287787914276123, -0.3941110670566559, -0.3187660574913025, 0.2627512514591217, -0.4356750249862671, -0.03822517395019531, 0.16035553812980652, 0.4267037808895111, -0.04152693971991539, 0.4907931387424469, 0.28905707597732544, 0.3620340824127197, 0.011722778901457787, 0.14059209823608398, -0.19510842859745026, 0.06399849057197571, -0.052960775792598724, -0.0929269939661026, 0.18311546742916107, 0.16315893828868866, 0.19111841917037964, -0.07588464766740799, -0.017396509647369385, -0.1847350001335144, -0.21623629331588745, 0.0817062258720398, -0.11784166842699051, 0.23710930347442627, 0.10234279930591583, 0.12578216195106506, 0.2100939005613327, -0.18839628994464874, -0.2573602497577667, -0.05016259104013443, -0.2659566104412079, -0.10703806579113007, -0.049223870038986206, 0.08651360869407654, -0.24196717143058777, 0.04220011457800865, -0.6630188226699829, -0.10536354780197144, 0.0012049302458763123, 0.002678975462913513, 0.04760415852069855, -0.17051179707050323, 0.2703710198402405, -0.23089119791984558, 0.11842704564332962, 0.33424603939056396, -0.19789540767669678, -0.10698356479406357, -0.13288947939872742, -0.08683300018310547, 0.2841021418571472, 0.3354696035385132, -0.3149741590023041, 0.3115195631980896, -0.1510193943977356, 0.23022998869419098, 0.1985105276107788, -0.1078660786151886, -0.3168271481990814, 0.37660232186317444, 0.11595194041728973, 0.42119550704956055, 0.18759573996067047, -0.11094734817743301, 0.22109703719615936, 0.057407498359680176, 0.06563335657119751, 0.43366730213165283, 0.02513490989804268, 0.15173272788524628, -0.28190818428993225, -0.2880397140979767, 0.016161883249878883, 0.1849738210439682, 0.1061127781867981, 0.20826733112335205, 0.06613679975271225, 0.45258474349975586, 0.3530702292919159, -0.10957171022891998, -0.0313442125916481, 0.29825836420059204, 0.008724052459001541, 0.10965527594089508, -0.016020210459828377, -0.28280702233314514, -0.36176711320877075, 0.03730416297912598, 0.07922706753015518, 0.04825454577803612, -0.3007807731628418, -0.21458303928375244, -0.466922402381897, 0.14304973185062408, -0.01700102910399437, 0.08242601156234741, 0.08084917068481445, -0.02623164653778076, 0.03575817868113518, -0.013614656403660774, -0.22738279402256012, 0.38542598485946655, -0.03924646973609924, 0.052798736840486526, -0.3350834846496582, 0.5943092107772827, 0.033902402967214584, -0.1328180581331253, 0.1310598999261856, 0.23408031463623047, -0.008172333240509033, -0.14591413736343384, -0.21919813752174377, 0.056965433061122894, 0.0718325600028038, -0.12136755883693695, 0.04561422020196915, 0.21178950369358063, 0.09884709864854813, -0.06423353403806686, -0.10284457355737686, 0.1945105940103531, 0.14392532408237457, 0.008083142340183258, -0.0056004151701927185, 0.4861295223236084, -0.32733386754989624, 0.4124229848384857, 0.05538473278284073, -0.036175213754177094, 0.370410680770874, 0.08865411579608917, -0.18195118010044098, -0.16254892945289612, 0.14145050942897797, 0.16473767161369324, 0.31626468896865845, 0.06250051409006119, -0.35007426142692566, 0.16619887948036194, 0.47885817289352417, -0.11330336332321167, -0.008986838161945343, 0.18437445163726807, 0.09404198080301285, 0.003738090395927429, 0.07138212770223618, 0.05408117547631264, 0.21247956156730652, 0.11241739243268967, -0.026786986738443375, 0.03454366326332092, -0.1336926370859146, -0.13567088544368744, 0.11118428409099579, 0.21200528740882874, 0.1027931272983551, -0.11087080091238022, 0.07216610014438629, 0.0769234374165535, -0.30149492621421814, -0.19324295222759247, -0.23022454977035522, 0.23068928718566895, -0.5577501654624939, 0.25433892011642456, -0.4477497339248657, -0.10625628381967545, -0.11194762587547302, -0.11626455187797546, -0.15842552483081818, -0.36960262060165405, -0.3457587957382202, 0.10362504422664642, -0.2485160231590271, 0.0584164634346962, -0.15898331999778748, 0.31314098834991455, 0.10996940732002258, -0.020259039476513863, -0.19293391704559326, 0.044202543795108795, -0.012129291892051697, 0.013515472412109375, 0.47912856936454773, 0.14332619309425354, 0.22850781679153442, -0.11783991754055023, 0.09816862642765045, -0.04824134707450867, -0.05465129017829895, -0.00535978376865387, 0.0041051097214221954, 0.19085295498371124, 0.38541096448898315, 0.582659900188446, -0.06937626004219055, -0.3032045066356659, 0.25461897253990173, -0.1251198947429657, -0.17201697826385498, 0.19612446427345276, -0.04315970465540886, -0.08812481164932251, -0.1345498412847519, -0.012754060328006744, -0.07949262112379074, -0.5506626963615417, 0.4509360194206238, -0.04438287019729614, 0.02570163831114769, -0.1100878193974495, 0.17030733823776245, 0.3367563486099243, 0.013536034151911736, 0.20706874132156372, -0.14167599380016327, -0.2518292963504791, 0.05705667659640312, -0.03867930918931961, -0.3429825007915497, -0.10304614901542664, -0.0532403364777565, 0.21819765865802765, -0.11529796570539474, -0.5638254880905151, 0.049428511410951614, -0.11291222274303436, 0.22267451882362366, 0.03093588538467884, -0.1644444763660431, 0.1530502587556839, -0.15964409708976746, 0.06082415580749512, -0.11199828237295151, -0.022633500397205353, -0.006294406950473785, -0.14809060096740723, 0.06257800757884979, 0.07174547761678696, 0.6046342849731445, -0.0198419950902462, -0.0758415013551712, 0.34196680784225464, 0.06112159416079521, 0.5457172393798828, 0.015776418149471283, 0.19686633348464966, -0.34429505467414856, -0.3486701548099518, -0.13880279660224915, -0.03356383740901947, -0.15132933855056763, 0.124114990234375, 0.07935523241758347, -0.23620639741420746, -0.019175726920366287, -0.2980383634567261, -0.25071272253990173, -0.2978021204471588, 0.14470630884170532, -0.008985362946987152, -0.17194506525993347, -0.05820741131901741, 0.06800103932619095, -0.30343279242515564, 0.01247137226164341, -0.08954863250255585, 0.2791936993598938, 0.2686019539833069, 0.007062740623950958, -0.23650318384170532, -0.24559356272220612, -0.27761292457580566, 0.1775868684053421, 0.10679352283477783, 0.33163565397262573, -0.019605834037065506, 0.08655988425016403, 0.19823046028614044, -0.2066592127084732, 0.71470046043396, 0.13886262476444244, 0.1000184640288353, 0.2515512704849243, -0.01178688183426857, -0.5998990535736084, 0.04670173302292824, 0.020631935447454453, 0.13525909185409546, 0.29896748065948486, 0.33077383041381836, -0.5607883930206299, -0.1561577320098877, 0.39625853300094604, 0.22334764897823334, 0.0016721934080123901, -0.01945008710026741, -0.1584548056125641, -0.5940130352973938, -0.3501380980014801, -0.06842618435621262, 0.19851411879062653, 0.5351091027259827, 0.1134682223200798, 0.022779937833547592, -0.006377620622515678, -0.21245718002319336, 0.024422354996204376, 0.10505802929401398, 0.3043437600135803, -0.06290604174137115, 0.20699715614318848, -0.017439164221286774, 0.13642412424087524, 0.23599989712238312, 0.8077697157859802, 0.1926366239786148, -0.3842862844467163, 0.18285736441612244, 0.10182192921638489, 0.19595709443092346, 0.4134199321269989, -0.08889870345592499, -0.028652988374233246, 0.205714151263237, 0.2799428105354309, -0.03999556228518486, 0.04166964069008827, 0.27304980158805847, -0.023233182728290558, -0.43463632464408875, -0.6030518412590027, 0.41157007217407227, 0.05189969763159752, 0.13146109879016876, 0.029452648013830185, 0.35258108377456665, -0.3001445233821869, 0.5416629910469055, -0.09194328635931015, 1.0248298645019531, -0.0939277708530426, 0.18594852089881897, 0.6502363681793213, -0.23714624345302582, 0.47456786036491394, -0.25582268834114075, -0.22481213510036469, -0.12000413239002228, 0.33291861414909363, -0.04628431797027588, -0.13771764934062958, 0.29355284571647644, -0.005029246211051941, -0.0792941302061081, -0.12068554759025574, -0.29912859201431274, 0.12229834496974945, -0.13177868723869324, 0.16247665882110596, -0.21733374893665314, -0.22766128182411194, -0.8174949884414673, 0.06864403188228607, -0.08407481014728546, -0.13565999269485474, 0.04237288236618042, -0.2948090434074402, -0.24738578498363495, -0.28350526094436646, -0.4664041996002197, -0.03859839588403702, 0.06895515322685242, 0.16325747966766357, 0.2133697122335434, 0.1084022969007492, 0.07124499976634979, 0.004832357168197632, 0.2708228528499603, 0.046048689633607864, -0.25025784969329834, 0.10473018884658813, -0.3947630226612091, -0.11437887698411942, 0.030399853363633156, 0.10672430694103241, 0.5527318120002747, -0.1170944795012474, -0.28326770663261414, -0.05958085507154465, -0.16511668264865875, -0.43107372522354126, -0.27190279960632324, 0.10820034891366959, -0.45378828048706055, -0.5515285730361938, -0.43143028020858765, -0.023952968418598175, 0.18378692865371704, -0.15307147800922394, 0.10811729729175568, 0.22572170197963715, -0.05152243375778198, -0.03394996374845505, 0.19391323626041412, -0.15515874326229095, -0.175678551197052, 0.2677132487297058, 0.0777662992477417, 0.20605866611003876, 0.42910444736480713, 0.390155553817749, -0.31267523765563965, -0.11964986473321915, 0.060927242040634155, 0.7278575897216797, -0.49793946743011475, 0.31324779987335205, -0.2753390967845917, -0.3109050393104553, -0.18367299437522888, 0.2458111196756363, 0.05065729841589928, -0.11233615130186081, -0.03673720732331276, -0.5353924632072449, -0.2427261471748352, 0.5239759683609009, 0.04277294501662254, 0.1936250925064087, 0.009131062775850296, 0.43824154138565063, -0.2171897441148758, -0.31405404210090637, -0.235931396484375, 0.02832750231027603, -0.3747354745864868, -0.04549335688352585, -0.22024665772914886, -0.15531480312347412, 0.3532833158969879, -0.11624065041542053, 0.10775977373123169, 0.07277034223079681, -0.23265455663204193, -0.1586008071899414, -0.18152594566345215, 0.15427127480506897, 0.02926100604236126, -0.16142679750919342, -0.005342403892427683, -0.06593136489391327, -0.31908413767814636, -0.19365423917770386, 0.20978863537311554, 0.20191079378128052, 0.04093942046165466, -0.06738106161355972, 0.12506988644599915, -0.09912235289812088, -0.030630890280008316, 0.2561262845993042, 0.04705179110169411, 0.43858301639556885, -0.05772295966744423, 0.13554102182388306, -0.22163492441177368, 0.12808266282081604, -0.14509467780590057, 0.23743897676467896, 0.07868648320436478, 0.21036690473556519, 0.450740247964859, -0.34770017862319946, 0.035683754831552505, 0.33374130725860596, 0.3269037902355194, 0.1621335744857788, -0.11704341322183609, 0.2221977263689041, -0.23364832997322083, 0.0706762745976448, -0.08928416669368744, -0.06350397318601608, 0.3714562952518463, -0.06639757752418518, -0.06314542144536972, 0.2462811917066574, -0.08777154237031937, 0.04867906868457794, -0.11181768774986267, 0.11656130105257034, 0.9509936571121216, 0.10267508029937744, 0.11479496955871582, 0.23535948991775513, -0.18691450357437134, -0.014448624104261398, -0.31388840079307556, 0.19585484266281128, 0.29028967022895813, -0.02742474526166916, -0.20201662182807922, 0.029210835695266724, -0.019041337072849274, 0.18093553185462952, 0.09406077861785889, -0.30851027369499207, 0.03206538408994675, 0.3188290596008301, -0.11741156876087189, 0.17286637425422668, -0.12654156982898712, 0.16770052909851074, -0.2865894138813019, -0.2343311309814453, -0.24668201804161072, 0.17700989544391632, -0.26555851101875305, -0.023967759683728218, -0.17735673487186432, -0.20165684819221497, -0.29475730657577515, -0.14972437918186188, -0.10278284549713135, -0.1052347868680954, -0.11920773983001709, -0.015536889433860779, 0.05808878690004349, -0.34451824426651, 0.12679556012153625, -0.19581007957458496, 0.18529900908470154, -0.16061455011367798, 0.2815128564834595, 0.11561568081378937, -0.09636305272579193, 0.24416670203208923, 0.23729175329208374, 0.4612085521221161, 0.22643890976905823, 0.15514880418777466, -0.22799259424209595, -0.15477293729782104, -0.12137019634246826, -0.143319234251976, 0.11206413060426712, 0.1936483383178711, 0.2507258951663971, 0.07029992341995239, 0.13618922233581543, -0.15065781772136688, 0.19578401744365692, -0.047563839703798294, 0.32529494166374207, -0.34536343812942505, 0.4531562924385071, -0.7168782949447632, -0.1382809579372406, -0.08131659775972366, -0.28854531049728394, -0.4052879512310028, -0.27205726504325867, 0.05312521383166313, -0.19932734966278076, 0.2173137664794922, -0.040516555309295654, 0.05174092948436737, -0.1668083518743515, 0.46176669001579285, 0.29219377040863037, 0.1614534556865692, 0.02081192284822464, 0.17786724865436554, -0.4220236837863922, -0.0067935362458229065, -0.00964520126581192, -0.10572614520788193, 0.45663395524024963, 0.10297541320323944, 0.01347476989030838, 0.042932577431201935, 0.10806787014007568, 0.07667226344347, -0.15956132113933563, -0.04193539172410965, -0.21611063182353973, -0.2473631650209427, 0.20260250568389893, -0.09652794152498245, -0.1292320191860199, -0.2528899013996124, 0.27555692195892334, -0.13908980786800385, -0.0019163228571414948, 0.11830028146505356, 0.08227656781673431, 0.015260446816682816, -0.10378791391849518, -0.08460460603237152, 0.06357662379741669, 0.2716118097305298, -0.03276561573147774, -0.3097325563430786, -0.34467682242393494, -0.5347607731819153, 0.013870875351130962, 0.4439699053764343, -0.22694575786590576, 0.615196943283081, -0.2317783683538437, -0.039518799632787704, -0.14315898716449738, -0.011379563249647617, -0.15895050764083862, -0.13728737831115723, -0.3897289037704468, 0.19252976775169373, -0.4617520272731781, 0.10166063904762268, -0.06824250519275665, 0.2290525734424591, 0.025406181812286377, 0.2628057897090912, 0.08801557123661041, -0.28542378544807434, 0.6634764671325684, -0.1973745971918106, -0.33965355157852173, 0.24240101873874664, -0.004297807812690735, 0.009690627455711365, -0.1997220665216446, -0.7850677967071533, 0.009448111057281494, 0.14649038016796112, 0.08883222937583923, -0.13947373628616333, 0.15608100593090057, 0.029148828238248825, -0.07737991213798523, -0.12529078125953674, 0.25399768352508545, -0.05075250566005707, -0.1525149941444397, 0.3644721210002899, -0.06417187303304672 ]
https://github.com/huggingface/datasets/issues/3960
Load local dataset error
Hi! Instead of @nateraw's `image-folder`, I suggest using the newly released `imagefolder` dataset: ```python >>> from datasets import load_dataset >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train/**'], 'validation': ['/ssd/datasets/imagenet/pytorch/val/**']} >>> ds = load_dataset('imagefolder', data_files=data_files, cache_dir='./', task='image-classification') ``` Let us know if that resolves the issue.
When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this: ``` >>> from datasets import load_dataset >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']} >>> ds = load_dataset('nateraw/image-folder', data_files=data_files, cache_dir='./', task='image-classification') [] https://huggingface.co/datasets/nateraw/image-folder/resolve/main/ /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1671, in load_dataset **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1521, in load_dataset_builder **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 1031, in __init__ super().__init__(*args, **kwargs) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 255, in __init__ sanitize_patterns(data_files), base_path=base_path, use_auth_token=use_auth_token File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 584, in from_local_or_remote if not isinstance(patterns_for_key, DataFilesList) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 546, in from_local_or_remote data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 196, in resolve_patterns_locally_or_by_urls for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions): File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 146, in _resolve_single_pattern_locally raise FileNotFoundError(error_msg) FileNotFoundError: Unable to find '/ssd/datasets/imagenet/pytorch/train' at /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main ``` I need some help to solve the problem, thanks!
40
Load local dataset error When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this: ``` >>> from datasets import load_dataset >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']} >>> ds = load_dataset('nateraw/image-folder', data_files=data_files, cache_dir='./', task='image-classification') [] https://huggingface.co/datasets/nateraw/image-folder/resolve/main/ /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1671, in load_dataset **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1521, in load_dataset_builder **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 1031, in __init__ super().__init__(*args, **kwargs) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 255, in __init__ sanitize_patterns(data_files), base_path=base_path, use_auth_token=use_auth_token File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 584, in from_local_or_remote if not isinstance(patterns_for_key, DataFilesList) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 546, in from_local_or_remote data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 196, in resolve_patterns_locally_or_by_urls for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions): File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 146, in _resolve_single_pattern_locally raise FileNotFoundError(error_msg) FileNotFoundError: Unable to find '/ssd/datasets/imagenet/pytorch/train' at /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main ``` I need some help to solve the problem, thanks! Hi! Instead of @nateraw's `image-folder`, I suggest using the newly released `imagefolder` dataset: ```python >>> from datasets import load_dataset >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train/**'], 'validation': ['/ssd/datasets/imagenet/pytorch/val/**']} >>> ds = load_dataset('imagefolder', data_files=data_files, cache_dir='./', task='image-classification') ``` Let us know if that resolves the issue.
[ -0.3380225598812103, -0.11414039134979248, -0.02119709923863411, 0.23908700048923492, 0.4253336787223816, -0.022540971636772156, 0.1771000474691391, 0.35765692591667175, 0.0669669359922409, 0.18955588340759277, -0.13147702813148499, 0.15659363567829132, -0.09680266678333282, 0.12018837779760361, -0.09796764701604843, -0.2962185740470886, -0.057913295924663544, 0.19713705778121948, -0.11787441372871399, -0.15113408863544464, -0.2569158673286438, 0.17876814305782318, -0.14001262187957764, 0.18472172319889069, -0.2956005036830902, 0.08315109461545944, -0.10548960417509079, 0.2142816185951233, -0.09651816636323929, -0.44826769828796387, 0.4221608638763428, -0.08951066434383392, 0.43298470973968506, 0.49662476778030396, -0.00010231576015939936, 0.17225125432014465, 0.4993551969528198, -0.026760341599583626, -0.12512987852096558, -0.4663240909576416, -0.13830861449241638, -0.1904052495956421, 0.30750060081481934, -0.11856693029403687, -0.20226329565048218, -0.41114482283592224, 0.04977629333734512, -0.19129326939582825, 0.4004446864128113, 0.3993334174156189, 0.3264051377773285, 0.24858808517456055, 0.02995295450091362, -0.3245801627635956, -0.16354286670684814, 0.1704920530319214, -0.14727939665317535, 0.35055941343307495, 0.2566419243812561, -0.15389849245548248, 0.14031639695167542, 0.3131348490715027, -0.05514651536941528, 0.19363820552825928, 0.31826603412628174, -0.10830292850732803, -0.06152419000864029, -0.14879266917705536, 0.36444002389907837, 0.09286418557167053, 0.5512081384658813, -0.14459535479545593, -0.3069010078907013, 0.04212547838687897, 0.11447407305240631, -0.4257180392742157, 0.23980969190597534, 0.15403985977172852, -0.14037206768989563, 0.2098691761493683, -0.2887398600578308, -0.06762006878852844, -0.23946979641914368, 0.3054100275039673, -0.11654792726039886, 0.13632537424564362, -0.16426149010658264, 0.11487582325935364, 0.23021171987056732, -0.08888613432645798, 0.16798360645771027, 0.11123327165842056, 0.1810368448495865, 0.25925835967063904, -0.3870075047016144, 0.2529418170452118, -0.0058413222432136536, -0.07459542900323868, -0.03287314251065254, -0.1497270166873932, -0.05055605620145798, -0.1193770095705986, -0.10948891192674637, 0.29077351093292236, 0.12415573000907898, 0.2429407387971878, 0.218616783618927, 0.38578009605407715, 0.03540588170289993, 0.07243882864713669, -0.16849805414676666, -0.05205263942480087, -0.3046109974384308, -0.3428439497947693, 0.17245446145534515, 0.033861756324768066, 0.21834272146224976, -0.24777425825595856, -0.18750596046447754, 0.052968356758356094, -0.02646087482571602, 0.13105778396129608, 0.004844749346375465, 0.3974284827709198, -0.07200191915035248, 0.10784132778644562, 0.11357071995735168, 0.21057263016700745, -0.21001587808132172, 0.08049972355365753, -0.3218248784542084, 0.0064728353172540665, -0.14834703505039215, -0.05037219822406769, 0.14987176656723022, -0.3902207016944885, 0.34616878628730774, -0.16460327804088593, -0.10272134840488434, 0.0681314766407013, 0.10596037656068802, -0.1619601845741272, -0.005134068429470062, 0.510623574256897, -0.16753126680850983, 0.10222212225198746, 0.24652929604053497, 0.027873612940311432, -0.09049687534570694, 0.13056135177612305, -0.2611618936061859, -0.5131599307060242, -0.3502133786678314, 0.2658132016658783, 0.035602815449237823, -0.074461929500103, -0.25543129444122314, 0.015602771192789078, 0.09142133593559265, 0.20827782154083252, -0.213351309299469, -0.25294363498687744, -0.30555102229118347, -0.03276238217949867, 0.28022804856300354, 0.32742542028427124, -0.3259853720664978, 0.0016578510403633118, -0.10044682770967484, -0.2188025414943695, 0.04140247032046318, 0.2085925042629242, -0.3016658425331116, 0.20887944102287292, -0.10445161908864975, 0.10960869491100311, 0.15639425814151764, -0.4672550559043884, -0.26182863116264343, 0.2249239832162857, 0.008027821779251099, -0.2027759552001953, -0.13782432675361633, -0.01215244922786951, -0.05892226845026016, 0.1817512810230255, 0.09810985624790192, 0.302140474319458, -0.061094529926776886, 0.04818553477525711, -0.2115163505077362, -0.1976688951253891, -0.10296294093132019, 0.34577247500419617, 0.042271167039871216, 0.1390027403831482, 0.20002835988998413, -0.2314840853214264, 0.06719609349966049, -0.13346458971500397, -0.08547922223806381, 0.2596312165260315, 0.17079654335975647, 0.06811622530221939, 0.03154334798455238, -0.0460764579474926, -0.5464988350868225, 0.23851647973060608, 0.1520851105451584, 0.2741982936859131, -0.26503461599349976, -0.05128460377454758, -0.4634176194667816, 0.07763301581144333, -0.3745076656341553, -0.08321912586688995, 0.1788611114025116, 0.06784448027610779, 0.06694072484970093, 0.14444930851459503, -0.19192156195640564, 0.28882864117622375, -0.30694717168807983, 0.040109943598508835, -0.14830593764781952, 0.1855936497449875, -0.16672766208648682, -0.13525457680225372, 0.17294912040233612, -0.10387945920228958, 0.05825873836874962, -0.2966475784778595, -0.2748551666736603, 0.482504278421402, 0.0012197252362966537, 0.22377781569957733, 0.0026744790375232697, 0.05394923686981201, 0.128635436296463, -0.24248813092708588, -0.04044700413942337, -0.05028717592358589, 0.04338045418262482, 0.08402714878320694, -0.012748174369335175, 0.13947466015815735, 0.07920339703559875, 0.10230161249637604, 0.08954295516014099, 0.05033072829246521, 0.3731084167957306, -0.0630996897816658, 0.05255511403083801, -0.20717453956604004, 0.16401083767414093, 0.04103370010852814, 0.2085026502609253, 0.02190074510872364, -0.25077342987060547, -0.2435828447341919, 0.2033373862504959, 0.027566000819206238, -0.010000936686992645, 0.23714932799339294, -0.04521438479423523, 0.20262503623962402, 0.2026035636663437, 0.30365419387817383, 0.34625327587127686, 0.1128004640340805, -0.23874402046203613, 0.2949952483177185, -0.16165296733379364, -0.05598931759595871, 0.0445127859711647, -0.08291308581829071, 0.36694782972335815, 0.2743317186832428, 0.06939683109521866, 0.07408344000577927, -0.4737311005592346, -0.07849930226802826, -0.023685645312070847, 0.49042055010795593, -0.12455886602401733, 0.11724566668272018, -0.2654000222682953, -0.27749472856521606, -0.24197274446487427, -0.0375765897333622, -0.13775452971458435, -0.13874204456806183, -0.1552966833114624, 0.06669650226831436, -0.013973984867334366, 0.28767064213752747, -0.23127397894859314, 0.06974807381629944, 0.12428683042526245, -0.22045646607875824, -0.13288213312625885, -0.21127155423164368, -0.3053152859210968, 0.08753889799118042, 0.36746513843536377, 0.0579071044921875, 0.36747631430625916, -0.34109267592430115, 0.008232465013861656, -0.016508130356669426, -0.32010841369628906, 0.08440914750099182, -0.10939028859138489, 0.15591013431549072, 0.07050040364265442, 0.2237522006034851, -0.17007602751255035, -0.22641076147556305, 0.6276733875274658, -0.31368327140808105, -0.13289116322994232, 0.04295013099908829, -0.03835228458046913, -0.20572130382061005, -0.18207359313964844, -0.5400710105895996, -0.3777378797531128, -0.25732916593551636, 0.08137667179107666, 0.21095122396945953, 0.2434428185224533, 0.4190809726715088, 0.3446767330169678, 0.14394712448120117, -0.10571446269750595, -0.12071855366230011, -0.17632552981376648, -0.39496317505836487, 0.10054072737693787, -0.24910545349121094, -0.4323083162307739, -0.06860413402318954, 0.06229041516780853, 0.5364882349967957, 0.018618278205394745, -0.349542498588562, -0.27641555666923523, -0.16683246195316315, 0.12956589460372925, -0.1216556578874588, 0.07080888748168945, 0.320684552192688, -0.09174443781375885, -0.1171271800994873, -0.08881787955760956, -0.10106964409351349, 0.16046203672885895, -0.03867430239915848, -0.06276731938123703, 0.092669278383255, 0.3357469439506531, -0.09034579247236252, 0.5322237014770508, -0.012113655917346478, -0.33631381392478943, 0.45579108595848083, -0.13204851746559143, 0.2421812266111374, -0.354227751493454, -0.5656894445419312, 0.0709298700094223, 0.15882505476474762, 0.04661758244037628, -0.08920055627822876, 0.04333309829235077, -0.10229554027318954, -0.34857964515686035, -0.08692129701375961, -0.34945473074913025, 0.03534531965851784, 0.07706817239522934, 0.09826979786157608, 0.33666443824768066, -0.06080864369869232, -0.09079179167747498, -0.14997278153896332, 0.000045872293412685394, 0.15562571585178375, 0.38728421926498413, 0.05137376859784126, 0.13470476865768433, -0.29129907488822937, 0.12881061434745789, -0.35370561480522156, 0.29205021262168884, 0.05042555555701256, 0.4000323414802551, -0.066447913646698, -0.006877176463603973, 0.13976165652275085, -0.012654073536396027, 0.3901388645172119, -0.16334965825080872, -0.079051673412323, 0.1319674402475357, -0.1838368922472, -0.349208265542984, -0.06981456279754639, 0.05873975530266762, 0.000644835177809, -0.07742422819137573, 0.6436384320259094, 0.03310084342956543, -0.37390151619911194, 0.19397877156734467, 0.12734557688236237, -0.19824081659317017, -0.3113648295402527, -0.284726083278656, -0.3292039632797241, -0.3079221248626709, -0.16732779145240784, -0.033028494566679, 0.35186389088630676, 0.21911092102527618, 0.019607216119766235, -0.12989062070846558, -0.0052580684423446655, -0.1280585676431656, 0.18281769752502441, 0.06811627745628357, -0.007876637391746044, 0.1463286429643631, 0.20760872960090637, 0.15992528200149536, 0.33690449595451355, 0.5942881107330322, -0.2568458616733551, -0.5002080202102661, -0.06951483339071274, 0.05150077864527702, 0.21410790085792542, -0.029065564274787903, -0.14194293320178986, -0.23852163553237915, 0.03115546703338623, 0.09311976283788681, -0.24549323320388794, 0.28624042868614197, 0.3770497143268585, -0.03550153225660324, 0.028673050925135612, -0.3413775563240051, 0.4341711699962616, 0.09848921000957489, 0.04441358149051666, 0.43659552931785583, -0.03936414420604706, -0.13957591354846954, 0.14746983349323273, 0.14552487432956696, 0.5746572017669678, -0.38969022035598755, -0.07654973864555359, 0.2728121280670166, 0.044419899582862854, 0.2513248324394226, 0.2226637452840805, 0.12712141871452332, -0.34635719656944275, -0.20682381093502045, 0.007464313879609108, -0.05929406359791756, 0.3179739713668823, 0.03137694299221039, 0.0469740591943264, 0.17335806787014008, -0.05658738315105438, 0.31335392594337463, 0.027560928836464882, 0.3283928334712982, -0.10479135066270828, -0.23554763197898865, -0.427683562040329, 0.25314876437187195, -0.10588222742080688, 0.3252013027667999, -0.05211815983057022, -0.00427372008562088, -0.024289382621645927, -0.15166816115379333, -0.0210350900888443, 0.1194072738289833, -0.39667922258377075, 0.19174864888191223, 0.22798430919647217, -0.15495231747627258, -0.08643054962158203, 0.3514218330383301, 0.25439509749412537, -0.01261206716299057, -0.19757963716983795, 0.15964531898498535, -0.18784859776496887, -0.16745057702064514, -0.13289768993854523, -0.058627042919397354, 0.31439298391342163, -0.18156930804252625, -0.1954331398010254, 0.020109958946704865, 0.0074791135266423225, -0.20716486871242523, 0.16283255815505981, -0.15478040277957916, 0.26526501774787903, -0.03326159715652466, -0.2878689765930176, -0.1409372240304947, 0.07929554581642151, 0.04781198874115944, 0.2261352837085724, -0.05483651161193848, 0.09209223091602325, -0.06704535335302353, -0.05019013211131096, -0.2933439612388611, 0.018687620759010315, 0.4964331090450287, 0.07490546256303787, -0.1944495141506195, 0.4649342894554138, 0.11852684617042542, 0.0903027355670929, -0.25607725977897644, 0.04134501516819, 0.3066210150718689, -0.4442827105522156, 0.03962601721286774, 0.16730277240276337, 0.1089712381362915, 0.13673296570777893, 0.3644803464412689, 0.14285972714424133, -0.3083033859729767, 0.05905267968773842, -0.3313955068588257, -0.4534527659416199, 0.03118475154042244, -0.2731125056743622, 0.19100545346736908, -0.007649824023246765, 0.316025048494339, 0.10215315967798233, -0.059133633971214294, -0.3865189254283905, 0.06730898469686508, -0.11601560562849045, 0.04892309010028839, 0.3310287892818451, 0.07351627945899963, 0.20329038798809052, -0.08912275731563568, 0.19816268980503082, 0.05383710563182831, -0.24688023328781128, -0.33027732372283936, -0.06848148256540298, 0.06125020235776901, 0.17463982105255127, -0.2562597095966339, -0.0762539878487587, -0.23496145009994507, -0.25298258662223816, 0.011496054008603096, 0.1098116785287857, 0.17288243770599365, -0.23468570411205292, 0.3075316250324249, 0.04718074947595596, 0.08588943630456924, 0.2790689468383789, 0.03733166679739952, -0.1641242653131485, 0.17475803196430206, 0.012561382725834846, -0.009649034589529037, 0.0996067225933075, -0.09315413981676102, -0.08697205036878586, -0.044731058180332184, -0.2209000140428543, 0.0441732220351696, 0.19235441088676453, -0.2863117456436157, 0.08549515902996063, 0.0788564458489418, 0.4498380422592163, 0.10560274124145508, -0.2949090003967285, -0.04081284999847412, 0.38627609610557556, 0.31741559505462646, -0.318501740694046, -0.16133151948451996, 0.1336793750524521, 0.12272941321134567, -0.12821036577224731, 0.018163256347179413, 0.23639613389968872, -0.06752239167690277, -0.045181289315223694, 0.10256827622652054, 0.4315914809703827, -0.24551256000995636, 0.21763163805007935, 0.4695020318031311, 0.023508626967668533, 0.05169401317834854, 0.13956932723522186, 0.1381320357322693, 0.1342354416847229, 0.4555004835128784, -0.32757046818733215, 0.2404288947582245, -0.15707966685295105, 0.24623768031597137, 0.04632975161075592, -0.5383799076080322, 0.01993231102824211, 0.010830819606781006, -0.21008145809173584, -0.008019037544727325, -0.26295700669288635, 0.42185816168785095, -0.027981415390968323, -0.21092672646045685, -0.1749640554189682, 0.24520128965377808, -0.11668109148740768, -0.09916523098945618, -0.36625704169273376, -0.09198091179132462, -0.05865698307752609, 0.018079087138175964, 0.005513131618499756, -0.043700605630874634, 0.37982678413391113, 0.012641392648220062, -0.2145300954580307, -0.2277994602918625, -0.131364107131958, 0.2539505660533905, 0.025238752365112305, -0.08124087005853653, 0.42475953698158264, 0.2110418677330017, -0.058169856667518616, -0.02591298148036003, 0.4645785689353943, 0.4278830885887146, 0.5090795755386353, 0.1331222653388977, 0.09946649521589279, -0.14347749948501587, -0.00653168186545372, -0.021268006414175034, 0.22343407571315765, -0.10366813838481903, 0.0454365536570549, 0.26472538709640503, 0.23199497163295746, -0.1170492097735405, 0.24234098196029663, -0.13343778252601624, 0.3304159343242645, -0.13188022375106812, 0.09457290917634964, -0.049539901316165924, -0.00160975381731987, -0.1866309493780136, 0.32916203141212463, -0.31304213404655457, 0.1827821433544159, 0.4592876434326172, -0.0043394239619374275, 0.17303550243377686, -0.18945448100566864, 0.11907447874546051, -0.16306734085083008, 0.6306008100509644, 0.38055849075317383, 0.06648571044206619, -0.42184579372406006, -0.2910125255584717, -0.7276147603988647, 0.1564405858516693, -0.08258739113807678, 0.06108826398849487, 0.06190064921975136, -0.11401557177305222, -0.03830394893884659, 0.14759346842765808, -0.028524979948997498, 0.07449541240930557, 0.03714319318532944, -0.07219329476356506, -0.259231299161911, -0.08016768097877502, -0.19655390083789825, -0.07018003612756729, 0.020468074828386307, -0.40529125928878784, 0.21774889528751373, -0.5241701006889343, 0.13813912868499756, -0.1299019604921341, 0.056943513453006744, 0.05066261813044548, 0.10105589032173157, 0.33954402804374695, 0.020069947466254234, 0.25914525985717773, 0.02230672910809517, -0.07052882015705109, -0.26630327105522156, -0.3305782973766327, -0.23197788000106812, 0.28409817814826965, 0.1264582723379135, 0.39187711477279663, -0.2800571918487549, -0.09211517870426178, -0.4638872444629669, 0.15445922315120697, -0.03759845346212387, 0.008761944249272346, -0.04988563805818558, 0.07069391757249832, 0.0008186660706996918, -0.03337738662958145, 0.22799624502658844, 0.16862887144088745, 0.05793124437332153, 0.09514039754867554, -0.42582762241363525, -0.4247075319290161, 0.503021240234375, -0.27246585488319397, -0.1122208833694458, -0.014201249927282333, -0.11984045803546906, 0.12482395768165588, -0.09381071478128433, -0.6387228965759277, 0.36852672696113586, 0.3740670084953308, -0.03118465095758438, -0.218446284532547, 0.2790353000164032, 0.07662388682365417, 0.08817872405052185, 0.005537096410989761, 0.11607033014297485, 0.02056768536567688, -0.10499044507741928, -0.07786989957094193, -0.15694883465766907 ]
https://github.com/huggingface/datasets/issues/3960
Load local dataset error
> Hi! Instead of @nateraw's `image-folder`, I suggest using the newly released `imagefolder` dataset: > > ```python > >>> from datasets import load_dataset > >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train/**'], 'validation': ['/ssd/datasets/imagenet/pytorch/val/**']} > >>> ds = load_dataset('imagefolder', data_files=data_files, cache_dir='./', task='image-classification') > ``` > > Let us know if that resolves the issue. Sorry, replied late. Thanks a lot! It's worked for me. But it seems much slower than before, and now gets stuck..... ``` >>> from datasets import load_dataset >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train/**'], 'validation': ['/ssd/datasets/imagenet/pytorch/val/**']} >>> ds = load_dataset('imagefolder', data_files=data_files, cache_dir='./', task='image-classification') Resolving data files: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1281167/1281167 [00:02<00:00, 437283.97it/s] Resolving data files: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 50001/50001 [00:00<00:00, 89094.29it/s] Using custom data configuration default-baebca6347576b33 Downloading and preparing dataset image_folder/default to ./image_folder/default-baebca6347576b33/0.0.0/ee92df8e96c6907f3c851a987be3fd03d4b93b247e727b69a8e23ac94392a091... Downloading data files #0: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80073/80073 [00:00<00:00, 82289.56obj/s] Downloading data files #1: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80073/80073 [00:01<00:00, 73559.11obj/s] Downloading data files #2: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80073/80073 [00:00<00:00, 81600.46obj/s] Downloading data files #3: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80073/80073 [00:01<00:00, 79691.56obj/s] Downloading data files #4: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80073/80073 [00:00<00:00, 82341.37obj/s] Downloading data files #5: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80073/80073 [00:01<00:00, 75784.46obj/s] Downloading data files #6: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80073/80073 [00:00<00:00, 81466.18obj/s] Downloading data files #7: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80073/80073 [00:00<00:00, 82320.27obj/s] Downloading data files #8: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80073/80073 [00:01<00:00, 78094.00obj/s] Downloading data files #9: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80073/80073 [00:00<00:00, 84057.59obj/s] Downloading data files #10: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80073/80073 [00:00<00:00, 83082.31obj/s] Downloading data files #11: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80073/80073 [00:01<00:00, 79944.21obj/s] Downloading data files #12: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80073/80073 [00:00<00:00, 84569.77obj/s] Downloading data files #13: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80073/80073 [00:00<00:00, 84949.63obj/s] Downloading data files #14: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80073/80073 [00:00<00:00, 80666.53obj/s] Downloading data files #15: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80072/80072 [00:01<00:00, 76723.20obj/s] ^[[Bloading data files #8: 94%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████▌ | 75061/80073 [00:00<00:00, 82609.89obj/s] Downloading data files #9: 85%|████████████████████████████████████████████████████████████████████████████████████████████████████▍ | 68120/80073 [00:00<00:00, 83868.54obj/s] Downloading data files #9: 96%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏ | 76784/80073 [00:00<00:00, 84722.34obj/s] Downloading data files #10: 75%|███████████████████████████████████████████████████████████████████████████████████████▋ | 59995/80073 [00:00<00:00, 84148.19obj/s] Downloading data files #10: 97%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████ | 77412/80073 [00:00<00:00, 85724.53obj/s] Downloading data files #11: 71%|███████████████████████████████████████████████████████████████████████████████████▎ | 57032/80073 [00:00<00:00, 79930.58obj/s] Downloading data files #11: 92%|███████████████████████████████████████████████████████████████████████████████████████████████████████████ | 73277/80073 [00:00<00:00, 78091.27obj/s] Downloading data files #12: 86%|█████████████████████████████████████████████████████████████████████████████████████████████████████ | 69125/80073 [00:00<00:00, 84723.02obj/s] Downloading data files #12: 97%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████▋ | 77803/80073 [00:00<00:00, 85351.59obj/s] Downloading data files #13: 75%|████████████████████████████████████████████████████████████████████████████████████████▏ | 60356/80073 [00:00<00:00, 84833.35obj/s] Downloading data files #13: 97%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████ | 77368/80073 [00:00<00:00, 84475.10obj/s] Downloading data files #14: 72%|████████████████████████████████████████████████████████████████████████████████████▍ | 57751/80073 [00:00<00:00, 80727.33obj/s] Downloading data files #14: 92%|████████████████████████████████████████████████████████████████████████████████████████████████████████████▏ | 74022/80073 [00:00<00:00, 78703.16obj/s] Downloading data files #15: 78%|███████████████████████████████████████████████████████████████████████████████████████████▋ | 62724/80072 [00:00<00:00, 78387.33obj/s] Downloading data files #15: 99%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████▎ | 78933/80072 [00:01<00:00, 79353.63obj/s] ```
When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this: ``` >>> from datasets import load_dataset >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']} >>> ds = load_dataset('nateraw/image-folder', data_files=data_files, cache_dir='./', task='image-classification') [] https://huggingface.co/datasets/nateraw/image-folder/resolve/main/ /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1671, in load_dataset **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1521, in load_dataset_builder **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 1031, in __init__ super().__init__(*args, **kwargs) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 255, in __init__ sanitize_patterns(data_files), base_path=base_path, use_auth_token=use_auth_token File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 584, in from_local_or_remote if not isinstance(patterns_for_key, DataFilesList) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 546, in from_local_or_remote data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 196, in resolve_patterns_locally_or_by_urls for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions): File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 146, in _resolve_single_pattern_locally raise FileNotFoundError(error_msg) FileNotFoundError: Unable to find '/ssd/datasets/imagenet/pytorch/train' at /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main ``` I need some help to solve the problem, thanks!
378
Load local dataset error When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this: ``` >>> from datasets import load_dataset >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']} >>> ds = load_dataset('nateraw/image-folder', data_files=data_files, cache_dir='./', task='image-classification') [] https://huggingface.co/datasets/nateraw/image-folder/resolve/main/ /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1671, in load_dataset **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1521, in load_dataset_builder **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 1031, in __init__ super().__init__(*args, **kwargs) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 255, in __init__ sanitize_patterns(data_files), base_path=base_path, use_auth_token=use_auth_token File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 584, in from_local_or_remote if not isinstance(patterns_for_key, DataFilesList) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 546, in from_local_or_remote data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 196, in resolve_patterns_locally_or_by_urls for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions): File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 146, in _resolve_single_pattern_locally raise FileNotFoundError(error_msg) FileNotFoundError: Unable to find '/ssd/datasets/imagenet/pytorch/train' at /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main ``` I need some help to solve the problem, thanks! > Hi! Instead of @nateraw's `image-folder`, I suggest using the newly released `imagefolder` dataset: > > ```python > >>> from datasets import load_dataset > >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train/**'], 'validation': ['/ssd/datasets/imagenet/pytorch/val/**']} > >>> ds = load_dataset('imagefolder', data_files=data_files, cache_dir='./', task='image-classification') > ``` > > Let us know if that resolves the issue. Sorry, replied late. Thanks a lot! It's worked for me. But it seems much slower than before, and now gets stuck..... ``` >>> from datasets import load_dataset >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train/**'], 'validation': ['/ssd/datasets/imagenet/pytorch/val/**']} >>> ds = load_dataset('imagefolder', data_files=data_files, cache_dir='./', task='image-classification') Resolving data files: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1281167/1281167 [00:02<00:00, 437283.97it/s] Resolving data files: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 50001/50001 [00:00<00:00, 89094.29it/s] Using custom data configuration default-baebca6347576b33 Downloading and preparing dataset image_folder/default to ./image_folder/default-baebca6347576b33/0.0.0/ee92df8e96c6907f3c851a987be3fd03d4b93b247e727b69a8e23ac94392a091... Downloading data files #0: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80073/80073 [00:00<00:00, 82289.56obj/s] Downloading data files #1: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80073/80073 [00:01<00:00, 73559.11obj/s] Downloading data files #2: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80073/80073 [00:00<00:00, 81600.46obj/s] Downloading data files #3: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80073/80073 [00:01<00:00, 79691.56obj/s] Downloading data files #4: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80073/80073 [00:00<00:00, 82341.37obj/s] Downloading data files #5: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80073/80073 [00:01<00:00, 75784.46obj/s] Downloading data files #6: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80073/80073 [00:00<00:00, 81466.18obj/s] Downloading data files #7: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80073/80073 [00:00<00:00, 82320.27obj/s] Downloading data files #8: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80073/80073 [00:01<00:00, 78094.00obj/s] Downloading data files #9: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80073/80073 [00:00<00:00, 84057.59obj/s] Downloading data files #10: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80073/80073 [00:00<00:00, 83082.31obj/s] Downloading data files #11: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80073/80073 [00:01<00:00, 79944.21obj/s] Downloading data files #12: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80073/80073 [00:00<00:00, 84569.77obj/s] Downloading data files #13: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80073/80073 [00:00<00:00, 84949.63obj/s] Downloading data files #14: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80073/80073 [00:00<00:00, 80666.53obj/s] Downloading data files #15: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 80072/80072 [00:01<00:00, 76723.20obj/s] ^[[Bloading data files #8: 94%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████▌ | 75061/80073 [00:00<00:00, 82609.89obj/s] Downloading data files #9: 85%|████████████████████████████████████████████████████████████████████████████████████████████████████▍ | 68120/80073 [00:00<00:00, 83868.54obj/s] Downloading data files #9: 96%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏ | 76784/80073 [00:00<00:00, 84722.34obj/s] Downloading data files #10: 75%|███████████████████████████████████████████████████████████████████████████████████████▋ | 59995/80073 [00:00<00:00, 84148.19obj/s] Downloading data files #10: 97%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████ | 77412/80073 [00:00<00:00, 85724.53obj/s] Downloading data files #11: 71%|███████████████████████████████████████████████████████████████████████████████████▎ | 57032/80073 [00:00<00:00, 79930.58obj/s] Downloading data files #11: 92%|███████████████████████████████████████████████████████████████████████████████████████████████████████████ | 73277/80073 [00:00<00:00, 78091.27obj/s] Downloading data files #12: 86%|█████████████████████████████████████████████████████████████████████████████████████████████████████ | 69125/80073 [00:00<00:00, 84723.02obj/s] Downloading data files #12: 97%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████▋ | 77803/80073 [00:00<00:00, 85351.59obj/s] Downloading data files #13: 75%|████████████████████████████████████████████████████████████████████████████████████████▏ | 60356/80073 [00:00<00:00, 84833.35obj/s] Downloading data files #13: 97%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████ | 77368/80073 [00:00<00:00, 84475.10obj/s] Downloading data files #14: 72%|████████████████████████████████████████████████████████████████████████████████████▍ | 57751/80073 [00:00<00:00, 80727.33obj/s] Downloading data files #14: 92%|████████████████████████████████████████████████████████████████████████████████████████████████████████████▏ | 74022/80073 [00:00<00:00, 78703.16obj/s] Downloading data files #15: 78%|███████████████████████████████████████████████████████████████████████████████████████████▋ | 62724/80072 [00:00<00:00, 78387.33obj/s] Downloading data files #15: 99%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████▎ | 78933/80072 [00:01<00:00, 79353.63obj/s] ```
[ -0.3380225598812103, -0.11414039134979248, -0.02119709923863411, 0.23908700048923492, 0.4253336787223816, -0.022540971636772156, 0.1771000474691391, 0.35765692591667175, 0.0669669359922409, 0.18955588340759277, -0.13147702813148499, 0.15659363567829132, -0.09680266678333282, 0.12018837779760361, -0.09796764701604843, -0.2962185740470886, -0.057913295924663544, 0.19713705778121948, -0.11787441372871399, -0.15113408863544464, -0.2569158673286438, 0.17876814305782318, -0.14001262187957764, 0.18472172319889069, -0.2956005036830902, 0.08315109461545944, -0.10548960417509079, 0.2142816185951233, -0.09651816636323929, -0.44826769828796387, 0.4221608638763428, -0.08951066434383392, 0.43298470973968506, 0.49662476778030396, -0.00010231576015939936, 0.17225125432014465, 0.4993551969528198, -0.026760341599583626, -0.12512987852096558, -0.4663240909576416, -0.13830861449241638, -0.1904052495956421, 0.30750060081481934, -0.11856693029403687, -0.20226329565048218, -0.41114482283592224, 0.04977629333734512, -0.19129326939582825, 0.4004446864128113, 0.3993334174156189, 0.3264051377773285, 0.24858808517456055, 0.02995295450091362, -0.3245801627635956, -0.16354286670684814, 0.1704920530319214, -0.14727939665317535, 0.35055941343307495, 0.2566419243812561, -0.15389849245548248, 0.14031639695167542, 0.3131348490715027, -0.05514651536941528, 0.19363820552825928, 0.31826603412628174, -0.10830292850732803, -0.06152419000864029, -0.14879266917705536, 0.36444002389907837, 0.09286418557167053, 0.5512081384658813, -0.14459535479545593, -0.3069010078907013, 0.04212547838687897, 0.11447407305240631, -0.4257180392742157, 0.23980969190597534, 0.15403985977172852, -0.14037206768989563, 0.2098691761493683, -0.2887398600578308, -0.06762006878852844, -0.23946979641914368, 0.3054100275039673, -0.11654792726039886, 0.13632537424564362, -0.16426149010658264, 0.11487582325935364, 0.23021171987056732, -0.08888613432645798, 0.16798360645771027, 0.11123327165842056, 0.1810368448495865, 0.25925835967063904, -0.3870075047016144, 0.2529418170452118, -0.0058413222432136536, -0.07459542900323868, -0.03287314251065254, -0.1497270166873932, -0.05055605620145798, -0.1193770095705986, -0.10948891192674637, 0.29077351093292236, 0.12415573000907898, 0.2429407387971878, 0.218616783618927, 0.38578009605407715, 0.03540588170289993, 0.07243882864713669, -0.16849805414676666, -0.05205263942480087, -0.3046109974384308, -0.3428439497947693, 0.17245446145534515, 0.033861756324768066, 0.21834272146224976, -0.24777425825595856, -0.18750596046447754, 0.052968356758356094, -0.02646087482571602, 0.13105778396129608, 0.004844749346375465, 0.3974284827709198, -0.07200191915035248, 0.10784132778644562, 0.11357071995735168, 0.21057263016700745, -0.21001587808132172, 0.08049972355365753, -0.3218248784542084, 0.0064728353172540665, -0.14834703505039215, -0.05037219822406769, 0.14987176656723022, -0.3902207016944885, 0.34616878628730774, -0.16460327804088593, -0.10272134840488434, 0.0681314766407013, 0.10596037656068802, -0.1619601845741272, -0.005134068429470062, 0.510623574256897, -0.16753126680850983, 0.10222212225198746, 0.24652929604053497, 0.027873612940311432, -0.09049687534570694, 0.13056135177612305, -0.2611618936061859, -0.5131599307060242, -0.3502133786678314, 0.2658132016658783, 0.035602815449237823, -0.074461929500103, -0.25543129444122314, 0.015602771192789078, 0.09142133593559265, 0.20827782154083252, -0.213351309299469, -0.25294363498687744, -0.30555102229118347, -0.03276238217949867, 0.28022804856300354, 0.32742542028427124, -0.3259853720664978, 0.0016578510403633118, -0.10044682770967484, -0.2188025414943695, 0.04140247032046318, 0.2085925042629242, -0.3016658425331116, 0.20887944102287292, -0.10445161908864975, 0.10960869491100311, 0.15639425814151764, -0.4672550559043884, -0.26182863116264343, 0.2249239832162857, 0.008027821779251099, -0.2027759552001953, -0.13782432675361633, -0.01215244922786951, -0.05892226845026016, 0.1817512810230255, 0.09810985624790192, 0.302140474319458, -0.061094529926776886, 0.04818553477525711, -0.2115163505077362, -0.1976688951253891, -0.10296294093132019, 0.34577247500419617, 0.042271167039871216, 0.1390027403831482, 0.20002835988998413, -0.2314840853214264, 0.06719609349966049, -0.13346458971500397, -0.08547922223806381, 0.2596312165260315, 0.17079654335975647, 0.06811622530221939, 0.03154334798455238, -0.0460764579474926, -0.5464988350868225, 0.23851647973060608, 0.1520851105451584, 0.2741982936859131, -0.26503461599349976, -0.05128460377454758, -0.4634176194667816, 0.07763301581144333, -0.3745076656341553, -0.08321912586688995, 0.1788611114025116, 0.06784448027610779, 0.06694072484970093, 0.14444930851459503, -0.19192156195640564, 0.28882864117622375, -0.30694717168807983, 0.040109943598508835, -0.14830593764781952, 0.1855936497449875, -0.16672766208648682, -0.13525457680225372, 0.17294912040233612, -0.10387945920228958, 0.05825873836874962, -0.2966475784778595, -0.2748551666736603, 0.482504278421402, 0.0012197252362966537, 0.22377781569957733, 0.0026744790375232697, 0.05394923686981201, 0.128635436296463, -0.24248813092708588, -0.04044700413942337, -0.05028717592358589, 0.04338045418262482, 0.08402714878320694, -0.012748174369335175, 0.13947466015815735, 0.07920339703559875, 0.10230161249637604, 0.08954295516014099, 0.05033072829246521, 0.3731084167957306, -0.0630996897816658, 0.05255511403083801, -0.20717453956604004, 0.16401083767414093, 0.04103370010852814, 0.2085026502609253, 0.02190074510872364, -0.25077342987060547, -0.2435828447341919, 0.2033373862504959, 0.027566000819206238, -0.010000936686992645, 0.23714932799339294, -0.04521438479423523, 0.20262503623962402, 0.2026035636663437, 0.30365419387817383, 0.34625327587127686, 0.1128004640340805, -0.23874402046203613, 0.2949952483177185, -0.16165296733379364, -0.05598931759595871, 0.0445127859711647, -0.08291308581829071, 0.36694782972335815, 0.2743317186832428, 0.06939683109521866, 0.07408344000577927, -0.4737311005592346, -0.07849930226802826, -0.023685645312070847, 0.49042055010795593, -0.12455886602401733, 0.11724566668272018, -0.2654000222682953, -0.27749472856521606, -0.24197274446487427, -0.0375765897333622, -0.13775452971458435, -0.13874204456806183, -0.1552966833114624, 0.06669650226831436, -0.013973984867334366, 0.28767064213752747, -0.23127397894859314, 0.06974807381629944, 0.12428683042526245, -0.22045646607875824, -0.13288213312625885, -0.21127155423164368, -0.3053152859210968, 0.08753889799118042, 0.36746513843536377, 0.0579071044921875, 0.36747631430625916, -0.34109267592430115, 0.008232465013861656, -0.016508130356669426, -0.32010841369628906, 0.08440914750099182, -0.10939028859138489, 0.15591013431549072, 0.07050040364265442, 0.2237522006034851, -0.17007602751255035, -0.22641076147556305, 0.6276733875274658, -0.31368327140808105, -0.13289116322994232, 0.04295013099908829, -0.03835228458046913, -0.20572130382061005, -0.18207359313964844, -0.5400710105895996, -0.3777378797531128, -0.25732916593551636, 0.08137667179107666, 0.21095122396945953, 0.2434428185224533, 0.4190809726715088, 0.3446767330169678, 0.14394712448120117, -0.10571446269750595, -0.12071855366230011, -0.17632552981376648, -0.39496317505836487, 0.10054072737693787, -0.24910545349121094, -0.4323083162307739, -0.06860413402318954, 0.06229041516780853, 0.5364882349967957, 0.018618278205394745, -0.349542498588562, -0.27641555666923523, -0.16683246195316315, 0.12956589460372925, -0.1216556578874588, 0.07080888748168945, 0.320684552192688, -0.09174443781375885, -0.1171271800994873, -0.08881787955760956, -0.10106964409351349, 0.16046203672885895, -0.03867430239915848, -0.06276731938123703, 0.092669278383255, 0.3357469439506531, -0.09034579247236252, 0.5322237014770508, -0.012113655917346478, -0.33631381392478943, 0.45579108595848083, -0.13204851746559143, 0.2421812266111374, -0.354227751493454, -0.5656894445419312, 0.0709298700094223, 0.15882505476474762, 0.04661758244037628, -0.08920055627822876, 0.04333309829235077, -0.10229554027318954, -0.34857964515686035, -0.08692129701375961, -0.34945473074913025, 0.03534531965851784, 0.07706817239522934, 0.09826979786157608, 0.33666443824768066, -0.06080864369869232, -0.09079179167747498, -0.14997278153896332, 0.000045872293412685394, 0.15562571585178375, 0.38728421926498413, 0.05137376859784126, 0.13470476865768433, -0.29129907488822937, 0.12881061434745789, -0.35370561480522156, 0.29205021262168884, 0.05042555555701256, 0.4000323414802551, -0.066447913646698, -0.006877176463603973, 0.13976165652275085, -0.012654073536396027, 0.3901388645172119, -0.16334965825080872, -0.079051673412323, 0.1319674402475357, -0.1838368922472, -0.349208265542984, -0.06981456279754639, 0.05873975530266762, 0.000644835177809, -0.07742422819137573, 0.6436384320259094, 0.03310084342956543, -0.37390151619911194, 0.19397877156734467, 0.12734557688236237, -0.19824081659317017, -0.3113648295402527, -0.284726083278656, -0.3292039632797241, -0.3079221248626709, -0.16732779145240784, -0.033028494566679, 0.35186389088630676, 0.21911092102527618, 0.019607216119766235, -0.12989062070846558, -0.0052580684423446655, -0.1280585676431656, 0.18281769752502441, 0.06811627745628357, -0.007876637391746044, 0.1463286429643631, 0.20760872960090637, 0.15992528200149536, 0.33690449595451355, 0.5942881107330322, -0.2568458616733551, -0.5002080202102661, -0.06951483339071274, 0.05150077864527702, 0.21410790085792542, -0.029065564274787903, -0.14194293320178986, -0.23852163553237915, 0.03115546703338623, 0.09311976283788681, -0.24549323320388794, 0.28624042868614197, 0.3770497143268585, -0.03550153225660324, 0.028673050925135612, -0.3413775563240051, 0.4341711699962616, 0.09848921000957489, 0.04441358149051666, 0.43659552931785583, -0.03936414420604706, -0.13957591354846954, 0.14746983349323273, 0.14552487432956696, 0.5746572017669678, -0.38969022035598755, -0.07654973864555359, 0.2728121280670166, 0.044419899582862854, 0.2513248324394226, 0.2226637452840805, 0.12712141871452332, -0.34635719656944275, -0.20682381093502045, 0.007464313879609108, -0.05929406359791756, 0.3179739713668823, 0.03137694299221039, 0.0469740591943264, 0.17335806787014008, -0.05658738315105438, 0.31335392594337463, 0.027560928836464882, 0.3283928334712982, -0.10479135066270828, -0.23554763197898865, -0.427683562040329, 0.25314876437187195, -0.10588222742080688, 0.3252013027667999, -0.05211815983057022, -0.00427372008562088, -0.024289382621645927, -0.15166816115379333, -0.0210350900888443, 0.1194072738289833, -0.39667922258377075, 0.19174864888191223, 0.22798430919647217, -0.15495231747627258, -0.08643054962158203, 0.3514218330383301, 0.25439509749412537, -0.01261206716299057, -0.19757963716983795, 0.15964531898498535, -0.18784859776496887, -0.16745057702064514, -0.13289768993854523, -0.058627042919397354, 0.31439298391342163, -0.18156930804252625, -0.1954331398010254, 0.020109958946704865, 0.0074791135266423225, -0.20716486871242523, 0.16283255815505981, -0.15478040277957916, 0.26526501774787903, -0.03326159715652466, -0.2878689765930176, -0.1409372240304947, 0.07929554581642151, 0.04781198874115944, 0.2261352837085724, -0.05483651161193848, 0.09209223091602325, -0.06704535335302353, -0.05019013211131096, -0.2933439612388611, 0.018687620759010315, 0.4964331090450287, 0.07490546256303787, -0.1944495141506195, 0.4649342894554138, 0.11852684617042542, 0.0903027355670929, -0.25607725977897644, 0.04134501516819, 0.3066210150718689, -0.4442827105522156, 0.03962601721286774, 0.16730277240276337, 0.1089712381362915, 0.13673296570777893, 0.3644803464412689, 0.14285972714424133, -0.3083033859729767, 0.05905267968773842, -0.3313955068588257, -0.4534527659416199, 0.03118475154042244, -0.2731125056743622, 0.19100545346736908, -0.007649824023246765, 0.316025048494339, 0.10215315967798233, -0.059133633971214294, -0.3865189254283905, 0.06730898469686508, -0.11601560562849045, 0.04892309010028839, 0.3310287892818451, 0.07351627945899963, 0.20329038798809052, -0.08912275731563568, 0.19816268980503082, 0.05383710563182831, -0.24688023328781128, -0.33027732372283936, -0.06848148256540298, 0.06125020235776901, 0.17463982105255127, -0.2562597095966339, -0.0762539878487587, -0.23496145009994507, -0.25298258662223816, 0.011496054008603096, 0.1098116785287857, 0.17288243770599365, -0.23468570411205292, 0.3075316250324249, 0.04718074947595596, 0.08588943630456924, 0.2790689468383789, 0.03733166679739952, -0.1641242653131485, 0.17475803196430206, 0.012561382725834846, -0.009649034589529037, 0.0996067225933075, -0.09315413981676102, -0.08697205036878586, -0.044731058180332184, -0.2209000140428543, 0.0441732220351696, 0.19235441088676453, -0.2863117456436157, 0.08549515902996063, 0.0788564458489418, 0.4498380422592163, 0.10560274124145508, -0.2949090003967285, -0.04081284999847412, 0.38627609610557556, 0.31741559505462646, -0.318501740694046, -0.16133151948451996, 0.1336793750524521, 0.12272941321134567, -0.12821036577224731, 0.018163256347179413, 0.23639613389968872, -0.06752239167690277, -0.045181289315223694, 0.10256827622652054, 0.4315914809703827, -0.24551256000995636, 0.21763163805007935, 0.4695020318031311, 0.023508626967668533, 0.05169401317834854, 0.13956932723522186, 0.1381320357322693, 0.1342354416847229, 0.4555004835128784, -0.32757046818733215, 0.2404288947582245, -0.15707966685295105, 0.24623768031597137, 0.04632975161075592, -0.5383799076080322, 0.01993231102824211, 0.010830819606781006, -0.21008145809173584, -0.008019037544727325, -0.26295700669288635, 0.42185816168785095, -0.027981415390968323, -0.21092672646045685, -0.1749640554189682, 0.24520128965377808, -0.11668109148740768, -0.09916523098945618, -0.36625704169273376, -0.09198091179132462, -0.05865698307752609, 0.018079087138175964, 0.005513131618499756, -0.043700605630874634, 0.37982678413391113, 0.012641392648220062, -0.2145300954580307, -0.2277994602918625, -0.131364107131958, 0.2539505660533905, 0.025238752365112305, -0.08124087005853653, 0.42475953698158264, 0.2110418677330017, -0.058169856667518616, -0.02591298148036003, 0.4645785689353943, 0.4278830885887146, 0.5090795755386353, 0.1331222653388977, 0.09946649521589279, -0.14347749948501587, -0.00653168186545372, -0.021268006414175034, 0.22343407571315765, -0.10366813838481903, 0.0454365536570549, 0.26472538709640503, 0.23199497163295746, -0.1170492097735405, 0.24234098196029663, -0.13343778252601624, 0.3304159343242645, -0.13188022375106812, 0.09457290917634964, -0.049539901316165924, -0.00160975381731987, -0.1866309493780136, 0.32916203141212463, -0.31304213404655457, 0.1827821433544159, 0.4592876434326172, -0.0043394239619374275, 0.17303550243377686, -0.18945448100566864, 0.11907447874546051, -0.16306734085083008, 0.6306008100509644, 0.38055849075317383, 0.06648571044206619, -0.42184579372406006, -0.2910125255584717, -0.7276147603988647, 0.1564405858516693, -0.08258739113807678, 0.06108826398849487, 0.06190064921975136, -0.11401557177305222, -0.03830394893884659, 0.14759346842765808, -0.028524979948997498, 0.07449541240930557, 0.03714319318532944, -0.07219329476356506, -0.259231299161911, -0.08016768097877502, -0.19655390083789825, -0.07018003612756729, 0.020468074828386307, -0.40529125928878784, 0.21774889528751373, -0.5241701006889343, 0.13813912868499756, -0.1299019604921341, 0.056943513453006744, 0.05066261813044548, 0.10105589032173157, 0.33954402804374695, 0.020069947466254234, 0.25914525985717773, 0.02230672910809517, -0.07052882015705109, -0.26630327105522156, -0.3305782973766327, -0.23197788000106812, 0.28409817814826965, 0.1264582723379135, 0.39187711477279663, -0.2800571918487549, -0.09211517870426178, -0.4638872444629669, 0.15445922315120697, -0.03759845346212387, 0.008761944249272346, -0.04988563805818558, 0.07069391757249832, 0.0008186660706996918, -0.03337738662958145, 0.22799624502658844, 0.16862887144088745, 0.05793124437332153, 0.09514039754867554, -0.42582762241363525, -0.4247075319290161, 0.503021240234375, -0.27246585488319397, -0.1122208833694458, -0.014201249927282333, -0.11984045803546906, 0.12482395768165588, -0.09381071478128433, -0.6387228965759277, 0.36852672696113586, 0.3740670084953308, -0.03118465095758438, -0.218446284532547, 0.2790353000164032, 0.07662388682365417, 0.08817872405052185, 0.005537096410989761, 0.11607033014297485, 0.02056768536567688, -0.10499044507741928, -0.07786989957094193, -0.15694883465766907 ]
https://github.com/huggingface/datasets/issues/3960
Load local dataset error
You can pass `ignore_verifications=True` in `load_dataset` to make it fast (to skip checksum verification). I'll add this tip to the docs.
When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this: ``` >>> from datasets import load_dataset >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']} >>> ds = load_dataset('nateraw/image-folder', data_files=data_files, cache_dir='./', task='image-classification') [] https://huggingface.co/datasets/nateraw/image-folder/resolve/main/ /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1671, in load_dataset **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1521, in load_dataset_builder **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 1031, in __init__ super().__init__(*args, **kwargs) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 255, in __init__ sanitize_patterns(data_files), base_path=base_path, use_auth_token=use_auth_token File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 584, in from_local_or_remote if not isinstance(patterns_for_key, DataFilesList) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 546, in from_local_or_remote data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 196, in resolve_patterns_locally_or_by_urls for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions): File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 146, in _resolve_single_pattern_locally raise FileNotFoundError(error_msg) FileNotFoundError: Unable to find '/ssd/datasets/imagenet/pytorch/train' at /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main ``` I need some help to solve the problem, thanks!
21
Load local dataset error When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this: ``` >>> from datasets import load_dataset >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']} >>> ds = load_dataset('nateraw/image-folder', data_files=data_files, cache_dir='./', task='image-classification') [] https://huggingface.co/datasets/nateraw/image-folder/resolve/main/ /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1671, in load_dataset **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1521, in load_dataset_builder **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 1031, in __init__ super().__init__(*args, **kwargs) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 255, in __init__ sanitize_patterns(data_files), base_path=base_path, use_auth_token=use_auth_token File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 584, in from_local_or_remote if not isinstance(patterns_for_key, DataFilesList) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 546, in from_local_or_remote data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 196, in resolve_patterns_locally_or_by_urls for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions): File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 146, in _resolve_single_pattern_locally raise FileNotFoundError(error_msg) FileNotFoundError: Unable to find '/ssd/datasets/imagenet/pytorch/train' at /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main ``` I need some help to solve the problem, thanks! You can pass `ignore_verifications=True` in `load_dataset` to make it fast (to skip checksum verification). I'll add this tip to the docs.
[ -0.3380225598812103, -0.11414039134979248, -0.02119709923863411, 0.23908700048923492, 0.4253336787223816, -0.022540971636772156, 0.1771000474691391, 0.35765692591667175, 0.0669669359922409, 0.18955588340759277, -0.13147702813148499, 0.15659363567829132, -0.09680266678333282, 0.12018837779760361, -0.09796764701604843, -0.2962185740470886, -0.057913295924663544, 0.19713705778121948, -0.11787441372871399, -0.15113408863544464, -0.2569158673286438, 0.17876814305782318, -0.14001262187957764, 0.18472172319889069, -0.2956005036830902, 0.08315109461545944, -0.10548960417509079, 0.2142816185951233, -0.09651816636323929, -0.44826769828796387, 0.4221608638763428, -0.08951066434383392, 0.43298470973968506, 0.49662476778030396, -0.00010231576015939936, 0.17225125432014465, 0.4993551969528198, -0.026760341599583626, -0.12512987852096558, -0.4663240909576416, -0.13830861449241638, -0.1904052495956421, 0.30750060081481934, -0.11856693029403687, -0.20226329565048218, -0.41114482283592224, 0.04977629333734512, -0.19129326939582825, 0.4004446864128113, 0.3993334174156189, 0.3264051377773285, 0.24858808517456055, 0.02995295450091362, -0.3245801627635956, -0.16354286670684814, 0.1704920530319214, -0.14727939665317535, 0.35055941343307495, 0.2566419243812561, -0.15389849245548248, 0.14031639695167542, 0.3131348490715027, -0.05514651536941528, 0.19363820552825928, 0.31826603412628174, -0.10830292850732803, -0.06152419000864029, -0.14879266917705536, 0.36444002389907837, 0.09286418557167053, 0.5512081384658813, -0.14459535479545593, -0.3069010078907013, 0.04212547838687897, 0.11447407305240631, -0.4257180392742157, 0.23980969190597534, 0.15403985977172852, -0.14037206768989563, 0.2098691761493683, -0.2887398600578308, -0.06762006878852844, -0.23946979641914368, 0.3054100275039673, -0.11654792726039886, 0.13632537424564362, -0.16426149010658264, 0.11487582325935364, 0.23021171987056732, -0.08888613432645798, 0.16798360645771027, 0.11123327165842056, 0.1810368448495865, 0.25925835967063904, -0.3870075047016144, 0.2529418170452118, -0.0058413222432136536, -0.07459542900323868, -0.03287314251065254, -0.1497270166873932, -0.05055605620145798, -0.1193770095705986, -0.10948891192674637, 0.29077351093292236, 0.12415573000907898, 0.2429407387971878, 0.218616783618927, 0.38578009605407715, 0.03540588170289993, 0.07243882864713669, -0.16849805414676666, -0.05205263942480087, -0.3046109974384308, -0.3428439497947693, 0.17245446145534515, 0.033861756324768066, 0.21834272146224976, -0.24777425825595856, -0.18750596046447754, 0.052968356758356094, -0.02646087482571602, 0.13105778396129608, 0.004844749346375465, 0.3974284827709198, -0.07200191915035248, 0.10784132778644562, 0.11357071995735168, 0.21057263016700745, -0.21001587808132172, 0.08049972355365753, -0.3218248784542084, 0.0064728353172540665, -0.14834703505039215, -0.05037219822406769, 0.14987176656723022, -0.3902207016944885, 0.34616878628730774, -0.16460327804088593, -0.10272134840488434, 0.0681314766407013, 0.10596037656068802, -0.1619601845741272, -0.005134068429470062, 0.510623574256897, -0.16753126680850983, 0.10222212225198746, 0.24652929604053497, 0.027873612940311432, -0.09049687534570694, 0.13056135177612305, -0.2611618936061859, -0.5131599307060242, -0.3502133786678314, 0.2658132016658783, 0.035602815449237823, -0.074461929500103, -0.25543129444122314, 0.015602771192789078, 0.09142133593559265, 0.20827782154083252, -0.213351309299469, -0.25294363498687744, -0.30555102229118347, -0.03276238217949867, 0.28022804856300354, 0.32742542028427124, -0.3259853720664978, 0.0016578510403633118, -0.10044682770967484, -0.2188025414943695, 0.04140247032046318, 0.2085925042629242, -0.3016658425331116, 0.20887944102287292, -0.10445161908864975, 0.10960869491100311, 0.15639425814151764, -0.4672550559043884, -0.26182863116264343, 0.2249239832162857, 0.008027821779251099, -0.2027759552001953, -0.13782432675361633, -0.01215244922786951, -0.05892226845026016, 0.1817512810230255, 0.09810985624790192, 0.302140474319458, -0.061094529926776886, 0.04818553477525711, -0.2115163505077362, -0.1976688951253891, -0.10296294093132019, 0.34577247500419617, 0.042271167039871216, 0.1390027403831482, 0.20002835988998413, -0.2314840853214264, 0.06719609349966049, -0.13346458971500397, -0.08547922223806381, 0.2596312165260315, 0.17079654335975647, 0.06811622530221939, 0.03154334798455238, -0.0460764579474926, -0.5464988350868225, 0.23851647973060608, 0.1520851105451584, 0.2741982936859131, -0.26503461599349976, -0.05128460377454758, -0.4634176194667816, 0.07763301581144333, -0.3745076656341553, -0.08321912586688995, 0.1788611114025116, 0.06784448027610779, 0.06694072484970093, 0.14444930851459503, -0.19192156195640564, 0.28882864117622375, -0.30694717168807983, 0.040109943598508835, -0.14830593764781952, 0.1855936497449875, -0.16672766208648682, -0.13525457680225372, 0.17294912040233612, -0.10387945920228958, 0.05825873836874962, -0.2966475784778595, -0.2748551666736603, 0.482504278421402, 0.0012197252362966537, 0.22377781569957733, 0.0026744790375232697, 0.05394923686981201, 0.128635436296463, -0.24248813092708588, -0.04044700413942337, -0.05028717592358589, 0.04338045418262482, 0.08402714878320694, -0.012748174369335175, 0.13947466015815735, 0.07920339703559875, 0.10230161249637604, 0.08954295516014099, 0.05033072829246521, 0.3731084167957306, -0.0630996897816658, 0.05255511403083801, -0.20717453956604004, 0.16401083767414093, 0.04103370010852814, 0.2085026502609253, 0.02190074510872364, -0.25077342987060547, -0.2435828447341919, 0.2033373862504959, 0.027566000819206238, -0.010000936686992645, 0.23714932799339294, -0.04521438479423523, 0.20262503623962402, 0.2026035636663437, 0.30365419387817383, 0.34625327587127686, 0.1128004640340805, -0.23874402046203613, 0.2949952483177185, -0.16165296733379364, -0.05598931759595871, 0.0445127859711647, -0.08291308581829071, 0.36694782972335815, 0.2743317186832428, 0.06939683109521866, 0.07408344000577927, -0.4737311005592346, -0.07849930226802826, -0.023685645312070847, 0.49042055010795593, -0.12455886602401733, 0.11724566668272018, -0.2654000222682953, -0.27749472856521606, -0.24197274446487427, -0.0375765897333622, -0.13775452971458435, -0.13874204456806183, -0.1552966833114624, 0.06669650226831436, -0.013973984867334366, 0.28767064213752747, -0.23127397894859314, 0.06974807381629944, 0.12428683042526245, -0.22045646607875824, -0.13288213312625885, -0.21127155423164368, -0.3053152859210968, 0.08753889799118042, 0.36746513843536377, 0.0579071044921875, 0.36747631430625916, -0.34109267592430115, 0.008232465013861656, -0.016508130356669426, -0.32010841369628906, 0.08440914750099182, -0.10939028859138489, 0.15591013431549072, 0.07050040364265442, 0.2237522006034851, -0.17007602751255035, -0.22641076147556305, 0.6276733875274658, -0.31368327140808105, -0.13289116322994232, 0.04295013099908829, -0.03835228458046913, -0.20572130382061005, -0.18207359313964844, -0.5400710105895996, -0.3777378797531128, -0.25732916593551636, 0.08137667179107666, 0.21095122396945953, 0.2434428185224533, 0.4190809726715088, 0.3446767330169678, 0.14394712448120117, -0.10571446269750595, -0.12071855366230011, -0.17632552981376648, -0.39496317505836487, 0.10054072737693787, -0.24910545349121094, -0.4323083162307739, -0.06860413402318954, 0.06229041516780853, 0.5364882349967957, 0.018618278205394745, -0.349542498588562, -0.27641555666923523, -0.16683246195316315, 0.12956589460372925, -0.1216556578874588, 0.07080888748168945, 0.320684552192688, -0.09174443781375885, -0.1171271800994873, -0.08881787955760956, -0.10106964409351349, 0.16046203672885895, -0.03867430239915848, -0.06276731938123703, 0.092669278383255, 0.3357469439506531, -0.09034579247236252, 0.5322237014770508, -0.012113655917346478, -0.33631381392478943, 0.45579108595848083, -0.13204851746559143, 0.2421812266111374, -0.354227751493454, -0.5656894445419312, 0.0709298700094223, 0.15882505476474762, 0.04661758244037628, -0.08920055627822876, 0.04333309829235077, -0.10229554027318954, -0.34857964515686035, -0.08692129701375961, -0.34945473074913025, 0.03534531965851784, 0.07706817239522934, 0.09826979786157608, 0.33666443824768066, -0.06080864369869232, -0.09079179167747498, -0.14997278153896332, 0.000045872293412685394, 0.15562571585178375, 0.38728421926498413, 0.05137376859784126, 0.13470476865768433, -0.29129907488822937, 0.12881061434745789, -0.35370561480522156, 0.29205021262168884, 0.05042555555701256, 0.4000323414802551, -0.066447913646698, -0.006877176463603973, 0.13976165652275085, -0.012654073536396027, 0.3901388645172119, -0.16334965825080872, -0.079051673412323, 0.1319674402475357, -0.1838368922472, -0.349208265542984, -0.06981456279754639, 0.05873975530266762, 0.000644835177809, -0.07742422819137573, 0.6436384320259094, 0.03310084342956543, -0.37390151619911194, 0.19397877156734467, 0.12734557688236237, -0.19824081659317017, -0.3113648295402527, -0.284726083278656, -0.3292039632797241, -0.3079221248626709, -0.16732779145240784, -0.033028494566679, 0.35186389088630676, 0.21911092102527618, 0.019607216119766235, -0.12989062070846558, -0.0052580684423446655, -0.1280585676431656, 0.18281769752502441, 0.06811627745628357, -0.007876637391746044, 0.1463286429643631, 0.20760872960090637, 0.15992528200149536, 0.33690449595451355, 0.5942881107330322, -0.2568458616733551, -0.5002080202102661, -0.06951483339071274, 0.05150077864527702, 0.21410790085792542, -0.029065564274787903, -0.14194293320178986, -0.23852163553237915, 0.03115546703338623, 0.09311976283788681, -0.24549323320388794, 0.28624042868614197, 0.3770497143268585, -0.03550153225660324, 0.028673050925135612, -0.3413775563240051, 0.4341711699962616, 0.09848921000957489, 0.04441358149051666, 0.43659552931785583, -0.03936414420604706, -0.13957591354846954, 0.14746983349323273, 0.14552487432956696, 0.5746572017669678, -0.38969022035598755, -0.07654973864555359, 0.2728121280670166, 0.044419899582862854, 0.2513248324394226, 0.2226637452840805, 0.12712141871452332, -0.34635719656944275, -0.20682381093502045, 0.007464313879609108, -0.05929406359791756, 0.3179739713668823, 0.03137694299221039, 0.0469740591943264, 0.17335806787014008, -0.05658738315105438, 0.31335392594337463, 0.027560928836464882, 0.3283928334712982, -0.10479135066270828, -0.23554763197898865, -0.427683562040329, 0.25314876437187195, -0.10588222742080688, 0.3252013027667999, -0.05211815983057022, -0.00427372008562088, -0.024289382621645927, -0.15166816115379333, -0.0210350900888443, 0.1194072738289833, -0.39667922258377075, 0.19174864888191223, 0.22798430919647217, -0.15495231747627258, -0.08643054962158203, 0.3514218330383301, 0.25439509749412537, -0.01261206716299057, -0.19757963716983795, 0.15964531898498535, -0.18784859776496887, -0.16745057702064514, -0.13289768993854523, -0.058627042919397354, 0.31439298391342163, -0.18156930804252625, -0.1954331398010254, 0.020109958946704865, 0.0074791135266423225, -0.20716486871242523, 0.16283255815505981, -0.15478040277957916, 0.26526501774787903, -0.03326159715652466, -0.2878689765930176, -0.1409372240304947, 0.07929554581642151, 0.04781198874115944, 0.2261352837085724, -0.05483651161193848, 0.09209223091602325, -0.06704535335302353, -0.05019013211131096, -0.2933439612388611, 0.018687620759010315, 0.4964331090450287, 0.07490546256303787, -0.1944495141506195, 0.4649342894554138, 0.11852684617042542, 0.0903027355670929, -0.25607725977897644, 0.04134501516819, 0.3066210150718689, -0.4442827105522156, 0.03962601721286774, 0.16730277240276337, 0.1089712381362915, 0.13673296570777893, 0.3644803464412689, 0.14285972714424133, -0.3083033859729767, 0.05905267968773842, -0.3313955068588257, -0.4534527659416199, 0.03118475154042244, -0.2731125056743622, 0.19100545346736908, -0.007649824023246765, 0.316025048494339, 0.10215315967798233, -0.059133633971214294, -0.3865189254283905, 0.06730898469686508, -0.11601560562849045, 0.04892309010028839, 0.3310287892818451, 0.07351627945899963, 0.20329038798809052, -0.08912275731563568, 0.19816268980503082, 0.05383710563182831, -0.24688023328781128, -0.33027732372283936, -0.06848148256540298, 0.06125020235776901, 0.17463982105255127, -0.2562597095966339, -0.0762539878487587, -0.23496145009994507, -0.25298258662223816, 0.011496054008603096, 0.1098116785287857, 0.17288243770599365, -0.23468570411205292, 0.3075316250324249, 0.04718074947595596, 0.08588943630456924, 0.2790689468383789, 0.03733166679739952, -0.1641242653131485, 0.17475803196430206, 0.012561382725834846, -0.009649034589529037, 0.0996067225933075, -0.09315413981676102, -0.08697205036878586, -0.044731058180332184, -0.2209000140428543, 0.0441732220351696, 0.19235441088676453, -0.2863117456436157, 0.08549515902996063, 0.0788564458489418, 0.4498380422592163, 0.10560274124145508, -0.2949090003967285, -0.04081284999847412, 0.38627609610557556, 0.31741559505462646, -0.318501740694046, -0.16133151948451996, 0.1336793750524521, 0.12272941321134567, -0.12821036577224731, 0.018163256347179413, 0.23639613389968872, -0.06752239167690277, -0.045181289315223694, 0.10256827622652054, 0.4315914809703827, -0.24551256000995636, 0.21763163805007935, 0.4695020318031311, 0.023508626967668533, 0.05169401317834854, 0.13956932723522186, 0.1381320357322693, 0.1342354416847229, 0.4555004835128784, -0.32757046818733215, 0.2404288947582245, -0.15707966685295105, 0.24623768031597137, 0.04632975161075592, -0.5383799076080322, 0.01993231102824211, 0.010830819606781006, -0.21008145809173584, -0.008019037544727325, -0.26295700669288635, 0.42185816168785095, -0.027981415390968323, -0.21092672646045685, -0.1749640554189682, 0.24520128965377808, -0.11668109148740768, -0.09916523098945618, -0.36625704169273376, -0.09198091179132462, -0.05865698307752609, 0.018079087138175964, 0.005513131618499756, -0.043700605630874634, 0.37982678413391113, 0.012641392648220062, -0.2145300954580307, -0.2277994602918625, -0.131364107131958, 0.2539505660533905, 0.025238752365112305, -0.08124087005853653, 0.42475953698158264, 0.2110418677330017, -0.058169856667518616, -0.02591298148036003, 0.4645785689353943, 0.4278830885887146, 0.5090795755386353, 0.1331222653388977, 0.09946649521589279, -0.14347749948501587, -0.00653168186545372, -0.021268006414175034, 0.22343407571315765, -0.10366813838481903, 0.0454365536570549, 0.26472538709640503, 0.23199497163295746, -0.1170492097735405, 0.24234098196029663, -0.13343778252601624, 0.3304159343242645, -0.13188022375106812, 0.09457290917634964, -0.049539901316165924, -0.00160975381731987, -0.1866309493780136, 0.32916203141212463, -0.31304213404655457, 0.1827821433544159, 0.4592876434326172, -0.0043394239619374275, 0.17303550243377686, -0.18945448100566864, 0.11907447874546051, -0.16306734085083008, 0.6306008100509644, 0.38055849075317383, 0.06648571044206619, -0.42184579372406006, -0.2910125255584717, -0.7276147603988647, 0.1564405858516693, -0.08258739113807678, 0.06108826398849487, 0.06190064921975136, -0.11401557177305222, -0.03830394893884659, 0.14759346842765808, -0.028524979948997498, 0.07449541240930557, 0.03714319318532944, -0.07219329476356506, -0.259231299161911, -0.08016768097877502, -0.19655390083789825, -0.07018003612756729, 0.020468074828386307, -0.40529125928878784, 0.21774889528751373, -0.5241701006889343, 0.13813912868499756, -0.1299019604921341, 0.056943513453006744, 0.05066261813044548, 0.10105589032173157, 0.33954402804374695, 0.020069947466254234, 0.25914525985717773, 0.02230672910809517, -0.07052882015705109, -0.26630327105522156, -0.3305782973766327, -0.23197788000106812, 0.28409817814826965, 0.1264582723379135, 0.39187711477279663, -0.2800571918487549, -0.09211517870426178, -0.4638872444629669, 0.15445922315120697, -0.03759845346212387, 0.008761944249272346, -0.04988563805818558, 0.07069391757249832, 0.0008186660706996918, -0.03337738662958145, 0.22799624502658844, 0.16862887144088745, 0.05793124437332153, 0.09514039754867554, -0.42582762241363525, -0.4247075319290161, 0.503021240234375, -0.27246585488319397, -0.1122208833694458, -0.014201249927282333, -0.11984045803546906, 0.12482395768165588, -0.09381071478128433, -0.6387228965759277, 0.36852672696113586, 0.3740670084953308, -0.03118465095758438, -0.218446284532547, 0.2790353000164032, 0.07662388682365417, 0.08817872405052185, 0.005537096410989761, 0.11607033014297485, 0.02056768536567688, -0.10499044507741928, -0.07786989957094193, -0.15694883465766907 ]
https://github.com/huggingface/datasets/issues/3960
Load local dataset error
> You can pass `ignore_verifications=True` in `load_dataset` to make it fast (to skip checksum verification). I'll add this tip to the docs. Thanks!It's worked well.
When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this: ``` >>> from datasets import load_dataset >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']} >>> ds = load_dataset('nateraw/image-folder', data_files=data_files, cache_dir='./', task='image-classification') [] https://huggingface.co/datasets/nateraw/image-folder/resolve/main/ /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1671, in load_dataset **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1521, in load_dataset_builder **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 1031, in __init__ super().__init__(*args, **kwargs) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 255, in __init__ sanitize_patterns(data_files), base_path=base_path, use_auth_token=use_auth_token File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 584, in from_local_or_remote if not isinstance(patterns_for_key, DataFilesList) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 546, in from_local_or_remote data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 196, in resolve_patterns_locally_or_by_urls for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions): File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 146, in _resolve_single_pattern_locally raise FileNotFoundError(error_msg) FileNotFoundError: Unable to find '/ssd/datasets/imagenet/pytorch/train' at /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main ``` I need some help to solve the problem, thanks!
25
Load local dataset error When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this: ``` >>> from datasets import load_dataset >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']} >>> ds = load_dataset('nateraw/image-folder', data_files=data_files, cache_dir='./', task='image-classification') [] https://huggingface.co/datasets/nateraw/image-folder/resolve/main/ /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1671, in load_dataset **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1521, in load_dataset_builder **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 1031, in __init__ super().__init__(*args, **kwargs) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 255, in __init__ sanitize_patterns(data_files), base_path=base_path, use_auth_token=use_auth_token File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 584, in from_local_or_remote if not isinstance(patterns_for_key, DataFilesList) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 546, in from_local_or_remote data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 196, in resolve_patterns_locally_or_by_urls for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions): File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 146, in _resolve_single_pattern_locally raise FileNotFoundError(error_msg) FileNotFoundError: Unable to find '/ssd/datasets/imagenet/pytorch/train' at /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main ``` I need some help to solve the problem, thanks! > You can pass `ignore_verifications=True` in `load_dataset` to make it fast (to skip checksum verification). I'll add this tip to the docs. Thanks!It's worked well.
[ -0.3380225598812103, -0.11414039134979248, -0.02119709923863411, 0.23908700048923492, 0.4253336787223816, -0.022540971636772156, 0.1771000474691391, 0.35765692591667175, 0.0669669359922409, 0.18955588340759277, -0.13147702813148499, 0.15659363567829132, -0.09680266678333282, 0.12018837779760361, -0.09796764701604843, -0.2962185740470886, -0.057913295924663544, 0.19713705778121948, -0.11787441372871399, -0.15113408863544464, -0.2569158673286438, 0.17876814305782318, -0.14001262187957764, 0.18472172319889069, -0.2956005036830902, 0.08315109461545944, -0.10548960417509079, 0.2142816185951233, -0.09651816636323929, -0.44826769828796387, 0.4221608638763428, -0.08951066434383392, 0.43298470973968506, 0.49662476778030396, -0.00010231576015939936, 0.17225125432014465, 0.4993551969528198, -0.026760341599583626, -0.12512987852096558, -0.4663240909576416, -0.13830861449241638, -0.1904052495956421, 0.30750060081481934, -0.11856693029403687, -0.20226329565048218, -0.41114482283592224, 0.04977629333734512, -0.19129326939582825, 0.4004446864128113, 0.3993334174156189, 0.3264051377773285, 0.24858808517456055, 0.02995295450091362, -0.3245801627635956, -0.16354286670684814, 0.1704920530319214, -0.14727939665317535, 0.35055941343307495, 0.2566419243812561, -0.15389849245548248, 0.14031639695167542, 0.3131348490715027, -0.05514651536941528, 0.19363820552825928, 0.31826603412628174, -0.10830292850732803, -0.06152419000864029, -0.14879266917705536, 0.36444002389907837, 0.09286418557167053, 0.5512081384658813, -0.14459535479545593, -0.3069010078907013, 0.04212547838687897, 0.11447407305240631, -0.4257180392742157, 0.23980969190597534, 0.15403985977172852, -0.14037206768989563, 0.2098691761493683, -0.2887398600578308, -0.06762006878852844, -0.23946979641914368, 0.3054100275039673, -0.11654792726039886, 0.13632537424564362, -0.16426149010658264, 0.11487582325935364, 0.23021171987056732, -0.08888613432645798, 0.16798360645771027, 0.11123327165842056, 0.1810368448495865, 0.25925835967063904, -0.3870075047016144, 0.2529418170452118, -0.0058413222432136536, -0.07459542900323868, -0.03287314251065254, -0.1497270166873932, -0.05055605620145798, -0.1193770095705986, -0.10948891192674637, 0.29077351093292236, 0.12415573000907898, 0.2429407387971878, 0.218616783618927, 0.38578009605407715, 0.03540588170289993, 0.07243882864713669, -0.16849805414676666, -0.05205263942480087, -0.3046109974384308, -0.3428439497947693, 0.17245446145534515, 0.033861756324768066, 0.21834272146224976, -0.24777425825595856, -0.18750596046447754, 0.052968356758356094, -0.02646087482571602, 0.13105778396129608, 0.004844749346375465, 0.3974284827709198, -0.07200191915035248, 0.10784132778644562, 0.11357071995735168, 0.21057263016700745, -0.21001587808132172, 0.08049972355365753, -0.3218248784542084, 0.0064728353172540665, -0.14834703505039215, -0.05037219822406769, 0.14987176656723022, -0.3902207016944885, 0.34616878628730774, -0.16460327804088593, -0.10272134840488434, 0.0681314766407013, 0.10596037656068802, -0.1619601845741272, -0.005134068429470062, 0.510623574256897, -0.16753126680850983, 0.10222212225198746, 0.24652929604053497, 0.027873612940311432, -0.09049687534570694, 0.13056135177612305, -0.2611618936061859, -0.5131599307060242, -0.3502133786678314, 0.2658132016658783, 0.035602815449237823, -0.074461929500103, -0.25543129444122314, 0.015602771192789078, 0.09142133593559265, 0.20827782154083252, -0.213351309299469, -0.25294363498687744, -0.30555102229118347, -0.03276238217949867, 0.28022804856300354, 0.32742542028427124, -0.3259853720664978, 0.0016578510403633118, -0.10044682770967484, -0.2188025414943695, 0.04140247032046318, 0.2085925042629242, -0.3016658425331116, 0.20887944102287292, -0.10445161908864975, 0.10960869491100311, 0.15639425814151764, -0.4672550559043884, -0.26182863116264343, 0.2249239832162857, 0.008027821779251099, -0.2027759552001953, -0.13782432675361633, -0.01215244922786951, -0.05892226845026016, 0.1817512810230255, 0.09810985624790192, 0.302140474319458, -0.061094529926776886, 0.04818553477525711, -0.2115163505077362, -0.1976688951253891, -0.10296294093132019, 0.34577247500419617, 0.042271167039871216, 0.1390027403831482, 0.20002835988998413, -0.2314840853214264, 0.06719609349966049, -0.13346458971500397, -0.08547922223806381, 0.2596312165260315, 0.17079654335975647, 0.06811622530221939, 0.03154334798455238, -0.0460764579474926, -0.5464988350868225, 0.23851647973060608, 0.1520851105451584, 0.2741982936859131, -0.26503461599349976, -0.05128460377454758, -0.4634176194667816, 0.07763301581144333, -0.3745076656341553, -0.08321912586688995, 0.1788611114025116, 0.06784448027610779, 0.06694072484970093, 0.14444930851459503, -0.19192156195640564, 0.28882864117622375, -0.30694717168807983, 0.040109943598508835, -0.14830593764781952, 0.1855936497449875, -0.16672766208648682, -0.13525457680225372, 0.17294912040233612, -0.10387945920228958, 0.05825873836874962, -0.2966475784778595, -0.2748551666736603, 0.482504278421402, 0.0012197252362966537, 0.22377781569957733, 0.0026744790375232697, 0.05394923686981201, 0.128635436296463, -0.24248813092708588, -0.04044700413942337, -0.05028717592358589, 0.04338045418262482, 0.08402714878320694, -0.012748174369335175, 0.13947466015815735, 0.07920339703559875, 0.10230161249637604, 0.08954295516014099, 0.05033072829246521, 0.3731084167957306, -0.0630996897816658, 0.05255511403083801, -0.20717453956604004, 0.16401083767414093, 0.04103370010852814, 0.2085026502609253, 0.02190074510872364, -0.25077342987060547, -0.2435828447341919, 0.2033373862504959, 0.027566000819206238, -0.010000936686992645, 0.23714932799339294, -0.04521438479423523, 0.20262503623962402, 0.2026035636663437, 0.30365419387817383, 0.34625327587127686, 0.1128004640340805, -0.23874402046203613, 0.2949952483177185, -0.16165296733379364, -0.05598931759595871, 0.0445127859711647, -0.08291308581829071, 0.36694782972335815, 0.2743317186832428, 0.06939683109521866, 0.07408344000577927, -0.4737311005592346, -0.07849930226802826, -0.023685645312070847, 0.49042055010795593, -0.12455886602401733, 0.11724566668272018, -0.2654000222682953, -0.27749472856521606, -0.24197274446487427, -0.0375765897333622, -0.13775452971458435, -0.13874204456806183, -0.1552966833114624, 0.06669650226831436, -0.013973984867334366, 0.28767064213752747, -0.23127397894859314, 0.06974807381629944, 0.12428683042526245, -0.22045646607875824, -0.13288213312625885, -0.21127155423164368, -0.3053152859210968, 0.08753889799118042, 0.36746513843536377, 0.0579071044921875, 0.36747631430625916, -0.34109267592430115, 0.008232465013861656, -0.016508130356669426, -0.32010841369628906, 0.08440914750099182, -0.10939028859138489, 0.15591013431549072, 0.07050040364265442, 0.2237522006034851, -0.17007602751255035, -0.22641076147556305, 0.6276733875274658, -0.31368327140808105, -0.13289116322994232, 0.04295013099908829, -0.03835228458046913, -0.20572130382061005, -0.18207359313964844, -0.5400710105895996, -0.3777378797531128, -0.25732916593551636, 0.08137667179107666, 0.21095122396945953, 0.2434428185224533, 0.4190809726715088, 0.3446767330169678, 0.14394712448120117, -0.10571446269750595, -0.12071855366230011, -0.17632552981376648, -0.39496317505836487, 0.10054072737693787, -0.24910545349121094, -0.4323083162307739, -0.06860413402318954, 0.06229041516780853, 0.5364882349967957, 0.018618278205394745, -0.349542498588562, -0.27641555666923523, -0.16683246195316315, 0.12956589460372925, -0.1216556578874588, 0.07080888748168945, 0.320684552192688, -0.09174443781375885, -0.1171271800994873, -0.08881787955760956, -0.10106964409351349, 0.16046203672885895, -0.03867430239915848, -0.06276731938123703, 0.092669278383255, 0.3357469439506531, -0.09034579247236252, 0.5322237014770508, -0.012113655917346478, -0.33631381392478943, 0.45579108595848083, -0.13204851746559143, 0.2421812266111374, -0.354227751493454, -0.5656894445419312, 0.0709298700094223, 0.15882505476474762, 0.04661758244037628, -0.08920055627822876, 0.04333309829235077, -0.10229554027318954, -0.34857964515686035, -0.08692129701375961, -0.34945473074913025, 0.03534531965851784, 0.07706817239522934, 0.09826979786157608, 0.33666443824768066, -0.06080864369869232, -0.09079179167747498, -0.14997278153896332, 0.000045872293412685394, 0.15562571585178375, 0.38728421926498413, 0.05137376859784126, 0.13470476865768433, -0.29129907488822937, 0.12881061434745789, -0.35370561480522156, 0.29205021262168884, 0.05042555555701256, 0.4000323414802551, -0.066447913646698, -0.006877176463603973, 0.13976165652275085, -0.012654073536396027, 0.3901388645172119, -0.16334965825080872, -0.079051673412323, 0.1319674402475357, -0.1838368922472, -0.349208265542984, -0.06981456279754639, 0.05873975530266762, 0.000644835177809, -0.07742422819137573, 0.6436384320259094, 0.03310084342956543, -0.37390151619911194, 0.19397877156734467, 0.12734557688236237, -0.19824081659317017, -0.3113648295402527, -0.284726083278656, -0.3292039632797241, -0.3079221248626709, -0.16732779145240784, -0.033028494566679, 0.35186389088630676, 0.21911092102527618, 0.019607216119766235, -0.12989062070846558, -0.0052580684423446655, -0.1280585676431656, 0.18281769752502441, 0.06811627745628357, -0.007876637391746044, 0.1463286429643631, 0.20760872960090637, 0.15992528200149536, 0.33690449595451355, 0.5942881107330322, -0.2568458616733551, -0.5002080202102661, -0.06951483339071274, 0.05150077864527702, 0.21410790085792542, -0.029065564274787903, -0.14194293320178986, -0.23852163553237915, 0.03115546703338623, 0.09311976283788681, -0.24549323320388794, 0.28624042868614197, 0.3770497143268585, -0.03550153225660324, 0.028673050925135612, -0.3413775563240051, 0.4341711699962616, 0.09848921000957489, 0.04441358149051666, 0.43659552931785583, -0.03936414420604706, -0.13957591354846954, 0.14746983349323273, 0.14552487432956696, 0.5746572017669678, -0.38969022035598755, -0.07654973864555359, 0.2728121280670166, 0.044419899582862854, 0.2513248324394226, 0.2226637452840805, 0.12712141871452332, -0.34635719656944275, -0.20682381093502045, 0.007464313879609108, -0.05929406359791756, 0.3179739713668823, 0.03137694299221039, 0.0469740591943264, 0.17335806787014008, -0.05658738315105438, 0.31335392594337463, 0.027560928836464882, 0.3283928334712982, -0.10479135066270828, -0.23554763197898865, -0.427683562040329, 0.25314876437187195, -0.10588222742080688, 0.3252013027667999, -0.05211815983057022, -0.00427372008562088, -0.024289382621645927, -0.15166816115379333, -0.0210350900888443, 0.1194072738289833, -0.39667922258377075, 0.19174864888191223, 0.22798430919647217, -0.15495231747627258, -0.08643054962158203, 0.3514218330383301, 0.25439509749412537, -0.01261206716299057, -0.19757963716983795, 0.15964531898498535, -0.18784859776496887, -0.16745057702064514, -0.13289768993854523, -0.058627042919397354, 0.31439298391342163, -0.18156930804252625, -0.1954331398010254, 0.020109958946704865, 0.0074791135266423225, -0.20716486871242523, 0.16283255815505981, -0.15478040277957916, 0.26526501774787903, -0.03326159715652466, -0.2878689765930176, -0.1409372240304947, 0.07929554581642151, 0.04781198874115944, 0.2261352837085724, -0.05483651161193848, 0.09209223091602325, -0.06704535335302353, -0.05019013211131096, -0.2933439612388611, 0.018687620759010315, 0.4964331090450287, 0.07490546256303787, -0.1944495141506195, 0.4649342894554138, 0.11852684617042542, 0.0903027355670929, -0.25607725977897644, 0.04134501516819, 0.3066210150718689, -0.4442827105522156, 0.03962601721286774, 0.16730277240276337, 0.1089712381362915, 0.13673296570777893, 0.3644803464412689, 0.14285972714424133, -0.3083033859729767, 0.05905267968773842, -0.3313955068588257, -0.4534527659416199, 0.03118475154042244, -0.2731125056743622, 0.19100545346736908, -0.007649824023246765, 0.316025048494339, 0.10215315967798233, -0.059133633971214294, -0.3865189254283905, 0.06730898469686508, -0.11601560562849045, 0.04892309010028839, 0.3310287892818451, 0.07351627945899963, 0.20329038798809052, -0.08912275731563568, 0.19816268980503082, 0.05383710563182831, -0.24688023328781128, -0.33027732372283936, -0.06848148256540298, 0.06125020235776901, 0.17463982105255127, -0.2562597095966339, -0.0762539878487587, -0.23496145009994507, -0.25298258662223816, 0.011496054008603096, 0.1098116785287857, 0.17288243770599365, -0.23468570411205292, 0.3075316250324249, 0.04718074947595596, 0.08588943630456924, 0.2790689468383789, 0.03733166679739952, -0.1641242653131485, 0.17475803196430206, 0.012561382725834846, -0.009649034589529037, 0.0996067225933075, -0.09315413981676102, -0.08697205036878586, -0.044731058180332184, -0.2209000140428543, 0.0441732220351696, 0.19235441088676453, -0.2863117456436157, 0.08549515902996063, 0.0788564458489418, 0.4498380422592163, 0.10560274124145508, -0.2949090003967285, -0.04081284999847412, 0.38627609610557556, 0.31741559505462646, -0.318501740694046, -0.16133151948451996, 0.1336793750524521, 0.12272941321134567, -0.12821036577224731, 0.018163256347179413, 0.23639613389968872, -0.06752239167690277, -0.045181289315223694, 0.10256827622652054, 0.4315914809703827, -0.24551256000995636, 0.21763163805007935, 0.4695020318031311, 0.023508626967668533, 0.05169401317834854, 0.13956932723522186, 0.1381320357322693, 0.1342354416847229, 0.4555004835128784, -0.32757046818733215, 0.2404288947582245, -0.15707966685295105, 0.24623768031597137, 0.04632975161075592, -0.5383799076080322, 0.01993231102824211, 0.010830819606781006, -0.21008145809173584, -0.008019037544727325, -0.26295700669288635, 0.42185816168785095, -0.027981415390968323, -0.21092672646045685, -0.1749640554189682, 0.24520128965377808, -0.11668109148740768, -0.09916523098945618, -0.36625704169273376, -0.09198091179132462, -0.05865698307752609, 0.018079087138175964, 0.005513131618499756, -0.043700605630874634, 0.37982678413391113, 0.012641392648220062, -0.2145300954580307, -0.2277994602918625, -0.131364107131958, 0.2539505660533905, 0.025238752365112305, -0.08124087005853653, 0.42475953698158264, 0.2110418677330017, -0.058169856667518616, -0.02591298148036003, 0.4645785689353943, 0.4278830885887146, 0.5090795755386353, 0.1331222653388977, 0.09946649521589279, -0.14347749948501587, -0.00653168186545372, -0.021268006414175034, 0.22343407571315765, -0.10366813838481903, 0.0454365536570549, 0.26472538709640503, 0.23199497163295746, -0.1170492097735405, 0.24234098196029663, -0.13343778252601624, 0.3304159343242645, -0.13188022375106812, 0.09457290917634964, -0.049539901316165924, -0.00160975381731987, -0.1866309493780136, 0.32916203141212463, -0.31304213404655457, 0.1827821433544159, 0.4592876434326172, -0.0043394239619374275, 0.17303550243377686, -0.18945448100566864, 0.11907447874546051, -0.16306734085083008, 0.6306008100509644, 0.38055849075317383, 0.06648571044206619, -0.42184579372406006, -0.2910125255584717, -0.7276147603988647, 0.1564405858516693, -0.08258739113807678, 0.06108826398849487, 0.06190064921975136, -0.11401557177305222, -0.03830394893884659, 0.14759346842765808, -0.028524979948997498, 0.07449541240930557, 0.03714319318532944, -0.07219329476356506, -0.259231299161911, -0.08016768097877502, -0.19655390083789825, -0.07018003612756729, 0.020468074828386307, -0.40529125928878784, 0.21774889528751373, -0.5241701006889343, 0.13813912868499756, -0.1299019604921341, 0.056943513453006744, 0.05066261813044548, 0.10105589032173157, 0.33954402804374695, 0.020069947466254234, 0.25914525985717773, 0.02230672910809517, -0.07052882015705109, -0.26630327105522156, -0.3305782973766327, -0.23197788000106812, 0.28409817814826965, 0.1264582723379135, 0.39187711477279663, -0.2800571918487549, -0.09211517870426178, -0.4638872444629669, 0.15445922315120697, -0.03759845346212387, 0.008761944249272346, -0.04988563805818558, 0.07069391757249832, 0.0008186660706996918, -0.03337738662958145, 0.22799624502658844, 0.16862887144088745, 0.05793124437332153, 0.09514039754867554, -0.42582762241363525, -0.4247075319290161, 0.503021240234375, -0.27246585488319397, -0.1122208833694458, -0.014201249927282333, -0.11984045803546906, 0.12482395768165588, -0.09381071478128433, -0.6387228965759277, 0.36852672696113586, 0.3740670084953308, -0.03118465095758438, -0.218446284532547, 0.2790353000164032, 0.07662388682365417, 0.08817872405052185, 0.005537096410989761, 0.11607033014297485, 0.02056768536567688, -0.10499044507741928, -0.07786989957094193, -0.15694883465766907 ]
https://github.com/huggingface/datasets/issues/3960
Load local dataset error
> You can pass `ignore_verifications=True` in `load_dataset` to make it fast (to skip checksum verification). I'll add this tip to the docs. I find current `load_dataset` loads ImageNet still slowly, even add `ignore_verifications=True`. First loading, it costs about 20 min in my servers. ``` real 19m23.023s user 21m18.360s sys 7m59.080s ``` Second reusing, it costs about 15 min in my servers. ``` real 15m20.735s user 12m22.979s sys 5m46.960s ``` I think it's too much slow, is there other method to make it faster?
When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this: ``` >>> from datasets import load_dataset >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']} >>> ds = load_dataset('nateraw/image-folder', data_files=data_files, cache_dir='./', task='image-classification') [] https://huggingface.co/datasets/nateraw/image-folder/resolve/main/ /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1671, in load_dataset **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1521, in load_dataset_builder **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 1031, in __init__ super().__init__(*args, **kwargs) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 255, in __init__ sanitize_patterns(data_files), base_path=base_path, use_auth_token=use_auth_token File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 584, in from_local_or_remote if not isinstance(patterns_for_key, DataFilesList) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 546, in from_local_or_remote data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 196, in resolve_patterns_locally_or_by_urls for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions): File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 146, in _resolve_single_pattern_locally raise FileNotFoundError(error_msg) FileNotFoundError: Unable to find '/ssd/datasets/imagenet/pytorch/train' at /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main ``` I need some help to solve the problem, thanks!
83
Load local dataset error When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this: ``` >>> from datasets import load_dataset >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']} >>> ds = load_dataset('nateraw/image-folder', data_files=data_files, cache_dir='./', task='image-classification') [] https://huggingface.co/datasets/nateraw/image-folder/resolve/main/ /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1671, in load_dataset **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1521, in load_dataset_builder **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 1031, in __init__ super().__init__(*args, **kwargs) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 255, in __init__ sanitize_patterns(data_files), base_path=base_path, use_auth_token=use_auth_token File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 584, in from_local_or_remote if not isinstance(patterns_for_key, DataFilesList) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 546, in from_local_or_remote data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 196, in resolve_patterns_locally_or_by_urls for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions): File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 146, in _resolve_single_pattern_locally raise FileNotFoundError(error_msg) FileNotFoundError: Unable to find '/ssd/datasets/imagenet/pytorch/train' at /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main ``` I need some help to solve the problem, thanks! > You can pass `ignore_verifications=True` in `load_dataset` to make it fast (to skip checksum verification). I'll add this tip to the docs. I find current `load_dataset` loads ImageNet still slowly, even add `ignore_verifications=True`. First loading, it costs about 20 min in my servers. ``` real 19m23.023s user 21m18.360s sys 7m59.080s ``` Second reusing, it costs about 15 min in my servers. ``` real 15m20.735s user 12m22.979s sys 5m46.960s ``` I think it's too much slow, is there other method to make it faster?
[ -0.3380225598812103, -0.11414039134979248, -0.02119709923863411, 0.23908700048923492, 0.4253336787223816, -0.022540971636772156, 0.1771000474691391, 0.35765692591667175, 0.0669669359922409, 0.18955588340759277, -0.13147702813148499, 0.15659363567829132, -0.09680266678333282, 0.12018837779760361, -0.09796764701604843, -0.2962185740470886, -0.057913295924663544, 0.19713705778121948, -0.11787441372871399, -0.15113408863544464, -0.2569158673286438, 0.17876814305782318, -0.14001262187957764, 0.18472172319889069, -0.2956005036830902, 0.08315109461545944, -0.10548960417509079, 0.2142816185951233, -0.09651816636323929, -0.44826769828796387, 0.4221608638763428, -0.08951066434383392, 0.43298470973968506, 0.49662476778030396, -0.00010231576015939936, 0.17225125432014465, 0.4993551969528198, -0.026760341599583626, -0.12512987852096558, -0.4663240909576416, -0.13830861449241638, -0.1904052495956421, 0.30750060081481934, -0.11856693029403687, -0.20226329565048218, -0.41114482283592224, 0.04977629333734512, -0.19129326939582825, 0.4004446864128113, 0.3993334174156189, 0.3264051377773285, 0.24858808517456055, 0.02995295450091362, -0.3245801627635956, -0.16354286670684814, 0.1704920530319214, -0.14727939665317535, 0.35055941343307495, 0.2566419243812561, -0.15389849245548248, 0.14031639695167542, 0.3131348490715027, -0.05514651536941528, 0.19363820552825928, 0.31826603412628174, -0.10830292850732803, -0.06152419000864029, -0.14879266917705536, 0.36444002389907837, 0.09286418557167053, 0.5512081384658813, -0.14459535479545593, -0.3069010078907013, 0.04212547838687897, 0.11447407305240631, -0.4257180392742157, 0.23980969190597534, 0.15403985977172852, -0.14037206768989563, 0.2098691761493683, -0.2887398600578308, -0.06762006878852844, -0.23946979641914368, 0.3054100275039673, -0.11654792726039886, 0.13632537424564362, -0.16426149010658264, 0.11487582325935364, 0.23021171987056732, -0.08888613432645798, 0.16798360645771027, 0.11123327165842056, 0.1810368448495865, 0.25925835967063904, -0.3870075047016144, 0.2529418170452118, -0.0058413222432136536, -0.07459542900323868, -0.03287314251065254, -0.1497270166873932, -0.05055605620145798, -0.1193770095705986, -0.10948891192674637, 0.29077351093292236, 0.12415573000907898, 0.2429407387971878, 0.218616783618927, 0.38578009605407715, 0.03540588170289993, 0.07243882864713669, -0.16849805414676666, -0.05205263942480087, -0.3046109974384308, -0.3428439497947693, 0.17245446145534515, 0.033861756324768066, 0.21834272146224976, -0.24777425825595856, -0.18750596046447754, 0.052968356758356094, -0.02646087482571602, 0.13105778396129608, 0.004844749346375465, 0.3974284827709198, -0.07200191915035248, 0.10784132778644562, 0.11357071995735168, 0.21057263016700745, -0.21001587808132172, 0.08049972355365753, -0.3218248784542084, 0.0064728353172540665, -0.14834703505039215, -0.05037219822406769, 0.14987176656723022, -0.3902207016944885, 0.34616878628730774, -0.16460327804088593, -0.10272134840488434, 0.0681314766407013, 0.10596037656068802, -0.1619601845741272, -0.005134068429470062, 0.510623574256897, -0.16753126680850983, 0.10222212225198746, 0.24652929604053497, 0.027873612940311432, -0.09049687534570694, 0.13056135177612305, -0.2611618936061859, -0.5131599307060242, -0.3502133786678314, 0.2658132016658783, 0.035602815449237823, -0.074461929500103, -0.25543129444122314, 0.015602771192789078, 0.09142133593559265, 0.20827782154083252, -0.213351309299469, -0.25294363498687744, -0.30555102229118347, -0.03276238217949867, 0.28022804856300354, 0.32742542028427124, -0.3259853720664978, 0.0016578510403633118, -0.10044682770967484, -0.2188025414943695, 0.04140247032046318, 0.2085925042629242, -0.3016658425331116, 0.20887944102287292, -0.10445161908864975, 0.10960869491100311, 0.15639425814151764, -0.4672550559043884, -0.26182863116264343, 0.2249239832162857, 0.008027821779251099, -0.2027759552001953, -0.13782432675361633, -0.01215244922786951, -0.05892226845026016, 0.1817512810230255, 0.09810985624790192, 0.302140474319458, -0.061094529926776886, 0.04818553477525711, -0.2115163505077362, -0.1976688951253891, -0.10296294093132019, 0.34577247500419617, 0.042271167039871216, 0.1390027403831482, 0.20002835988998413, -0.2314840853214264, 0.06719609349966049, -0.13346458971500397, -0.08547922223806381, 0.2596312165260315, 0.17079654335975647, 0.06811622530221939, 0.03154334798455238, -0.0460764579474926, -0.5464988350868225, 0.23851647973060608, 0.1520851105451584, 0.2741982936859131, -0.26503461599349976, -0.05128460377454758, -0.4634176194667816, 0.07763301581144333, -0.3745076656341553, -0.08321912586688995, 0.1788611114025116, 0.06784448027610779, 0.06694072484970093, 0.14444930851459503, -0.19192156195640564, 0.28882864117622375, -0.30694717168807983, 0.040109943598508835, -0.14830593764781952, 0.1855936497449875, -0.16672766208648682, -0.13525457680225372, 0.17294912040233612, -0.10387945920228958, 0.05825873836874962, -0.2966475784778595, -0.2748551666736603, 0.482504278421402, 0.0012197252362966537, 0.22377781569957733, 0.0026744790375232697, 0.05394923686981201, 0.128635436296463, -0.24248813092708588, -0.04044700413942337, -0.05028717592358589, 0.04338045418262482, 0.08402714878320694, -0.012748174369335175, 0.13947466015815735, 0.07920339703559875, 0.10230161249637604, 0.08954295516014099, 0.05033072829246521, 0.3731084167957306, -0.0630996897816658, 0.05255511403083801, -0.20717453956604004, 0.16401083767414093, 0.04103370010852814, 0.2085026502609253, 0.02190074510872364, -0.25077342987060547, -0.2435828447341919, 0.2033373862504959, 0.027566000819206238, -0.010000936686992645, 0.23714932799339294, -0.04521438479423523, 0.20262503623962402, 0.2026035636663437, 0.30365419387817383, 0.34625327587127686, 0.1128004640340805, -0.23874402046203613, 0.2949952483177185, -0.16165296733379364, -0.05598931759595871, 0.0445127859711647, -0.08291308581829071, 0.36694782972335815, 0.2743317186832428, 0.06939683109521866, 0.07408344000577927, -0.4737311005592346, -0.07849930226802826, -0.023685645312070847, 0.49042055010795593, -0.12455886602401733, 0.11724566668272018, -0.2654000222682953, -0.27749472856521606, -0.24197274446487427, -0.0375765897333622, -0.13775452971458435, -0.13874204456806183, -0.1552966833114624, 0.06669650226831436, -0.013973984867334366, 0.28767064213752747, -0.23127397894859314, 0.06974807381629944, 0.12428683042526245, -0.22045646607875824, -0.13288213312625885, -0.21127155423164368, -0.3053152859210968, 0.08753889799118042, 0.36746513843536377, 0.0579071044921875, 0.36747631430625916, -0.34109267592430115, 0.008232465013861656, -0.016508130356669426, -0.32010841369628906, 0.08440914750099182, -0.10939028859138489, 0.15591013431549072, 0.07050040364265442, 0.2237522006034851, -0.17007602751255035, -0.22641076147556305, 0.6276733875274658, -0.31368327140808105, -0.13289116322994232, 0.04295013099908829, -0.03835228458046913, -0.20572130382061005, -0.18207359313964844, -0.5400710105895996, -0.3777378797531128, -0.25732916593551636, 0.08137667179107666, 0.21095122396945953, 0.2434428185224533, 0.4190809726715088, 0.3446767330169678, 0.14394712448120117, -0.10571446269750595, -0.12071855366230011, -0.17632552981376648, -0.39496317505836487, 0.10054072737693787, -0.24910545349121094, -0.4323083162307739, -0.06860413402318954, 0.06229041516780853, 0.5364882349967957, 0.018618278205394745, -0.349542498588562, -0.27641555666923523, -0.16683246195316315, 0.12956589460372925, -0.1216556578874588, 0.07080888748168945, 0.320684552192688, -0.09174443781375885, -0.1171271800994873, -0.08881787955760956, -0.10106964409351349, 0.16046203672885895, -0.03867430239915848, -0.06276731938123703, 0.092669278383255, 0.3357469439506531, -0.09034579247236252, 0.5322237014770508, -0.012113655917346478, -0.33631381392478943, 0.45579108595848083, -0.13204851746559143, 0.2421812266111374, -0.354227751493454, -0.5656894445419312, 0.0709298700094223, 0.15882505476474762, 0.04661758244037628, -0.08920055627822876, 0.04333309829235077, -0.10229554027318954, -0.34857964515686035, -0.08692129701375961, -0.34945473074913025, 0.03534531965851784, 0.07706817239522934, 0.09826979786157608, 0.33666443824768066, -0.06080864369869232, -0.09079179167747498, -0.14997278153896332, 0.000045872293412685394, 0.15562571585178375, 0.38728421926498413, 0.05137376859784126, 0.13470476865768433, -0.29129907488822937, 0.12881061434745789, -0.35370561480522156, 0.29205021262168884, 0.05042555555701256, 0.4000323414802551, -0.066447913646698, -0.006877176463603973, 0.13976165652275085, -0.012654073536396027, 0.3901388645172119, -0.16334965825080872, -0.079051673412323, 0.1319674402475357, -0.1838368922472, -0.349208265542984, -0.06981456279754639, 0.05873975530266762, 0.000644835177809, -0.07742422819137573, 0.6436384320259094, 0.03310084342956543, -0.37390151619911194, 0.19397877156734467, 0.12734557688236237, -0.19824081659317017, -0.3113648295402527, -0.284726083278656, -0.3292039632797241, -0.3079221248626709, -0.16732779145240784, -0.033028494566679, 0.35186389088630676, 0.21911092102527618, 0.019607216119766235, -0.12989062070846558, -0.0052580684423446655, -0.1280585676431656, 0.18281769752502441, 0.06811627745628357, -0.007876637391746044, 0.1463286429643631, 0.20760872960090637, 0.15992528200149536, 0.33690449595451355, 0.5942881107330322, -0.2568458616733551, -0.5002080202102661, -0.06951483339071274, 0.05150077864527702, 0.21410790085792542, -0.029065564274787903, -0.14194293320178986, -0.23852163553237915, 0.03115546703338623, 0.09311976283788681, -0.24549323320388794, 0.28624042868614197, 0.3770497143268585, -0.03550153225660324, 0.028673050925135612, -0.3413775563240051, 0.4341711699962616, 0.09848921000957489, 0.04441358149051666, 0.43659552931785583, -0.03936414420604706, -0.13957591354846954, 0.14746983349323273, 0.14552487432956696, 0.5746572017669678, -0.38969022035598755, -0.07654973864555359, 0.2728121280670166, 0.044419899582862854, 0.2513248324394226, 0.2226637452840805, 0.12712141871452332, -0.34635719656944275, -0.20682381093502045, 0.007464313879609108, -0.05929406359791756, 0.3179739713668823, 0.03137694299221039, 0.0469740591943264, 0.17335806787014008, -0.05658738315105438, 0.31335392594337463, 0.027560928836464882, 0.3283928334712982, -0.10479135066270828, -0.23554763197898865, -0.427683562040329, 0.25314876437187195, -0.10588222742080688, 0.3252013027667999, -0.05211815983057022, -0.00427372008562088, -0.024289382621645927, -0.15166816115379333, -0.0210350900888443, 0.1194072738289833, -0.39667922258377075, 0.19174864888191223, 0.22798430919647217, -0.15495231747627258, -0.08643054962158203, 0.3514218330383301, 0.25439509749412537, -0.01261206716299057, -0.19757963716983795, 0.15964531898498535, -0.18784859776496887, -0.16745057702064514, -0.13289768993854523, -0.058627042919397354, 0.31439298391342163, -0.18156930804252625, -0.1954331398010254, 0.020109958946704865, 0.0074791135266423225, -0.20716486871242523, 0.16283255815505981, -0.15478040277957916, 0.26526501774787903, -0.03326159715652466, -0.2878689765930176, -0.1409372240304947, 0.07929554581642151, 0.04781198874115944, 0.2261352837085724, -0.05483651161193848, 0.09209223091602325, -0.06704535335302353, -0.05019013211131096, -0.2933439612388611, 0.018687620759010315, 0.4964331090450287, 0.07490546256303787, -0.1944495141506195, 0.4649342894554138, 0.11852684617042542, 0.0903027355670929, -0.25607725977897644, 0.04134501516819, 0.3066210150718689, -0.4442827105522156, 0.03962601721286774, 0.16730277240276337, 0.1089712381362915, 0.13673296570777893, 0.3644803464412689, 0.14285972714424133, -0.3083033859729767, 0.05905267968773842, -0.3313955068588257, -0.4534527659416199, 0.03118475154042244, -0.2731125056743622, 0.19100545346736908, -0.007649824023246765, 0.316025048494339, 0.10215315967798233, -0.059133633971214294, -0.3865189254283905, 0.06730898469686508, -0.11601560562849045, 0.04892309010028839, 0.3310287892818451, 0.07351627945899963, 0.20329038798809052, -0.08912275731563568, 0.19816268980503082, 0.05383710563182831, -0.24688023328781128, -0.33027732372283936, -0.06848148256540298, 0.06125020235776901, 0.17463982105255127, -0.2562597095966339, -0.0762539878487587, -0.23496145009994507, -0.25298258662223816, 0.011496054008603096, 0.1098116785287857, 0.17288243770599365, -0.23468570411205292, 0.3075316250324249, 0.04718074947595596, 0.08588943630456924, 0.2790689468383789, 0.03733166679739952, -0.1641242653131485, 0.17475803196430206, 0.012561382725834846, -0.009649034589529037, 0.0996067225933075, -0.09315413981676102, -0.08697205036878586, -0.044731058180332184, -0.2209000140428543, 0.0441732220351696, 0.19235441088676453, -0.2863117456436157, 0.08549515902996063, 0.0788564458489418, 0.4498380422592163, 0.10560274124145508, -0.2949090003967285, -0.04081284999847412, 0.38627609610557556, 0.31741559505462646, -0.318501740694046, -0.16133151948451996, 0.1336793750524521, 0.12272941321134567, -0.12821036577224731, 0.018163256347179413, 0.23639613389968872, -0.06752239167690277, -0.045181289315223694, 0.10256827622652054, 0.4315914809703827, -0.24551256000995636, 0.21763163805007935, 0.4695020318031311, 0.023508626967668533, 0.05169401317834854, 0.13956932723522186, 0.1381320357322693, 0.1342354416847229, 0.4555004835128784, -0.32757046818733215, 0.2404288947582245, -0.15707966685295105, 0.24623768031597137, 0.04632975161075592, -0.5383799076080322, 0.01993231102824211, 0.010830819606781006, -0.21008145809173584, -0.008019037544727325, -0.26295700669288635, 0.42185816168785095, -0.027981415390968323, -0.21092672646045685, -0.1749640554189682, 0.24520128965377808, -0.11668109148740768, -0.09916523098945618, -0.36625704169273376, -0.09198091179132462, -0.05865698307752609, 0.018079087138175964, 0.005513131618499756, -0.043700605630874634, 0.37982678413391113, 0.012641392648220062, -0.2145300954580307, -0.2277994602918625, -0.131364107131958, 0.2539505660533905, 0.025238752365112305, -0.08124087005853653, 0.42475953698158264, 0.2110418677330017, -0.058169856667518616, -0.02591298148036003, 0.4645785689353943, 0.4278830885887146, 0.5090795755386353, 0.1331222653388977, 0.09946649521589279, -0.14347749948501587, -0.00653168186545372, -0.021268006414175034, 0.22343407571315765, -0.10366813838481903, 0.0454365536570549, 0.26472538709640503, 0.23199497163295746, -0.1170492097735405, 0.24234098196029663, -0.13343778252601624, 0.3304159343242645, -0.13188022375106812, 0.09457290917634964, -0.049539901316165924, -0.00160975381731987, -0.1866309493780136, 0.32916203141212463, -0.31304213404655457, 0.1827821433544159, 0.4592876434326172, -0.0043394239619374275, 0.17303550243377686, -0.18945448100566864, 0.11907447874546051, -0.16306734085083008, 0.6306008100509644, 0.38055849075317383, 0.06648571044206619, -0.42184579372406006, -0.2910125255584717, -0.7276147603988647, 0.1564405858516693, -0.08258739113807678, 0.06108826398849487, 0.06190064921975136, -0.11401557177305222, -0.03830394893884659, 0.14759346842765808, -0.028524979948997498, 0.07449541240930557, 0.03714319318532944, -0.07219329476356506, -0.259231299161911, -0.08016768097877502, -0.19655390083789825, -0.07018003612756729, 0.020468074828386307, -0.40529125928878784, 0.21774889528751373, -0.5241701006889343, 0.13813912868499756, -0.1299019604921341, 0.056943513453006744, 0.05066261813044548, 0.10105589032173157, 0.33954402804374695, 0.020069947466254234, 0.25914525985717773, 0.02230672910809517, -0.07052882015705109, -0.26630327105522156, -0.3305782973766327, -0.23197788000106812, 0.28409817814826965, 0.1264582723379135, 0.39187711477279663, -0.2800571918487549, -0.09211517870426178, -0.4638872444629669, 0.15445922315120697, -0.03759845346212387, 0.008761944249272346, -0.04988563805818558, 0.07069391757249832, 0.0008186660706996918, -0.03337738662958145, 0.22799624502658844, 0.16862887144088745, 0.05793124437332153, 0.09514039754867554, -0.42582762241363525, -0.4247075319290161, 0.503021240234375, -0.27246585488319397, -0.1122208833694458, -0.014201249927282333, -0.11984045803546906, 0.12482395768165588, -0.09381071478128433, -0.6387228965759277, 0.36852672696113586, 0.3740670084953308, -0.03118465095758438, -0.218446284532547, 0.2790353000164032, 0.07662388682365417, 0.08817872405052185, 0.005537096410989761, 0.11607033014297485, 0.02056768536567688, -0.10499044507741928, -0.07786989957094193, -0.15694883465766907 ]
https://github.com/huggingface/datasets/issues/3960
Load local dataset error
And in transformers the [ViT example](https://github.com/huggingface/transformers/blob/main/examples/pytorch/image-classification/run_image_classification.py), could you make some changes ? Like the `collect_fn` ```python def collate_fn(examples): pixel_values = torch.stack([example["pixel_values"] for example in examples]) labels = torch.tensor([example["labels"] for example in examples]) return {"pixel_values": pixel_values, "labels": labels} ``` How to know the keys of example?
When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this: ``` >>> from datasets import load_dataset >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']} >>> ds = load_dataset('nateraw/image-folder', data_files=data_files, cache_dir='./', task='image-classification') [] https://huggingface.co/datasets/nateraw/image-folder/resolve/main/ /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1671, in load_dataset **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1521, in load_dataset_builder **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 1031, in __init__ super().__init__(*args, **kwargs) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 255, in __init__ sanitize_patterns(data_files), base_path=base_path, use_auth_token=use_auth_token File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 584, in from_local_or_remote if not isinstance(patterns_for_key, DataFilesList) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 546, in from_local_or_remote data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 196, in resolve_patterns_locally_or_by_urls for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions): File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 146, in _resolve_single_pattern_locally raise FileNotFoundError(error_msg) FileNotFoundError: Unable to find '/ssd/datasets/imagenet/pytorch/train' at /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main ``` I need some help to solve the problem, thanks!
45
Load local dataset error When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this: ``` >>> from datasets import load_dataset >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']} >>> ds = load_dataset('nateraw/image-folder', data_files=data_files, cache_dir='./', task='image-classification') [] https://huggingface.co/datasets/nateraw/image-folder/resolve/main/ /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1671, in load_dataset **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1521, in load_dataset_builder **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 1031, in __init__ super().__init__(*args, **kwargs) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 255, in __init__ sanitize_patterns(data_files), base_path=base_path, use_auth_token=use_auth_token File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 584, in from_local_or_remote if not isinstance(patterns_for_key, DataFilesList) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 546, in from_local_or_remote data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 196, in resolve_patterns_locally_or_by_urls for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions): File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 146, in _resolve_single_pattern_locally raise FileNotFoundError(error_msg) FileNotFoundError: Unable to find '/ssd/datasets/imagenet/pytorch/train' at /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main ``` I need some help to solve the problem, thanks! And in transformers the [ViT example](https://github.com/huggingface/transformers/blob/main/examples/pytorch/image-classification/run_image_classification.py), could you make some changes ? Like the `collect_fn` ```python def collate_fn(examples): pixel_values = torch.stack([example["pixel_values"] for example in examples]) labels = torch.tensor([example["labels"] for example in examples]) return {"pixel_values": pixel_values, "labels": labels} ``` How to know the keys of example?
[ -0.3380225598812103, -0.11414039134979248, -0.02119709923863411, 0.23908700048923492, 0.4253336787223816, -0.022540971636772156, 0.1771000474691391, 0.35765692591667175, 0.0669669359922409, 0.18955588340759277, -0.13147702813148499, 0.15659363567829132, -0.09680266678333282, 0.12018837779760361, -0.09796764701604843, -0.2962185740470886, -0.057913295924663544, 0.19713705778121948, -0.11787441372871399, -0.15113408863544464, -0.2569158673286438, 0.17876814305782318, -0.14001262187957764, 0.18472172319889069, -0.2956005036830902, 0.08315109461545944, -0.10548960417509079, 0.2142816185951233, -0.09651816636323929, -0.44826769828796387, 0.4221608638763428, -0.08951066434383392, 0.43298470973968506, 0.49662476778030396, -0.00010231576015939936, 0.17225125432014465, 0.4993551969528198, -0.026760341599583626, -0.12512987852096558, -0.4663240909576416, -0.13830861449241638, -0.1904052495956421, 0.30750060081481934, -0.11856693029403687, -0.20226329565048218, -0.41114482283592224, 0.04977629333734512, -0.19129326939582825, 0.4004446864128113, 0.3993334174156189, 0.3264051377773285, 0.24858808517456055, 0.02995295450091362, -0.3245801627635956, -0.16354286670684814, 0.1704920530319214, -0.14727939665317535, 0.35055941343307495, 0.2566419243812561, -0.15389849245548248, 0.14031639695167542, 0.3131348490715027, -0.05514651536941528, 0.19363820552825928, 0.31826603412628174, -0.10830292850732803, -0.06152419000864029, -0.14879266917705536, 0.36444002389907837, 0.09286418557167053, 0.5512081384658813, -0.14459535479545593, -0.3069010078907013, 0.04212547838687897, 0.11447407305240631, -0.4257180392742157, 0.23980969190597534, 0.15403985977172852, -0.14037206768989563, 0.2098691761493683, -0.2887398600578308, -0.06762006878852844, -0.23946979641914368, 0.3054100275039673, -0.11654792726039886, 0.13632537424564362, -0.16426149010658264, 0.11487582325935364, 0.23021171987056732, -0.08888613432645798, 0.16798360645771027, 0.11123327165842056, 0.1810368448495865, 0.25925835967063904, -0.3870075047016144, 0.2529418170452118, -0.0058413222432136536, -0.07459542900323868, -0.03287314251065254, -0.1497270166873932, -0.05055605620145798, -0.1193770095705986, -0.10948891192674637, 0.29077351093292236, 0.12415573000907898, 0.2429407387971878, 0.218616783618927, 0.38578009605407715, 0.03540588170289993, 0.07243882864713669, -0.16849805414676666, -0.05205263942480087, -0.3046109974384308, -0.3428439497947693, 0.17245446145534515, 0.033861756324768066, 0.21834272146224976, -0.24777425825595856, -0.18750596046447754, 0.052968356758356094, -0.02646087482571602, 0.13105778396129608, 0.004844749346375465, 0.3974284827709198, -0.07200191915035248, 0.10784132778644562, 0.11357071995735168, 0.21057263016700745, -0.21001587808132172, 0.08049972355365753, -0.3218248784542084, 0.0064728353172540665, -0.14834703505039215, -0.05037219822406769, 0.14987176656723022, -0.3902207016944885, 0.34616878628730774, -0.16460327804088593, -0.10272134840488434, 0.0681314766407013, 0.10596037656068802, -0.1619601845741272, -0.005134068429470062, 0.510623574256897, -0.16753126680850983, 0.10222212225198746, 0.24652929604053497, 0.027873612940311432, -0.09049687534570694, 0.13056135177612305, -0.2611618936061859, -0.5131599307060242, -0.3502133786678314, 0.2658132016658783, 0.035602815449237823, -0.074461929500103, -0.25543129444122314, 0.015602771192789078, 0.09142133593559265, 0.20827782154083252, -0.213351309299469, -0.25294363498687744, -0.30555102229118347, -0.03276238217949867, 0.28022804856300354, 0.32742542028427124, -0.3259853720664978, 0.0016578510403633118, -0.10044682770967484, -0.2188025414943695, 0.04140247032046318, 0.2085925042629242, -0.3016658425331116, 0.20887944102287292, -0.10445161908864975, 0.10960869491100311, 0.15639425814151764, -0.4672550559043884, -0.26182863116264343, 0.2249239832162857, 0.008027821779251099, -0.2027759552001953, -0.13782432675361633, -0.01215244922786951, -0.05892226845026016, 0.1817512810230255, 0.09810985624790192, 0.302140474319458, -0.061094529926776886, 0.04818553477525711, -0.2115163505077362, -0.1976688951253891, -0.10296294093132019, 0.34577247500419617, 0.042271167039871216, 0.1390027403831482, 0.20002835988998413, -0.2314840853214264, 0.06719609349966049, -0.13346458971500397, -0.08547922223806381, 0.2596312165260315, 0.17079654335975647, 0.06811622530221939, 0.03154334798455238, -0.0460764579474926, -0.5464988350868225, 0.23851647973060608, 0.1520851105451584, 0.2741982936859131, -0.26503461599349976, -0.05128460377454758, -0.4634176194667816, 0.07763301581144333, -0.3745076656341553, -0.08321912586688995, 0.1788611114025116, 0.06784448027610779, 0.06694072484970093, 0.14444930851459503, -0.19192156195640564, 0.28882864117622375, -0.30694717168807983, 0.040109943598508835, -0.14830593764781952, 0.1855936497449875, -0.16672766208648682, -0.13525457680225372, 0.17294912040233612, -0.10387945920228958, 0.05825873836874962, -0.2966475784778595, -0.2748551666736603, 0.482504278421402, 0.0012197252362966537, 0.22377781569957733, 0.0026744790375232697, 0.05394923686981201, 0.128635436296463, -0.24248813092708588, -0.04044700413942337, -0.05028717592358589, 0.04338045418262482, 0.08402714878320694, -0.012748174369335175, 0.13947466015815735, 0.07920339703559875, 0.10230161249637604, 0.08954295516014099, 0.05033072829246521, 0.3731084167957306, -0.0630996897816658, 0.05255511403083801, -0.20717453956604004, 0.16401083767414093, 0.04103370010852814, 0.2085026502609253, 0.02190074510872364, -0.25077342987060547, -0.2435828447341919, 0.2033373862504959, 0.027566000819206238, -0.010000936686992645, 0.23714932799339294, -0.04521438479423523, 0.20262503623962402, 0.2026035636663437, 0.30365419387817383, 0.34625327587127686, 0.1128004640340805, -0.23874402046203613, 0.2949952483177185, -0.16165296733379364, -0.05598931759595871, 0.0445127859711647, -0.08291308581829071, 0.36694782972335815, 0.2743317186832428, 0.06939683109521866, 0.07408344000577927, -0.4737311005592346, -0.07849930226802826, -0.023685645312070847, 0.49042055010795593, -0.12455886602401733, 0.11724566668272018, -0.2654000222682953, -0.27749472856521606, -0.24197274446487427, -0.0375765897333622, -0.13775452971458435, -0.13874204456806183, -0.1552966833114624, 0.06669650226831436, -0.013973984867334366, 0.28767064213752747, -0.23127397894859314, 0.06974807381629944, 0.12428683042526245, -0.22045646607875824, -0.13288213312625885, -0.21127155423164368, -0.3053152859210968, 0.08753889799118042, 0.36746513843536377, 0.0579071044921875, 0.36747631430625916, -0.34109267592430115, 0.008232465013861656, -0.016508130356669426, -0.32010841369628906, 0.08440914750099182, -0.10939028859138489, 0.15591013431549072, 0.07050040364265442, 0.2237522006034851, -0.17007602751255035, -0.22641076147556305, 0.6276733875274658, -0.31368327140808105, -0.13289116322994232, 0.04295013099908829, -0.03835228458046913, -0.20572130382061005, -0.18207359313964844, -0.5400710105895996, -0.3777378797531128, -0.25732916593551636, 0.08137667179107666, 0.21095122396945953, 0.2434428185224533, 0.4190809726715088, 0.3446767330169678, 0.14394712448120117, -0.10571446269750595, -0.12071855366230011, -0.17632552981376648, -0.39496317505836487, 0.10054072737693787, -0.24910545349121094, -0.4323083162307739, -0.06860413402318954, 0.06229041516780853, 0.5364882349967957, 0.018618278205394745, -0.349542498588562, -0.27641555666923523, -0.16683246195316315, 0.12956589460372925, -0.1216556578874588, 0.07080888748168945, 0.320684552192688, -0.09174443781375885, -0.1171271800994873, -0.08881787955760956, -0.10106964409351349, 0.16046203672885895, -0.03867430239915848, -0.06276731938123703, 0.092669278383255, 0.3357469439506531, -0.09034579247236252, 0.5322237014770508, -0.012113655917346478, -0.33631381392478943, 0.45579108595848083, -0.13204851746559143, 0.2421812266111374, -0.354227751493454, -0.5656894445419312, 0.0709298700094223, 0.15882505476474762, 0.04661758244037628, -0.08920055627822876, 0.04333309829235077, -0.10229554027318954, -0.34857964515686035, -0.08692129701375961, -0.34945473074913025, 0.03534531965851784, 0.07706817239522934, 0.09826979786157608, 0.33666443824768066, -0.06080864369869232, -0.09079179167747498, -0.14997278153896332, 0.000045872293412685394, 0.15562571585178375, 0.38728421926498413, 0.05137376859784126, 0.13470476865768433, -0.29129907488822937, 0.12881061434745789, -0.35370561480522156, 0.29205021262168884, 0.05042555555701256, 0.4000323414802551, -0.066447913646698, -0.006877176463603973, 0.13976165652275085, -0.012654073536396027, 0.3901388645172119, -0.16334965825080872, -0.079051673412323, 0.1319674402475357, -0.1838368922472, -0.349208265542984, -0.06981456279754639, 0.05873975530266762, 0.000644835177809, -0.07742422819137573, 0.6436384320259094, 0.03310084342956543, -0.37390151619911194, 0.19397877156734467, 0.12734557688236237, -0.19824081659317017, -0.3113648295402527, -0.284726083278656, -0.3292039632797241, -0.3079221248626709, -0.16732779145240784, -0.033028494566679, 0.35186389088630676, 0.21911092102527618, 0.019607216119766235, -0.12989062070846558, -0.0052580684423446655, -0.1280585676431656, 0.18281769752502441, 0.06811627745628357, -0.007876637391746044, 0.1463286429643631, 0.20760872960090637, 0.15992528200149536, 0.33690449595451355, 0.5942881107330322, -0.2568458616733551, -0.5002080202102661, -0.06951483339071274, 0.05150077864527702, 0.21410790085792542, -0.029065564274787903, -0.14194293320178986, -0.23852163553237915, 0.03115546703338623, 0.09311976283788681, -0.24549323320388794, 0.28624042868614197, 0.3770497143268585, -0.03550153225660324, 0.028673050925135612, -0.3413775563240051, 0.4341711699962616, 0.09848921000957489, 0.04441358149051666, 0.43659552931785583, -0.03936414420604706, -0.13957591354846954, 0.14746983349323273, 0.14552487432956696, 0.5746572017669678, -0.38969022035598755, -0.07654973864555359, 0.2728121280670166, 0.044419899582862854, 0.2513248324394226, 0.2226637452840805, 0.12712141871452332, -0.34635719656944275, -0.20682381093502045, 0.007464313879609108, -0.05929406359791756, 0.3179739713668823, 0.03137694299221039, 0.0469740591943264, 0.17335806787014008, -0.05658738315105438, 0.31335392594337463, 0.027560928836464882, 0.3283928334712982, -0.10479135066270828, -0.23554763197898865, -0.427683562040329, 0.25314876437187195, -0.10588222742080688, 0.3252013027667999, -0.05211815983057022, -0.00427372008562088, -0.024289382621645927, -0.15166816115379333, -0.0210350900888443, 0.1194072738289833, -0.39667922258377075, 0.19174864888191223, 0.22798430919647217, -0.15495231747627258, -0.08643054962158203, 0.3514218330383301, 0.25439509749412537, -0.01261206716299057, -0.19757963716983795, 0.15964531898498535, -0.18784859776496887, -0.16745057702064514, -0.13289768993854523, -0.058627042919397354, 0.31439298391342163, -0.18156930804252625, -0.1954331398010254, 0.020109958946704865, 0.0074791135266423225, -0.20716486871242523, 0.16283255815505981, -0.15478040277957916, 0.26526501774787903, -0.03326159715652466, -0.2878689765930176, -0.1409372240304947, 0.07929554581642151, 0.04781198874115944, 0.2261352837085724, -0.05483651161193848, 0.09209223091602325, -0.06704535335302353, -0.05019013211131096, -0.2933439612388611, 0.018687620759010315, 0.4964331090450287, 0.07490546256303787, -0.1944495141506195, 0.4649342894554138, 0.11852684617042542, 0.0903027355670929, -0.25607725977897644, 0.04134501516819, 0.3066210150718689, -0.4442827105522156, 0.03962601721286774, 0.16730277240276337, 0.1089712381362915, 0.13673296570777893, 0.3644803464412689, 0.14285972714424133, -0.3083033859729767, 0.05905267968773842, -0.3313955068588257, -0.4534527659416199, 0.03118475154042244, -0.2731125056743622, 0.19100545346736908, -0.007649824023246765, 0.316025048494339, 0.10215315967798233, -0.059133633971214294, -0.3865189254283905, 0.06730898469686508, -0.11601560562849045, 0.04892309010028839, 0.3310287892818451, 0.07351627945899963, 0.20329038798809052, -0.08912275731563568, 0.19816268980503082, 0.05383710563182831, -0.24688023328781128, -0.33027732372283936, -0.06848148256540298, 0.06125020235776901, 0.17463982105255127, -0.2562597095966339, -0.0762539878487587, -0.23496145009994507, -0.25298258662223816, 0.011496054008603096, 0.1098116785287857, 0.17288243770599365, -0.23468570411205292, 0.3075316250324249, 0.04718074947595596, 0.08588943630456924, 0.2790689468383789, 0.03733166679739952, -0.1641242653131485, 0.17475803196430206, 0.012561382725834846, -0.009649034589529037, 0.0996067225933075, -0.09315413981676102, -0.08697205036878586, -0.044731058180332184, -0.2209000140428543, 0.0441732220351696, 0.19235441088676453, -0.2863117456436157, 0.08549515902996063, 0.0788564458489418, 0.4498380422592163, 0.10560274124145508, -0.2949090003967285, -0.04081284999847412, 0.38627609610557556, 0.31741559505462646, -0.318501740694046, -0.16133151948451996, 0.1336793750524521, 0.12272941321134567, -0.12821036577224731, 0.018163256347179413, 0.23639613389968872, -0.06752239167690277, -0.045181289315223694, 0.10256827622652054, 0.4315914809703827, -0.24551256000995636, 0.21763163805007935, 0.4695020318031311, 0.023508626967668533, 0.05169401317834854, 0.13956932723522186, 0.1381320357322693, 0.1342354416847229, 0.4555004835128784, -0.32757046818733215, 0.2404288947582245, -0.15707966685295105, 0.24623768031597137, 0.04632975161075592, -0.5383799076080322, 0.01993231102824211, 0.010830819606781006, -0.21008145809173584, -0.008019037544727325, -0.26295700669288635, 0.42185816168785095, -0.027981415390968323, -0.21092672646045685, -0.1749640554189682, 0.24520128965377808, -0.11668109148740768, -0.09916523098945618, -0.36625704169273376, -0.09198091179132462, -0.05865698307752609, 0.018079087138175964, 0.005513131618499756, -0.043700605630874634, 0.37982678413391113, 0.012641392648220062, -0.2145300954580307, -0.2277994602918625, -0.131364107131958, 0.2539505660533905, 0.025238752365112305, -0.08124087005853653, 0.42475953698158264, 0.2110418677330017, -0.058169856667518616, -0.02591298148036003, 0.4645785689353943, 0.4278830885887146, 0.5090795755386353, 0.1331222653388977, 0.09946649521589279, -0.14347749948501587, -0.00653168186545372, -0.021268006414175034, 0.22343407571315765, -0.10366813838481903, 0.0454365536570549, 0.26472538709640503, 0.23199497163295746, -0.1170492097735405, 0.24234098196029663, -0.13343778252601624, 0.3304159343242645, -0.13188022375106812, 0.09457290917634964, -0.049539901316165924, -0.00160975381731987, -0.1866309493780136, 0.32916203141212463, -0.31304213404655457, 0.1827821433544159, 0.4592876434326172, -0.0043394239619374275, 0.17303550243377686, -0.18945448100566864, 0.11907447874546051, -0.16306734085083008, 0.6306008100509644, 0.38055849075317383, 0.06648571044206619, -0.42184579372406006, -0.2910125255584717, -0.7276147603988647, 0.1564405858516693, -0.08258739113807678, 0.06108826398849487, 0.06190064921975136, -0.11401557177305222, -0.03830394893884659, 0.14759346842765808, -0.028524979948997498, 0.07449541240930557, 0.03714319318532944, -0.07219329476356506, -0.259231299161911, -0.08016768097877502, -0.19655390083789825, -0.07018003612756729, 0.020468074828386307, -0.40529125928878784, 0.21774889528751373, -0.5241701006889343, 0.13813912868499756, -0.1299019604921341, 0.056943513453006744, 0.05066261813044548, 0.10105589032173157, 0.33954402804374695, 0.020069947466254234, 0.25914525985717773, 0.02230672910809517, -0.07052882015705109, -0.26630327105522156, -0.3305782973766327, -0.23197788000106812, 0.28409817814826965, 0.1264582723379135, 0.39187711477279663, -0.2800571918487549, -0.09211517870426178, -0.4638872444629669, 0.15445922315120697, -0.03759845346212387, 0.008761944249272346, -0.04988563805818558, 0.07069391757249832, 0.0008186660706996918, -0.03337738662958145, 0.22799624502658844, 0.16862887144088745, 0.05793124437332153, 0.09514039754867554, -0.42582762241363525, -0.4247075319290161, 0.503021240234375, -0.27246585488319397, -0.1122208833694458, -0.014201249927282333, -0.11984045803546906, 0.12482395768165588, -0.09381071478128433, -0.6387228965759277, 0.36852672696113586, 0.3740670084953308, -0.03118465095758438, -0.218446284532547, 0.2790353000164032, 0.07662388682365417, 0.08817872405052185, 0.005537096410989761, 0.11607033014297485, 0.02056768536567688, -0.10499044507741928, -0.07786989957094193, -0.15694883465766907 ]
https://github.com/huggingface/datasets/issues/3960
Load local dataset error
Loading the image files slowly, is it because the multiple processes load files at the same time?
When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this: ``` >>> from datasets import load_dataset >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']} >>> ds = load_dataset('nateraw/image-folder', data_files=data_files, cache_dir='./', task='image-classification') [] https://huggingface.co/datasets/nateraw/image-folder/resolve/main/ /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1671, in load_dataset **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1521, in load_dataset_builder **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 1031, in __init__ super().__init__(*args, **kwargs) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 255, in __init__ sanitize_patterns(data_files), base_path=base_path, use_auth_token=use_auth_token File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 584, in from_local_or_remote if not isinstance(patterns_for_key, DataFilesList) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 546, in from_local_or_remote data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 196, in resolve_patterns_locally_or_by_urls for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions): File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 146, in _resolve_single_pattern_locally raise FileNotFoundError(error_msg) FileNotFoundError: Unable to find '/ssd/datasets/imagenet/pytorch/train' at /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main ``` I need some help to solve the problem, thanks!
17
Load local dataset error When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this: ``` >>> from datasets import load_dataset >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']} >>> ds = load_dataset('nateraw/image-folder', data_files=data_files, cache_dir='./', task='image-classification') [] https://huggingface.co/datasets/nateraw/image-folder/resolve/main/ /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1671, in load_dataset **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1521, in load_dataset_builder **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 1031, in __init__ super().__init__(*args, **kwargs) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 255, in __init__ sanitize_patterns(data_files), base_path=base_path, use_auth_token=use_auth_token File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 584, in from_local_or_remote if not isinstance(patterns_for_key, DataFilesList) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 546, in from_local_or_remote data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 196, in resolve_patterns_locally_or_by_urls for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions): File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 146, in _resolve_single_pattern_locally raise FileNotFoundError(error_msg) FileNotFoundError: Unable to find '/ssd/datasets/imagenet/pytorch/train' at /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main ``` I need some help to solve the problem, thanks! Loading the image files slowly, is it because the multiple processes load files at the same time?
[ -0.3380225598812103, -0.11414039134979248, -0.02119709923863411, 0.23908700048923492, 0.4253336787223816, -0.022540971636772156, 0.1771000474691391, 0.35765692591667175, 0.0669669359922409, 0.18955588340759277, -0.13147702813148499, 0.15659363567829132, -0.09680266678333282, 0.12018837779760361, -0.09796764701604843, -0.2962185740470886, -0.057913295924663544, 0.19713705778121948, -0.11787441372871399, -0.15113408863544464, -0.2569158673286438, 0.17876814305782318, -0.14001262187957764, 0.18472172319889069, -0.2956005036830902, 0.08315109461545944, -0.10548960417509079, 0.2142816185951233, -0.09651816636323929, -0.44826769828796387, 0.4221608638763428, -0.08951066434383392, 0.43298470973968506, 0.49662476778030396, -0.00010231576015939936, 0.17225125432014465, 0.4993551969528198, -0.026760341599583626, -0.12512987852096558, -0.4663240909576416, -0.13830861449241638, -0.1904052495956421, 0.30750060081481934, -0.11856693029403687, -0.20226329565048218, -0.41114482283592224, 0.04977629333734512, -0.19129326939582825, 0.4004446864128113, 0.3993334174156189, 0.3264051377773285, 0.24858808517456055, 0.02995295450091362, -0.3245801627635956, -0.16354286670684814, 0.1704920530319214, -0.14727939665317535, 0.35055941343307495, 0.2566419243812561, -0.15389849245548248, 0.14031639695167542, 0.3131348490715027, -0.05514651536941528, 0.19363820552825928, 0.31826603412628174, -0.10830292850732803, -0.06152419000864029, -0.14879266917705536, 0.36444002389907837, 0.09286418557167053, 0.5512081384658813, -0.14459535479545593, -0.3069010078907013, 0.04212547838687897, 0.11447407305240631, -0.4257180392742157, 0.23980969190597534, 0.15403985977172852, -0.14037206768989563, 0.2098691761493683, -0.2887398600578308, -0.06762006878852844, -0.23946979641914368, 0.3054100275039673, -0.11654792726039886, 0.13632537424564362, -0.16426149010658264, 0.11487582325935364, 0.23021171987056732, -0.08888613432645798, 0.16798360645771027, 0.11123327165842056, 0.1810368448495865, 0.25925835967063904, -0.3870075047016144, 0.2529418170452118, -0.0058413222432136536, -0.07459542900323868, -0.03287314251065254, -0.1497270166873932, -0.05055605620145798, -0.1193770095705986, -0.10948891192674637, 0.29077351093292236, 0.12415573000907898, 0.2429407387971878, 0.218616783618927, 0.38578009605407715, 0.03540588170289993, 0.07243882864713669, -0.16849805414676666, -0.05205263942480087, -0.3046109974384308, -0.3428439497947693, 0.17245446145534515, 0.033861756324768066, 0.21834272146224976, -0.24777425825595856, -0.18750596046447754, 0.052968356758356094, -0.02646087482571602, 0.13105778396129608, 0.004844749346375465, 0.3974284827709198, -0.07200191915035248, 0.10784132778644562, 0.11357071995735168, 0.21057263016700745, -0.21001587808132172, 0.08049972355365753, -0.3218248784542084, 0.0064728353172540665, -0.14834703505039215, -0.05037219822406769, 0.14987176656723022, -0.3902207016944885, 0.34616878628730774, -0.16460327804088593, -0.10272134840488434, 0.0681314766407013, 0.10596037656068802, -0.1619601845741272, -0.005134068429470062, 0.510623574256897, -0.16753126680850983, 0.10222212225198746, 0.24652929604053497, 0.027873612940311432, -0.09049687534570694, 0.13056135177612305, -0.2611618936061859, -0.5131599307060242, -0.3502133786678314, 0.2658132016658783, 0.035602815449237823, -0.074461929500103, -0.25543129444122314, 0.015602771192789078, 0.09142133593559265, 0.20827782154083252, -0.213351309299469, -0.25294363498687744, -0.30555102229118347, -0.03276238217949867, 0.28022804856300354, 0.32742542028427124, -0.3259853720664978, 0.0016578510403633118, -0.10044682770967484, -0.2188025414943695, 0.04140247032046318, 0.2085925042629242, -0.3016658425331116, 0.20887944102287292, -0.10445161908864975, 0.10960869491100311, 0.15639425814151764, -0.4672550559043884, -0.26182863116264343, 0.2249239832162857, 0.008027821779251099, -0.2027759552001953, -0.13782432675361633, -0.01215244922786951, -0.05892226845026016, 0.1817512810230255, 0.09810985624790192, 0.302140474319458, -0.061094529926776886, 0.04818553477525711, -0.2115163505077362, -0.1976688951253891, -0.10296294093132019, 0.34577247500419617, 0.042271167039871216, 0.1390027403831482, 0.20002835988998413, -0.2314840853214264, 0.06719609349966049, -0.13346458971500397, -0.08547922223806381, 0.2596312165260315, 0.17079654335975647, 0.06811622530221939, 0.03154334798455238, -0.0460764579474926, -0.5464988350868225, 0.23851647973060608, 0.1520851105451584, 0.2741982936859131, -0.26503461599349976, -0.05128460377454758, -0.4634176194667816, 0.07763301581144333, -0.3745076656341553, -0.08321912586688995, 0.1788611114025116, 0.06784448027610779, 0.06694072484970093, 0.14444930851459503, -0.19192156195640564, 0.28882864117622375, -0.30694717168807983, 0.040109943598508835, -0.14830593764781952, 0.1855936497449875, -0.16672766208648682, -0.13525457680225372, 0.17294912040233612, -0.10387945920228958, 0.05825873836874962, -0.2966475784778595, -0.2748551666736603, 0.482504278421402, 0.0012197252362966537, 0.22377781569957733, 0.0026744790375232697, 0.05394923686981201, 0.128635436296463, -0.24248813092708588, -0.04044700413942337, -0.05028717592358589, 0.04338045418262482, 0.08402714878320694, -0.012748174369335175, 0.13947466015815735, 0.07920339703559875, 0.10230161249637604, 0.08954295516014099, 0.05033072829246521, 0.3731084167957306, -0.0630996897816658, 0.05255511403083801, -0.20717453956604004, 0.16401083767414093, 0.04103370010852814, 0.2085026502609253, 0.02190074510872364, -0.25077342987060547, -0.2435828447341919, 0.2033373862504959, 0.027566000819206238, -0.010000936686992645, 0.23714932799339294, -0.04521438479423523, 0.20262503623962402, 0.2026035636663437, 0.30365419387817383, 0.34625327587127686, 0.1128004640340805, -0.23874402046203613, 0.2949952483177185, -0.16165296733379364, -0.05598931759595871, 0.0445127859711647, -0.08291308581829071, 0.36694782972335815, 0.2743317186832428, 0.06939683109521866, 0.07408344000577927, -0.4737311005592346, -0.07849930226802826, -0.023685645312070847, 0.49042055010795593, -0.12455886602401733, 0.11724566668272018, -0.2654000222682953, -0.27749472856521606, -0.24197274446487427, -0.0375765897333622, -0.13775452971458435, -0.13874204456806183, -0.1552966833114624, 0.06669650226831436, -0.013973984867334366, 0.28767064213752747, -0.23127397894859314, 0.06974807381629944, 0.12428683042526245, -0.22045646607875824, -0.13288213312625885, -0.21127155423164368, -0.3053152859210968, 0.08753889799118042, 0.36746513843536377, 0.0579071044921875, 0.36747631430625916, -0.34109267592430115, 0.008232465013861656, -0.016508130356669426, -0.32010841369628906, 0.08440914750099182, -0.10939028859138489, 0.15591013431549072, 0.07050040364265442, 0.2237522006034851, -0.17007602751255035, -0.22641076147556305, 0.6276733875274658, -0.31368327140808105, -0.13289116322994232, 0.04295013099908829, -0.03835228458046913, -0.20572130382061005, -0.18207359313964844, -0.5400710105895996, -0.3777378797531128, -0.25732916593551636, 0.08137667179107666, 0.21095122396945953, 0.2434428185224533, 0.4190809726715088, 0.3446767330169678, 0.14394712448120117, -0.10571446269750595, -0.12071855366230011, -0.17632552981376648, -0.39496317505836487, 0.10054072737693787, -0.24910545349121094, -0.4323083162307739, -0.06860413402318954, 0.06229041516780853, 0.5364882349967957, 0.018618278205394745, -0.349542498588562, -0.27641555666923523, -0.16683246195316315, 0.12956589460372925, -0.1216556578874588, 0.07080888748168945, 0.320684552192688, -0.09174443781375885, -0.1171271800994873, -0.08881787955760956, -0.10106964409351349, 0.16046203672885895, -0.03867430239915848, -0.06276731938123703, 0.092669278383255, 0.3357469439506531, -0.09034579247236252, 0.5322237014770508, -0.012113655917346478, -0.33631381392478943, 0.45579108595848083, -0.13204851746559143, 0.2421812266111374, -0.354227751493454, -0.5656894445419312, 0.0709298700094223, 0.15882505476474762, 0.04661758244037628, -0.08920055627822876, 0.04333309829235077, -0.10229554027318954, -0.34857964515686035, -0.08692129701375961, -0.34945473074913025, 0.03534531965851784, 0.07706817239522934, 0.09826979786157608, 0.33666443824768066, -0.06080864369869232, -0.09079179167747498, -0.14997278153896332, 0.000045872293412685394, 0.15562571585178375, 0.38728421926498413, 0.05137376859784126, 0.13470476865768433, -0.29129907488822937, 0.12881061434745789, -0.35370561480522156, 0.29205021262168884, 0.05042555555701256, 0.4000323414802551, -0.066447913646698, -0.006877176463603973, 0.13976165652275085, -0.012654073536396027, 0.3901388645172119, -0.16334965825080872, -0.079051673412323, 0.1319674402475357, -0.1838368922472, -0.349208265542984, -0.06981456279754639, 0.05873975530266762, 0.000644835177809, -0.07742422819137573, 0.6436384320259094, 0.03310084342956543, -0.37390151619911194, 0.19397877156734467, 0.12734557688236237, -0.19824081659317017, -0.3113648295402527, -0.284726083278656, -0.3292039632797241, -0.3079221248626709, -0.16732779145240784, -0.033028494566679, 0.35186389088630676, 0.21911092102527618, 0.019607216119766235, -0.12989062070846558, -0.0052580684423446655, -0.1280585676431656, 0.18281769752502441, 0.06811627745628357, -0.007876637391746044, 0.1463286429643631, 0.20760872960090637, 0.15992528200149536, 0.33690449595451355, 0.5942881107330322, -0.2568458616733551, -0.5002080202102661, -0.06951483339071274, 0.05150077864527702, 0.21410790085792542, -0.029065564274787903, -0.14194293320178986, -0.23852163553237915, 0.03115546703338623, 0.09311976283788681, -0.24549323320388794, 0.28624042868614197, 0.3770497143268585, -0.03550153225660324, 0.028673050925135612, -0.3413775563240051, 0.4341711699962616, 0.09848921000957489, 0.04441358149051666, 0.43659552931785583, -0.03936414420604706, -0.13957591354846954, 0.14746983349323273, 0.14552487432956696, 0.5746572017669678, -0.38969022035598755, -0.07654973864555359, 0.2728121280670166, 0.044419899582862854, 0.2513248324394226, 0.2226637452840805, 0.12712141871452332, -0.34635719656944275, -0.20682381093502045, 0.007464313879609108, -0.05929406359791756, 0.3179739713668823, 0.03137694299221039, 0.0469740591943264, 0.17335806787014008, -0.05658738315105438, 0.31335392594337463, 0.027560928836464882, 0.3283928334712982, -0.10479135066270828, -0.23554763197898865, -0.427683562040329, 0.25314876437187195, -0.10588222742080688, 0.3252013027667999, -0.05211815983057022, -0.00427372008562088, -0.024289382621645927, -0.15166816115379333, -0.0210350900888443, 0.1194072738289833, -0.39667922258377075, 0.19174864888191223, 0.22798430919647217, -0.15495231747627258, -0.08643054962158203, 0.3514218330383301, 0.25439509749412537, -0.01261206716299057, -0.19757963716983795, 0.15964531898498535, -0.18784859776496887, -0.16745057702064514, -0.13289768993854523, -0.058627042919397354, 0.31439298391342163, -0.18156930804252625, -0.1954331398010254, 0.020109958946704865, 0.0074791135266423225, -0.20716486871242523, 0.16283255815505981, -0.15478040277957916, 0.26526501774787903, -0.03326159715652466, -0.2878689765930176, -0.1409372240304947, 0.07929554581642151, 0.04781198874115944, 0.2261352837085724, -0.05483651161193848, 0.09209223091602325, -0.06704535335302353, -0.05019013211131096, -0.2933439612388611, 0.018687620759010315, 0.4964331090450287, 0.07490546256303787, -0.1944495141506195, 0.4649342894554138, 0.11852684617042542, 0.0903027355670929, -0.25607725977897644, 0.04134501516819, 0.3066210150718689, -0.4442827105522156, 0.03962601721286774, 0.16730277240276337, 0.1089712381362915, 0.13673296570777893, 0.3644803464412689, 0.14285972714424133, -0.3083033859729767, 0.05905267968773842, -0.3313955068588257, -0.4534527659416199, 0.03118475154042244, -0.2731125056743622, 0.19100545346736908, -0.007649824023246765, 0.316025048494339, 0.10215315967798233, -0.059133633971214294, -0.3865189254283905, 0.06730898469686508, -0.11601560562849045, 0.04892309010028839, 0.3310287892818451, 0.07351627945899963, 0.20329038798809052, -0.08912275731563568, 0.19816268980503082, 0.05383710563182831, -0.24688023328781128, -0.33027732372283936, -0.06848148256540298, 0.06125020235776901, 0.17463982105255127, -0.2562597095966339, -0.0762539878487587, -0.23496145009994507, -0.25298258662223816, 0.011496054008603096, 0.1098116785287857, 0.17288243770599365, -0.23468570411205292, 0.3075316250324249, 0.04718074947595596, 0.08588943630456924, 0.2790689468383789, 0.03733166679739952, -0.1641242653131485, 0.17475803196430206, 0.012561382725834846, -0.009649034589529037, 0.0996067225933075, -0.09315413981676102, -0.08697205036878586, -0.044731058180332184, -0.2209000140428543, 0.0441732220351696, 0.19235441088676453, -0.2863117456436157, 0.08549515902996063, 0.0788564458489418, 0.4498380422592163, 0.10560274124145508, -0.2949090003967285, -0.04081284999847412, 0.38627609610557556, 0.31741559505462646, -0.318501740694046, -0.16133151948451996, 0.1336793750524521, 0.12272941321134567, -0.12821036577224731, 0.018163256347179413, 0.23639613389968872, -0.06752239167690277, -0.045181289315223694, 0.10256827622652054, 0.4315914809703827, -0.24551256000995636, 0.21763163805007935, 0.4695020318031311, 0.023508626967668533, 0.05169401317834854, 0.13956932723522186, 0.1381320357322693, 0.1342354416847229, 0.4555004835128784, -0.32757046818733215, 0.2404288947582245, -0.15707966685295105, 0.24623768031597137, 0.04632975161075592, -0.5383799076080322, 0.01993231102824211, 0.010830819606781006, -0.21008145809173584, -0.008019037544727325, -0.26295700669288635, 0.42185816168785095, -0.027981415390968323, -0.21092672646045685, -0.1749640554189682, 0.24520128965377808, -0.11668109148740768, -0.09916523098945618, -0.36625704169273376, -0.09198091179132462, -0.05865698307752609, 0.018079087138175964, 0.005513131618499756, -0.043700605630874634, 0.37982678413391113, 0.012641392648220062, -0.2145300954580307, -0.2277994602918625, -0.131364107131958, 0.2539505660533905, 0.025238752365112305, -0.08124087005853653, 0.42475953698158264, 0.2110418677330017, -0.058169856667518616, -0.02591298148036003, 0.4645785689353943, 0.4278830885887146, 0.5090795755386353, 0.1331222653388977, 0.09946649521589279, -0.14347749948501587, -0.00653168186545372, -0.021268006414175034, 0.22343407571315765, -0.10366813838481903, 0.0454365536570549, 0.26472538709640503, 0.23199497163295746, -0.1170492097735405, 0.24234098196029663, -0.13343778252601624, 0.3304159343242645, -0.13188022375106812, 0.09457290917634964, -0.049539901316165924, -0.00160975381731987, -0.1866309493780136, 0.32916203141212463, -0.31304213404655457, 0.1827821433544159, 0.4592876434326172, -0.0043394239619374275, 0.17303550243377686, -0.18945448100566864, 0.11907447874546051, -0.16306734085083008, 0.6306008100509644, 0.38055849075317383, 0.06648571044206619, -0.42184579372406006, -0.2910125255584717, -0.7276147603988647, 0.1564405858516693, -0.08258739113807678, 0.06108826398849487, 0.06190064921975136, -0.11401557177305222, -0.03830394893884659, 0.14759346842765808, -0.028524979948997498, 0.07449541240930557, 0.03714319318532944, -0.07219329476356506, -0.259231299161911, -0.08016768097877502, -0.19655390083789825, -0.07018003612756729, 0.020468074828386307, -0.40529125928878784, 0.21774889528751373, -0.5241701006889343, 0.13813912868499756, -0.1299019604921341, 0.056943513453006744, 0.05066261813044548, 0.10105589032173157, 0.33954402804374695, 0.020069947466254234, 0.25914525985717773, 0.02230672910809517, -0.07052882015705109, -0.26630327105522156, -0.3305782973766327, -0.23197788000106812, 0.28409817814826965, 0.1264582723379135, 0.39187711477279663, -0.2800571918487549, -0.09211517870426178, -0.4638872444629669, 0.15445922315120697, -0.03759845346212387, 0.008761944249272346, -0.04988563805818558, 0.07069391757249832, 0.0008186660706996918, -0.03337738662958145, 0.22799624502658844, 0.16862887144088745, 0.05793124437332153, 0.09514039754867554, -0.42582762241363525, -0.4247075319290161, 0.503021240234375, -0.27246585488319397, -0.1122208833694458, -0.014201249927282333, -0.11984045803546906, 0.12482395768165588, -0.09381071478128433, -0.6387228965759277, 0.36852672696113586, 0.3740670084953308, -0.03118465095758438, -0.218446284532547, 0.2790353000164032, 0.07662388682365417, 0.08817872405052185, 0.005537096410989761, 0.11607033014297485, 0.02056768536567688, -0.10499044507741928, -0.07786989957094193, -0.15694883465766907 ]
https://github.com/huggingface/datasets/issues/3960
Load local dataset error
Could you please share the output you get after the second loading? Also, feel free to interrupt (`KeyboardInterrupt`) the process while waiting for it to end and share a traceback to show us where the process hangs. > And in transformers the [ViT example](https://github.com/huggingface/transformers/blob/main/examples/pytorch/image-classification/run_image_classification.py), could you make some changes ? Like the `collect_fn` > > ```python > def collate_fn(examples): > pixel_values = torch.stack([example["pixel_values"] for example in examples]) > labels = torch.tensor([example["labels"] for example in examples]) > return {"pixel_values": pixel_values, "labels": labels} > ``` > > How to know the keys of example? What do you mean by "could you make some changes".The `ViT` script doesn't remove unused columns by default, so the keys of an example are equal to the columns of the given dataset.
When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this: ``` >>> from datasets import load_dataset >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']} >>> ds = load_dataset('nateraw/image-folder', data_files=data_files, cache_dir='./', task='image-classification') [] https://huggingface.co/datasets/nateraw/image-folder/resolve/main/ /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1671, in load_dataset **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1521, in load_dataset_builder **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 1031, in __init__ super().__init__(*args, **kwargs) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 255, in __init__ sanitize_patterns(data_files), base_path=base_path, use_auth_token=use_auth_token File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 584, in from_local_or_remote if not isinstance(patterns_for_key, DataFilesList) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 546, in from_local_or_remote data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 196, in resolve_patterns_locally_or_by_urls for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions): File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 146, in _resolve_single_pattern_locally raise FileNotFoundError(error_msg) FileNotFoundError: Unable to find '/ssd/datasets/imagenet/pytorch/train' at /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main ``` I need some help to solve the problem, thanks!
125
Load local dataset error When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this: ``` >>> from datasets import load_dataset >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']} >>> ds = load_dataset('nateraw/image-folder', data_files=data_files, cache_dir='./', task='image-classification') [] https://huggingface.co/datasets/nateraw/image-folder/resolve/main/ /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1671, in load_dataset **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1521, in load_dataset_builder **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 1031, in __init__ super().__init__(*args, **kwargs) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 255, in __init__ sanitize_patterns(data_files), base_path=base_path, use_auth_token=use_auth_token File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 584, in from_local_or_remote if not isinstance(patterns_for_key, DataFilesList) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 546, in from_local_or_remote data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 196, in resolve_patterns_locally_or_by_urls for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions): File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 146, in _resolve_single_pattern_locally raise FileNotFoundError(error_msg) FileNotFoundError: Unable to find '/ssd/datasets/imagenet/pytorch/train' at /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main ``` I need some help to solve the problem, thanks! Could you please share the output you get after the second loading? Also, feel free to interrupt (`KeyboardInterrupt`) the process while waiting for it to end and share a traceback to show us where the process hangs. > And in transformers the [ViT example](https://github.com/huggingface/transformers/blob/main/examples/pytorch/image-classification/run_image_classification.py), could you make some changes ? Like the `collect_fn` > > ```python > def collate_fn(examples): > pixel_values = torch.stack([example["pixel_values"] for example in examples]) > labels = torch.tensor([example["labels"] for example in examples]) > return {"pixel_values": pixel_values, "labels": labels} > ``` > > How to know the keys of example? What do you mean by "could you make some changes".The `ViT` script doesn't remove unused columns by default, so the keys of an example are equal to the columns of the given dataset.
[ -0.3380225598812103, -0.11414039134979248, -0.02119709923863411, 0.23908700048923492, 0.4253336787223816, -0.022540971636772156, 0.1771000474691391, 0.35765692591667175, 0.0669669359922409, 0.18955588340759277, -0.13147702813148499, 0.15659363567829132, -0.09680266678333282, 0.12018837779760361, -0.09796764701604843, -0.2962185740470886, -0.057913295924663544, 0.19713705778121948, -0.11787441372871399, -0.15113408863544464, -0.2569158673286438, 0.17876814305782318, -0.14001262187957764, 0.18472172319889069, -0.2956005036830902, 0.08315109461545944, -0.10548960417509079, 0.2142816185951233, -0.09651816636323929, -0.44826769828796387, 0.4221608638763428, -0.08951066434383392, 0.43298470973968506, 0.49662476778030396, -0.00010231576015939936, 0.17225125432014465, 0.4993551969528198, -0.026760341599583626, -0.12512987852096558, -0.4663240909576416, -0.13830861449241638, -0.1904052495956421, 0.30750060081481934, -0.11856693029403687, -0.20226329565048218, -0.41114482283592224, 0.04977629333734512, -0.19129326939582825, 0.4004446864128113, 0.3993334174156189, 0.3264051377773285, 0.24858808517456055, 0.02995295450091362, -0.3245801627635956, -0.16354286670684814, 0.1704920530319214, -0.14727939665317535, 0.35055941343307495, 0.2566419243812561, -0.15389849245548248, 0.14031639695167542, 0.3131348490715027, -0.05514651536941528, 0.19363820552825928, 0.31826603412628174, -0.10830292850732803, -0.06152419000864029, -0.14879266917705536, 0.36444002389907837, 0.09286418557167053, 0.5512081384658813, -0.14459535479545593, -0.3069010078907013, 0.04212547838687897, 0.11447407305240631, -0.4257180392742157, 0.23980969190597534, 0.15403985977172852, -0.14037206768989563, 0.2098691761493683, -0.2887398600578308, -0.06762006878852844, -0.23946979641914368, 0.3054100275039673, -0.11654792726039886, 0.13632537424564362, -0.16426149010658264, 0.11487582325935364, 0.23021171987056732, -0.08888613432645798, 0.16798360645771027, 0.11123327165842056, 0.1810368448495865, 0.25925835967063904, -0.3870075047016144, 0.2529418170452118, -0.0058413222432136536, -0.07459542900323868, -0.03287314251065254, -0.1497270166873932, -0.05055605620145798, -0.1193770095705986, -0.10948891192674637, 0.29077351093292236, 0.12415573000907898, 0.2429407387971878, 0.218616783618927, 0.38578009605407715, 0.03540588170289993, 0.07243882864713669, -0.16849805414676666, -0.05205263942480087, -0.3046109974384308, -0.3428439497947693, 0.17245446145534515, 0.033861756324768066, 0.21834272146224976, -0.24777425825595856, -0.18750596046447754, 0.052968356758356094, -0.02646087482571602, 0.13105778396129608, 0.004844749346375465, 0.3974284827709198, -0.07200191915035248, 0.10784132778644562, 0.11357071995735168, 0.21057263016700745, -0.21001587808132172, 0.08049972355365753, -0.3218248784542084, 0.0064728353172540665, -0.14834703505039215, -0.05037219822406769, 0.14987176656723022, -0.3902207016944885, 0.34616878628730774, -0.16460327804088593, -0.10272134840488434, 0.0681314766407013, 0.10596037656068802, -0.1619601845741272, -0.005134068429470062, 0.510623574256897, -0.16753126680850983, 0.10222212225198746, 0.24652929604053497, 0.027873612940311432, -0.09049687534570694, 0.13056135177612305, -0.2611618936061859, -0.5131599307060242, -0.3502133786678314, 0.2658132016658783, 0.035602815449237823, -0.074461929500103, -0.25543129444122314, 0.015602771192789078, 0.09142133593559265, 0.20827782154083252, -0.213351309299469, -0.25294363498687744, -0.30555102229118347, -0.03276238217949867, 0.28022804856300354, 0.32742542028427124, -0.3259853720664978, 0.0016578510403633118, -0.10044682770967484, -0.2188025414943695, 0.04140247032046318, 0.2085925042629242, -0.3016658425331116, 0.20887944102287292, -0.10445161908864975, 0.10960869491100311, 0.15639425814151764, -0.4672550559043884, -0.26182863116264343, 0.2249239832162857, 0.008027821779251099, -0.2027759552001953, -0.13782432675361633, -0.01215244922786951, -0.05892226845026016, 0.1817512810230255, 0.09810985624790192, 0.302140474319458, -0.061094529926776886, 0.04818553477525711, -0.2115163505077362, -0.1976688951253891, -0.10296294093132019, 0.34577247500419617, 0.042271167039871216, 0.1390027403831482, 0.20002835988998413, -0.2314840853214264, 0.06719609349966049, -0.13346458971500397, -0.08547922223806381, 0.2596312165260315, 0.17079654335975647, 0.06811622530221939, 0.03154334798455238, -0.0460764579474926, -0.5464988350868225, 0.23851647973060608, 0.1520851105451584, 0.2741982936859131, -0.26503461599349976, -0.05128460377454758, -0.4634176194667816, 0.07763301581144333, -0.3745076656341553, -0.08321912586688995, 0.1788611114025116, 0.06784448027610779, 0.06694072484970093, 0.14444930851459503, -0.19192156195640564, 0.28882864117622375, -0.30694717168807983, 0.040109943598508835, -0.14830593764781952, 0.1855936497449875, -0.16672766208648682, -0.13525457680225372, 0.17294912040233612, -0.10387945920228958, 0.05825873836874962, -0.2966475784778595, -0.2748551666736603, 0.482504278421402, 0.0012197252362966537, 0.22377781569957733, 0.0026744790375232697, 0.05394923686981201, 0.128635436296463, -0.24248813092708588, -0.04044700413942337, -0.05028717592358589, 0.04338045418262482, 0.08402714878320694, -0.012748174369335175, 0.13947466015815735, 0.07920339703559875, 0.10230161249637604, 0.08954295516014099, 0.05033072829246521, 0.3731084167957306, -0.0630996897816658, 0.05255511403083801, -0.20717453956604004, 0.16401083767414093, 0.04103370010852814, 0.2085026502609253, 0.02190074510872364, -0.25077342987060547, -0.2435828447341919, 0.2033373862504959, 0.027566000819206238, -0.010000936686992645, 0.23714932799339294, -0.04521438479423523, 0.20262503623962402, 0.2026035636663437, 0.30365419387817383, 0.34625327587127686, 0.1128004640340805, -0.23874402046203613, 0.2949952483177185, -0.16165296733379364, -0.05598931759595871, 0.0445127859711647, -0.08291308581829071, 0.36694782972335815, 0.2743317186832428, 0.06939683109521866, 0.07408344000577927, -0.4737311005592346, -0.07849930226802826, -0.023685645312070847, 0.49042055010795593, -0.12455886602401733, 0.11724566668272018, -0.2654000222682953, -0.27749472856521606, -0.24197274446487427, -0.0375765897333622, -0.13775452971458435, -0.13874204456806183, -0.1552966833114624, 0.06669650226831436, -0.013973984867334366, 0.28767064213752747, -0.23127397894859314, 0.06974807381629944, 0.12428683042526245, -0.22045646607875824, -0.13288213312625885, -0.21127155423164368, -0.3053152859210968, 0.08753889799118042, 0.36746513843536377, 0.0579071044921875, 0.36747631430625916, -0.34109267592430115, 0.008232465013861656, -0.016508130356669426, -0.32010841369628906, 0.08440914750099182, -0.10939028859138489, 0.15591013431549072, 0.07050040364265442, 0.2237522006034851, -0.17007602751255035, -0.22641076147556305, 0.6276733875274658, -0.31368327140808105, -0.13289116322994232, 0.04295013099908829, -0.03835228458046913, -0.20572130382061005, -0.18207359313964844, -0.5400710105895996, -0.3777378797531128, -0.25732916593551636, 0.08137667179107666, 0.21095122396945953, 0.2434428185224533, 0.4190809726715088, 0.3446767330169678, 0.14394712448120117, -0.10571446269750595, -0.12071855366230011, -0.17632552981376648, -0.39496317505836487, 0.10054072737693787, -0.24910545349121094, -0.4323083162307739, -0.06860413402318954, 0.06229041516780853, 0.5364882349967957, 0.018618278205394745, -0.349542498588562, -0.27641555666923523, -0.16683246195316315, 0.12956589460372925, -0.1216556578874588, 0.07080888748168945, 0.320684552192688, -0.09174443781375885, -0.1171271800994873, -0.08881787955760956, -0.10106964409351349, 0.16046203672885895, -0.03867430239915848, -0.06276731938123703, 0.092669278383255, 0.3357469439506531, -0.09034579247236252, 0.5322237014770508, -0.012113655917346478, -0.33631381392478943, 0.45579108595848083, -0.13204851746559143, 0.2421812266111374, -0.354227751493454, -0.5656894445419312, 0.0709298700094223, 0.15882505476474762, 0.04661758244037628, -0.08920055627822876, 0.04333309829235077, -0.10229554027318954, -0.34857964515686035, -0.08692129701375961, -0.34945473074913025, 0.03534531965851784, 0.07706817239522934, 0.09826979786157608, 0.33666443824768066, -0.06080864369869232, -0.09079179167747498, -0.14997278153896332, 0.000045872293412685394, 0.15562571585178375, 0.38728421926498413, 0.05137376859784126, 0.13470476865768433, -0.29129907488822937, 0.12881061434745789, -0.35370561480522156, 0.29205021262168884, 0.05042555555701256, 0.4000323414802551, -0.066447913646698, -0.006877176463603973, 0.13976165652275085, -0.012654073536396027, 0.3901388645172119, -0.16334965825080872, -0.079051673412323, 0.1319674402475357, -0.1838368922472, -0.349208265542984, -0.06981456279754639, 0.05873975530266762, 0.000644835177809, -0.07742422819137573, 0.6436384320259094, 0.03310084342956543, -0.37390151619911194, 0.19397877156734467, 0.12734557688236237, -0.19824081659317017, -0.3113648295402527, -0.284726083278656, -0.3292039632797241, -0.3079221248626709, -0.16732779145240784, -0.033028494566679, 0.35186389088630676, 0.21911092102527618, 0.019607216119766235, -0.12989062070846558, -0.0052580684423446655, -0.1280585676431656, 0.18281769752502441, 0.06811627745628357, -0.007876637391746044, 0.1463286429643631, 0.20760872960090637, 0.15992528200149536, 0.33690449595451355, 0.5942881107330322, -0.2568458616733551, -0.5002080202102661, -0.06951483339071274, 0.05150077864527702, 0.21410790085792542, -0.029065564274787903, -0.14194293320178986, -0.23852163553237915, 0.03115546703338623, 0.09311976283788681, -0.24549323320388794, 0.28624042868614197, 0.3770497143268585, -0.03550153225660324, 0.028673050925135612, -0.3413775563240051, 0.4341711699962616, 0.09848921000957489, 0.04441358149051666, 0.43659552931785583, -0.03936414420604706, -0.13957591354846954, 0.14746983349323273, 0.14552487432956696, 0.5746572017669678, -0.38969022035598755, -0.07654973864555359, 0.2728121280670166, 0.044419899582862854, 0.2513248324394226, 0.2226637452840805, 0.12712141871452332, -0.34635719656944275, -0.20682381093502045, 0.007464313879609108, -0.05929406359791756, 0.3179739713668823, 0.03137694299221039, 0.0469740591943264, 0.17335806787014008, -0.05658738315105438, 0.31335392594337463, 0.027560928836464882, 0.3283928334712982, -0.10479135066270828, -0.23554763197898865, -0.427683562040329, 0.25314876437187195, -0.10588222742080688, 0.3252013027667999, -0.05211815983057022, -0.00427372008562088, -0.024289382621645927, -0.15166816115379333, -0.0210350900888443, 0.1194072738289833, -0.39667922258377075, 0.19174864888191223, 0.22798430919647217, -0.15495231747627258, -0.08643054962158203, 0.3514218330383301, 0.25439509749412537, -0.01261206716299057, -0.19757963716983795, 0.15964531898498535, -0.18784859776496887, -0.16745057702064514, -0.13289768993854523, -0.058627042919397354, 0.31439298391342163, -0.18156930804252625, -0.1954331398010254, 0.020109958946704865, 0.0074791135266423225, -0.20716486871242523, 0.16283255815505981, -0.15478040277957916, 0.26526501774787903, -0.03326159715652466, -0.2878689765930176, -0.1409372240304947, 0.07929554581642151, 0.04781198874115944, 0.2261352837085724, -0.05483651161193848, 0.09209223091602325, -0.06704535335302353, -0.05019013211131096, -0.2933439612388611, 0.018687620759010315, 0.4964331090450287, 0.07490546256303787, -0.1944495141506195, 0.4649342894554138, 0.11852684617042542, 0.0903027355670929, -0.25607725977897644, 0.04134501516819, 0.3066210150718689, -0.4442827105522156, 0.03962601721286774, 0.16730277240276337, 0.1089712381362915, 0.13673296570777893, 0.3644803464412689, 0.14285972714424133, -0.3083033859729767, 0.05905267968773842, -0.3313955068588257, -0.4534527659416199, 0.03118475154042244, -0.2731125056743622, 0.19100545346736908, -0.007649824023246765, 0.316025048494339, 0.10215315967798233, -0.059133633971214294, -0.3865189254283905, 0.06730898469686508, -0.11601560562849045, 0.04892309010028839, 0.3310287892818451, 0.07351627945899963, 0.20329038798809052, -0.08912275731563568, 0.19816268980503082, 0.05383710563182831, -0.24688023328781128, -0.33027732372283936, -0.06848148256540298, 0.06125020235776901, 0.17463982105255127, -0.2562597095966339, -0.0762539878487587, -0.23496145009994507, -0.25298258662223816, 0.011496054008603096, 0.1098116785287857, 0.17288243770599365, -0.23468570411205292, 0.3075316250324249, 0.04718074947595596, 0.08588943630456924, 0.2790689468383789, 0.03733166679739952, -0.1641242653131485, 0.17475803196430206, 0.012561382725834846, -0.009649034589529037, 0.0996067225933075, -0.09315413981676102, -0.08697205036878586, -0.044731058180332184, -0.2209000140428543, 0.0441732220351696, 0.19235441088676453, -0.2863117456436157, 0.08549515902996063, 0.0788564458489418, 0.4498380422592163, 0.10560274124145508, -0.2949090003967285, -0.04081284999847412, 0.38627609610557556, 0.31741559505462646, -0.318501740694046, -0.16133151948451996, 0.1336793750524521, 0.12272941321134567, -0.12821036577224731, 0.018163256347179413, 0.23639613389968872, -0.06752239167690277, -0.045181289315223694, 0.10256827622652054, 0.4315914809703827, -0.24551256000995636, 0.21763163805007935, 0.4695020318031311, 0.023508626967668533, 0.05169401317834854, 0.13956932723522186, 0.1381320357322693, 0.1342354416847229, 0.4555004835128784, -0.32757046818733215, 0.2404288947582245, -0.15707966685295105, 0.24623768031597137, 0.04632975161075592, -0.5383799076080322, 0.01993231102824211, 0.010830819606781006, -0.21008145809173584, -0.008019037544727325, -0.26295700669288635, 0.42185816168785095, -0.027981415390968323, -0.21092672646045685, -0.1749640554189682, 0.24520128965377808, -0.11668109148740768, -0.09916523098945618, -0.36625704169273376, -0.09198091179132462, -0.05865698307752609, 0.018079087138175964, 0.005513131618499756, -0.043700605630874634, 0.37982678413391113, 0.012641392648220062, -0.2145300954580307, -0.2277994602918625, -0.131364107131958, 0.2539505660533905, 0.025238752365112305, -0.08124087005853653, 0.42475953698158264, 0.2110418677330017, -0.058169856667518616, -0.02591298148036003, 0.4645785689353943, 0.4278830885887146, 0.5090795755386353, 0.1331222653388977, 0.09946649521589279, -0.14347749948501587, -0.00653168186545372, -0.021268006414175034, 0.22343407571315765, -0.10366813838481903, 0.0454365536570549, 0.26472538709640503, 0.23199497163295746, -0.1170492097735405, 0.24234098196029663, -0.13343778252601624, 0.3304159343242645, -0.13188022375106812, 0.09457290917634964, -0.049539901316165924, -0.00160975381731987, -0.1866309493780136, 0.32916203141212463, -0.31304213404655457, 0.1827821433544159, 0.4592876434326172, -0.0043394239619374275, 0.17303550243377686, -0.18945448100566864, 0.11907447874546051, -0.16306734085083008, 0.6306008100509644, 0.38055849075317383, 0.06648571044206619, -0.42184579372406006, -0.2910125255584717, -0.7276147603988647, 0.1564405858516693, -0.08258739113807678, 0.06108826398849487, 0.06190064921975136, -0.11401557177305222, -0.03830394893884659, 0.14759346842765808, -0.028524979948997498, 0.07449541240930557, 0.03714319318532944, -0.07219329476356506, -0.259231299161911, -0.08016768097877502, -0.19655390083789825, -0.07018003612756729, 0.020468074828386307, -0.40529125928878784, 0.21774889528751373, -0.5241701006889343, 0.13813912868499756, -0.1299019604921341, 0.056943513453006744, 0.05066261813044548, 0.10105589032173157, 0.33954402804374695, 0.020069947466254234, 0.25914525985717773, 0.02230672910809517, -0.07052882015705109, -0.26630327105522156, -0.3305782973766327, -0.23197788000106812, 0.28409817814826965, 0.1264582723379135, 0.39187711477279663, -0.2800571918487549, -0.09211517870426178, -0.4638872444629669, 0.15445922315120697, -0.03759845346212387, 0.008761944249272346, -0.04988563805818558, 0.07069391757249832, 0.0008186660706996918, -0.03337738662958145, 0.22799624502658844, 0.16862887144088745, 0.05793124437332153, 0.09514039754867554, -0.42582762241363525, -0.4247075319290161, 0.503021240234375, -0.27246585488319397, -0.1122208833694458, -0.014201249927282333, -0.11984045803546906, 0.12482395768165588, -0.09381071478128433, -0.6387228965759277, 0.36852672696113586, 0.3740670084953308, -0.03118465095758438, -0.218446284532547, 0.2790353000164032, 0.07662388682365417, 0.08817872405052185, 0.005537096410989761, 0.11607033014297485, 0.02056768536567688, -0.10499044507741928, -0.07786989957094193, -0.15694883465766907 ]
https://github.com/huggingface/datasets/issues/3960
Load local dataset error
> Could you please share the output you get after the second loading? Also, feel free to interrupt (`KeyboardInterrupt`) the process while waiting for it to end and share a traceback to show us where the process hangs. > > > And in transformers the [ViT example](https://github.com/huggingface/transformers/blob/main/examples/pytorch/image-classification/run_image_classification.py), could you make some changes ? Like the `collect_fn` > > ```python > > def collate_fn(examples): > > pixel_values = torch.stack([example["pixel_values"] for example in examples]) > > labels = torch.tensor([example["labels"] for example in examples]) > > return {"pixel_values": pixel_values, "labels": labels} > > ``` > > > > > > > > > > > > > > > > > > > > > > > > How to know the keys of example? > > What do you mean by "could you make some changes".The `ViT` script doesn't remove unused columns by default, so the keys of an example are equal to the columns of the given dataset. Thanks for your reply! 1. I did not record the second output, so I run it again. ``` (merak) txacs@master:/dat/txacs/test$ time python test.py Resolving data files: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1281167/1281167 [00:02<00:00, 469497.89it/s] Resolving data files: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 50001/50001 [00:00<00:00, 70123.73it/s] Using custom data configuration default-baebca6347576b33 Reusing dataset image_folder (./image_folder/default-baebca6347576b33/0.0.0/ee92df8e96c6907f3c851a987be3fd03d4b93b247e727b69a8e23ac94392a091) 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:10<00:00, 5.37s/it] Loading cached processed dataset at ./image_folder/default-baebca6347576b33/0.0.0/ee92df8e96c6907f3c851a987be3fd03d4b93b247e727b69a8e23ac94392a091/cache-cd3fbdc025e03f8c.arrow Loading cached processed dataset at ./image_folder/default-baebca6347576b33/0.0.0/ee92df8e96c6907f3c851a987be3fd03d4b93b247e727b69a8e23ac94392a091/cache-b5a9de701bbdbb2b.arrow DatasetDict({ train: Dataset({ features: ['image', 'labels'], num_rows: 1281167 }) validation: Dataset({ features: ['image', 'labels'], num_rows: 50000 }) }) real 10m10.413s user 9m33.195s sys 2m47.528s ``` Although it cost less time than the last, but still slowly. 2. Sorry, forgive my poor statement. I solved it, updating to new script 'run_image_classification.py'.
When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this: ``` >>> from datasets import load_dataset >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']} >>> ds = load_dataset('nateraw/image-folder', data_files=data_files, cache_dir='./', task='image-classification') [] https://huggingface.co/datasets/nateraw/image-folder/resolve/main/ /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1671, in load_dataset **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1521, in load_dataset_builder **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 1031, in __init__ super().__init__(*args, **kwargs) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 255, in __init__ sanitize_patterns(data_files), base_path=base_path, use_auth_token=use_auth_token File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 584, in from_local_or_remote if not isinstance(patterns_for_key, DataFilesList) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 546, in from_local_or_remote data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 196, in resolve_patterns_locally_or_by_urls for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions): File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 146, in _resolve_single_pattern_locally raise FileNotFoundError(error_msg) FileNotFoundError: Unable to find '/ssd/datasets/imagenet/pytorch/train' at /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main ``` I need some help to solve the problem, thanks!
269
Load local dataset error When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this: ``` >>> from datasets import load_dataset >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']} >>> ds = load_dataset('nateraw/image-folder', data_files=data_files, cache_dir='./', task='image-classification') [] https://huggingface.co/datasets/nateraw/image-folder/resolve/main/ /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1671, in load_dataset **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1521, in load_dataset_builder **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 1031, in __init__ super().__init__(*args, **kwargs) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 255, in __init__ sanitize_patterns(data_files), base_path=base_path, use_auth_token=use_auth_token File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 584, in from_local_or_remote if not isinstance(patterns_for_key, DataFilesList) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 546, in from_local_or_remote data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 196, in resolve_patterns_locally_or_by_urls for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions): File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 146, in _resolve_single_pattern_locally raise FileNotFoundError(error_msg) FileNotFoundError: Unable to find '/ssd/datasets/imagenet/pytorch/train' at /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main ``` I need some help to solve the problem, thanks! > Could you please share the output you get after the second loading? Also, feel free to interrupt (`KeyboardInterrupt`) the process while waiting for it to end and share a traceback to show us where the process hangs. > > > And in transformers the [ViT example](https://github.com/huggingface/transformers/blob/main/examples/pytorch/image-classification/run_image_classification.py), could you make some changes ? Like the `collect_fn` > > ```python > > def collate_fn(examples): > > pixel_values = torch.stack([example["pixel_values"] for example in examples]) > > labels = torch.tensor([example["labels"] for example in examples]) > > return {"pixel_values": pixel_values, "labels": labels} > > ``` > > > > > > > > > > > > > > > > > > > > > > > > How to know the keys of example? > > What do you mean by "could you make some changes".The `ViT` script doesn't remove unused columns by default, so the keys of an example are equal to the columns of the given dataset. Thanks for your reply! 1. I did not record the second output, so I run it again. ``` (merak) txacs@master:/dat/txacs/test$ time python test.py Resolving data files: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1281167/1281167 [00:02<00:00, 469497.89it/s] Resolving data files: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 50001/50001 [00:00<00:00, 70123.73it/s] Using custom data configuration default-baebca6347576b33 Reusing dataset image_folder (./image_folder/default-baebca6347576b33/0.0.0/ee92df8e96c6907f3c851a987be3fd03d4b93b247e727b69a8e23ac94392a091) 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:10<00:00, 5.37s/it] Loading cached processed dataset at ./image_folder/default-baebca6347576b33/0.0.0/ee92df8e96c6907f3c851a987be3fd03d4b93b247e727b69a8e23ac94392a091/cache-cd3fbdc025e03f8c.arrow Loading cached processed dataset at ./image_folder/default-baebca6347576b33/0.0.0/ee92df8e96c6907f3c851a987be3fd03d4b93b247e727b69a8e23ac94392a091/cache-b5a9de701bbdbb2b.arrow DatasetDict({ train: Dataset({ features: ['image', 'labels'], num_rows: 1281167 }) validation: Dataset({ features: ['image', 'labels'], num_rows: 50000 }) }) real 10m10.413s user 9m33.195s sys 2m47.528s ``` Although it cost less time than the last, but still slowly. 2. Sorry, forgive my poor statement. I solved it, updating to new script 'run_image_classification.py'.
[ -0.3380225598812103, -0.11414039134979248, -0.02119709923863411, 0.23908700048923492, 0.4253336787223816, -0.022540971636772156, 0.1771000474691391, 0.35765692591667175, 0.0669669359922409, 0.18955588340759277, -0.13147702813148499, 0.15659363567829132, -0.09680266678333282, 0.12018837779760361, -0.09796764701604843, -0.2962185740470886, -0.057913295924663544, 0.19713705778121948, -0.11787441372871399, -0.15113408863544464, -0.2569158673286438, 0.17876814305782318, -0.14001262187957764, 0.18472172319889069, -0.2956005036830902, 0.08315109461545944, -0.10548960417509079, 0.2142816185951233, -0.09651816636323929, -0.44826769828796387, 0.4221608638763428, -0.08951066434383392, 0.43298470973968506, 0.49662476778030396, -0.00010231576015939936, 0.17225125432014465, 0.4993551969528198, -0.026760341599583626, -0.12512987852096558, -0.4663240909576416, -0.13830861449241638, -0.1904052495956421, 0.30750060081481934, -0.11856693029403687, -0.20226329565048218, -0.41114482283592224, 0.04977629333734512, -0.19129326939582825, 0.4004446864128113, 0.3993334174156189, 0.3264051377773285, 0.24858808517456055, 0.02995295450091362, -0.3245801627635956, -0.16354286670684814, 0.1704920530319214, -0.14727939665317535, 0.35055941343307495, 0.2566419243812561, -0.15389849245548248, 0.14031639695167542, 0.3131348490715027, -0.05514651536941528, 0.19363820552825928, 0.31826603412628174, -0.10830292850732803, -0.06152419000864029, -0.14879266917705536, 0.36444002389907837, 0.09286418557167053, 0.5512081384658813, -0.14459535479545593, -0.3069010078907013, 0.04212547838687897, 0.11447407305240631, -0.4257180392742157, 0.23980969190597534, 0.15403985977172852, -0.14037206768989563, 0.2098691761493683, -0.2887398600578308, -0.06762006878852844, -0.23946979641914368, 0.3054100275039673, -0.11654792726039886, 0.13632537424564362, -0.16426149010658264, 0.11487582325935364, 0.23021171987056732, -0.08888613432645798, 0.16798360645771027, 0.11123327165842056, 0.1810368448495865, 0.25925835967063904, -0.3870075047016144, 0.2529418170452118, -0.0058413222432136536, -0.07459542900323868, -0.03287314251065254, -0.1497270166873932, -0.05055605620145798, -0.1193770095705986, -0.10948891192674637, 0.29077351093292236, 0.12415573000907898, 0.2429407387971878, 0.218616783618927, 0.38578009605407715, 0.03540588170289993, 0.07243882864713669, -0.16849805414676666, -0.05205263942480087, -0.3046109974384308, -0.3428439497947693, 0.17245446145534515, 0.033861756324768066, 0.21834272146224976, -0.24777425825595856, -0.18750596046447754, 0.052968356758356094, -0.02646087482571602, 0.13105778396129608, 0.004844749346375465, 0.3974284827709198, -0.07200191915035248, 0.10784132778644562, 0.11357071995735168, 0.21057263016700745, -0.21001587808132172, 0.08049972355365753, -0.3218248784542084, 0.0064728353172540665, -0.14834703505039215, -0.05037219822406769, 0.14987176656723022, -0.3902207016944885, 0.34616878628730774, -0.16460327804088593, -0.10272134840488434, 0.0681314766407013, 0.10596037656068802, -0.1619601845741272, -0.005134068429470062, 0.510623574256897, -0.16753126680850983, 0.10222212225198746, 0.24652929604053497, 0.027873612940311432, -0.09049687534570694, 0.13056135177612305, -0.2611618936061859, -0.5131599307060242, -0.3502133786678314, 0.2658132016658783, 0.035602815449237823, -0.074461929500103, -0.25543129444122314, 0.015602771192789078, 0.09142133593559265, 0.20827782154083252, -0.213351309299469, -0.25294363498687744, -0.30555102229118347, -0.03276238217949867, 0.28022804856300354, 0.32742542028427124, -0.3259853720664978, 0.0016578510403633118, -0.10044682770967484, -0.2188025414943695, 0.04140247032046318, 0.2085925042629242, -0.3016658425331116, 0.20887944102287292, -0.10445161908864975, 0.10960869491100311, 0.15639425814151764, -0.4672550559043884, -0.26182863116264343, 0.2249239832162857, 0.008027821779251099, -0.2027759552001953, -0.13782432675361633, -0.01215244922786951, -0.05892226845026016, 0.1817512810230255, 0.09810985624790192, 0.302140474319458, -0.061094529926776886, 0.04818553477525711, -0.2115163505077362, -0.1976688951253891, -0.10296294093132019, 0.34577247500419617, 0.042271167039871216, 0.1390027403831482, 0.20002835988998413, -0.2314840853214264, 0.06719609349966049, -0.13346458971500397, -0.08547922223806381, 0.2596312165260315, 0.17079654335975647, 0.06811622530221939, 0.03154334798455238, -0.0460764579474926, -0.5464988350868225, 0.23851647973060608, 0.1520851105451584, 0.2741982936859131, -0.26503461599349976, -0.05128460377454758, -0.4634176194667816, 0.07763301581144333, -0.3745076656341553, -0.08321912586688995, 0.1788611114025116, 0.06784448027610779, 0.06694072484970093, 0.14444930851459503, -0.19192156195640564, 0.28882864117622375, -0.30694717168807983, 0.040109943598508835, -0.14830593764781952, 0.1855936497449875, -0.16672766208648682, -0.13525457680225372, 0.17294912040233612, -0.10387945920228958, 0.05825873836874962, -0.2966475784778595, -0.2748551666736603, 0.482504278421402, 0.0012197252362966537, 0.22377781569957733, 0.0026744790375232697, 0.05394923686981201, 0.128635436296463, -0.24248813092708588, -0.04044700413942337, -0.05028717592358589, 0.04338045418262482, 0.08402714878320694, -0.012748174369335175, 0.13947466015815735, 0.07920339703559875, 0.10230161249637604, 0.08954295516014099, 0.05033072829246521, 0.3731084167957306, -0.0630996897816658, 0.05255511403083801, -0.20717453956604004, 0.16401083767414093, 0.04103370010852814, 0.2085026502609253, 0.02190074510872364, -0.25077342987060547, -0.2435828447341919, 0.2033373862504959, 0.027566000819206238, -0.010000936686992645, 0.23714932799339294, -0.04521438479423523, 0.20262503623962402, 0.2026035636663437, 0.30365419387817383, 0.34625327587127686, 0.1128004640340805, -0.23874402046203613, 0.2949952483177185, -0.16165296733379364, -0.05598931759595871, 0.0445127859711647, -0.08291308581829071, 0.36694782972335815, 0.2743317186832428, 0.06939683109521866, 0.07408344000577927, -0.4737311005592346, -0.07849930226802826, -0.023685645312070847, 0.49042055010795593, -0.12455886602401733, 0.11724566668272018, -0.2654000222682953, -0.27749472856521606, -0.24197274446487427, -0.0375765897333622, -0.13775452971458435, -0.13874204456806183, -0.1552966833114624, 0.06669650226831436, -0.013973984867334366, 0.28767064213752747, -0.23127397894859314, 0.06974807381629944, 0.12428683042526245, -0.22045646607875824, -0.13288213312625885, -0.21127155423164368, -0.3053152859210968, 0.08753889799118042, 0.36746513843536377, 0.0579071044921875, 0.36747631430625916, -0.34109267592430115, 0.008232465013861656, -0.016508130356669426, -0.32010841369628906, 0.08440914750099182, -0.10939028859138489, 0.15591013431549072, 0.07050040364265442, 0.2237522006034851, -0.17007602751255035, -0.22641076147556305, 0.6276733875274658, -0.31368327140808105, -0.13289116322994232, 0.04295013099908829, -0.03835228458046913, -0.20572130382061005, -0.18207359313964844, -0.5400710105895996, -0.3777378797531128, -0.25732916593551636, 0.08137667179107666, 0.21095122396945953, 0.2434428185224533, 0.4190809726715088, 0.3446767330169678, 0.14394712448120117, -0.10571446269750595, -0.12071855366230011, -0.17632552981376648, -0.39496317505836487, 0.10054072737693787, -0.24910545349121094, -0.4323083162307739, -0.06860413402318954, 0.06229041516780853, 0.5364882349967957, 0.018618278205394745, -0.349542498588562, -0.27641555666923523, -0.16683246195316315, 0.12956589460372925, -0.1216556578874588, 0.07080888748168945, 0.320684552192688, -0.09174443781375885, -0.1171271800994873, -0.08881787955760956, -0.10106964409351349, 0.16046203672885895, -0.03867430239915848, -0.06276731938123703, 0.092669278383255, 0.3357469439506531, -0.09034579247236252, 0.5322237014770508, -0.012113655917346478, -0.33631381392478943, 0.45579108595848083, -0.13204851746559143, 0.2421812266111374, -0.354227751493454, -0.5656894445419312, 0.0709298700094223, 0.15882505476474762, 0.04661758244037628, -0.08920055627822876, 0.04333309829235077, -0.10229554027318954, -0.34857964515686035, -0.08692129701375961, -0.34945473074913025, 0.03534531965851784, 0.07706817239522934, 0.09826979786157608, 0.33666443824768066, -0.06080864369869232, -0.09079179167747498, -0.14997278153896332, 0.000045872293412685394, 0.15562571585178375, 0.38728421926498413, 0.05137376859784126, 0.13470476865768433, -0.29129907488822937, 0.12881061434745789, -0.35370561480522156, 0.29205021262168884, 0.05042555555701256, 0.4000323414802551, -0.066447913646698, -0.006877176463603973, 0.13976165652275085, -0.012654073536396027, 0.3901388645172119, -0.16334965825080872, -0.079051673412323, 0.1319674402475357, -0.1838368922472, -0.349208265542984, -0.06981456279754639, 0.05873975530266762, 0.000644835177809, -0.07742422819137573, 0.6436384320259094, 0.03310084342956543, -0.37390151619911194, 0.19397877156734467, 0.12734557688236237, -0.19824081659317017, -0.3113648295402527, -0.284726083278656, -0.3292039632797241, -0.3079221248626709, -0.16732779145240784, -0.033028494566679, 0.35186389088630676, 0.21911092102527618, 0.019607216119766235, -0.12989062070846558, -0.0052580684423446655, -0.1280585676431656, 0.18281769752502441, 0.06811627745628357, -0.007876637391746044, 0.1463286429643631, 0.20760872960090637, 0.15992528200149536, 0.33690449595451355, 0.5942881107330322, -0.2568458616733551, -0.5002080202102661, -0.06951483339071274, 0.05150077864527702, 0.21410790085792542, -0.029065564274787903, -0.14194293320178986, -0.23852163553237915, 0.03115546703338623, 0.09311976283788681, -0.24549323320388794, 0.28624042868614197, 0.3770497143268585, -0.03550153225660324, 0.028673050925135612, -0.3413775563240051, 0.4341711699962616, 0.09848921000957489, 0.04441358149051666, 0.43659552931785583, -0.03936414420604706, -0.13957591354846954, 0.14746983349323273, 0.14552487432956696, 0.5746572017669678, -0.38969022035598755, -0.07654973864555359, 0.2728121280670166, 0.044419899582862854, 0.2513248324394226, 0.2226637452840805, 0.12712141871452332, -0.34635719656944275, -0.20682381093502045, 0.007464313879609108, -0.05929406359791756, 0.3179739713668823, 0.03137694299221039, 0.0469740591943264, 0.17335806787014008, -0.05658738315105438, 0.31335392594337463, 0.027560928836464882, 0.3283928334712982, -0.10479135066270828, -0.23554763197898865, -0.427683562040329, 0.25314876437187195, -0.10588222742080688, 0.3252013027667999, -0.05211815983057022, -0.00427372008562088, -0.024289382621645927, -0.15166816115379333, -0.0210350900888443, 0.1194072738289833, -0.39667922258377075, 0.19174864888191223, 0.22798430919647217, -0.15495231747627258, -0.08643054962158203, 0.3514218330383301, 0.25439509749412537, -0.01261206716299057, -0.19757963716983795, 0.15964531898498535, -0.18784859776496887, -0.16745057702064514, -0.13289768993854523, -0.058627042919397354, 0.31439298391342163, -0.18156930804252625, -0.1954331398010254, 0.020109958946704865, 0.0074791135266423225, -0.20716486871242523, 0.16283255815505981, -0.15478040277957916, 0.26526501774787903, -0.03326159715652466, -0.2878689765930176, -0.1409372240304947, 0.07929554581642151, 0.04781198874115944, 0.2261352837085724, -0.05483651161193848, 0.09209223091602325, -0.06704535335302353, -0.05019013211131096, -0.2933439612388611, 0.018687620759010315, 0.4964331090450287, 0.07490546256303787, -0.1944495141506195, 0.4649342894554138, 0.11852684617042542, 0.0903027355670929, -0.25607725977897644, 0.04134501516819, 0.3066210150718689, -0.4442827105522156, 0.03962601721286774, 0.16730277240276337, 0.1089712381362915, 0.13673296570777893, 0.3644803464412689, 0.14285972714424133, -0.3083033859729767, 0.05905267968773842, -0.3313955068588257, -0.4534527659416199, 0.03118475154042244, -0.2731125056743622, 0.19100545346736908, -0.007649824023246765, 0.316025048494339, 0.10215315967798233, -0.059133633971214294, -0.3865189254283905, 0.06730898469686508, -0.11601560562849045, 0.04892309010028839, 0.3310287892818451, 0.07351627945899963, 0.20329038798809052, -0.08912275731563568, 0.19816268980503082, 0.05383710563182831, -0.24688023328781128, -0.33027732372283936, -0.06848148256540298, 0.06125020235776901, 0.17463982105255127, -0.2562597095966339, -0.0762539878487587, -0.23496145009994507, -0.25298258662223816, 0.011496054008603096, 0.1098116785287857, 0.17288243770599365, -0.23468570411205292, 0.3075316250324249, 0.04718074947595596, 0.08588943630456924, 0.2790689468383789, 0.03733166679739952, -0.1641242653131485, 0.17475803196430206, 0.012561382725834846, -0.009649034589529037, 0.0996067225933075, -0.09315413981676102, -0.08697205036878586, -0.044731058180332184, -0.2209000140428543, 0.0441732220351696, 0.19235441088676453, -0.2863117456436157, 0.08549515902996063, 0.0788564458489418, 0.4498380422592163, 0.10560274124145508, -0.2949090003967285, -0.04081284999847412, 0.38627609610557556, 0.31741559505462646, -0.318501740694046, -0.16133151948451996, 0.1336793750524521, 0.12272941321134567, -0.12821036577224731, 0.018163256347179413, 0.23639613389968872, -0.06752239167690277, -0.045181289315223694, 0.10256827622652054, 0.4315914809703827, -0.24551256000995636, 0.21763163805007935, 0.4695020318031311, 0.023508626967668533, 0.05169401317834854, 0.13956932723522186, 0.1381320357322693, 0.1342354416847229, 0.4555004835128784, -0.32757046818733215, 0.2404288947582245, -0.15707966685295105, 0.24623768031597137, 0.04632975161075592, -0.5383799076080322, 0.01993231102824211, 0.010830819606781006, -0.21008145809173584, -0.008019037544727325, -0.26295700669288635, 0.42185816168785095, -0.027981415390968323, -0.21092672646045685, -0.1749640554189682, 0.24520128965377808, -0.11668109148740768, -0.09916523098945618, -0.36625704169273376, -0.09198091179132462, -0.05865698307752609, 0.018079087138175964, 0.005513131618499756, -0.043700605630874634, 0.37982678413391113, 0.012641392648220062, -0.2145300954580307, -0.2277994602918625, -0.131364107131958, 0.2539505660533905, 0.025238752365112305, -0.08124087005853653, 0.42475953698158264, 0.2110418677330017, -0.058169856667518616, -0.02591298148036003, 0.4645785689353943, 0.4278830885887146, 0.5090795755386353, 0.1331222653388977, 0.09946649521589279, -0.14347749948501587, -0.00653168186545372, -0.021268006414175034, 0.22343407571315765, -0.10366813838481903, 0.0454365536570549, 0.26472538709640503, 0.23199497163295746, -0.1170492097735405, 0.24234098196029663, -0.13343778252601624, 0.3304159343242645, -0.13188022375106812, 0.09457290917634964, -0.049539901316165924, -0.00160975381731987, -0.1866309493780136, 0.32916203141212463, -0.31304213404655457, 0.1827821433544159, 0.4592876434326172, -0.0043394239619374275, 0.17303550243377686, -0.18945448100566864, 0.11907447874546051, -0.16306734085083008, 0.6306008100509644, 0.38055849075317383, 0.06648571044206619, -0.42184579372406006, -0.2910125255584717, -0.7276147603988647, 0.1564405858516693, -0.08258739113807678, 0.06108826398849487, 0.06190064921975136, -0.11401557177305222, -0.03830394893884659, 0.14759346842765808, -0.028524979948997498, 0.07449541240930557, 0.03714319318532944, -0.07219329476356506, -0.259231299161911, -0.08016768097877502, -0.19655390083789825, -0.07018003612756729, 0.020468074828386307, -0.40529125928878784, 0.21774889528751373, -0.5241701006889343, 0.13813912868499756, -0.1299019604921341, 0.056943513453006744, 0.05066261813044548, 0.10105589032173157, 0.33954402804374695, 0.020069947466254234, 0.25914525985717773, 0.02230672910809517, -0.07052882015705109, -0.26630327105522156, -0.3305782973766327, -0.23197788000106812, 0.28409817814826965, 0.1264582723379135, 0.39187711477279663, -0.2800571918487549, -0.09211517870426178, -0.4638872444629669, 0.15445922315120697, -0.03759845346212387, 0.008761944249272346, -0.04988563805818558, 0.07069391757249832, 0.0008186660706996918, -0.03337738662958145, 0.22799624502658844, 0.16862887144088745, 0.05793124437332153, 0.09514039754867554, -0.42582762241363525, -0.4247075319290161, 0.503021240234375, -0.27246585488319397, -0.1122208833694458, -0.014201249927282333, -0.11984045803546906, 0.12482395768165588, -0.09381071478128433, -0.6387228965759277, 0.36852672696113586, 0.3740670084953308, -0.03118465095758438, -0.218446284532547, 0.2790353000164032, 0.07662388682365417, 0.08817872405052185, 0.005537096410989761, 0.11607033014297485, 0.02056768536567688, -0.10499044507741928, -0.07786989957094193, -0.15694883465766907 ]
https://github.com/huggingface/datasets/issues/3960
Load local dataset error
Thanks for rerunning the code to record the output. Is it the `"Resolving data files"` part on your machine that takes a long time to complete, or is it `"Loading cached processed dataset at ..."˙`? We plan to speed up the latter by splitting bigger Arrow files into smaller ones, but your dataset doesn't seem that big, so not sure if that's the issue.
When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this: ``` >>> from datasets import load_dataset >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']} >>> ds = load_dataset('nateraw/image-folder', data_files=data_files, cache_dir='./', task='image-classification') [] https://huggingface.co/datasets/nateraw/image-folder/resolve/main/ /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1671, in load_dataset **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1521, in load_dataset_builder **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 1031, in __init__ super().__init__(*args, **kwargs) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 255, in __init__ sanitize_patterns(data_files), base_path=base_path, use_auth_token=use_auth_token File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 584, in from_local_or_remote if not isinstance(patterns_for_key, DataFilesList) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 546, in from_local_or_remote data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 196, in resolve_patterns_locally_or_by_urls for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions): File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 146, in _resolve_single_pattern_locally raise FileNotFoundError(error_msg) FileNotFoundError: Unable to find '/ssd/datasets/imagenet/pytorch/train' at /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main ``` I need some help to solve the problem, thanks!
64
Load local dataset error When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this: ``` >>> from datasets import load_dataset >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']} >>> ds = load_dataset('nateraw/image-folder', data_files=data_files, cache_dir='./', task='image-classification') [] https://huggingface.co/datasets/nateraw/image-folder/resolve/main/ /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1671, in load_dataset **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1521, in load_dataset_builder **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 1031, in __init__ super().__init__(*args, **kwargs) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 255, in __init__ sanitize_patterns(data_files), base_path=base_path, use_auth_token=use_auth_token File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 584, in from_local_or_remote if not isinstance(patterns_for_key, DataFilesList) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 546, in from_local_or_remote data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 196, in resolve_patterns_locally_or_by_urls for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions): File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 146, in _resolve_single_pattern_locally raise FileNotFoundError(error_msg) FileNotFoundError: Unable to find '/ssd/datasets/imagenet/pytorch/train' at /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main ``` I need some help to solve the problem, thanks! Thanks for rerunning the code to record the output. Is it the `"Resolving data files"` part on your machine that takes a long time to complete, or is it `"Loading cached processed dataset at ..."˙`? We plan to speed up the latter by splitting bigger Arrow files into smaller ones, but your dataset doesn't seem that big, so not sure if that's the issue.
[ -0.3380225598812103, -0.11414039134979248, -0.02119709923863411, 0.23908700048923492, 0.4253336787223816, -0.022540971636772156, 0.1771000474691391, 0.35765692591667175, 0.0669669359922409, 0.18955588340759277, -0.13147702813148499, 0.15659363567829132, -0.09680266678333282, 0.12018837779760361, -0.09796764701604843, -0.2962185740470886, -0.057913295924663544, 0.19713705778121948, -0.11787441372871399, -0.15113408863544464, -0.2569158673286438, 0.17876814305782318, -0.14001262187957764, 0.18472172319889069, -0.2956005036830902, 0.08315109461545944, -0.10548960417509079, 0.2142816185951233, -0.09651816636323929, -0.44826769828796387, 0.4221608638763428, -0.08951066434383392, 0.43298470973968506, 0.49662476778030396, -0.00010231576015939936, 0.17225125432014465, 0.4993551969528198, -0.026760341599583626, -0.12512987852096558, -0.4663240909576416, -0.13830861449241638, -0.1904052495956421, 0.30750060081481934, -0.11856693029403687, -0.20226329565048218, -0.41114482283592224, 0.04977629333734512, -0.19129326939582825, 0.4004446864128113, 0.3993334174156189, 0.3264051377773285, 0.24858808517456055, 0.02995295450091362, -0.3245801627635956, -0.16354286670684814, 0.1704920530319214, -0.14727939665317535, 0.35055941343307495, 0.2566419243812561, -0.15389849245548248, 0.14031639695167542, 0.3131348490715027, -0.05514651536941528, 0.19363820552825928, 0.31826603412628174, -0.10830292850732803, -0.06152419000864029, -0.14879266917705536, 0.36444002389907837, 0.09286418557167053, 0.5512081384658813, -0.14459535479545593, -0.3069010078907013, 0.04212547838687897, 0.11447407305240631, -0.4257180392742157, 0.23980969190597534, 0.15403985977172852, -0.14037206768989563, 0.2098691761493683, -0.2887398600578308, -0.06762006878852844, -0.23946979641914368, 0.3054100275039673, -0.11654792726039886, 0.13632537424564362, -0.16426149010658264, 0.11487582325935364, 0.23021171987056732, -0.08888613432645798, 0.16798360645771027, 0.11123327165842056, 0.1810368448495865, 0.25925835967063904, -0.3870075047016144, 0.2529418170452118, -0.0058413222432136536, -0.07459542900323868, -0.03287314251065254, -0.1497270166873932, -0.05055605620145798, -0.1193770095705986, -0.10948891192674637, 0.29077351093292236, 0.12415573000907898, 0.2429407387971878, 0.218616783618927, 0.38578009605407715, 0.03540588170289993, 0.07243882864713669, -0.16849805414676666, -0.05205263942480087, -0.3046109974384308, -0.3428439497947693, 0.17245446145534515, 0.033861756324768066, 0.21834272146224976, -0.24777425825595856, -0.18750596046447754, 0.052968356758356094, -0.02646087482571602, 0.13105778396129608, 0.004844749346375465, 0.3974284827709198, -0.07200191915035248, 0.10784132778644562, 0.11357071995735168, 0.21057263016700745, -0.21001587808132172, 0.08049972355365753, -0.3218248784542084, 0.0064728353172540665, -0.14834703505039215, -0.05037219822406769, 0.14987176656723022, -0.3902207016944885, 0.34616878628730774, -0.16460327804088593, -0.10272134840488434, 0.0681314766407013, 0.10596037656068802, -0.1619601845741272, -0.005134068429470062, 0.510623574256897, -0.16753126680850983, 0.10222212225198746, 0.24652929604053497, 0.027873612940311432, -0.09049687534570694, 0.13056135177612305, -0.2611618936061859, -0.5131599307060242, -0.3502133786678314, 0.2658132016658783, 0.035602815449237823, -0.074461929500103, -0.25543129444122314, 0.015602771192789078, 0.09142133593559265, 0.20827782154083252, -0.213351309299469, -0.25294363498687744, -0.30555102229118347, -0.03276238217949867, 0.28022804856300354, 0.32742542028427124, -0.3259853720664978, 0.0016578510403633118, -0.10044682770967484, -0.2188025414943695, 0.04140247032046318, 0.2085925042629242, -0.3016658425331116, 0.20887944102287292, -0.10445161908864975, 0.10960869491100311, 0.15639425814151764, -0.4672550559043884, -0.26182863116264343, 0.2249239832162857, 0.008027821779251099, -0.2027759552001953, -0.13782432675361633, -0.01215244922786951, -0.05892226845026016, 0.1817512810230255, 0.09810985624790192, 0.302140474319458, -0.061094529926776886, 0.04818553477525711, -0.2115163505077362, -0.1976688951253891, -0.10296294093132019, 0.34577247500419617, 0.042271167039871216, 0.1390027403831482, 0.20002835988998413, -0.2314840853214264, 0.06719609349966049, -0.13346458971500397, -0.08547922223806381, 0.2596312165260315, 0.17079654335975647, 0.06811622530221939, 0.03154334798455238, -0.0460764579474926, -0.5464988350868225, 0.23851647973060608, 0.1520851105451584, 0.2741982936859131, -0.26503461599349976, -0.05128460377454758, -0.4634176194667816, 0.07763301581144333, -0.3745076656341553, -0.08321912586688995, 0.1788611114025116, 0.06784448027610779, 0.06694072484970093, 0.14444930851459503, -0.19192156195640564, 0.28882864117622375, -0.30694717168807983, 0.040109943598508835, -0.14830593764781952, 0.1855936497449875, -0.16672766208648682, -0.13525457680225372, 0.17294912040233612, -0.10387945920228958, 0.05825873836874962, -0.2966475784778595, -0.2748551666736603, 0.482504278421402, 0.0012197252362966537, 0.22377781569957733, 0.0026744790375232697, 0.05394923686981201, 0.128635436296463, -0.24248813092708588, -0.04044700413942337, -0.05028717592358589, 0.04338045418262482, 0.08402714878320694, -0.012748174369335175, 0.13947466015815735, 0.07920339703559875, 0.10230161249637604, 0.08954295516014099, 0.05033072829246521, 0.3731084167957306, -0.0630996897816658, 0.05255511403083801, -0.20717453956604004, 0.16401083767414093, 0.04103370010852814, 0.2085026502609253, 0.02190074510872364, -0.25077342987060547, -0.2435828447341919, 0.2033373862504959, 0.027566000819206238, -0.010000936686992645, 0.23714932799339294, -0.04521438479423523, 0.20262503623962402, 0.2026035636663437, 0.30365419387817383, 0.34625327587127686, 0.1128004640340805, -0.23874402046203613, 0.2949952483177185, -0.16165296733379364, -0.05598931759595871, 0.0445127859711647, -0.08291308581829071, 0.36694782972335815, 0.2743317186832428, 0.06939683109521866, 0.07408344000577927, -0.4737311005592346, -0.07849930226802826, -0.023685645312070847, 0.49042055010795593, -0.12455886602401733, 0.11724566668272018, -0.2654000222682953, -0.27749472856521606, -0.24197274446487427, -0.0375765897333622, -0.13775452971458435, -0.13874204456806183, -0.1552966833114624, 0.06669650226831436, -0.013973984867334366, 0.28767064213752747, -0.23127397894859314, 0.06974807381629944, 0.12428683042526245, -0.22045646607875824, -0.13288213312625885, -0.21127155423164368, -0.3053152859210968, 0.08753889799118042, 0.36746513843536377, 0.0579071044921875, 0.36747631430625916, -0.34109267592430115, 0.008232465013861656, -0.016508130356669426, -0.32010841369628906, 0.08440914750099182, -0.10939028859138489, 0.15591013431549072, 0.07050040364265442, 0.2237522006034851, -0.17007602751255035, -0.22641076147556305, 0.6276733875274658, -0.31368327140808105, -0.13289116322994232, 0.04295013099908829, -0.03835228458046913, -0.20572130382061005, -0.18207359313964844, -0.5400710105895996, -0.3777378797531128, -0.25732916593551636, 0.08137667179107666, 0.21095122396945953, 0.2434428185224533, 0.4190809726715088, 0.3446767330169678, 0.14394712448120117, -0.10571446269750595, -0.12071855366230011, -0.17632552981376648, -0.39496317505836487, 0.10054072737693787, -0.24910545349121094, -0.4323083162307739, -0.06860413402318954, 0.06229041516780853, 0.5364882349967957, 0.018618278205394745, -0.349542498588562, -0.27641555666923523, -0.16683246195316315, 0.12956589460372925, -0.1216556578874588, 0.07080888748168945, 0.320684552192688, -0.09174443781375885, -0.1171271800994873, -0.08881787955760956, -0.10106964409351349, 0.16046203672885895, -0.03867430239915848, -0.06276731938123703, 0.092669278383255, 0.3357469439506531, -0.09034579247236252, 0.5322237014770508, -0.012113655917346478, -0.33631381392478943, 0.45579108595848083, -0.13204851746559143, 0.2421812266111374, -0.354227751493454, -0.5656894445419312, 0.0709298700094223, 0.15882505476474762, 0.04661758244037628, -0.08920055627822876, 0.04333309829235077, -0.10229554027318954, -0.34857964515686035, -0.08692129701375961, -0.34945473074913025, 0.03534531965851784, 0.07706817239522934, 0.09826979786157608, 0.33666443824768066, -0.06080864369869232, -0.09079179167747498, -0.14997278153896332, 0.000045872293412685394, 0.15562571585178375, 0.38728421926498413, 0.05137376859784126, 0.13470476865768433, -0.29129907488822937, 0.12881061434745789, -0.35370561480522156, 0.29205021262168884, 0.05042555555701256, 0.4000323414802551, -0.066447913646698, -0.006877176463603973, 0.13976165652275085, -0.012654073536396027, 0.3901388645172119, -0.16334965825080872, -0.079051673412323, 0.1319674402475357, -0.1838368922472, -0.349208265542984, -0.06981456279754639, 0.05873975530266762, 0.000644835177809, -0.07742422819137573, 0.6436384320259094, 0.03310084342956543, -0.37390151619911194, 0.19397877156734467, 0.12734557688236237, -0.19824081659317017, -0.3113648295402527, -0.284726083278656, -0.3292039632797241, -0.3079221248626709, -0.16732779145240784, -0.033028494566679, 0.35186389088630676, 0.21911092102527618, 0.019607216119766235, -0.12989062070846558, -0.0052580684423446655, -0.1280585676431656, 0.18281769752502441, 0.06811627745628357, -0.007876637391746044, 0.1463286429643631, 0.20760872960090637, 0.15992528200149536, 0.33690449595451355, 0.5942881107330322, -0.2568458616733551, -0.5002080202102661, -0.06951483339071274, 0.05150077864527702, 0.21410790085792542, -0.029065564274787903, -0.14194293320178986, -0.23852163553237915, 0.03115546703338623, 0.09311976283788681, -0.24549323320388794, 0.28624042868614197, 0.3770497143268585, -0.03550153225660324, 0.028673050925135612, -0.3413775563240051, 0.4341711699962616, 0.09848921000957489, 0.04441358149051666, 0.43659552931785583, -0.03936414420604706, -0.13957591354846954, 0.14746983349323273, 0.14552487432956696, 0.5746572017669678, -0.38969022035598755, -0.07654973864555359, 0.2728121280670166, 0.044419899582862854, 0.2513248324394226, 0.2226637452840805, 0.12712141871452332, -0.34635719656944275, -0.20682381093502045, 0.007464313879609108, -0.05929406359791756, 0.3179739713668823, 0.03137694299221039, 0.0469740591943264, 0.17335806787014008, -0.05658738315105438, 0.31335392594337463, 0.027560928836464882, 0.3283928334712982, -0.10479135066270828, -0.23554763197898865, -0.427683562040329, 0.25314876437187195, -0.10588222742080688, 0.3252013027667999, -0.05211815983057022, -0.00427372008562088, -0.024289382621645927, -0.15166816115379333, -0.0210350900888443, 0.1194072738289833, -0.39667922258377075, 0.19174864888191223, 0.22798430919647217, -0.15495231747627258, -0.08643054962158203, 0.3514218330383301, 0.25439509749412537, -0.01261206716299057, -0.19757963716983795, 0.15964531898498535, -0.18784859776496887, -0.16745057702064514, -0.13289768993854523, -0.058627042919397354, 0.31439298391342163, -0.18156930804252625, -0.1954331398010254, 0.020109958946704865, 0.0074791135266423225, -0.20716486871242523, 0.16283255815505981, -0.15478040277957916, 0.26526501774787903, -0.03326159715652466, -0.2878689765930176, -0.1409372240304947, 0.07929554581642151, 0.04781198874115944, 0.2261352837085724, -0.05483651161193848, 0.09209223091602325, -0.06704535335302353, -0.05019013211131096, -0.2933439612388611, 0.018687620759010315, 0.4964331090450287, 0.07490546256303787, -0.1944495141506195, 0.4649342894554138, 0.11852684617042542, 0.0903027355670929, -0.25607725977897644, 0.04134501516819, 0.3066210150718689, -0.4442827105522156, 0.03962601721286774, 0.16730277240276337, 0.1089712381362915, 0.13673296570777893, 0.3644803464412689, 0.14285972714424133, -0.3083033859729767, 0.05905267968773842, -0.3313955068588257, -0.4534527659416199, 0.03118475154042244, -0.2731125056743622, 0.19100545346736908, -0.007649824023246765, 0.316025048494339, 0.10215315967798233, -0.059133633971214294, -0.3865189254283905, 0.06730898469686508, -0.11601560562849045, 0.04892309010028839, 0.3310287892818451, 0.07351627945899963, 0.20329038798809052, -0.08912275731563568, 0.19816268980503082, 0.05383710563182831, -0.24688023328781128, -0.33027732372283936, -0.06848148256540298, 0.06125020235776901, 0.17463982105255127, -0.2562597095966339, -0.0762539878487587, -0.23496145009994507, -0.25298258662223816, 0.011496054008603096, 0.1098116785287857, 0.17288243770599365, -0.23468570411205292, 0.3075316250324249, 0.04718074947595596, 0.08588943630456924, 0.2790689468383789, 0.03733166679739952, -0.1641242653131485, 0.17475803196430206, 0.012561382725834846, -0.009649034589529037, 0.0996067225933075, -0.09315413981676102, -0.08697205036878586, -0.044731058180332184, -0.2209000140428543, 0.0441732220351696, 0.19235441088676453, -0.2863117456436157, 0.08549515902996063, 0.0788564458489418, 0.4498380422592163, 0.10560274124145508, -0.2949090003967285, -0.04081284999847412, 0.38627609610557556, 0.31741559505462646, -0.318501740694046, -0.16133151948451996, 0.1336793750524521, 0.12272941321134567, -0.12821036577224731, 0.018163256347179413, 0.23639613389968872, -0.06752239167690277, -0.045181289315223694, 0.10256827622652054, 0.4315914809703827, -0.24551256000995636, 0.21763163805007935, 0.4695020318031311, 0.023508626967668533, 0.05169401317834854, 0.13956932723522186, 0.1381320357322693, 0.1342354416847229, 0.4555004835128784, -0.32757046818733215, 0.2404288947582245, -0.15707966685295105, 0.24623768031597137, 0.04632975161075592, -0.5383799076080322, 0.01993231102824211, 0.010830819606781006, -0.21008145809173584, -0.008019037544727325, -0.26295700669288635, 0.42185816168785095, -0.027981415390968323, -0.21092672646045685, -0.1749640554189682, 0.24520128965377808, -0.11668109148740768, -0.09916523098945618, -0.36625704169273376, -0.09198091179132462, -0.05865698307752609, 0.018079087138175964, 0.005513131618499756, -0.043700605630874634, 0.37982678413391113, 0.012641392648220062, -0.2145300954580307, -0.2277994602918625, -0.131364107131958, 0.2539505660533905, 0.025238752365112305, -0.08124087005853653, 0.42475953698158264, 0.2110418677330017, -0.058169856667518616, -0.02591298148036003, 0.4645785689353943, 0.4278830885887146, 0.5090795755386353, 0.1331222653388977, 0.09946649521589279, -0.14347749948501587, -0.00653168186545372, -0.021268006414175034, 0.22343407571315765, -0.10366813838481903, 0.0454365536570549, 0.26472538709640503, 0.23199497163295746, -0.1170492097735405, 0.24234098196029663, -0.13343778252601624, 0.3304159343242645, -0.13188022375106812, 0.09457290917634964, -0.049539901316165924, -0.00160975381731987, -0.1866309493780136, 0.32916203141212463, -0.31304213404655457, 0.1827821433544159, 0.4592876434326172, -0.0043394239619374275, 0.17303550243377686, -0.18945448100566864, 0.11907447874546051, -0.16306734085083008, 0.6306008100509644, 0.38055849075317383, 0.06648571044206619, -0.42184579372406006, -0.2910125255584717, -0.7276147603988647, 0.1564405858516693, -0.08258739113807678, 0.06108826398849487, 0.06190064921975136, -0.11401557177305222, -0.03830394893884659, 0.14759346842765808, -0.028524979948997498, 0.07449541240930557, 0.03714319318532944, -0.07219329476356506, -0.259231299161911, -0.08016768097877502, -0.19655390083789825, -0.07018003612756729, 0.020468074828386307, -0.40529125928878784, 0.21774889528751373, -0.5241701006889343, 0.13813912868499756, -0.1299019604921341, 0.056943513453006744, 0.05066261813044548, 0.10105589032173157, 0.33954402804374695, 0.020069947466254234, 0.25914525985717773, 0.02230672910809517, -0.07052882015705109, -0.26630327105522156, -0.3305782973766327, -0.23197788000106812, 0.28409817814826965, 0.1264582723379135, 0.39187711477279663, -0.2800571918487549, -0.09211517870426178, -0.4638872444629669, 0.15445922315120697, -0.03759845346212387, 0.008761944249272346, -0.04988563805818558, 0.07069391757249832, 0.0008186660706996918, -0.03337738662958145, 0.22799624502658844, 0.16862887144088745, 0.05793124437332153, 0.09514039754867554, -0.42582762241363525, -0.4247075319290161, 0.503021240234375, -0.27246585488319397, -0.1122208833694458, -0.014201249927282333, -0.11984045803546906, 0.12482395768165588, -0.09381071478128433, -0.6387228965759277, 0.36852672696113586, 0.3740670084953308, -0.03118465095758438, -0.218446284532547, 0.2790353000164032, 0.07662388682365417, 0.08817872405052185, 0.005537096410989761, 0.11607033014297485, 0.02056768536567688, -0.10499044507741928, -0.07786989957094193, -0.15694883465766907 ]
https://github.com/huggingface/datasets/issues/3960
Load local dataset error
> Thanks for rerunning the code to record the output. Is it the `"Resolving data files"` part on your machine that takes a long time to complete, or is it `"Loading cached processed dataset at ..."˙`? We plan to speed up the latter by splitting bigger Arrow files into smaller ones, but your dataset doesn't seem that big, so not sure if that's the issue. Sounds good! The main position, which costs long time, is from program starting to `"Resolving data files"`. I hope you can solve it early, thanks!
When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this: ``` >>> from datasets import load_dataset >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']} >>> ds = load_dataset('nateraw/image-folder', data_files=data_files, cache_dir='./', task='image-classification') [] https://huggingface.co/datasets/nateraw/image-folder/resolve/main/ /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1671, in load_dataset **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1521, in load_dataset_builder **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 1031, in __init__ super().__init__(*args, **kwargs) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 255, in __init__ sanitize_patterns(data_files), base_path=base_path, use_auth_token=use_auth_token File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 584, in from_local_or_remote if not isinstance(patterns_for_key, DataFilesList) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 546, in from_local_or_remote data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 196, in resolve_patterns_locally_or_by_urls for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions): File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 146, in _resolve_single_pattern_locally raise FileNotFoundError(error_msg) FileNotFoundError: Unable to find '/ssd/datasets/imagenet/pytorch/train' at /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main ``` I need some help to solve the problem, thanks!
90
Load local dataset error When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this: ``` >>> from datasets import load_dataset >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']} >>> ds = load_dataset('nateraw/image-folder', data_files=data_files, cache_dir='./', task='image-classification') [] https://huggingface.co/datasets/nateraw/image-folder/resolve/main/ /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1671, in load_dataset **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1521, in load_dataset_builder **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 1031, in __init__ super().__init__(*args, **kwargs) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 255, in __init__ sanitize_patterns(data_files), base_path=base_path, use_auth_token=use_auth_token File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 584, in from_local_or_remote if not isinstance(patterns_for_key, DataFilesList) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 546, in from_local_or_remote data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 196, in resolve_patterns_locally_or_by_urls for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions): File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 146, in _resolve_single_pattern_locally raise FileNotFoundError(error_msg) FileNotFoundError: Unable to find '/ssd/datasets/imagenet/pytorch/train' at /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main ``` I need some help to solve the problem, thanks! > Thanks for rerunning the code to record the output. Is it the `"Resolving data files"` part on your machine that takes a long time to complete, or is it `"Loading cached processed dataset at ..."˙`? We plan to speed up the latter by splitting bigger Arrow files into smaller ones, but your dataset doesn't seem that big, so not sure if that's the issue. Sounds good! The main position, which costs long time, is from program starting to `"Resolving data files"`. I hope you can solve it early, thanks!
[ -0.3380225598812103, -0.11414039134979248, -0.02119709923863411, 0.23908700048923492, 0.4253336787223816, -0.022540971636772156, 0.1771000474691391, 0.35765692591667175, 0.0669669359922409, 0.18955588340759277, -0.13147702813148499, 0.15659363567829132, -0.09680266678333282, 0.12018837779760361, -0.09796764701604843, -0.2962185740470886, -0.057913295924663544, 0.19713705778121948, -0.11787441372871399, -0.15113408863544464, -0.2569158673286438, 0.17876814305782318, -0.14001262187957764, 0.18472172319889069, -0.2956005036830902, 0.08315109461545944, -0.10548960417509079, 0.2142816185951233, -0.09651816636323929, -0.44826769828796387, 0.4221608638763428, -0.08951066434383392, 0.43298470973968506, 0.49662476778030396, -0.00010231576015939936, 0.17225125432014465, 0.4993551969528198, -0.026760341599583626, -0.12512987852096558, -0.4663240909576416, -0.13830861449241638, -0.1904052495956421, 0.30750060081481934, -0.11856693029403687, -0.20226329565048218, -0.41114482283592224, 0.04977629333734512, -0.19129326939582825, 0.4004446864128113, 0.3993334174156189, 0.3264051377773285, 0.24858808517456055, 0.02995295450091362, -0.3245801627635956, -0.16354286670684814, 0.1704920530319214, -0.14727939665317535, 0.35055941343307495, 0.2566419243812561, -0.15389849245548248, 0.14031639695167542, 0.3131348490715027, -0.05514651536941528, 0.19363820552825928, 0.31826603412628174, -0.10830292850732803, -0.06152419000864029, -0.14879266917705536, 0.36444002389907837, 0.09286418557167053, 0.5512081384658813, -0.14459535479545593, -0.3069010078907013, 0.04212547838687897, 0.11447407305240631, -0.4257180392742157, 0.23980969190597534, 0.15403985977172852, -0.14037206768989563, 0.2098691761493683, -0.2887398600578308, -0.06762006878852844, -0.23946979641914368, 0.3054100275039673, -0.11654792726039886, 0.13632537424564362, -0.16426149010658264, 0.11487582325935364, 0.23021171987056732, -0.08888613432645798, 0.16798360645771027, 0.11123327165842056, 0.1810368448495865, 0.25925835967063904, -0.3870075047016144, 0.2529418170452118, -0.0058413222432136536, -0.07459542900323868, -0.03287314251065254, -0.1497270166873932, -0.05055605620145798, -0.1193770095705986, -0.10948891192674637, 0.29077351093292236, 0.12415573000907898, 0.2429407387971878, 0.218616783618927, 0.38578009605407715, 0.03540588170289993, 0.07243882864713669, -0.16849805414676666, -0.05205263942480087, -0.3046109974384308, -0.3428439497947693, 0.17245446145534515, 0.033861756324768066, 0.21834272146224976, -0.24777425825595856, -0.18750596046447754, 0.052968356758356094, -0.02646087482571602, 0.13105778396129608, 0.004844749346375465, 0.3974284827709198, -0.07200191915035248, 0.10784132778644562, 0.11357071995735168, 0.21057263016700745, -0.21001587808132172, 0.08049972355365753, -0.3218248784542084, 0.0064728353172540665, -0.14834703505039215, -0.05037219822406769, 0.14987176656723022, -0.3902207016944885, 0.34616878628730774, -0.16460327804088593, -0.10272134840488434, 0.0681314766407013, 0.10596037656068802, -0.1619601845741272, -0.005134068429470062, 0.510623574256897, -0.16753126680850983, 0.10222212225198746, 0.24652929604053497, 0.027873612940311432, -0.09049687534570694, 0.13056135177612305, -0.2611618936061859, -0.5131599307060242, -0.3502133786678314, 0.2658132016658783, 0.035602815449237823, -0.074461929500103, -0.25543129444122314, 0.015602771192789078, 0.09142133593559265, 0.20827782154083252, -0.213351309299469, -0.25294363498687744, -0.30555102229118347, -0.03276238217949867, 0.28022804856300354, 0.32742542028427124, -0.3259853720664978, 0.0016578510403633118, -0.10044682770967484, -0.2188025414943695, 0.04140247032046318, 0.2085925042629242, -0.3016658425331116, 0.20887944102287292, -0.10445161908864975, 0.10960869491100311, 0.15639425814151764, -0.4672550559043884, -0.26182863116264343, 0.2249239832162857, 0.008027821779251099, -0.2027759552001953, -0.13782432675361633, -0.01215244922786951, -0.05892226845026016, 0.1817512810230255, 0.09810985624790192, 0.302140474319458, -0.061094529926776886, 0.04818553477525711, -0.2115163505077362, -0.1976688951253891, -0.10296294093132019, 0.34577247500419617, 0.042271167039871216, 0.1390027403831482, 0.20002835988998413, -0.2314840853214264, 0.06719609349966049, -0.13346458971500397, -0.08547922223806381, 0.2596312165260315, 0.17079654335975647, 0.06811622530221939, 0.03154334798455238, -0.0460764579474926, -0.5464988350868225, 0.23851647973060608, 0.1520851105451584, 0.2741982936859131, -0.26503461599349976, -0.05128460377454758, -0.4634176194667816, 0.07763301581144333, -0.3745076656341553, -0.08321912586688995, 0.1788611114025116, 0.06784448027610779, 0.06694072484970093, 0.14444930851459503, -0.19192156195640564, 0.28882864117622375, -0.30694717168807983, 0.040109943598508835, -0.14830593764781952, 0.1855936497449875, -0.16672766208648682, -0.13525457680225372, 0.17294912040233612, -0.10387945920228958, 0.05825873836874962, -0.2966475784778595, -0.2748551666736603, 0.482504278421402, 0.0012197252362966537, 0.22377781569957733, 0.0026744790375232697, 0.05394923686981201, 0.128635436296463, -0.24248813092708588, -0.04044700413942337, -0.05028717592358589, 0.04338045418262482, 0.08402714878320694, -0.012748174369335175, 0.13947466015815735, 0.07920339703559875, 0.10230161249637604, 0.08954295516014099, 0.05033072829246521, 0.3731084167957306, -0.0630996897816658, 0.05255511403083801, -0.20717453956604004, 0.16401083767414093, 0.04103370010852814, 0.2085026502609253, 0.02190074510872364, -0.25077342987060547, -0.2435828447341919, 0.2033373862504959, 0.027566000819206238, -0.010000936686992645, 0.23714932799339294, -0.04521438479423523, 0.20262503623962402, 0.2026035636663437, 0.30365419387817383, 0.34625327587127686, 0.1128004640340805, -0.23874402046203613, 0.2949952483177185, -0.16165296733379364, -0.05598931759595871, 0.0445127859711647, -0.08291308581829071, 0.36694782972335815, 0.2743317186832428, 0.06939683109521866, 0.07408344000577927, -0.4737311005592346, -0.07849930226802826, -0.023685645312070847, 0.49042055010795593, -0.12455886602401733, 0.11724566668272018, -0.2654000222682953, -0.27749472856521606, -0.24197274446487427, -0.0375765897333622, -0.13775452971458435, -0.13874204456806183, -0.1552966833114624, 0.06669650226831436, -0.013973984867334366, 0.28767064213752747, -0.23127397894859314, 0.06974807381629944, 0.12428683042526245, -0.22045646607875824, -0.13288213312625885, -0.21127155423164368, -0.3053152859210968, 0.08753889799118042, 0.36746513843536377, 0.0579071044921875, 0.36747631430625916, -0.34109267592430115, 0.008232465013861656, -0.016508130356669426, -0.32010841369628906, 0.08440914750099182, -0.10939028859138489, 0.15591013431549072, 0.07050040364265442, 0.2237522006034851, -0.17007602751255035, -0.22641076147556305, 0.6276733875274658, -0.31368327140808105, -0.13289116322994232, 0.04295013099908829, -0.03835228458046913, -0.20572130382061005, -0.18207359313964844, -0.5400710105895996, -0.3777378797531128, -0.25732916593551636, 0.08137667179107666, 0.21095122396945953, 0.2434428185224533, 0.4190809726715088, 0.3446767330169678, 0.14394712448120117, -0.10571446269750595, -0.12071855366230011, -0.17632552981376648, -0.39496317505836487, 0.10054072737693787, -0.24910545349121094, -0.4323083162307739, -0.06860413402318954, 0.06229041516780853, 0.5364882349967957, 0.018618278205394745, -0.349542498588562, -0.27641555666923523, -0.16683246195316315, 0.12956589460372925, -0.1216556578874588, 0.07080888748168945, 0.320684552192688, -0.09174443781375885, -0.1171271800994873, -0.08881787955760956, -0.10106964409351349, 0.16046203672885895, -0.03867430239915848, -0.06276731938123703, 0.092669278383255, 0.3357469439506531, -0.09034579247236252, 0.5322237014770508, -0.012113655917346478, -0.33631381392478943, 0.45579108595848083, -0.13204851746559143, 0.2421812266111374, -0.354227751493454, -0.5656894445419312, 0.0709298700094223, 0.15882505476474762, 0.04661758244037628, -0.08920055627822876, 0.04333309829235077, -0.10229554027318954, -0.34857964515686035, -0.08692129701375961, -0.34945473074913025, 0.03534531965851784, 0.07706817239522934, 0.09826979786157608, 0.33666443824768066, -0.06080864369869232, -0.09079179167747498, -0.14997278153896332, 0.000045872293412685394, 0.15562571585178375, 0.38728421926498413, 0.05137376859784126, 0.13470476865768433, -0.29129907488822937, 0.12881061434745789, -0.35370561480522156, 0.29205021262168884, 0.05042555555701256, 0.4000323414802551, -0.066447913646698, -0.006877176463603973, 0.13976165652275085, -0.012654073536396027, 0.3901388645172119, -0.16334965825080872, -0.079051673412323, 0.1319674402475357, -0.1838368922472, -0.349208265542984, -0.06981456279754639, 0.05873975530266762, 0.000644835177809, -0.07742422819137573, 0.6436384320259094, 0.03310084342956543, -0.37390151619911194, 0.19397877156734467, 0.12734557688236237, -0.19824081659317017, -0.3113648295402527, -0.284726083278656, -0.3292039632797241, -0.3079221248626709, -0.16732779145240784, -0.033028494566679, 0.35186389088630676, 0.21911092102527618, 0.019607216119766235, -0.12989062070846558, -0.0052580684423446655, -0.1280585676431656, 0.18281769752502441, 0.06811627745628357, -0.007876637391746044, 0.1463286429643631, 0.20760872960090637, 0.15992528200149536, 0.33690449595451355, 0.5942881107330322, -0.2568458616733551, -0.5002080202102661, -0.06951483339071274, 0.05150077864527702, 0.21410790085792542, -0.029065564274787903, -0.14194293320178986, -0.23852163553237915, 0.03115546703338623, 0.09311976283788681, -0.24549323320388794, 0.28624042868614197, 0.3770497143268585, -0.03550153225660324, 0.028673050925135612, -0.3413775563240051, 0.4341711699962616, 0.09848921000957489, 0.04441358149051666, 0.43659552931785583, -0.03936414420604706, -0.13957591354846954, 0.14746983349323273, 0.14552487432956696, 0.5746572017669678, -0.38969022035598755, -0.07654973864555359, 0.2728121280670166, 0.044419899582862854, 0.2513248324394226, 0.2226637452840805, 0.12712141871452332, -0.34635719656944275, -0.20682381093502045, 0.007464313879609108, -0.05929406359791756, 0.3179739713668823, 0.03137694299221039, 0.0469740591943264, 0.17335806787014008, -0.05658738315105438, 0.31335392594337463, 0.027560928836464882, 0.3283928334712982, -0.10479135066270828, -0.23554763197898865, -0.427683562040329, 0.25314876437187195, -0.10588222742080688, 0.3252013027667999, -0.05211815983057022, -0.00427372008562088, -0.024289382621645927, -0.15166816115379333, -0.0210350900888443, 0.1194072738289833, -0.39667922258377075, 0.19174864888191223, 0.22798430919647217, -0.15495231747627258, -0.08643054962158203, 0.3514218330383301, 0.25439509749412537, -0.01261206716299057, -0.19757963716983795, 0.15964531898498535, -0.18784859776496887, -0.16745057702064514, -0.13289768993854523, -0.058627042919397354, 0.31439298391342163, -0.18156930804252625, -0.1954331398010254, 0.020109958946704865, 0.0074791135266423225, -0.20716486871242523, 0.16283255815505981, -0.15478040277957916, 0.26526501774787903, -0.03326159715652466, -0.2878689765930176, -0.1409372240304947, 0.07929554581642151, 0.04781198874115944, 0.2261352837085724, -0.05483651161193848, 0.09209223091602325, -0.06704535335302353, -0.05019013211131096, -0.2933439612388611, 0.018687620759010315, 0.4964331090450287, 0.07490546256303787, -0.1944495141506195, 0.4649342894554138, 0.11852684617042542, 0.0903027355670929, -0.25607725977897644, 0.04134501516819, 0.3066210150718689, -0.4442827105522156, 0.03962601721286774, 0.16730277240276337, 0.1089712381362915, 0.13673296570777893, 0.3644803464412689, 0.14285972714424133, -0.3083033859729767, 0.05905267968773842, -0.3313955068588257, -0.4534527659416199, 0.03118475154042244, -0.2731125056743622, 0.19100545346736908, -0.007649824023246765, 0.316025048494339, 0.10215315967798233, -0.059133633971214294, -0.3865189254283905, 0.06730898469686508, -0.11601560562849045, 0.04892309010028839, 0.3310287892818451, 0.07351627945899963, 0.20329038798809052, -0.08912275731563568, 0.19816268980503082, 0.05383710563182831, -0.24688023328781128, -0.33027732372283936, -0.06848148256540298, 0.06125020235776901, 0.17463982105255127, -0.2562597095966339, -0.0762539878487587, -0.23496145009994507, -0.25298258662223816, 0.011496054008603096, 0.1098116785287857, 0.17288243770599365, -0.23468570411205292, 0.3075316250324249, 0.04718074947595596, 0.08588943630456924, 0.2790689468383789, 0.03733166679739952, -0.1641242653131485, 0.17475803196430206, 0.012561382725834846, -0.009649034589529037, 0.0996067225933075, -0.09315413981676102, -0.08697205036878586, -0.044731058180332184, -0.2209000140428543, 0.0441732220351696, 0.19235441088676453, -0.2863117456436157, 0.08549515902996063, 0.0788564458489418, 0.4498380422592163, 0.10560274124145508, -0.2949090003967285, -0.04081284999847412, 0.38627609610557556, 0.31741559505462646, -0.318501740694046, -0.16133151948451996, 0.1336793750524521, 0.12272941321134567, -0.12821036577224731, 0.018163256347179413, 0.23639613389968872, -0.06752239167690277, -0.045181289315223694, 0.10256827622652054, 0.4315914809703827, -0.24551256000995636, 0.21763163805007935, 0.4695020318031311, 0.023508626967668533, 0.05169401317834854, 0.13956932723522186, 0.1381320357322693, 0.1342354416847229, 0.4555004835128784, -0.32757046818733215, 0.2404288947582245, -0.15707966685295105, 0.24623768031597137, 0.04632975161075592, -0.5383799076080322, 0.01993231102824211, 0.010830819606781006, -0.21008145809173584, -0.008019037544727325, -0.26295700669288635, 0.42185816168785095, -0.027981415390968323, -0.21092672646045685, -0.1749640554189682, 0.24520128965377808, -0.11668109148740768, -0.09916523098945618, -0.36625704169273376, -0.09198091179132462, -0.05865698307752609, 0.018079087138175964, 0.005513131618499756, -0.043700605630874634, 0.37982678413391113, 0.012641392648220062, -0.2145300954580307, -0.2277994602918625, -0.131364107131958, 0.2539505660533905, 0.025238752365112305, -0.08124087005853653, 0.42475953698158264, 0.2110418677330017, -0.058169856667518616, -0.02591298148036003, 0.4645785689353943, 0.4278830885887146, 0.5090795755386353, 0.1331222653388977, 0.09946649521589279, -0.14347749948501587, -0.00653168186545372, -0.021268006414175034, 0.22343407571315765, -0.10366813838481903, 0.0454365536570549, 0.26472538709640503, 0.23199497163295746, -0.1170492097735405, 0.24234098196029663, -0.13343778252601624, 0.3304159343242645, -0.13188022375106812, 0.09457290917634964, -0.049539901316165924, -0.00160975381731987, -0.1866309493780136, 0.32916203141212463, -0.31304213404655457, 0.1827821433544159, 0.4592876434326172, -0.0043394239619374275, 0.17303550243377686, -0.18945448100566864, 0.11907447874546051, -0.16306734085083008, 0.6306008100509644, 0.38055849075317383, 0.06648571044206619, -0.42184579372406006, -0.2910125255584717, -0.7276147603988647, 0.1564405858516693, -0.08258739113807678, 0.06108826398849487, 0.06190064921975136, -0.11401557177305222, -0.03830394893884659, 0.14759346842765808, -0.028524979948997498, 0.07449541240930557, 0.03714319318532944, -0.07219329476356506, -0.259231299161911, -0.08016768097877502, -0.19655390083789825, -0.07018003612756729, 0.020468074828386307, -0.40529125928878784, 0.21774889528751373, -0.5241701006889343, 0.13813912868499756, -0.1299019604921341, 0.056943513453006744, 0.05066261813044548, 0.10105589032173157, 0.33954402804374695, 0.020069947466254234, 0.25914525985717773, 0.02230672910809517, -0.07052882015705109, -0.26630327105522156, -0.3305782973766327, -0.23197788000106812, 0.28409817814826965, 0.1264582723379135, 0.39187711477279663, -0.2800571918487549, -0.09211517870426178, -0.4638872444629669, 0.15445922315120697, -0.03759845346212387, 0.008761944249272346, -0.04988563805818558, 0.07069391757249832, 0.0008186660706996918, -0.03337738662958145, 0.22799624502658844, 0.16862887144088745, 0.05793124437332153, 0.09514039754867554, -0.42582762241363525, -0.4247075319290161, 0.503021240234375, -0.27246585488319397, -0.1122208833694458, -0.014201249927282333, -0.11984045803546906, 0.12482395768165588, -0.09381071478128433, -0.6387228965759277, 0.36852672696113586, 0.3740670084953308, -0.03118465095758438, -0.218446284532547, 0.2790353000164032, 0.07662388682365417, 0.08817872405052185, 0.005537096410989761, 0.11607033014297485, 0.02056768536567688, -0.10499044507741928, -0.07786989957094193, -0.15694883465766907 ]
https://github.com/huggingface/datasets/issues/3960
Load local dataset error
I'm getting this problem. Script has been stuck at this part for the past 15 or so minutes: `Resolving data files: 100%|█████████████████████████████████████████| 107/107 [00:00<00:00, 472.74it/s]` I had everything working fine on an AWS EC2 node with a single GPU. Then I created an image based on the single GPU machine, and spun up a new one with 4 GPUs, so I got all of the training data ready at .cache. Turned off all checks with `verification_mode='no_checks'`. Logged in with huggingface-cli again just to be sure. Interrupting shows the code is stuck here: ``` File "/opt/conda/envs/pytorch/lib/python3.10/site-packages/datasets/arrow_reader.py", line 200, in _read_files pa_table: Table = self._get_table_from_filename(f_dict, in_memory=in_memory) File "/opt/conda/envs/pytorch/lib/python3.10/site-packages/datasets/arrow_reader.py", line 336, in _get_table_from_filename table = ArrowReader.read_table(filename, in_memory=in_memory) File "/opt/conda/envs/pytorch/lib/python3.10/site-packages/datasets/arrow_reader.py", line 357, in read_table return table_cls.from_file(filename) File "/opt/conda/envs/pytorch/lib/python3.10/site-packages/datasets/table.py", line 1059, in from_file table = _memory_mapped_arrow_table_from_file(filename) File "/opt/conda/envs/pytorch/lib/python3.10/site-packages/datasets/table.py", line 66, in _memory_mapped_arrow_table_from_file pa_table = opened_stream.read_all() ``` Is it just going to take a while or am I going to run out of money? :sweat_smile: edit: ping @mariosasko
When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this: ``` >>> from datasets import load_dataset >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']} >>> ds = load_dataset('nateraw/image-folder', data_files=data_files, cache_dir='./', task='image-classification') [] https://huggingface.co/datasets/nateraw/image-folder/resolve/main/ /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1671, in load_dataset **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1521, in load_dataset_builder **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 1031, in __init__ super().__init__(*args, **kwargs) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 255, in __init__ sanitize_patterns(data_files), base_path=base_path, use_auth_token=use_auth_token File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 584, in from_local_or_remote if not isinstance(patterns_for_key, DataFilesList) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 546, in from_local_or_remote data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 196, in resolve_patterns_locally_or_by_urls for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions): File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 146, in _resolve_single_pattern_locally raise FileNotFoundError(error_msg) FileNotFoundError: Unable to find '/ssd/datasets/imagenet/pytorch/train' at /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main ``` I need some help to solve the problem, thanks!
162
Load local dataset error When i used the datasets==1.11.0, it's all right. Util update the latest version, it get the error like this: ``` >>> from datasets import load_dataset >>> data_files={'train': ['/ssd/datasets/imagenet/pytorch/train'], 'validation': ['/ssd/datasets/imagenet/pytorch/val']} >>> ds = load_dataset('nateraw/image-folder', data_files=data_files, cache_dir='./', task='image-classification') [] https://huggingface.co/datasets/nateraw/image-folder/resolve/main/ /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1671, in load_dataset **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/load.py", line 1521, in load_dataset_builder **config_kwargs, File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 1031, in __init__ super().__init__(*args, **kwargs) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/builder.py", line 255, in __init__ sanitize_patterns(data_files), base_path=base_path, use_auth_token=use_auth_token File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 584, in from_local_or_remote if not isinstance(patterns_for_key, DataFilesList) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 546, in from_local_or_remote data_files = resolve_patterns_locally_or_by_urls(base_path, patterns, allowed_extensions) File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 196, in resolve_patterns_locally_or_by_urls for path in _resolve_single_pattern_locally(base_path, pattern, allowed_extensions): File "/gf3/home/txacs/gv3/anaconda3/envs/txacs/lib/python3.6/site-packages/datasets/data_files.py", line 146, in _resolve_single_pattern_locally raise FileNotFoundError(error_msg) FileNotFoundError: Unable to find '/ssd/datasets/imagenet/pytorch/train' at /dat/txacs/git/txacs/examples/image-classification/https:/huggingface.co/datasets/nateraw/image-folder/resolve/main ``` I need some help to solve the problem, thanks! I'm getting this problem. Script has been stuck at this part for the past 15 or so minutes: `Resolving data files: 100%|█████████████████████████████████████████| 107/107 [00:00<00:00, 472.74it/s]` I had everything working fine on an AWS EC2 node with a single GPU. Then I created an image based on the single GPU machine, and spun up a new one with 4 GPUs, so I got all of the training data ready at .cache. Turned off all checks with `verification_mode='no_checks'`. Logged in with huggingface-cli again just to be sure. Interrupting shows the code is stuck here: ``` File "/opt/conda/envs/pytorch/lib/python3.10/site-packages/datasets/arrow_reader.py", line 200, in _read_files pa_table: Table = self._get_table_from_filename(f_dict, in_memory=in_memory) File "/opt/conda/envs/pytorch/lib/python3.10/site-packages/datasets/arrow_reader.py", line 336, in _get_table_from_filename table = ArrowReader.read_table(filename, in_memory=in_memory) File "/opt/conda/envs/pytorch/lib/python3.10/site-packages/datasets/arrow_reader.py", line 357, in read_table return table_cls.from_file(filename) File "/opt/conda/envs/pytorch/lib/python3.10/site-packages/datasets/table.py", line 1059, in from_file table = _memory_mapped_arrow_table_from_file(filename) File "/opt/conda/envs/pytorch/lib/python3.10/site-packages/datasets/table.py", line 66, in _memory_mapped_arrow_table_from_file pa_table = opened_stream.read_all() ``` Is it just going to take a while or am I going to run out of money? :sweat_smile: edit: ping @mariosasko
[ -0.3380225598812103, -0.11414039134979248, -0.02119709923863411, 0.23908700048923492, 0.4253336787223816, -0.022540971636772156, 0.1771000474691391, 0.35765692591667175, 0.0669669359922409, 0.18955588340759277, -0.13147702813148499, 0.15659363567829132, -0.09680266678333282, 0.12018837779760361, -0.09796764701604843, -0.2962185740470886, -0.057913295924663544, 0.19713705778121948, -0.11787441372871399, -0.15113408863544464, -0.2569158673286438, 0.17876814305782318, -0.14001262187957764, 0.18472172319889069, -0.2956005036830902, 0.08315109461545944, -0.10548960417509079, 0.2142816185951233, -0.09651816636323929, -0.44826769828796387, 0.4221608638763428, -0.08951066434383392, 0.43298470973968506, 0.49662476778030396, -0.00010231576015939936, 0.17225125432014465, 0.4993551969528198, -0.026760341599583626, -0.12512987852096558, -0.4663240909576416, -0.13830861449241638, -0.1904052495956421, 0.30750060081481934, -0.11856693029403687, -0.20226329565048218, -0.41114482283592224, 0.04977629333734512, -0.19129326939582825, 0.4004446864128113, 0.3993334174156189, 0.3264051377773285, 0.24858808517456055, 0.02995295450091362, -0.3245801627635956, -0.16354286670684814, 0.1704920530319214, -0.14727939665317535, 0.35055941343307495, 0.2566419243812561, -0.15389849245548248, 0.14031639695167542, 0.3131348490715027, -0.05514651536941528, 0.19363820552825928, 0.31826603412628174, -0.10830292850732803, -0.06152419000864029, -0.14879266917705536, 0.36444002389907837, 0.09286418557167053, 0.5512081384658813, -0.14459535479545593, -0.3069010078907013, 0.04212547838687897, 0.11447407305240631, -0.4257180392742157, 0.23980969190597534, 0.15403985977172852, -0.14037206768989563, 0.2098691761493683, -0.2887398600578308, -0.06762006878852844, -0.23946979641914368, 0.3054100275039673, -0.11654792726039886, 0.13632537424564362, -0.16426149010658264, 0.11487582325935364, 0.23021171987056732, -0.08888613432645798, 0.16798360645771027, 0.11123327165842056, 0.1810368448495865, 0.25925835967063904, -0.3870075047016144, 0.2529418170452118, -0.0058413222432136536, -0.07459542900323868, -0.03287314251065254, -0.1497270166873932, -0.05055605620145798, -0.1193770095705986, -0.10948891192674637, 0.29077351093292236, 0.12415573000907898, 0.2429407387971878, 0.218616783618927, 0.38578009605407715, 0.03540588170289993, 0.07243882864713669, -0.16849805414676666, -0.05205263942480087, -0.3046109974384308, -0.3428439497947693, 0.17245446145534515, 0.033861756324768066, 0.21834272146224976, -0.24777425825595856, -0.18750596046447754, 0.052968356758356094, -0.02646087482571602, 0.13105778396129608, 0.004844749346375465, 0.3974284827709198, -0.07200191915035248, 0.10784132778644562, 0.11357071995735168, 0.21057263016700745, -0.21001587808132172, 0.08049972355365753, -0.3218248784542084, 0.0064728353172540665, -0.14834703505039215, -0.05037219822406769, 0.14987176656723022, -0.3902207016944885, 0.34616878628730774, -0.16460327804088593, -0.10272134840488434, 0.0681314766407013, 0.10596037656068802, -0.1619601845741272, -0.005134068429470062, 0.510623574256897, -0.16753126680850983, 0.10222212225198746, 0.24652929604053497, 0.027873612940311432, -0.09049687534570694, 0.13056135177612305, -0.2611618936061859, -0.5131599307060242, -0.3502133786678314, 0.2658132016658783, 0.035602815449237823, -0.074461929500103, -0.25543129444122314, 0.015602771192789078, 0.09142133593559265, 0.20827782154083252, -0.213351309299469, -0.25294363498687744, -0.30555102229118347, -0.03276238217949867, 0.28022804856300354, 0.32742542028427124, -0.3259853720664978, 0.0016578510403633118, -0.10044682770967484, -0.2188025414943695, 0.04140247032046318, 0.2085925042629242, -0.3016658425331116, 0.20887944102287292, -0.10445161908864975, 0.10960869491100311, 0.15639425814151764, -0.4672550559043884, -0.26182863116264343, 0.2249239832162857, 0.008027821779251099, -0.2027759552001953, -0.13782432675361633, -0.01215244922786951, -0.05892226845026016, 0.1817512810230255, 0.09810985624790192, 0.302140474319458, -0.061094529926776886, 0.04818553477525711, -0.2115163505077362, -0.1976688951253891, -0.10296294093132019, 0.34577247500419617, 0.042271167039871216, 0.1390027403831482, 0.20002835988998413, -0.2314840853214264, 0.06719609349966049, -0.13346458971500397, -0.08547922223806381, 0.2596312165260315, 0.17079654335975647, 0.06811622530221939, 0.03154334798455238, -0.0460764579474926, -0.5464988350868225, 0.23851647973060608, 0.1520851105451584, 0.2741982936859131, -0.26503461599349976, -0.05128460377454758, -0.4634176194667816, 0.07763301581144333, -0.3745076656341553, -0.08321912586688995, 0.1788611114025116, 0.06784448027610779, 0.06694072484970093, 0.14444930851459503, -0.19192156195640564, 0.28882864117622375, -0.30694717168807983, 0.040109943598508835, -0.14830593764781952, 0.1855936497449875, -0.16672766208648682, -0.13525457680225372, 0.17294912040233612, -0.10387945920228958, 0.05825873836874962, -0.2966475784778595, -0.2748551666736603, 0.482504278421402, 0.0012197252362966537, 0.22377781569957733, 0.0026744790375232697, 0.05394923686981201, 0.128635436296463, -0.24248813092708588, -0.04044700413942337, -0.05028717592358589, 0.04338045418262482, 0.08402714878320694, -0.012748174369335175, 0.13947466015815735, 0.07920339703559875, 0.10230161249637604, 0.08954295516014099, 0.05033072829246521, 0.3731084167957306, -0.0630996897816658, 0.05255511403083801, -0.20717453956604004, 0.16401083767414093, 0.04103370010852814, 0.2085026502609253, 0.02190074510872364, -0.25077342987060547, -0.2435828447341919, 0.2033373862504959, 0.027566000819206238, -0.010000936686992645, 0.23714932799339294, -0.04521438479423523, 0.20262503623962402, 0.2026035636663437, 0.30365419387817383, 0.34625327587127686, 0.1128004640340805, -0.23874402046203613, 0.2949952483177185, -0.16165296733379364, -0.05598931759595871, 0.0445127859711647, -0.08291308581829071, 0.36694782972335815, 0.2743317186832428, 0.06939683109521866, 0.07408344000577927, -0.4737311005592346, -0.07849930226802826, -0.023685645312070847, 0.49042055010795593, -0.12455886602401733, 0.11724566668272018, -0.2654000222682953, -0.27749472856521606, -0.24197274446487427, -0.0375765897333622, -0.13775452971458435, -0.13874204456806183, -0.1552966833114624, 0.06669650226831436, -0.013973984867334366, 0.28767064213752747, -0.23127397894859314, 0.06974807381629944, 0.12428683042526245, -0.22045646607875824, -0.13288213312625885, -0.21127155423164368, -0.3053152859210968, 0.08753889799118042, 0.36746513843536377, 0.0579071044921875, 0.36747631430625916, -0.34109267592430115, 0.008232465013861656, -0.016508130356669426, -0.32010841369628906, 0.08440914750099182, -0.10939028859138489, 0.15591013431549072, 0.07050040364265442, 0.2237522006034851, -0.17007602751255035, -0.22641076147556305, 0.6276733875274658, -0.31368327140808105, -0.13289116322994232, 0.04295013099908829, -0.03835228458046913, -0.20572130382061005, -0.18207359313964844, -0.5400710105895996, -0.3777378797531128, -0.25732916593551636, 0.08137667179107666, 0.21095122396945953, 0.2434428185224533, 0.4190809726715088, 0.3446767330169678, 0.14394712448120117, -0.10571446269750595, -0.12071855366230011, -0.17632552981376648, -0.39496317505836487, 0.10054072737693787, -0.24910545349121094, -0.4323083162307739, -0.06860413402318954, 0.06229041516780853, 0.5364882349967957, 0.018618278205394745, -0.349542498588562, -0.27641555666923523, -0.16683246195316315, 0.12956589460372925, -0.1216556578874588, 0.07080888748168945, 0.320684552192688, -0.09174443781375885, -0.1171271800994873, -0.08881787955760956, -0.10106964409351349, 0.16046203672885895, -0.03867430239915848, -0.06276731938123703, 0.092669278383255, 0.3357469439506531, -0.09034579247236252, 0.5322237014770508, -0.012113655917346478, -0.33631381392478943, 0.45579108595848083, -0.13204851746559143, 0.2421812266111374, -0.354227751493454, -0.5656894445419312, 0.0709298700094223, 0.15882505476474762, 0.04661758244037628, -0.08920055627822876, 0.04333309829235077, -0.10229554027318954, -0.34857964515686035, -0.08692129701375961, -0.34945473074913025, 0.03534531965851784, 0.07706817239522934, 0.09826979786157608, 0.33666443824768066, -0.06080864369869232, -0.09079179167747498, -0.14997278153896332, 0.000045872293412685394, 0.15562571585178375, 0.38728421926498413, 0.05137376859784126, 0.13470476865768433, -0.29129907488822937, 0.12881061434745789, -0.35370561480522156, 0.29205021262168884, 0.05042555555701256, 0.4000323414802551, -0.066447913646698, -0.006877176463603973, 0.13976165652275085, -0.012654073536396027, 0.3901388645172119, -0.16334965825080872, -0.079051673412323, 0.1319674402475357, -0.1838368922472, -0.349208265542984, -0.06981456279754639, 0.05873975530266762, 0.000644835177809, -0.07742422819137573, 0.6436384320259094, 0.03310084342956543, -0.37390151619911194, 0.19397877156734467, 0.12734557688236237, -0.19824081659317017, -0.3113648295402527, -0.284726083278656, -0.3292039632797241, -0.3079221248626709, -0.16732779145240784, -0.033028494566679, 0.35186389088630676, 0.21911092102527618, 0.019607216119766235, -0.12989062070846558, -0.0052580684423446655, -0.1280585676431656, 0.18281769752502441, 0.06811627745628357, -0.007876637391746044, 0.1463286429643631, 0.20760872960090637, 0.15992528200149536, 0.33690449595451355, 0.5942881107330322, -0.2568458616733551, -0.5002080202102661, -0.06951483339071274, 0.05150077864527702, 0.21410790085792542, -0.029065564274787903, -0.14194293320178986, -0.23852163553237915, 0.03115546703338623, 0.09311976283788681, -0.24549323320388794, 0.28624042868614197, 0.3770497143268585, -0.03550153225660324, 0.028673050925135612, -0.3413775563240051, 0.4341711699962616, 0.09848921000957489, 0.04441358149051666, 0.43659552931785583, -0.03936414420604706, -0.13957591354846954, 0.14746983349323273, 0.14552487432956696, 0.5746572017669678, -0.38969022035598755, -0.07654973864555359, 0.2728121280670166, 0.044419899582862854, 0.2513248324394226, 0.2226637452840805, 0.12712141871452332, -0.34635719656944275, -0.20682381093502045, 0.007464313879609108, -0.05929406359791756, 0.3179739713668823, 0.03137694299221039, 0.0469740591943264, 0.17335806787014008, -0.05658738315105438, 0.31335392594337463, 0.027560928836464882, 0.3283928334712982, -0.10479135066270828, -0.23554763197898865, -0.427683562040329, 0.25314876437187195, -0.10588222742080688, 0.3252013027667999, -0.05211815983057022, -0.00427372008562088, -0.024289382621645927, -0.15166816115379333, -0.0210350900888443, 0.1194072738289833, -0.39667922258377075, 0.19174864888191223, 0.22798430919647217, -0.15495231747627258, -0.08643054962158203, 0.3514218330383301, 0.25439509749412537, -0.01261206716299057, -0.19757963716983795, 0.15964531898498535, -0.18784859776496887, -0.16745057702064514, -0.13289768993854523, -0.058627042919397354, 0.31439298391342163, -0.18156930804252625, -0.1954331398010254, 0.020109958946704865, 0.0074791135266423225, -0.20716486871242523, 0.16283255815505981, -0.15478040277957916, 0.26526501774787903, -0.03326159715652466, -0.2878689765930176, -0.1409372240304947, 0.07929554581642151, 0.04781198874115944, 0.2261352837085724, -0.05483651161193848, 0.09209223091602325, -0.06704535335302353, -0.05019013211131096, -0.2933439612388611, 0.018687620759010315, 0.4964331090450287, 0.07490546256303787, -0.1944495141506195, 0.4649342894554138, 0.11852684617042542, 0.0903027355670929, -0.25607725977897644, 0.04134501516819, 0.3066210150718689, -0.4442827105522156, 0.03962601721286774, 0.16730277240276337, 0.1089712381362915, 0.13673296570777893, 0.3644803464412689, 0.14285972714424133, -0.3083033859729767, 0.05905267968773842, -0.3313955068588257, -0.4534527659416199, 0.03118475154042244, -0.2731125056743622, 0.19100545346736908, -0.007649824023246765, 0.316025048494339, 0.10215315967798233, -0.059133633971214294, -0.3865189254283905, 0.06730898469686508, -0.11601560562849045, 0.04892309010028839, 0.3310287892818451, 0.07351627945899963, 0.20329038798809052, -0.08912275731563568, 0.19816268980503082, 0.05383710563182831, -0.24688023328781128, -0.33027732372283936, -0.06848148256540298, 0.06125020235776901, 0.17463982105255127, -0.2562597095966339, -0.0762539878487587, -0.23496145009994507, -0.25298258662223816, 0.011496054008603096, 0.1098116785287857, 0.17288243770599365, -0.23468570411205292, 0.3075316250324249, 0.04718074947595596, 0.08588943630456924, 0.2790689468383789, 0.03733166679739952, -0.1641242653131485, 0.17475803196430206, 0.012561382725834846, -0.009649034589529037, 0.0996067225933075, -0.09315413981676102, -0.08697205036878586, -0.044731058180332184, -0.2209000140428543, 0.0441732220351696, 0.19235441088676453, -0.2863117456436157, 0.08549515902996063, 0.0788564458489418, 0.4498380422592163, 0.10560274124145508, -0.2949090003967285, -0.04081284999847412, 0.38627609610557556, 0.31741559505462646, -0.318501740694046, -0.16133151948451996, 0.1336793750524521, 0.12272941321134567, -0.12821036577224731, 0.018163256347179413, 0.23639613389968872, -0.06752239167690277, -0.045181289315223694, 0.10256827622652054, 0.4315914809703827, -0.24551256000995636, 0.21763163805007935, 0.4695020318031311, 0.023508626967668533, 0.05169401317834854, 0.13956932723522186, 0.1381320357322693, 0.1342354416847229, 0.4555004835128784, -0.32757046818733215, 0.2404288947582245, -0.15707966685295105, 0.24623768031597137, 0.04632975161075592, -0.5383799076080322, 0.01993231102824211, 0.010830819606781006, -0.21008145809173584, -0.008019037544727325, -0.26295700669288635, 0.42185816168785095, -0.027981415390968323, -0.21092672646045685, -0.1749640554189682, 0.24520128965377808, -0.11668109148740768, -0.09916523098945618, -0.36625704169273376, -0.09198091179132462, -0.05865698307752609, 0.018079087138175964, 0.005513131618499756, -0.043700605630874634, 0.37982678413391113, 0.012641392648220062, -0.2145300954580307, -0.2277994602918625, -0.131364107131958, 0.2539505660533905, 0.025238752365112305, -0.08124087005853653, 0.42475953698158264, 0.2110418677330017, -0.058169856667518616, -0.02591298148036003, 0.4645785689353943, 0.4278830885887146, 0.5090795755386353, 0.1331222653388977, 0.09946649521589279, -0.14347749948501587, -0.00653168186545372, -0.021268006414175034, 0.22343407571315765, -0.10366813838481903, 0.0454365536570549, 0.26472538709640503, 0.23199497163295746, -0.1170492097735405, 0.24234098196029663, -0.13343778252601624, 0.3304159343242645, -0.13188022375106812, 0.09457290917634964, -0.049539901316165924, -0.00160975381731987, -0.1866309493780136, 0.32916203141212463, -0.31304213404655457, 0.1827821433544159, 0.4592876434326172, -0.0043394239619374275, 0.17303550243377686, -0.18945448100566864, 0.11907447874546051, -0.16306734085083008, 0.6306008100509644, 0.38055849075317383, 0.06648571044206619, -0.42184579372406006, -0.2910125255584717, -0.7276147603988647, 0.1564405858516693, -0.08258739113807678, 0.06108826398849487, 0.06190064921975136, -0.11401557177305222, -0.03830394893884659, 0.14759346842765808, -0.028524979948997498, 0.07449541240930557, 0.03714319318532944, -0.07219329476356506, -0.259231299161911, -0.08016768097877502, -0.19655390083789825, -0.07018003612756729, 0.020468074828386307, -0.40529125928878784, 0.21774889528751373, -0.5241701006889343, 0.13813912868499756, -0.1299019604921341, 0.056943513453006744, 0.05066261813044548, 0.10105589032173157, 0.33954402804374695, 0.020069947466254234, 0.25914525985717773, 0.02230672910809517, -0.07052882015705109, -0.26630327105522156, -0.3305782973766327, -0.23197788000106812, 0.28409817814826965, 0.1264582723379135, 0.39187711477279663, -0.2800571918487549, -0.09211517870426178, -0.4638872444629669, 0.15445922315120697, -0.03759845346212387, 0.008761944249272346, -0.04988563805818558, 0.07069391757249832, 0.0008186660706996918, -0.03337738662958145, 0.22799624502658844, 0.16862887144088745, 0.05793124437332153, 0.09514039754867554, -0.42582762241363525, -0.4247075319290161, 0.503021240234375, -0.27246585488319397, -0.1122208833694458, -0.014201249927282333, -0.11984045803546906, 0.12482395768165588, -0.09381071478128433, -0.6387228965759277, 0.36852672696113586, 0.3740670084953308, -0.03118465095758438, -0.218446284532547, 0.2790353000164032, 0.07662388682365417, 0.08817872405052185, 0.005537096410989761, 0.11607033014297485, 0.02056768536567688, -0.10499044507741928, -0.07786989957094193, -0.15694883465766907 ]
https://github.com/huggingface/datasets/issues/3959
Medium-sized dataset conversion from pandas causes a crash
Hi ! It looks like an issue with pyarrow, could you try updating pyarrow and try again ?
Hi, I am suffering from the following issue: ## Describe the bug Conversion to arrow dataset from pandas dataframe of a certain size deterministically causes the following crash: ``` File "/home/datasets_crash.py", line 7, in <module> arrow=datasets.Dataset.from_pandas(d) File "/home/.conda/envs/tools/lib/python3.9/site-packages/datasets/arrow_dataset.py", line 783, in from_pandas table = InMemoryTable.from_pandas( File "/home/.conda/envs/tools/lib/python3.9/site-packages/datasets/table.py", line 379, in from_pandas return cls(pa.Table.from_pandas(*args, **kwargs)) File "pyarrow/table.pxi", line 1487, in pyarrow.lib.Table.from_pandas File "pyarrow/table.pxi", line 1532, in pyarrow.lib.Table.from_arrays File "pyarrow/table.pxi", line 1181, in pyarrow.lib.Table.validate File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: Column 1: In chunk 0: Invalid: List child array invalid: Invalid: Struct child array #1 has length smaller than expected for struct array (1192457 < 1192458) ``` ## Steps to reproduce the bug I have a dataset made from replicated single example mocking a dict representation of a publication. I copy over this example 140k times and create a pandas frame. I use 'Dataset.from_pandas' and boom ```python # Sample code to reproduce the bug import copy import datasets import pandas # serialized dict is quite long to be realistic representation of a publication content paper_as_dict=eval("{'article_id': '2020-11-05T14:25:05.321Z02bc3286-91b7-486a-9c74-4f457fbc586a', 'sections': [{'section_id': 'body.0', 'paragraphs': [{'sentences': ['11010111001000000011010011110011101110111011000100001010011100101001111010110111101011101111101010101110001111011110111010111', '1101100110110010010101010100110011000111001100100000011100010111010000011100001101111000000011010111001111001010101111110011010010111011000110100110010', '101011011000010100000010011001011011000000110011011110000101001110110000010001100110111100011100110101010010110000101', '1101101110101010101000000010101011111001111000101000110001110100111000100000011001110100110000110100111011001010110011101001001110']}]}, {'section_id': 'body.1', 'paragraphs': [{'sentences': ['11111100100100111000101001011110100110011001011011001001100110100111011010000110011000010001010100101110001001101011110111110101111100001001001000011110110010110011100110110111110011100011111000101010111010101011001110000100000001001010010010011101111100011010', '10101000110000110111110011101111000101010010001001010000001111001100000010001000001110111110010011101000000111011', '111010011111101111110011111110110001000111100101001000100110101111110000111000111111110000101001101000110011010111011101001010110110001000100000001110001111100110110001110001001100011010100110100010100111000110110100010010100101011110000110000101010010001110101100000']}, {'sentences': ['111110011110110110001111001101011110010110100011101010110101011001101110110111100000111101010110011110111101001111000101110001001010010101100111111001001000011101000100110000101', '011101101101111101001100101010000010111101100101110100101000001100010100110011010010100001101001110111100011010011011111000111111101110001010111010011010110001000010101100110000100010110101110110011001010011001100111101100001001', '1110001011011010101001100001110001110001000111111111101110100001011101101001110100000110000011010001101010101110101110101101001010100100010000000010110010010010', '11101111000111111100111110010000111101110010010101001111011001111110011000011100110001010010000100101010', '111000110110110010101100010010100001100100110010101000001000011101000100101011011010000011001011011111001101100001110010100001111110111001001010101100100110001011011100000101010010000000001100010000101100110110111101110010100010011101110110111010011011000011001010111011100000000010101001011000100000011010100011101001011001010010011110100100']}, {'sentences': ['001101111100001101001001001110000110010101011101001001111111011000111001111011101011110111000000100001110110101110001010001111110100010', '0000110010110101001100011011000011001101001110001000000110010101000011101011110110000000100111000001010000101011111011110001001100001110101010101110101011111000000011001111011110001010010111010000100100000001111001011100101111010101111001001101100101001101111000111011010110010001010010010111010000001101101111100101000111101011001000101', '00000101100101100111101010000101011100101100001100011001100100001100001010001010010011001001111001000010100010000110100111110000001000101000111100010111110011000100000111100010000100010111100010101', '111100110010100110000010010101010101110011110100000101110000000111010101111001011110010101001110000001001000010110010010011110111110010110100101110011001101110111001111100011100100011110010010100101011111111']}, {'sentences': ['1100001110101111000001011001100110001011100011110110010011001000101000011110010101010011011000111010000101010011010000000111011001000010100101000011111101000000000101111000', '1110101000100110001111000011000101110111001100101010011001100011010011111111111010101011010101010011000101001100100000110010100110110110110001101100', '00010001100100101100100111111110111111101000100110101111101111110101110001010001011100000000000011010101101001111010001110101101110011001011111101110100010000111101', '011100011101011001000110010110100100000010100010010110011000000010101110011111111101010010010001100110101010010001100010110011110001011011101010111111100100110110010111101001100101010111001', '10111000011010101111110110011010101011111001000001010010111111010010111111100100010100110100101101110100110011001000110100000111000100110000001000111010', '0010011111111011100111010001111001011101001010000010110000010111000101001101000011101110100100000000100100010010101010100011100101001000100110110000010111111110000011011101111000111010']}]}, {'section_id': 'body.2.0', 'paragraphs': [{'sentences': ['110010010011001110100100011001111100010011110111101011011011001010010010010011101011', '000110101110011011101011000000100011111000001100011011110101101011000110011010001010001101101100000111100101001011111001001101111', '1000011100100000100100100010010000111011000100110010000011110111100110110001101001010100011111010100101000111', '11110111111000110010000000000100010010110001100010001010000111011000101100011010010101110110011010110101001101110011101011101100000001000100101011010110110100101011101010010101101000011110000010101011001011000001000000001010110000100010000100011110101001111100001000100000111000001010011111111110101010100011011000010000111000110', '1001000111011000111110001111111001100001000000101000111011101101100101010110001101000000001111010111100011111000000100001001110', '100110010111010101111010100000010001110101111001010010001100001110100100100101110011010101001000100101000100100011001110001100111000010010011011000010011010010000110001000000100011110010110110011010001100111010111110011']}, {'sentences': ['10010101011100010111011111001001001010100011001001111101101001000000001111101110000111101011000001001011101110101001100010010001101111001110000100010010001001101111011111110010011011110011', '110001110010110000101111000000110010010010100000010100001111101101000101100000000110000000011111011001111000010110110001011010011011101100100110011000100110101010111010111111000111001111010110010001001110100001011011000110000000111101110000001111011011101110100000100010000110001000000110100000', '101010000000010000110110111000110000100111000001110100101101101010001010010010101010100111010110001001000101011110010011001001001110111001101101100100011110011011110101100010110111001010000001000110100000001010011111111110111010011110001001110100011011000101011000110110011011010110100100011111111011100111110110000110011011110110110011101010101111001101010110101000000001100101111010000101110', '1010100110111111111000110110111110010100000100001110101110111001011000010001110110001111111110000101001001110010001110000111010101111010111111011100100011100111111101101111000010001100101000010001100110110100110111111100100011001011000001111110010100110111000010011110111011001101100000101011111110101000011000010', '00000001110000101001110101110011101001110011000111111101111101111000010011100000101000001011001110', '101000111010010000011010011010011010010010100010110100011100100111011101010100101110100111010001000000', '01101000110001101011001101100010100011011010000000001010101000010101000110100010000000110001110001010010000000101101000011000100000110011101100001010100011111101010010110001101110101010111101100001110000011001101', '0010010111000011110010011110001010100000111100001011010100100010101010010011101101100110001001111001000110000111011110010000110101010110111111010110100000011010001001010001000110001101101000101110001011110000101101110000110010110010111001100010011011100011', '00110111110000000100110111101011000100100110001000001001101011001000010100100001100111100110000110110101111010000010101000000101000011001011101001', '0100100001000111001110110110000001000100111001101101110100100111010111110001110010110111100110011111001001000011101110100101111011000110100000111010011101']}, {'sentences': ['100001001011101111111100110111011110001101111101100001000110110000100101011000000100000', '10101001001111110101001010100110011110101101001']}]}, {'section_id': 'body.2.0.0', 'paragraphs': [{'sentences': ['1110101100001100011000101000010000100010101101010110101011100101110110110111010101001100100000000111011001000100011110101011111010100101001010000010001001101010100011110010101110011001100010000100110011000011101010001000111001000001100', '101000000011001001110101000100101010000111000111100010010001111111100110001100000100011010011010010101101111010101010000110011101001111001111011111001110001010000110101101011101111010000001100', '01100001011110010100000101001101111101010011100010011001011110110010010011100101000', '0011100111000101111000010001111100000111000101110001111010001100001000111010000101100001110101100111111', '00001100000011110001011010010110000000111110110001111000110000011011001110000000100011001010110000010000010001101010101100000010011011000101011111100010010', '1011101011101111000001100100111000011000010010011110011000110111010010111100111101100110011010000110000111000110111110101111000001000010011101111000110000100011110101101101001101000110010000001000010011011010101100', '1000010011100011100000010011011111111110101101111011101010010111000000101011000000110101111000010011', '01100000110011001110101111101101011001011101000010001100101010100011010101010100111011011110100010100111', '011011010100011011110010101000110001111110110']}]}, {'section_id': 'body.2.0.1', 'paragraphs': [{'sentences': ['00111011011101000100100111000001101001011000111100100010101001010011001011000010011111001100000100010001100101110011001000110001101011010111011111011000010011010010111010011111101000110111011100010011100111111110110111011', '011011010101101101010000001011010110011111011110100111010101010110001101000010011111000011100', '110001000110010000000111101110111110101110111000101000010001110101000101001000111000010001011101010000110001010001101001001110111110111010111010011101000101101010000', '001000111110100110000001111100000111001110111001110111001000111010001001100111001101000001001001010111000111011100001111011001111110001011000111110011111101011101000100101001111011100001000110101010101111111110011111111011000101110001000000000100111011111011001100111', '11010101100010010100010010010101001011001011000001100010101111111101001101110011001010010100000111010101', '01110000110011111000110010011010000011100000010010001111100010010100100001011011111110001100', '011101111100011101100111110101111001101010010001001110101100001101000000111000']}]}, {'section_id': 'body.2.0.2', 'paragraphs': [{'sentences': ['0111011000110100110000001011001110111000011110100111011000000001000010001111111001101111011100101110101101000111000101000010000111011010110000011101111110111110100111000111000011', '00100110111000110101100111000110100010011010010101001010011000000101000110100110011010011111000100000011000000010001010000100111101011111111101010001111010000001011100001110100000101001101101010011011101000', '000001110001010010100101010100010101001100011001001101101101110111011111101010010111010110110111011110101100001000011110111011001', '0001110010111110100110110011000001111100100100110101011010010101010100101000010101000100101000011011', '1000010010010101001100101110010111010100000110101110000000111001111111001011111010000011110001011001001001000101', '0001111100111010010100010111010110011011000000001111010010110001000011010001100111101110001110000011010101111100001000011010110100000100100001111011110110000000101000010001111001010010110101110111101101110111000100', '1000101100001000100001101110111110000100000001000010101111010011010010010111011010100011001000100100001010001100110']}]}, {'section_id': 'body.2.0.3', 'paragraphs': [{'sentences': ['1010100111100011110110101011100001011010011010100100010011000110111000001010010110111001001101111000010100100110101001010001010001000110010000001', '100010101010100111000011111101010100101110011000100011100100100111000010000011001010010111011010000101010011011110111001010110', '0110000110110110110011011000011010010000001010011000010001011110110010000100011111010100110111111010010111000101111', '10100100000011100010110110011111011011101101111000001001010100001001011010000011001010101100000', '1011111111100001001100000010000100110010101000010100111111110010110011101110000101101011101', '10001111110000011100100000101100000000010000100000011100110000011110111010011101010111101001111000100000000110000011010010001100110111100001001011101011001111110010100111001001010001010011010010010111001101110101110000101011', '101101111111101101010010000110111110000110000111001001010011111101011001011010101100010100110101101011100111100100110010001011110001110010000011101100100100001001110010000010011111100110101']}]}, {'section_id': 'body.2.1', 'paragraphs': [{'sentences': ['1010010011010011001111111001000110010001101111101011001011011000101001010101010001000110100011110101110001110110111010010010100100111000101100100101111110100000011111001101010111101010100101011011110111111110', '000010101101111100000110010110011001111100001101011101000100010001001001000000101101000001110000011010111100000010010000010101110101100010011000101110110111111001000101000111000110100001001100001010101010100011', '0000000011101110111100100010111100101010110001111101110110010000100100010000101001101111001111001001100110010011010000101001110010000000100101011101001010100100011101101001011000010111110100101010110110011001110000110010010111110110101100001011101001100111010001000010111010001010000100010010011110111100110011100011111101101000011100111110101010100110001100100000100011011010111000111110010110100010111101001001101000001100100010000111110000011101111100111101000000000']}, {'sentences': ['01011000010110011000000101101000110101011010100111011001001001100001101101111101111001101111100101111001101011011001011110110110110100001100111111010100101110111111101000101100101010110011111011100101101010100110111001111100100011001110011101000110100000001100001100110001110101001000011010000110101011010000001111100100000100101110011000001001010011011101100011000001100000011', '1001100000101000000011110100110001100001101001100011010000111111010110101111001000100111000011010100100000110110001', '10010011000110110111010110000010010000000111101000100101100111101101001100111110101001001111100001110011110000010101000001000000010100011011110011000100110101001100110111111001101000011010100110000000011110001000101010101000110010010']}]}, {'section_id': 'body.2.2', 'paragraphs': [{'sentences': ['000011000000010011000001101111000101000111111111111010001011110000011001010111010101010110001111110000010', '10101001101011101010001111011000110100000100011110010001100111111101101100010010111110110101101011000011000001101110010111011111100111110000000101110010111', '100001011110010111010110001101101001100000000001000010110101011001111100101101101111010010111111000000111001111010011111000100010001111011110001010000110010101010111110100101011011100001010101000001011011111111101', '1000110111111011101000110101001111111111000100011001000011010100001010011110001111010011011111000111011100101001011111001000010101110110101000111011111111010010001101001010110111000011110101011000010000110', '1011100000100000010101101111001001100110111000010001011010111111000000001010101001111011101011010101101001111101101100101001011101000011011010001001101100100111101111111100010011010101111011100001100001000100101100100110101000010000011000000011001100000110000001', '0001001101111001111111010000001101010110110110100110110100000100110101101010010101011000010010111011000010111110000001110101110111000010011000100110111001000111011000100101110111111', '0110010010011000011010001111001100101001100001001000010100101100010110000000101010110001001010001100111101010001110010010000111011100101101010111111101001100010001011100110010100110111010101000100001110000101110011111011111000010101010110101100010010111100100010010100111110111100101010100011101001110110010000011110001010101010000100010000100111001111011101', '000001010000010001100000101011000000110101000100010111111100101111111000110111001001110110101111110011100001001000011001010000011011', '0101101001010101001101010100011000111011001000100001110100110011100000001001010110001101010110011100111111100101101111101111011001111111110010111010011011011111011011110000101011010', '11000001110111000001100100001110000111001010000101011011101010111001011100010010010111111111000011111110010111100011100110001001100011111010100111110111001110010', '0100010110100001010101110111100011100100010111111011101001100101111110101011010010101111001000101001111000001110001100011001110010100110101100110100100000001010101101011110011001000101100111001001001110100', '100000100010011111001101010000100110011110001100000010010110110100000111111011010100101111010111001110101000100001111101001110000011010110000010100', '00100110000011100101000110110001000011101000011010101000010001111011100001111111001011100111101000001000000110110001000101111010010010001100111', '0110110100011001110011001111100010101001011111011001011001101101010010101101110101010100001000100100000111101110001001110111000110011101101010100000101', '0011111010010011011101010110100110000011000011100100101011011001110110001110001111000011010111011000110100111111011101110111000010010000011011010011011100000011101100110110100100000010110101110100110101001100111011101001010111011011110100110101110010011011010001010111110011001000010100010101010010110010010110000100110001000011010011000100101011010100100111010']}]}]}") d=pandas.DataFrame.from_records(copy.deepcopy(paper_as_dict) for _ in range(140_100)) arrow=datasets.Dataset.from_pandas(d) ``` ## Expected results The dataset should be converted without error. ## Actual results Error `pyarrow.lib.ArrowInvalid: Column 1: In chunk 0: Invalid: List child array invalid: Invalid: Struct child array #1 has length smaller than expected for struct array (1192457 < 1192458)` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: datasets==1.18.4 pandas==1.3.5 - Platform: macOS 11.6 or CentOS Linux 7 (Core) - Python version: Python 3.9.7 - PyArrow version: pyarrow==3.0.0
18
Medium-sized dataset conversion from pandas causes a crash Hi, I am suffering from the following issue: ## Describe the bug Conversion to arrow dataset from pandas dataframe of a certain size deterministically causes the following crash: ``` File "/home/datasets_crash.py", line 7, in <module> arrow=datasets.Dataset.from_pandas(d) File "/home/.conda/envs/tools/lib/python3.9/site-packages/datasets/arrow_dataset.py", line 783, in from_pandas table = InMemoryTable.from_pandas( File "/home/.conda/envs/tools/lib/python3.9/site-packages/datasets/table.py", line 379, in from_pandas return cls(pa.Table.from_pandas(*args, **kwargs)) File "pyarrow/table.pxi", line 1487, in pyarrow.lib.Table.from_pandas File "pyarrow/table.pxi", line 1532, in pyarrow.lib.Table.from_arrays File "pyarrow/table.pxi", line 1181, in pyarrow.lib.Table.validate File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: Column 1: In chunk 0: Invalid: List child array invalid: Invalid: Struct child array #1 has length smaller than expected for struct array (1192457 < 1192458) ``` ## Steps to reproduce the bug I have a dataset made from replicated single example mocking a dict representation of a publication. I copy over this example 140k times and create a pandas frame. I use 'Dataset.from_pandas' and boom ```python # Sample code to reproduce the bug import copy import datasets import pandas # serialized dict is quite long to be realistic representation of a publication content paper_as_dict=eval("{'article_id': '2020-11-05T14:25:05.321Z02bc3286-91b7-486a-9c74-4f457fbc586a', 'sections': [{'section_id': 'body.0', 'paragraphs': [{'sentences': ['11010111001000000011010011110011101110111011000100001010011100101001111010110111101011101111101010101110001111011110111010111', '1101100110110010010101010100110011000111001100100000011100010111010000011100001101111000000011010111001111001010101111110011010010111011000110100110010', '101011011000010100000010011001011011000000110011011110000101001110110000010001100110111100011100110101010010110000101', '1101101110101010101000000010101011111001111000101000110001110100111000100000011001110100110000110100111011001010110011101001001110']}]}, {'section_id': 'body.1', 'paragraphs': [{'sentences': ['11111100100100111000101001011110100110011001011011001001100110100111011010000110011000010001010100101110001001101011110111110101111100001001001000011110110010110011100110110111110011100011111000101010111010101011001110000100000001001010010010011101111100011010', '10101000110000110111110011101111000101010010001001010000001111001100000010001000001110111110010011101000000111011', '111010011111101111110011111110110001000111100101001000100110101111110000111000111111110000101001101000110011010111011101001010110110001000100000001110001111100110110001110001001100011010100110100010100111000110110100010010100101011110000110000101010010001110101100000']}, {'sentences': ['111110011110110110001111001101011110010110100011101010110101011001101110110111100000111101010110011110111101001111000101110001001010010101100111111001001000011101000100110000101', '011101101101111101001100101010000010111101100101110100101000001100010100110011010010100001101001110111100011010011011111000111111101110001010111010011010110001000010101100110000100010110101110110011001010011001100111101100001001', '1110001011011010101001100001110001110001000111111111101110100001011101101001110100000110000011010001101010101110101110101101001010100100010000000010110010010010', '11101111000111111100111110010000111101110010010101001111011001111110011000011100110001010010000100101010', '111000110110110010101100010010100001100100110010101000001000011101000100101011011010000011001011011111001101100001110010100001111110111001001010101100100110001011011100000101010010000000001100010000101100110110111101110010100010011101110110111010011011000011001010111011100000000010101001011000100000011010100011101001011001010010011110100100']}, {'sentences': ['001101111100001101001001001110000110010101011101001001111111011000111001111011101011110111000000100001110110101110001010001111110100010', '0000110010110101001100011011000011001101001110001000000110010101000011101011110110000000100111000001010000101011111011110001001100001110101010101110101011111000000011001111011110001010010111010000100100000001111001011100101111010101111001001101100101001101111000111011010110010001010010010111010000001101101111100101000111101011001000101', '00000101100101100111101010000101011100101100001100011001100100001100001010001010010011001001111001000010100010000110100111110000001000101000111100010111110011000100000111100010000100010111100010101', '111100110010100110000010010101010101110011110100000101110000000111010101111001011110010101001110000001001000010110010010011110111110010110100101110011001101110111001111100011100100011110010010100101011111111']}, {'sentences': ['1100001110101111000001011001100110001011100011110110010011001000101000011110010101010011011000111010000101010011010000000111011001000010100101000011111101000000000101111000', '1110101000100110001111000011000101110111001100101010011001100011010011111111111010101011010101010011000101001100100000110010100110110110110001101100', '00010001100100101100100111111110111111101000100110101111101111110101110001010001011100000000000011010101101001111010001110101101110011001011111101110100010000111101', '011100011101011001000110010110100100000010100010010110011000000010101110011111111101010010010001100110101010010001100010110011110001011011101010111111100100110110010111101001100101010111001', '10111000011010101111110110011010101011111001000001010010111111010010111111100100010100110100101101110100110011001000110100000111000100110000001000111010', '0010011111111011100111010001111001011101001010000010110000010111000101001101000011101110100100000000100100010010101010100011100101001000100110110000010111111110000011011101111000111010']}]}, {'section_id': 'body.2.0', 'paragraphs': [{'sentences': ['110010010011001110100100011001111100010011110111101011011011001010010010010011101011', '000110101110011011101011000000100011111000001100011011110101101011000110011010001010001101101100000111100101001011111001001101111', '1000011100100000100100100010010000111011000100110010000011110111100110110001101001010100011111010100101000111', '11110111111000110010000000000100010010110001100010001010000111011000101100011010010101110110011010110101001101110011101011101100000001000100101011010110110100101011101010010101101000011110000010101011001011000001000000001010110000100010000100011110101001111100001000100000111000001010011111111110101010100011011000010000111000110', '1001000111011000111110001111111001100001000000101000111011101101100101010110001101000000001111010111100011111000000100001001110', '100110010111010101111010100000010001110101111001010010001100001110100100100101110011010101001000100101000100100011001110001100111000010010011011000010011010010000110001000000100011110010110110011010001100111010111110011']}, {'sentences': ['10010101011100010111011111001001001010100011001001111101101001000000001111101110000111101011000001001011101110101001100010010001101111001110000100010010001001101111011111110010011011110011', '110001110010110000101111000000110010010010100000010100001111101101000101100000000110000000011111011001111000010110110001011010011011101100100110011000100110101010111010111111000111001111010110010001001110100001011011000110000000111101110000001111011011101110100000100010000110001000000110100000', '101010000000010000110110111000110000100111000001110100101101101010001010010010101010100111010110001001000101011110010011001001001110111001101101100100011110011011110101100010110111001010000001000110100000001010011111111110111010011110001001110100011011000101011000110110011011010110100100011111111011100111110110000110011011110110110011101010101111001101010110101000000001100101111010000101110', '1010100110111111111000110110111110010100000100001110101110111001011000010001110110001111111110000101001001110010001110000111010101111010111111011100100011100111111101101111000010001100101000010001100110110100110111111100100011001011000001111110010100110111000010011110111011001101100000101011111110101000011000010', '00000001110000101001110101110011101001110011000111111101111101111000010011100000101000001011001110', '101000111010010000011010011010011010010010100010110100011100100111011101010100101110100111010001000000', '01101000110001101011001101100010100011011010000000001010101000010101000110100010000000110001110001010010000000101101000011000100000110011101100001010100011111101010010110001101110101010111101100001110000011001101', '0010010111000011110010011110001010100000111100001011010100100010101010010011101101100110001001111001000110000111011110010000110101010110111111010110100000011010001001010001000110001101101000101110001011110000101101110000110010110010111001100010011011100011', '00110111110000000100110111101011000100100110001000001001101011001000010100100001100111100110000110110101111010000010101000000101000011001011101001', '0100100001000111001110110110000001000100111001101101110100100111010111110001110010110111100110011111001001000011101110100101111011000110100000111010011101']}, {'sentences': ['100001001011101111111100110111011110001101111101100001000110110000100101011000000100000', '10101001001111110101001010100110011110101101001']}]}, {'section_id': 'body.2.0.0', 'paragraphs': [{'sentences': ['1110101100001100011000101000010000100010101101010110101011100101110110110111010101001100100000000111011001000100011110101011111010100101001010000010001001101010100011110010101110011001100010000100110011000011101010001000111001000001100', '101000000011001001110101000100101010000111000111100010010001111111100110001100000100011010011010010101101111010101010000110011101001111001111011111001110001010000110101101011101111010000001100', '01100001011110010100000101001101111101010011100010011001011110110010010011100101000', '0011100111000101111000010001111100000111000101110001111010001100001000111010000101100001110101100111111', '00001100000011110001011010010110000000111110110001111000110000011011001110000000100011001010110000010000010001101010101100000010011011000101011111100010010', '1011101011101111000001100100111000011000010010011110011000110111010010111100111101100110011010000110000111000110111110101111000001000010011101111000110000100011110101101101001101000110010000001000010011011010101100', '1000010011100011100000010011011111111110101101111011101010010111000000101011000000110101111000010011', '01100000110011001110101111101101011001011101000010001100101010100011010101010100111011011110100010100111', '011011010100011011110010101000110001111110110']}]}, {'section_id': 'body.2.0.1', 'paragraphs': [{'sentences': ['00111011011101000100100111000001101001011000111100100010101001010011001011000010011111001100000100010001100101110011001000110001101011010111011111011000010011010010111010011111101000110111011100010011100111111110110111011', '011011010101101101010000001011010110011111011110100111010101010110001101000010011111000011100', '110001000110010000000111101110111110101110111000101000010001110101000101001000111000010001011101010000110001010001101001001110111110111010111010011101000101101010000', '001000111110100110000001111100000111001110111001110111001000111010001001100111001101000001001001010111000111011100001111011001111110001011000111110011111101011101000100101001111011100001000110101010101111111110011111111011000101110001000000000100111011111011001100111', '11010101100010010100010010010101001011001011000001100010101111111101001101110011001010010100000111010101', '01110000110011111000110010011010000011100000010010001111100010010100100001011011111110001100', '011101111100011101100111110101111001101010010001001110101100001101000000111000']}]}, {'section_id': 'body.2.0.2', 'paragraphs': [{'sentences': ['0111011000110100110000001011001110111000011110100111011000000001000010001111111001101111011100101110101101000111000101000010000111011010110000011101111110111110100111000111000011', '00100110111000110101100111000110100010011010010101001010011000000101000110100110011010011111000100000011000000010001010000100111101011111111101010001111010000001011100001110100000101001101101010011011101000', '000001110001010010100101010100010101001100011001001101101101110111011111101010010111010110110111011110101100001000011110111011001', '0001110010111110100110110011000001111100100100110101011010010101010100101000010101000100101000011011', '1000010010010101001100101110010111010100000110101110000000111001111111001011111010000011110001011001001001000101', '0001111100111010010100010111010110011011000000001111010010110001000011010001100111101110001110000011010101111100001000011010110100000100100001111011110110000000101000010001111001010010110101110111101101110111000100', '1000101100001000100001101110111110000100000001000010101111010011010010010111011010100011001000100100001010001100110']}]}, {'section_id': 'body.2.0.3', 'paragraphs': [{'sentences': ['1010100111100011110110101011100001011010011010100100010011000110111000001010010110111001001101111000010100100110101001010001010001000110010000001', '100010101010100111000011111101010100101110011000100011100100100111000010000011001010010111011010000101010011011110111001010110', '0110000110110110110011011000011010010000001010011000010001011110110010000100011111010100110111111010010111000101111', '10100100000011100010110110011111011011101101111000001001010100001001011010000011001010101100000', '1011111111100001001100000010000100110010101000010100111111110010110011101110000101101011101', '10001111110000011100100000101100000000010000100000011100110000011110111010011101010111101001111000100000000110000011010010001100110111100001001011101011001111110010100111001001010001010011010010010111001101110101110000101011', '101101111111101101010010000110111110000110000111001001010011111101011001011010101100010100110101101011100111100100110010001011110001110010000011101100100100001001110010000010011111100110101']}]}, {'section_id': 'body.2.1', 'paragraphs': [{'sentences': ['1010010011010011001111111001000110010001101111101011001011011000101001010101010001000110100011110101110001110110111010010010100100111000101100100101111110100000011111001101010111101010100101011011110111111110', '000010101101111100000110010110011001111100001101011101000100010001001001000000101101000001110000011010111100000010010000010101110101100010011000101110110111111001000101000111000110100001001100001010101010100011', '0000000011101110111100100010111100101010110001111101110110010000100100010000101001101111001111001001100110010011010000101001110010000000100101011101001010100100011101101001011000010111110100101010110110011001110000110010010111110110101100001011101001100111010001000010111010001010000100010010011110111100110011100011111101101000011100111110101010100110001100100000100011011010111000111110010110100010111101001001101000001100100010000111110000011101111100111101000000000']}, {'sentences': ['01011000010110011000000101101000110101011010100111011001001001100001101101111101111001101111100101111001101011011001011110110110110100001100111111010100101110111111101000101100101010110011111011100101101010100110111001111100100011001110011101000110100000001100001100110001110101001000011010000110101011010000001111100100000100101110011000001001010011011101100011000001100000011', '1001100000101000000011110100110001100001101001100011010000111111010110101111001000100111000011010100100000110110001', '10010011000110110111010110000010010000000111101000100101100111101101001100111110101001001111100001110011110000010101000001000000010100011011110011000100110101001100110111111001101000011010100110000000011110001000101010101000110010010']}]}, {'section_id': 'body.2.2', 'paragraphs': [{'sentences': ['000011000000010011000001101111000101000111111111111010001011110000011001010111010101010110001111110000010', '10101001101011101010001111011000110100000100011110010001100111111101101100010010111110110101101011000011000001101110010111011111100111110000000101110010111', '100001011110010111010110001101101001100000000001000010110101011001111100101101101111010010111111000000111001111010011111000100010001111011110001010000110010101010111110100101011011100001010101000001011011111111101', '1000110111111011101000110101001111111111000100011001000011010100001010011110001111010011011111000111011100101001011111001000010101110110101000111011111111010010001101001010110111000011110101011000010000110', '1011100000100000010101101111001001100110111000010001011010111111000000001010101001111011101011010101101001111101101100101001011101000011011010001001101100100111101111111100010011010101111011100001100001000100101100100110101000010000011000000011001100000110000001', '0001001101111001111111010000001101010110110110100110110100000100110101101010010101011000010010111011000010111110000001110101110111000010011000100110111001000111011000100101110111111', '0110010010011000011010001111001100101001100001001000010100101100010110000000101010110001001010001100111101010001110010010000111011100101101010111111101001100010001011100110010100110111010101000100001110000101110011111011111000010101010110101100010010111100100010010100111110111100101010100011101001110110010000011110001010101010000100010000100111001111011101', '000001010000010001100000101011000000110101000100010111111100101111111000110111001001110110101111110011100001001000011001010000011011', '0101101001010101001101010100011000111011001000100001110100110011100000001001010110001101010110011100111111100101101111101111011001111111110010111010011011011111011011110000101011010', '11000001110111000001100100001110000111001010000101011011101010111001011100010010010111111111000011111110010111100011100110001001100011111010100111110111001110010', '0100010110100001010101110111100011100100010111111011101001100101111110101011010010101111001000101001111000001110001100011001110010100110101100110100100000001010101101011110011001000101100111001001001110100', '100000100010011111001101010000100110011110001100000010010110110100000111111011010100101111010111001110101000100001111101001110000011010110000010100', '00100110000011100101000110110001000011101000011010101000010001111011100001111111001011100111101000001000000110110001000101111010010010001100111', '0110110100011001110011001111100010101001011111011001011001101101010010101101110101010100001000100100000111101110001001110111000110011101101010100000101', '0011111010010011011101010110100110000011000011100100101011011001110110001110001111000011010111011000110100111111011101110111000010010000011011010011011100000011101100110110100100000010110101110100110101001100111011101001010111011011110100110101110010011011010001010111110011001000010100010101010010110010010110000100110001000011010011000100101011010100100111010']}]}]}") d=pandas.DataFrame.from_records(copy.deepcopy(paper_as_dict) for _ in range(140_100)) arrow=datasets.Dataset.from_pandas(d) ``` ## Expected results The dataset should be converted without error. ## Actual results Error `pyarrow.lib.ArrowInvalid: Column 1: In chunk 0: Invalid: List child array invalid: Invalid: Struct child array #1 has length smaller than expected for struct array (1192457 < 1192458)` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: datasets==1.18.4 pandas==1.3.5 - Platform: macOS 11.6 or CentOS Linux 7 (Core) - Python version: Python 3.9.7 - PyArrow version: pyarrow==3.0.0 Hi ! It looks like an issue with pyarrow, could you try updating pyarrow and try again ?
[ -0.3885246515274048, 0.05523669719696045, 0.09809435904026031, 0.4302074909210205, 0.5165886878967285, 0.08926539868116379, 0.2436552792787552, 0.34836041927337646, -0.18180057406425476, 0.05686662718653679, 0.06946419179439545, 0.49113860726356506, -0.03995911031961441, -0.0660402923822403, -0.0872589722275734, -0.3226375877857208, 0.26789993047714233, 0.014086075127124786, -0.1913527548313141, 0.07351066172122955, -0.0385160893201828, -0.3121047019958496, -0.19740581512451172, 0.20982708036899567, -0.04182899370789528, -0.25982943177223206, -0.17831288278102875, 0.2024013102054596, -0.23593707382678986, -0.4499858319759369, 0.17770838737487793, -0.3208860754966736, 0.0681644156575203, 0.495608389377594, -0.00011505267320899293, 0.004988156259059906, 0.33352839946746826, 0.014924028888344765, -0.2826346457004547, 0.14111457765102386, -0.012254483997821808, -0.23840852081775665, 0.13773588836193085, -0.10198669135570526, 0.24857860803604126, -0.400603324174881, -0.30031341314315796, -0.2839367985725403, 0.40135490894317627, 0.3970050811767578, 0.19724473357200623, 0.10899537801742554, 0.1619364619255066, 0.021796826273202896, 0.06348954141139984, 0.19790658354759216, -0.1437850445508957, 0.42533400654792786, 0.21382015943527222, -0.03654651343822479, -0.17533066868782043, -0.08574286103248596, -0.07222311198711395, -0.09891104698181152, 0.08931683003902435, -0.17851415276527405, -0.060249291360378265, -0.14851447939872742, 0.07230258733034134, 0.38000601530075073, 0.28194132447242737, -0.5241830945014954, -0.3558889627456665, -0.24615216255187988, 0.022755276411771774, -0.058584924787282944, -0.24821364879608154, 0.11371761560440063, -0.2111261636018753, 0.20715093612670898, 0.07906045019626617, 0.05768869072198868, -0.33002135157585144, 0.005792535841464996, -0.3957046866416931, -0.1532076746225357, 0.06187964975833893, 0.16849014163017273, 0.044787466526031494, -0.27862030267715454, 0.07314489036798477, 0.05494643375277519, -0.2350221574306488, 0.040625687688589096, -0.29487261176109314, -0.1083027571439743, -0.08257418125867844, -0.31514835357666016, 0.17230093479156494, -0.023384548723697662, 0.02874334342777729, 0.11633160710334778, 0.14248491823673248, -0.06808183342218399, 0.4316396117210388, 0.04844619333744049, -0.28754115104675293, 0.30296218395233154, 0.11901616305112839, 0.09095007926225662, 0.07865272462368011, 0.18304556608200073, -0.07961201667785645, -0.23151513934135437, 0.16998910903930664, -0.22034183144569397, 0.26765942573547363, -0.26703596115112305, -0.44611504673957825, 0.22922532260417938, -0.4505382478237152, 0.4397851824760437, -0.010735341347754002, 0.2753645181655884, 0.050292689353227615, 0.4217754900455475, 0.026734739542007446, 0.15415561199188232, -0.006674538366496563, 0.0777781531214714, -0.13872645795345306, 0.09742486476898193, -0.05614078417420387, -0.046720556914806366, -0.03906208649277687, 0.13833951950073242, -0.036552995443344116, 0.10765951126813889, 0.019193246960639954, -0.2798454165458679, -0.13711412250995636, -0.23156768083572388, 0.08877702802419662, 0.13993637263774872, -0.21361447870731354, 0.1266123205423355, 0.06352246552705765, 0.04123375564813614, -0.03106728196144104, 0.2599395215511322, 0.2556859850883484, -0.04289907217025757, -0.27416232228279114, 0.17625434696674347, -0.2004588097333908, 0.020429570227861404, -0.19845405220985413, 0.20155873894691467, 0.24638885259628296, 0.12493342161178589, 0.20264501869678497, -0.34930235147476196, -0.0020959489047527313, -0.2658124566078186, -0.06268378347158432, 0.39223766326904297, -0.6538013219833374, 0.1685081124305725, 0.037315014749765396, 0.04612874239683151, 0.19524365663528442, 0.4270573854446411, -0.213981032371521, 0.0013463199138641357, 0.023792101070284843, -0.014703765511512756, 0.09137792885303497, 0.09845902025699615, -0.6465850472450256, 0.27985599637031555, -0.17557772994041443, 0.05007147789001465, -0.1931019127368927, 0.06769799441099167, 0.09597901999950409, -0.11006983369588852, 0.00913163274526596, 0.32119548320770264, -0.21843011677265167, 0.2620372474193573, -0.26777970790863037, -0.24336963891983032, 0.07704253494739532, -0.018598664551973343, 0.17700327932834625, -0.17270350456237793, 0.167634516954422, -0.0368194505572319, 0.1817193329334259, -0.15403074026107788, 0.035582803189754486, 0.35752058029174805, 0.3488970100879669, -0.3499835133552551, 0.15646018087863922, -0.11369189620018005, -0.20024344325065613, 0.18659725785255432, 0.14140768349170685, -0.08326651155948639, -0.3399321436882019, -0.16371262073516846, -0.42767441272735596, 0.34828802943229675, 0.06358976662158966, 0.2219669371843338, 0.11802305281162262, -0.22325566411018372, 0.14224591851234436, 0.060057152062654495, 0.03654516115784645, -0.060064896941185, -0.47221165895462036, 0.17200779914855957, -0.038849227130413055, 0.2030767947435379, 0.07337279617786407, -0.19146202504634857, 0.14103816449642181, 0.11396070569753647, 0.01762426272034645, -0.027547543868422508, -0.19924679398536682, 0.41924533247947693, 0.24413423240184784, 0.2961629331111908, -0.33235904574394226, -0.23041777312755585, 0.28353151679039, -0.2486688792705536, 0.24896524846553802, 0.1493941843509674, 0.148389995098114, -0.016978491097688675, -0.021544761955738068, 0.270402193069458, -0.21270053088665009, 0.06381383538246155, 0.03097648173570633, 0.1267237812280655, 0.14752286672592163, 0.004340238869190216, 0.08336282521486282, -0.1232634037733078, -0.24877704679965973, 0.15022769570350647, 0.2707173824310303, 0.11326216906309128, -0.45053091645240784, -0.004567757248878479, 0.16264431178569794, -0.17943017184734344, 0.24065163731575012, 0.18405652046203613, -0.4005486071109772, -0.03612573444843292, 0.33209919929504395, 0.38711124658584595, 0.3530367612838745, 0.2065514624118805, 0.366604208946228, 0.09534019976854324, -0.23403604328632355, 0.015074320137500763, 0.3064129650592804, 0.13078850507736206, 0.5739151835441589, -0.013264484703540802, 0.3194458484649658, 0.14237838983535767, -0.3266943097114563, -0.016666550189256668, 0.10711893439292908, 0.3929402530193329, -0.3286628723144531, 0.17372773587703705, -0.2960249185562134, -0.19501960277557373, -0.2197652906179428, -0.2775236666202545, 0.12867650389671326, -0.29705244302749634, -0.10497327148914337, 0.0190549548715353, -0.3035256564617157, 0.17825847864151, -0.15842007100582123, -0.05170528590679169, 0.2624281346797943, 0.07429736852645874, 0.03099842369556427, -0.2560713291168213, -0.34769392013549805, 0.09412351250648499, 0.4853470027446747, 0.1913878619670868, 0.2262050062417984, 0.2723965048789978, -0.06063048541545868, -0.2778785824775696, -0.24346068501472473, -0.05755535513162613, -0.13176126778125763, 0.18711991608142853, 0.11292281746864319, 0.21834532916545868, -0.20545169711112976, -0.04643513262271881, 0.0031859595328569412, 0.11149652302265167, -0.24315857887268066, 0.29813942313194275, -0.17656822502613068, -0.039750851690769196, -0.07584553956985474, 0.01608605682849884, -0.10068278014659882, -0.3247881233692169, 0.21186505258083344, -0.09232427924871445, 0.050263263285160065, 0.13308368623256683, 0.46881338953971863, 0.2599010467529297, 0.2512623369693756, -0.08566773682832718, -0.052728552371263504, 0.41702407598495483, 0.2673114240169525, 0.025889387354254723, -0.35709646344184875, -0.2630176842212677, -0.23702459037303925, 0.09805285930633545, 0.3528617024421692, -0.5645751357078552, 0.025728635489940643, -0.3222919702529907, -0.0419904887676239, -0.20486614108085632, -0.10794524848461151, 0.06301675736904144, 0.10560988634824753, -0.04514145106077194, 0.060077004134655, 0.12196475267410278, -0.06450211256742477, -0.04188141971826553, 0.10558301955461502, -0.1630312204360962, 0.6855750679969788, 0.2560943365097046, 0.5322177410125732, 0.29948529601097107, -0.41775622963905334, 0.06621915847063065, -0.09111925959587097, 0.33159518241882324, -0.10696563869714737, -0.04356507211923599, -0.0012652934528887272, -0.18524539470672607, -0.21719303727149963, -0.15280430018901825, -0.22041907906532288, -0.338031530380249, 0.11325961351394653, -0.027050359174609184, 0.16164609789848328, -0.25803449749946594, 0.08403264731168747, -0.5991696119308472, 0.03649098798632622, -0.013857872225344181, 0.12742877006530762, -0.05053171142935753, 0.04250665381550789, 0.21575266122817993, -0.3841480016708374, -0.08280984312295914, -0.10508932173252106, 0.008878745138645172, -0.04726298525929451, -0.41767680644989014, 0.15157781541347504, 0.1891755312681198, 0.609183132648468, 0.30557453632354736, -0.32057103514671326, -0.08278344571590424, -0.02699284814298153, 0.3933982849121094, -0.0036926493048667908, -0.15240927040576935, 0.0009759850800037384, 0.27382537722587585, -0.8665077686309814, 0.07196603715419769, -0.1681416630744934, 0.30166614055633545, 0.008921930566430092, 0.08203449845314026, -0.28999775648117065, 0.06444448232650757, 0.1273902952671051, 0.4193399250507355, 0.1389354169368744, 0.111920565366745, -0.03189094364643097, -0.22209441661834717, -0.1578386127948761, 0.3290959894657135, 0.24682874977588654, 0.10201405733823776, -0.1895761787891388, -0.400445818901062, -0.4385952651500702, -0.22749221324920654, 0.06301461905241013, 0.40549635887145996, 0.3498130142688751, -0.39314255118370056, 0.3500839173793793, -0.3094841539859772, 0.02276529371738434, 0.7161819934844971, 0.5175678730010986, 0.10351070761680603, -0.3750332295894623, -0.05241554230451584, 0.10096833109855652, 0.2215065062046051, 0.3786054253578186, -0.16688475012779236, -0.043630652129650116, -0.24758413434028625, 0.004931062459945679, -0.061046052724123, -0.12651830911636353, 0.03023185394704342, -0.06831501424312592, -0.22144603729248047, 0.24642300605773926, 0.5124073624610901, 0.13753890991210938, 0.006261862814426422, 0.4205023944377899, 0.26337748765945435, -0.2514771819114685, 0.4689320921897888, 0.3891201913356781, 0.7829772233963013, -0.0801277607679367, -0.08594931662082672, 0.42821037769317627, -0.15272203087806702, 0.2775721251964569, 0.5069602727890015, -0.13800659775733948, -0.489211767911911, -0.14596161246299744, 0.0442870631814003, -0.2773568332195282, 0.12930691242218018, 0.06715954095125198, -0.22717610001564026, 0.02944060228765011, -0.17164617776870728, 0.04276669770479202, -0.028228269889950752, 0.09556043148040771, -0.35479745268821716, -0.230301633477211, -0.4009611904621124, 0.11602963507175446, -0.05202578753232956, -0.3358425498008728, 0.03521532937884331, -0.020928774029016495, -0.550320565700531, 0.0377994105219841, -0.5280419588088989, 0.11103976517915726, -0.4671602249145508, 0.28221672773361206, 0.22006836533546448, -0.33218836784362793, 0.21028301119804382, 0.09746537357568741, 0.03750980645418167, 0.08924394100904465, -0.113629549741745, 0.12663410604000092, 0.09968173503875732, 0.02210976555943489, 0.24690456688404083, -0.17630504071712494, 0.341957688331604, 0.2183208167552948, -0.024638347327709198, 0.12151402235031128, -0.14453500509262085, 0.0647474154829979, 0.11710229516029358, 0.014372650533914566, -0.009476244449615479, -0.3091661036014557, -0.2754366397857666, -0.2775574326515198, -0.09761208295822144, -0.2725468873977661, 0.10579100251197815, -0.023110881447792053, 0.04000772908329964, 0.21226122975349426, -0.08628588914871216, -0.10766557604074478, -0.00691763311624527, 0.19783639907836914, 0.06573779135942459, 0.21607458591461182, 0.3591231107711792, 0.19652718305587769, -0.1510559469461441, -0.10854603350162506, 0.2928987443447113, 0.13052897155284882, -0.4943602681159973, 0.2517831325531006, -0.46429407596588135, -0.1291215568780899, 0.1151716411113739, -0.00408921018242836, 0.2571491599082947, 0.12039859592914581, -0.3453689217567444, -0.2235380858182907, -0.42892783880233765, 0.28939977288246155, 0.08763931691646576, 0.358841210603714, -0.22791406512260437, 0.006246221251785755, -0.2765209376811981, 0.04080084338784218, -0.23675589263439178, 0.25029319524765015, -0.18905216455459595, 0.18445636332035065, -0.3076973855495453, -0.0771692618727684, -0.22940164804458618, -0.251424640417099, 0.08710025250911713, 0.4606267213821411, 0.14929081499576569, -0.18459904193878174, -0.024179397150874138, 0.03399157524108887, 0.07847912609577179, -0.057958051562309265, 0.022418148815631866, -0.09878814220428467, -0.10931949317455292, -0.07087277621030807, 0.11879114806652069, 0.1704210340976715, -0.23621727526187897, -0.16147015988826752, 0.4188922941684723, 0.07376886159181595, -0.10418302565813065, 0.20021674036979675, -0.3165186941623688, 0.31724876165390015, 0.05450459569692612, 0.38491854071617126, 0.23382222652435303, -0.08058935403823853, -0.06311950087547302, 0.15324586629867554, -0.11058977246284485, -0.1711220145225525, 0.4006921648979187, -0.16413412988185883, -0.37238895893096924, 0.20845405757427216, 0.2781975567340851, 0.6031711101531982, -0.3753553628921509, -0.09586314857006073, 0.07950654625892639, 0.17773430049419403, -0.2882612645626068, -0.16233213245868683, -0.012166090309619904, -0.2178526371717453, 0.018383514136075974, 0.39322489500045776, 0.19247391819953918, -0.3160085678100586, -0.049571096897125244, 0.04577808082103729, 0.0892106294631958, 0.0877818688750267, -0.04083935543894768, 0.576580822467804, -0.1116328239440918, -0.22361673414707184, 0.22092047333717346, 0.010664444416761398, 0.6973755955696106, 0.4334191679954529, 0.1221756637096405, 0.33158373832702637, -0.04019167274236679, -0.01870674267411232, 0.18046027421951294, -0.20607785880565643, 0.11660796403884888, 0.17466911673545837, -0.22482642531394958, -0.06034281104803085, 0.24740555882453918, 0.30176499485969543, 0.0993073508143425, -0.06939957290887833, -0.04398082196712494, -0.07708516716957092, -0.314010888338089, -0.011897366493940353, 0.03836147487163544, -0.10005182027816772, -0.14955200254917145, -0.13317866623401642, -0.18251346051692963, -0.30852603912353516, 0.22179372608661652, 0.07401476055383682, -0.034199222922325134, -0.2961210310459137, 0.22458386421203613, 0.36758551001548767, 0.14639616012573242, -0.23356205224990845, 0.02543734572827816, 0.3013005256652832, -0.24241262674331665, -0.23006993532180786, 0.1464054435491562, 0.48708951473236084, 0.2521282136440277, -0.3529069721698761, 0.153610959649086, 0.4857374131679535, -0.28790903091430664, 0.1544397473335266, -0.004207508638501167, -0.023469753563404083, 0.20517319440841675, 0.4668518304824829, 0.10542501509189606, -0.07344067841768265, -0.25876128673553467, 0.14723609387874603, 0.15119169652462006, -0.21844489872455597, 0.18016931414604187, -0.2484559714794159, -0.3354804515838623, -0.04462161660194397, -0.06647118180990219, -0.14722183346748352, -0.14284703135490417, 0.3533342778682709, -0.3449609577655792, 0.09730447083711624, -0.0957043468952179, 0.055296435952186584, -0.08159974217414856, 0.4515330493450165, 0.41177257895469666, 0.13843271136283875, -0.0760766863822937, -0.18742357194423676, -0.3873208463191986, 0.3420194387435913, -0.1844540238380432, -0.0283750481903553, 0.2601722180843353, 0.21308667957782745, 0.06654871255159378, 0.1908741593360901, 0.116847924888134, 0.4342319667339325, -0.23102018237113953, 0.45375362038612366, -0.30861636996269226, -0.3866294026374817, -0.025719188153743744, -0.3007904887199402, -0.048810720443725586, -0.43851739168167114, 0.29929518699645996, -0.11249428987503052, 0.05073927342891693, 0.01549591962248087, -0.18235522508621216, -0.048976242542266846, 0.11667777597904205, 0.42712920904159546, 0.08338908106088638, 0.06300649046897888, 0.11363213509321213, -0.15148282051086426, -0.14087335765361786, -0.1488991528749466, -0.2716714143753052, 0.6303752064704895, -0.039363447576761246, 0.3425813317298889, 0.06877923011779785, -0.1104302704334259, 0.10996988415718079, -0.09598267078399658, 0.153396338224411, 0.09763068705797195, -0.3591245114803314, 0.11812830716371536, -0.28820401430130005, 0.1769338697195053, 0.034454572945833206, 0.1269853413105011, 0.04933779686689377, 0.39013704657554626, -0.019886881113052368, -0.43249785900115967, 0.3553686738014221, -0.18133820593357086, -0.1582001894712448, 0.0767941027879715, -0.048078879714012146, 0.08243812620639801, -0.23796537518501282, -0.46859484910964966, -0.05238620191812515, 0.22939220070838928, -0.18559861183166504, 0.023391935974359512, -0.0876728743314743, 0.028697166591882706, 0.1785733550786972, -0.24907764792442322, 0.6088380813598633, -0.2562522292137146, 0.0008442942053079605, 0.08947792649269104, -0.26736879348754883 ]
https://github.com/huggingface/datasets/issues/3959
Medium-sized dataset conversion from pandas causes a crash
I´m getting the same problem with some files, @albertvillanova did you find a solution to this?
Hi, I am suffering from the following issue: ## Describe the bug Conversion to arrow dataset from pandas dataframe of a certain size deterministically causes the following crash: ``` File "/home/datasets_crash.py", line 7, in <module> arrow=datasets.Dataset.from_pandas(d) File "/home/.conda/envs/tools/lib/python3.9/site-packages/datasets/arrow_dataset.py", line 783, in from_pandas table = InMemoryTable.from_pandas( File "/home/.conda/envs/tools/lib/python3.9/site-packages/datasets/table.py", line 379, in from_pandas return cls(pa.Table.from_pandas(*args, **kwargs)) File "pyarrow/table.pxi", line 1487, in pyarrow.lib.Table.from_pandas File "pyarrow/table.pxi", line 1532, in pyarrow.lib.Table.from_arrays File "pyarrow/table.pxi", line 1181, in pyarrow.lib.Table.validate File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: Column 1: In chunk 0: Invalid: List child array invalid: Invalid: Struct child array #1 has length smaller than expected for struct array (1192457 < 1192458) ``` ## Steps to reproduce the bug I have a dataset made from replicated single example mocking a dict representation of a publication. I copy over this example 140k times and create a pandas frame. I use 'Dataset.from_pandas' and boom ```python # Sample code to reproduce the bug import copy import datasets import pandas # serialized dict is quite long to be realistic representation of a publication content paper_as_dict=eval("{'article_id': '2020-11-05T14:25:05.321Z02bc3286-91b7-486a-9c74-4f457fbc586a', 'sections': [{'section_id': 'body.0', 'paragraphs': [{'sentences': ['11010111001000000011010011110011101110111011000100001010011100101001111010110111101011101111101010101110001111011110111010111', '1101100110110010010101010100110011000111001100100000011100010111010000011100001101111000000011010111001111001010101111110011010010111011000110100110010', '101011011000010100000010011001011011000000110011011110000101001110110000010001100110111100011100110101010010110000101', '1101101110101010101000000010101011111001111000101000110001110100111000100000011001110100110000110100111011001010110011101001001110']}]}, {'section_id': 'body.1', 'paragraphs': [{'sentences': ['11111100100100111000101001011110100110011001011011001001100110100111011010000110011000010001010100101110001001101011110111110101111100001001001000011110110010110011100110110111110011100011111000101010111010101011001110000100000001001010010010011101111100011010', '10101000110000110111110011101111000101010010001001010000001111001100000010001000001110111110010011101000000111011', '111010011111101111110011111110110001000111100101001000100110101111110000111000111111110000101001101000110011010111011101001010110110001000100000001110001111100110110001110001001100011010100110100010100111000110110100010010100101011110000110000101010010001110101100000']}, {'sentences': ['111110011110110110001111001101011110010110100011101010110101011001101110110111100000111101010110011110111101001111000101110001001010010101100111111001001000011101000100110000101', '011101101101111101001100101010000010111101100101110100101000001100010100110011010010100001101001110111100011010011011111000111111101110001010111010011010110001000010101100110000100010110101110110011001010011001100111101100001001', '1110001011011010101001100001110001110001000111111111101110100001011101101001110100000110000011010001101010101110101110101101001010100100010000000010110010010010', '11101111000111111100111110010000111101110010010101001111011001111110011000011100110001010010000100101010', '111000110110110010101100010010100001100100110010101000001000011101000100101011011010000011001011011111001101100001110010100001111110111001001010101100100110001011011100000101010010000000001100010000101100110110111101110010100010011101110110111010011011000011001010111011100000000010101001011000100000011010100011101001011001010010011110100100']}, {'sentences': ['001101111100001101001001001110000110010101011101001001111111011000111001111011101011110111000000100001110110101110001010001111110100010', '0000110010110101001100011011000011001101001110001000000110010101000011101011110110000000100111000001010000101011111011110001001100001110101010101110101011111000000011001111011110001010010111010000100100000001111001011100101111010101111001001101100101001101111000111011010110010001010010010111010000001101101111100101000111101011001000101', '00000101100101100111101010000101011100101100001100011001100100001100001010001010010011001001111001000010100010000110100111110000001000101000111100010111110011000100000111100010000100010111100010101', '111100110010100110000010010101010101110011110100000101110000000111010101111001011110010101001110000001001000010110010010011110111110010110100101110011001101110111001111100011100100011110010010100101011111111']}, {'sentences': ['1100001110101111000001011001100110001011100011110110010011001000101000011110010101010011011000111010000101010011010000000111011001000010100101000011111101000000000101111000', '1110101000100110001111000011000101110111001100101010011001100011010011111111111010101011010101010011000101001100100000110010100110110110110001101100', '00010001100100101100100111111110111111101000100110101111101111110101110001010001011100000000000011010101101001111010001110101101110011001011111101110100010000111101', '011100011101011001000110010110100100000010100010010110011000000010101110011111111101010010010001100110101010010001100010110011110001011011101010111111100100110110010111101001100101010111001', '10111000011010101111110110011010101011111001000001010010111111010010111111100100010100110100101101110100110011001000110100000111000100110000001000111010', '0010011111111011100111010001111001011101001010000010110000010111000101001101000011101110100100000000100100010010101010100011100101001000100110110000010111111110000011011101111000111010']}]}, {'section_id': 'body.2.0', 'paragraphs': [{'sentences': ['110010010011001110100100011001111100010011110111101011011011001010010010010011101011', '000110101110011011101011000000100011111000001100011011110101101011000110011010001010001101101100000111100101001011111001001101111', '1000011100100000100100100010010000111011000100110010000011110111100110110001101001010100011111010100101000111', '11110111111000110010000000000100010010110001100010001010000111011000101100011010010101110110011010110101001101110011101011101100000001000100101011010110110100101011101010010101101000011110000010101011001011000001000000001010110000100010000100011110101001111100001000100000111000001010011111111110101010100011011000010000111000110', '1001000111011000111110001111111001100001000000101000111011101101100101010110001101000000001111010111100011111000000100001001110', '100110010111010101111010100000010001110101111001010010001100001110100100100101110011010101001000100101000100100011001110001100111000010010011011000010011010010000110001000000100011110010110110011010001100111010111110011']}, {'sentences': ['10010101011100010111011111001001001010100011001001111101101001000000001111101110000111101011000001001011101110101001100010010001101111001110000100010010001001101111011111110010011011110011', '110001110010110000101111000000110010010010100000010100001111101101000101100000000110000000011111011001111000010110110001011010011011101100100110011000100110101010111010111111000111001111010110010001001110100001011011000110000000111101110000001111011011101110100000100010000110001000000110100000', '101010000000010000110110111000110000100111000001110100101101101010001010010010101010100111010110001001000101011110010011001001001110111001101101100100011110011011110101100010110111001010000001000110100000001010011111111110111010011110001001110100011011000101011000110110011011010110100100011111111011100111110110000110011011110110110011101010101111001101010110101000000001100101111010000101110', '1010100110111111111000110110111110010100000100001110101110111001011000010001110110001111111110000101001001110010001110000111010101111010111111011100100011100111111101101111000010001100101000010001100110110100110111111100100011001011000001111110010100110111000010011110111011001101100000101011111110101000011000010', '00000001110000101001110101110011101001110011000111111101111101111000010011100000101000001011001110', '101000111010010000011010011010011010010010100010110100011100100111011101010100101110100111010001000000', '01101000110001101011001101100010100011011010000000001010101000010101000110100010000000110001110001010010000000101101000011000100000110011101100001010100011111101010010110001101110101010111101100001110000011001101', '0010010111000011110010011110001010100000111100001011010100100010101010010011101101100110001001111001000110000111011110010000110101010110111111010110100000011010001001010001000110001101101000101110001011110000101101110000110010110010111001100010011011100011', '00110111110000000100110111101011000100100110001000001001101011001000010100100001100111100110000110110101111010000010101000000101000011001011101001', '0100100001000111001110110110000001000100111001101101110100100111010111110001110010110111100110011111001001000011101110100101111011000110100000111010011101']}, {'sentences': ['100001001011101111111100110111011110001101111101100001000110110000100101011000000100000', '10101001001111110101001010100110011110101101001']}]}, {'section_id': 'body.2.0.0', 'paragraphs': [{'sentences': ['1110101100001100011000101000010000100010101101010110101011100101110110110111010101001100100000000111011001000100011110101011111010100101001010000010001001101010100011110010101110011001100010000100110011000011101010001000111001000001100', '101000000011001001110101000100101010000111000111100010010001111111100110001100000100011010011010010101101111010101010000110011101001111001111011111001110001010000110101101011101111010000001100', '01100001011110010100000101001101111101010011100010011001011110110010010011100101000', '0011100111000101111000010001111100000111000101110001111010001100001000111010000101100001110101100111111', '00001100000011110001011010010110000000111110110001111000110000011011001110000000100011001010110000010000010001101010101100000010011011000101011111100010010', '1011101011101111000001100100111000011000010010011110011000110111010010111100111101100110011010000110000111000110111110101111000001000010011101111000110000100011110101101101001101000110010000001000010011011010101100', '1000010011100011100000010011011111111110101101111011101010010111000000101011000000110101111000010011', '01100000110011001110101111101101011001011101000010001100101010100011010101010100111011011110100010100111', '011011010100011011110010101000110001111110110']}]}, {'section_id': 'body.2.0.1', 'paragraphs': [{'sentences': ['00111011011101000100100111000001101001011000111100100010101001010011001011000010011111001100000100010001100101110011001000110001101011010111011111011000010011010010111010011111101000110111011100010011100111111110110111011', '011011010101101101010000001011010110011111011110100111010101010110001101000010011111000011100', '110001000110010000000111101110111110101110111000101000010001110101000101001000111000010001011101010000110001010001101001001110111110111010111010011101000101101010000', '001000111110100110000001111100000111001110111001110111001000111010001001100111001101000001001001010111000111011100001111011001111110001011000111110011111101011101000100101001111011100001000110101010101111111110011111111011000101110001000000000100111011111011001100111', '11010101100010010100010010010101001011001011000001100010101111111101001101110011001010010100000111010101', '01110000110011111000110010011010000011100000010010001111100010010100100001011011111110001100', '011101111100011101100111110101111001101010010001001110101100001101000000111000']}]}, {'section_id': 'body.2.0.2', 'paragraphs': [{'sentences': ['0111011000110100110000001011001110111000011110100111011000000001000010001111111001101111011100101110101101000111000101000010000111011010110000011101111110111110100111000111000011', '00100110111000110101100111000110100010011010010101001010011000000101000110100110011010011111000100000011000000010001010000100111101011111111101010001111010000001011100001110100000101001101101010011011101000', '000001110001010010100101010100010101001100011001001101101101110111011111101010010111010110110111011110101100001000011110111011001', '0001110010111110100110110011000001111100100100110101011010010101010100101000010101000100101000011011', '1000010010010101001100101110010111010100000110101110000000111001111111001011111010000011110001011001001001000101', '0001111100111010010100010111010110011011000000001111010010110001000011010001100111101110001110000011010101111100001000011010110100000100100001111011110110000000101000010001111001010010110101110111101101110111000100', '1000101100001000100001101110111110000100000001000010101111010011010010010111011010100011001000100100001010001100110']}]}, {'section_id': 'body.2.0.3', 'paragraphs': [{'sentences': ['1010100111100011110110101011100001011010011010100100010011000110111000001010010110111001001101111000010100100110101001010001010001000110010000001', '100010101010100111000011111101010100101110011000100011100100100111000010000011001010010111011010000101010011011110111001010110', '0110000110110110110011011000011010010000001010011000010001011110110010000100011111010100110111111010010111000101111', '10100100000011100010110110011111011011101101111000001001010100001001011010000011001010101100000', '1011111111100001001100000010000100110010101000010100111111110010110011101110000101101011101', '10001111110000011100100000101100000000010000100000011100110000011110111010011101010111101001111000100000000110000011010010001100110111100001001011101011001111110010100111001001010001010011010010010111001101110101110000101011', '101101111111101101010010000110111110000110000111001001010011111101011001011010101100010100110101101011100111100100110010001011110001110010000011101100100100001001110010000010011111100110101']}]}, {'section_id': 'body.2.1', 'paragraphs': [{'sentences': ['1010010011010011001111111001000110010001101111101011001011011000101001010101010001000110100011110101110001110110111010010010100100111000101100100101111110100000011111001101010111101010100101011011110111111110', '000010101101111100000110010110011001111100001101011101000100010001001001000000101101000001110000011010111100000010010000010101110101100010011000101110110111111001000101000111000110100001001100001010101010100011', '0000000011101110111100100010111100101010110001111101110110010000100100010000101001101111001111001001100110010011010000101001110010000000100101011101001010100100011101101001011000010111110100101010110110011001110000110010010111110110101100001011101001100111010001000010111010001010000100010010011110111100110011100011111101101000011100111110101010100110001100100000100011011010111000111110010110100010111101001001101000001100100010000111110000011101111100111101000000000']}, {'sentences': ['01011000010110011000000101101000110101011010100111011001001001100001101101111101111001101111100101111001101011011001011110110110110100001100111111010100101110111111101000101100101010110011111011100101101010100110111001111100100011001110011101000110100000001100001100110001110101001000011010000110101011010000001111100100000100101110011000001001010011011101100011000001100000011', '1001100000101000000011110100110001100001101001100011010000111111010110101111001000100111000011010100100000110110001', '10010011000110110111010110000010010000000111101000100101100111101101001100111110101001001111100001110011110000010101000001000000010100011011110011000100110101001100110111111001101000011010100110000000011110001000101010101000110010010']}]}, {'section_id': 'body.2.2', 'paragraphs': [{'sentences': ['000011000000010011000001101111000101000111111111111010001011110000011001010111010101010110001111110000010', '10101001101011101010001111011000110100000100011110010001100111111101101100010010111110110101101011000011000001101110010111011111100111110000000101110010111', '100001011110010111010110001101101001100000000001000010110101011001111100101101101111010010111111000000111001111010011111000100010001111011110001010000110010101010111110100101011011100001010101000001011011111111101', '1000110111111011101000110101001111111111000100011001000011010100001010011110001111010011011111000111011100101001011111001000010101110110101000111011111111010010001101001010110111000011110101011000010000110', '1011100000100000010101101111001001100110111000010001011010111111000000001010101001111011101011010101101001111101101100101001011101000011011010001001101100100111101111111100010011010101111011100001100001000100101100100110101000010000011000000011001100000110000001', '0001001101111001111111010000001101010110110110100110110100000100110101101010010101011000010010111011000010111110000001110101110111000010011000100110111001000111011000100101110111111', '0110010010011000011010001111001100101001100001001000010100101100010110000000101010110001001010001100111101010001110010010000111011100101101010111111101001100010001011100110010100110111010101000100001110000101110011111011111000010101010110101100010010111100100010010100111110111100101010100011101001110110010000011110001010101010000100010000100111001111011101', '000001010000010001100000101011000000110101000100010111111100101111111000110111001001110110101111110011100001001000011001010000011011', '0101101001010101001101010100011000111011001000100001110100110011100000001001010110001101010110011100111111100101101111101111011001111111110010111010011011011111011011110000101011010', '11000001110111000001100100001110000111001010000101011011101010111001011100010010010111111111000011111110010111100011100110001001100011111010100111110111001110010', '0100010110100001010101110111100011100100010111111011101001100101111110101011010010101111001000101001111000001110001100011001110010100110101100110100100000001010101101011110011001000101100111001001001110100', '100000100010011111001101010000100110011110001100000010010110110100000111111011010100101111010111001110101000100001111101001110000011010110000010100', '00100110000011100101000110110001000011101000011010101000010001111011100001111111001011100111101000001000000110110001000101111010010010001100111', '0110110100011001110011001111100010101001011111011001011001101101010010101101110101010100001000100100000111101110001001110111000110011101101010100000101', '0011111010010011011101010110100110000011000011100100101011011001110110001110001111000011010111011000110100111111011101110111000010010000011011010011011100000011101100110110100100000010110101110100110101001100111011101001010111011011110100110101110010011011010001010111110011001000010100010101010010110010010110000100110001000011010011000100101011010100100111010']}]}]}") d=pandas.DataFrame.from_records(copy.deepcopy(paper_as_dict) for _ in range(140_100)) arrow=datasets.Dataset.from_pandas(d) ``` ## Expected results The dataset should be converted without error. ## Actual results Error `pyarrow.lib.ArrowInvalid: Column 1: In chunk 0: Invalid: List child array invalid: Invalid: Struct child array #1 has length smaller than expected for struct array (1192457 < 1192458)` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: datasets==1.18.4 pandas==1.3.5 - Platform: macOS 11.6 or CentOS Linux 7 (Core) - Python version: Python 3.9.7 - PyArrow version: pyarrow==3.0.0
16
Medium-sized dataset conversion from pandas causes a crash Hi, I am suffering from the following issue: ## Describe the bug Conversion to arrow dataset from pandas dataframe of a certain size deterministically causes the following crash: ``` File "/home/datasets_crash.py", line 7, in <module> arrow=datasets.Dataset.from_pandas(d) File "/home/.conda/envs/tools/lib/python3.9/site-packages/datasets/arrow_dataset.py", line 783, in from_pandas table = InMemoryTable.from_pandas( File "/home/.conda/envs/tools/lib/python3.9/site-packages/datasets/table.py", line 379, in from_pandas return cls(pa.Table.from_pandas(*args, **kwargs)) File "pyarrow/table.pxi", line 1487, in pyarrow.lib.Table.from_pandas File "pyarrow/table.pxi", line 1532, in pyarrow.lib.Table.from_arrays File "pyarrow/table.pxi", line 1181, in pyarrow.lib.Table.validate File "pyarrow/error.pxi", line 84, in pyarrow.lib.check_status pyarrow.lib.ArrowInvalid: Column 1: In chunk 0: Invalid: List child array invalid: Invalid: Struct child array #1 has length smaller than expected for struct array (1192457 < 1192458) ``` ## Steps to reproduce the bug I have a dataset made from replicated single example mocking a dict representation of a publication. I copy over this example 140k times and create a pandas frame. I use 'Dataset.from_pandas' and boom ```python # Sample code to reproduce the bug import copy import datasets import pandas # serialized dict is quite long to be realistic representation of a publication content paper_as_dict=eval("{'article_id': '2020-11-05T14:25:05.321Z02bc3286-91b7-486a-9c74-4f457fbc586a', 'sections': [{'section_id': 'body.0', 'paragraphs': [{'sentences': ['11010111001000000011010011110011101110111011000100001010011100101001111010110111101011101111101010101110001111011110111010111', '1101100110110010010101010100110011000111001100100000011100010111010000011100001101111000000011010111001111001010101111110011010010111011000110100110010', '101011011000010100000010011001011011000000110011011110000101001110110000010001100110111100011100110101010010110000101', '1101101110101010101000000010101011111001111000101000110001110100111000100000011001110100110000110100111011001010110011101001001110']}]}, {'section_id': 'body.1', 'paragraphs': [{'sentences': ['11111100100100111000101001011110100110011001011011001001100110100111011010000110011000010001010100101110001001101011110111110101111100001001001000011110110010110011100110110111110011100011111000101010111010101011001110000100000001001010010010011101111100011010', '10101000110000110111110011101111000101010010001001010000001111001100000010001000001110111110010011101000000111011', '111010011111101111110011111110110001000111100101001000100110101111110000111000111111110000101001101000110011010111011101001010110110001000100000001110001111100110110001110001001100011010100110100010100111000110110100010010100101011110000110000101010010001110101100000']}, {'sentences': ['111110011110110110001111001101011110010110100011101010110101011001101110110111100000111101010110011110111101001111000101110001001010010101100111111001001000011101000100110000101', '011101101101111101001100101010000010111101100101110100101000001100010100110011010010100001101001110111100011010011011111000111111101110001010111010011010110001000010101100110000100010110101110110011001010011001100111101100001001', '1110001011011010101001100001110001110001000111111111101110100001011101101001110100000110000011010001101010101110101110101101001010100100010000000010110010010010', '11101111000111111100111110010000111101110010010101001111011001111110011000011100110001010010000100101010', '111000110110110010101100010010100001100100110010101000001000011101000100101011011010000011001011011111001101100001110010100001111110111001001010101100100110001011011100000101010010000000001100010000101100110110111101110010100010011101110110111010011011000011001010111011100000000010101001011000100000011010100011101001011001010010011110100100']}, {'sentences': ['001101111100001101001001001110000110010101011101001001111111011000111001111011101011110111000000100001110110101110001010001111110100010', '0000110010110101001100011011000011001101001110001000000110010101000011101011110110000000100111000001010000101011111011110001001100001110101010101110101011111000000011001111011110001010010111010000100100000001111001011100101111010101111001001101100101001101111000111011010110010001010010010111010000001101101111100101000111101011001000101', '00000101100101100111101010000101011100101100001100011001100100001100001010001010010011001001111001000010100010000110100111110000001000101000111100010111110011000100000111100010000100010111100010101', '111100110010100110000010010101010101110011110100000101110000000111010101111001011110010101001110000001001000010110010010011110111110010110100101110011001101110111001111100011100100011110010010100101011111111']}, {'sentences': ['1100001110101111000001011001100110001011100011110110010011001000101000011110010101010011011000111010000101010011010000000111011001000010100101000011111101000000000101111000', '1110101000100110001111000011000101110111001100101010011001100011010011111111111010101011010101010011000101001100100000110010100110110110110001101100', '00010001100100101100100111111110111111101000100110101111101111110101110001010001011100000000000011010101101001111010001110101101110011001011111101110100010000111101', '011100011101011001000110010110100100000010100010010110011000000010101110011111111101010010010001100110101010010001100010110011110001011011101010111111100100110110010111101001100101010111001', '10111000011010101111110110011010101011111001000001010010111111010010111111100100010100110100101101110100110011001000110100000111000100110000001000111010', '0010011111111011100111010001111001011101001010000010110000010111000101001101000011101110100100000000100100010010101010100011100101001000100110110000010111111110000011011101111000111010']}]}, {'section_id': 'body.2.0', 'paragraphs': [{'sentences': ['110010010011001110100100011001111100010011110111101011011011001010010010010011101011', '000110101110011011101011000000100011111000001100011011110101101011000110011010001010001101101100000111100101001011111001001101111', '1000011100100000100100100010010000111011000100110010000011110111100110110001101001010100011111010100101000111', '11110111111000110010000000000100010010110001100010001010000111011000101100011010010101110110011010110101001101110011101011101100000001000100101011010110110100101011101010010101101000011110000010101011001011000001000000001010110000100010000100011110101001111100001000100000111000001010011111111110101010100011011000010000111000110', '1001000111011000111110001111111001100001000000101000111011101101100101010110001101000000001111010111100011111000000100001001110', '100110010111010101111010100000010001110101111001010010001100001110100100100101110011010101001000100101000100100011001110001100111000010010011011000010011010010000110001000000100011110010110110011010001100111010111110011']}, {'sentences': ['10010101011100010111011111001001001010100011001001111101101001000000001111101110000111101011000001001011101110101001100010010001101111001110000100010010001001101111011111110010011011110011', '110001110010110000101111000000110010010010100000010100001111101101000101100000000110000000011111011001111000010110110001011010011011101100100110011000100110101010111010111111000111001111010110010001001110100001011011000110000000111101110000001111011011101110100000100010000110001000000110100000', '101010000000010000110110111000110000100111000001110100101101101010001010010010101010100111010110001001000101011110010011001001001110111001101101100100011110011011110101100010110111001010000001000110100000001010011111111110111010011110001001110100011011000101011000110110011011010110100100011111111011100111110110000110011011110110110011101010101111001101010110101000000001100101111010000101110', '1010100110111111111000110110111110010100000100001110101110111001011000010001110110001111111110000101001001110010001110000111010101111010111111011100100011100111111101101111000010001100101000010001100110110100110111111100100011001011000001111110010100110111000010011110111011001101100000101011111110101000011000010', '00000001110000101001110101110011101001110011000111111101111101111000010011100000101000001011001110', '101000111010010000011010011010011010010010100010110100011100100111011101010100101110100111010001000000', '01101000110001101011001101100010100011011010000000001010101000010101000110100010000000110001110001010010000000101101000011000100000110011101100001010100011111101010010110001101110101010111101100001110000011001101', '0010010111000011110010011110001010100000111100001011010100100010101010010011101101100110001001111001000110000111011110010000110101010110111111010110100000011010001001010001000110001101101000101110001011110000101101110000110010110010111001100010011011100011', '00110111110000000100110111101011000100100110001000001001101011001000010100100001100111100110000110110101111010000010101000000101000011001011101001', '0100100001000111001110110110000001000100111001101101110100100111010111110001110010110111100110011111001001000011101110100101111011000110100000111010011101']}, {'sentences': ['100001001011101111111100110111011110001101111101100001000110110000100101011000000100000', '10101001001111110101001010100110011110101101001']}]}, {'section_id': 'body.2.0.0', 'paragraphs': [{'sentences': ['1110101100001100011000101000010000100010101101010110101011100101110110110111010101001100100000000111011001000100011110101011111010100101001010000010001001101010100011110010101110011001100010000100110011000011101010001000111001000001100', '101000000011001001110101000100101010000111000111100010010001111111100110001100000100011010011010010101101111010101010000110011101001111001111011111001110001010000110101101011101111010000001100', '01100001011110010100000101001101111101010011100010011001011110110010010011100101000', '0011100111000101111000010001111100000111000101110001111010001100001000111010000101100001110101100111111', '00001100000011110001011010010110000000111110110001111000110000011011001110000000100011001010110000010000010001101010101100000010011011000101011111100010010', '1011101011101111000001100100111000011000010010011110011000110111010010111100111101100110011010000110000111000110111110101111000001000010011101111000110000100011110101101101001101000110010000001000010011011010101100', '1000010011100011100000010011011111111110101101111011101010010111000000101011000000110101111000010011', '01100000110011001110101111101101011001011101000010001100101010100011010101010100111011011110100010100111', '011011010100011011110010101000110001111110110']}]}, {'section_id': 'body.2.0.1', 'paragraphs': [{'sentences': ['00111011011101000100100111000001101001011000111100100010101001010011001011000010011111001100000100010001100101110011001000110001101011010111011111011000010011010010111010011111101000110111011100010011100111111110110111011', '011011010101101101010000001011010110011111011110100111010101010110001101000010011111000011100', '110001000110010000000111101110111110101110111000101000010001110101000101001000111000010001011101010000110001010001101001001110111110111010111010011101000101101010000', '001000111110100110000001111100000111001110111001110111001000111010001001100111001101000001001001010111000111011100001111011001111110001011000111110011111101011101000100101001111011100001000110101010101111111110011111111011000101110001000000000100111011111011001100111', '11010101100010010100010010010101001011001011000001100010101111111101001101110011001010010100000111010101', '01110000110011111000110010011010000011100000010010001111100010010100100001011011111110001100', '011101111100011101100111110101111001101010010001001110101100001101000000111000']}]}, {'section_id': 'body.2.0.2', 'paragraphs': [{'sentences': ['0111011000110100110000001011001110111000011110100111011000000001000010001111111001101111011100101110101101000111000101000010000111011010110000011101111110111110100111000111000011', '00100110111000110101100111000110100010011010010101001010011000000101000110100110011010011111000100000011000000010001010000100111101011111111101010001111010000001011100001110100000101001101101010011011101000', '000001110001010010100101010100010101001100011001001101101101110111011111101010010111010110110111011110101100001000011110111011001', '0001110010111110100110110011000001111100100100110101011010010101010100101000010101000100101000011011', '1000010010010101001100101110010111010100000110101110000000111001111111001011111010000011110001011001001001000101', '0001111100111010010100010111010110011011000000001111010010110001000011010001100111101110001110000011010101111100001000011010110100000100100001111011110110000000101000010001111001010010110101110111101101110111000100', '1000101100001000100001101110111110000100000001000010101111010011010010010111011010100011001000100100001010001100110']}]}, {'section_id': 'body.2.0.3', 'paragraphs': [{'sentences': ['1010100111100011110110101011100001011010011010100100010011000110111000001010010110111001001101111000010100100110101001010001010001000110010000001', '100010101010100111000011111101010100101110011000100011100100100111000010000011001010010111011010000101010011011110111001010110', '0110000110110110110011011000011010010000001010011000010001011110110010000100011111010100110111111010010111000101111', '10100100000011100010110110011111011011101101111000001001010100001001011010000011001010101100000', '1011111111100001001100000010000100110010101000010100111111110010110011101110000101101011101', '10001111110000011100100000101100000000010000100000011100110000011110111010011101010111101001111000100000000110000011010010001100110111100001001011101011001111110010100111001001010001010011010010010111001101110101110000101011', '101101111111101101010010000110111110000110000111001001010011111101011001011010101100010100110101101011100111100100110010001011110001110010000011101100100100001001110010000010011111100110101']}]}, {'section_id': 'body.2.1', 'paragraphs': [{'sentences': ['1010010011010011001111111001000110010001101111101011001011011000101001010101010001000110100011110101110001110110111010010010100100111000101100100101111110100000011111001101010111101010100101011011110111111110', '000010101101111100000110010110011001111100001101011101000100010001001001000000101101000001110000011010111100000010010000010101110101100010011000101110110111111001000101000111000110100001001100001010101010100011', '0000000011101110111100100010111100101010110001111101110110010000100100010000101001101111001111001001100110010011010000101001110010000000100101011101001010100100011101101001011000010111110100101010110110011001110000110010010111110110101100001011101001100111010001000010111010001010000100010010011110111100110011100011111101101000011100111110101010100110001100100000100011011010111000111110010110100010111101001001101000001100100010000111110000011101111100111101000000000']}, {'sentences': ['01011000010110011000000101101000110101011010100111011001001001100001101101111101111001101111100101111001101011011001011110110110110100001100111111010100101110111111101000101100101010110011111011100101101010100110111001111100100011001110011101000110100000001100001100110001110101001000011010000110101011010000001111100100000100101110011000001001010011011101100011000001100000011', '1001100000101000000011110100110001100001101001100011010000111111010110101111001000100111000011010100100000110110001', '10010011000110110111010110000010010000000111101000100101100111101101001100111110101001001111100001110011110000010101000001000000010100011011110011000100110101001100110111111001101000011010100110000000011110001000101010101000110010010']}]}, {'section_id': 'body.2.2', 'paragraphs': [{'sentences': ['000011000000010011000001101111000101000111111111111010001011110000011001010111010101010110001111110000010', '10101001101011101010001111011000110100000100011110010001100111111101101100010010111110110101101011000011000001101110010111011111100111110000000101110010111', '100001011110010111010110001101101001100000000001000010110101011001111100101101101111010010111111000000111001111010011111000100010001111011110001010000110010101010111110100101011011100001010101000001011011111111101', '1000110111111011101000110101001111111111000100011001000011010100001010011110001111010011011111000111011100101001011111001000010101110110101000111011111111010010001101001010110111000011110101011000010000110', '1011100000100000010101101111001001100110111000010001011010111111000000001010101001111011101011010101101001111101101100101001011101000011011010001001101100100111101111111100010011010101111011100001100001000100101100100110101000010000011000000011001100000110000001', '0001001101111001111111010000001101010110110110100110110100000100110101101010010101011000010010111011000010111110000001110101110111000010011000100110111001000111011000100101110111111', '0110010010011000011010001111001100101001100001001000010100101100010110000000101010110001001010001100111101010001110010010000111011100101101010111111101001100010001011100110010100110111010101000100001110000101110011111011111000010101010110101100010010111100100010010100111110111100101010100011101001110110010000011110001010101010000100010000100111001111011101', '000001010000010001100000101011000000110101000100010111111100101111111000110111001001110110101111110011100001001000011001010000011011', '0101101001010101001101010100011000111011001000100001110100110011100000001001010110001101010110011100111111100101101111101111011001111111110010111010011011011111011011110000101011010', '11000001110111000001100100001110000111001010000101011011101010111001011100010010010111111111000011111110010111100011100110001001100011111010100111110111001110010', '0100010110100001010101110111100011100100010111111011101001100101111110101011010010101111001000101001111000001110001100011001110010100110101100110100100000001010101101011110011001000101100111001001001110100', '100000100010011111001101010000100110011110001100000010010110110100000111111011010100101111010111001110101000100001111101001110000011010110000010100', '00100110000011100101000110110001000011101000011010101000010001111011100001111111001011100111101000001000000110110001000101111010010010001100111', '0110110100011001110011001111100010101001011111011001011001101101010010101101110101010100001000100100000111101110001001110111000110011101101010100000101', '0011111010010011011101010110100110000011000011100100101011011001110110001110001111000011010111011000110100111111011101110111000010010000011011010011011100000011101100110110100100000010110101110100110101001100111011101001010111011011110100110101110010011011010001010111110011001000010100010101010010110010010110000100110001000011010011000100101011010100100111010']}]}]}") d=pandas.DataFrame.from_records(copy.deepcopy(paper_as_dict) for _ in range(140_100)) arrow=datasets.Dataset.from_pandas(d) ``` ## Expected results The dataset should be converted without error. ## Actual results Error `pyarrow.lib.ArrowInvalid: Column 1: In chunk 0: Invalid: List child array invalid: Invalid: Struct child array #1 has length smaller than expected for struct array (1192457 < 1192458)` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: datasets==1.18.4 pandas==1.3.5 - Platform: macOS 11.6 or CentOS Linux 7 (Core) - Python version: Python 3.9.7 - PyArrow version: pyarrow==3.0.0 I´m getting the same problem with some files, @albertvillanova did you find a solution to this?
[ -0.3885246515274048, 0.05523669719696045, 0.09809435904026031, 0.4302074909210205, 0.5165886878967285, 0.08926539868116379, 0.2436552792787552, 0.34836041927337646, -0.18180057406425476, 0.05686662718653679, 0.06946419179439545, 0.49113860726356506, -0.03995911031961441, -0.0660402923822403, -0.0872589722275734, -0.3226375877857208, 0.26789993047714233, 0.014086075127124786, -0.1913527548313141, 0.07351066172122955, -0.0385160893201828, -0.3121047019958496, -0.19740581512451172, 0.20982708036899567, -0.04182899370789528, -0.25982943177223206, -0.17831288278102875, 0.2024013102054596, -0.23593707382678986, -0.4499858319759369, 0.17770838737487793, -0.3208860754966736, 0.0681644156575203, 0.495608389377594, -0.00011505267320899293, 0.004988156259059906, 0.33352839946746826, 0.014924028888344765, -0.2826346457004547, 0.14111457765102386, -0.012254483997821808, -0.23840852081775665, 0.13773588836193085, -0.10198669135570526, 0.24857860803604126, -0.400603324174881, -0.30031341314315796, -0.2839367985725403, 0.40135490894317627, 0.3970050811767578, 0.19724473357200623, 0.10899537801742554, 0.1619364619255066, 0.021796826273202896, 0.06348954141139984, 0.19790658354759216, -0.1437850445508957, 0.42533400654792786, 0.21382015943527222, -0.03654651343822479, -0.17533066868782043, -0.08574286103248596, -0.07222311198711395, -0.09891104698181152, 0.08931683003902435, -0.17851415276527405, -0.060249291360378265, -0.14851447939872742, 0.07230258733034134, 0.38000601530075073, 0.28194132447242737, -0.5241830945014954, -0.3558889627456665, -0.24615216255187988, 0.022755276411771774, -0.058584924787282944, -0.24821364879608154, 0.11371761560440063, -0.2111261636018753, 0.20715093612670898, 0.07906045019626617, 0.05768869072198868, -0.33002135157585144, 0.005792535841464996, -0.3957046866416931, -0.1532076746225357, 0.06187964975833893, 0.16849014163017273, 0.044787466526031494, -0.27862030267715454, 0.07314489036798477, 0.05494643375277519, -0.2350221574306488, 0.040625687688589096, -0.29487261176109314, -0.1083027571439743, -0.08257418125867844, -0.31514835357666016, 0.17230093479156494, -0.023384548723697662, 0.02874334342777729, 0.11633160710334778, 0.14248491823673248, -0.06808183342218399, 0.4316396117210388, 0.04844619333744049, -0.28754115104675293, 0.30296218395233154, 0.11901616305112839, 0.09095007926225662, 0.07865272462368011, 0.18304556608200073, -0.07961201667785645, -0.23151513934135437, 0.16998910903930664, -0.22034183144569397, 0.26765942573547363, -0.26703596115112305, -0.44611504673957825, 0.22922532260417938, -0.4505382478237152, 0.4397851824760437, -0.010735341347754002, 0.2753645181655884, 0.050292689353227615, 0.4217754900455475, 0.026734739542007446, 0.15415561199188232, -0.006674538366496563, 0.0777781531214714, -0.13872645795345306, 0.09742486476898193, -0.05614078417420387, -0.046720556914806366, -0.03906208649277687, 0.13833951950073242, -0.036552995443344116, 0.10765951126813889, 0.019193246960639954, -0.2798454165458679, -0.13711412250995636, -0.23156768083572388, 0.08877702802419662, 0.13993637263774872, -0.21361447870731354, 0.1266123205423355, 0.06352246552705765, 0.04123375564813614, -0.03106728196144104, 0.2599395215511322, 0.2556859850883484, -0.04289907217025757, -0.27416232228279114, 0.17625434696674347, -0.2004588097333908, 0.020429570227861404, -0.19845405220985413, 0.20155873894691467, 0.24638885259628296, 0.12493342161178589, 0.20264501869678497, -0.34930235147476196, -0.0020959489047527313, -0.2658124566078186, -0.06268378347158432, 0.39223766326904297, -0.6538013219833374, 0.1685081124305725, 0.037315014749765396, 0.04612874239683151, 0.19524365663528442, 0.4270573854446411, -0.213981032371521, 0.0013463199138641357, 0.023792101070284843, -0.014703765511512756, 0.09137792885303497, 0.09845902025699615, -0.6465850472450256, 0.27985599637031555, -0.17557772994041443, 0.05007147789001465, -0.1931019127368927, 0.06769799441099167, 0.09597901999950409, -0.11006983369588852, 0.00913163274526596, 0.32119548320770264, -0.21843011677265167, 0.2620372474193573, -0.26777970790863037, -0.24336963891983032, 0.07704253494739532, -0.018598664551973343, 0.17700327932834625, -0.17270350456237793, 0.167634516954422, -0.0368194505572319, 0.1817193329334259, -0.15403074026107788, 0.035582803189754486, 0.35752058029174805, 0.3488970100879669, -0.3499835133552551, 0.15646018087863922, -0.11369189620018005, -0.20024344325065613, 0.18659725785255432, 0.14140768349170685, -0.08326651155948639, -0.3399321436882019, -0.16371262073516846, -0.42767441272735596, 0.34828802943229675, 0.06358976662158966, 0.2219669371843338, 0.11802305281162262, -0.22325566411018372, 0.14224591851234436, 0.060057152062654495, 0.03654516115784645, -0.060064896941185, -0.47221165895462036, 0.17200779914855957, -0.038849227130413055, 0.2030767947435379, 0.07337279617786407, -0.19146202504634857, 0.14103816449642181, 0.11396070569753647, 0.01762426272034645, -0.027547543868422508, -0.19924679398536682, 0.41924533247947693, 0.24413423240184784, 0.2961629331111908, -0.33235904574394226, -0.23041777312755585, 0.28353151679039, -0.2486688792705536, 0.24896524846553802, 0.1493941843509674, 0.148389995098114, -0.016978491097688675, -0.021544761955738068, 0.270402193069458, -0.21270053088665009, 0.06381383538246155, 0.03097648173570633, 0.1267237812280655, 0.14752286672592163, 0.004340238869190216, 0.08336282521486282, -0.1232634037733078, -0.24877704679965973, 0.15022769570350647, 0.2707173824310303, 0.11326216906309128, -0.45053091645240784, -0.004567757248878479, 0.16264431178569794, -0.17943017184734344, 0.24065163731575012, 0.18405652046203613, -0.4005486071109772, -0.03612573444843292, 0.33209919929504395, 0.38711124658584595, 0.3530367612838745, 0.2065514624118805, 0.366604208946228, 0.09534019976854324, -0.23403604328632355, 0.015074320137500763, 0.3064129650592804, 0.13078850507736206, 0.5739151835441589, -0.013264484703540802, 0.3194458484649658, 0.14237838983535767, -0.3266943097114563, -0.016666550189256668, 0.10711893439292908, 0.3929402530193329, -0.3286628723144531, 0.17372773587703705, -0.2960249185562134, -0.19501960277557373, -0.2197652906179428, -0.2775236666202545, 0.12867650389671326, -0.29705244302749634, -0.10497327148914337, 0.0190549548715353, -0.3035256564617157, 0.17825847864151, -0.15842007100582123, -0.05170528590679169, 0.2624281346797943, 0.07429736852645874, 0.03099842369556427, -0.2560713291168213, -0.34769392013549805, 0.09412351250648499, 0.4853470027446747, 0.1913878619670868, 0.2262050062417984, 0.2723965048789978, -0.06063048541545868, -0.2778785824775696, -0.24346068501472473, -0.05755535513162613, -0.13176126778125763, 0.18711991608142853, 0.11292281746864319, 0.21834532916545868, -0.20545169711112976, -0.04643513262271881, 0.0031859595328569412, 0.11149652302265167, -0.24315857887268066, 0.29813942313194275, -0.17656822502613068, -0.039750851690769196, -0.07584553956985474, 0.01608605682849884, -0.10068278014659882, -0.3247881233692169, 0.21186505258083344, -0.09232427924871445, 0.050263263285160065, 0.13308368623256683, 0.46881338953971863, 0.2599010467529297, 0.2512623369693756, -0.08566773682832718, -0.052728552371263504, 0.41702407598495483, 0.2673114240169525, 0.025889387354254723, -0.35709646344184875, -0.2630176842212677, -0.23702459037303925, 0.09805285930633545, 0.3528617024421692, -0.5645751357078552, 0.025728635489940643, -0.3222919702529907, -0.0419904887676239, -0.20486614108085632, -0.10794524848461151, 0.06301675736904144, 0.10560988634824753, -0.04514145106077194, 0.060077004134655, 0.12196475267410278, -0.06450211256742477, -0.04188141971826553, 0.10558301955461502, -0.1630312204360962, 0.6855750679969788, 0.2560943365097046, 0.5322177410125732, 0.29948529601097107, -0.41775622963905334, 0.06621915847063065, -0.09111925959587097, 0.33159518241882324, -0.10696563869714737, -0.04356507211923599, -0.0012652934528887272, -0.18524539470672607, -0.21719303727149963, -0.15280430018901825, -0.22041907906532288, -0.338031530380249, 0.11325961351394653, -0.027050359174609184, 0.16164609789848328, -0.25803449749946594, 0.08403264731168747, -0.5991696119308472, 0.03649098798632622, -0.013857872225344181, 0.12742877006530762, -0.05053171142935753, 0.04250665381550789, 0.21575266122817993, -0.3841480016708374, -0.08280984312295914, -0.10508932173252106, 0.008878745138645172, -0.04726298525929451, -0.41767680644989014, 0.15157781541347504, 0.1891755312681198, 0.609183132648468, 0.30557453632354736, -0.32057103514671326, -0.08278344571590424, -0.02699284814298153, 0.3933982849121094, -0.0036926493048667908, -0.15240927040576935, 0.0009759850800037384, 0.27382537722587585, -0.8665077686309814, 0.07196603715419769, -0.1681416630744934, 0.30166614055633545, 0.008921930566430092, 0.08203449845314026, -0.28999775648117065, 0.06444448232650757, 0.1273902952671051, 0.4193399250507355, 0.1389354169368744, 0.111920565366745, -0.03189094364643097, -0.22209441661834717, -0.1578386127948761, 0.3290959894657135, 0.24682874977588654, 0.10201405733823776, -0.1895761787891388, -0.400445818901062, -0.4385952651500702, -0.22749221324920654, 0.06301461905241013, 0.40549635887145996, 0.3498130142688751, -0.39314255118370056, 0.3500839173793793, -0.3094841539859772, 0.02276529371738434, 0.7161819934844971, 0.5175678730010986, 0.10351070761680603, -0.3750332295894623, -0.05241554230451584, 0.10096833109855652, 0.2215065062046051, 0.3786054253578186, -0.16688475012779236, -0.043630652129650116, -0.24758413434028625, 0.004931062459945679, -0.061046052724123, -0.12651830911636353, 0.03023185394704342, -0.06831501424312592, -0.22144603729248047, 0.24642300605773926, 0.5124073624610901, 0.13753890991210938, 0.006261862814426422, 0.4205023944377899, 0.26337748765945435, -0.2514771819114685, 0.4689320921897888, 0.3891201913356781, 0.7829772233963013, -0.0801277607679367, -0.08594931662082672, 0.42821037769317627, -0.15272203087806702, 0.2775721251964569, 0.5069602727890015, -0.13800659775733948, -0.489211767911911, -0.14596161246299744, 0.0442870631814003, -0.2773568332195282, 0.12930691242218018, 0.06715954095125198, -0.22717610001564026, 0.02944060228765011, -0.17164617776870728, 0.04276669770479202, -0.028228269889950752, 0.09556043148040771, -0.35479745268821716, -0.230301633477211, -0.4009611904621124, 0.11602963507175446, -0.05202578753232956, -0.3358425498008728, 0.03521532937884331, -0.020928774029016495, -0.550320565700531, 0.0377994105219841, -0.5280419588088989, 0.11103976517915726, -0.4671602249145508, 0.28221672773361206, 0.22006836533546448, -0.33218836784362793, 0.21028301119804382, 0.09746537357568741, 0.03750980645418167, 0.08924394100904465, -0.113629549741745, 0.12663410604000092, 0.09968173503875732, 0.02210976555943489, 0.24690456688404083, -0.17630504071712494, 0.341957688331604, 0.2183208167552948, -0.024638347327709198, 0.12151402235031128, -0.14453500509262085, 0.0647474154829979, 0.11710229516029358, 0.014372650533914566, -0.009476244449615479, -0.3091661036014557, -0.2754366397857666, -0.2775574326515198, -0.09761208295822144, -0.2725468873977661, 0.10579100251197815, -0.023110881447792053, 0.04000772908329964, 0.21226122975349426, -0.08628588914871216, -0.10766557604074478, -0.00691763311624527, 0.19783639907836914, 0.06573779135942459, 0.21607458591461182, 0.3591231107711792, 0.19652718305587769, -0.1510559469461441, -0.10854603350162506, 0.2928987443447113, 0.13052897155284882, -0.4943602681159973, 0.2517831325531006, -0.46429407596588135, -0.1291215568780899, 0.1151716411113739, -0.00408921018242836, 0.2571491599082947, 0.12039859592914581, -0.3453689217567444, -0.2235380858182907, -0.42892783880233765, 0.28939977288246155, 0.08763931691646576, 0.358841210603714, -0.22791406512260437, 0.006246221251785755, -0.2765209376811981, 0.04080084338784218, -0.23675589263439178, 0.25029319524765015, -0.18905216455459595, 0.18445636332035065, -0.3076973855495453, -0.0771692618727684, -0.22940164804458618, -0.251424640417099, 0.08710025250911713, 0.4606267213821411, 0.14929081499576569, -0.18459904193878174, -0.024179397150874138, 0.03399157524108887, 0.07847912609577179, -0.057958051562309265, 0.022418148815631866, -0.09878814220428467, -0.10931949317455292, -0.07087277621030807, 0.11879114806652069, 0.1704210340976715, -0.23621727526187897, -0.16147015988826752, 0.4188922941684723, 0.07376886159181595, -0.10418302565813065, 0.20021674036979675, -0.3165186941623688, 0.31724876165390015, 0.05450459569692612, 0.38491854071617126, 0.23382222652435303, -0.08058935403823853, -0.06311950087547302, 0.15324586629867554, -0.11058977246284485, -0.1711220145225525, 0.4006921648979187, -0.16413412988185883, -0.37238895893096924, 0.20845405757427216, 0.2781975567340851, 0.6031711101531982, -0.3753553628921509, -0.09586314857006073, 0.07950654625892639, 0.17773430049419403, -0.2882612645626068, -0.16233213245868683, -0.012166090309619904, -0.2178526371717453, 0.018383514136075974, 0.39322489500045776, 0.19247391819953918, -0.3160085678100586, -0.049571096897125244, 0.04577808082103729, 0.0892106294631958, 0.0877818688750267, -0.04083935543894768, 0.576580822467804, -0.1116328239440918, -0.22361673414707184, 0.22092047333717346, 0.010664444416761398, 0.6973755955696106, 0.4334191679954529, 0.1221756637096405, 0.33158373832702637, -0.04019167274236679, -0.01870674267411232, 0.18046027421951294, -0.20607785880565643, 0.11660796403884888, 0.17466911673545837, -0.22482642531394958, -0.06034281104803085, 0.24740555882453918, 0.30176499485969543, 0.0993073508143425, -0.06939957290887833, -0.04398082196712494, -0.07708516716957092, -0.314010888338089, -0.011897366493940353, 0.03836147487163544, -0.10005182027816772, -0.14955200254917145, -0.13317866623401642, -0.18251346051692963, -0.30852603912353516, 0.22179372608661652, 0.07401476055383682, -0.034199222922325134, -0.2961210310459137, 0.22458386421203613, 0.36758551001548767, 0.14639616012573242, -0.23356205224990845, 0.02543734572827816, 0.3013005256652832, -0.24241262674331665, -0.23006993532180786, 0.1464054435491562, 0.48708951473236084, 0.2521282136440277, -0.3529069721698761, 0.153610959649086, 0.4857374131679535, -0.28790903091430664, 0.1544397473335266, -0.004207508638501167, -0.023469753563404083, 0.20517319440841675, 0.4668518304824829, 0.10542501509189606, -0.07344067841768265, -0.25876128673553467, 0.14723609387874603, 0.15119169652462006, -0.21844489872455597, 0.18016931414604187, -0.2484559714794159, -0.3354804515838623, -0.04462161660194397, -0.06647118180990219, -0.14722183346748352, -0.14284703135490417, 0.3533342778682709, -0.3449609577655792, 0.09730447083711624, -0.0957043468952179, 0.055296435952186584, -0.08159974217414856, 0.4515330493450165, 0.41177257895469666, 0.13843271136283875, -0.0760766863822937, -0.18742357194423676, -0.3873208463191986, 0.3420194387435913, -0.1844540238380432, -0.0283750481903553, 0.2601722180843353, 0.21308667957782745, 0.06654871255159378, 0.1908741593360901, 0.116847924888134, 0.4342319667339325, -0.23102018237113953, 0.45375362038612366, -0.30861636996269226, -0.3866294026374817, -0.025719188153743744, -0.3007904887199402, -0.048810720443725586, -0.43851739168167114, 0.29929518699645996, -0.11249428987503052, 0.05073927342891693, 0.01549591962248087, -0.18235522508621216, -0.048976242542266846, 0.11667777597904205, 0.42712920904159546, 0.08338908106088638, 0.06300649046897888, 0.11363213509321213, -0.15148282051086426, -0.14087335765361786, -0.1488991528749466, -0.2716714143753052, 0.6303752064704895, -0.039363447576761246, 0.3425813317298889, 0.06877923011779785, -0.1104302704334259, 0.10996988415718079, -0.09598267078399658, 0.153396338224411, 0.09763068705797195, -0.3591245114803314, 0.11812830716371536, -0.28820401430130005, 0.1769338697195053, 0.034454572945833206, 0.1269853413105011, 0.04933779686689377, 0.39013704657554626, -0.019886881113052368, -0.43249785900115967, 0.3553686738014221, -0.18133820593357086, -0.1582001894712448, 0.0767941027879715, -0.048078879714012146, 0.08243812620639801, -0.23796537518501282, -0.46859484910964966, -0.05238620191812515, 0.22939220070838928, -0.18559861183166504, 0.023391935974359512, -0.0876728743314743, 0.028697166591882706, 0.1785733550786972, -0.24907764792442322, 0.6088380813598633, -0.2562522292137146, 0.0008442942053079605, 0.08947792649269104, -0.26736879348754883 ]
https://github.com/huggingface/datasets/issues/3956
TypeError: __init__() missing 1 required positional argument: 'scheme'
Hi @amirj, thanks for reporting. At first sight, your issue seems a version incompatibility between your Elasticsearch client and your Elasticsearch server. Feel free to have a look at Elasticsearch client docs: https://www.elastic.co/guide/en/elasticsearch/client/python-api/current/overview.html#_compatibility > Language clients are forward compatible; meaning that clients support communicating with greater or equal minor versions of Elasticsearch. Elasticsearch language clients are only backwards compatible with default distributions and without guarantees made.
## Describe the bug Based on [this tutorial](https://huggingface.co/docs/datasets/faiss_es#elasticsearch) the provided code should add Elasticsearch index but raised the following error, probably the new Elasticsearch version is not compatible though the tutorial doesn't provide any information about the supporting Elasticsearch version. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import load_dataset squad = load_dataset('squad', split='validation') squad.add_elasticsearch_index("context", host="localhost", port="9200") ``` ## Expected results [Creating an elastic index based on the provided tutorial](https://huggingface.co/docs/datasets/faiss_es#elasticsearch) ## Actual results ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-6-8fb51aa33961> in <module> 1 from datasets import load_dataset 2 squad = load_dataset('squad', split='validation') ----> 3 squad.add_elasticsearch_index("context", host="localhost", port="9200") ~/opt/anaconda3/lib/python3.8/site-packages/datasets/arrow_dataset.py in add_elasticsearch_index(self, column, index_name, host, port, es_client, es_index_name, es_index_config) 3777 """ 3778 with self.formatted_as(type=None, columns=[column]): -> 3779 super().add_elasticsearch_index( 3780 column=column, 3781 index_name=index_name, ~/opt/anaconda3/lib/python3.8/site-packages/datasets/search.py in add_elasticsearch_index(self, column, index_name, host, port, es_client, es_index_name, es_index_config) 587 """ 588 index_name = index_name if index_name is not None else column --> 589 es_index = ElasticSearchIndex( 590 host=host, port=port, es_client=es_client, es_index_name=es_index_name, es_index_config=es_index_config 591 ) ~/opt/anaconda3/lib/python3.8/site-packages/datasets/search.py in __init__(self, host, port, es_client, es_index_name, es_index_config) 123 from elasticsearch import Elasticsearch # noqa: F811 124 --> 125 self.es_client = es_client if es_client is not None else Elasticsearch([{"host": host, "port": str(port)}]) 126 self.es_index_name = ( 127 es_index_name ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/__init__.py in __init__(self, hosts, cloud_id, api_key, basic_auth, bearer_auth, opaque_id, headers, connections_per_node, http_compress, verify_certs, ca_certs, client_cert, client_key, ssl_assert_hostname, ssl_assert_fingerprint, ssl_version, ssl_context, ssl_show_warn, transport_class, request_timeout, node_class, node_pool_class, randomize_nodes_in_pool, node_selector_class, dead_node_backoff_factor, max_dead_node_backoff, serializer, serializers, default_mimetype, max_retries, retry_on_status, retry_on_timeout, sniff_on_start, sniff_before_requests, sniff_on_node_failure, sniff_timeout, min_delay_between_sniffing, sniffed_node_callback, meta_header, timeout, randomize_hosts, host_info_callback, sniffer_timeout, sniff_on_connection_fail, http_auth, maxsize, _transport) 310 311 if _transport is None: --> 312 node_configs = client_node_configs( 313 hosts, 314 cloud_id=cloud_id, ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in client_node_configs(hosts, cloud_id, **kwargs) 99 else: 100 assert hosts is not None --> 101 node_configs = hosts_to_node_configs(hosts) 102 103 # Remove all values which are 'DEFAULT' to avoid overwriting actual defaults. ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in hosts_to_node_configs(hosts) 142 143 elif isinstance(host, Mapping): --> 144 node_configs.append(host_mapping_to_node_config(host)) 145 else: 146 raise ValueError( ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in host_mapping_to_node_config(host) 209 options["path_prefix"] = options.pop("url_prefix") 210 --> 211 return NodeConfig(**options) # type: ignore 212 213 TypeError: __init__() missing 1 required positional argument: 'scheme' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.0.0 - Platform: Mac - Python version: 3.8.0 - PyArrow version: 7.0.0 - ElaticSearch Info: { "name" : "byname", "cluster_name" : "elasticsearch_brew", "cluster_uuid" : "9xkjrltiQIG0J95ciWhqRA", "version" : { "number" : "7.10.2-SNAPSHOT", "build_flavor" : "oss", "build_type" : "tar", "build_hash" : "unknown", "build_date" : "2021-01-16T01:41:27.115673Z", "build_snapshot" : true, "lucene_version" : "8.7.0", "minimum_wire_compatibility_version" : "6.8.0", "minimum_index_compatibility_version" : "6.0.0-beta1" }, "tagline" : "You Know, for Search" }
66
TypeError: __init__() missing 1 required positional argument: 'scheme' ## Describe the bug Based on [this tutorial](https://huggingface.co/docs/datasets/faiss_es#elasticsearch) the provided code should add Elasticsearch index but raised the following error, probably the new Elasticsearch version is not compatible though the tutorial doesn't provide any information about the supporting Elasticsearch version. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import load_dataset squad = load_dataset('squad', split='validation') squad.add_elasticsearch_index("context", host="localhost", port="9200") ``` ## Expected results [Creating an elastic index based on the provided tutorial](https://huggingface.co/docs/datasets/faiss_es#elasticsearch) ## Actual results ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-6-8fb51aa33961> in <module> 1 from datasets import load_dataset 2 squad = load_dataset('squad', split='validation') ----> 3 squad.add_elasticsearch_index("context", host="localhost", port="9200") ~/opt/anaconda3/lib/python3.8/site-packages/datasets/arrow_dataset.py in add_elasticsearch_index(self, column, index_name, host, port, es_client, es_index_name, es_index_config) 3777 """ 3778 with self.formatted_as(type=None, columns=[column]): -> 3779 super().add_elasticsearch_index( 3780 column=column, 3781 index_name=index_name, ~/opt/anaconda3/lib/python3.8/site-packages/datasets/search.py in add_elasticsearch_index(self, column, index_name, host, port, es_client, es_index_name, es_index_config) 587 """ 588 index_name = index_name if index_name is not None else column --> 589 es_index = ElasticSearchIndex( 590 host=host, port=port, es_client=es_client, es_index_name=es_index_name, es_index_config=es_index_config 591 ) ~/opt/anaconda3/lib/python3.8/site-packages/datasets/search.py in __init__(self, host, port, es_client, es_index_name, es_index_config) 123 from elasticsearch import Elasticsearch # noqa: F811 124 --> 125 self.es_client = es_client if es_client is not None else Elasticsearch([{"host": host, "port": str(port)}]) 126 self.es_index_name = ( 127 es_index_name ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/__init__.py in __init__(self, hosts, cloud_id, api_key, basic_auth, bearer_auth, opaque_id, headers, connections_per_node, http_compress, verify_certs, ca_certs, client_cert, client_key, ssl_assert_hostname, ssl_assert_fingerprint, ssl_version, ssl_context, ssl_show_warn, transport_class, request_timeout, node_class, node_pool_class, randomize_nodes_in_pool, node_selector_class, dead_node_backoff_factor, max_dead_node_backoff, serializer, serializers, default_mimetype, max_retries, retry_on_status, retry_on_timeout, sniff_on_start, sniff_before_requests, sniff_on_node_failure, sniff_timeout, min_delay_between_sniffing, sniffed_node_callback, meta_header, timeout, randomize_hosts, host_info_callback, sniffer_timeout, sniff_on_connection_fail, http_auth, maxsize, _transport) 310 311 if _transport is None: --> 312 node_configs = client_node_configs( 313 hosts, 314 cloud_id=cloud_id, ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in client_node_configs(hosts, cloud_id, **kwargs) 99 else: 100 assert hosts is not None --> 101 node_configs = hosts_to_node_configs(hosts) 102 103 # Remove all values which are 'DEFAULT' to avoid overwriting actual defaults. ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in hosts_to_node_configs(hosts) 142 143 elif isinstance(host, Mapping): --> 144 node_configs.append(host_mapping_to_node_config(host)) 145 else: 146 raise ValueError( ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in host_mapping_to_node_config(host) 209 options["path_prefix"] = options.pop("url_prefix") 210 --> 211 return NodeConfig(**options) # type: ignore 212 213 TypeError: __init__() missing 1 required positional argument: 'scheme' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.0.0 - Platform: Mac - Python version: 3.8.0 - PyArrow version: 7.0.0 - ElaticSearch Info: { "name" : "byname", "cluster_name" : "elasticsearch_brew", "cluster_uuid" : "9xkjrltiQIG0J95ciWhqRA", "version" : { "number" : "7.10.2-SNAPSHOT", "build_flavor" : "oss", "build_type" : "tar", "build_hash" : "unknown", "build_date" : "2021-01-16T01:41:27.115673Z", "build_snapshot" : true, "lucene_version" : "8.7.0", "minimum_wire_compatibility_version" : "6.8.0", "minimum_index_compatibility_version" : "6.0.0-beta1" }, "tagline" : "You Know, for Search" } Hi @amirj, thanks for reporting. At first sight, your issue seems a version incompatibility between your Elasticsearch client and your Elasticsearch server. Feel free to have a look at Elasticsearch client docs: https://www.elastic.co/guide/en/elasticsearch/client/python-api/current/overview.html#_compatibility > Language clients are forward compatible; meaning that clients support communicating with greater or equal minor versions of Elasticsearch. Elasticsearch language clients are only backwards compatible with default distributions and without guarantees made.
[ -0.2016848921775818, -0.3632032871246338, -0.06706374138593674, -0.11549955606460571, -0.01564791426062584, 0.24799758195877075, 0.23410780727863312, 0.28774207830429077, 0.06386101245880127, 0.09369005262851715, -0.03584487736225128, 0.3917694687843323, -0.02158251777291298, -0.1523347944021225, 0.12814927101135254, -0.23091354966163635, 0.12108580023050308, 0.08743247389793396, 0.1187867671251297, -0.05167962983250618, -0.22444796562194824, 0.20195692777633667, -0.23997004330158234, -0.18637610971927643, 0.02606857754290104, 0.0416945144534111, -0.28112679719924927, 0.03704361617565155, -0.2842971384525299, -0.5741448402404785, 0.5656747817993164, -0.3205861747264862, -0.005403338000178337, 0.3283087909221649, -0.00011749420809792355, 0.25889575481414795, 0.6181120276451111, -0.07087100297212601, -0.13659758865833282, -0.3066090941429138, -0.2747555673122406, -0.1212204322218895, 0.3674221634864807, -0.374552845954895, -0.0447416827082634, 0.0033122622407972813, 0.05285114794969559, -0.37703457474708557, 0.542248010635376, 0.47417768836021423, 0.18038399517536163, 0.17155671119689941, 0.4112606346607208, -0.5131977796554565, 0.1866668164730072, 0.06860902905464172, -0.18627433478832245, 0.07581310719251633, -0.07554714381694794, 0.3040463626384735, 0.2885068953037262, 0.1322861909866333, 0.08194410055875778, -0.09907306730747223, 0.013178549706935883, 0.130726158618927, 0.1366858184337616, -0.1495373696088791, -0.2264220416545868, -0.19474047422409058, 0.22920918464660645, -0.1556187868118286, -0.430876225233078, 0.1329660713672638, 0.15858228504657745, -0.24052903056144714, 0.1471446454524994, -0.01519850641489029, -0.01276046596467495, 0.11773882806301117, 0.3022184669971466, -0.17759950459003448, -0.3475021421909332, 0.509226381778717, 0.08471724390983582, 0.18191629648208618, -0.08087745308876038, 0.03919326141476631, 0.10659897327423096, -0.17301416397094727, 0.0020134970545768738, 0.35526376962661743, 0.07880109548568726, 0.25270968675613403, -0.298414945602417, -0.028203226625919342, 0.11226426064968109, -0.24619290232658386, 0.08844666182994843, -0.19228848814964294, -0.11351718008518219, -0.16037479043006897, 0.5498575568199158, 0.1669119894504547, -0.0451066829264164, 0.10128207504749298, 0.12001409381628036, 0.1737443059682846, -0.04900796711444855, -0.06313716620206833, 0.2725945711135864, -0.05621439218521118, 0.027270983904600143, -0.39451947808265686, 0.19150519371032715, -0.04523472487926483, 0.4555639624595642, -0.1275634914636612, -0.2430797517299652, -0.058576956391334534, -0.3170815110206604, -0.08470085263252258, 0.03729460760951042, 0.19214943051338196, 0.23219715058803558, -0.49633651971817017, 0.4507415294647217, 0.37821710109710693, -0.14591377973556519, 0.19899222254753113, -0.2593500018119812, 0.13554327189922333, -0.016312826424837112, -0.0615728497505188, 0.11322858929634094, -0.5844493508338928, 0.424712210893631, 0.2325558215379715, -0.0374879390001297, 0.06102435290813446, 0.21578355133533478, 0.03000977262854576, -0.2533141076564789, 0.12639819085597992, -0.03472073748707771, -0.2597741186618805, 0.1583043485879898, 0.04150703549385071, -0.1471165120601654, -0.08972705155611038, -0.27633389830589294, -0.5810436010360718, -0.6209132075309753, 0.18935957551002502, 0.04452057182788849, -0.0496431440114975, -0.1614016592502594, 0.09762080013751984, 0.2085871696472168, -0.058684367686510086, -0.11428231745958328, -0.10848662257194519, -0.10685460269451141, 0.052994802594184875, 0.25938162207603455, 0.27527672052383423, -0.1447119265794754, -0.21051591634750366, -0.21796676516532898, 0.3615584671497345, -0.12702983617782593, 0.04294745996594429, -0.3336136043071747, 0.3303684592247009, -0.07992488145828247, 0.09090197086334229, 0.6981770992279053, -0.5474755764007568, -0.05364164710044861, -0.2091818004846573, -0.0626361146569252, -0.28868961334228516, 0.0518559031188488, -0.0723179504275322, 0.12955723702907562, 0.20207183063030243, 0.08368924260139465, 0.01887386292219162, 0.15685845911502838, -0.19041112065315247, -0.301076740026474, -0.020756248384714127, -0.2133549302816391, 0.21949070692062378, 0.06886724382638931, 0.07438905537128448, 0.11305706202983856, -0.09494039416313171, -0.028915435075759888, 0.09682786464691162, -0.016093261539936066, 0.3530192971229553, 0.4477272033691406, 0.047498635947704315, 0.14511950314044952, -0.2445705533027649, -0.18614473938941956, 0.08873280137777328, 0.13050797581672668, 0.406612366437912, -0.27547067403793335, -0.005486661568284035, -0.4557580351829529, -0.01253544632345438, -0.19992031157016754, -0.04046143218874931, 0.04769033193588257, -0.18044599890708923, 0.06550566852092743, 0.0815153568983078, -0.3663471043109894, 0.09038390964269638, -0.2240106612443924, 0.08741602301597595, -0.4838052988052368, 0.3780789077281952, -0.33995088934898376, -0.28489744663238525, -0.10054965317249298, -0.12728169560432434, 0.1625956892967224, -0.2289763242006302, -0.25290611386299133, 0.3170164227485657, 0.1585819125175476, -0.19934971630573273, -0.009423654526472092, -0.2196141928434372, 0.06879403442144394, -0.37171244621276855, -0.16011859476566315, 0.11465616524219513, 0.006017384119331837, 0.007571272552013397, -0.14095252752304077, 0.04912819713354111, -0.02767769619822502, 0.12361021339893341, -0.18654656410217285, 0.02449805848300457, 0.1674746721982956, 0.012846183031797409, -0.21484306454658508, -0.1568399965763092, 0.0762600377202034, 0.01104122307151556, 0.0965333878993988, -0.25609228014945984, -0.08062159270048141, -0.25564810633659363, 0.10096422582864761, 0.19080913066864014, 0.010987155139446259, 0.331563800573349, 0.03062807396054268, -0.02417568303644657, 0.020020071417093277, -0.2649323046207428, 0.5081580877304077, 0.18637005984783173, -0.25493335723876953, 0.17880897223949432, -0.19513489305973053, 0.04349720850586891, 0.3546719253063202, 0.07760702073574066, 0.27825599908828735, -0.041064366698265076, 0.2114386409521103, 0.2027517557144165, -0.3051764667034149, -0.43048304319381714, -0.0631658285856247, 0.22089438140392303, -0.3955519199371338, 0.18457695841789246, 0.026865897700190544, 0.029932469129562378, -0.06779695302248001, 0.028935492038726807, 0.14077268540859222, -0.2932102084159851, -0.0042730458080768585, 0.287345826625824, -0.0005063079297542572, 0.2911936044692993, -0.21529774367809296, 0.1278517097234726, 0.49245327711105347, -0.2807105779647827, -0.11807635426521301, 0.0015201910864561796, -0.14660727977752686, 0.008754681795835495, 0.04373576492071152, 0.22541916370391846, 0.2538788318634033, -0.20993782579898834, 0.007348274812102318, -0.1291220337152481, -0.5952883958816528, 0.07578372955322266, -0.0007680803537368774, 0.4424196779727936, 0.4109160602092743, 0.16726261377334595, -0.5368112921714783, -0.41640403866767883, 0.3792354166507721, -0.04723803699016571, -0.2670034170150757, 0.013098370283842087, -0.2433001548051834, -0.10956114530563354, -0.06101022660732269, -0.6315123438835144, -0.12185580283403397, -0.44279223680496216, 0.09282082319259644, 0.029339883476495743, 0.04037041962146759, 0.4282231628894806, 0.20013661682605743, 0.1551533043384552, -0.056106846779584885, 0.06929905712604523, -0.19250118732452393, -0.07027511298656464, 0.318307101726532, -0.3651517927646637, -0.2466861754655838, -0.11417198926210403, -0.164214625954628, 0.2686994969844818, 0.2605507969856262, -0.08813009411096573, -0.24472881853580475, -0.012626884505152702, 0.18011225759983063, -0.39560067653656006, 0.15023291110992432, 0.5313318967819214, 0.022441621869802475, 0.029162781313061714, -0.06478041410446167, -0.20795899629592896, 0.4208354651927948, 0.36750689148902893, 0.1470498889684677, 0.025194022804498672, 0.5940635204315186, -0.09034881740808487, 0.6092323660850525, 0.1436544805765152, -0.21905450522899628, 0.42050808668136597, -0.20543263852596283, 0.1942412406206131, -0.354234516620636, -0.48431622982025146, -0.2542822062969208, 0.21809720993041992, -0.05511981248855591, -0.20352430641651154, -0.09399230778217316, -0.2704288959503174, -0.1703050583600998, -0.10129693150520325, -0.1212010607123375, -0.020871033892035484, 0.00469244085252285, 0.18875783681869507, 0.3433679938316345, -0.04434630274772644, 0.05758998543024063, -0.3259448707103729, 0.0016673989593982697, -0.06839998066425323, 0.23384666442871094, 0.13191193342208862, 0.11509761959314346, -0.24705345928668976, -0.0795561745762825, -0.15446966886520386, 0.32566553354263306, 0.11695551872253418, 0.2916451692581177, 0.10584454238414764, 0.08956597000360489, 0.1443972885608673, 0.27722641825675964, 0.3966250419616699, -0.20455573499202728, -0.44139188528060913, 0.06688979268074036, 0.19479964673519135, -0.7750585079193115, -0.07959632575511932, -0.0787116140127182, 0.41826480627059937, 0.3315991759300232, 0.4458385109901428, -0.26200297474861145, 0.004422117955982685, 0.31997931003570557, -0.060293108224868774, 0.10584942996501923, -0.13034655153751373, -0.33353644609451294, -0.5129056572914124, -0.13413970172405243, 0.37002891302108765, 0.23657004535198212, 0.12518157064914703, 0.507093608379364, 0.027412984520196915, -0.32149678468704224, 0.06367124617099762, -0.2171642929315567, 0.19231903553009033, 0.30741024017333984, -0.009890173561871052, 0.12439419329166412, 0.2359708547592163, 0.11198317259550095, 0.32079243659973145, 0.2626963257789612, -0.08832216262817383, -0.05884699523448944, 0.037889234721660614, -0.15468041598796844, 0.22471708059310913, 0.21699386835098267, 0.09715781360864639, 0.04001656547188759, -0.3238070011138916, 0.08720873296260834, 0.09572218358516693, -0.19480028748512268, 0.5735222101211548, -0.042939167469739914, -0.04280680790543556, -0.3231015205383301, 0.4523456394672394, -0.17633740603923798, -0.009486563503742218, 0.41088542342185974, 0.5747948884963989, -0.3028593957424164, 0.6433290243148804, 0.04565415903925896, 0.7333821058273315, 0.3420003652572632, -0.030945662409067154, 0.544173538684845, 0.2750750780105591, 0.46323004364967346, 0.2398342341184616, 0.376303493976593, -0.1720002293586731, -0.017059601843357086, 0.025094063952565193, -0.33774301409721375, 0.1853720247745514, -0.1375247985124588, -0.4986567199230194, 0.1609334796667099, -0.3430403470993042, 0.3382047116756439, -0.04634808748960495, 0.29734912514686584, 0.062463223934173584, -0.10241612792015076, -0.45164260268211365, 0.1494489312171936, 0.1401236355304718, 0.23386222124099731, -0.02197498083114624, -0.12254619598388672, -0.15758685767650604, -0.25774770975112915, -0.21491575241088867, 0.05757739394903183, -0.05206260457634926, 0.7435449361801147, -0.07383909821510315, 0.04259507358074188, 0.25084179639816284, 0.19051571190357208, 0.15676726400852203, 0.0009723193943500519, -0.14113228023052216, 0.17027901113033295, 0.11794821172952652, -0.2572278380393982, 0.15579883754253387, -0.19507385790348053, 0.1639709770679474, -0.12959697842597961, -0.31425485014915466, 0.03283806890249252, -0.07789640873670578, -0.5886421799659729, -0.15742163360118866, 0.05737406760454178, -0.32888907194137573, -0.3205672800540924, -0.34725698828697205, 0.010652467608451843, -0.10850454866886139, -0.19403739273548126, 0.12451094388961792, 0.03900434821844101, -0.030804980546236038, 0.12103977799415588, 0.16502900421619415, -0.20939266681671143, 0.07414896786212921, 0.40867674350738525, -0.028067808598279953, 0.027040690183639526, 0.5184391140937805, -0.19264623522758484, -0.20226538181304932, -0.02087932825088501, -0.08765999227762222, 0.12624920904636383, -0.35527360439300537, -0.08974500745534897, -0.19501087069511414, 0.10114823281764984, 0.15767274796962738, 0.04774701967835426, 0.27957865595817566, 0.21516939997673035, 0.004116706550121307, -0.09374720603227615, 0.06721725314855576, 0.18362309038639069, 0.11752866208553314, 0.1098427027463913, -0.2728893756866455, 0.12384665012359619, -0.009615459479391575, -0.22544477880001068, -0.29340875148773193, 0.15973439812660217, 0.04523332417011261, 0.11993488669395447, -0.08892033994197845, -0.027815431356430054, 0.32008427381515503, -0.27543747425079346, 0.12655378878116608, 0.037021536380052567, -0.22740446031093597, -0.16288527846336365, -0.2106008678674698, 0.1217702254652977, -0.0909649059176445, -0.002784878481179476, 0.025836557149887085, -0.3257220983505249, -0.2259400188922882, -0.1212368905544281, -0.20477372407913208, 0.24182605743408203, 0.10943520069122314, -0.12330314517021179, 0.01615607738494873, -0.2745512127876282, 0.19408974051475525, -0.015984732657670975, 0.019721664488315582, -0.05105365812778473, -0.14577679336071014, 0.36294519901275635, 0.005973204039037228, 0.013680145144462585, 0.0033065672032535076, 0.22539815306663513, 0.02929583191871643, 0.2606130540370941, 0.1041988879442215, -0.3508845567703247, -0.1931648999452591, 0.05785103142261505, 0.1273362934589386, 0.3986719250679016, -0.2369803637266159, 0.08441096544265747, -0.23200327157974243, 0.2227538675069809, -0.2696215510368347, 0.13045147061347961, 0.3413183093070984, 0.07846494019031525, 0.15042325854301453, 0.14567524194717407, 0.23208138346672058, -0.02701627090573311, -0.023860491812229156, 0.13862445950508118, 0.30455806851387024, -0.18865951895713806, 0.24231675267219543, 0.08422215282917023, -0.08919724076986313, 0.03792720288038254, 0.2449096292257309, 0.15888556838035583, 0.3785720467567444, 0.2312900573015213, -0.10241537541151047, 0.2956625819206238, 0.07353317737579346, -0.06403745710849762, 0.14875096082687378, 0.15469443798065186, 0.13724219799041748, 0.25931882858276367, 0.08127235621213913, -0.06831403821706772, 0.13513444364070892, 0.6648653149604797, -0.08970357477664948, -0.20236323773860931, -0.30873870849609375, -0.06874972581863403, -0.12762033939361572, 0.060470882803201675, -0.06688348203897476, -0.0928228497505188, -0.299268901348114, -0.3756156861782074, 0.04790465161204338, 0.015934336930513382, 0.09762664884328842, 0.10304411500692368, 0.04445306584239006, -0.19308704137802124, -0.03233696520328522, 0.3514101207256317, 0.2818715274333954, -0.17716902494430542, 0.2298281341791153, 0.23991146683692932, -0.39655593037605286, -0.12539955973625183, 0.5719947814941406, 0.49208465218544006, 0.23872330784797668, 0.021450696513056755, 0.2234821319580078, 0.1455843299627304, -0.2435917854309082, 0.1587710678577423, 0.020072072744369507, 0.014065012335777283, -0.12390246987342834, 0.049776215106248856, 0.13790766894817352, -0.06139102578163147, 0.09848792850971222, -0.04110787436366081, 0.35505667328834534, -0.21443329751491547, -0.0778079703450203, -0.3696306347846985, 0.07895579189062119, 0.26088106632232666, 0.09332776814699173, -0.36340582370758057, 0.05720897763967514, 0.3693157732486725, 0.09857343137264252, -0.016547905281186104, 0.13553152978420258, 0.07790929079055786, -0.05985147878527641, 0.07600873708724976, 0.33703628182411194, 0.01002788171172142, -0.13372807204723358, -0.1390438973903656, -0.3820655941963196, 0.23836085200309753, -0.22545036673545837, -0.02634337916970253, 0.3816804885864258, 0.34244269132614136, 0.10842321068048477, 0.14200308918952942, 0.17009036242961884, -0.4230796694755554, -0.18643496930599213, 0.003945387899875641, -0.4493270516395569, -0.062182437628507614, 0.11941778659820557, 0.010777018964290619, 0.08829247206449509, -0.12448927760124207, -0.1562022715806961, -0.13895145058631897, 0.07300841063261032, -0.37578749656677246, -0.036557018756866455, 0.1598639339208603, -0.37470656633377075, 0.19872045516967773, 0.021882588043808937, 0.32474684715270996, -0.11637155711650848, -0.19172534346580505, -0.16996853053569794, -0.5526599287986755, -0.14767330884933472, 0.4530313014984131, 0.1776512861251831, 0.4545643627643585, -0.104247085750103, -0.5818839073181152, -0.2607060372829437, 0.45055386424064636, -0.09360715001821518, -0.4287995994091034, -0.44806385040283203, 0.24680590629577637, -0.20834791660308838, 0.1132245659828186, -0.13324417173862457, 0.12047593295574188, -0.04375084489583969, 0.3304932713508606, -0.11414305865764618, -0.4131426215171814, 0.5429112911224365, -0.3857053220272064, -0.10526178777217865, -0.06485100090503693, 0.0815553143620491, 0.7078866362571716, 0.26004695892333984, -0.3298376202583313, -0.08709181100130081, 0.2487342804670334, -0.12939992547035217, -0.15447163581848145, 0.23636338114738464, 0.3838108777999878, 0.16346034407615662, -0.12711992859840393, 0.1128419041633606, 0.008305694907903671, -0.002345232293009758, -0.10846357047557831, -0.2304185926914215 ]
https://github.com/huggingface/datasets/issues/3956
TypeError: __init__() missing 1 required positional argument: 'scheme'
@albertvillanova It doesn't seem a version incompatibility between the client and server, since the following code is working: ``` from elasticsearch import Elasticsearch es_client = Elasticsearch("http://localhost:9200") dataset.add_elasticsearch_index(column="e1", es_client=es_client, es_index_name="e1_index") ```
## Describe the bug Based on [this tutorial](https://huggingface.co/docs/datasets/faiss_es#elasticsearch) the provided code should add Elasticsearch index but raised the following error, probably the new Elasticsearch version is not compatible though the tutorial doesn't provide any information about the supporting Elasticsearch version. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import load_dataset squad = load_dataset('squad', split='validation') squad.add_elasticsearch_index("context", host="localhost", port="9200") ``` ## Expected results [Creating an elastic index based on the provided tutorial](https://huggingface.co/docs/datasets/faiss_es#elasticsearch) ## Actual results ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-6-8fb51aa33961> in <module> 1 from datasets import load_dataset 2 squad = load_dataset('squad', split='validation') ----> 3 squad.add_elasticsearch_index("context", host="localhost", port="9200") ~/opt/anaconda3/lib/python3.8/site-packages/datasets/arrow_dataset.py in add_elasticsearch_index(self, column, index_name, host, port, es_client, es_index_name, es_index_config) 3777 """ 3778 with self.formatted_as(type=None, columns=[column]): -> 3779 super().add_elasticsearch_index( 3780 column=column, 3781 index_name=index_name, ~/opt/anaconda3/lib/python3.8/site-packages/datasets/search.py in add_elasticsearch_index(self, column, index_name, host, port, es_client, es_index_name, es_index_config) 587 """ 588 index_name = index_name if index_name is not None else column --> 589 es_index = ElasticSearchIndex( 590 host=host, port=port, es_client=es_client, es_index_name=es_index_name, es_index_config=es_index_config 591 ) ~/opt/anaconda3/lib/python3.8/site-packages/datasets/search.py in __init__(self, host, port, es_client, es_index_name, es_index_config) 123 from elasticsearch import Elasticsearch # noqa: F811 124 --> 125 self.es_client = es_client if es_client is not None else Elasticsearch([{"host": host, "port": str(port)}]) 126 self.es_index_name = ( 127 es_index_name ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/__init__.py in __init__(self, hosts, cloud_id, api_key, basic_auth, bearer_auth, opaque_id, headers, connections_per_node, http_compress, verify_certs, ca_certs, client_cert, client_key, ssl_assert_hostname, ssl_assert_fingerprint, ssl_version, ssl_context, ssl_show_warn, transport_class, request_timeout, node_class, node_pool_class, randomize_nodes_in_pool, node_selector_class, dead_node_backoff_factor, max_dead_node_backoff, serializer, serializers, default_mimetype, max_retries, retry_on_status, retry_on_timeout, sniff_on_start, sniff_before_requests, sniff_on_node_failure, sniff_timeout, min_delay_between_sniffing, sniffed_node_callback, meta_header, timeout, randomize_hosts, host_info_callback, sniffer_timeout, sniff_on_connection_fail, http_auth, maxsize, _transport) 310 311 if _transport is None: --> 312 node_configs = client_node_configs( 313 hosts, 314 cloud_id=cloud_id, ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in client_node_configs(hosts, cloud_id, **kwargs) 99 else: 100 assert hosts is not None --> 101 node_configs = hosts_to_node_configs(hosts) 102 103 # Remove all values which are 'DEFAULT' to avoid overwriting actual defaults. ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in hosts_to_node_configs(hosts) 142 143 elif isinstance(host, Mapping): --> 144 node_configs.append(host_mapping_to_node_config(host)) 145 else: 146 raise ValueError( ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in host_mapping_to_node_config(host) 209 options["path_prefix"] = options.pop("url_prefix") 210 --> 211 return NodeConfig(**options) # type: ignore 212 213 TypeError: __init__() missing 1 required positional argument: 'scheme' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.0.0 - Platform: Mac - Python version: 3.8.0 - PyArrow version: 7.0.0 - ElaticSearch Info: { "name" : "byname", "cluster_name" : "elasticsearch_brew", "cluster_uuid" : "9xkjrltiQIG0J95ciWhqRA", "version" : { "number" : "7.10.2-SNAPSHOT", "build_flavor" : "oss", "build_type" : "tar", "build_hash" : "unknown", "build_date" : "2021-01-16T01:41:27.115673Z", "build_snapshot" : true, "lucene_version" : "8.7.0", "minimum_wire_compatibility_version" : "6.8.0", "minimum_index_compatibility_version" : "6.0.0-beta1" }, "tagline" : "You Know, for Search" }
30
TypeError: __init__() missing 1 required positional argument: 'scheme' ## Describe the bug Based on [this tutorial](https://huggingface.co/docs/datasets/faiss_es#elasticsearch) the provided code should add Elasticsearch index but raised the following error, probably the new Elasticsearch version is not compatible though the tutorial doesn't provide any information about the supporting Elasticsearch version. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import load_dataset squad = load_dataset('squad', split='validation') squad.add_elasticsearch_index("context", host="localhost", port="9200") ``` ## Expected results [Creating an elastic index based on the provided tutorial](https://huggingface.co/docs/datasets/faiss_es#elasticsearch) ## Actual results ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-6-8fb51aa33961> in <module> 1 from datasets import load_dataset 2 squad = load_dataset('squad', split='validation') ----> 3 squad.add_elasticsearch_index("context", host="localhost", port="9200") ~/opt/anaconda3/lib/python3.8/site-packages/datasets/arrow_dataset.py in add_elasticsearch_index(self, column, index_name, host, port, es_client, es_index_name, es_index_config) 3777 """ 3778 with self.formatted_as(type=None, columns=[column]): -> 3779 super().add_elasticsearch_index( 3780 column=column, 3781 index_name=index_name, ~/opt/anaconda3/lib/python3.8/site-packages/datasets/search.py in add_elasticsearch_index(self, column, index_name, host, port, es_client, es_index_name, es_index_config) 587 """ 588 index_name = index_name if index_name is not None else column --> 589 es_index = ElasticSearchIndex( 590 host=host, port=port, es_client=es_client, es_index_name=es_index_name, es_index_config=es_index_config 591 ) ~/opt/anaconda3/lib/python3.8/site-packages/datasets/search.py in __init__(self, host, port, es_client, es_index_name, es_index_config) 123 from elasticsearch import Elasticsearch # noqa: F811 124 --> 125 self.es_client = es_client if es_client is not None else Elasticsearch([{"host": host, "port": str(port)}]) 126 self.es_index_name = ( 127 es_index_name ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/__init__.py in __init__(self, hosts, cloud_id, api_key, basic_auth, bearer_auth, opaque_id, headers, connections_per_node, http_compress, verify_certs, ca_certs, client_cert, client_key, ssl_assert_hostname, ssl_assert_fingerprint, ssl_version, ssl_context, ssl_show_warn, transport_class, request_timeout, node_class, node_pool_class, randomize_nodes_in_pool, node_selector_class, dead_node_backoff_factor, max_dead_node_backoff, serializer, serializers, default_mimetype, max_retries, retry_on_status, retry_on_timeout, sniff_on_start, sniff_before_requests, sniff_on_node_failure, sniff_timeout, min_delay_between_sniffing, sniffed_node_callback, meta_header, timeout, randomize_hosts, host_info_callback, sniffer_timeout, sniff_on_connection_fail, http_auth, maxsize, _transport) 310 311 if _transport is None: --> 312 node_configs = client_node_configs( 313 hosts, 314 cloud_id=cloud_id, ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in client_node_configs(hosts, cloud_id, **kwargs) 99 else: 100 assert hosts is not None --> 101 node_configs = hosts_to_node_configs(hosts) 102 103 # Remove all values which are 'DEFAULT' to avoid overwriting actual defaults. ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in hosts_to_node_configs(hosts) 142 143 elif isinstance(host, Mapping): --> 144 node_configs.append(host_mapping_to_node_config(host)) 145 else: 146 raise ValueError( ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in host_mapping_to_node_config(host) 209 options["path_prefix"] = options.pop("url_prefix") 210 --> 211 return NodeConfig(**options) # type: ignore 212 213 TypeError: __init__() missing 1 required positional argument: 'scheme' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.0.0 - Platform: Mac - Python version: 3.8.0 - PyArrow version: 7.0.0 - ElaticSearch Info: { "name" : "byname", "cluster_name" : "elasticsearch_brew", "cluster_uuid" : "9xkjrltiQIG0J95ciWhqRA", "version" : { "number" : "7.10.2-SNAPSHOT", "build_flavor" : "oss", "build_type" : "tar", "build_hash" : "unknown", "build_date" : "2021-01-16T01:41:27.115673Z", "build_snapshot" : true, "lucene_version" : "8.7.0", "minimum_wire_compatibility_version" : "6.8.0", "minimum_index_compatibility_version" : "6.0.0-beta1" }, "tagline" : "You Know, for Search" } @albertvillanova It doesn't seem a version incompatibility between the client and server, since the following code is working: ``` from elasticsearch import Elasticsearch es_client = Elasticsearch("http://localhost:9200") dataset.add_elasticsearch_index(column="e1", es_client=es_client, es_index_name="e1_index") ```
[ -0.2016848921775818, -0.3632032871246338, -0.06706374138593674, -0.11549955606460571, -0.01564791426062584, 0.24799758195877075, 0.23410780727863312, 0.28774207830429077, 0.06386101245880127, 0.09369005262851715, -0.03584487736225128, 0.3917694687843323, -0.02158251777291298, -0.1523347944021225, 0.12814927101135254, -0.23091354966163635, 0.12108580023050308, 0.08743247389793396, 0.1187867671251297, -0.05167962983250618, -0.22444796562194824, 0.20195692777633667, -0.23997004330158234, -0.18637610971927643, 0.02606857754290104, 0.0416945144534111, -0.28112679719924927, 0.03704361617565155, -0.2842971384525299, -0.5741448402404785, 0.5656747817993164, -0.3205861747264862, -0.005403338000178337, 0.3283087909221649, -0.00011749420809792355, 0.25889575481414795, 0.6181120276451111, -0.07087100297212601, -0.13659758865833282, -0.3066090941429138, -0.2747555673122406, -0.1212204322218895, 0.3674221634864807, -0.374552845954895, -0.0447416827082634, 0.0033122622407972813, 0.05285114794969559, -0.37703457474708557, 0.542248010635376, 0.47417768836021423, 0.18038399517536163, 0.17155671119689941, 0.4112606346607208, -0.5131977796554565, 0.1866668164730072, 0.06860902905464172, -0.18627433478832245, 0.07581310719251633, -0.07554714381694794, 0.3040463626384735, 0.2885068953037262, 0.1322861909866333, 0.08194410055875778, -0.09907306730747223, 0.013178549706935883, 0.130726158618927, 0.1366858184337616, -0.1495373696088791, -0.2264220416545868, -0.19474047422409058, 0.22920918464660645, -0.1556187868118286, -0.430876225233078, 0.1329660713672638, 0.15858228504657745, -0.24052903056144714, 0.1471446454524994, -0.01519850641489029, -0.01276046596467495, 0.11773882806301117, 0.3022184669971466, -0.17759950459003448, -0.3475021421909332, 0.509226381778717, 0.08471724390983582, 0.18191629648208618, -0.08087745308876038, 0.03919326141476631, 0.10659897327423096, -0.17301416397094727, 0.0020134970545768738, 0.35526376962661743, 0.07880109548568726, 0.25270968675613403, -0.298414945602417, -0.028203226625919342, 0.11226426064968109, -0.24619290232658386, 0.08844666182994843, -0.19228848814964294, -0.11351718008518219, -0.16037479043006897, 0.5498575568199158, 0.1669119894504547, -0.0451066829264164, 0.10128207504749298, 0.12001409381628036, 0.1737443059682846, -0.04900796711444855, -0.06313716620206833, 0.2725945711135864, -0.05621439218521118, 0.027270983904600143, -0.39451947808265686, 0.19150519371032715, -0.04523472487926483, 0.4555639624595642, -0.1275634914636612, -0.2430797517299652, -0.058576956391334534, -0.3170815110206604, -0.08470085263252258, 0.03729460760951042, 0.19214943051338196, 0.23219715058803558, -0.49633651971817017, 0.4507415294647217, 0.37821710109710693, -0.14591377973556519, 0.19899222254753113, -0.2593500018119812, 0.13554327189922333, -0.016312826424837112, -0.0615728497505188, 0.11322858929634094, -0.5844493508338928, 0.424712210893631, 0.2325558215379715, -0.0374879390001297, 0.06102435290813446, 0.21578355133533478, 0.03000977262854576, -0.2533141076564789, 0.12639819085597992, -0.03472073748707771, -0.2597741186618805, 0.1583043485879898, 0.04150703549385071, -0.1471165120601654, -0.08972705155611038, -0.27633389830589294, -0.5810436010360718, -0.6209132075309753, 0.18935957551002502, 0.04452057182788849, -0.0496431440114975, -0.1614016592502594, 0.09762080013751984, 0.2085871696472168, -0.058684367686510086, -0.11428231745958328, -0.10848662257194519, -0.10685460269451141, 0.052994802594184875, 0.25938162207603455, 0.27527672052383423, -0.1447119265794754, -0.21051591634750366, -0.21796676516532898, 0.3615584671497345, -0.12702983617782593, 0.04294745996594429, -0.3336136043071747, 0.3303684592247009, -0.07992488145828247, 0.09090197086334229, 0.6981770992279053, -0.5474755764007568, -0.05364164710044861, -0.2091818004846573, -0.0626361146569252, -0.28868961334228516, 0.0518559031188488, -0.0723179504275322, 0.12955723702907562, 0.20207183063030243, 0.08368924260139465, 0.01887386292219162, 0.15685845911502838, -0.19041112065315247, -0.301076740026474, -0.020756248384714127, -0.2133549302816391, 0.21949070692062378, 0.06886724382638931, 0.07438905537128448, 0.11305706202983856, -0.09494039416313171, -0.028915435075759888, 0.09682786464691162, -0.016093261539936066, 0.3530192971229553, 0.4477272033691406, 0.047498635947704315, 0.14511950314044952, -0.2445705533027649, -0.18614473938941956, 0.08873280137777328, 0.13050797581672668, 0.406612366437912, -0.27547067403793335, -0.005486661568284035, -0.4557580351829529, -0.01253544632345438, -0.19992031157016754, -0.04046143218874931, 0.04769033193588257, -0.18044599890708923, 0.06550566852092743, 0.0815153568983078, -0.3663471043109894, 0.09038390964269638, -0.2240106612443924, 0.08741602301597595, -0.4838052988052368, 0.3780789077281952, -0.33995088934898376, -0.28489744663238525, -0.10054965317249298, -0.12728169560432434, 0.1625956892967224, -0.2289763242006302, -0.25290611386299133, 0.3170164227485657, 0.1585819125175476, -0.19934971630573273, -0.009423654526472092, -0.2196141928434372, 0.06879403442144394, -0.37171244621276855, -0.16011859476566315, 0.11465616524219513, 0.006017384119331837, 0.007571272552013397, -0.14095252752304077, 0.04912819713354111, -0.02767769619822502, 0.12361021339893341, -0.18654656410217285, 0.02449805848300457, 0.1674746721982956, 0.012846183031797409, -0.21484306454658508, -0.1568399965763092, 0.0762600377202034, 0.01104122307151556, 0.0965333878993988, -0.25609228014945984, -0.08062159270048141, -0.25564810633659363, 0.10096422582864761, 0.19080913066864014, 0.010987155139446259, 0.331563800573349, 0.03062807396054268, -0.02417568303644657, 0.020020071417093277, -0.2649323046207428, 0.5081580877304077, 0.18637005984783173, -0.25493335723876953, 0.17880897223949432, -0.19513489305973053, 0.04349720850586891, 0.3546719253063202, 0.07760702073574066, 0.27825599908828735, -0.041064366698265076, 0.2114386409521103, 0.2027517557144165, -0.3051764667034149, -0.43048304319381714, -0.0631658285856247, 0.22089438140392303, -0.3955519199371338, 0.18457695841789246, 0.026865897700190544, 0.029932469129562378, -0.06779695302248001, 0.028935492038726807, 0.14077268540859222, -0.2932102084159851, -0.0042730458080768585, 0.287345826625824, -0.0005063079297542572, 0.2911936044692993, -0.21529774367809296, 0.1278517097234726, 0.49245327711105347, -0.2807105779647827, -0.11807635426521301, 0.0015201910864561796, -0.14660727977752686, 0.008754681795835495, 0.04373576492071152, 0.22541916370391846, 0.2538788318634033, -0.20993782579898834, 0.007348274812102318, -0.1291220337152481, -0.5952883958816528, 0.07578372955322266, -0.0007680803537368774, 0.4424196779727936, 0.4109160602092743, 0.16726261377334595, -0.5368112921714783, -0.41640403866767883, 0.3792354166507721, -0.04723803699016571, -0.2670034170150757, 0.013098370283842087, -0.2433001548051834, -0.10956114530563354, -0.06101022660732269, -0.6315123438835144, -0.12185580283403397, -0.44279223680496216, 0.09282082319259644, 0.029339883476495743, 0.04037041962146759, 0.4282231628894806, 0.20013661682605743, 0.1551533043384552, -0.056106846779584885, 0.06929905712604523, -0.19250118732452393, -0.07027511298656464, 0.318307101726532, -0.3651517927646637, -0.2466861754655838, -0.11417198926210403, -0.164214625954628, 0.2686994969844818, 0.2605507969856262, -0.08813009411096573, -0.24472881853580475, -0.012626884505152702, 0.18011225759983063, -0.39560067653656006, 0.15023291110992432, 0.5313318967819214, 0.022441621869802475, 0.029162781313061714, -0.06478041410446167, -0.20795899629592896, 0.4208354651927948, 0.36750689148902893, 0.1470498889684677, 0.025194022804498672, 0.5940635204315186, -0.09034881740808487, 0.6092323660850525, 0.1436544805765152, -0.21905450522899628, 0.42050808668136597, -0.20543263852596283, 0.1942412406206131, -0.354234516620636, -0.48431622982025146, -0.2542822062969208, 0.21809720993041992, -0.05511981248855591, -0.20352430641651154, -0.09399230778217316, -0.2704288959503174, -0.1703050583600998, -0.10129693150520325, -0.1212010607123375, -0.020871033892035484, 0.00469244085252285, 0.18875783681869507, 0.3433679938316345, -0.04434630274772644, 0.05758998543024063, -0.3259448707103729, 0.0016673989593982697, -0.06839998066425323, 0.23384666442871094, 0.13191193342208862, 0.11509761959314346, -0.24705345928668976, -0.0795561745762825, -0.15446966886520386, 0.32566553354263306, 0.11695551872253418, 0.2916451692581177, 0.10584454238414764, 0.08956597000360489, 0.1443972885608673, 0.27722641825675964, 0.3966250419616699, -0.20455573499202728, -0.44139188528060913, 0.06688979268074036, 0.19479964673519135, -0.7750585079193115, -0.07959632575511932, -0.0787116140127182, 0.41826480627059937, 0.3315991759300232, 0.4458385109901428, -0.26200297474861145, 0.004422117955982685, 0.31997931003570557, -0.060293108224868774, 0.10584942996501923, -0.13034655153751373, -0.33353644609451294, -0.5129056572914124, -0.13413970172405243, 0.37002891302108765, 0.23657004535198212, 0.12518157064914703, 0.507093608379364, 0.027412984520196915, -0.32149678468704224, 0.06367124617099762, -0.2171642929315567, 0.19231903553009033, 0.30741024017333984, -0.009890173561871052, 0.12439419329166412, 0.2359708547592163, 0.11198317259550095, 0.32079243659973145, 0.2626963257789612, -0.08832216262817383, -0.05884699523448944, 0.037889234721660614, -0.15468041598796844, 0.22471708059310913, 0.21699386835098267, 0.09715781360864639, 0.04001656547188759, -0.3238070011138916, 0.08720873296260834, 0.09572218358516693, -0.19480028748512268, 0.5735222101211548, -0.042939167469739914, -0.04280680790543556, -0.3231015205383301, 0.4523456394672394, -0.17633740603923798, -0.009486563503742218, 0.41088542342185974, 0.5747948884963989, -0.3028593957424164, 0.6433290243148804, 0.04565415903925896, 0.7333821058273315, 0.3420003652572632, -0.030945662409067154, 0.544173538684845, 0.2750750780105591, 0.46323004364967346, 0.2398342341184616, 0.376303493976593, -0.1720002293586731, -0.017059601843357086, 0.025094063952565193, -0.33774301409721375, 0.1853720247745514, -0.1375247985124588, -0.4986567199230194, 0.1609334796667099, -0.3430403470993042, 0.3382047116756439, -0.04634808748960495, 0.29734912514686584, 0.062463223934173584, -0.10241612792015076, -0.45164260268211365, 0.1494489312171936, 0.1401236355304718, 0.23386222124099731, -0.02197498083114624, -0.12254619598388672, -0.15758685767650604, -0.25774770975112915, -0.21491575241088867, 0.05757739394903183, -0.05206260457634926, 0.7435449361801147, -0.07383909821510315, 0.04259507358074188, 0.25084179639816284, 0.19051571190357208, 0.15676726400852203, 0.0009723193943500519, -0.14113228023052216, 0.17027901113033295, 0.11794821172952652, -0.2572278380393982, 0.15579883754253387, -0.19507385790348053, 0.1639709770679474, -0.12959697842597961, -0.31425485014915466, 0.03283806890249252, -0.07789640873670578, -0.5886421799659729, -0.15742163360118866, 0.05737406760454178, -0.32888907194137573, -0.3205672800540924, -0.34725698828697205, 0.010652467608451843, -0.10850454866886139, -0.19403739273548126, 0.12451094388961792, 0.03900434821844101, -0.030804980546236038, 0.12103977799415588, 0.16502900421619415, -0.20939266681671143, 0.07414896786212921, 0.40867674350738525, -0.028067808598279953, 0.027040690183639526, 0.5184391140937805, -0.19264623522758484, -0.20226538181304932, -0.02087932825088501, -0.08765999227762222, 0.12624920904636383, -0.35527360439300537, -0.08974500745534897, -0.19501087069511414, 0.10114823281764984, 0.15767274796962738, 0.04774701967835426, 0.27957865595817566, 0.21516939997673035, 0.004116706550121307, -0.09374720603227615, 0.06721725314855576, 0.18362309038639069, 0.11752866208553314, 0.1098427027463913, -0.2728893756866455, 0.12384665012359619, -0.009615459479391575, -0.22544477880001068, -0.29340875148773193, 0.15973439812660217, 0.04523332417011261, 0.11993488669395447, -0.08892033994197845, -0.027815431356430054, 0.32008427381515503, -0.27543747425079346, 0.12655378878116608, 0.037021536380052567, -0.22740446031093597, -0.16288527846336365, -0.2106008678674698, 0.1217702254652977, -0.0909649059176445, -0.002784878481179476, 0.025836557149887085, -0.3257220983505249, -0.2259400188922882, -0.1212368905544281, -0.20477372407913208, 0.24182605743408203, 0.10943520069122314, -0.12330314517021179, 0.01615607738494873, -0.2745512127876282, 0.19408974051475525, -0.015984732657670975, 0.019721664488315582, -0.05105365812778473, -0.14577679336071014, 0.36294519901275635, 0.005973204039037228, 0.013680145144462585, 0.0033065672032535076, 0.22539815306663513, 0.02929583191871643, 0.2606130540370941, 0.1041988879442215, -0.3508845567703247, -0.1931648999452591, 0.05785103142261505, 0.1273362934589386, 0.3986719250679016, -0.2369803637266159, 0.08441096544265747, -0.23200327157974243, 0.2227538675069809, -0.2696215510368347, 0.13045147061347961, 0.3413183093070984, 0.07846494019031525, 0.15042325854301453, 0.14567524194717407, 0.23208138346672058, -0.02701627090573311, -0.023860491812229156, 0.13862445950508118, 0.30455806851387024, -0.18865951895713806, 0.24231675267219543, 0.08422215282917023, -0.08919724076986313, 0.03792720288038254, 0.2449096292257309, 0.15888556838035583, 0.3785720467567444, 0.2312900573015213, -0.10241537541151047, 0.2956625819206238, 0.07353317737579346, -0.06403745710849762, 0.14875096082687378, 0.15469443798065186, 0.13724219799041748, 0.25931882858276367, 0.08127235621213913, -0.06831403821706772, 0.13513444364070892, 0.6648653149604797, -0.08970357477664948, -0.20236323773860931, -0.30873870849609375, -0.06874972581863403, -0.12762033939361572, 0.060470882803201675, -0.06688348203897476, -0.0928228497505188, -0.299268901348114, -0.3756156861782074, 0.04790465161204338, 0.015934336930513382, 0.09762664884328842, 0.10304411500692368, 0.04445306584239006, -0.19308704137802124, -0.03233696520328522, 0.3514101207256317, 0.2818715274333954, -0.17716902494430542, 0.2298281341791153, 0.23991146683692932, -0.39655593037605286, -0.12539955973625183, 0.5719947814941406, 0.49208465218544006, 0.23872330784797668, 0.021450696513056755, 0.2234821319580078, 0.1455843299627304, -0.2435917854309082, 0.1587710678577423, 0.020072072744369507, 0.014065012335777283, -0.12390246987342834, 0.049776215106248856, 0.13790766894817352, -0.06139102578163147, 0.09848792850971222, -0.04110787436366081, 0.35505667328834534, -0.21443329751491547, -0.0778079703450203, -0.3696306347846985, 0.07895579189062119, 0.26088106632232666, 0.09332776814699173, -0.36340582370758057, 0.05720897763967514, 0.3693157732486725, 0.09857343137264252, -0.016547905281186104, 0.13553152978420258, 0.07790929079055786, -0.05985147878527641, 0.07600873708724976, 0.33703628182411194, 0.01002788171172142, -0.13372807204723358, -0.1390438973903656, -0.3820655941963196, 0.23836085200309753, -0.22545036673545837, -0.02634337916970253, 0.3816804885864258, 0.34244269132614136, 0.10842321068048477, 0.14200308918952942, 0.17009036242961884, -0.4230796694755554, -0.18643496930599213, 0.003945387899875641, -0.4493270516395569, -0.062182437628507614, 0.11941778659820557, 0.010777018964290619, 0.08829247206449509, -0.12448927760124207, -0.1562022715806961, -0.13895145058631897, 0.07300841063261032, -0.37578749656677246, -0.036557018756866455, 0.1598639339208603, -0.37470656633377075, 0.19872045516967773, 0.021882588043808937, 0.32474684715270996, -0.11637155711650848, -0.19172534346580505, -0.16996853053569794, -0.5526599287986755, -0.14767330884933472, 0.4530313014984131, 0.1776512861251831, 0.4545643627643585, -0.104247085750103, -0.5818839073181152, -0.2607060372829437, 0.45055386424064636, -0.09360715001821518, -0.4287995994091034, -0.44806385040283203, 0.24680590629577637, -0.20834791660308838, 0.1132245659828186, -0.13324417173862457, 0.12047593295574188, -0.04375084489583969, 0.3304932713508606, -0.11414305865764618, -0.4131426215171814, 0.5429112911224365, -0.3857053220272064, -0.10526178777217865, -0.06485100090503693, 0.0815553143620491, 0.7078866362571716, 0.26004695892333984, -0.3298376202583313, -0.08709181100130081, 0.2487342804670334, -0.12939992547035217, -0.15447163581848145, 0.23636338114738464, 0.3838108777999878, 0.16346034407615662, -0.12711992859840393, 0.1128419041633606, 0.008305694907903671, -0.002345232293009758, -0.10846357047557831, -0.2304185926914215 ]
https://github.com/huggingface/datasets/issues/3956
TypeError: __init__() missing 1 required positional argument: 'scheme'
Hi @amirj, I really think it is a version incompatibility issue between your Elasticsearch client and server: - Your Elasticsearch server NodeConfig expects a positional argument named 'scheme' - Whereas your Elasticsearch client passes only keyword arguments: `NodeConfig(**options)` Moreover: - Looking at your stack trace, I deduce you are using Elasticsearch client **"8"** major version: - the Elasticsearch file "elasticsearch/_sync/client/utils.py" was created in version "8.0.0a1": https://github.com/elastic/elasticsearch-py/commit/21fa13b0f03b7b27ace9e19a1f763d40bd2e2ba4 - you can check your Elasticsearch client version by running this Python code: ```python import elasticsearch print(elasticsearch.__version__) ``` - However, in the *Environment info*, you informed that the major version of your Eleasticsearch cluster server is **"7"** ("7.10.2-SNAPSHOT") Could you please align the Elasticsearch client/server major versions (as pointed out in Elasticsearch docs) and check if the problem persists?
## Describe the bug Based on [this tutorial](https://huggingface.co/docs/datasets/faiss_es#elasticsearch) the provided code should add Elasticsearch index but raised the following error, probably the new Elasticsearch version is not compatible though the tutorial doesn't provide any information about the supporting Elasticsearch version. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import load_dataset squad = load_dataset('squad', split='validation') squad.add_elasticsearch_index("context", host="localhost", port="9200") ``` ## Expected results [Creating an elastic index based on the provided tutorial](https://huggingface.co/docs/datasets/faiss_es#elasticsearch) ## Actual results ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-6-8fb51aa33961> in <module> 1 from datasets import load_dataset 2 squad = load_dataset('squad', split='validation') ----> 3 squad.add_elasticsearch_index("context", host="localhost", port="9200") ~/opt/anaconda3/lib/python3.8/site-packages/datasets/arrow_dataset.py in add_elasticsearch_index(self, column, index_name, host, port, es_client, es_index_name, es_index_config) 3777 """ 3778 with self.formatted_as(type=None, columns=[column]): -> 3779 super().add_elasticsearch_index( 3780 column=column, 3781 index_name=index_name, ~/opt/anaconda3/lib/python3.8/site-packages/datasets/search.py in add_elasticsearch_index(self, column, index_name, host, port, es_client, es_index_name, es_index_config) 587 """ 588 index_name = index_name if index_name is not None else column --> 589 es_index = ElasticSearchIndex( 590 host=host, port=port, es_client=es_client, es_index_name=es_index_name, es_index_config=es_index_config 591 ) ~/opt/anaconda3/lib/python3.8/site-packages/datasets/search.py in __init__(self, host, port, es_client, es_index_name, es_index_config) 123 from elasticsearch import Elasticsearch # noqa: F811 124 --> 125 self.es_client = es_client if es_client is not None else Elasticsearch([{"host": host, "port": str(port)}]) 126 self.es_index_name = ( 127 es_index_name ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/__init__.py in __init__(self, hosts, cloud_id, api_key, basic_auth, bearer_auth, opaque_id, headers, connections_per_node, http_compress, verify_certs, ca_certs, client_cert, client_key, ssl_assert_hostname, ssl_assert_fingerprint, ssl_version, ssl_context, ssl_show_warn, transport_class, request_timeout, node_class, node_pool_class, randomize_nodes_in_pool, node_selector_class, dead_node_backoff_factor, max_dead_node_backoff, serializer, serializers, default_mimetype, max_retries, retry_on_status, retry_on_timeout, sniff_on_start, sniff_before_requests, sniff_on_node_failure, sniff_timeout, min_delay_between_sniffing, sniffed_node_callback, meta_header, timeout, randomize_hosts, host_info_callback, sniffer_timeout, sniff_on_connection_fail, http_auth, maxsize, _transport) 310 311 if _transport is None: --> 312 node_configs = client_node_configs( 313 hosts, 314 cloud_id=cloud_id, ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in client_node_configs(hosts, cloud_id, **kwargs) 99 else: 100 assert hosts is not None --> 101 node_configs = hosts_to_node_configs(hosts) 102 103 # Remove all values which are 'DEFAULT' to avoid overwriting actual defaults. ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in hosts_to_node_configs(hosts) 142 143 elif isinstance(host, Mapping): --> 144 node_configs.append(host_mapping_to_node_config(host)) 145 else: 146 raise ValueError( ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in host_mapping_to_node_config(host) 209 options["path_prefix"] = options.pop("url_prefix") 210 --> 211 return NodeConfig(**options) # type: ignore 212 213 TypeError: __init__() missing 1 required positional argument: 'scheme' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.0.0 - Platform: Mac - Python version: 3.8.0 - PyArrow version: 7.0.0 - ElaticSearch Info: { "name" : "byname", "cluster_name" : "elasticsearch_brew", "cluster_uuid" : "9xkjrltiQIG0J95ciWhqRA", "version" : { "number" : "7.10.2-SNAPSHOT", "build_flavor" : "oss", "build_type" : "tar", "build_hash" : "unknown", "build_date" : "2021-01-16T01:41:27.115673Z", "build_snapshot" : true, "lucene_version" : "8.7.0", "minimum_wire_compatibility_version" : "6.8.0", "minimum_index_compatibility_version" : "6.0.0-beta1" }, "tagline" : "You Know, for Search" }
125
TypeError: __init__() missing 1 required positional argument: 'scheme' ## Describe the bug Based on [this tutorial](https://huggingface.co/docs/datasets/faiss_es#elasticsearch) the provided code should add Elasticsearch index but raised the following error, probably the new Elasticsearch version is not compatible though the tutorial doesn't provide any information about the supporting Elasticsearch version. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import load_dataset squad = load_dataset('squad', split='validation') squad.add_elasticsearch_index("context", host="localhost", port="9200") ``` ## Expected results [Creating an elastic index based on the provided tutorial](https://huggingface.co/docs/datasets/faiss_es#elasticsearch) ## Actual results ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-6-8fb51aa33961> in <module> 1 from datasets import load_dataset 2 squad = load_dataset('squad', split='validation') ----> 3 squad.add_elasticsearch_index("context", host="localhost", port="9200") ~/opt/anaconda3/lib/python3.8/site-packages/datasets/arrow_dataset.py in add_elasticsearch_index(self, column, index_name, host, port, es_client, es_index_name, es_index_config) 3777 """ 3778 with self.formatted_as(type=None, columns=[column]): -> 3779 super().add_elasticsearch_index( 3780 column=column, 3781 index_name=index_name, ~/opt/anaconda3/lib/python3.8/site-packages/datasets/search.py in add_elasticsearch_index(self, column, index_name, host, port, es_client, es_index_name, es_index_config) 587 """ 588 index_name = index_name if index_name is not None else column --> 589 es_index = ElasticSearchIndex( 590 host=host, port=port, es_client=es_client, es_index_name=es_index_name, es_index_config=es_index_config 591 ) ~/opt/anaconda3/lib/python3.8/site-packages/datasets/search.py in __init__(self, host, port, es_client, es_index_name, es_index_config) 123 from elasticsearch import Elasticsearch # noqa: F811 124 --> 125 self.es_client = es_client if es_client is not None else Elasticsearch([{"host": host, "port": str(port)}]) 126 self.es_index_name = ( 127 es_index_name ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/__init__.py in __init__(self, hosts, cloud_id, api_key, basic_auth, bearer_auth, opaque_id, headers, connections_per_node, http_compress, verify_certs, ca_certs, client_cert, client_key, ssl_assert_hostname, ssl_assert_fingerprint, ssl_version, ssl_context, ssl_show_warn, transport_class, request_timeout, node_class, node_pool_class, randomize_nodes_in_pool, node_selector_class, dead_node_backoff_factor, max_dead_node_backoff, serializer, serializers, default_mimetype, max_retries, retry_on_status, retry_on_timeout, sniff_on_start, sniff_before_requests, sniff_on_node_failure, sniff_timeout, min_delay_between_sniffing, sniffed_node_callback, meta_header, timeout, randomize_hosts, host_info_callback, sniffer_timeout, sniff_on_connection_fail, http_auth, maxsize, _transport) 310 311 if _transport is None: --> 312 node_configs = client_node_configs( 313 hosts, 314 cloud_id=cloud_id, ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in client_node_configs(hosts, cloud_id, **kwargs) 99 else: 100 assert hosts is not None --> 101 node_configs = hosts_to_node_configs(hosts) 102 103 # Remove all values which are 'DEFAULT' to avoid overwriting actual defaults. ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in hosts_to_node_configs(hosts) 142 143 elif isinstance(host, Mapping): --> 144 node_configs.append(host_mapping_to_node_config(host)) 145 else: 146 raise ValueError( ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in host_mapping_to_node_config(host) 209 options["path_prefix"] = options.pop("url_prefix") 210 --> 211 return NodeConfig(**options) # type: ignore 212 213 TypeError: __init__() missing 1 required positional argument: 'scheme' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.0.0 - Platform: Mac - Python version: 3.8.0 - PyArrow version: 7.0.0 - ElaticSearch Info: { "name" : "byname", "cluster_name" : "elasticsearch_brew", "cluster_uuid" : "9xkjrltiQIG0J95ciWhqRA", "version" : { "number" : "7.10.2-SNAPSHOT", "build_flavor" : "oss", "build_type" : "tar", "build_hash" : "unknown", "build_date" : "2021-01-16T01:41:27.115673Z", "build_snapshot" : true, "lucene_version" : "8.7.0", "minimum_wire_compatibility_version" : "6.8.0", "minimum_index_compatibility_version" : "6.0.0-beta1" }, "tagline" : "You Know, for Search" } Hi @amirj, I really think it is a version incompatibility issue between your Elasticsearch client and server: - Your Elasticsearch server NodeConfig expects a positional argument named 'scheme' - Whereas your Elasticsearch client passes only keyword arguments: `NodeConfig(**options)` Moreover: - Looking at your stack trace, I deduce you are using Elasticsearch client **"8"** major version: - the Elasticsearch file "elasticsearch/_sync/client/utils.py" was created in version "8.0.0a1": https://github.com/elastic/elasticsearch-py/commit/21fa13b0f03b7b27ace9e19a1f763d40bd2e2ba4 - you can check your Elasticsearch client version by running this Python code: ```python import elasticsearch print(elasticsearch.__version__) ``` - However, in the *Environment info*, you informed that the major version of your Eleasticsearch cluster server is **"7"** ("7.10.2-SNAPSHOT") Could you please align the Elasticsearch client/server major versions (as pointed out in Elasticsearch docs) and check if the problem persists?
[ -0.2016848921775818, -0.3632032871246338, -0.06706374138593674, -0.11549955606460571, -0.01564791426062584, 0.24799758195877075, 0.23410780727863312, 0.28774207830429077, 0.06386101245880127, 0.09369005262851715, -0.03584487736225128, 0.3917694687843323, -0.02158251777291298, -0.1523347944021225, 0.12814927101135254, -0.23091354966163635, 0.12108580023050308, 0.08743247389793396, 0.1187867671251297, -0.05167962983250618, -0.22444796562194824, 0.20195692777633667, -0.23997004330158234, -0.18637610971927643, 0.02606857754290104, 0.0416945144534111, -0.28112679719924927, 0.03704361617565155, -0.2842971384525299, -0.5741448402404785, 0.5656747817993164, -0.3205861747264862, -0.005403338000178337, 0.3283087909221649, -0.00011749420809792355, 0.25889575481414795, 0.6181120276451111, -0.07087100297212601, -0.13659758865833282, -0.3066090941429138, -0.2747555673122406, -0.1212204322218895, 0.3674221634864807, -0.374552845954895, -0.0447416827082634, 0.0033122622407972813, 0.05285114794969559, -0.37703457474708557, 0.542248010635376, 0.47417768836021423, 0.18038399517536163, 0.17155671119689941, 0.4112606346607208, -0.5131977796554565, 0.1866668164730072, 0.06860902905464172, -0.18627433478832245, 0.07581310719251633, -0.07554714381694794, 0.3040463626384735, 0.2885068953037262, 0.1322861909866333, 0.08194410055875778, -0.09907306730747223, 0.013178549706935883, 0.130726158618927, 0.1366858184337616, -0.1495373696088791, -0.2264220416545868, -0.19474047422409058, 0.22920918464660645, -0.1556187868118286, -0.430876225233078, 0.1329660713672638, 0.15858228504657745, -0.24052903056144714, 0.1471446454524994, -0.01519850641489029, -0.01276046596467495, 0.11773882806301117, 0.3022184669971466, -0.17759950459003448, -0.3475021421909332, 0.509226381778717, 0.08471724390983582, 0.18191629648208618, -0.08087745308876038, 0.03919326141476631, 0.10659897327423096, -0.17301416397094727, 0.0020134970545768738, 0.35526376962661743, 0.07880109548568726, 0.25270968675613403, -0.298414945602417, -0.028203226625919342, 0.11226426064968109, -0.24619290232658386, 0.08844666182994843, -0.19228848814964294, -0.11351718008518219, -0.16037479043006897, 0.5498575568199158, 0.1669119894504547, -0.0451066829264164, 0.10128207504749298, 0.12001409381628036, 0.1737443059682846, -0.04900796711444855, -0.06313716620206833, 0.2725945711135864, -0.05621439218521118, 0.027270983904600143, -0.39451947808265686, 0.19150519371032715, -0.04523472487926483, 0.4555639624595642, -0.1275634914636612, -0.2430797517299652, -0.058576956391334534, -0.3170815110206604, -0.08470085263252258, 0.03729460760951042, 0.19214943051338196, 0.23219715058803558, -0.49633651971817017, 0.4507415294647217, 0.37821710109710693, -0.14591377973556519, 0.19899222254753113, -0.2593500018119812, 0.13554327189922333, -0.016312826424837112, -0.0615728497505188, 0.11322858929634094, -0.5844493508338928, 0.424712210893631, 0.2325558215379715, -0.0374879390001297, 0.06102435290813446, 0.21578355133533478, 0.03000977262854576, -0.2533141076564789, 0.12639819085597992, -0.03472073748707771, -0.2597741186618805, 0.1583043485879898, 0.04150703549385071, -0.1471165120601654, -0.08972705155611038, -0.27633389830589294, -0.5810436010360718, -0.6209132075309753, 0.18935957551002502, 0.04452057182788849, -0.0496431440114975, -0.1614016592502594, 0.09762080013751984, 0.2085871696472168, -0.058684367686510086, -0.11428231745958328, -0.10848662257194519, -0.10685460269451141, 0.052994802594184875, 0.25938162207603455, 0.27527672052383423, -0.1447119265794754, -0.21051591634750366, -0.21796676516532898, 0.3615584671497345, -0.12702983617782593, 0.04294745996594429, -0.3336136043071747, 0.3303684592247009, -0.07992488145828247, 0.09090197086334229, 0.6981770992279053, -0.5474755764007568, -0.05364164710044861, -0.2091818004846573, -0.0626361146569252, -0.28868961334228516, 0.0518559031188488, -0.0723179504275322, 0.12955723702907562, 0.20207183063030243, 0.08368924260139465, 0.01887386292219162, 0.15685845911502838, -0.19041112065315247, -0.301076740026474, -0.020756248384714127, -0.2133549302816391, 0.21949070692062378, 0.06886724382638931, 0.07438905537128448, 0.11305706202983856, -0.09494039416313171, -0.028915435075759888, 0.09682786464691162, -0.016093261539936066, 0.3530192971229553, 0.4477272033691406, 0.047498635947704315, 0.14511950314044952, -0.2445705533027649, -0.18614473938941956, 0.08873280137777328, 0.13050797581672668, 0.406612366437912, -0.27547067403793335, -0.005486661568284035, -0.4557580351829529, -0.01253544632345438, -0.19992031157016754, -0.04046143218874931, 0.04769033193588257, -0.18044599890708923, 0.06550566852092743, 0.0815153568983078, -0.3663471043109894, 0.09038390964269638, -0.2240106612443924, 0.08741602301597595, -0.4838052988052368, 0.3780789077281952, -0.33995088934898376, -0.28489744663238525, -0.10054965317249298, -0.12728169560432434, 0.1625956892967224, -0.2289763242006302, -0.25290611386299133, 0.3170164227485657, 0.1585819125175476, -0.19934971630573273, -0.009423654526472092, -0.2196141928434372, 0.06879403442144394, -0.37171244621276855, -0.16011859476566315, 0.11465616524219513, 0.006017384119331837, 0.007571272552013397, -0.14095252752304077, 0.04912819713354111, -0.02767769619822502, 0.12361021339893341, -0.18654656410217285, 0.02449805848300457, 0.1674746721982956, 0.012846183031797409, -0.21484306454658508, -0.1568399965763092, 0.0762600377202034, 0.01104122307151556, 0.0965333878993988, -0.25609228014945984, -0.08062159270048141, -0.25564810633659363, 0.10096422582864761, 0.19080913066864014, 0.010987155139446259, 0.331563800573349, 0.03062807396054268, -0.02417568303644657, 0.020020071417093277, -0.2649323046207428, 0.5081580877304077, 0.18637005984783173, -0.25493335723876953, 0.17880897223949432, -0.19513489305973053, 0.04349720850586891, 0.3546719253063202, 0.07760702073574066, 0.27825599908828735, -0.041064366698265076, 0.2114386409521103, 0.2027517557144165, -0.3051764667034149, -0.43048304319381714, -0.0631658285856247, 0.22089438140392303, -0.3955519199371338, 0.18457695841789246, 0.026865897700190544, 0.029932469129562378, -0.06779695302248001, 0.028935492038726807, 0.14077268540859222, -0.2932102084159851, -0.0042730458080768585, 0.287345826625824, -0.0005063079297542572, 0.2911936044692993, -0.21529774367809296, 0.1278517097234726, 0.49245327711105347, -0.2807105779647827, -0.11807635426521301, 0.0015201910864561796, -0.14660727977752686, 0.008754681795835495, 0.04373576492071152, 0.22541916370391846, 0.2538788318634033, -0.20993782579898834, 0.007348274812102318, -0.1291220337152481, -0.5952883958816528, 0.07578372955322266, -0.0007680803537368774, 0.4424196779727936, 0.4109160602092743, 0.16726261377334595, -0.5368112921714783, -0.41640403866767883, 0.3792354166507721, -0.04723803699016571, -0.2670034170150757, 0.013098370283842087, -0.2433001548051834, -0.10956114530563354, -0.06101022660732269, -0.6315123438835144, -0.12185580283403397, -0.44279223680496216, 0.09282082319259644, 0.029339883476495743, 0.04037041962146759, 0.4282231628894806, 0.20013661682605743, 0.1551533043384552, -0.056106846779584885, 0.06929905712604523, -0.19250118732452393, -0.07027511298656464, 0.318307101726532, -0.3651517927646637, -0.2466861754655838, -0.11417198926210403, -0.164214625954628, 0.2686994969844818, 0.2605507969856262, -0.08813009411096573, -0.24472881853580475, -0.012626884505152702, 0.18011225759983063, -0.39560067653656006, 0.15023291110992432, 0.5313318967819214, 0.022441621869802475, 0.029162781313061714, -0.06478041410446167, -0.20795899629592896, 0.4208354651927948, 0.36750689148902893, 0.1470498889684677, 0.025194022804498672, 0.5940635204315186, -0.09034881740808487, 0.6092323660850525, 0.1436544805765152, -0.21905450522899628, 0.42050808668136597, -0.20543263852596283, 0.1942412406206131, -0.354234516620636, -0.48431622982025146, -0.2542822062969208, 0.21809720993041992, -0.05511981248855591, -0.20352430641651154, -0.09399230778217316, -0.2704288959503174, -0.1703050583600998, -0.10129693150520325, -0.1212010607123375, -0.020871033892035484, 0.00469244085252285, 0.18875783681869507, 0.3433679938316345, -0.04434630274772644, 0.05758998543024063, -0.3259448707103729, 0.0016673989593982697, -0.06839998066425323, 0.23384666442871094, 0.13191193342208862, 0.11509761959314346, -0.24705345928668976, -0.0795561745762825, -0.15446966886520386, 0.32566553354263306, 0.11695551872253418, 0.2916451692581177, 0.10584454238414764, 0.08956597000360489, 0.1443972885608673, 0.27722641825675964, 0.3966250419616699, -0.20455573499202728, -0.44139188528060913, 0.06688979268074036, 0.19479964673519135, -0.7750585079193115, -0.07959632575511932, -0.0787116140127182, 0.41826480627059937, 0.3315991759300232, 0.4458385109901428, -0.26200297474861145, 0.004422117955982685, 0.31997931003570557, -0.060293108224868774, 0.10584942996501923, -0.13034655153751373, -0.33353644609451294, -0.5129056572914124, -0.13413970172405243, 0.37002891302108765, 0.23657004535198212, 0.12518157064914703, 0.507093608379364, 0.027412984520196915, -0.32149678468704224, 0.06367124617099762, -0.2171642929315567, 0.19231903553009033, 0.30741024017333984, -0.009890173561871052, 0.12439419329166412, 0.2359708547592163, 0.11198317259550095, 0.32079243659973145, 0.2626963257789612, -0.08832216262817383, -0.05884699523448944, 0.037889234721660614, -0.15468041598796844, 0.22471708059310913, 0.21699386835098267, 0.09715781360864639, 0.04001656547188759, -0.3238070011138916, 0.08720873296260834, 0.09572218358516693, -0.19480028748512268, 0.5735222101211548, -0.042939167469739914, -0.04280680790543556, -0.3231015205383301, 0.4523456394672394, -0.17633740603923798, -0.009486563503742218, 0.41088542342185974, 0.5747948884963989, -0.3028593957424164, 0.6433290243148804, 0.04565415903925896, 0.7333821058273315, 0.3420003652572632, -0.030945662409067154, 0.544173538684845, 0.2750750780105591, 0.46323004364967346, 0.2398342341184616, 0.376303493976593, -0.1720002293586731, -0.017059601843357086, 0.025094063952565193, -0.33774301409721375, 0.1853720247745514, -0.1375247985124588, -0.4986567199230194, 0.1609334796667099, -0.3430403470993042, 0.3382047116756439, -0.04634808748960495, 0.29734912514686584, 0.062463223934173584, -0.10241612792015076, -0.45164260268211365, 0.1494489312171936, 0.1401236355304718, 0.23386222124099731, -0.02197498083114624, -0.12254619598388672, -0.15758685767650604, -0.25774770975112915, -0.21491575241088867, 0.05757739394903183, -0.05206260457634926, 0.7435449361801147, -0.07383909821510315, 0.04259507358074188, 0.25084179639816284, 0.19051571190357208, 0.15676726400852203, 0.0009723193943500519, -0.14113228023052216, 0.17027901113033295, 0.11794821172952652, -0.2572278380393982, 0.15579883754253387, -0.19507385790348053, 0.1639709770679474, -0.12959697842597961, -0.31425485014915466, 0.03283806890249252, -0.07789640873670578, -0.5886421799659729, -0.15742163360118866, 0.05737406760454178, -0.32888907194137573, -0.3205672800540924, -0.34725698828697205, 0.010652467608451843, -0.10850454866886139, -0.19403739273548126, 0.12451094388961792, 0.03900434821844101, -0.030804980546236038, 0.12103977799415588, 0.16502900421619415, -0.20939266681671143, 0.07414896786212921, 0.40867674350738525, -0.028067808598279953, 0.027040690183639526, 0.5184391140937805, -0.19264623522758484, -0.20226538181304932, -0.02087932825088501, -0.08765999227762222, 0.12624920904636383, -0.35527360439300537, -0.08974500745534897, -0.19501087069511414, 0.10114823281764984, 0.15767274796962738, 0.04774701967835426, 0.27957865595817566, 0.21516939997673035, 0.004116706550121307, -0.09374720603227615, 0.06721725314855576, 0.18362309038639069, 0.11752866208553314, 0.1098427027463913, -0.2728893756866455, 0.12384665012359619, -0.009615459479391575, -0.22544477880001068, -0.29340875148773193, 0.15973439812660217, 0.04523332417011261, 0.11993488669395447, -0.08892033994197845, -0.027815431356430054, 0.32008427381515503, -0.27543747425079346, 0.12655378878116608, 0.037021536380052567, -0.22740446031093597, -0.16288527846336365, -0.2106008678674698, 0.1217702254652977, -0.0909649059176445, -0.002784878481179476, 0.025836557149887085, -0.3257220983505249, -0.2259400188922882, -0.1212368905544281, -0.20477372407913208, 0.24182605743408203, 0.10943520069122314, -0.12330314517021179, 0.01615607738494873, -0.2745512127876282, 0.19408974051475525, -0.015984732657670975, 0.019721664488315582, -0.05105365812778473, -0.14577679336071014, 0.36294519901275635, 0.005973204039037228, 0.013680145144462585, 0.0033065672032535076, 0.22539815306663513, 0.02929583191871643, 0.2606130540370941, 0.1041988879442215, -0.3508845567703247, -0.1931648999452591, 0.05785103142261505, 0.1273362934589386, 0.3986719250679016, -0.2369803637266159, 0.08441096544265747, -0.23200327157974243, 0.2227538675069809, -0.2696215510368347, 0.13045147061347961, 0.3413183093070984, 0.07846494019031525, 0.15042325854301453, 0.14567524194717407, 0.23208138346672058, -0.02701627090573311, -0.023860491812229156, 0.13862445950508118, 0.30455806851387024, -0.18865951895713806, 0.24231675267219543, 0.08422215282917023, -0.08919724076986313, 0.03792720288038254, 0.2449096292257309, 0.15888556838035583, 0.3785720467567444, 0.2312900573015213, -0.10241537541151047, 0.2956625819206238, 0.07353317737579346, -0.06403745710849762, 0.14875096082687378, 0.15469443798065186, 0.13724219799041748, 0.25931882858276367, 0.08127235621213913, -0.06831403821706772, 0.13513444364070892, 0.6648653149604797, -0.08970357477664948, -0.20236323773860931, -0.30873870849609375, -0.06874972581863403, -0.12762033939361572, 0.060470882803201675, -0.06688348203897476, -0.0928228497505188, -0.299268901348114, -0.3756156861782074, 0.04790465161204338, 0.015934336930513382, 0.09762664884328842, 0.10304411500692368, 0.04445306584239006, -0.19308704137802124, -0.03233696520328522, 0.3514101207256317, 0.2818715274333954, -0.17716902494430542, 0.2298281341791153, 0.23991146683692932, -0.39655593037605286, -0.12539955973625183, 0.5719947814941406, 0.49208465218544006, 0.23872330784797668, 0.021450696513056755, 0.2234821319580078, 0.1455843299627304, -0.2435917854309082, 0.1587710678577423, 0.020072072744369507, 0.014065012335777283, -0.12390246987342834, 0.049776215106248856, 0.13790766894817352, -0.06139102578163147, 0.09848792850971222, -0.04110787436366081, 0.35505667328834534, -0.21443329751491547, -0.0778079703450203, -0.3696306347846985, 0.07895579189062119, 0.26088106632232666, 0.09332776814699173, -0.36340582370758057, 0.05720897763967514, 0.3693157732486725, 0.09857343137264252, -0.016547905281186104, 0.13553152978420258, 0.07790929079055786, -0.05985147878527641, 0.07600873708724976, 0.33703628182411194, 0.01002788171172142, -0.13372807204723358, -0.1390438973903656, -0.3820655941963196, 0.23836085200309753, -0.22545036673545837, -0.02634337916970253, 0.3816804885864258, 0.34244269132614136, 0.10842321068048477, 0.14200308918952942, 0.17009036242961884, -0.4230796694755554, -0.18643496930599213, 0.003945387899875641, -0.4493270516395569, -0.062182437628507614, 0.11941778659820557, 0.010777018964290619, 0.08829247206449509, -0.12448927760124207, -0.1562022715806961, -0.13895145058631897, 0.07300841063261032, -0.37578749656677246, -0.036557018756866455, 0.1598639339208603, -0.37470656633377075, 0.19872045516967773, 0.021882588043808937, 0.32474684715270996, -0.11637155711650848, -0.19172534346580505, -0.16996853053569794, -0.5526599287986755, -0.14767330884933472, 0.4530313014984131, 0.1776512861251831, 0.4545643627643585, -0.104247085750103, -0.5818839073181152, -0.2607060372829437, 0.45055386424064636, -0.09360715001821518, -0.4287995994091034, -0.44806385040283203, 0.24680590629577637, -0.20834791660308838, 0.1132245659828186, -0.13324417173862457, 0.12047593295574188, -0.04375084489583969, 0.3304932713508606, -0.11414305865764618, -0.4131426215171814, 0.5429112911224365, -0.3857053220272064, -0.10526178777217865, -0.06485100090503693, 0.0815553143620491, 0.7078866362571716, 0.26004695892333984, -0.3298376202583313, -0.08709181100130081, 0.2487342804670334, -0.12939992547035217, -0.15447163581848145, 0.23636338114738464, 0.3838108777999878, 0.16346034407615662, -0.12711992859840393, 0.1128419041633606, 0.008305694907903671, -0.002345232293009758, -0.10846357047557831, -0.2304185926914215 ]
https://github.com/huggingface/datasets/issues/3956
TypeError: __init__() missing 1 required positional argument: 'scheme'
``` from elasticsearch import Elasticsearch es = Elasticsearch([{'host': 'localhost', 'port': 9200}]) ``` ``` TypeError Traceback (most recent call last) <ipython-input-8-675c6ffe5293> in <module> 1 #es = Elasticsearch([{'host':'localhost', 'port':9200}]) 2 from elasticsearch import Elasticsearch ----> 3 es = Elasticsearch([{'host': 'localhost', 'port': 9200}]) C:\ProgramData\Anaconda3\lib\site-packages\elasticsearch\_sync\client\__init__.py in __init__(self, hosts, cloud_id, api_key, basic_auth, bearer_auth, opaque_id, headers, connections_per_node, http_compress, verify_certs, ca_certs, client_cert, client_key, ssl_assert_hostname, ssl_assert_fingerprint, ssl_version, ssl_context, ssl_show_warn, transport_class, request_timeout, node_class, node_pool_class, randomize_nodes_in_pool, node_selector_class, dead_node_backoff_factor, max_dead_node_backoff, serializer, serializers, default_mimetype, max_retries, retry_on_status, retry_on_timeout, sniff_on_start, sniff_before_requests, sniff_on_node_failure, sniff_timeout, min_delay_between_sniffing, sniffed_node_callback, meta_header, timeout, randomize_hosts, host_info_callback, sniffer_timeout, sniff_on_connection_fail, http_auth, maxsize, _transport) 310 311 if _transport is None: --> 312 node_configs = client_node_configs( 313 hosts, 314 cloud_id=cloud_id, C:\ProgramData\Anaconda3\lib\site-packages\elasticsearch\_sync\client\utils.py in client_node_configs(hosts, cloud_id, **kwargs) 99 else: 100 assert hosts is not None --> 101 node_configs = hosts_to_node_configs(hosts) 102 103 # Remove all values which are 'DEFAULT' to avoid overwriting actual defaults. C:\ProgramData\Anaconda3\lib\site-packages\elasticsearch\_sync\client\utils.py in hosts_to_node_configs(hosts) 142 143 elif isinstance(host, Mapping): --> 144 node_configs.append(host_mapping_to_node_config(host)) 145 else: 146 raise ValueError( C:\ProgramData\Anaconda3\lib\site-packages\elasticsearch\_sync\client\utils.py in host_mapping_to_node_config(host) 209 options["path_prefix"] = options.pop("url_prefix") 210 --> 211 return NodeConfig(**options) # type: ignore 212 213 TypeError: __init__() missing 1 required positional argument: 'scheme' ```
## Describe the bug Based on [this tutorial](https://huggingface.co/docs/datasets/faiss_es#elasticsearch) the provided code should add Elasticsearch index but raised the following error, probably the new Elasticsearch version is not compatible though the tutorial doesn't provide any information about the supporting Elasticsearch version. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import load_dataset squad = load_dataset('squad', split='validation') squad.add_elasticsearch_index("context", host="localhost", port="9200") ``` ## Expected results [Creating an elastic index based on the provided tutorial](https://huggingface.co/docs/datasets/faiss_es#elasticsearch) ## Actual results ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-6-8fb51aa33961> in <module> 1 from datasets import load_dataset 2 squad = load_dataset('squad', split='validation') ----> 3 squad.add_elasticsearch_index("context", host="localhost", port="9200") ~/opt/anaconda3/lib/python3.8/site-packages/datasets/arrow_dataset.py in add_elasticsearch_index(self, column, index_name, host, port, es_client, es_index_name, es_index_config) 3777 """ 3778 with self.formatted_as(type=None, columns=[column]): -> 3779 super().add_elasticsearch_index( 3780 column=column, 3781 index_name=index_name, ~/opt/anaconda3/lib/python3.8/site-packages/datasets/search.py in add_elasticsearch_index(self, column, index_name, host, port, es_client, es_index_name, es_index_config) 587 """ 588 index_name = index_name if index_name is not None else column --> 589 es_index = ElasticSearchIndex( 590 host=host, port=port, es_client=es_client, es_index_name=es_index_name, es_index_config=es_index_config 591 ) ~/opt/anaconda3/lib/python3.8/site-packages/datasets/search.py in __init__(self, host, port, es_client, es_index_name, es_index_config) 123 from elasticsearch import Elasticsearch # noqa: F811 124 --> 125 self.es_client = es_client if es_client is not None else Elasticsearch([{"host": host, "port": str(port)}]) 126 self.es_index_name = ( 127 es_index_name ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/__init__.py in __init__(self, hosts, cloud_id, api_key, basic_auth, bearer_auth, opaque_id, headers, connections_per_node, http_compress, verify_certs, ca_certs, client_cert, client_key, ssl_assert_hostname, ssl_assert_fingerprint, ssl_version, ssl_context, ssl_show_warn, transport_class, request_timeout, node_class, node_pool_class, randomize_nodes_in_pool, node_selector_class, dead_node_backoff_factor, max_dead_node_backoff, serializer, serializers, default_mimetype, max_retries, retry_on_status, retry_on_timeout, sniff_on_start, sniff_before_requests, sniff_on_node_failure, sniff_timeout, min_delay_between_sniffing, sniffed_node_callback, meta_header, timeout, randomize_hosts, host_info_callback, sniffer_timeout, sniff_on_connection_fail, http_auth, maxsize, _transport) 310 311 if _transport is None: --> 312 node_configs = client_node_configs( 313 hosts, 314 cloud_id=cloud_id, ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in client_node_configs(hosts, cloud_id, **kwargs) 99 else: 100 assert hosts is not None --> 101 node_configs = hosts_to_node_configs(hosts) 102 103 # Remove all values which are 'DEFAULT' to avoid overwriting actual defaults. ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in hosts_to_node_configs(hosts) 142 143 elif isinstance(host, Mapping): --> 144 node_configs.append(host_mapping_to_node_config(host)) 145 else: 146 raise ValueError( ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in host_mapping_to_node_config(host) 209 options["path_prefix"] = options.pop("url_prefix") 210 --> 211 return NodeConfig(**options) # type: ignore 212 213 TypeError: __init__() missing 1 required positional argument: 'scheme' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.0.0 - Platform: Mac - Python version: 3.8.0 - PyArrow version: 7.0.0 - ElaticSearch Info: { "name" : "byname", "cluster_name" : "elasticsearch_brew", "cluster_uuid" : "9xkjrltiQIG0J95ciWhqRA", "version" : { "number" : "7.10.2-SNAPSHOT", "build_flavor" : "oss", "build_type" : "tar", "build_hash" : "unknown", "build_date" : "2021-01-16T01:41:27.115673Z", "build_snapshot" : true, "lucene_version" : "8.7.0", "minimum_wire_compatibility_version" : "6.8.0", "minimum_index_compatibility_version" : "6.0.0-beta1" }, "tagline" : "You Know, for Search" }
179
TypeError: __init__() missing 1 required positional argument: 'scheme' ## Describe the bug Based on [this tutorial](https://huggingface.co/docs/datasets/faiss_es#elasticsearch) the provided code should add Elasticsearch index but raised the following error, probably the new Elasticsearch version is not compatible though the tutorial doesn't provide any information about the supporting Elasticsearch version. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import load_dataset squad = load_dataset('squad', split='validation') squad.add_elasticsearch_index("context", host="localhost", port="9200") ``` ## Expected results [Creating an elastic index based on the provided tutorial](https://huggingface.co/docs/datasets/faiss_es#elasticsearch) ## Actual results ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-6-8fb51aa33961> in <module> 1 from datasets import load_dataset 2 squad = load_dataset('squad', split='validation') ----> 3 squad.add_elasticsearch_index("context", host="localhost", port="9200") ~/opt/anaconda3/lib/python3.8/site-packages/datasets/arrow_dataset.py in add_elasticsearch_index(self, column, index_name, host, port, es_client, es_index_name, es_index_config) 3777 """ 3778 with self.formatted_as(type=None, columns=[column]): -> 3779 super().add_elasticsearch_index( 3780 column=column, 3781 index_name=index_name, ~/opt/anaconda3/lib/python3.8/site-packages/datasets/search.py in add_elasticsearch_index(self, column, index_name, host, port, es_client, es_index_name, es_index_config) 587 """ 588 index_name = index_name if index_name is not None else column --> 589 es_index = ElasticSearchIndex( 590 host=host, port=port, es_client=es_client, es_index_name=es_index_name, es_index_config=es_index_config 591 ) ~/opt/anaconda3/lib/python3.8/site-packages/datasets/search.py in __init__(self, host, port, es_client, es_index_name, es_index_config) 123 from elasticsearch import Elasticsearch # noqa: F811 124 --> 125 self.es_client = es_client if es_client is not None else Elasticsearch([{"host": host, "port": str(port)}]) 126 self.es_index_name = ( 127 es_index_name ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/__init__.py in __init__(self, hosts, cloud_id, api_key, basic_auth, bearer_auth, opaque_id, headers, connections_per_node, http_compress, verify_certs, ca_certs, client_cert, client_key, ssl_assert_hostname, ssl_assert_fingerprint, ssl_version, ssl_context, ssl_show_warn, transport_class, request_timeout, node_class, node_pool_class, randomize_nodes_in_pool, node_selector_class, dead_node_backoff_factor, max_dead_node_backoff, serializer, serializers, default_mimetype, max_retries, retry_on_status, retry_on_timeout, sniff_on_start, sniff_before_requests, sniff_on_node_failure, sniff_timeout, min_delay_between_sniffing, sniffed_node_callback, meta_header, timeout, randomize_hosts, host_info_callback, sniffer_timeout, sniff_on_connection_fail, http_auth, maxsize, _transport) 310 311 if _transport is None: --> 312 node_configs = client_node_configs( 313 hosts, 314 cloud_id=cloud_id, ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in client_node_configs(hosts, cloud_id, **kwargs) 99 else: 100 assert hosts is not None --> 101 node_configs = hosts_to_node_configs(hosts) 102 103 # Remove all values which are 'DEFAULT' to avoid overwriting actual defaults. ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in hosts_to_node_configs(hosts) 142 143 elif isinstance(host, Mapping): --> 144 node_configs.append(host_mapping_to_node_config(host)) 145 else: 146 raise ValueError( ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in host_mapping_to_node_config(host) 209 options["path_prefix"] = options.pop("url_prefix") 210 --> 211 return NodeConfig(**options) # type: ignore 212 213 TypeError: __init__() missing 1 required positional argument: 'scheme' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.0.0 - Platform: Mac - Python version: 3.8.0 - PyArrow version: 7.0.0 - ElaticSearch Info: { "name" : "byname", "cluster_name" : "elasticsearch_brew", "cluster_uuid" : "9xkjrltiQIG0J95ciWhqRA", "version" : { "number" : "7.10.2-SNAPSHOT", "build_flavor" : "oss", "build_type" : "tar", "build_hash" : "unknown", "build_date" : "2021-01-16T01:41:27.115673Z", "build_snapshot" : true, "lucene_version" : "8.7.0", "minimum_wire_compatibility_version" : "6.8.0", "minimum_index_compatibility_version" : "6.0.0-beta1" }, "tagline" : "You Know, for Search" } ``` from elasticsearch import Elasticsearch es = Elasticsearch([{'host': 'localhost', 'port': 9200}]) ``` ``` TypeError Traceback (most recent call last) <ipython-input-8-675c6ffe5293> in <module> 1 #es = Elasticsearch([{'host':'localhost', 'port':9200}]) 2 from elasticsearch import Elasticsearch ----> 3 es = Elasticsearch([{'host': 'localhost', 'port': 9200}]) C:\ProgramData\Anaconda3\lib\site-packages\elasticsearch\_sync\client\__init__.py in __init__(self, hosts, cloud_id, api_key, basic_auth, bearer_auth, opaque_id, headers, connections_per_node, http_compress, verify_certs, ca_certs, client_cert, client_key, ssl_assert_hostname, ssl_assert_fingerprint, ssl_version, ssl_context, ssl_show_warn, transport_class, request_timeout, node_class, node_pool_class, randomize_nodes_in_pool, node_selector_class, dead_node_backoff_factor, max_dead_node_backoff, serializer, serializers, default_mimetype, max_retries, retry_on_status, retry_on_timeout, sniff_on_start, sniff_before_requests, sniff_on_node_failure, sniff_timeout, min_delay_between_sniffing, sniffed_node_callback, meta_header, timeout, randomize_hosts, host_info_callback, sniffer_timeout, sniff_on_connection_fail, http_auth, maxsize, _transport) 310 311 if _transport is None: --> 312 node_configs = client_node_configs( 313 hosts, 314 cloud_id=cloud_id, C:\ProgramData\Anaconda3\lib\site-packages\elasticsearch\_sync\client\utils.py in client_node_configs(hosts, cloud_id, **kwargs) 99 else: 100 assert hosts is not None --> 101 node_configs = hosts_to_node_configs(hosts) 102 103 # Remove all values which are 'DEFAULT' to avoid overwriting actual defaults. C:\ProgramData\Anaconda3\lib\site-packages\elasticsearch\_sync\client\utils.py in hosts_to_node_configs(hosts) 142 143 elif isinstance(host, Mapping): --> 144 node_configs.append(host_mapping_to_node_config(host)) 145 else: 146 raise ValueError( C:\ProgramData\Anaconda3\lib\site-packages\elasticsearch\_sync\client\utils.py in host_mapping_to_node_config(host) 209 options["path_prefix"] = options.pop("url_prefix") 210 --> 211 return NodeConfig(**options) # type: ignore 212 213 TypeError: __init__() missing 1 required positional argument: 'scheme' ```
[ -0.2016848921775818, -0.3632032871246338, -0.06706374138593674, -0.11549955606460571, -0.01564791426062584, 0.24799758195877075, 0.23410780727863312, 0.28774207830429077, 0.06386101245880127, 0.09369005262851715, -0.03584487736225128, 0.3917694687843323, -0.02158251777291298, -0.1523347944021225, 0.12814927101135254, -0.23091354966163635, 0.12108580023050308, 0.08743247389793396, 0.1187867671251297, -0.05167962983250618, -0.22444796562194824, 0.20195692777633667, -0.23997004330158234, -0.18637610971927643, 0.02606857754290104, 0.0416945144534111, -0.28112679719924927, 0.03704361617565155, -0.2842971384525299, -0.5741448402404785, 0.5656747817993164, -0.3205861747264862, -0.005403338000178337, 0.3283087909221649, -0.00011749420809792355, 0.25889575481414795, 0.6181120276451111, -0.07087100297212601, -0.13659758865833282, -0.3066090941429138, -0.2747555673122406, -0.1212204322218895, 0.3674221634864807, -0.374552845954895, -0.0447416827082634, 0.0033122622407972813, 0.05285114794969559, -0.37703457474708557, 0.542248010635376, 0.47417768836021423, 0.18038399517536163, 0.17155671119689941, 0.4112606346607208, -0.5131977796554565, 0.1866668164730072, 0.06860902905464172, -0.18627433478832245, 0.07581310719251633, -0.07554714381694794, 0.3040463626384735, 0.2885068953037262, 0.1322861909866333, 0.08194410055875778, -0.09907306730747223, 0.013178549706935883, 0.130726158618927, 0.1366858184337616, -0.1495373696088791, -0.2264220416545868, -0.19474047422409058, 0.22920918464660645, -0.1556187868118286, -0.430876225233078, 0.1329660713672638, 0.15858228504657745, -0.24052903056144714, 0.1471446454524994, -0.01519850641489029, -0.01276046596467495, 0.11773882806301117, 0.3022184669971466, -0.17759950459003448, -0.3475021421909332, 0.509226381778717, 0.08471724390983582, 0.18191629648208618, -0.08087745308876038, 0.03919326141476631, 0.10659897327423096, -0.17301416397094727, 0.0020134970545768738, 0.35526376962661743, 0.07880109548568726, 0.25270968675613403, -0.298414945602417, -0.028203226625919342, 0.11226426064968109, -0.24619290232658386, 0.08844666182994843, -0.19228848814964294, -0.11351718008518219, -0.16037479043006897, 0.5498575568199158, 0.1669119894504547, -0.0451066829264164, 0.10128207504749298, 0.12001409381628036, 0.1737443059682846, -0.04900796711444855, -0.06313716620206833, 0.2725945711135864, -0.05621439218521118, 0.027270983904600143, -0.39451947808265686, 0.19150519371032715, -0.04523472487926483, 0.4555639624595642, -0.1275634914636612, -0.2430797517299652, -0.058576956391334534, -0.3170815110206604, -0.08470085263252258, 0.03729460760951042, 0.19214943051338196, 0.23219715058803558, -0.49633651971817017, 0.4507415294647217, 0.37821710109710693, -0.14591377973556519, 0.19899222254753113, -0.2593500018119812, 0.13554327189922333, -0.016312826424837112, -0.0615728497505188, 0.11322858929634094, -0.5844493508338928, 0.424712210893631, 0.2325558215379715, -0.0374879390001297, 0.06102435290813446, 0.21578355133533478, 0.03000977262854576, -0.2533141076564789, 0.12639819085597992, -0.03472073748707771, -0.2597741186618805, 0.1583043485879898, 0.04150703549385071, -0.1471165120601654, -0.08972705155611038, -0.27633389830589294, -0.5810436010360718, -0.6209132075309753, 0.18935957551002502, 0.04452057182788849, -0.0496431440114975, -0.1614016592502594, 0.09762080013751984, 0.2085871696472168, -0.058684367686510086, -0.11428231745958328, -0.10848662257194519, -0.10685460269451141, 0.052994802594184875, 0.25938162207603455, 0.27527672052383423, -0.1447119265794754, -0.21051591634750366, -0.21796676516532898, 0.3615584671497345, -0.12702983617782593, 0.04294745996594429, -0.3336136043071747, 0.3303684592247009, -0.07992488145828247, 0.09090197086334229, 0.6981770992279053, -0.5474755764007568, -0.05364164710044861, -0.2091818004846573, -0.0626361146569252, -0.28868961334228516, 0.0518559031188488, -0.0723179504275322, 0.12955723702907562, 0.20207183063030243, 0.08368924260139465, 0.01887386292219162, 0.15685845911502838, -0.19041112065315247, -0.301076740026474, -0.020756248384714127, -0.2133549302816391, 0.21949070692062378, 0.06886724382638931, 0.07438905537128448, 0.11305706202983856, -0.09494039416313171, -0.028915435075759888, 0.09682786464691162, -0.016093261539936066, 0.3530192971229553, 0.4477272033691406, 0.047498635947704315, 0.14511950314044952, -0.2445705533027649, -0.18614473938941956, 0.08873280137777328, 0.13050797581672668, 0.406612366437912, -0.27547067403793335, -0.005486661568284035, -0.4557580351829529, -0.01253544632345438, -0.19992031157016754, -0.04046143218874931, 0.04769033193588257, -0.18044599890708923, 0.06550566852092743, 0.0815153568983078, -0.3663471043109894, 0.09038390964269638, -0.2240106612443924, 0.08741602301597595, -0.4838052988052368, 0.3780789077281952, -0.33995088934898376, -0.28489744663238525, -0.10054965317249298, -0.12728169560432434, 0.1625956892967224, -0.2289763242006302, -0.25290611386299133, 0.3170164227485657, 0.1585819125175476, -0.19934971630573273, -0.009423654526472092, -0.2196141928434372, 0.06879403442144394, -0.37171244621276855, -0.16011859476566315, 0.11465616524219513, 0.006017384119331837, 0.007571272552013397, -0.14095252752304077, 0.04912819713354111, -0.02767769619822502, 0.12361021339893341, -0.18654656410217285, 0.02449805848300457, 0.1674746721982956, 0.012846183031797409, -0.21484306454658508, -0.1568399965763092, 0.0762600377202034, 0.01104122307151556, 0.0965333878993988, -0.25609228014945984, -0.08062159270048141, -0.25564810633659363, 0.10096422582864761, 0.19080913066864014, 0.010987155139446259, 0.331563800573349, 0.03062807396054268, -0.02417568303644657, 0.020020071417093277, -0.2649323046207428, 0.5081580877304077, 0.18637005984783173, -0.25493335723876953, 0.17880897223949432, -0.19513489305973053, 0.04349720850586891, 0.3546719253063202, 0.07760702073574066, 0.27825599908828735, -0.041064366698265076, 0.2114386409521103, 0.2027517557144165, -0.3051764667034149, -0.43048304319381714, -0.0631658285856247, 0.22089438140392303, -0.3955519199371338, 0.18457695841789246, 0.026865897700190544, 0.029932469129562378, -0.06779695302248001, 0.028935492038726807, 0.14077268540859222, -0.2932102084159851, -0.0042730458080768585, 0.287345826625824, -0.0005063079297542572, 0.2911936044692993, -0.21529774367809296, 0.1278517097234726, 0.49245327711105347, -0.2807105779647827, -0.11807635426521301, 0.0015201910864561796, -0.14660727977752686, 0.008754681795835495, 0.04373576492071152, 0.22541916370391846, 0.2538788318634033, -0.20993782579898834, 0.007348274812102318, -0.1291220337152481, -0.5952883958816528, 0.07578372955322266, -0.0007680803537368774, 0.4424196779727936, 0.4109160602092743, 0.16726261377334595, -0.5368112921714783, -0.41640403866767883, 0.3792354166507721, -0.04723803699016571, -0.2670034170150757, 0.013098370283842087, -0.2433001548051834, -0.10956114530563354, -0.06101022660732269, -0.6315123438835144, -0.12185580283403397, -0.44279223680496216, 0.09282082319259644, 0.029339883476495743, 0.04037041962146759, 0.4282231628894806, 0.20013661682605743, 0.1551533043384552, -0.056106846779584885, 0.06929905712604523, -0.19250118732452393, -0.07027511298656464, 0.318307101726532, -0.3651517927646637, -0.2466861754655838, -0.11417198926210403, -0.164214625954628, 0.2686994969844818, 0.2605507969856262, -0.08813009411096573, -0.24472881853580475, -0.012626884505152702, 0.18011225759983063, -0.39560067653656006, 0.15023291110992432, 0.5313318967819214, 0.022441621869802475, 0.029162781313061714, -0.06478041410446167, -0.20795899629592896, 0.4208354651927948, 0.36750689148902893, 0.1470498889684677, 0.025194022804498672, 0.5940635204315186, -0.09034881740808487, 0.6092323660850525, 0.1436544805765152, -0.21905450522899628, 0.42050808668136597, -0.20543263852596283, 0.1942412406206131, -0.354234516620636, -0.48431622982025146, -0.2542822062969208, 0.21809720993041992, -0.05511981248855591, -0.20352430641651154, -0.09399230778217316, -0.2704288959503174, -0.1703050583600998, -0.10129693150520325, -0.1212010607123375, -0.020871033892035484, 0.00469244085252285, 0.18875783681869507, 0.3433679938316345, -0.04434630274772644, 0.05758998543024063, -0.3259448707103729, 0.0016673989593982697, -0.06839998066425323, 0.23384666442871094, 0.13191193342208862, 0.11509761959314346, -0.24705345928668976, -0.0795561745762825, -0.15446966886520386, 0.32566553354263306, 0.11695551872253418, 0.2916451692581177, 0.10584454238414764, 0.08956597000360489, 0.1443972885608673, 0.27722641825675964, 0.3966250419616699, -0.20455573499202728, -0.44139188528060913, 0.06688979268074036, 0.19479964673519135, -0.7750585079193115, -0.07959632575511932, -0.0787116140127182, 0.41826480627059937, 0.3315991759300232, 0.4458385109901428, -0.26200297474861145, 0.004422117955982685, 0.31997931003570557, -0.060293108224868774, 0.10584942996501923, -0.13034655153751373, -0.33353644609451294, -0.5129056572914124, -0.13413970172405243, 0.37002891302108765, 0.23657004535198212, 0.12518157064914703, 0.507093608379364, 0.027412984520196915, -0.32149678468704224, 0.06367124617099762, -0.2171642929315567, 0.19231903553009033, 0.30741024017333984, -0.009890173561871052, 0.12439419329166412, 0.2359708547592163, 0.11198317259550095, 0.32079243659973145, 0.2626963257789612, -0.08832216262817383, -0.05884699523448944, 0.037889234721660614, -0.15468041598796844, 0.22471708059310913, 0.21699386835098267, 0.09715781360864639, 0.04001656547188759, -0.3238070011138916, 0.08720873296260834, 0.09572218358516693, -0.19480028748512268, 0.5735222101211548, -0.042939167469739914, -0.04280680790543556, -0.3231015205383301, 0.4523456394672394, -0.17633740603923798, -0.009486563503742218, 0.41088542342185974, 0.5747948884963989, -0.3028593957424164, 0.6433290243148804, 0.04565415903925896, 0.7333821058273315, 0.3420003652572632, -0.030945662409067154, 0.544173538684845, 0.2750750780105591, 0.46323004364967346, 0.2398342341184616, 0.376303493976593, -0.1720002293586731, -0.017059601843357086, 0.025094063952565193, -0.33774301409721375, 0.1853720247745514, -0.1375247985124588, -0.4986567199230194, 0.1609334796667099, -0.3430403470993042, 0.3382047116756439, -0.04634808748960495, 0.29734912514686584, 0.062463223934173584, -0.10241612792015076, -0.45164260268211365, 0.1494489312171936, 0.1401236355304718, 0.23386222124099731, -0.02197498083114624, -0.12254619598388672, -0.15758685767650604, -0.25774770975112915, -0.21491575241088867, 0.05757739394903183, -0.05206260457634926, 0.7435449361801147, -0.07383909821510315, 0.04259507358074188, 0.25084179639816284, 0.19051571190357208, 0.15676726400852203, 0.0009723193943500519, -0.14113228023052216, 0.17027901113033295, 0.11794821172952652, -0.2572278380393982, 0.15579883754253387, -0.19507385790348053, 0.1639709770679474, -0.12959697842597961, -0.31425485014915466, 0.03283806890249252, -0.07789640873670578, -0.5886421799659729, -0.15742163360118866, 0.05737406760454178, -0.32888907194137573, -0.3205672800540924, -0.34725698828697205, 0.010652467608451843, -0.10850454866886139, -0.19403739273548126, 0.12451094388961792, 0.03900434821844101, -0.030804980546236038, 0.12103977799415588, 0.16502900421619415, -0.20939266681671143, 0.07414896786212921, 0.40867674350738525, -0.028067808598279953, 0.027040690183639526, 0.5184391140937805, -0.19264623522758484, -0.20226538181304932, -0.02087932825088501, -0.08765999227762222, 0.12624920904636383, -0.35527360439300537, -0.08974500745534897, -0.19501087069511414, 0.10114823281764984, 0.15767274796962738, 0.04774701967835426, 0.27957865595817566, 0.21516939997673035, 0.004116706550121307, -0.09374720603227615, 0.06721725314855576, 0.18362309038639069, 0.11752866208553314, 0.1098427027463913, -0.2728893756866455, 0.12384665012359619, -0.009615459479391575, -0.22544477880001068, -0.29340875148773193, 0.15973439812660217, 0.04523332417011261, 0.11993488669395447, -0.08892033994197845, -0.027815431356430054, 0.32008427381515503, -0.27543747425079346, 0.12655378878116608, 0.037021536380052567, -0.22740446031093597, -0.16288527846336365, -0.2106008678674698, 0.1217702254652977, -0.0909649059176445, -0.002784878481179476, 0.025836557149887085, -0.3257220983505249, -0.2259400188922882, -0.1212368905544281, -0.20477372407913208, 0.24182605743408203, 0.10943520069122314, -0.12330314517021179, 0.01615607738494873, -0.2745512127876282, 0.19408974051475525, -0.015984732657670975, 0.019721664488315582, -0.05105365812778473, -0.14577679336071014, 0.36294519901275635, 0.005973204039037228, 0.013680145144462585, 0.0033065672032535076, 0.22539815306663513, 0.02929583191871643, 0.2606130540370941, 0.1041988879442215, -0.3508845567703247, -0.1931648999452591, 0.05785103142261505, 0.1273362934589386, 0.3986719250679016, -0.2369803637266159, 0.08441096544265747, -0.23200327157974243, 0.2227538675069809, -0.2696215510368347, 0.13045147061347961, 0.3413183093070984, 0.07846494019031525, 0.15042325854301453, 0.14567524194717407, 0.23208138346672058, -0.02701627090573311, -0.023860491812229156, 0.13862445950508118, 0.30455806851387024, -0.18865951895713806, 0.24231675267219543, 0.08422215282917023, -0.08919724076986313, 0.03792720288038254, 0.2449096292257309, 0.15888556838035583, 0.3785720467567444, 0.2312900573015213, -0.10241537541151047, 0.2956625819206238, 0.07353317737579346, -0.06403745710849762, 0.14875096082687378, 0.15469443798065186, 0.13724219799041748, 0.25931882858276367, 0.08127235621213913, -0.06831403821706772, 0.13513444364070892, 0.6648653149604797, -0.08970357477664948, -0.20236323773860931, -0.30873870849609375, -0.06874972581863403, -0.12762033939361572, 0.060470882803201675, -0.06688348203897476, -0.0928228497505188, -0.299268901348114, -0.3756156861782074, 0.04790465161204338, 0.015934336930513382, 0.09762664884328842, 0.10304411500692368, 0.04445306584239006, -0.19308704137802124, -0.03233696520328522, 0.3514101207256317, 0.2818715274333954, -0.17716902494430542, 0.2298281341791153, 0.23991146683692932, -0.39655593037605286, -0.12539955973625183, 0.5719947814941406, 0.49208465218544006, 0.23872330784797668, 0.021450696513056755, 0.2234821319580078, 0.1455843299627304, -0.2435917854309082, 0.1587710678577423, 0.020072072744369507, 0.014065012335777283, -0.12390246987342834, 0.049776215106248856, 0.13790766894817352, -0.06139102578163147, 0.09848792850971222, -0.04110787436366081, 0.35505667328834534, -0.21443329751491547, -0.0778079703450203, -0.3696306347846985, 0.07895579189062119, 0.26088106632232666, 0.09332776814699173, -0.36340582370758057, 0.05720897763967514, 0.3693157732486725, 0.09857343137264252, -0.016547905281186104, 0.13553152978420258, 0.07790929079055786, -0.05985147878527641, 0.07600873708724976, 0.33703628182411194, 0.01002788171172142, -0.13372807204723358, -0.1390438973903656, -0.3820655941963196, 0.23836085200309753, -0.22545036673545837, -0.02634337916970253, 0.3816804885864258, 0.34244269132614136, 0.10842321068048477, 0.14200308918952942, 0.17009036242961884, -0.4230796694755554, -0.18643496930599213, 0.003945387899875641, -0.4493270516395569, -0.062182437628507614, 0.11941778659820557, 0.010777018964290619, 0.08829247206449509, -0.12448927760124207, -0.1562022715806961, -0.13895145058631897, 0.07300841063261032, -0.37578749656677246, -0.036557018756866455, 0.1598639339208603, -0.37470656633377075, 0.19872045516967773, 0.021882588043808937, 0.32474684715270996, -0.11637155711650848, -0.19172534346580505, -0.16996853053569794, -0.5526599287986755, -0.14767330884933472, 0.4530313014984131, 0.1776512861251831, 0.4545643627643585, -0.104247085750103, -0.5818839073181152, -0.2607060372829437, 0.45055386424064636, -0.09360715001821518, -0.4287995994091034, -0.44806385040283203, 0.24680590629577637, -0.20834791660308838, 0.1132245659828186, -0.13324417173862457, 0.12047593295574188, -0.04375084489583969, 0.3304932713508606, -0.11414305865764618, -0.4131426215171814, 0.5429112911224365, -0.3857053220272064, -0.10526178777217865, -0.06485100090503693, 0.0815553143620491, 0.7078866362571716, 0.26004695892333984, -0.3298376202583313, -0.08709181100130081, 0.2487342804670334, -0.12939992547035217, -0.15447163581848145, 0.23636338114738464, 0.3838108777999878, 0.16346034407615662, -0.12711992859840393, 0.1128419041633606, 0.008305694907903671, -0.002345232293009758, -0.10846357047557831, -0.2304185926914215 ]
https://github.com/huggingface/datasets/issues/3956
TypeError: __init__() missing 1 required positional argument: 'scheme'
@raj713335, thanks for reporting. Please note that in your code example, you are not using our `datasets` library. Thus, I think you should report that issue to `elasticsearch` library: https://github.com/elastic/elasticsearch-py
## Describe the bug Based on [this tutorial](https://huggingface.co/docs/datasets/faiss_es#elasticsearch) the provided code should add Elasticsearch index but raised the following error, probably the new Elasticsearch version is not compatible though the tutorial doesn't provide any information about the supporting Elasticsearch version. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import load_dataset squad = load_dataset('squad', split='validation') squad.add_elasticsearch_index("context", host="localhost", port="9200") ``` ## Expected results [Creating an elastic index based on the provided tutorial](https://huggingface.co/docs/datasets/faiss_es#elasticsearch) ## Actual results ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-6-8fb51aa33961> in <module> 1 from datasets import load_dataset 2 squad = load_dataset('squad', split='validation') ----> 3 squad.add_elasticsearch_index("context", host="localhost", port="9200") ~/opt/anaconda3/lib/python3.8/site-packages/datasets/arrow_dataset.py in add_elasticsearch_index(self, column, index_name, host, port, es_client, es_index_name, es_index_config) 3777 """ 3778 with self.formatted_as(type=None, columns=[column]): -> 3779 super().add_elasticsearch_index( 3780 column=column, 3781 index_name=index_name, ~/opt/anaconda3/lib/python3.8/site-packages/datasets/search.py in add_elasticsearch_index(self, column, index_name, host, port, es_client, es_index_name, es_index_config) 587 """ 588 index_name = index_name if index_name is not None else column --> 589 es_index = ElasticSearchIndex( 590 host=host, port=port, es_client=es_client, es_index_name=es_index_name, es_index_config=es_index_config 591 ) ~/opt/anaconda3/lib/python3.8/site-packages/datasets/search.py in __init__(self, host, port, es_client, es_index_name, es_index_config) 123 from elasticsearch import Elasticsearch # noqa: F811 124 --> 125 self.es_client = es_client if es_client is not None else Elasticsearch([{"host": host, "port": str(port)}]) 126 self.es_index_name = ( 127 es_index_name ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/__init__.py in __init__(self, hosts, cloud_id, api_key, basic_auth, bearer_auth, opaque_id, headers, connections_per_node, http_compress, verify_certs, ca_certs, client_cert, client_key, ssl_assert_hostname, ssl_assert_fingerprint, ssl_version, ssl_context, ssl_show_warn, transport_class, request_timeout, node_class, node_pool_class, randomize_nodes_in_pool, node_selector_class, dead_node_backoff_factor, max_dead_node_backoff, serializer, serializers, default_mimetype, max_retries, retry_on_status, retry_on_timeout, sniff_on_start, sniff_before_requests, sniff_on_node_failure, sniff_timeout, min_delay_between_sniffing, sniffed_node_callback, meta_header, timeout, randomize_hosts, host_info_callback, sniffer_timeout, sniff_on_connection_fail, http_auth, maxsize, _transport) 310 311 if _transport is None: --> 312 node_configs = client_node_configs( 313 hosts, 314 cloud_id=cloud_id, ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in client_node_configs(hosts, cloud_id, **kwargs) 99 else: 100 assert hosts is not None --> 101 node_configs = hosts_to_node_configs(hosts) 102 103 # Remove all values which are 'DEFAULT' to avoid overwriting actual defaults. ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in hosts_to_node_configs(hosts) 142 143 elif isinstance(host, Mapping): --> 144 node_configs.append(host_mapping_to_node_config(host)) 145 else: 146 raise ValueError( ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in host_mapping_to_node_config(host) 209 options["path_prefix"] = options.pop("url_prefix") 210 --> 211 return NodeConfig(**options) # type: ignore 212 213 TypeError: __init__() missing 1 required positional argument: 'scheme' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.0.0 - Platform: Mac - Python version: 3.8.0 - PyArrow version: 7.0.0 - ElaticSearch Info: { "name" : "byname", "cluster_name" : "elasticsearch_brew", "cluster_uuid" : "9xkjrltiQIG0J95ciWhqRA", "version" : { "number" : "7.10.2-SNAPSHOT", "build_flavor" : "oss", "build_type" : "tar", "build_hash" : "unknown", "build_date" : "2021-01-16T01:41:27.115673Z", "build_snapshot" : true, "lucene_version" : "8.7.0", "minimum_wire_compatibility_version" : "6.8.0", "minimum_index_compatibility_version" : "6.0.0-beta1" }, "tagline" : "You Know, for Search" }
30
TypeError: __init__() missing 1 required positional argument: 'scheme' ## Describe the bug Based on [this tutorial](https://huggingface.co/docs/datasets/faiss_es#elasticsearch) the provided code should add Elasticsearch index but raised the following error, probably the new Elasticsearch version is not compatible though the tutorial doesn't provide any information about the supporting Elasticsearch version. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import load_dataset squad = load_dataset('squad', split='validation') squad.add_elasticsearch_index("context", host="localhost", port="9200") ``` ## Expected results [Creating an elastic index based on the provided tutorial](https://huggingface.co/docs/datasets/faiss_es#elasticsearch) ## Actual results ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-6-8fb51aa33961> in <module> 1 from datasets import load_dataset 2 squad = load_dataset('squad', split='validation') ----> 3 squad.add_elasticsearch_index("context", host="localhost", port="9200") ~/opt/anaconda3/lib/python3.8/site-packages/datasets/arrow_dataset.py in add_elasticsearch_index(self, column, index_name, host, port, es_client, es_index_name, es_index_config) 3777 """ 3778 with self.formatted_as(type=None, columns=[column]): -> 3779 super().add_elasticsearch_index( 3780 column=column, 3781 index_name=index_name, ~/opt/anaconda3/lib/python3.8/site-packages/datasets/search.py in add_elasticsearch_index(self, column, index_name, host, port, es_client, es_index_name, es_index_config) 587 """ 588 index_name = index_name if index_name is not None else column --> 589 es_index = ElasticSearchIndex( 590 host=host, port=port, es_client=es_client, es_index_name=es_index_name, es_index_config=es_index_config 591 ) ~/opt/anaconda3/lib/python3.8/site-packages/datasets/search.py in __init__(self, host, port, es_client, es_index_name, es_index_config) 123 from elasticsearch import Elasticsearch # noqa: F811 124 --> 125 self.es_client = es_client if es_client is not None else Elasticsearch([{"host": host, "port": str(port)}]) 126 self.es_index_name = ( 127 es_index_name ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/__init__.py in __init__(self, hosts, cloud_id, api_key, basic_auth, bearer_auth, opaque_id, headers, connections_per_node, http_compress, verify_certs, ca_certs, client_cert, client_key, ssl_assert_hostname, ssl_assert_fingerprint, ssl_version, ssl_context, ssl_show_warn, transport_class, request_timeout, node_class, node_pool_class, randomize_nodes_in_pool, node_selector_class, dead_node_backoff_factor, max_dead_node_backoff, serializer, serializers, default_mimetype, max_retries, retry_on_status, retry_on_timeout, sniff_on_start, sniff_before_requests, sniff_on_node_failure, sniff_timeout, min_delay_between_sniffing, sniffed_node_callback, meta_header, timeout, randomize_hosts, host_info_callback, sniffer_timeout, sniff_on_connection_fail, http_auth, maxsize, _transport) 310 311 if _transport is None: --> 312 node_configs = client_node_configs( 313 hosts, 314 cloud_id=cloud_id, ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in client_node_configs(hosts, cloud_id, **kwargs) 99 else: 100 assert hosts is not None --> 101 node_configs = hosts_to_node_configs(hosts) 102 103 # Remove all values which are 'DEFAULT' to avoid overwriting actual defaults. ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in hosts_to_node_configs(hosts) 142 143 elif isinstance(host, Mapping): --> 144 node_configs.append(host_mapping_to_node_config(host)) 145 else: 146 raise ValueError( ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in host_mapping_to_node_config(host) 209 options["path_prefix"] = options.pop("url_prefix") 210 --> 211 return NodeConfig(**options) # type: ignore 212 213 TypeError: __init__() missing 1 required positional argument: 'scheme' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.0.0 - Platform: Mac - Python version: 3.8.0 - PyArrow version: 7.0.0 - ElaticSearch Info: { "name" : "byname", "cluster_name" : "elasticsearch_brew", "cluster_uuid" : "9xkjrltiQIG0J95ciWhqRA", "version" : { "number" : "7.10.2-SNAPSHOT", "build_flavor" : "oss", "build_type" : "tar", "build_hash" : "unknown", "build_date" : "2021-01-16T01:41:27.115673Z", "build_snapshot" : true, "lucene_version" : "8.7.0", "minimum_wire_compatibility_version" : "6.8.0", "minimum_index_compatibility_version" : "6.0.0-beta1" }, "tagline" : "You Know, for Search" } @raj713335, thanks for reporting. Please note that in your code example, you are not using our `datasets` library. Thus, I think you should report that issue to `elasticsearch` library: https://github.com/elastic/elasticsearch-py
[ -0.2016848921775818, -0.3632032871246338, -0.06706374138593674, -0.11549955606460571, -0.01564791426062584, 0.24799758195877075, 0.23410780727863312, 0.28774207830429077, 0.06386101245880127, 0.09369005262851715, -0.03584487736225128, 0.3917694687843323, -0.02158251777291298, -0.1523347944021225, 0.12814927101135254, -0.23091354966163635, 0.12108580023050308, 0.08743247389793396, 0.1187867671251297, -0.05167962983250618, -0.22444796562194824, 0.20195692777633667, -0.23997004330158234, -0.18637610971927643, 0.02606857754290104, 0.0416945144534111, -0.28112679719924927, 0.03704361617565155, -0.2842971384525299, -0.5741448402404785, 0.5656747817993164, -0.3205861747264862, -0.005403338000178337, 0.3283087909221649, -0.00011749420809792355, 0.25889575481414795, 0.6181120276451111, -0.07087100297212601, -0.13659758865833282, -0.3066090941429138, -0.2747555673122406, -0.1212204322218895, 0.3674221634864807, -0.374552845954895, -0.0447416827082634, 0.0033122622407972813, 0.05285114794969559, -0.37703457474708557, 0.542248010635376, 0.47417768836021423, 0.18038399517536163, 0.17155671119689941, 0.4112606346607208, -0.5131977796554565, 0.1866668164730072, 0.06860902905464172, -0.18627433478832245, 0.07581310719251633, -0.07554714381694794, 0.3040463626384735, 0.2885068953037262, 0.1322861909866333, 0.08194410055875778, -0.09907306730747223, 0.013178549706935883, 0.130726158618927, 0.1366858184337616, -0.1495373696088791, -0.2264220416545868, -0.19474047422409058, 0.22920918464660645, -0.1556187868118286, -0.430876225233078, 0.1329660713672638, 0.15858228504657745, -0.24052903056144714, 0.1471446454524994, -0.01519850641489029, -0.01276046596467495, 0.11773882806301117, 0.3022184669971466, -0.17759950459003448, -0.3475021421909332, 0.509226381778717, 0.08471724390983582, 0.18191629648208618, -0.08087745308876038, 0.03919326141476631, 0.10659897327423096, -0.17301416397094727, 0.0020134970545768738, 0.35526376962661743, 0.07880109548568726, 0.25270968675613403, -0.298414945602417, -0.028203226625919342, 0.11226426064968109, -0.24619290232658386, 0.08844666182994843, -0.19228848814964294, -0.11351718008518219, -0.16037479043006897, 0.5498575568199158, 0.1669119894504547, -0.0451066829264164, 0.10128207504749298, 0.12001409381628036, 0.1737443059682846, -0.04900796711444855, -0.06313716620206833, 0.2725945711135864, -0.05621439218521118, 0.027270983904600143, -0.39451947808265686, 0.19150519371032715, -0.04523472487926483, 0.4555639624595642, -0.1275634914636612, -0.2430797517299652, -0.058576956391334534, -0.3170815110206604, -0.08470085263252258, 0.03729460760951042, 0.19214943051338196, 0.23219715058803558, -0.49633651971817017, 0.4507415294647217, 0.37821710109710693, -0.14591377973556519, 0.19899222254753113, -0.2593500018119812, 0.13554327189922333, -0.016312826424837112, -0.0615728497505188, 0.11322858929634094, -0.5844493508338928, 0.424712210893631, 0.2325558215379715, -0.0374879390001297, 0.06102435290813446, 0.21578355133533478, 0.03000977262854576, -0.2533141076564789, 0.12639819085597992, -0.03472073748707771, -0.2597741186618805, 0.1583043485879898, 0.04150703549385071, -0.1471165120601654, -0.08972705155611038, -0.27633389830589294, -0.5810436010360718, -0.6209132075309753, 0.18935957551002502, 0.04452057182788849, -0.0496431440114975, -0.1614016592502594, 0.09762080013751984, 0.2085871696472168, -0.058684367686510086, -0.11428231745958328, -0.10848662257194519, -0.10685460269451141, 0.052994802594184875, 0.25938162207603455, 0.27527672052383423, -0.1447119265794754, -0.21051591634750366, -0.21796676516532898, 0.3615584671497345, -0.12702983617782593, 0.04294745996594429, -0.3336136043071747, 0.3303684592247009, -0.07992488145828247, 0.09090197086334229, 0.6981770992279053, -0.5474755764007568, -0.05364164710044861, -0.2091818004846573, -0.0626361146569252, -0.28868961334228516, 0.0518559031188488, -0.0723179504275322, 0.12955723702907562, 0.20207183063030243, 0.08368924260139465, 0.01887386292219162, 0.15685845911502838, -0.19041112065315247, -0.301076740026474, -0.020756248384714127, -0.2133549302816391, 0.21949070692062378, 0.06886724382638931, 0.07438905537128448, 0.11305706202983856, -0.09494039416313171, -0.028915435075759888, 0.09682786464691162, -0.016093261539936066, 0.3530192971229553, 0.4477272033691406, 0.047498635947704315, 0.14511950314044952, -0.2445705533027649, -0.18614473938941956, 0.08873280137777328, 0.13050797581672668, 0.406612366437912, -0.27547067403793335, -0.005486661568284035, -0.4557580351829529, -0.01253544632345438, -0.19992031157016754, -0.04046143218874931, 0.04769033193588257, -0.18044599890708923, 0.06550566852092743, 0.0815153568983078, -0.3663471043109894, 0.09038390964269638, -0.2240106612443924, 0.08741602301597595, -0.4838052988052368, 0.3780789077281952, -0.33995088934898376, -0.28489744663238525, -0.10054965317249298, -0.12728169560432434, 0.1625956892967224, -0.2289763242006302, -0.25290611386299133, 0.3170164227485657, 0.1585819125175476, -0.19934971630573273, -0.009423654526472092, -0.2196141928434372, 0.06879403442144394, -0.37171244621276855, -0.16011859476566315, 0.11465616524219513, 0.006017384119331837, 0.007571272552013397, -0.14095252752304077, 0.04912819713354111, -0.02767769619822502, 0.12361021339893341, -0.18654656410217285, 0.02449805848300457, 0.1674746721982956, 0.012846183031797409, -0.21484306454658508, -0.1568399965763092, 0.0762600377202034, 0.01104122307151556, 0.0965333878993988, -0.25609228014945984, -0.08062159270048141, -0.25564810633659363, 0.10096422582864761, 0.19080913066864014, 0.010987155139446259, 0.331563800573349, 0.03062807396054268, -0.02417568303644657, 0.020020071417093277, -0.2649323046207428, 0.5081580877304077, 0.18637005984783173, -0.25493335723876953, 0.17880897223949432, -0.19513489305973053, 0.04349720850586891, 0.3546719253063202, 0.07760702073574066, 0.27825599908828735, -0.041064366698265076, 0.2114386409521103, 0.2027517557144165, -0.3051764667034149, -0.43048304319381714, -0.0631658285856247, 0.22089438140392303, -0.3955519199371338, 0.18457695841789246, 0.026865897700190544, 0.029932469129562378, -0.06779695302248001, 0.028935492038726807, 0.14077268540859222, -0.2932102084159851, -0.0042730458080768585, 0.287345826625824, -0.0005063079297542572, 0.2911936044692993, -0.21529774367809296, 0.1278517097234726, 0.49245327711105347, -0.2807105779647827, -0.11807635426521301, 0.0015201910864561796, -0.14660727977752686, 0.008754681795835495, 0.04373576492071152, 0.22541916370391846, 0.2538788318634033, -0.20993782579898834, 0.007348274812102318, -0.1291220337152481, -0.5952883958816528, 0.07578372955322266, -0.0007680803537368774, 0.4424196779727936, 0.4109160602092743, 0.16726261377334595, -0.5368112921714783, -0.41640403866767883, 0.3792354166507721, -0.04723803699016571, -0.2670034170150757, 0.013098370283842087, -0.2433001548051834, -0.10956114530563354, -0.06101022660732269, -0.6315123438835144, -0.12185580283403397, -0.44279223680496216, 0.09282082319259644, 0.029339883476495743, 0.04037041962146759, 0.4282231628894806, 0.20013661682605743, 0.1551533043384552, -0.056106846779584885, 0.06929905712604523, -0.19250118732452393, -0.07027511298656464, 0.318307101726532, -0.3651517927646637, -0.2466861754655838, -0.11417198926210403, -0.164214625954628, 0.2686994969844818, 0.2605507969856262, -0.08813009411096573, -0.24472881853580475, -0.012626884505152702, 0.18011225759983063, -0.39560067653656006, 0.15023291110992432, 0.5313318967819214, 0.022441621869802475, 0.029162781313061714, -0.06478041410446167, -0.20795899629592896, 0.4208354651927948, 0.36750689148902893, 0.1470498889684677, 0.025194022804498672, 0.5940635204315186, -0.09034881740808487, 0.6092323660850525, 0.1436544805765152, -0.21905450522899628, 0.42050808668136597, -0.20543263852596283, 0.1942412406206131, -0.354234516620636, -0.48431622982025146, -0.2542822062969208, 0.21809720993041992, -0.05511981248855591, -0.20352430641651154, -0.09399230778217316, -0.2704288959503174, -0.1703050583600998, -0.10129693150520325, -0.1212010607123375, -0.020871033892035484, 0.00469244085252285, 0.18875783681869507, 0.3433679938316345, -0.04434630274772644, 0.05758998543024063, -0.3259448707103729, 0.0016673989593982697, -0.06839998066425323, 0.23384666442871094, 0.13191193342208862, 0.11509761959314346, -0.24705345928668976, -0.0795561745762825, -0.15446966886520386, 0.32566553354263306, 0.11695551872253418, 0.2916451692581177, 0.10584454238414764, 0.08956597000360489, 0.1443972885608673, 0.27722641825675964, 0.3966250419616699, -0.20455573499202728, -0.44139188528060913, 0.06688979268074036, 0.19479964673519135, -0.7750585079193115, -0.07959632575511932, -0.0787116140127182, 0.41826480627059937, 0.3315991759300232, 0.4458385109901428, -0.26200297474861145, 0.004422117955982685, 0.31997931003570557, -0.060293108224868774, 0.10584942996501923, -0.13034655153751373, -0.33353644609451294, -0.5129056572914124, -0.13413970172405243, 0.37002891302108765, 0.23657004535198212, 0.12518157064914703, 0.507093608379364, 0.027412984520196915, -0.32149678468704224, 0.06367124617099762, -0.2171642929315567, 0.19231903553009033, 0.30741024017333984, -0.009890173561871052, 0.12439419329166412, 0.2359708547592163, 0.11198317259550095, 0.32079243659973145, 0.2626963257789612, -0.08832216262817383, -0.05884699523448944, 0.037889234721660614, -0.15468041598796844, 0.22471708059310913, 0.21699386835098267, 0.09715781360864639, 0.04001656547188759, -0.3238070011138916, 0.08720873296260834, 0.09572218358516693, -0.19480028748512268, 0.5735222101211548, -0.042939167469739914, -0.04280680790543556, -0.3231015205383301, 0.4523456394672394, -0.17633740603923798, -0.009486563503742218, 0.41088542342185974, 0.5747948884963989, -0.3028593957424164, 0.6433290243148804, 0.04565415903925896, 0.7333821058273315, 0.3420003652572632, -0.030945662409067154, 0.544173538684845, 0.2750750780105591, 0.46323004364967346, 0.2398342341184616, 0.376303493976593, -0.1720002293586731, -0.017059601843357086, 0.025094063952565193, -0.33774301409721375, 0.1853720247745514, -0.1375247985124588, -0.4986567199230194, 0.1609334796667099, -0.3430403470993042, 0.3382047116756439, -0.04634808748960495, 0.29734912514686584, 0.062463223934173584, -0.10241612792015076, -0.45164260268211365, 0.1494489312171936, 0.1401236355304718, 0.23386222124099731, -0.02197498083114624, -0.12254619598388672, -0.15758685767650604, -0.25774770975112915, -0.21491575241088867, 0.05757739394903183, -0.05206260457634926, 0.7435449361801147, -0.07383909821510315, 0.04259507358074188, 0.25084179639816284, 0.19051571190357208, 0.15676726400852203, 0.0009723193943500519, -0.14113228023052216, 0.17027901113033295, 0.11794821172952652, -0.2572278380393982, 0.15579883754253387, -0.19507385790348053, 0.1639709770679474, -0.12959697842597961, -0.31425485014915466, 0.03283806890249252, -0.07789640873670578, -0.5886421799659729, -0.15742163360118866, 0.05737406760454178, -0.32888907194137573, -0.3205672800540924, -0.34725698828697205, 0.010652467608451843, -0.10850454866886139, -0.19403739273548126, 0.12451094388961792, 0.03900434821844101, -0.030804980546236038, 0.12103977799415588, 0.16502900421619415, -0.20939266681671143, 0.07414896786212921, 0.40867674350738525, -0.028067808598279953, 0.027040690183639526, 0.5184391140937805, -0.19264623522758484, -0.20226538181304932, -0.02087932825088501, -0.08765999227762222, 0.12624920904636383, -0.35527360439300537, -0.08974500745534897, -0.19501087069511414, 0.10114823281764984, 0.15767274796962738, 0.04774701967835426, 0.27957865595817566, 0.21516939997673035, 0.004116706550121307, -0.09374720603227615, 0.06721725314855576, 0.18362309038639069, 0.11752866208553314, 0.1098427027463913, -0.2728893756866455, 0.12384665012359619, -0.009615459479391575, -0.22544477880001068, -0.29340875148773193, 0.15973439812660217, 0.04523332417011261, 0.11993488669395447, -0.08892033994197845, -0.027815431356430054, 0.32008427381515503, -0.27543747425079346, 0.12655378878116608, 0.037021536380052567, -0.22740446031093597, -0.16288527846336365, -0.2106008678674698, 0.1217702254652977, -0.0909649059176445, -0.002784878481179476, 0.025836557149887085, -0.3257220983505249, -0.2259400188922882, -0.1212368905544281, -0.20477372407913208, 0.24182605743408203, 0.10943520069122314, -0.12330314517021179, 0.01615607738494873, -0.2745512127876282, 0.19408974051475525, -0.015984732657670975, 0.019721664488315582, -0.05105365812778473, -0.14577679336071014, 0.36294519901275635, 0.005973204039037228, 0.013680145144462585, 0.0033065672032535076, 0.22539815306663513, 0.02929583191871643, 0.2606130540370941, 0.1041988879442215, -0.3508845567703247, -0.1931648999452591, 0.05785103142261505, 0.1273362934589386, 0.3986719250679016, -0.2369803637266159, 0.08441096544265747, -0.23200327157974243, 0.2227538675069809, -0.2696215510368347, 0.13045147061347961, 0.3413183093070984, 0.07846494019031525, 0.15042325854301453, 0.14567524194717407, 0.23208138346672058, -0.02701627090573311, -0.023860491812229156, 0.13862445950508118, 0.30455806851387024, -0.18865951895713806, 0.24231675267219543, 0.08422215282917023, -0.08919724076986313, 0.03792720288038254, 0.2449096292257309, 0.15888556838035583, 0.3785720467567444, 0.2312900573015213, -0.10241537541151047, 0.2956625819206238, 0.07353317737579346, -0.06403745710849762, 0.14875096082687378, 0.15469443798065186, 0.13724219799041748, 0.25931882858276367, 0.08127235621213913, -0.06831403821706772, 0.13513444364070892, 0.6648653149604797, -0.08970357477664948, -0.20236323773860931, -0.30873870849609375, -0.06874972581863403, -0.12762033939361572, 0.060470882803201675, -0.06688348203897476, -0.0928228497505188, -0.299268901348114, -0.3756156861782074, 0.04790465161204338, 0.015934336930513382, 0.09762664884328842, 0.10304411500692368, 0.04445306584239006, -0.19308704137802124, -0.03233696520328522, 0.3514101207256317, 0.2818715274333954, -0.17716902494430542, 0.2298281341791153, 0.23991146683692932, -0.39655593037605286, -0.12539955973625183, 0.5719947814941406, 0.49208465218544006, 0.23872330784797668, 0.021450696513056755, 0.2234821319580078, 0.1455843299627304, -0.2435917854309082, 0.1587710678577423, 0.020072072744369507, 0.014065012335777283, -0.12390246987342834, 0.049776215106248856, 0.13790766894817352, -0.06139102578163147, 0.09848792850971222, -0.04110787436366081, 0.35505667328834534, -0.21443329751491547, -0.0778079703450203, -0.3696306347846985, 0.07895579189062119, 0.26088106632232666, 0.09332776814699173, -0.36340582370758057, 0.05720897763967514, 0.3693157732486725, 0.09857343137264252, -0.016547905281186104, 0.13553152978420258, 0.07790929079055786, -0.05985147878527641, 0.07600873708724976, 0.33703628182411194, 0.01002788171172142, -0.13372807204723358, -0.1390438973903656, -0.3820655941963196, 0.23836085200309753, -0.22545036673545837, -0.02634337916970253, 0.3816804885864258, 0.34244269132614136, 0.10842321068048477, 0.14200308918952942, 0.17009036242961884, -0.4230796694755554, -0.18643496930599213, 0.003945387899875641, -0.4493270516395569, -0.062182437628507614, 0.11941778659820557, 0.010777018964290619, 0.08829247206449509, -0.12448927760124207, -0.1562022715806961, -0.13895145058631897, 0.07300841063261032, -0.37578749656677246, -0.036557018756866455, 0.1598639339208603, -0.37470656633377075, 0.19872045516967773, 0.021882588043808937, 0.32474684715270996, -0.11637155711650848, -0.19172534346580505, -0.16996853053569794, -0.5526599287986755, -0.14767330884933472, 0.4530313014984131, 0.1776512861251831, 0.4545643627643585, -0.104247085750103, -0.5818839073181152, -0.2607060372829437, 0.45055386424064636, -0.09360715001821518, -0.4287995994091034, -0.44806385040283203, 0.24680590629577637, -0.20834791660308838, 0.1132245659828186, -0.13324417173862457, 0.12047593295574188, -0.04375084489583969, 0.3304932713508606, -0.11414305865764618, -0.4131426215171814, 0.5429112911224365, -0.3857053220272064, -0.10526178777217865, -0.06485100090503693, 0.0815553143620491, 0.7078866362571716, 0.26004695892333984, -0.3298376202583313, -0.08709181100130081, 0.2487342804670334, -0.12939992547035217, -0.15447163581848145, 0.23636338114738464, 0.3838108777999878, 0.16346034407615662, -0.12711992859840393, 0.1128419041633606, 0.008305694907903671, -0.002345232293009758, -0.10846357047557831, -0.2304185926914215 ]
https://github.com/huggingface/datasets/issues/3956
TypeError: __init__() missing 1 required positional argument: 'scheme'
it is simple hack which shock you just replace https to http in scheme **In My Case:** -> `es = Elasticsearch([{'host': 'localhost', 'port': 9200, "scheme": "http"}]) if es.ping(): print('Connected to ES!') else: print('Could not connect!') sys.exit()`
## Describe the bug Based on [this tutorial](https://huggingface.co/docs/datasets/faiss_es#elasticsearch) the provided code should add Elasticsearch index but raised the following error, probably the new Elasticsearch version is not compatible though the tutorial doesn't provide any information about the supporting Elasticsearch version. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import load_dataset squad = load_dataset('squad', split='validation') squad.add_elasticsearch_index("context", host="localhost", port="9200") ``` ## Expected results [Creating an elastic index based on the provided tutorial](https://huggingface.co/docs/datasets/faiss_es#elasticsearch) ## Actual results ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-6-8fb51aa33961> in <module> 1 from datasets import load_dataset 2 squad = load_dataset('squad', split='validation') ----> 3 squad.add_elasticsearch_index("context", host="localhost", port="9200") ~/opt/anaconda3/lib/python3.8/site-packages/datasets/arrow_dataset.py in add_elasticsearch_index(self, column, index_name, host, port, es_client, es_index_name, es_index_config) 3777 """ 3778 with self.formatted_as(type=None, columns=[column]): -> 3779 super().add_elasticsearch_index( 3780 column=column, 3781 index_name=index_name, ~/opt/anaconda3/lib/python3.8/site-packages/datasets/search.py in add_elasticsearch_index(self, column, index_name, host, port, es_client, es_index_name, es_index_config) 587 """ 588 index_name = index_name if index_name is not None else column --> 589 es_index = ElasticSearchIndex( 590 host=host, port=port, es_client=es_client, es_index_name=es_index_name, es_index_config=es_index_config 591 ) ~/opt/anaconda3/lib/python3.8/site-packages/datasets/search.py in __init__(self, host, port, es_client, es_index_name, es_index_config) 123 from elasticsearch import Elasticsearch # noqa: F811 124 --> 125 self.es_client = es_client if es_client is not None else Elasticsearch([{"host": host, "port": str(port)}]) 126 self.es_index_name = ( 127 es_index_name ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/__init__.py in __init__(self, hosts, cloud_id, api_key, basic_auth, bearer_auth, opaque_id, headers, connections_per_node, http_compress, verify_certs, ca_certs, client_cert, client_key, ssl_assert_hostname, ssl_assert_fingerprint, ssl_version, ssl_context, ssl_show_warn, transport_class, request_timeout, node_class, node_pool_class, randomize_nodes_in_pool, node_selector_class, dead_node_backoff_factor, max_dead_node_backoff, serializer, serializers, default_mimetype, max_retries, retry_on_status, retry_on_timeout, sniff_on_start, sniff_before_requests, sniff_on_node_failure, sniff_timeout, min_delay_between_sniffing, sniffed_node_callback, meta_header, timeout, randomize_hosts, host_info_callback, sniffer_timeout, sniff_on_connection_fail, http_auth, maxsize, _transport) 310 311 if _transport is None: --> 312 node_configs = client_node_configs( 313 hosts, 314 cloud_id=cloud_id, ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in client_node_configs(hosts, cloud_id, **kwargs) 99 else: 100 assert hosts is not None --> 101 node_configs = hosts_to_node_configs(hosts) 102 103 # Remove all values which are 'DEFAULT' to avoid overwriting actual defaults. ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in hosts_to_node_configs(hosts) 142 143 elif isinstance(host, Mapping): --> 144 node_configs.append(host_mapping_to_node_config(host)) 145 else: 146 raise ValueError( ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in host_mapping_to_node_config(host) 209 options["path_prefix"] = options.pop("url_prefix") 210 --> 211 return NodeConfig(**options) # type: ignore 212 213 TypeError: __init__() missing 1 required positional argument: 'scheme' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.0.0 - Platform: Mac - Python version: 3.8.0 - PyArrow version: 7.0.0 - ElaticSearch Info: { "name" : "byname", "cluster_name" : "elasticsearch_brew", "cluster_uuid" : "9xkjrltiQIG0J95ciWhqRA", "version" : { "number" : "7.10.2-SNAPSHOT", "build_flavor" : "oss", "build_type" : "tar", "build_hash" : "unknown", "build_date" : "2021-01-16T01:41:27.115673Z", "build_snapshot" : true, "lucene_version" : "8.7.0", "minimum_wire_compatibility_version" : "6.8.0", "minimum_index_compatibility_version" : "6.0.0-beta1" }, "tagline" : "You Know, for Search" }
36
TypeError: __init__() missing 1 required positional argument: 'scheme' ## Describe the bug Based on [this tutorial](https://huggingface.co/docs/datasets/faiss_es#elasticsearch) the provided code should add Elasticsearch index but raised the following error, probably the new Elasticsearch version is not compatible though the tutorial doesn't provide any information about the supporting Elasticsearch version. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets import load_dataset squad = load_dataset('squad', split='validation') squad.add_elasticsearch_index("context", host="localhost", port="9200") ``` ## Expected results [Creating an elastic index based on the provided tutorial](https://huggingface.co/docs/datasets/faiss_es#elasticsearch) ## Actual results ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-6-8fb51aa33961> in <module> 1 from datasets import load_dataset 2 squad = load_dataset('squad', split='validation') ----> 3 squad.add_elasticsearch_index("context", host="localhost", port="9200") ~/opt/anaconda3/lib/python3.8/site-packages/datasets/arrow_dataset.py in add_elasticsearch_index(self, column, index_name, host, port, es_client, es_index_name, es_index_config) 3777 """ 3778 with self.formatted_as(type=None, columns=[column]): -> 3779 super().add_elasticsearch_index( 3780 column=column, 3781 index_name=index_name, ~/opt/anaconda3/lib/python3.8/site-packages/datasets/search.py in add_elasticsearch_index(self, column, index_name, host, port, es_client, es_index_name, es_index_config) 587 """ 588 index_name = index_name if index_name is not None else column --> 589 es_index = ElasticSearchIndex( 590 host=host, port=port, es_client=es_client, es_index_name=es_index_name, es_index_config=es_index_config 591 ) ~/opt/anaconda3/lib/python3.8/site-packages/datasets/search.py in __init__(self, host, port, es_client, es_index_name, es_index_config) 123 from elasticsearch import Elasticsearch # noqa: F811 124 --> 125 self.es_client = es_client if es_client is not None else Elasticsearch([{"host": host, "port": str(port)}]) 126 self.es_index_name = ( 127 es_index_name ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/__init__.py in __init__(self, hosts, cloud_id, api_key, basic_auth, bearer_auth, opaque_id, headers, connections_per_node, http_compress, verify_certs, ca_certs, client_cert, client_key, ssl_assert_hostname, ssl_assert_fingerprint, ssl_version, ssl_context, ssl_show_warn, transport_class, request_timeout, node_class, node_pool_class, randomize_nodes_in_pool, node_selector_class, dead_node_backoff_factor, max_dead_node_backoff, serializer, serializers, default_mimetype, max_retries, retry_on_status, retry_on_timeout, sniff_on_start, sniff_before_requests, sniff_on_node_failure, sniff_timeout, min_delay_between_sniffing, sniffed_node_callback, meta_header, timeout, randomize_hosts, host_info_callback, sniffer_timeout, sniff_on_connection_fail, http_auth, maxsize, _transport) 310 311 if _transport is None: --> 312 node_configs = client_node_configs( 313 hosts, 314 cloud_id=cloud_id, ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in client_node_configs(hosts, cloud_id, **kwargs) 99 else: 100 assert hosts is not None --> 101 node_configs = hosts_to_node_configs(hosts) 102 103 # Remove all values which are 'DEFAULT' to avoid overwriting actual defaults. ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in hosts_to_node_configs(hosts) 142 143 elif isinstance(host, Mapping): --> 144 node_configs.append(host_mapping_to_node_config(host)) 145 else: 146 raise ValueError( ~/opt/anaconda3/lib/python3.8/site-packages/elasticsearch/_sync/client/utils.py in host_mapping_to_node_config(host) 209 options["path_prefix"] = options.pop("url_prefix") 210 --> 211 return NodeConfig(**options) # type: ignore 212 213 TypeError: __init__() missing 1 required positional argument: 'scheme' ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.0.0 - Platform: Mac - Python version: 3.8.0 - PyArrow version: 7.0.0 - ElaticSearch Info: { "name" : "byname", "cluster_name" : "elasticsearch_brew", "cluster_uuid" : "9xkjrltiQIG0J95ciWhqRA", "version" : { "number" : "7.10.2-SNAPSHOT", "build_flavor" : "oss", "build_type" : "tar", "build_hash" : "unknown", "build_date" : "2021-01-16T01:41:27.115673Z", "build_snapshot" : true, "lucene_version" : "8.7.0", "minimum_wire_compatibility_version" : "6.8.0", "minimum_index_compatibility_version" : "6.0.0-beta1" }, "tagline" : "You Know, for Search" } it is simple hack which shock you just replace https to http in scheme **In My Case:** -> `es = Elasticsearch([{'host': 'localhost', 'port': 9200, "scheme": "http"}]) if es.ping(): print('Connected to ES!') else: print('Could not connect!') sys.exit()`
[ -0.2016848921775818, -0.3632032871246338, -0.06706374138593674, -0.11549955606460571, -0.01564791426062584, 0.24799758195877075, 0.23410780727863312, 0.28774207830429077, 0.06386101245880127, 0.09369005262851715, -0.03584487736225128, 0.3917694687843323, -0.02158251777291298, -0.1523347944021225, 0.12814927101135254, -0.23091354966163635, 0.12108580023050308, 0.08743247389793396, 0.1187867671251297, -0.05167962983250618, -0.22444796562194824, 0.20195692777633667, -0.23997004330158234, -0.18637610971927643, 0.02606857754290104, 0.0416945144534111, -0.28112679719924927, 0.03704361617565155, -0.2842971384525299, -0.5741448402404785, 0.5656747817993164, -0.3205861747264862, -0.005403338000178337, 0.3283087909221649, -0.00011749420809792355, 0.25889575481414795, 0.6181120276451111, -0.07087100297212601, -0.13659758865833282, -0.3066090941429138, -0.2747555673122406, -0.1212204322218895, 0.3674221634864807, -0.374552845954895, -0.0447416827082634, 0.0033122622407972813, 0.05285114794969559, -0.37703457474708557, 0.542248010635376, 0.47417768836021423, 0.18038399517536163, 0.17155671119689941, 0.4112606346607208, -0.5131977796554565, 0.1866668164730072, 0.06860902905464172, -0.18627433478832245, 0.07581310719251633, -0.07554714381694794, 0.3040463626384735, 0.2885068953037262, 0.1322861909866333, 0.08194410055875778, -0.09907306730747223, 0.013178549706935883, 0.130726158618927, 0.1366858184337616, -0.1495373696088791, -0.2264220416545868, -0.19474047422409058, 0.22920918464660645, -0.1556187868118286, -0.430876225233078, 0.1329660713672638, 0.15858228504657745, -0.24052903056144714, 0.1471446454524994, -0.01519850641489029, -0.01276046596467495, 0.11773882806301117, 0.3022184669971466, -0.17759950459003448, -0.3475021421909332, 0.509226381778717, 0.08471724390983582, 0.18191629648208618, -0.08087745308876038, 0.03919326141476631, 0.10659897327423096, -0.17301416397094727, 0.0020134970545768738, 0.35526376962661743, 0.07880109548568726, 0.25270968675613403, -0.298414945602417, -0.028203226625919342, 0.11226426064968109, -0.24619290232658386, 0.08844666182994843, -0.19228848814964294, -0.11351718008518219, -0.16037479043006897, 0.5498575568199158, 0.1669119894504547, -0.0451066829264164, 0.10128207504749298, 0.12001409381628036, 0.1737443059682846, -0.04900796711444855, -0.06313716620206833, 0.2725945711135864, -0.05621439218521118, 0.027270983904600143, -0.39451947808265686, 0.19150519371032715, -0.04523472487926483, 0.4555639624595642, -0.1275634914636612, -0.2430797517299652, -0.058576956391334534, -0.3170815110206604, -0.08470085263252258, 0.03729460760951042, 0.19214943051338196, 0.23219715058803558, -0.49633651971817017, 0.4507415294647217, 0.37821710109710693, -0.14591377973556519, 0.19899222254753113, -0.2593500018119812, 0.13554327189922333, -0.016312826424837112, -0.0615728497505188, 0.11322858929634094, -0.5844493508338928, 0.424712210893631, 0.2325558215379715, -0.0374879390001297, 0.06102435290813446, 0.21578355133533478, 0.03000977262854576, -0.2533141076564789, 0.12639819085597992, -0.03472073748707771, -0.2597741186618805, 0.1583043485879898, 0.04150703549385071, -0.1471165120601654, -0.08972705155611038, -0.27633389830589294, -0.5810436010360718, -0.6209132075309753, 0.18935957551002502, 0.04452057182788849, -0.0496431440114975, -0.1614016592502594, 0.09762080013751984, 0.2085871696472168, -0.058684367686510086, -0.11428231745958328, -0.10848662257194519, -0.10685460269451141, 0.052994802594184875, 0.25938162207603455, 0.27527672052383423, -0.1447119265794754, -0.21051591634750366, -0.21796676516532898, 0.3615584671497345, -0.12702983617782593, 0.04294745996594429, -0.3336136043071747, 0.3303684592247009, -0.07992488145828247, 0.09090197086334229, 0.6981770992279053, -0.5474755764007568, -0.05364164710044861, -0.2091818004846573, -0.0626361146569252, -0.28868961334228516, 0.0518559031188488, -0.0723179504275322, 0.12955723702907562, 0.20207183063030243, 0.08368924260139465, 0.01887386292219162, 0.15685845911502838, -0.19041112065315247, -0.301076740026474, -0.020756248384714127, -0.2133549302816391, 0.21949070692062378, 0.06886724382638931, 0.07438905537128448, 0.11305706202983856, -0.09494039416313171, -0.028915435075759888, 0.09682786464691162, -0.016093261539936066, 0.3530192971229553, 0.4477272033691406, 0.047498635947704315, 0.14511950314044952, -0.2445705533027649, -0.18614473938941956, 0.08873280137777328, 0.13050797581672668, 0.406612366437912, -0.27547067403793335, -0.005486661568284035, -0.4557580351829529, -0.01253544632345438, -0.19992031157016754, -0.04046143218874931, 0.04769033193588257, -0.18044599890708923, 0.06550566852092743, 0.0815153568983078, -0.3663471043109894, 0.09038390964269638, -0.2240106612443924, 0.08741602301597595, -0.4838052988052368, 0.3780789077281952, -0.33995088934898376, -0.28489744663238525, -0.10054965317249298, -0.12728169560432434, 0.1625956892967224, -0.2289763242006302, -0.25290611386299133, 0.3170164227485657, 0.1585819125175476, -0.19934971630573273, -0.009423654526472092, -0.2196141928434372, 0.06879403442144394, -0.37171244621276855, -0.16011859476566315, 0.11465616524219513, 0.006017384119331837, 0.007571272552013397, -0.14095252752304077, 0.04912819713354111, -0.02767769619822502, 0.12361021339893341, -0.18654656410217285, 0.02449805848300457, 0.1674746721982956, 0.012846183031797409, -0.21484306454658508, -0.1568399965763092, 0.0762600377202034, 0.01104122307151556, 0.0965333878993988, -0.25609228014945984, -0.08062159270048141, -0.25564810633659363, 0.10096422582864761, 0.19080913066864014, 0.010987155139446259, 0.331563800573349, 0.03062807396054268, -0.02417568303644657, 0.020020071417093277, -0.2649323046207428, 0.5081580877304077, 0.18637005984783173, -0.25493335723876953, 0.17880897223949432, -0.19513489305973053, 0.04349720850586891, 0.3546719253063202, 0.07760702073574066, 0.27825599908828735, -0.041064366698265076, 0.2114386409521103, 0.2027517557144165, -0.3051764667034149, -0.43048304319381714, -0.0631658285856247, 0.22089438140392303, -0.3955519199371338, 0.18457695841789246, 0.026865897700190544, 0.029932469129562378, -0.06779695302248001, 0.028935492038726807, 0.14077268540859222, -0.2932102084159851, -0.0042730458080768585, 0.287345826625824, -0.0005063079297542572, 0.2911936044692993, -0.21529774367809296, 0.1278517097234726, 0.49245327711105347, -0.2807105779647827, -0.11807635426521301, 0.0015201910864561796, -0.14660727977752686, 0.008754681795835495, 0.04373576492071152, 0.22541916370391846, 0.2538788318634033, -0.20993782579898834, 0.007348274812102318, -0.1291220337152481, -0.5952883958816528, 0.07578372955322266, -0.0007680803537368774, 0.4424196779727936, 0.4109160602092743, 0.16726261377334595, -0.5368112921714783, -0.41640403866767883, 0.3792354166507721, -0.04723803699016571, -0.2670034170150757, 0.013098370283842087, -0.2433001548051834, -0.10956114530563354, -0.06101022660732269, -0.6315123438835144, -0.12185580283403397, -0.44279223680496216, 0.09282082319259644, 0.029339883476495743, 0.04037041962146759, 0.4282231628894806, 0.20013661682605743, 0.1551533043384552, -0.056106846779584885, 0.06929905712604523, -0.19250118732452393, -0.07027511298656464, 0.318307101726532, -0.3651517927646637, -0.2466861754655838, -0.11417198926210403, -0.164214625954628, 0.2686994969844818, 0.2605507969856262, -0.08813009411096573, -0.24472881853580475, -0.012626884505152702, 0.18011225759983063, -0.39560067653656006, 0.15023291110992432, 0.5313318967819214, 0.022441621869802475, 0.029162781313061714, -0.06478041410446167, -0.20795899629592896, 0.4208354651927948, 0.36750689148902893, 0.1470498889684677, 0.025194022804498672, 0.5940635204315186, -0.09034881740808487, 0.6092323660850525, 0.1436544805765152, -0.21905450522899628, 0.42050808668136597, -0.20543263852596283, 0.1942412406206131, -0.354234516620636, -0.48431622982025146, -0.2542822062969208, 0.21809720993041992, -0.05511981248855591, -0.20352430641651154, -0.09399230778217316, -0.2704288959503174, -0.1703050583600998, -0.10129693150520325, -0.1212010607123375, -0.020871033892035484, 0.00469244085252285, 0.18875783681869507, 0.3433679938316345, -0.04434630274772644, 0.05758998543024063, -0.3259448707103729, 0.0016673989593982697, -0.06839998066425323, 0.23384666442871094, 0.13191193342208862, 0.11509761959314346, -0.24705345928668976, -0.0795561745762825, -0.15446966886520386, 0.32566553354263306, 0.11695551872253418, 0.2916451692581177, 0.10584454238414764, 0.08956597000360489, 0.1443972885608673, 0.27722641825675964, 0.3966250419616699, -0.20455573499202728, -0.44139188528060913, 0.06688979268074036, 0.19479964673519135, -0.7750585079193115, -0.07959632575511932, -0.0787116140127182, 0.41826480627059937, 0.3315991759300232, 0.4458385109901428, -0.26200297474861145, 0.004422117955982685, 0.31997931003570557, -0.060293108224868774, 0.10584942996501923, -0.13034655153751373, -0.33353644609451294, -0.5129056572914124, -0.13413970172405243, 0.37002891302108765, 0.23657004535198212, 0.12518157064914703, 0.507093608379364, 0.027412984520196915, -0.32149678468704224, 0.06367124617099762, -0.2171642929315567, 0.19231903553009033, 0.30741024017333984, -0.009890173561871052, 0.12439419329166412, 0.2359708547592163, 0.11198317259550095, 0.32079243659973145, 0.2626963257789612, -0.08832216262817383, -0.05884699523448944, 0.037889234721660614, -0.15468041598796844, 0.22471708059310913, 0.21699386835098267, 0.09715781360864639, 0.04001656547188759, -0.3238070011138916, 0.08720873296260834, 0.09572218358516693, -0.19480028748512268, 0.5735222101211548, -0.042939167469739914, -0.04280680790543556, -0.3231015205383301, 0.4523456394672394, -0.17633740603923798, -0.009486563503742218, 0.41088542342185974, 0.5747948884963989, -0.3028593957424164, 0.6433290243148804, 0.04565415903925896, 0.7333821058273315, 0.3420003652572632, -0.030945662409067154, 0.544173538684845, 0.2750750780105591, 0.46323004364967346, 0.2398342341184616, 0.376303493976593, -0.1720002293586731, -0.017059601843357086, 0.025094063952565193, -0.33774301409721375, 0.1853720247745514, -0.1375247985124588, -0.4986567199230194, 0.1609334796667099, -0.3430403470993042, 0.3382047116756439, -0.04634808748960495, 0.29734912514686584, 0.062463223934173584, -0.10241612792015076, -0.45164260268211365, 0.1494489312171936, 0.1401236355304718, 0.23386222124099731, -0.02197498083114624, -0.12254619598388672, -0.15758685767650604, -0.25774770975112915, -0.21491575241088867, 0.05757739394903183, -0.05206260457634926, 0.7435449361801147, -0.07383909821510315, 0.04259507358074188, 0.25084179639816284, 0.19051571190357208, 0.15676726400852203, 0.0009723193943500519, -0.14113228023052216, 0.17027901113033295, 0.11794821172952652, -0.2572278380393982, 0.15579883754253387, -0.19507385790348053, 0.1639709770679474, -0.12959697842597961, -0.31425485014915466, 0.03283806890249252, -0.07789640873670578, -0.5886421799659729, -0.15742163360118866, 0.05737406760454178, -0.32888907194137573, -0.3205672800540924, -0.34725698828697205, 0.010652467608451843, -0.10850454866886139, -0.19403739273548126, 0.12451094388961792, 0.03900434821844101, -0.030804980546236038, 0.12103977799415588, 0.16502900421619415, -0.20939266681671143, 0.07414896786212921, 0.40867674350738525, -0.028067808598279953, 0.027040690183639526, 0.5184391140937805, -0.19264623522758484, -0.20226538181304932, -0.02087932825088501, -0.08765999227762222, 0.12624920904636383, -0.35527360439300537, -0.08974500745534897, -0.19501087069511414, 0.10114823281764984, 0.15767274796962738, 0.04774701967835426, 0.27957865595817566, 0.21516939997673035, 0.004116706550121307, -0.09374720603227615, 0.06721725314855576, 0.18362309038639069, 0.11752866208553314, 0.1098427027463913, -0.2728893756866455, 0.12384665012359619, -0.009615459479391575, -0.22544477880001068, -0.29340875148773193, 0.15973439812660217, 0.04523332417011261, 0.11993488669395447, -0.08892033994197845, -0.027815431356430054, 0.32008427381515503, -0.27543747425079346, 0.12655378878116608, 0.037021536380052567, -0.22740446031093597, -0.16288527846336365, -0.2106008678674698, 0.1217702254652977, -0.0909649059176445, -0.002784878481179476, 0.025836557149887085, -0.3257220983505249, -0.2259400188922882, -0.1212368905544281, -0.20477372407913208, 0.24182605743408203, 0.10943520069122314, -0.12330314517021179, 0.01615607738494873, -0.2745512127876282, 0.19408974051475525, -0.015984732657670975, 0.019721664488315582, -0.05105365812778473, -0.14577679336071014, 0.36294519901275635, 0.005973204039037228, 0.013680145144462585, 0.0033065672032535076, 0.22539815306663513, 0.02929583191871643, 0.2606130540370941, 0.1041988879442215, -0.3508845567703247, -0.1931648999452591, 0.05785103142261505, 0.1273362934589386, 0.3986719250679016, -0.2369803637266159, 0.08441096544265747, -0.23200327157974243, 0.2227538675069809, -0.2696215510368347, 0.13045147061347961, 0.3413183093070984, 0.07846494019031525, 0.15042325854301453, 0.14567524194717407, 0.23208138346672058, -0.02701627090573311, -0.023860491812229156, 0.13862445950508118, 0.30455806851387024, -0.18865951895713806, 0.24231675267219543, 0.08422215282917023, -0.08919724076986313, 0.03792720288038254, 0.2449096292257309, 0.15888556838035583, 0.3785720467567444, 0.2312900573015213, -0.10241537541151047, 0.2956625819206238, 0.07353317737579346, -0.06403745710849762, 0.14875096082687378, 0.15469443798065186, 0.13724219799041748, 0.25931882858276367, 0.08127235621213913, -0.06831403821706772, 0.13513444364070892, 0.6648653149604797, -0.08970357477664948, -0.20236323773860931, -0.30873870849609375, -0.06874972581863403, -0.12762033939361572, 0.060470882803201675, -0.06688348203897476, -0.0928228497505188, -0.299268901348114, -0.3756156861782074, 0.04790465161204338, 0.015934336930513382, 0.09762664884328842, 0.10304411500692368, 0.04445306584239006, -0.19308704137802124, -0.03233696520328522, 0.3514101207256317, 0.2818715274333954, -0.17716902494430542, 0.2298281341791153, 0.23991146683692932, -0.39655593037605286, -0.12539955973625183, 0.5719947814941406, 0.49208465218544006, 0.23872330784797668, 0.021450696513056755, 0.2234821319580078, 0.1455843299627304, -0.2435917854309082, 0.1587710678577423, 0.020072072744369507, 0.014065012335777283, -0.12390246987342834, 0.049776215106248856, 0.13790766894817352, -0.06139102578163147, 0.09848792850971222, -0.04110787436366081, 0.35505667328834534, -0.21443329751491547, -0.0778079703450203, -0.3696306347846985, 0.07895579189062119, 0.26088106632232666, 0.09332776814699173, -0.36340582370758057, 0.05720897763967514, 0.3693157732486725, 0.09857343137264252, -0.016547905281186104, 0.13553152978420258, 0.07790929079055786, -0.05985147878527641, 0.07600873708724976, 0.33703628182411194, 0.01002788171172142, -0.13372807204723358, -0.1390438973903656, -0.3820655941963196, 0.23836085200309753, -0.22545036673545837, -0.02634337916970253, 0.3816804885864258, 0.34244269132614136, 0.10842321068048477, 0.14200308918952942, 0.17009036242961884, -0.4230796694755554, -0.18643496930599213, 0.003945387899875641, -0.4493270516395569, -0.062182437628507614, 0.11941778659820557, 0.010777018964290619, 0.08829247206449509, -0.12448927760124207, -0.1562022715806961, -0.13895145058631897, 0.07300841063261032, -0.37578749656677246, -0.036557018756866455, 0.1598639339208603, -0.37470656633377075, 0.19872045516967773, 0.021882588043808937, 0.32474684715270996, -0.11637155711650848, -0.19172534346580505, -0.16996853053569794, -0.5526599287986755, -0.14767330884933472, 0.4530313014984131, 0.1776512861251831, 0.4545643627643585, -0.104247085750103, -0.5818839073181152, -0.2607060372829437, 0.45055386424064636, -0.09360715001821518, -0.4287995994091034, -0.44806385040283203, 0.24680590629577637, -0.20834791660308838, 0.1132245659828186, -0.13324417173862457, 0.12047593295574188, -0.04375084489583969, 0.3304932713508606, -0.11414305865764618, -0.4131426215171814, 0.5429112911224365, -0.3857053220272064, -0.10526178777217865, -0.06485100090503693, 0.0815553143620491, 0.7078866362571716, 0.26004695892333984, -0.3298376202583313, -0.08709181100130081, 0.2487342804670334, -0.12939992547035217, -0.15447163581848145, 0.23636338114738464, 0.3838108777999878, 0.16346034407615662, -0.12711992859840393, 0.1128419041633606, 0.008305694907903671, -0.002345232293009758, -0.10846357047557831, -0.2304185926914215 ]
https://github.com/huggingface/datasets/issues/3954
The dataset preview is not available for tdklab/Hebrew_Squad_v1.1 dataset
Hi @MatanBenChorin, thanks for reporting. Please, take into account that the preview may take some time until it properly renders (we are working to reduce this time). Maybe @severo can give more details on this.
## Dataset viewer issue for 'tdklab/Hebrew_Squad_v1.1' **Link:** https://huggingface.co/api/datasets/tdklab/Hebrew_Squad_v1.1?full=true The dataset preview is not available for this dataset. Am I the one who added this dataset ? Yes
35
The dataset preview is not available for tdklab/Hebrew_Squad_v1.1 dataset ## Dataset viewer issue for 'tdklab/Hebrew_Squad_v1.1' **Link:** https://huggingface.co/api/datasets/tdklab/Hebrew_Squad_v1.1?full=true The dataset preview is not available for this dataset. Am I the one who added this dataset ? Yes Hi @MatanBenChorin, thanks for reporting. Please, take into account that the preview may take some time until it properly renders (we are working to reduce this time). Maybe @severo can give more details on this.
[ -0.31141725182533264, -0.4014882743358612, -0.065843865275383, 0.2669583261013031, 0.08385822176933289, 0.111630879342556, 0.28291332721710205, 0.2667752504348755, -0.08628728985786438, 0.3120712637901306, -0.1596047580242157, -0.014639688655734062, 0.05346900597214699, 0.17406515777111053, 0.1613076627254486, -0.17154748737812042, 0.035972438752651215, 0.12122491747140884, -0.0750993937253952, -0.04022809863090515, -0.20855265855789185, 0.27214109897613525, -0.19612649083137512, 0.08117937296628952, -0.21607787907123566, -0.0268841702491045, -0.07283268123865128, -0.055124007165431976, -0.28941968083381653, -0.2867647707462311, 0.2907399535179138, -0.05147558078169823, 0.2851789891719818, 0.13984695076942444, -0.00011136551620438695, 0.09379449486732483, 0.2610302269458771, -0.06037347763776779, -0.2673734724521637, -0.15472541749477386, 0.08368777483701706, -0.25159984827041626, 0.08063610643148422, -0.0030497685074806213, -0.45025232434272766, -0.2254158854484558, 0.19485461711883545, -0.20315991342067719, 0.3874702453613281, 0.10957414656877518, 0.2613072693347931, 0.515211820602417, 0.019966576248407364, -0.32598426938056946, 0.12770891189575195, 0.17483913898468018, -0.45285600423812866, -0.07250747084617615, 0.19614440202713013, 0.09521845728158951, 0.13594266772270203, 0.36633309721946716, 0.33920276165008545, 0.0849597156047821, 0.08121193945407867, 0.20183685421943665, -0.0015250146389007568, -0.42413705587387085, 0.23388910293579102, 0.08420627564191818, 0.7123063206672668, -0.04919172078371048, -0.20141683518886566, 0.14722028374671936, 0.27745863795280457, 0.05452844500541687, 0.1342964619398117, 0.0669681578874588, -0.11546219885349274, 0.1445249766111374, -0.2964591085910797, -0.1811358779668808, 0.007548078894615173, 0.2059747576713562, 0.07805411517620087, -0.024439126253128052, -0.27737951278686523, 0.09220881760120392, -0.11932796239852905, 0.11836687475442886, 0.13045792281627655, -0.02573033794760704, -0.1497568041086197, 0.34289854764938354, -0.206355020403862, -0.15388397872447968, 0.009794007986783981, 0.048898451030254364, 0.05516462028026581, 0.19058625400066376, 0.19001752138137817, 0.07146893441677094, -0.1487373262643814, -0.012495934963226318, 0.11327014863491058, 0.10425817966461182, 0.3729870021343231, 0.21261954307556152, 0.3135800361633301, 0.2581314444541931, 0.4647905230522156, -0.014693129807710648, -0.09980429708957672, -0.06692148000001907, -0.2137877196073532, -0.15487927198410034, 0.29707980155944824, -0.09861019998788834, -0.25465863943099976, -0.049998365342617035, -0.05853196978569031, 0.0071910894475877285, -0.0907529667019844, 0.40448638796806335, -0.11820703744888306, -0.4784182906150818, 0.188321053981781, 0.128223717212677, -0.12052199989557266, -0.40430527925491333, -0.32680511474609375, -0.03421010449528694, 0.019072722643613815, 0.20605672895908356, 0.13239441812038422, -0.24043962359428406, 0.209086611866951, 0.11468950659036636, 0.2104792445898056, 0.16421501338481903, -0.21998253464698792, 0.11746573448181152, -0.0739343985915184, 0.09991573542356491, 0.14554482698440552, 0.24296511709690094, 0.08109389245510101, 0.03412504494190216, 0.024281583726406097, 0.26053541898727417, -0.10918039828538895, -0.13960504531860352, -0.38760998845100403, 0.10734957456588745, -0.3930301070213318, -0.052612707018852234, -0.48569533228874207, 0.4448400139808655, -0.16121697425842285, -0.10294713079929352, 0.08587402105331421, 0.1520814150571823, -0.3201353847980499, -0.07599005103111267, 0.37084609270095825, 0.5224621891975403, -0.5629886388778687, -0.3431331217288971, 0.0393032543361187, -0.3624466359615326, 0.06307987868785858, 0.33380821347236633, -0.18746832013130188, -0.12352613359689713, -0.3934740424156189, 0.11844097077846527, 0.242290198802948, -0.40202608704566956, -0.6250222325325012, 0.1326606422662735, -0.18001550436019897, 0.05028761178255081, 0.02145017683506012, 0.08486621826887131, 0.44331085681915283, 0.052014585584402084, -0.3218526840209961, 0.16078047454357147, 0.17333441972732544, -0.1198527067899704, -0.2461257427930832, -0.10022296011447906, 0.25437280535697937, 0.1884295642375946, -0.02662322297692299, 0.11971337348222733, 0.06482868641614914, -0.018518194556236267, 0.4133198857307434, 0.2739724814891815, 0.20739327371120453, 0.14384734630584717, 0.27225461602211, 0.0027254074811935425, 0.007877789437770844, -0.16965416073799133, -0.4984520673751831, 0.062376268208026886, 0.08233240991830826, 0.28283852338790894, -0.043173402547836304, -0.2127304971218109, -0.4552212357521057, 0.025819534435868263, -0.4027036428451538, -0.3439929783344269, 0.13049721717834473, 0.11787350475788116, 0.05005824938416481, 0.15833787620067596, 0.08255071938037872, 0.08657168596982956, -0.14607204496860504, 0.025674114003777504, -0.1625356674194336, 0.3810805082321167, -0.02752346359193325, 0.016536176204681396, 0.1925334632396698, 0.05111273378133774, 0.050622161477804184, -0.2914515733718872, -0.04009637236595154, 0.2824092507362366, -0.12107503414154053, -0.004025623202323914, 0.30396854877471924, -0.2232210487127304, 0.2484908103942871, -0.34904804825782776, 0.11281654983758926, -0.08115442097187042, -0.07600962370634079, 0.009500890970230103, -0.08482673019170761, 0.3645387291908264, 0.2695685625076294, 0.002818390727043152, -0.232232004404068, 0.07306426018476486, 0.21070115268230438, 0.25498485565185547, -0.042650945484638214, -0.14919525384902954, 0.09976774454116821, 0.09878543019294739, 0.34787431359291077, -0.28812742233276367, -0.1279272735118866, 0.23329275846481323, 0.3511847257614136, -0.21202850341796875, -0.06060227006673813, 0.03804142400622368, -0.12645846605300903, -0.0016077402979135513, 0.1337207555770874, -0.14748570322990417, 0.17266878485679626, 0.10647428035736084, 0.023590881377458572, -0.0679187923669815, 0.1411978006362915, -0.027266975492239, 0.05572231113910675, -0.12138676643371582, 0.0044167437590658665, 0.0701381117105484, 0.2100195735692978, -0.14602217078208923, -0.6160921454429626, 0.2807810306549072, 0.197407066822052, 0.2429196983575821, -0.1518464982509613, -0.13091586530208588, -0.1582818627357483, -0.14873537421226501, 0.025172637775540352, -0.27476465702056885, -0.38829946517944336, -0.15991467237472534, 0.23425078392028809, -0.09121894836425781, 0.38735532760620117, 0.41109150648117065, 0.22347822785377502, 0.3818233013153076, -0.04424493759870529, 0.3038652837276459, -0.19013860821723938, 0.1711225062608719, -0.19167989492416382, 0.16736635565757751, 0.11175035685300827, -0.16026586294174194, 0.23024001717567444, -0.1125577986240387, 0.06155366450548172, -0.47097527980804443, -0.2829718291759491, 0.18654979765415192, -0.17160923779010773, 0.4791974723339081, 0.008564606308937073, 0.34090757369995117, -0.22178462147712708, 0.07913721352815628, 0.22854012250900269, -0.13786189258098602, -0.5370671153068542, -0.17016640305519104, -0.21725642681121826, -0.06949391961097717, -0.017263682559132576, -0.3079880475997925, -0.4341340959072113, -0.1596805453300476, 0.2873244285583496, 0.012250524014234543, -0.1503363400697708, -0.25495314598083496, 0.003948364406824112, 0.08937044441699982, -0.035641834139823914, -0.13691996037960052, -0.4273110628128052, -0.3670596480369568, 0.3611658811569214, -0.45477262139320374, -0.5265402793884277, 0.23123008012771606, 0.19997742772102356, 0.21244290471076965, -0.3956666588783264, -0.6403863430023193, -0.2156406044960022, -0.039202459156513214, 0.12840135395526886, -0.025977201759815216, -0.1352197378873825, 0.30315035581588745, -0.23491667211055756, -0.05289880186319351, -0.1281711757183075, -0.3473532497882843, -0.21014553308486938, -0.21862751245498657, 0.4514726996421814, -0.22466784715652466, 0.280547559261322, 0.018851377069950104, 0.7145491242408752, 0.40175357460975647, 0.12204600870609283, 0.1135822981595993, -0.33725079894065857, 0.33767038583755493, -0.14507675170898438, -0.3311552405357361, 0.01148118544369936, -0.14130273461341858, 0.28598976135253906, 0.31151366233825684, 0.078819140791893, -0.01275545172393322, -0.14034387469291687, -0.02194885164499283, -0.32592079043388367, -0.21250903606414795, -0.2277955561876297, 0.03219575807452202, 0.1000407263636589, 0.13733549416065216, 0.19671133160591125, -0.16436950862407684, -0.29289671778678894, 0.12141600251197815, 0.4918367266654968, 0.14813145995140076, 0.10222914069890976, -0.4018715023994446, 0.20293718576431274, -0.5260801315307617, 0.2535169720649719, -0.10986939817667007, 0.4310534596443176, -0.1769818812608719, 0.13122358918190002, 0.37929224967956543, 0.042802367359399796, 0.654962956905365, 0.02878573350608349, -0.04380643367767334, -0.1517619788646698, -0.35403960943222046, -0.2555314004421234, -0.05930943414568901, -0.1328016072511673, 0.15535704791545868, -0.019251156598329544, 0.32933107018470764, -0.06419950723648071, -0.14589530229568481, 0.45622700452804565, -0.23953814804553986, -0.4554586112499237, -0.2277904897928238, -0.3311232924461365, -0.1356211155653, -0.17705807089805603, -0.06552455574274063, -0.016758205369114876, 0.12468040734529495, 0.0715007483959198, -0.09189921617507935, 0.11932201683521271, -0.20503023266792297, -0.016464263200759888, 0.1349768340587616, 0.08139441162347794, 0.36808696389198303, 0.23187288641929626, 0.5400987863540649, -0.15833860635757446, 0.033672310411930084, 0.4782567620277405, -0.012412086129188538, -0.6159335374832153, 0.18181535601615906, -0.0894620344042778, 0.19713816046714783, 0.5047106742858887, -0.1744832992553711, 0.1902247965335846, -0.08848004043102264, 0.0597001388669014, -0.22299163043498993, -0.07500211149454117, 0.5580000877380371, -0.1309601366519928, -0.12662436068058014, -0.2879205048084259, 0.4157577455043793, -0.07769498974084854, 0.0015035271644592285, 0.32445985078811646, 0.4434553384780884, -0.01808103546500206, -0.004059607163071632, -0.10839716345071793, 0.8796594142913818, 0.021077673882246017, 0.12452390789985657, 0.2823743522167206, 0.05478307604789734, 0.29285067319869995, -0.10241834819316864, 0.10554999858140945, -0.21975179016590118, -0.33952248096466064, -0.08626551181077957, 0.014855202287435532, 0.10272436589002609, 0.007519099861383438, 0.16852885484695435, -0.16061857342720032, 0.12888431549072266, 0.5418012142181396, -0.06500902026891708, 0.12239916622638702, -0.061727240681648254, 0.03312854468822479, -0.2585824131965637, 0.2011476755142212, -0.006955094635486603, 0.40342018008232117, -0.06002802029252052, -0.18978461623191833, -0.1876131147146225, -0.21326448023319244, -0.4891666769981384, 0.06907323002815247, -0.40107688307762146, 0.21565036475658417, 0.2503487169742584, -0.352245032787323, 0.36912059783935547, 0.46145838499069214, 0.09648367762565613, 0.031950823962688446, -0.34963059425354004, 0.22799941897392273, -0.013175688683986664, -0.1704091727733612, -0.3415646553039551, 0.1633523553609848, -0.01512087695300579, -0.12228947877883911, -0.3134903311729431, 0.1787710189819336, 0.11438503116369247, -0.03175841644406319, -0.3772244155406952, 0.03408677130937576, -0.06207609921693802, -0.3407725393772125, 0.025160841643810272, -0.08342660963535309, 0.14354370534420013, -0.330778568983078, 0.1617470234632492, 0.022558312863111496, -0.1345757097005844, -0.26582247018814087, 0.3902736008167267, -0.1064005047082901, -0.0817263126373291, 0.5700671672821045, -0.11039898544549942, -0.17935703694820404, 0.5454648733139038, 0.21384833753108978, -0.24174216389656067, -0.19745203852653503, 0.18233352899551392, 0.4442591071128845, -0.42881304025650024, -0.001660301350057125, -0.0008613131940364838, 0.291145920753479, 0.014861720614135265, 0.5367539525032043, 0.2767796218395233, -0.44697093963623047, -0.14679516851902008, -0.3396763503551483, -0.1665993630886078, 0.3289378881454468, -0.0012974664568901062, 0.22290736436843872, -0.0678444355726242, 0.2268245965242386, 0.17391367256641388, 0.41811344027519226, -0.3185129761695862, 0.06528527289628983, 0.08433228731155396, -0.008712653070688248, 0.252643883228302, 0.014988318085670471, 0.41361990571022034, -0.014476007781922817, 0.06595213711261749, 0.27727586030960083, -0.4419015049934387, -0.187572181224823, 0.02651592716574669, 0.14937998354434967, 0.09893374890089035, -0.19210028648376465, -0.10343603044748306, -0.11755827069282532, -0.08961442112922668, 0.09526827931404114, 0.339913010597229, 0.15208229422569275, 0.10848036408424377, 0.12400594353675842, 0.1886841356754303, -0.07264161854982376, 0.006254944950342178, -0.07732660323381424, 0.09002649784088135, 0.4079752564430237, 0.21413466334342957, 0.047531094402074814, 0.0484255813062191, -0.0006454512476921082, -0.0032268718350678682, 0.14170169830322266, 0.16629499197006226, 0.3370444178581238, -0.03508726507425308, -0.2697988748550415, 0.33413127064704895, -0.043884459882974625, 0.2694777250289917, 0.038523465394973755, -0.32060113549232483, 0.07809893041849136, 0.07506774365901947, 0.11750813573598862, -0.45623794198036194, -0.16609874367713928, 0.20424863696098328, 0.0801035538315773, 0.005631431937217712, 0.11676190793514252, 0.11051483452320099, 0.44440633058547974, 0.08531660586595535, -0.03909385949373245, 0.16314205527305603, -0.2710758447647095, 0.22689883410930634, 0.311450332403183, -0.3355242908000946, 0.1749679297208786, 0.38297244906425476, 0.033545415848493576, -0.31778737902641296, 0.5321747660636902, -0.07686641067266464, 0.21403738856315613, -0.2821454703807831, 0.2730309069156647, 0.15818271040916443, -0.35800960659980774, 0.13303357362747192, -0.038117796182632446, -0.09872293472290039, 0.04244900122284889, 0.08634408563375473, 0.723307728767395, -0.14591540396213531, 0.030951591208577156, -0.47571030259132385, 0.13775049149990082, -0.19034650921821594, -0.05746546760201454, -0.007428990676999092, -0.18752962350845337, -0.2446208894252777, 0.11777397990226746, -0.06214318051934242, -0.279987633228302, 0.13043801486492157, -0.016454026103019714, -0.18241159617900848, 0.003670499660074711, -0.0098176971077919, 0.13125097751617432, 0.0504705049097538, -0.13358642160892487, 0.3099605441093445, -0.09399379789829254, 0.17683610320091248, 0.20453403890132904, 0.18050359189510345, 0.07965250313282013, -0.03674396127462387, 0.16001877188682556, -0.035244572907686234, -0.18139609694480896, -0.08630719035863876, 0.1682593822479248, 0.3383862376213074, 0.23579363524913788, -0.16338413953781128, 0.14746706187725067, 0.13228437304496765, -0.14899039268493652, 0.09579171985387802, 0.2140495777130127, 0.04258868843317032, -0.2155543863773346, 0.3341030776500702, -0.8482712507247925, -0.06017064303159714, -0.4110957086086273, -0.04357384890317917, -0.012133214622735977, -0.040164344012737274, -0.02529442310333252, -0.00873607024550438, 0.00872139260172844, -0.36931121349334717, 0.10373689234256744, -0.13044464588165283, 0.49759209156036377, 0.107559934258461, 0.009419240057468414, -0.11681956797838211, -0.37454020977020264, -0.4318162500858307, 0.23363858461380005, 0.06361029297113419, 0.09147544205188751, -0.025611568242311478, 0.13722780346870422, 0.13183502852916718, 0.15850910544395447, 0.3590973913669586, -0.046494532376527786, -0.014674782752990723, 0.1826620250940323, -0.21025313436985016, -0.07009845972061157, 0.0025915130972862244, 0.21070651710033417, 0.030466608703136444, -0.14727061986923218, 0.2202957421541214, 0.08346667140722275, -0.08207111060619354, -0.24180163443088531, -0.00454036146402359, -0.1452547162771225, -0.1877065896987915, 0.363374263048172, -0.038112156093120575, 0.3846709728240967, -0.08185413479804993, -0.10437778383493423, -0.11509650945663452, -0.336588054895401, -0.07782070338726044, 0.5023617148399353, 0.16275885701179504, 0.24325114488601685, 0.02887045405805111, -0.4662918746471405, -0.16759750247001648, 0.07457147538661957, 0.10583585500717163, 0.29104509949684143, -0.44812825322151184, 0.01493070088326931, -0.2699219286441803, -0.11507309973239899, 0.2605739235877991, 0.14330890774726868, -0.15822909772396088, -0.08995825052261353, -0.2519112229347229, -0.2932335436344147, 0.45673325657844543, -0.2791825830936432, -0.04171929508447647, -0.16181105375289917, 0.08052374422550201, 0.26579898595809937, -0.45459866523742676, -0.6781043410301208, 0.12654343247413635, 0.26987579464912415, -0.035805843770504, 0.15405705571174622, 0.47488805651664734, -0.16968530416488647, 0.08662322163581848, -0.017964696511626244, 0.7829418182373047, 0.0596146397292614, -0.042558666318655014, 0.18922187387943268, -0.313546359539032 ]
https://github.com/huggingface/datasets/issues/3954
The dataset preview is not available for tdklab/Hebrew_Squad_v1.1 dataset
I imagine the dataset has been moved to https://huggingface.co/datasets/tdklab/Hebrew_Squad_v1, which still has an issue: ``` Server Error Status code: 400 Exception: NameError Message: name 'HebrewSquad' is not defined ```
## Dataset viewer issue for 'tdklab/Hebrew_Squad_v1.1' **Link:** https://huggingface.co/api/datasets/tdklab/Hebrew_Squad_v1.1?full=true The dataset preview is not available for this dataset. Am I the one who added this dataset ? Yes
29
The dataset preview is not available for tdklab/Hebrew_Squad_v1.1 dataset ## Dataset viewer issue for 'tdklab/Hebrew_Squad_v1.1' **Link:** https://huggingface.co/api/datasets/tdklab/Hebrew_Squad_v1.1?full=true The dataset preview is not available for this dataset. Am I the one who added this dataset ? Yes I imagine the dataset has been moved to https://huggingface.co/datasets/tdklab/Hebrew_Squad_v1, which still has an issue: ``` Server Error Status code: 400 Exception: NameError Message: name 'HebrewSquad' is not defined ```
[ -0.2194947898387909, -0.14463429152965546, -0.07316692918539047, 0.24114498496055603, 0.11757911741733551, 0.058199308812618256, 0.28336018323898315, 0.24552012979984283, -0.1701328456401825, 0.3784976601600647, -0.11629267781972885, -0.047787562012672424, -0.0005151843652129173, -0.023456212133169174, 0.08697625994682312, -0.04098643362522125, 0.1532171219587326, 0.11320711672306061, -0.037404537200927734, 0.0838603526353836, -0.27018433809280396, 0.3187863230705261, -0.19396167993545532, 0.15979871153831482, -0.1933697611093521, 0.059059061110019684, -0.16981865465641022, -0.04884013533592224, -0.2652767300605774, -0.382081538438797, 0.16621115803718567, 0.04473358765244484, 0.15279358625411987, 0.41040632128715515, -0.00012102397886337712, 0.0588318407535553, 0.16960537433624268, -0.07644528895616531, -0.4459677040576935, -0.2458498328924179, 0.12626147270202637, -0.27783459424972534, 0.16996099054813385, -0.12953943014144897, -0.30803877115249634, -0.22941696643829346, 0.250192791223526, -0.31964507699012756, 0.2603808343410492, 0.08755448460578918, 0.19888392090797424, 0.38837048411369324, 0.09777705371379852, -0.3040710687637329, 0.07376515120267868, -0.003930814564228058, -0.4839446246623993, 0.043220289051532745, 0.17955519258975983, 0.1267469823360443, 0.25980424880981445, 0.39697813987731934, 0.34357890486717224, 0.09244397282600403, 0.09022116661071777, 0.09908729791641235, -0.19007417559623718, -0.41749316453933716, 0.2204992175102234, 0.12065327167510986, 0.6765864491462708, -0.12899979948997498, -0.353677898645401, 0.10869378596544266, 0.27665674686431885, 0.10210418701171875, 0.2826467752456665, -0.13864220678806305, -0.07721568644046783, 0.13077396154403687, -0.2702970504760742, -0.33298459649086, 0.06189951300621033, 0.24973680078983307, 0.0003485381603240967, 0.09498703479766846, -0.2957223951816559, 0.1638331115245819, -0.12430848181247711, -0.05449473857879639, 0.06510011851787567, -0.04253473877906799, -0.08094124495983124, 0.3786759078502655, -0.23777268826961517, -0.17523354291915894, -0.0344153493642807, 0.12767961621284485, -0.20529401302337646, 0.26879268884658813, 0.2222530096769333, 0.08893278986215591, -0.07088685035705566, -0.009748369455337524, 0.15211167931556702, 0.20952937006950378, 0.46138036251068115, 0.1595868021249771, 0.3731546998023987, 0.306985467672348, 0.4620526432991028, 0.028369929641485214, -0.2418614625930786, -0.10396715253591537, -0.22751332819461823, -0.2097781002521515, 0.4401780962944031, 0.005227725952863693, -0.22460611164569855, 0.04994150996208191, -0.14615318179130554, -0.07048017531633377, -0.004080413840711117, 0.3496783971786499, -0.05944467708468437, -0.4387338161468506, 0.12518291175365448, 0.04869851842522621, -0.13294757902622223, -0.2789263427257538, -0.20601074397563934, 0.048399440944194794, 0.020549308508634567, 0.14940333366394043, 0.041082438081502914, -0.18679194152355194, 0.23948398232460022, -0.12607218325138092, 0.25206536054611206, 0.09905306994915009, -0.2822033762931824, 0.1512947529554367, -0.10012569278478622, 0.08851444721221924, 0.13516218960285187, 0.3016206622123718, 0.026271438226103783, -0.14937035739421844, 0.04390103369951248, 0.1385284662246704, -0.19942188262939453, -0.039475008845329285, -0.3668966591358185, 0.04628245532512665, -0.37960100173950195, -0.01174439862370491, -0.33612897992134094, 0.40115153789520264, -0.08089009672403336, -0.22298282384872437, 0.11303035914897919, 0.1968786120414734, -0.21925336122512817, -0.10480097681283951, 0.1760920137166977, 0.5377519726753235, -0.576400876045227, -0.45519086718559265, -0.05039311945438385, -0.2702189087867737, -0.19391077756881714, 0.26115044951438904, -0.1972648948431015, -0.13127624988555908, -0.32233983278274536, 0.09558539092540741, 0.31352004408836365, -0.477780818939209, -0.5641768574714661, 0.011379026807844639, -0.17036667466163635, -0.02624751441180706, 0.05592935159802437, -0.06655968725681305, 0.40204474329948425, -0.011131742969155312, -0.25183793902397156, -0.10005884617567062, 0.14750923216342926, -0.2609867453575134, -0.11427466571331024, -0.22410263121128082, 0.18157291412353516, 0.08140023052692413, -0.013628032058477402, 0.17307010293006897, 0.1636667549610138, 0.06817734986543655, 0.2866145074367523, 0.22229446470737457, 0.3090757131576538, 0.2086479663848877, 0.2881526052951813, 0.03832640126347542, 0.10493659228086472, -0.2811741530895233, -0.5561710000038147, 0.0645146444439888, 0.03559567779302597, 0.304183691740036, -0.23975075781345367, -0.14660410583019257, -0.3731176555156708, -0.04668933153152466, -0.34687355160713196, -0.16200901567935944, 0.06133997440338135, 0.18046769499778748, 0.06173386052250862, 0.04520652815699577, -0.08622667193412781, 0.025312334299087524, -0.13012267649173737, 0.1519571989774704, -0.281659871339798, 0.23149679601192474, -0.005426855757832527, 0.08235737681388855, -0.04008406400680542, 0.09725727885961533, 0.117346853017807, -0.4210636019706726, -0.08294437825679779, 0.38021644949913025, -0.10622116923332214, -0.01496763527393341, 0.5267102718353271, -0.17312945425510406, 0.15840895473957062, -0.20925693213939667, 0.11387082189321518, -0.038203202188014984, -0.06010165438055992, 0.08541194349527359, 0.04484784975647926, 0.3470875024795532, 0.21986021101474762, 0.1190238744020462, -0.20791128277778625, 0.07455682754516602, 0.283671110868454, 0.17371287941932678, -0.09997712075710297, -0.26244544982910156, 0.23061726987361908, 0.20537269115447998, 0.4968131184577942, -0.26743149757385254, 0.015405438840389252, 0.02454068511724472, 0.3386998772621155, -0.18051457405090332, -0.05530766397714615, 0.11077781021595001, -0.0588781014084816, 0.0523771271109581, 0.06397373229265213, 0.01359078660607338, 0.37754005193710327, 0.011520007625222206, -0.027741890400648117, -0.06829992681741714, 0.23413465917110443, -0.044119808822870255, 0.16576272249221802, 0.12941890954971313, 0.05842351168394089, 0.06742081791162491, 0.09840340912342072, -0.056265752762556076, -0.5610321164131165, 0.13629893958568573, 0.24753549695014954, 0.2515512704849243, -0.1353929042816162, 0.0021705590188503265, -0.22799386084079742, -0.09872999787330627, -0.02977708727121353, -0.2850557565689087, -0.5805879831314087, -0.23232443630695343, 0.1411299705505371, -0.11821027100086212, 0.29133209586143494, 0.3895176649093628, 0.1325908601284027, 0.35972851514816284, -0.16801205277442932, 0.21715132892131805, -0.17771629989147186, 0.13857673108577728, -0.16888108849525452, 0.05381351336836815, 0.08230666816234589, -0.383499413728714, 0.25183385610580444, -0.03968225419521332, 0.1200326681137085, -0.48633575439453125, -0.28053101897239685, 0.16249540448188782, -0.12468305230140686, 0.5278941988945007, 0.11132581532001495, 0.34023189544677734, -0.2290671318769455, 0.005053305998444557, 0.1976262629032135, -0.12215087562799454, -0.4684063792228699, -0.2839081585407257, -0.1765328198671341, -0.11106953024864197, 0.05629059299826622, -0.21170780062675476, -0.5416402816772461, -0.13963328301906586, 0.31801170110702515, -0.01439756527543068, -0.10389828681945801, -0.27251747250556946, -0.0980178639292717, 0.0851445272564888, -0.09992676973342896, -0.16596311330795288, -0.425879567861557, -0.29597529768943787, 0.33757254481315613, -0.3799959421157837, -0.22621844708919525, 0.24151697754859924, 0.18133559823036194, 0.395592600107193, -0.3802100419998169, -0.5040521621704102, -0.2989564538002014, 0.05891609936952591, 0.13552066683769226, 0.1273781657218933, -0.1408700942993164, 0.4437851011753082, -0.14575745165348053, -0.05633006617426872, -0.15031665563583374, -0.3275495171546936, -0.2663038372993469, -0.22876191139221191, 0.5647087693214417, -0.03691704571247101, 0.2696145176887512, -0.030231360346078873, 0.6665748357772827, 0.4500368535518646, 0.24104797840118408, 0.24775578081607819, -0.1916879266500473, 0.3756330907344818, -0.07714597135782242, -0.37170445919036865, -0.07798650860786438, -0.15632197260856628, 0.16019411385059357, 0.351772278547287, 0.1014372706413269, -0.0489562526345253, -0.24149174988269806, -0.018658481538295746, -0.3859395384788513, -0.19912487268447876, -0.35087481141090393, -0.1347099244594574, 0.12115088850259781, 0.12723210453987122, 0.17923784255981445, -0.25480344891548157, -0.3089039623737335, 0.010339880362153053, 0.5455585718154907, -0.004300497472286224, 0.04027267172932625, -0.5432645678520203, 0.08849956095218658, -0.4548127055168152, 0.41794759035110474, -0.06390853226184845, 0.5273135304450989, -0.0769733414053917, 0.1924738883972168, 0.36931800842285156, -0.00022694887593388557, 0.6381505131721497, 0.01137411966919899, -0.2179281860589981, -0.12402495741844177, -0.18610112369060516, -0.10782529413700104, -0.05662533640861511, 0.013626057654619217, 0.19476617872714996, 0.023969046771526337, 0.35701480507850647, -0.14502796530723572, -0.10980140417814255, 0.47109413146972656, -0.2746328115463257, -0.4337356686592102, -0.1396964192390442, -0.36132052540779114, -0.15541893243789673, -0.19202521443367004, -0.2040228247642517, -0.09197276085615158, 0.13451851904392242, 0.17606663703918457, 0.1395021229982376, 0.2213851511478424, -0.277865469455719, 0.11110984534025192, 0.12514610588550568, 0.0802498385310173, 0.37497222423553467, 0.09651347994804382, 0.6328036785125732, -0.0471806526184082, 0.10986564308404922, 0.5587424635887146, -0.11659877002239227, -0.6847671270370483, 0.23651355504989624, 0.06658849865198135, 0.28209388256073, 0.6491954326629639, -0.10923035442829132, 0.24096232652664185, 0.030391350388526917, 0.17352919280529022, -0.14375320076942444, -0.13099902868270874, 0.6404569149017334, -0.18036940693855286, -0.24551436305046082, -0.3080480992794037, 0.48243439197540283, -0.09529723227024078, -0.03162379562854767, 0.47201159596443176, 0.48437589406967163, -0.07945219427347183, 0.006514227949082851, -0.19757583737373352, 1.041914939880371, 0.09389989078044891, 0.1571386456489563, 0.20983660221099854, -0.1135517954826355, 0.4359425902366638, -0.08132526278495789, -0.030908767133951187, -0.25470075011253357, -0.12386882305145264, -0.14390413463115692, 0.0522146113216877, 0.29434362053871155, 0.03696630150079727, 0.1172676831483841, -0.021799558773636818, 0.040166907012462616, 0.6541776657104492, -0.023061877116560936, 0.1724509596824646, -0.07074469327926636, 0.007989710196852684, -0.24231505393981934, 0.11980734765529633, -0.072855144739151, 0.4128446578979492, -0.11307109892368317, -0.151525616645813, -0.2822457551956177, -0.15884950757026672, -0.4720562696456909, -0.10814110934734344, -0.36049556732177734, 0.2516593933105469, 0.1464405357837677, -0.3401826024055481, 0.3326032757759094, 0.3459121584892273, 0.2572561800479889, 0.012559961527585983, -0.341503381729126, 0.3910621106624603, 0.033823903650045395, -0.10664540529251099, -0.27617183327674866, 0.12729281187057495, 0.005659833550453186, -0.053062934428453445, -0.23347708582878113, 0.1891534924507141, 0.06024821102619171, -0.1898779720067978, -0.5703039169311523, 0.0957115888595581, -0.03232043236494064, -0.39927607774734497, 0.11228218674659729, -0.11893825232982635, 0.1887514591217041, -0.41222503781318665, 0.08503134548664093, 0.03379711136221886, -0.06887082010507584, -0.2828645706176758, 0.3699133098125458, -0.17667675018310547, -0.1523309201002121, 0.5622904300689697, -0.08280566334724426, -0.33784398436546326, 0.6104645729064941, 0.02980906143784523, -0.26590532064437866, -0.08929507434368134, 0.24553370475769043, 0.3897392749786377, -0.49467164278030396, 0.051169246435165405, 0.1293523907661438, 0.17000536620616913, -0.018626458942890167, 0.38829442858695984, 0.2227480411529541, -0.2521989345550537, -0.168178990483284, -0.2487948089838028, -0.057921744883060455, 0.4032362103462219, 0.13082605600357056, 0.25388264656066895, -0.0828300267457962, 0.18171386420726776, 0.09608008712530136, 0.22154229879379272, -0.21428564190864563, 0.040185973048210144, 0.038621850311756134, 0.005858819931745529, 0.25466078519821167, -0.008266836404800415, 0.3619786202907562, -0.04409101977944374, 0.0253737922757864, 0.21765221655368805, -0.3750719726085663, -0.07799501717090607, -0.07409224659204483, 0.19146250188350677, 0.06949277222156525, -0.18736866116523743, -0.1345338076353073, -0.2062823623418808, 0.0850227028131485, 0.005733685567975044, 0.17587241530418396, 0.1739700436592102, 0.22832611203193665, 0.12384344637393951, 0.2783931791782379, -0.22477710247039795, 0.16504687070846558, 0.11259922385215759, 0.15949104726314545, 0.6156429648399353, 0.12692922353744507, 0.13766740262508392, -0.07678000628948212, 0.018565036356449127, -0.16534698009490967, 0.16251543164253235, 0.11394402384757996, 0.2898523509502411, -0.07576558738946915, -0.3018309473991394, 0.29234325885772705, 0.00048109469935297966, 0.31432461738586426, 0.33634141087532043, -0.33465009927749634, -0.06005266308784485, 0.11598309129476547, 0.0036372803151607513, -0.35785284638404846, -0.2264147251844406, 0.3197668492794037, 0.06142362952232361, -0.016961824148893356, 0.21008090674877167, 0.10190509259700775, 0.3668269217014313, 0.1442471593618393, -0.1240823045372963, 0.2658695578575134, -0.2794024348258972, 0.36479949951171875, 0.2943277657032013, -0.23167656362056732, 0.23993892967700958, 0.4709620475769043, 0.036392297595739365, -0.3138982653617859, 0.6545711755752563, -0.10813399404287338, 0.1821468323469162, -0.14426648616790771, 0.2243989109992981, 0.21173331141471863, -0.260090172290802, 0.17724287509918213, -0.09128275513648987, -0.17147275805473328, 0.1729365587234497, 0.13040438294410706, 0.7063388228416443, -0.38241609930992126, 0.04149625077843666, -0.46911489963531494, 0.12096785008907318, -0.23603945970535278, -0.17099320888519287, 0.020411405712366104, -0.24157321453094482, -0.21580027043819427, 0.1306328922510147, -0.050647567957639694, -0.3203928470611572, 0.10280784964561462, -0.03676075488328934, -0.27310723066329956, -0.072446808218956, 0.0320192389190197, 0.046945661306381226, 0.16229987144470215, -0.258171021938324, 0.24605780839920044, 0.004004679620265961, 0.17180955410003662, 0.17435222864151, 0.17056703567504883, 0.20260180532932281, -0.03709808737039566, 0.14604198932647705, -0.09187714010477066, -0.20513485372066498, -0.09734691679477692, 0.1472800374031067, 0.2929304838180542, 0.22018013894557953, -0.13314935564994812, 0.10870508849620819, 0.04749105125665665, -0.12143835425376892, 0.10993941128253937, 0.29433903098106384, 0.07012724131345749, -0.21710939705371857, 0.36033621430397034, -0.9142708778381348, 0.0055611878633499146, -0.36579465866088867, 0.07068841904401779, -0.17892390489578247, -0.019049547612667084, -0.027568597346544266, -0.09672638773918152, -0.06604592502117157, -0.3752630949020386, 0.04069199040532112, -0.002171892672777176, 0.46854639053344727, 0.14632472395896912, -0.03909885883331299, -0.1462782770395279, -0.47941499948501587, -0.4916301965713501, 0.1928626149892807, 0.11453850567340851, 0.27580171823501587, -0.11955216526985168, 0.12516342103481293, 0.04710043594241142, 0.0639990046620369, 0.3549174666404724, -0.16545775532722473, -0.06888607144355774, 0.2464239001274109, -0.2877248227596283, -0.08453473448753357, 0.049186915159225464, 0.34357547760009766, 0.10625001788139343, -0.14089810848236084, 0.20481541752815247, 0.022090226411819458, -0.23713842034339905, -0.22736167907714844, -0.07112625986337662, -0.04841730743646622, -0.27046361565589905, 0.2856559157371521, -0.08072418719530106, 0.39436811208724976, -0.09068624675273895, -0.2170795500278473, -0.10302463173866272, -0.36729997396469116, -0.10371271520853043, 0.61443692445755, 0.1530035436153412, 0.2554057836532593, -0.03542952239513397, -0.47801342606544495, -0.07526495307683945, 0.07629778236150742, 0.014606576412916183, 0.4272100031375885, -0.4044741988182068, -0.05305401235818863, -0.11264258623123169, 0.06637749075889587, 0.27590832114219666, 0.1921350359916687, -0.1082560122013092, 0.07545951753854752, -0.23825903236865997, -0.28166651725769043, 0.5607575178146362, -0.18726828694343567, -0.018377061933279037, -0.11489832401275635, 0.12061992287635803, 0.20083466172218323, -0.5466824769973755, -0.6681917309761047, 0.05086012929677963, 0.4248983561992645, 0.026872923597693443, 0.11808517575263977, 0.45451819896698, -0.22284214198589325, -0.010143142193555832, -0.028456006199121475, 0.7592360973358154, 0.012008842080831528, -0.07181639224290848, 0.3527517318725586, -0.20073196291923523 ]
https://github.com/huggingface/datasets/issues/3954
The dataset preview is not available for tdklab/Hebrew_Squad_v1.1 dataset
The issue is not related to the dataset viewer but to the loading script (cc @albertvillanova @lhoestq @mariosasko) ```python >>> import datasets as ds >>> hf_token = "hf_..." # <- required because the dataset is gated >>> d = ds.load_dataset('tdklab/Hebrew_Squad_v1', use_auth_token=hf_token) ... NameError: name 'HebrewSquad' is not defined ```
## Dataset viewer issue for 'tdklab/Hebrew_Squad_v1.1' **Link:** https://huggingface.co/api/datasets/tdklab/Hebrew_Squad_v1.1?full=true The dataset preview is not available for this dataset. Am I the one who added this dataset ? Yes
49
The dataset preview is not available for tdklab/Hebrew_Squad_v1.1 dataset ## Dataset viewer issue for 'tdklab/Hebrew_Squad_v1.1' **Link:** https://huggingface.co/api/datasets/tdklab/Hebrew_Squad_v1.1?full=true The dataset preview is not available for this dataset. Am I the one who added this dataset ? Yes The issue is not related to the dataset viewer but to the loading script (cc @albertvillanova @lhoestq @mariosasko) ```python >>> import datasets as ds >>> hf_token = "hf_..." # <- required because the dataset is gated >>> d = ds.load_dataset('tdklab/Hebrew_Squad_v1', use_auth_token=hf_token) ... NameError: name 'HebrewSquad' is not defined ```
[ -0.4161965250968933, -0.17986685037612915, -0.05000681430101395, 0.22477580606937408, 0.11789792031049728, 0.14644843339920044, 0.5444727540016174, 0.27416956424713135, 0.07050414383411407, 0.35510194301605225, -0.16593210399150848, -0.046966832131147385, -0.05362793058156967, 0.051867350935935974, 0.0828283280134201, -0.0479782298207283, 0.14517676830291748, 0.13722679018974304, -0.08149313926696777, 0.08571352064609528, -0.23829203844070435, 0.21158501505851746, -0.3065705895423889, 0.14864134788513184, -0.1864604502916336, 0.0677819773554802, -0.10726416110992432, -0.09443563967943192, -0.1539865881204605, -0.5097655057907104, 0.21964600682258606, 0.05109745264053345, 0.3203545808792114, 0.3179973065853119, -0.00011867147259181365, 0.12460751831531525, 0.2639891803264618, -0.05275845527648926, -0.3945882320404053, -0.29325801134109497, 0.09228529781103134, -0.32249557971954346, 0.24204306304454803, -0.25989097356796265, -0.31276756525039673, -0.4119299352169037, 0.23632200062274933, -0.3286176919937134, 0.3663327097892761, 0.12418317049741745, 0.22803133726119995, 0.48237577080726624, 0.13751710951328278, -0.25669538974761963, -0.021472565829753876, -0.03562312573194504, -0.37362581491470337, 0.09398709237575531, 0.014920271933078766, 0.10430443286895752, 0.14494818449020386, 0.24113544821739197, 0.1534980982542038, 0.10927444696426392, 0.18889227509498596, 0.0729980543255806, -0.07494554668664932, -0.49839600920677185, 0.11252905428409576, 0.09614259004592896, 0.6637194752693176, -0.20952358841896057, -0.34187209606170654, 0.0356309711933136, 0.24373304843902588, 0.09698738902807236, 0.22046080231666565, 0.02172897756099701, -0.12533977627754211, 0.23226398229599, -0.2997303903102875, -0.1758243590593338, 0.007576934993267059, 0.21332021057605743, 0.008403874933719635, 0.16424307227134705, -0.24614930152893066, 0.2474420964717865, -0.18398158252239227, -0.004872065037488937, 0.27528101205825806, -0.18046371638774872, -0.05506226792931557, 0.387756884098053, -0.34139686822891235, -0.12931028008460999, -0.029661640524864197, 0.04293099790811539, -0.15022596716880798, 0.2504199147224426, 0.10726340115070343, 0.062041688710451126, -0.005106933414936066, 0.05139056593179703, 0.17502465844154358, 0.12917280197143555, 0.38478851318359375, 0.29391810297966003, 0.34099268913269043, 0.29414018988609314, 0.4667940139770508, 0.08362828940153122, -0.32321158051490784, -0.16712206602096558, 0.015543598681688309, -0.19130289554595947, 0.4573526382446289, -0.000024206936359405518, -0.32188481092453003, -0.03917916491627693, -0.09947961568832397, 0.0027709645219147205, -0.03132418543100357, 0.4052855968475342, -0.1035732701420784, -0.4733549952507019, 0.10238957405090332, 0.11189150810241699, -0.12181425839662552, -0.3132179081439972, -0.25490671396255493, 0.01268650870770216, 0.07069702446460724, 0.1519688367843628, 0.08867436647415161, -0.19429530203342438, 0.24959376454353333, -0.0647243782877922, 0.07865331321954727, 0.03197772055864334, -0.20049504935741425, 0.09644551575183868, -0.1522621512413025, 0.20848529040813446, 0.32875731587409973, 0.21495592594146729, 0.058534570038318634, -0.14138221740722656, 0.00607309490442276, 0.234052836894989, -0.12062153965234756, -0.0584353506565094, -0.3157462775707245, 0.08998774737119675, -0.5409632921218872, 0.014797460287809372, -0.3985837399959564, 0.3201519846916199, -0.07107184082269669, -0.13116933405399323, 0.010920032858848572, 0.06709009408950806, -0.21032366156578064, -0.17708782851696014, 0.299478679895401, 0.6654547452926636, -0.537542462348938, -0.35790765285491943, -0.04364252835512161, -0.4257737398147583, -0.11459016054868698, 0.23862668871879578, -0.23354418575763702, -0.019279442727565765, -0.3948548138141632, 0.13798671960830688, 0.3351353406906128, -0.5305598974227905, -0.588871419429779, 0.14919684827327728, -0.13093027472496033, 0.14715299010276794, 0.16584767401218414, 0.002329373499378562, 0.46587687730789185, -0.08193100988864899, -0.31385672092437744, 0.08151839673519135, 0.14265678822994232, -0.26448896527290344, -0.06761319935321808, -0.16300618648529053, 0.26512411236763, 0.1852782815694809, 0.09698054939508438, 0.2609584331512451, 0.20797842741012573, 0.12250276654958725, 0.40888193249702454, 0.2032622992992401, 0.2567213475704193, 0.15580794215202332, 0.18171927332878113, 0.022944241762161255, 0.018781092017889023, -0.31234362721443176, -0.5246238112449646, 0.10899939388036728, 0.11606939136981964, 0.21119625866413116, -0.2031724900007248, -0.22731582820415497, -0.35990288853645325, 0.05454172194004059, -0.42809292674064636, -0.1662158966064453, 0.10835133492946625, 0.22851239144802094, 0.0008229203522205353, 0.050543319433927536, 0.015284184366464615, 0.11079036444425583, -0.135089710354805, 0.13938285410404205, -0.14376530051231384, 0.21678438782691956, 0.011460037901997566, -0.023686416447162628, 0.11968649923801422, 0.07857205718755722, 0.21527829766273499, -0.37342238426208496, -0.0879538431763649, 0.38022497296333313, 0.003618235932663083, -0.05508849024772644, 0.2510712146759033, -0.1774543970823288, 0.10553550720214844, -0.3337077498435974, 0.12599945068359375, 0.021999750286340714, -0.011251128278672695, 0.044552527368068695, 0.05700698122382164, 0.3191564083099365, 0.23865553736686707, 0.03120766580104828, -0.16841402649879456, 0.07014889270067215, 0.20669272541999817, 0.15907274186611176, -0.12552043795585632, -0.20621566474437714, 0.13313469290733337, 0.11757741868495941, 0.32283714413642883, -0.17747379839420319, 0.044801391661167145, 0.021894104778766632, 0.2409331053495407, -0.27904656529426575, -0.058325618505477905, 0.04918224737048149, -0.09044293314218521, 0.03023752197623253, 0.07638438045978546, 0.049741897732019424, 0.4002772569656372, 0.036617618054151535, 0.006114248186349869, 0.004550393670797348, 0.16830511391162872, -0.031731411814689636, 0.12593808770179749, 0.0659981518983841, 0.019376929849386215, 0.14089801907539368, 0.048422347754240036, -0.08488653600215912, -0.4261251986026764, 0.06936757266521454, 0.2345769852399826, 0.2842159569263458, -0.24027274549007416, -0.025435486808419228, -0.1810731291770935, -0.10287969559431076, 0.007328983396291733, -0.20825597643852234, -0.3621988892555237, -0.1712319552898407, -0.04440326988697052, 0.05731997638940811, 0.357532799243927, 0.4174650311470032, 0.015198346227407455, 0.20261892676353455, -0.05469333380460739, 0.20828638970851898, -0.031882837414741516, 0.10652473568916321, -0.18884435296058655, 0.07114607095718384, 0.20133338868618011, -0.2966158986091614, 0.26303932070732117, -0.10111480206251144, -0.03214273229241371, -0.5437711477279663, -0.15585997700691223, 0.05892837420105934, -0.13765721023082733, 0.6657158136367798, 0.08066406100988388, 0.271271288394928, -0.12101295590400696, -0.024731289595365524, 0.10312343388795853, -0.04624433070421219, -0.3683353662490845, -0.19726252555847168, -0.19675710797309875, -0.23135533928871155, 0.036026496440172195, -0.23564434051513672, -0.6018240451812744, -0.22131764888763428, 0.2526877522468567, 0.05490446463227272, -0.06010259687900543, -0.18580834567546844, -0.06698763370513916, 0.032264284789562225, 0.04086983948945999, -0.08994541317224503, -0.33768612146377563, -0.2377551943063736, 0.42457568645477295, -0.4343360662460327, -0.391587495803833, 0.23700353503227234, 0.00742359459400177, 0.39688801765441895, -0.3447403311729431, -0.6614000201225281, -0.10086483508348465, 0.034978799521923065, 0.19185608625411987, 0.022606179118156433, -0.20414148271083832, 0.2734237313270569, -0.12852811813354492, 0.012066183611750603, -0.14140652120113373, -0.3076228201389313, -0.2236163318157196, -0.39287441968917847, 0.38076311349868774, 0.019242659211158752, 0.338750958442688, -0.09111357480287552, 0.6539969444274902, 0.4157339930534363, 0.23885521292686462, 0.2456125020980835, -0.24346590042114258, 0.34039655327796936, -0.05999482423067093, -0.40080592036247253, -0.06297382712364197, -0.13645845651626587, 0.1926894634962082, 0.3177719712257385, -0.029470983892679214, -0.10605984926223755, -0.23600980639457703, -0.13729605078697205, -0.41784122586250305, -0.21539011597633362, -0.38307976722717285, -0.08149400353431702, 0.2060188353061676, 0.16197553277015686, 0.23533537983894348, -0.2081148773431778, -0.31605300307273865, -0.005554320756345987, 0.618751049041748, 0.1576663851737976, 0.09700990468263626, -0.47328871488571167, 0.14135341346263885, -0.37043607234954834, 0.2758665680885315, -0.1474088877439499, 0.6051360368728638, -0.10601187497377396, 0.1750721037387848, 0.3661351203918457, 0.018149886280298233, 0.6329267621040344, 0.10375630855560303, -0.0004642792046070099, -0.08842070400714874, -0.20770323276519775, -0.2761440873146057, -0.14376527070999146, 0.0019506625831127167, 0.09929029643535614, -0.03046569600701332, 0.2835502326488495, -0.11979732662439346, -0.157301127910614, 0.5373983383178711, -0.12404226511716843, -0.4821055829524994, -0.3256925344467163, -0.3162442445755005, -0.1461952030658722, -0.26900777220726013, -0.23015263676643372, -0.073036327958107, 0.16186964511871338, 0.06844620406627655, 0.04891800507903099, 0.06859802454710007, -0.21916070580482483, 0.09937919676303864, 0.13491185009479523, 0.06747385859489441, 0.3324950039386749, 0.32329392433166504, 0.5260096192359924, -0.15800148248672485, 0.03254186362028122, 0.5238626003265381, 0.06090736389160156, -0.7443229556083679, 0.2881961464881897, 0.06932288408279419, 0.16853909194469452, 0.5154655575752258, -0.22282718122005463, 0.1925695389509201, 0.027089815586805344, 0.14810621738433838, -0.18420691788196564, -0.018717270344495773, 0.5763949751853943, -0.14413180947303772, -0.32258492708206177, -0.4570172131061554, 0.33812931180000305, -0.0666719526052475, -0.06720514595508575, 0.3373594582080841, 0.372302770614624, -0.10192348808050156, 0.08222348988056183, -0.20021551847457886, 0.8819053769111633, 0.012099117040634155, 0.16609081625938416, 0.35685858130455017, -0.057667482644319534, 0.2841314673423767, -0.06758107990026474, -0.05121716111898422, -0.25247523188591003, -0.18809132277965546, -0.09723905473947525, -0.0068404898047447205, 0.28345757722854614, 0.0670662447810173, 0.12885110080242157, 0.021911384537816048, 0.007706858217716217, 0.45296692848205566, -0.006737418472766876, 0.24429604411125183, -0.06297129392623901, 0.05783328786492348, -0.13918356597423553, 0.13325141370296478, -0.0721539556980133, 0.3711833655834198, -0.08379985392093658, -0.08116567134857178, -0.1580900251865387, -0.14808282256126404, -0.5062112808227539, -0.02401716634631157, -0.252389132976532, 0.2404738813638687, 0.062275730073451996, -0.2633117735385895, 0.3670318126678467, 0.44023001194000244, 0.13257324695587158, 0.13286425173282623, -0.27924880385398865, 0.283563494682312, -0.0027477145195007324, -0.13922500610351562, -0.2913805842399597, 0.20839451253414154, 0.1534203141927719, -0.07772888988256454, -0.3050299882888794, 0.23097741603851318, 0.05402268469333649, -0.10105835646390915, -0.5149478912353516, 0.0785350501537323, 0.16060608625411987, -0.465444415807724, -0.03943140432238579, -0.2994398772716522, 0.16452087461948395, -0.35738980770111084, 0.11235120892524719, 0.0012585222721099854, -0.07895888388156891, -0.2599565386772156, 0.2741844058036804, -0.2102518379688263, -0.167005255818367, 0.570563018321991, -0.010329585522413254, -0.2329726666212082, 0.6566418409347534, 0.058009687811136246, -0.29756081104278564, -0.09906519949436188, 0.18136170506477356, 0.3120861351490021, -0.34700533747673035, 0.017430638894438744, 0.10200416296720505, 0.32166242599487305, -0.0835476741194725, 0.35755789279937744, 0.2905365228652954, -0.29152369499206543, -0.08149982988834381, -0.41795405745506287, -0.14588497579097748, 0.2684919238090515, 0.014849768951535225, 0.2483142465353012, 0.02381023019552231, 0.16636060178279877, -0.008531369268894196, 0.23310329020023346, -0.24146127700805664, -0.04536375403404236, 0.032973289489746094, 0.024867577478289604, 0.31799137592315674, 0.07099932432174683, 0.2138613909482956, 0.010273393243551254, 0.11858204007148743, 0.13234364986419678, -0.33452725410461426, -0.13260996341705322, -0.10790705680847168, 0.18447348475456238, 0.10936970263719559, -0.2819366157054901, -0.1285199373960495, -0.30842047929763794, 0.030413445085287094, 0.0013228976167738438, 0.29747262597084045, 0.25495341420173645, 0.1987547129392624, 0.10142084211111069, 0.24552905559539795, -0.11549993604421616, -0.0060034580528736115, 0.08748120814561844, 0.04167536273598671, 0.44215959310531616, 0.09187892824411392, 0.17166166007518768, -0.006959507241845131, 0.06044469773769379, -0.24983079731464386, 0.09776808321475983, 0.1436326503753662, 0.251331090927124, 0.01767253875732422, -0.3435841202735901, 0.3474820852279663, -0.0439952090382576, 0.32287198305130005, 0.2668584883213043, -0.3956029415130615, 0.003527980297803879, 0.16671952605247498, 0.044486552476882935, -0.42758092284202576, -0.13409380614757538, 0.2340162843465805, 0.06362658739089966, 0.008844967931509018, 0.18741311132907867, 0.02157485857605934, 0.32091566920280457, 0.07663334161043167, -0.04703649878501892, 0.29543188214302063, -0.11376339197158813, 0.2909412384033203, 0.3897058367729187, -0.25833719968795776, 0.25137513875961304, 0.44015997648239136, 0.09439712762832642, -0.32738196849823, 0.760737955570221, -0.2050258219242096, 0.18999697268009186, -0.24865442514419556, 0.25145676732063293, 0.10699589550495148, -0.39267969131469727, 0.16272610425949097, -0.19690421223640442, -0.2724963426589966, 0.047743767499923706, 0.022422850131988525, 0.5111361145973206, -0.22423473000526428, 0.09360336512327194, -0.3584038019180298, 0.16253076493740082, -0.22118467092514038, -0.13220427930355072, 0.10647140443325043, -0.158951073884964, -0.18844783306121826, 0.07927189767360687, -0.0021443478763103485, -0.41390228271484375, -0.07046598196029663, 0.05782017111778259, -0.31129342317581177, 0.004385193809866905, 0.14460545778274536, 0.10807923972606659, 0.0828465148806572, -0.2540680170059204, 0.247303768992424, -0.025176435708999634, 0.2907993197441101, 0.2029043585062027, 0.13483639061450958, 0.2694588303565979, 0.06515148282051086, 0.1666298359632492, -0.10655826330184937, -0.17975810170173645, -0.08192787319421768, 0.17033064365386963, 0.36166954040527344, 0.15945523977279663, 0.1262759417295456, 0.15989848971366882, 0.0858357697725296, -0.10681457072496414, 0.08859770745038986, 0.37213829159736633, -0.10449972748756409, -0.31433895230293274, 0.4397401809692383, -0.8138998746871948, -0.02834979072213173, -0.2629633843898773, 0.07757514715194702, -0.1874728500843048, -0.08457331359386444, 0.08206580579280853, 0.035846687853336334, 0.05078435689210892, -0.44744017720222473, 0.04699868708848953, -0.09230528771877289, 0.394645094871521, 0.10174904763698578, 0.12135015428066254, -0.17552624642848969, -0.30147579312324524, -0.5742548704147339, 0.25390729308128357, 0.04720618203282356, -0.05445341020822525, 0.043628521263599396, -0.01678602024912834, -0.02603987604379654, 0.1468375027179718, 0.2543390393257141, 0.04304974153637886, 0.006760994903743267, 0.3453989028930664, -0.1424141377210617, -0.15531814098358154, -0.03780242055654526, 0.32344135642051697, -0.02647056244313717, -0.30193760991096497, 0.2565014958381653, -0.12772983312606812, -0.17859551310539246, -0.1887483447790146, -0.022809434682130814, 0.13040274381637573, -0.19283385574817657, 0.4372803866863251, -0.17133240401744843, 0.6229848861694336, -0.08392763882875443, -0.0553521066904068, -0.23534342646598816, -0.3061167597770691, -0.13796550035476685, 0.5692184567451477, 0.11288732290267944, 0.21608304977416992, -0.06162998825311661, -0.4521503448486328, -0.06958421319723129, 0.1791698932647705, 0.007886510342359543, 0.19334420561790466, -0.3521145284175873, 0.01544053666293621, -0.22333869338035583, 0.051343027502298355, 0.30283209681510925, 0.08992135524749756, -0.14120714366436005, 0.14013202488422394, -0.1846519112586975, -0.2741224765777588, 0.6016005277633667, -0.3442503809928894, -0.04421591758728027, -0.17740410566329956, 0.13074983656406403, 0.17487983405590057, -0.5128006935119629, -0.5787436962127686, 0.16044890880584717, 0.4764450490474701, -0.05791490525007248, 0.12355770170688629, 0.5039460062980652, -0.25686103105545044, 0.057102005928754807, -0.00816207006573677, 0.642257571220398, -0.08572553843259811, -0.10673732310533524, 0.262857049703598, -0.2937576174736023 ]
https://github.com/huggingface/datasets/issues/3954
The dataset preview is not available for tdklab/Hebrew_Squad_v1.1 dataset
Yes indeed there is an error in [Hebrew_Squad_v1.py:L40](https://huggingface.co/datasets/tdklab/Hebrew_Squad_v1/blob/main/Hebrew_Squad_v1.py#L40) Here is the fix @MatanBenChorin : ```diff - HebrewSquad( + HebrewSquadConfig( ```
## Dataset viewer issue for 'tdklab/Hebrew_Squad_v1.1' **Link:** https://huggingface.co/api/datasets/tdklab/Hebrew_Squad_v1.1?full=true The dataset preview is not available for this dataset. Am I the one who added this dataset ? Yes
20
The dataset preview is not available for tdklab/Hebrew_Squad_v1.1 dataset ## Dataset viewer issue for 'tdklab/Hebrew_Squad_v1.1' **Link:** https://huggingface.co/api/datasets/tdklab/Hebrew_Squad_v1.1?full=true The dataset preview is not available for this dataset. Am I the one who added this dataset ? Yes Yes indeed there is an error in [Hebrew_Squad_v1.py:L40](https://huggingface.co/datasets/tdklab/Hebrew_Squad_v1/blob/main/Hebrew_Squad_v1.py#L40) Here is the fix @MatanBenChorin : ```diff - HebrewSquad( + HebrewSquadConfig( ```
[ -0.4104544222354889, -0.3167882561683655, -0.049464982002973557, 0.2509031891822815, 0.21940378844738007, 0.10138290375471115, 0.21513062715530396, 0.2923049330711365, -0.16139250993728638, 0.3173694610595703, -0.19913099706172943, -0.0747283473610878, 0.02830890379846096, 0.03329286724328995, -0.010685126297175884, -0.0282151997089386, 0.058794375509023666, 0.13889837265014648, -0.015767693519592285, 0.03082261234521866, -0.2528807520866394, 0.27184268832206726, -0.2702291011810303, 0.12909379601478577, -0.18202200531959534, -0.04795048385858536, -0.05334138497710228, 0.03999301791191101, -0.2499186247587204, -0.47735321521759033, 0.3117411732673645, -0.018027450889348984, 0.18091601133346558, 0.2126728594303131, -0.00011556709068827331, 0.13006825745105743, 0.223594531416893, -0.09680067002773285, -0.31563058495521545, -0.24445031583309174, 0.23276808857917786, -0.2844879925251007, 0.11515066772699356, -0.1482873260974884, -0.3162746727466583, -0.2742227613925934, 0.13745839893817902, -0.24746336042881012, 0.4535282850265503, 0.18987375497817993, 0.24512386322021484, 0.4832462966442108, 0.14537617564201355, -0.3252190351486206, 0.12373986840248108, -0.07772812247276306, -0.369699090719223, 0.044968340545892715, 0.17332807183265686, 0.10915811359882355, 0.2620808482170105, 0.4223320186138153, 0.1375335454940796, 0.04013773426413536, 0.05631023645401001, 0.09694994986057281, -0.01787801831960678, -0.4226773977279663, 0.17743894457817078, 0.06744250655174255, 0.5455462336540222, -0.3286963999271393, -0.31516239047050476, 0.07387369126081467, 0.29044437408447266, 0.060678109526634216, 0.1446698009967804, 0.01271403580904007, -0.16651563346385956, 0.21873719990253448, -0.19369973242282867, -0.25863251090049744, 0.05831091105937958, 0.21265779435634613, 0.10100843012332916, -0.08539718389511108, -0.2112000584602356, 0.1032787635922432, -0.0837666243314743, 0.08778894692659378, 0.07659849524497986, -0.02692113071680069, -0.1821431815624237, 0.4297845661640167, -0.27356526255607605, -0.27907413244247437, -0.029475554823875427, 0.027715135365724564, -0.07081052660942078, 0.2196936011314392, 0.2008494734764099, 0.08619295060634613, -0.17510530352592468, 0.10288693755865097, 0.16577844321727753, 0.20449890196323395, 0.440681129693985, 0.2926551103591919, 0.22192466259002686, 0.24286073446273804, 0.4222410321235657, 0.02166433073580265, -0.09674496203660965, -0.3091510832309723, -0.2062702178955078, -0.09589235484600067, 0.3893689513206482, -0.08627670258283615, -0.38589826226234436, 0.01890617236495018, -0.10574392974376678, -0.0019274563528597355, 0.0112633490934968, 0.41854968667030334, -0.009112509898841381, -0.4399210810661316, 0.093793123960495, 0.16215376555919647, -0.1756313145160675, -0.3005019426345825, -0.27180442214012146, 0.12286239862442017, 0.08653944730758667, 0.09599395096302032, 0.020049970597028732, -0.2875140607357025, 0.17393840849399567, 0.04301238805055618, 0.267967164516449, 0.056399643421173096, -0.17873036861419678, 0.055789586156606674, -0.10293563455343246, 0.08289238065481186, 0.11348883807659149, 0.21133315563201904, 0.12205033004283905, -0.06697884202003479, -0.019121132791042328, 0.1667264997959137, -0.11031540483236313, -0.1460624635219574, -0.3124561905860901, 0.11103013902902603, -0.36054229736328125, 0.05905352532863617, -0.23121514916419983, 0.3268050253391266, -0.16638273000717163, -0.33276739716529846, 0.09195344895124435, 0.04885546863079071, -0.1762460470199585, -0.22673331201076508, 0.36144208908081055, 0.5884124040603638, -0.5333829522132874, -0.38453906774520874, 0.1264025866985321, -0.40031805634498596, -0.05277610570192337, 0.35266488790512085, -0.22774027287960052, -0.13398519158363342, -0.33047419786453247, 0.03952819108963013, 0.3140372335910797, -0.5978006720542908, -0.749413013458252, 0.12056608498096466, -0.12434232234954834, 0.07858417928218842, 0.03411766141653061, 0.1800994873046875, 0.3590036928653717, -0.04201469197869301, -0.26734763383865356, 0.02942323312163353, 0.13251815736293793, -0.22034397721290588, -0.3033579885959625, -0.14732378721237183, 0.28767964243888855, 0.13759906589984894, -0.028115060180425644, 0.11613386124372482, 0.19291901588439941, 0.12993460893630981, 0.40462884306907654, 0.21051755547523499, 0.18771910667419434, 0.09243139624595642, 0.32916972041130066, 0.03373613953590393, 0.05729949101805687, -0.3533325493335724, -0.5480643510818481, 0.10969274491071701, -0.07462352514266968, 0.3029616177082062, -0.2580952048301697, -0.22854629158973694, -0.3814336359500885, 0.010369719937443733, -0.4808438718318939, -0.36683306097984314, 0.16898879408836365, 0.013984397053718567, 0.12777161598205566, 0.09115011990070343, 0.07435908913612366, 0.0023550838232040405, -0.14112618565559387, 0.18971003592014313, -0.12166009843349457, 0.28928065299987793, -0.1402536928653717, 0.006230553612112999, 0.07792515307664871, 0.18110957741737366, 0.054184023290872574, -0.37525877356529236, -0.10600821673870087, 0.42171767354011536, -0.07196061313152313, 0.08391855657100677, 0.40718579292297363, -0.22291429340839386, 0.15482591092586517, -0.35785973072052, 0.1049768328666687, 0.03988896310329437, -0.08595006167888641, 0.04466976970434189, 0.06885495781898499, 0.4270278811454773, 0.22199782729148865, 0.054904960095882416, -0.19823099672794342, 0.12764719128608704, 0.21635307371616364, 0.2245824635028839, -0.0856604054570198, -0.24271142482757568, 0.1721584051847458, 0.2913440465927124, 0.44469839334487915, -0.20064151287078857, 0.009724974632263184, 0.013689599931240082, 0.3230075240135193, -0.1573808342218399, 0.018575046211481094, 0.0062602199614048, -0.06485400348901749, 0.003686416894197464, 0.01831536740064621, -0.01875470206141472, 0.27889367938041687, 0.058001115918159485, -0.12877896428108215, 0.07673286646604538, 0.0464693121612072, 0.013029797002673149, 0.15398302674293518, -0.02123481035232544, 0.030923498794436455, 0.1526678502559662, 0.09719797968864441, 0.04090045019984245, -0.49962490797042847, 0.18858234584331512, 0.0193627942353487, 0.28897109627723694, -0.09190824627876282, -0.13775180280208588, -0.11666614562273026, -0.010169696062803268, -0.11851078271865845, -0.3591274917125702, -0.5012978911399841, -0.16956008970737457, 0.23272188007831573, -0.18940822780132294, 0.30075642466545105, 0.3986409306526184, 0.18646913766860962, 0.23294511437416077, -0.027795465663075447, 0.18215160071849823, -0.11031544208526611, 0.0181760061532259, -0.2004801630973816, 0.09287969768047333, 0.21403715014457703, -0.28009602427482605, 0.2968480587005615, -0.10913696140050888, -0.05577762424945831, -0.39555370807647705, -0.2613515555858612, 0.12881287932395935, -0.1287562996149063, 0.5433505773544312, 0.14106638729572296, 0.3055943250656128, -0.09619715809822083, -0.030220594257116318, 0.3391645848751068, -0.08892370760440826, -0.39984869956970215, -0.12291280925273895, -0.12174119800329208, -0.11066842824220657, -0.0004879385232925415, -0.33897507190704346, -0.5372870564460754, -0.2051832675933838, 0.2016645222902298, 0.04018562659621239, -0.09049586951732635, -0.3048397898674011, 0.06809640675783157, 0.010489395819604397, -0.08375164866447449, -0.10007543861865997, -0.3576006293296814, -0.19057999551296234, 0.2431105077266693, -0.3466063141822815, -0.41835758090019226, 0.22032546997070312, 0.2165912538766861, 0.36288905143737793, -0.27283626794815063, -0.5204874277114868, -0.3083386719226837, 0.014948689378798008, 0.06645028293132782, -0.05951613932847977, -0.08450759202241898, 0.3397866487503052, -0.09636971354484558, -0.03831755369901657, -0.09791785478591919, -0.2349729984998703, -0.21486300230026245, -0.3693751096725464, 0.4491565227508545, -0.18168208003044128, 0.27867043018341064, 0.042718734592199326, 0.6374411582946777, 0.5633060336112976, 0.16598159074783325, 0.10028129816055298, -0.2938014566898346, 0.43624839186668396, -0.1437055468559265, -0.42223700881004333, -0.040587663650512695, -0.11604443192481995, 0.1446581482887268, 0.3227176070213318, 0.022920772433280945, 0.11422313004732132, -0.25045570731163025, -0.04863721877336502, -0.408113032579422, -0.24778802692890167, -0.31251540780067444, -0.11225266754627228, 0.12013062089681625, 0.11027723550796509, 0.22657829523086548, -0.2271260917186737, -0.15403950214385986, 0.08420093357563019, 0.502284824848175, 0.0001714751124382019, 0.16285237669944763, -0.46040624380111694, -0.0054562631994485855, -0.37178555130958557, 0.3905860185623169, -0.023146145045757294, 0.4488961398601532, -0.06096348538994789, 0.20295500755310059, 0.332477331161499, 0.009754689410328865, 0.673807680606842, 0.059249915182590485, -0.155618816614151, -0.1669999063014984, -0.17683403193950653, -0.26147037744522095, -0.0800781324505806, -0.15784689784049988, 0.19138500094413757, 0.042271632701158524, 0.2745199203491211, -0.19107142090797424, -0.09614670276641846, 0.40041089057922363, -0.18410684168338776, -0.3963927626609802, -0.20214810967445374, -0.27736422419548035, -0.1504271924495697, -0.3853239119052887, -0.11617473512887955, -0.05657586455345154, 0.11155487596988678, 0.08682587742805481, 0.052435439079999924, 0.2637263238430023, -0.22832611203193665, 0.13193531334400177, 0.10772566497325897, 0.16768226027488708, 0.2539481520652771, 0.12997038662433624, 0.48851102590560913, -0.1317790150642395, 0.14748863875865936, 0.5667516589164734, 0.046906620264053345, -0.6731203198432922, -0.018125012516975403, -0.021259069442749023, 0.14744213223457336, 0.517038106918335, -0.17095531523227692, 0.19193390011787415, -0.19424860179424286, 0.11148485541343689, -0.12345463782548904, -0.15007641911506653, 0.6807950139045715, -0.1150590181350708, -0.17638851702213287, -0.30483072996139526, 0.3850845992565155, -0.17372789978981018, -0.043319571763277054, 0.3330560326576233, 0.31825870275497437, -0.021759144961833954, 0.1243143230676651, -0.10502525418996811, 0.9112209677696228, 0.12014876306056976, 0.20835325121879578, 0.31339243054389954, -0.04708356782793999, 0.4444885551929474, -0.006071675568819046, 0.01567165181040764, -0.26125162839889526, -0.1535354107618332, -0.03752443566918373, -0.031851381063461304, 0.19047045707702637, 0.07779282331466675, 0.050340015441179276, -0.045785244554281235, -0.055988483130931854, 0.4559718072414398, -0.08172891288995743, 0.08638601005077362, -0.17818932235240936, 0.1893841177225113, -0.2739073634147644, 0.15432339906692505, 0.02849547751247883, 0.41496047377586365, -0.12771734595298767, -0.13617217540740967, -0.2409735471010208, -0.2520519196987152, -0.5719163417816162, 0.017995480448007584, -0.43650975823402405, 0.27142196893692017, 0.1495901197195053, -0.2568647861480713, 0.3810407817363739, 0.5281833410263062, 0.2874056100845337, 0.08282947540283203, -0.3023018538951874, 0.1877737045288086, 0.05855308473110199, -0.18152131140232086, -0.19879628717899323, 0.18134552240371704, 0.036051616072654724, -0.11433336138725281, -0.28271955251693726, 0.24689438939094543, 0.03877987712621689, -0.04068256914615631, -0.46557244658470154, -0.0039848461747169495, 0.09509031474590302, -0.39366188645362854, -0.0806330144405365, -0.22575616836547852, 0.04148058965802193, -0.39104893803596497, 0.14466756582260132, 0.04153471440076828, -0.10211313515901566, -0.21324783563613892, 0.170693039894104, -0.11359798908233643, -0.0431332103908062, 0.43463701009750366, -0.012797020375728607, -0.3840823173522949, 0.6547750234603882, 0.07004864513874054, -0.27807316184043884, -0.15807661414146423, 0.10882002860307693, 0.30393287539482117, -0.3954709768295288, 0.11828074604272842, 0.13417492806911469, 0.2375950664281845, -0.042405955493450165, 0.4538889229297638, 0.360385537147522, -0.2333386242389679, -0.1462569236755371, -0.3861100673675537, -0.0802718997001648, 0.3859264850616455, 0.14297637343406677, 0.28669217228889465, -0.018444817513227463, 0.36398112773895264, 0.08077484369277954, 0.36360663175582886, -0.29166948795318604, 0.12382234632968903, 0.065846286714077, 0.005511561408638954, 0.15458600223064423, -0.00324321910738945, 0.3070404529571533, 0.03183022513985634, 0.07194507867097855, 0.23437397181987762, -0.43066051602363586, -0.15251412987709045, 0.009448543190956116, 0.16272799670696259, 0.05820748582482338, -0.1610640585422516, -0.10207197070121765, -0.17405498027801514, 0.08787579834461212, 0.029450489208102226, 0.24204164743423462, 0.2974667549133301, 0.17037346959114075, 0.18230567872524261, 0.3521997928619385, -0.09408549219369888, -0.0008826404809951782, 0.05329100787639618, 0.05541025474667549, 0.3725818991661072, 0.16161511838436127, 0.1482374370098114, -0.09217742830514908, -0.02918817847967148, -0.04693109542131424, 0.17142485082149506, 0.17939479649066925, 0.3713226616382599, -0.015746504068374634, -0.23269496858119965, 0.31951904296875, 0.0036609224043786526, 0.40727099776268005, 0.2284107357263565, -0.4033735394477844, 0.04511220008134842, 0.05030224472284317, 0.0819026380777359, -0.5254381895065308, -0.15589670836925507, 0.24412502348423004, -0.06991912424564362, 0.06231797859072685, 0.13066202402114868, 0.10931798815727234, 0.39165207743644714, 0.21593770384788513, -0.09350262582302094, 0.257583886384964, -0.3769111633300781, 0.3267020583152771, 0.35983407497406006, -0.25746557116508484, 0.12161707878112793, 0.3474390208721161, -0.05535852536559105, -0.199672132730484, 0.6099568009376526, -0.24692684412002563, 0.19482411444187164, -0.2389717698097229, 0.11994847655296326, 0.2054174840450287, -0.272641658782959, 0.17023517191410065, 0.03172312676906586, -0.12667050957679749, 0.019180960953235626, 0.021028518676757812, 0.7551050782203674, -0.25309452414512634, 0.1032058373093605, -0.27792832255363464, 0.153335839509964, -0.22035449743270874, -0.1208319365978241, 0.042638830840587616, -0.26253074407577515, -0.272356778383255, 0.013020306825637817, -0.08209611475467682, -0.2990114688873291, -0.0076622143387794495, -0.032393090426921844, -0.26020485162734985, 0.05492395907640457, 0.11447566002607346, 0.08389727771282196, 0.0019242838025093079, -0.21291838586330414, 0.2603435218334198, 0.010385073721408844, 0.21025648713111877, 0.22267109155654907, 0.17898842692375183, 0.33332210779190063, 0.10411980748176575, 0.11238682270050049, -0.08142638206481934, -0.15982520580291748, -0.006061982363462448, 0.13097016513347626, 0.2446332424879074, 0.16018728911876678, -0.10256022214889526, 0.19560277462005615, 0.12173688411712646, -0.1704569309949875, -0.03620540723204613, 0.17573989927768707, -0.018122617155313492, -0.1954323649406433, 0.4052530825138092, -0.86130690574646, -0.08280149847269058, -0.36281582713127136, 0.07283838838338852, -0.167018324136734, -0.12344363331794739, -0.11555670201778412, -0.03389233350753784, 0.010164391249418259, -0.36478307843208313, 0.09442418813705444, -0.0008376576006412506, 0.43069443106651306, 0.2508542537689209, 0.03992536664009094, -0.15612809360027313, -0.4195435047149658, -0.5986443758010864, 0.31113407015800476, 0.14154957234859467, 0.19808003306388855, -0.022026151418685913, 0.09857106953859329, 0.07947924733161926, 0.18362244963645935, 0.4247410297393799, 0.014932220801711082, -0.09400021284818649, 0.1646972894668579, -0.17158085107803345, -0.03426527604460716, -0.016628950834274292, 0.1539573073387146, 0.1306527853012085, -0.21257391571998596, 0.22911018133163452, 0.052252355962991714, -0.11569266766309738, -0.18876762688159943, 0.06631706655025482, -0.07603830099105835, -0.32963335514068604, 0.27237480878829956, 0.03885878622531891, 0.44675201177597046, -0.12251220643520355, -0.17828938364982605, -0.09364497661590576, -0.33137404918670654, -0.09955093264579773, 0.5298054814338684, 0.12329955399036407, 0.29620012640953064, -0.086788609623909, -0.5480320453643799, -0.12710018455982208, 0.10855185240507126, 0.13277168571949005, 0.22010813653469086, -0.4738495647907257, -0.020417731255292892, -0.1430409848690033, -0.009069210849702358, 0.22231605648994446, 0.18672722578048706, -0.14033731818199158, 0.16012197732925415, -0.26243501901626587, -0.3679657280445099, 0.5288371443748474, -0.1248370036482811, 0.011382516473531723, -0.06276867538690567, 0.15809202194213867, 0.19612711668014526, -0.5072523355484009, -0.6277360916137695, 0.12249297648668289, 0.4021446406841278, 0.06933996081352234, 0.10419754683971405, 0.3906591534614563, -0.3111686706542969, -0.050412822514772415, 0.056110087782144547, 0.6638244390487671, 0.0055202096700668335, -0.023339448496699333, 0.33750292658805847, -0.31408655643463135 ]
https://github.com/huggingface/datasets/issues/3952
Checksum error for glue sst2, stsb, rte etc datasets
Hi, @ravindra-ut. I'm sorry but I can't reproduce your problem: ```python In [1]: from datasets import load_dataset In [2]: ds = load_dataset("glue", "sst2") Downloading builder script: 28.8kB [00:00, 11.6MB/s] Downloading metadata: 28.7kB [00:00, 12.9MB/s] Downloading and preparing dataset glue/sst2 (download: 7.09 MiB, generated: 4.81 MiB, post-processed: Unknown size, total: 11.90 MiB) to .../.cache/huggingface/datasets/glue/sst2/1.0.0/dacbe3125aa31d7f70367a07a8a9e72a5a0bfeb5fc42e75c9db75b96da6053ad... Downloading data: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 7.44M/7.44M [00:01<00:00, 5.82MB/s] Dataset glue downloaded and prepared to .../.cache/huggingface/datasets/glue/sst2/1.0.0/dacbe3125aa31d7f70367a07a8a9e72a5a0bfeb5fc42e75c9db75b96da6053ad. Subsequent calls will reuse this data. 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00, 895.96it/s] In [3]: ds Out[2]: DatasetDict({ train: Dataset({ features: ['sentence', 'label', 'idx'], num_rows: 67349 }) validation: Dataset({ features: ['sentence', 'label', 'idx'], num_rows: 872 }) test: Dataset({ features: ['sentence', 'label', 'idx'], num_rows: 1821 }) }) ``` Moreover, I see in your traceback that your error was for an URL at https://firebasestorage.googleapis.com However, the URLs were updated on Sep 16, 2020 (`datasets` version 1.0.2) to https://dl.fbaipublicfiles.com: https://github.com/huggingface/datasets/commit/2f03041a21c03abaececb911760c3fe4f420c229 Could you please try to update `datasets` ```shell pip install -U datasets ``` and then force redownload ```python ds = load_dataset("glue", "sst2", download_mode="force_redownload") ``` to update the cache? Please, feel free to reopen this issue if the problem persists.
## Describe the bug Checksum error for glue sst2, stsb, rte etc datasets ## Steps to reproduce the bug ```python >>> nlp.load_dataset('glue', 'sst2') Downloading and preparing dataset glue/sst2 (download: 7.09 MiB, generated: 4.81 MiB, post-processed: Unknown sizetotal: 11.90 MiB) to Downloading: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 73.0/73.0 [00:00<00:00, 18.2kB/s] Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Python/3.8/lib/python/site-packages/nlp/load.py", line 548, in load_dataset builder_instance.download_and_prepare( File "/Library/Python/3.8/lib/python/site-packages/nlp/builder.py", line 462, in download_and_prepare self._download_and_prepare( File "/Library/Python/3.8/lib/python/site-packages/nlp/builder.py", line 521, in _download_and_prepare verify_checksums( File "/Library/Python/3.8/lib/python/site-packages/nlp/utils/info_utils.py", line 38, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) nlp.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FSST-2.zip?alt=media&token=aabc5f6b-e466-44a2-b9b4-cf6337f84ac8'] ``` ## Expected results dataset load should succeed without checksum error. ## Actual results ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Python/3.8/lib/python/site-packages/nlp/load.py", line 548, in load_dataset builder_instance.download_and_prepare( File "/Library/Python/3.8/lib/python/site-packages/nlp/builder.py", line 462, in download_and_prepare self._download_and_prepare( File "/Library/Python/3.8/lib/python/site-packages/nlp/builder.py", line 521, in _download_and_prepare verify_checksums( File "/Library/Python/3.8/lib/python/site-packages/nlp/utils/info_utils.py", line 38, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) nlp.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FSST-2.zip?alt=media&token=aabc5f6b-e466-44a2-b9b4-cf6337f84ac8'] ``` ## Environment info - `datasets` version: '1.18.3' - Platform: Mac OS - Python version: Python 3.8.9 - PyArrow version: '7.0.0'
179
Checksum error for glue sst2, stsb, rte etc datasets ## Describe the bug Checksum error for glue sst2, stsb, rte etc datasets ## Steps to reproduce the bug ```python >>> nlp.load_dataset('glue', 'sst2') Downloading and preparing dataset glue/sst2 (download: 7.09 MiB, generated: 4.81 MiB, post-processed: Unknown sizetotal: 11.90 MiB) to Downloading: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 73.0/73.0 [00:00<00:00, 18.2kB/s] Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Python/3.8/lib/python/site-packages/nlp/load.py", line 548, in load_dataset builder_instance.download_and_prepare( File "/Library/Python/3.8/lib/python/site-packages/nlp/builder.py", line 462, in download_and_prepare self._download_and_prepare( File "/Library/Python/3.8/lib/python/site-packages/nlp/builder.py", line 521, in _download_and_prepare verify_checksums( File "/Library/Python/3.8/lib/python/site-packages/nlp/utils/info_utils.py", line 38, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) nlp.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FSST-2.zip?alt=media&token=aabc5f6b-e466-44a2-b9b4-cf6337f84ac8'] ``` ## Expected results dataset load should succeed without checksum error. ## Actual results ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Python/3.8/lib/python/site-packages/nlp/load.py", line 548, in load_dataset builder_instance.download_and_prepare( File "/Library/Python/3.8/lib/python/site-packages/nlp/builder.py", line 462, in download_and_prepare self._download_and_prepare( File "/Library/Python/3.8/lib/python/site-packages/nlp/builder.py", line 521, in _download_and_prepare verify_checksums( File "/Library/Python/3.8/lib/python/site-packages/nlp/utils/info_utils.py", line 38, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) nlp.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://firebasestorage.googleapis.com/v0/b/mtl-sentence-representations.appspot.com/o/data%2FSST-2.zip?alt=media&token=aabc5f6b-e466-44a2-b9b4-cf6337f84ac8'] ``` ## Environment info - `datasets` version: '1.18.3' - Platform: Mac OS - Python version: Python 3.8.9 - PyArrow version: '7.0.0' Hi, @ravindra-ut. I'm sorry but I can't reproduce your problem: ```python In [1]: from datasets import load_dataset In [2]: ds = load_dataset("glue", "sst2") Downloading builder script: 28.8kB [00:00, 11.6MB/s] Downloading metadata: 28.7kB [00:00, 12.9MB/s] Downloading and preparing dataset glue/sst2 (download: 7.09 MiB, generated: 4.81 MiB, post-processed: Unknown size, total: 11.90 MiB) to .../.cache/huggingface/datasets/glue/sst2/1.0.0/dacbe3125aa31d7f70367a07a8a9e72a5a0bfeb5fc42e75c9db75b96da6053ad... Downloading data: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 7.44M/7.44M [00:01<00:00, 5.82MB/s] Dataset glue downloaded and prepared to .../.cache/huggingface/datasets/glue/sst2/1.0.0/dacbe3125aa31d7f70367a07a8a9e72a5a0bfeb5fc42e75c9db75b96da6053ad. Subsequent calls will reuse this data. 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3/3 [00:00<00:00, 895.96it/s] In [3]: ds Out[2]: DatasetDict({ train: Dataset({ features: ['sentence', 'label', 'idx'], num_rows: 67349 }) validation: Dataset({ features: ['sentence', 'label', 'idx'], num_rows: 872 }) test: Dataset({ features: ['sentence', 'label', 'idx'], num_rows: 1821 }) }) ``` Moreover, I see in your traceback that your error was for an URL at https://firebasestorage.googleapis.com However, the URLs were updated on Sep 16, 2020 (`datasets` version 1.0.2) to https://dl.fbaipublicfiles.com: https://github.com/huggingface/datasets/commit/2f03041a21c03abaececb911760c3fe4f420c229 Could you please try to update `datasets` ```shell pip install -U datasets ``` and then force redownload ```python ds = load_dataset("glue", "sst2", download_mode="force_redownload") ``` to update the cache? Please, feel free to reopen this issue if the problem persists.
[ -0.06718827039003372, 0.17871642112731934, -0.014720802195370197, 0.2622031271457672, 0.21774929761886597, -0.13403570652008057, 0.1646662950515747, 0.3809951841831207, 0.21308691799640656, -0.0059029534459114075, -0.0861569195985794, 0.06188815459609032, 0.047629885375499725, 0.21418802440166473, 0.04187203571200371, -0.04054570198059082, -0.015242129564285278, -0.05243721604347229, -0.27984440326690674, 0.16394612193107605, -0.15843632817268372, 0.3463343381881714, -0.1569361686706543, -0.1800522655248642, -0.16392354667186737, 0.09823726117610931, 0.04865134507417679, 0.16762053966522217, -0.14557918906211853, -0.30670303106307983, 0.05531659722328186, 0.04157409071922302, 0.005072237923741341, 0.288076788187027, -0.00011272165284026414, 0.07920387387275696, 0.5285395979881287, -0.10511795431375504, -0.26090431213378906, 0.15333567559719086, -0.059428151696920395, -0.2938544750213623, -0.0908590778708458, -0.27314266562461853, 0.038681671023368835, 0.27413076162338257, -0.05766736716032028, -0.1645519733428955, -0.020789042115211487, 0.15857526659965515, 0.2541365325450897, 0.5122368335723877, 0.28580227494239807, 0.2648349106311798, 0.4789223372936249, -0.46347564458847046, -0.0669463574886322, 0.4398515522480011, 0.16934651136398315, -0.1131620705127716, -0.06959975510835648, 0.21995076537132263, -0.20754282176494598, 0.01657574437558651, -0.017302289605140686, -0.08787038922309875, -0.0883626714348793, -0.12815837562084198, -0.03808572143316269, 0.2778961956501007, 0.18496406078338623, -0.41589757800102234, -0.3692348301410675, -0.18441711366176605, -0.008718489669263363, 0.2744036316871643, 0.39938414096832275, 0.40508270263671875, -0.05873553827404976, -0.05699029192328453, -0.23487044870853424, 0.2480698525905609, 0.17884500324726105, 0.007956583052873611, 0.18660667538642883, 0.16268935799598694, 0.05394488573074341, 0.029224328696727753, 0.10872182250022888, -0.18443283438682556, -0.2954382002353668, -0.09067137539386749, -0.2178560495376587, 0.01537820603698492, -0.5871677994728088, -0.1529460847377777, 0.06502164155244827, 0.36872878670692444, 0.12721672654151917, 0.3131500482559204, 0.05004333704710007, 0.03766690567135811, 0.062028590589761734, 0.08874465525150299, -0.048186298459768295, 0.1607341319322586, 0.02328404411673546, 0.09932070225477219, 0.32884305715560913, 0.19687055051326752, -0.06178601458668709, 0.08088166266679764, 0.05598944425582886, -0.23741202056407928, 0.0807485431432724, 0.1429014503955841, 0.1524633914232254, -0.28705883026123047, -0.46710333228111267, 0.2998577952384949, 0.021679751574993134, 0.049287937581539154, 0.09849165380001068, 0.19674313068389893, -0.3022459149360657, 0.005960442125797272, 0.17822782695293427, 0.029693597927689552, -0.17227678000926971, -0.10473892837762833, -0.1682981252670288, 0.1819140464067459, -0.19956445693969727, -0.09427706897258759, 0.2441408485174179, -0.3175603449344635, 0.30010971426963806, -0.09267439693212509, -0.0644674301147461, -0.0700128972530365, 0.005962522700428963, -0.2478691190481186, -0.03367023915052414, 0.29520583152770996, -0.06100933998823166, 0.05945000797510147, 0.024509983137249947, -0.12387923151254654, -0.06529228389263153, -0.03668297082185745, -0.2259286344051361, -0.10594810545444489, -0.42805933952331543, 0.21238505840301514, -0.5210893154144287, 0.018712392076849937, -0.03742580860853195, -0.34636738896369934, 0.28598883748054504, -0.15371644496917725, 0.14755168557167053, -0.20933270454406738, -0.3316100537776947, -0.355206161737442, 0.160910502076149, 0.2788505554199219, -0.11644895374774933, -0.009781282395124435, -0.03601273149251938, -0.32001352310180664, 0.18613678216934204, 0.2783738970756531, 0.21532563865184784, 0.24644023180007935, -0.3957540690898895, 0.1882578283548355, 0.21931681036949158, -0.26745161414146423, -0.5852253437042236, 0.2623682916164398, 0.06791508197784424, 0.06318382173776627, 0.04591021314263344, 0.08693763613700867, 0.04102107882499695, -0.20047585666179657, 0.1557481586933136, 0.3058222532272339, 0.06429910659790039, 0.3108570873737335, -0.5511219501495361, -0.22604209184646606, 0.22756893932819366, 0.1600196361541748, -0.1308973878622055, -0.16574347019195557, 0.2566594183444977, 0.12168184667825699, 0.09841708838939667, 0.1289340704679489, 0.03049515187740326, 0.17824344336986542, 0.2857556939125061, -0.2077765315771103, 0.06703346222639084, -0.4600887596607208, -0.47180819511413574, 0.2749313414096832, -0.20388555526733398, 0.23276206851005554, -0.18574146926403046, -0.018684085458517075, -0.3012114465236664, -0.1335269808769226, -0.02251160517334938, -0.07257817685604095, 0.22803634405136108, 0.2757355570793152, 0.21999511122703552, 0.12392346560955048, -0.031460974365472794, 0.3188430964946747, -0.20361113548278809, 0.05968958139419556, -0.1580875813961029, 0.5122647285461426, -0.06267945468425751, -0.3088287115097046, 0.1730993688106537, 0.3362632691860199, 0.020682964473962784, -0.056737907230854034, -0.25375041365623474, 0.6166085600852966, 0.05165758356451988, 0.07431139051914215, -0.08704539388418198, 0.13467803597450256, 0.020300691947340965, -0.24077673256397247, -0.020223500207066536, 0.2986130118370056, 0.10021034628152847, -0.010484248399734497, 0.16520267724990845, 0.24397791922092438, -0.27893325686454773, -0.045898161828517914, 0.07112297415733337, 0.013481291010975838, 0.12654328346252441, -0.31250572204589844, -0.19151359796524048, -0.27655449509620667, 0.29066333174705505, 0.14259956777095795, 0.1591896265745163, 0.15453918278217316, 0.0036101341247558594, 0.01355288177728653, 0.517104983329773, 0.04301080480217934, 0.18554113805294037, -0.010092388838529587, 0.048035889863967896, -0.012797403149306774, 0.06185350567102432, 0.48494264483451843, 0.40157562494277954, 0.0660560205578804, 0.11227048933506012, 0.15252099931240082, -0.18180780112743378, -0.02663048729300499, 0.14433103799819946, -0.03863593190908432, -0.05555151030421257, 0.4007842540740967, 0.12367115914821625, 0.15138721466064453, -0.20846134424209595, 0.06846188008785248, 0.035140641033649445, 0.20233696699142456, -0.44112512469291687, -0.2767030596733093, -0.31051012873649597, -0.44151315093040466, -0.3549080789089203, 0.13767048716545105, -0.333047479391098, -0.3065844774246216, -0.04261523485183716, 0.10298754274845123, -0.24905164539813995, 0.09091702103614807, -0.40901198983192444, -0.008650600910186768, 0.25107672810554504, -0.22550001740455627, 0.2640659511089325, 0.09766324609518051, -0.1357087790966034, 0.07977156341075897, 0.5637333393096924, 0.30947786569595337, 0.46955472230911255, -0.18774887919425964, -0.08894442766904831, -0.36827749013900757, -0.27776387333869934, 0.16893991827964783, -0.1807100772857666, 0.31277209520339966, 0.4396668076515198, 0.07275323569774628, 0.07400847971439362, -0.3028741776943207, 0.2637735903263092, -0.11460711061954498, -0.38804882764816284, 0.3122303783893585, -0.04137859493494034, -0.1285751610994339, -0.27593711018562317, -0.01684916764497757, -0.09735085815191269, -0.4028922915458679, -0.010655708611011505, -0.16307950019836426, 0.24726973474025726, 0.07300601899623871, -0.1938677281141281, 0.21998818218708038, -0.13735371828079224, 0.34387919306755066, -0.11164655536413193, -0.4498354196548462, 0.328837126493454, 0.032714083790779114, -0.4012392461299896, -0.0856253057718277, -0.09979425370693207, -0.07028527557849884, 0.04908313229680061, -0.5313177108764648, -0.3595402240753174, -0.415871262550354, 0.036389801651239395, 0.13919460773468018, 0.09333454072475433, 0.07293476164340973, -0.11398887634277344, -0.026902658864855766, -0.32200729846954346, -0.2428341507911682, 0.11133814603090286, 0.19509565830230713, 0.3938702940940857, 0.043804071843624115, 0.2344282865524292, 0.17190800607204437, 0.005307212471961975, 0.5169689655303955, -0.11400073766708374, 0.4752206802368164, 0.11859932541847229, 0.33999103307724, -0.01849266141653061, -0.23512396216392517, 0.26341596245765686, -0.015512466430664062, 0.1688658744096756, 0.23535791039466858, -0.05396962910890579, 0.0114370696246624, -0.18075785040855408, 0.0038756318390369415, -0.29568755626678467, -0.24462255835533142, 0.10016844421625137, -0.3998337388038635, 0.20360097289085388, -0.11685685813426971, -0.24114537239074707, 0.06395696103572845, -0.2269170880317688, 0.1561281681060791, 0.21275274455547333, -0.06224421411752701, 0.008500046096742153, -0.51137775182724, -0.14561708271503448, -0.019856616854667664, 0.19368231296539307, 0.3519093692302704, 0.6147302389144897, -0.022920697927474976, -0.21530109643936157, -0.1089107096195221, -0.06080542132258415, 0.22652672231197357, -0.434360533952713, 0.41922569274902344, 0.11663351953029633, 0.2193746566772461, -0.38089820742607117, -0.250174880027771, -0.25792041420936584, -0.08408151566982269, 0.6861390471458435, 0.15795698761940002, -0.5214946269989014, 0.024584729224443436, 0.3652639091014862, 0.20295876264572144, 0.017551030963659286, -0.19806325435638428, -0.38669273257255554, -0.1877591907978058, -0.2662120461463928, 0.07002149522304535, 0.12427248805761337, 0.31206589937210083, 0.002098341938108206, 0.020860914140939713, 0.11018708348274231, -0.13626572489738464, 0.05024111643433571, -0.029654432088136673, 0.3451433777809143, 0.04140567034482956, 0.3867707848548889, -0.30804717540740967, 0.16777099668979645, -0.16011175513267517, 0.8061739206314087, -0.19739125669002533, 0.24611589312553406, 0.10652004182338715, -0.0867529883980751, 0.006900914013385773, 0.1476014107465744, -0.17693284153938293, 0.05222153663635254, -0.06503663957118988, 0.13189756870269775, 0.09914947301149368, -0.015727568417787552, 0.04387228190898895, 0.01577920839190483, -0.03708478435873985, 0.05328718572854996, 0.018171921372413635, -0.09157738089561462, 0.07357043027877808, -0.007984612137079239, 0.045116130262613297, -0.21495795249938965, 0.3160790801048279, 0.007600046694278717, 0.6805040836334229, 0.1455841213464737, -0.19354155659675598, 0.10637612640857697, -0.092623271048069, 0.2584165334701538, 0.1321803480386734, -0.16654662787914276, -0.42987439036369324, -0.5138407945632935, 0.10641968250274658, -0.192672997713089, 0.0547240786254406, -0.13020852208137512, -0.27192890644073486, 0.2535782754421234, 0.32673752307891846, 0.3031521737575531, 0.11729001998901367, 0.41389405727386475, -0.29941731691360474, 0.09897850453853607, -0.15700788795948029, 0.16957171261310577, -0.16715897619724274, 0.11117081344127655, -0.0733100101351738, -0.08497565239667892, 0.12140463292598724, -0.24659445881843567, -0.506539523601532, 0.1938318908214569, -0.3129301965236664, 0.006203860975801945, 0.4702191650867462, 0.22824330627918243, -0.015034507028758526, -0.04652166739106178, 0.2879864573478699, 0.3689439594745636, -0.19707649946212769, -0.09427134692668915, 0.29732054471969604, 0.18890506029129028, 0.23502328991889954, 0.06266091763973236, 0.5235112309455872, -0.21845635771751404, -0.17560219764709473, -0.2347714602947235, -0.05255776271224022, -0.36253589391708374, 0.25061699748039246, -0.14791351556777954, -0.16940246522426605, -0.24821139872074127, -0.14727957546710968, -0.08737127482891083, -0.10185849666595459, -0.09743040800094604, 0.17809569835662842, 0.23201726377010345, -0.10267893970012665, 0.3495880365371704, 0.10249122977256775, -0.3164370357990265, -0.000544888898730278, 0.43195176124572754, -0.1861516237258911, 0.03828592598438263, 0.22440214455127716, 0.029446136206388474, -0.26450738310813904, -0.16982728242874146, -0.17740702629089355, -0.413750559091568, -0.33278968930244446, 0.11575648933649063, -0.3050932288169861, -0.05749469995498657, -0.05079364776611328, 0.19778695702552795, 0.2916073799133301, 0.22985774278640747, 0.02690039947628975, -0.6651596426963806, -0.04970698058605194, 0.25827205181121826, 0.10776887834072113, 0.3282252550125122, -0.37630778551101685, 0.3069142997264862, 0.052292414009571075, 0.0013216175138950348, -0.3556439280509949, 0.0674004852771759, -0.35448357462882996, 0.19747357070446014, 0.16517497599124908, -0.07047529518604279, -0.07960915565490723, -0.05009372904896736, 0.1449735462665558, 0.17866463959217072, -0.15474431216716766, -0.24859413504600525, -0.10424642264842987, 0.12268055230379105, 0.10724183917045593, -0.09892750531435013, 0.0662604346871376, -0.17284907400608063, -0.09402388334274292, -0.11482784152030945, 0.05532975122332573, -0.07109247148036957, -0.20519666373729706, 0.2805668115615845, 0.3270479738712311, -0.1300320327281952, 0.1625773310661316, 0.17715182900428772, -0.4183613359928131, -0.06730963289737701, 0.03005199134349823, 0.22207002341747284, -0.10266129672527313, 0.03429150581359863, 0.052645888179540634, 0.08340193331241608, -0.17173953354358673, 0.21364036202430725, 0.12285187095403671, -0.0812118649482727, -0.3181111812591553, 0.08471174538135529, 0.3731803297996521, 0.28520113229751587, -0.332240492105484, -0.1893792599439621, 0.2628583610057831, 0.2594856321811676, -0.348840594291687, 0.15435287356376648, 0.16470938920974731, 0.11218397319316864, 0.10052970051765442, 0.21432900428771973, 0.3067055344581604, -0.2958470582962036, 0.18858930468559265, 0.020330414175987244, 0.27984946966171265, 0.0977291464805603, -0.10235747694969177, 0.23980574309825897, 0.054030533879995346, -0.14404617249965668, 0.08820470422506332, -0.6670594215393066, -0.09230249375104904, -0.14343488216400146, 0.257638543844223, 0.20652559399604797, -0.05003547668457031, 0.1859738528728485, 0.07893701642751694, -0.23988127708435059, 0.36223623156547546, 0.37213510274887085, 0.0026813670992851257, 0.03583411127328873, 0.07661011070013046, 0.3489760160446167, 0.0020525213330984116, 0.03534664213657379, -0.3632802665233612, 0.3016088604927063, -0.06589703261852264, -0.09159538149833679, -0.15119406580924988, -0.12088088691234589, -0.3065786361694336, 0.18369297683238983, 0.013442520052194595, 0.1481267511844635, 0.32796597480773926, 0.2135237753391266, -0.08423605561256409, -0.4465111494064331, -0.15282830595970154, 0.21106436848640442, 0.06228480488061905, -0.4452372193336487, 0.40174224972724915, 0.21168547868728638, -0.01650329679250717, -0.07566098868846893, 0.6375486254692078, 0.3867807388305664, 0.3736792802810669, -0.03731498122215271, -0.23896527290344238, 0.10761120915412903, 0.16285938024520874, -0.17098195850849152, 0.5656092762947083, -0.05284090340137482, -0.09848050773143768, 0.46536964178085327, 0.11990043520927429, -0.15917450189590454, -0.14710864424705505, -0.24106447398662567, -0.3202641010284424, -0.05557917058467865, 0.5560545921325684, -0.014092251658439636, 0.0976334735751152, -0.16984841227531433, 0.13793005049228668, -0.45717933773994446, -0.4514977037906647, 0.20760057866573334, -0.08167164027690887, 0.28140854835510254, -0.18684226274490356, 0.11264218389987946, -0.04476626589894295, 0.5521494150161743, 0.30947649478912354, 0.13940389454364777, -0.08955569565296173, -0.4337480664253235, -0.5978025197982788, 0.22702287137508392, -0.05269038304686546, -0.04727014899253845, 0.05345587059855461, 0.19147387146949768, -0.22252631187438965, 0.2241140753030777, 0.17514388263225555, 0.2219582200050354, -0.25958186388015747, -0.04863164573907852, -0.3870445191860199, -0.07318088412284851, -0.03320373594760895, -0.17202600836753845, -0.009369095787405968, -0.5157327651977539, 0.09872186183929443, -0.0635470375418663, 0.14623454213142395, 0.03489551693201065, -0.2454811930656433, 0.03165338933467865, 0.059311896562576294, 0.2612815499305725, 0.15832315385341644, 0.5676759481430054, -0.1291763186454773, -0.13052009046077728, -0.2507053017616272, -0.21353431046009064, -0.09324865788221359, 0.11271101236343384, -0.06385967135429382, 0.43404945731163025, 0.2038857787847519, 0.16476723551750183, -0.12275762110948563, 0.2358613908290863, -0.021003535017371178, 0.14032213389873505, -0.2057470679283142, -0.01952413097023964, -0.11908917129039764, 0.04838072881102562, -0.05486071854829788, -0.0404793918132782, -0.10201968252658844, 0.3314637243747711, -0.14278903603553772, -0.6168127655982971, 0.3792298436164856, -0.040234655141830444, -0.019273264333605766, -0.010826025158166885, 0.35487982630729675, -0.28837522864341736, -0.10352038592100143, -0.7209509611129761, -0.05744016543030739, 0.3191445469856262, 0.12897802889347076, -0.12524496018886566, 0.38846802711486816, -0.1163342297077179, 0.2696099281311035, 0.07023759186267853, -0.028538517653942108, -0.010383572429418564, -0.23927296698093414, -0.07636400312185287, -0.2572534680366516 ]
https://github.com/huggingface/datasets/issues/3951
Forked streaming datasets try to `open` data urls rather than use network
Thanks for reporting this second issue as well. We definitely want to make streaming datasets fully working in a distributed setup and with the best performance. Right now it only supports single process. In this issue it seems that the streaming capabilities that we offer to dataset builders are not transferred to the forked process (so it fails to open remote files and start streaming data from them). In particular `open` is supposed to be mocked by our `xopen` function that is an extended open that supports remote files. Let me try to fix this
## Describe the bug Building on #3950, if you bypass the pickling problem you still can't use the dataset. Somehow something gets confused and the forked processes try to `open` urls rather than anything else. ## Steps to reproduce the bug ```python from multiprocessing import freeze_support import transformers from transformers import Trainer, AutoModelForCausalLM, TrainingArguments import datasets import torch.utils.data # work around #3950 class TorchIterableDataset(datasets.IterableDataset, torch.utils.data.IterableDataset): pass def _ensure_format(v: datasets.IterableDataset) -> datasets.IterableDataset: return TorchIterableDataset(v._ex_iterable, v.info, v.split, "torch", v._shuffling) if __name__ == '__main__': freeze_support() ds = datasets.load_dataset('oscar', "unshuffled_deduplicated_en", split='train', streaming=True) ds = _ensure_format(ds) model = AutoModelForCausalLM.from_pretrained("distilgpt2") Trainer(model, train_dataset=ds, args=TrainingArguments("out", max_steps=1000, dataloader_num_workers=4)).train() ``` ## Expected results I'd expect the dataset to load the url correctly and produce examples. ## Actual results ``` warnings.warn( ***** Running training ***** Num examples = 8000 Num Epochs = 9223372036854775807 Instantaneous batch size per device = 8 Total train batch size (w. parallel, distributed & accumulation) = 8 Gradient Accumulation steps = 1 Total optimization steps = 1000 0%| | 0/1000 [00:00<?, ?it/s]Traceback (most recent call last): File "/Users/dlwh/src/mistral/src/stream_fork_crash.py", line 22, in <module> Trainer(model, train_dataset=ds, args=TrainingArguments("out", max_steps=1000, dataloader_num_workers=4)).train() File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/site-packages/transformers/trainer.py", line 1339, in train for step, inputs in enumerate(epoch_iterator): File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 521, in __next__ data = self._next_data() File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 1203, in _next_data return self._process_data(data) File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 1229, in _process_data data.reraise() File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/site-packages/torch/_utils.py", line 434, in reraise raise exception FileNotFoundError: Caught FileNotFoundError in DataLoader worker process 0. Original Traceback (most recent call last): File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/site-packages/torch/utils/data/_utils/worker.py", line 287, in _worker_loop data = fetcher.fetch(index) File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 32, in fetch data.append(next(self.dataset_iter)) File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/site-packages/datasets/iterable_dataset.py", line 497, in __iter__ for key, example in self._iter(): File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/site-packages/datasets/iterable_dataset.py", line 494, in _iter yield from ex_iterable File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/site-packages/datasets/iterable_dataset.py", line 87, in __iter__ yield from self.generate_examples_fn(**self.kwargs) File "/Users/dlwh/.cache/huggingface/modules/datasets_modules/datasets/oscar/84838bd49d2295f62008383b05620571535451d84545037bb94d6f3501651df2/oscar.py", line 358, in _generate_examples with gzip.open(open(filepath, "rb"), "rt", encoding="utf-8") as f: FileNotFoundError: [Errno 2] No such file or directory: 'https://s3.amazonaws.com/datasets.huggingface.co/oscar/1.0/unshuffled/deduplicated/en/en_part_1.txt.gz' Error in atexit._run_exitfuncs: Traceback (most recent call last): File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/multiprocessing/popen_fork.py", line 27, in poll pid, sts = os.waitpid(self.pid, flag) File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/site-packages/torch/utils/data/_utils/signal_handling.py", line 66, in handler _error_if_any_worker_fails() RuntimeError: DataLoader worker (pid 6932) is killed by signal: Terminated: 15. 0%| | 0/1000 [00:02<?, ?it/s] ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.0.0 - Platform: macOS-12.2-arm64-arm-64bit - Python version: 3.8.12 - PyArrow version: 7.0.0 - Pandas version: 1.4.1
95
Forked streaming datasets try to `open` data urls rather than use network ## Describe the bug Building on #3950, if you bypass the pickling problem you still can't use the dataset. Somehow something gets confused and the forked processes try to `open` urls rather than anything else. ## Steps to reproduce the bug ```python from multiprocessing import freeze_support import transformers from transformers import Trainer, AutoModelForCausalLM, TrainingArguments import datasets import torch.utils.data # work around #3950 class TorchIterableDataset(datasets.IterableDataset, torch.utils.data.IterableDataset): pass def _ensure_format(v: datasets.IterableDataset) -> datasets.IterableDataset: return TorchIterableDataset(v._ex_iterable, v.info, v.split, "torch", v._shuffling) if __name__ == '__main__': freeze_support() ds = datasets.load_dataset('oscar', "unshuffled_deduplicated_en", split='train', streaming=True) ds = _ensure_format(ds) model = AutoModelForCausalLM.from_pretrained("distilgpt2") Trainer(model, train_dataset=ds, args=TrainingArguments("out", max_steps=1000, dataloader_num_workers=4)).train() ``` ## Expected results I'd expect the dataset to load the url correctly and produce examples. ## Actual results ``` warnings.warn( ***** Running training ***** Num examples = 8000 Num Epochs = 9223372036854775807 Instantaneous batch size per device = 8 Total train batch size (w. parallel, distributed & accumulation) = 8 Gradient Accumulation steps = 1 Total optimization steps = 1000 0%| | 0/1000 [00:00<?, ?it/s]Traceback (most recent call last): File "/Users/dlwh/src/mistral/src/stream_fork_crash.py", line 22, in <module> Trainer(model, train_dataset=ds, args=TrainingArguments("out", max_steps=1000, dataloader_num_workers=4)).train() File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/site-packages/transformers/trainer.py", line 1339, in train for step, inputs in enumerate(epoch_iterator): File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 521, in __next__ data = self._next_data() File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 1203, in _next_data return self._process_data(data) File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 1229, in _process_data data.reraise() File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/site-packages/torch/_utils.py", line 434, in reraise raise exception FileNotFoundError: Caught FileNotFoundError in DataLoader worker process 0. Original Traceback (most recent call last): File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/site-packages/torch/utils/data/_utils/worker.py", line 287, in _worker_loop data = fetcher.fetch(index) File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 32, in fetch data.append(next(self.dataset_iter)) File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/site-packages/datasets/iterable_dataset.py", line 497, in __iter__ for key, example in self._iter(): File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/site-packages/datasets/iterable_dataset.py", line 494, in _iter yield from ex_iterable File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/site-packages/datasets/iterable_dataset.py", line 87, in __iter__ yield from self.generate_examples_fn(**self.kwargs) File "/Users/dlwh/.cache/huggingface/modules/datasets_modules/datasets/oscar/84838bd49d2295f62008383b05620571535451d84545037bb94d6f3501651df2/oscar.py", line 358, in _generate_examples with gzip.open(open(filepath, "rb"), "rt", encoding="utf-8") as f: FileNotFoundError: [Errno 2] No such file or directory: 'https://s3.amazonaws.com/datasets.huggingface.co/oscar/1.0/unshuffled/deduplicated/en/en_part_1.txt.gz' Error in atexit._run_exitfuncs: Traceback (most recent call last): File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/multiprocessing/popen_fork.py", line 27, in poll pid, sts = os.waitpid(self.pid, flag) File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/site-packages/torch/utils/data/_utils/signal_handling.py", line 66, in handler _error_if_any_worker_fails() RuntimeError: DataLoader worker (pid 6932) is killed by signal: Terminated: 15. 0%| | 0/1000 [00:02<?, ?it/s] ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 2.0.0 - Platform: macOS-12.2-arm64-arm-64bit - Python version: 3.8.12 - PyArrow version: 7.0.0 - Pandas version: 1.4.1 Thanks for reporting this second issue as well. We definitely want to make streaming datasets fully working in a distributed setup and with the best performance. Right now it only supports single process. In this issue it seems that the streaming capabilities that we offer to dataset builders are not transferred to the forked process (so it fails to open remote files and start streaming data from them). In particular `open` is supposed to be mocked by our `xopen` function that is an extended open that supports remote files. Let me try to fix this
[ -0.2870965003967285, -0.5631279945373535, 0.07200653851032257, 0.2570626139640808, 0.030351946130394936, -0.16190961003303528, 0.26984795928001404, 0.13945510983467102, -0.29657167196273804, 0.10785611718893051, -0.18194852769374847, 0.3537841737270355, -0.16178999841213226, -0.16461725533008575, -0.03022095561027527, -0.20057940483093262, -0.1129438653588295, -0.38930460810661316, -0.08844552934169769, 0.018796324729919434, -0.17739157378673553, 0.12149490416049957, -0.13508008420467377, -0.059963494539260864, -0.4820865988731384, 0.002310311421751976, 0.19042299687862396, 0.3589845895767212, 0.22245736420154572, -0.34661152958869934, 0.08858468383550644, 0.07525651156902313, 0.14425238966941833, 0.63376784324646, -0.00011347369581926614, 0.19433511793613434, 0.26202476024627686, 0.04080574959516525, -0.564359724521637, -0.07494215667247772, 0.4333416223526001, 0.08650653064250946, 0.15973426401615143, 0.05861503630876541, -0.25838854908943176, -0.05877397581934929, 0.16904743015766144, -0.2873460054397583, 0.40467125177383423, 0.10143005102872849, 0.16230793297290802, 0.2826903462409973, -0.06068861111998558, -0.0798821747303009, -0.02148156613111496, -0.18639759719371796, -0.18256975710391998, 0.3996262848377228, 0.3351540267467499, 0.48995441198349, -0.20801329612731934, 0.24115079641342163, -0.11823033541440964, 0.03721001744270325, -0.17863252758979797, 0.010472557507455349, -0.24697494506835938, -0.2918774485588074, 0.23573091626167297, 0.2047273814678192, 0.0856960117816925, -0.22279787063598633, -0.10392764955759048, -0.45149803161621094, -0.25920194387435913, -0.5185243487358093, 0.16075530648231506, 0.2118048071861267, -0.10775716602802277, 0.35532546043395996, -0.027460835874080658, -0.12173247337341309, -0.03988983482122421, 0.1024642214179039, 0.18331758677959442, 0.5171040296554565, 0.03457200154662132, 0.25281867384910583, 0.22695638239383698, 0.25116485357284546, 0.534629225730896, -0.10358825325965881, 0.048818495124578476, -0.28401705622673035, -0.1859245002269745, 0.15493382513523102, 0.010003142058849335, -0.36653828620910645, 0.04483170062303543, 0.5970577001571655, 0.1879030019044876, 0.2373393177986145, -0.2093815952539444, -0.01310122013092041, 0.012409654445946217, -0.18143019080162048, -0.42215099930763245, 0.5087375044822693, 0.29914799332618713, 0.1309569627046585, -0.11072707176208496, -0.013231467455625534, -0.043324150145053864, -0.22995492815971375, -0.2799777686595917, 0.012786694802343845, 0.3704047203063965, 0.04234551265835762, -0.2662469446659088, -0.10152869671583176, -0.3517964780330658, 0.1443021595478058, 0.2517871856689453, 0.3908137381076813, -0.33204367756843567, 0.34306982159614563, 0.016783036291599274, 0.13554731011390686, -0.26476502418518066, -0.02539355680346489, -0.22707805037498474, -0.2870772182941437, -0.13753250241279602, 0.1537860780954361, 0.14460179209709167, -0.023668494075536728, 0.20450246334075928, 0.07218652963638306, -0.07848456501960754, -0.056569647043943405, 0.24188300967216492, -0.17765271663665771, 0.4081069231033325, 0.19180914759635925, 0.1061057597398758, 0.19451168179512024, 0.1278276890516281, 0.1103060245513916, 0.0983036682009697, 0.2641664445400238, -0.21400868892669678, -0.5330978631973267, 0.022816093638539314, 0.14475812017917633, -0.011679486371576786, -0.08712698519229889, -0.0657123401761055, 0.17870274186134338, 0.1787833273410797, -0.063633993268013, 0.04354032501578331, -0.10934716463088989, -0.1625620424747467, -0.1573067307472229, 0.35949259996414185, 0.3454935550689697, -0.15185892581939697, -0.13910946249961853, -0.008092610165476799, -0.0029586609452962875, 0.44989171624183655, 0.3906290829181671, -0.3132080137729645, -0.18168199062347412, -0.13884206116199493, -0.027068857103586197, 0.09332006424665451, -0.24611464142799377, -0.29975175857543945, 0.11504054814577103, -0.2636757791042328, 0.36525604128837585, 0.14109432697296143, -0.10391515493392944, 0.13702674210071564, 0.11232220381498337, 0.07377681136131287, 0.35188090801239014, -0.00766785629093647, 0.10063721984624863, -0.5596886873245239, -0.15157592296600342, 0.14703938364982605, 0.1377108246088028, 0.09155547618865967, -0.035839565098285675, -0.13515129685401917, -0.08843544125556946, 0.3987061679363251, -0.06072290614247322, 0.234947070479393, -0.19323402643203735, 0.21992464363574982, 0.20432542264461517, 0.043191004544496536, 0.11555277556180954, -0.35545608401298523, 0.27349966764450073, 0.21515889465808868, 0.0025719106197357178, -0.07370372116565704, 0.06809601932764053, -0.04792456701397896, 0.005853129550814629, -0.3648357689380646, -0.43310731649398804, 0.062203340232372284, 0.4082139730453491, -0.2321368157863617, -0.15517188608646393, -0.2702373266220093, 0.06627672165632248, -0.2947782576084137, 0.1944497525691986, -0.16201616823673248, 0.40637680888175964, -0.011487746611237526, -0.17465756833553314, -0.3785015344619751, 0.028330843895673752, 0.0529448539018631, -0.1033521220088005, -0.17291805148124695, 0.4249451458454132, -0.05951518937945366, 0.12305953353643417, 0.22510665655136108, 0.06828286498785019, 0.1581525057554245, -0.6136020421981812, -0.08890287578105927, 0.4383375644683838, 0.10148945450782776, 0.026061512529850006, -0.030643224716186523, 0.24263370037078857, 0.05677398294210434, 0.13763730227947235, 0.1585645228624344, 0.10766194015741348, 0.28138184547424316, 0.045304615050554276, -0.0749850645661354, 0.17972560226917267, -0.036460358649492264, -0.24727453291416168, 0.7129151821136475, -0.13256587088108063, -0.5776300430297852, 0.13220258057117462, 0.09903428703546524, -0.009615041315555573, 0.03424772620201111, 0.08470471203327179, -0.18210801482200623, -0.10239113867282867, -0.06296318024396896, 0.1478702574968338, 0.17693182826042175, 0.08841172605752945, 0.19442303478717804, 0.1137368232011795, -0.2454299032688141, -0.3310784101486206, 0.2949772775173187, 0.20565181970596313, -0.09742936491966248, 0.27153804898262024, 0.09691286087036133, -0.059584829956293106, -0.3467157781124115, -0.34848663210868835, 0.1190294548869133, 0.054330870509147644, -0.2907182276248932, 0.3410307765007019, -0.29226264357566833, 0.16214114427566528, -0.44962817430496216, -0.29839959740638733, -0.16902659833431244, -0.3218834698200226, -0.01976872980594635, 0.6049593091011047, -0.20856717228889465, 0.3427559733390808, 0.018242258578538895, 0.3077009916305542, 0.025608429685235023, -0.015397502109408379, 0.06297186017036438, -0.09368003904819489, -0.30220064520835876, 0.12201946973800659, 0.22013413906097412, -0.22256121039390564, 0.13724635541439056, 0.1489596962928772, -0.25791144371032715, -0.2868022322654724, -0.07827562093734741, 0.13313832879066467, 0.12560057640075684, 0.13628850877285004, 0.1021273285150528, 0.26448214054107666, 0.08869731426239014, -0.35115134716033936, 0.1557750254869461, -0.03840359300374985, 0.20872358977794647, -0.16316494345664978, -0.10002682358026505, 0.09966457635164261, -0.13593383133411407, -0.5946363210678101, -0.2917328476905823, -0.4489014446735382, 0.17705336213111877, 0.05761295184493065, 0.12994295358657837, 0.49170172214508057, 0.06713148951530457, 0.2462334930896759, 0.2121889591217041, 0.02185554802417755, -0.2242531180381775, -0.24017687141895294, 0.11314305663108826, -0.22000522911548615, -0.18079328536987305, -0.2044467329978943, -0.08050694316625595, 0.028781862929463387, 0.15216410160064697, -0.30830928683280945, 0.5777131915092468, -0.23141862452030182, 0.1100648045539856, -0.006845347583293915, -0.2493581622838974, 0.14070367813110352, 0.0038825799711048603, -0.04958830028772354, -0.21553346514701843, 0.00020655617117881775, 0.10657145082950592, -0.06674745678901672, 0.3242485821247101, 0.08220959454774857, 0.10712498426437378, 0.27580246329307556, 1.1841650009155273, 0.022770356386899948, -0.07181856036186218, 0.2938149869441986, -0.12753643095493317, 0.05947812274098396, -0.17823728919029236, -0.021076153963804245, -0.0010060938075184822, -0.12095692753791809, -0.16678817570209503, 0.21428945660591125, 0.09403643012046814, -0.19806775450706482, -0.20914825797080994, 0.2071353644132614, -0.08000800013542175, -0.3559708893299103, 0.2427867352962494, -0.43225470185279846, -0.10040298849344254, -0.04886326566338539, 0.21066680550575256, 0.007466819137334824, -0.019186992198228836, -0.12160521745681763, 0.07227983325719833, 0.2525751292705536, -0.09184261411428452, -0.37017813324928284, 0.2024659961462021, -0.30727705359458923, 0.193869948387146, -0.06543456017971039, 0.2759186625480652, -0.08053752779960632, -0.4596850872039795, 0.2894634008407593, 0.03334156423807144, 0.4641449451446533, -0.21530814468860626, 0.17896007001399994, 0.1444215476512909, -0.22170333564281464, -0.25937867164611816, -0.1141577810049057, -0.15110084414482117, 0.12824441492557526, 0.38180282711982727, -0.0010051801800727844, -0.39465323090553284, -0.04480500891804695, 0.025736695155501366, -0.09190703928470612, -0.002429164946079254, 0.12303661555051804, -0.19962996244430542, -0.19822627305984497, -0.16605402529239655, 0.14667458832263947, 0.34969988465309143, 0.1837952882051468, -0.6167588233947754, -0.1543402224779129, -0.1254313439130783, -0.010947665199637413, -0.056504324078559875, 0.1358187347650528, 0.21396476030349731, -0.04389142617583275, 0.1829921454191208, 0.30798178911209106, 0.5826579332351685, 0.14461229741573334, 0.38477739691734314, 0.10387897491455078, -0.21549853682518005, 0.4354355037212372, 0.31792545318603516, -0.12829622626304626, 0.5397012233734131, 0.10266482084989548, 0.2178669273853302, 0.419294148683548, 0.27800437808036804, 0.07944730669260025, 0.17661051452159882, 0.08483511954545975, -0.0531613752245903, -0.36265823245048523, -0.5456220507621765, 0.32716232538223267, 0.1712830364704132, -0.13448280096054077, 0.521784782409668, -0.4891050457954407, -0.19041471183300018, 0.3721843957901001, -0.055594973266124725, 1.1153512001037598, 0.18178963661193848, 0.14492037892341614, 0.4965232312679291, -0.1313195377588272, 0.004344221204519272, -0.21083787083625793, 0.17879706621170044, -0.3248191475868225, -0.19715601205825806, 0.06905172765254974, -0.15869377553462982, -0.012075453996658325, -0.10817548632621765, -0.10660043358802795, 0.19361747801303864, -0.10800334811210632, 0.13180238008499146, 0.11289618909358978, 0.01672501116991043, -0.08376540243625641, -0.0786178708076477, -0.05204769968986511, 0.06513459235429764, -0.06284826248884201, 0.30057263374328613, -0.02618757262825966, -0.1882050782442093, -0.07198850810527802, -0.16564160585403442, -0.1952967345714569, 0.25892823934555054, -0.2511560022830963, 0.22880905866622925, 0.022151494398713112, -0.19797134399414062, -0.28132665157318115, 0.18979017436504364, 0.029322709888219833, -0.19136911630630493, -0.19024072587490082, 0.4798275828361511, 0.08847172558307648, 0.19788683950901031, 0.0524507574737072, -0.11304983496665955, 0.43411144614219666, -0.058833248913288116, -0.23286443948745728, 0.2589104175567627, 0.031050540506839752, -0.3732736110687256, -0.059479355812072754, 0.03578173369169235, 0.2030562162399292, -0.1324857473373413, 0.014236342161893845, -0.01775248348712921, -0.4147070646286011, -0.4028201699256897, 0.10441713035106659, -0.14767667651176453, -0.18024906516075134, -0.12045160681009293, 0.12928709387779236, -0.3195876479148865, -0.24413765966892242, 0.41817957162857056, -0.02695845440030098, 0.33149009943008423, 0.17911554872989655, 0.2835175395011902, -0.14317291975021362, -0.09186768531799316, 0.003630407154560089, -0.09423483163118362, -0.5788170695304871, 0.2687130570411682, -0.13451486825942993, -0.15151667594909668, -0.09216712415218353, 0.007993929088115692, 0.05463448166847229, 0.2689794600009918, -0.479410320520401, -0.1284918189048767, -0.19820307195186615, 0.05295232683420181, -0.1782962828874588, 0.1753896176815033, -0.19527482986450195, 0.43873101472854614, 0.15260431170463562, -0.22331762313842773, -0.31141531467437744, 0.2095840871334076, -0.10355044901371002, 0.07911942154169083, -0.2962684631347656, -0.3716917037963867, 0.18371178209781647, 0.1084216982126236, 0.06005556881427765, 0.10691426694393158, -0.21493975818157196, -0.11258074641227722, -0.2934931516647339, 0.1632011979818344, 0.15127259492874146, -0.39373502135276794, -0.47378429770469666, 0.06864611059427261, -0.026854000985622406, -0.16716443002223969, 0.18290112912654877, 0.10492847114801407, 0.04021015018224716, -0.05235053598880768, 0.2564123272895813, 0.17499354481697083, -0.34816092252731323, -0.014557790011167526, -0.02755533903837204, 0.06355544924736023, 0.21700696647167206, 0.04046071320772171, -0.130135178565979, -0.20300209522247314, -0.3919021189212799, -0.18680879473686218, 0.29102832078933716, 0.3095865547657013, 0.27011409401893616, -0.18986256420612335, -0.2561723589897156, -0.01836979202926159, 0.37101754546165466, 0.5555195808410645, -0.07880344986915588, -0.2877141237258911, 0.20464986562728882, 0.1723533272743225, 0.020151562988758087, 0.07744082808494568, 0.048195794224739075, -0.09783586859703064, 0.014827635139226913, 0.07719796895980835, 0.03473089262843132, -0.08537089824676514, -0.3953559398651123, 0.26822927594184875, 0.1586371809244156, -0.36276888847351074, 0.46457409858703613, 0.37328270077705383, -0.11297453939914703, 0.13526147603988647, 0.06156173348426819, -0.2777760922908783, 0.2253212183713913, 0.27821269631385803, -0.14288213849067688, 0.5075947046279907, 0.04012739285826683, -0.09506292641162872, 0.1274453103542328, -0.43675318360328674, -0.33765923976898193, -0.02100415527820587, -0.4529018998146057, 0.20403948426246643, -0.06603670120239258, 0.2601688504219055, -0.24729321897029877, -0.2478884607553482, -0.20964555442333221, 0.3626467287540436, -0.25347551703453064, -0.3861466348171234, -0.23696929216384888, -0.0703037679195404, -0.25025996565818787, 0.06095286086201668, -0.07591186463832855, 0.13654756546020508, 0.270224392414093, 0.004319339990615845, -0.16723518073558807, -0.3307163417339325, 0.01651044376194477, 0.09473563730716705, 0.31228235363960266, -0.12900720536708832, 0.260794460773468, 0.3395075500011444, -0.19716569781303406, -0.07427115738391876, 0.02487042173743248, 0.2414730042219162, 0.22388145327568054, -0.24033701419830322, 0.0012544398196041584, 0.09942056238651276, -0.018259670585393906, -0.1295904815196991, 0.17807836830615997, 0.06911604851484299, 0.07161318510770798, 0.390857070684433, 0.1538602113723755, -0.231154203414917, 0.2027076631784439, 0.02085856720805168, 0.5256597995758057, -0.2870785892009735, 0.37461164593696594, -0.06687821447849274, -0.10259368270635605, 0.0974426120519638, -0.09353160113096237, -0.3469078838825226, 0.09361578524112701, 0.3279789686203003, -0.22516342997550964, 0.21442782878875732, -0.14970432221889496, 0.05457387864589691, 0.13089793920516968, 0.600790798664093, -0.114190012216568, -0.20171639323234558, -0.02812088653445244, 0.053976789116859436, -0.35938912630081177, 0.21679730713367462, 0.0005961619317531586, 0.09010707587003708, -0.14998307824134827, 0.12153692543506622, -0.03356601297855377, 0.2139338254928589, -0.23397605121135712, 0.011767804622650146, 0.36402755975723267, 0.38919341564178467, -0.28801414370536804, -0.052044447511434555, -0.1378553956747055, 0.34736064076423645, 0.053001828491687775, -0.3156919479370117, 0.06277241557836533, 0.17504240572452545, 0.07417397201061249, 0.20887351036071777, -0.3471454083919525, 0.09295006096363068, 0.13032099604606628, 0.21159788966178894, 0.15053437650203705, 0.40783292055130005, -0.17439225316047668, -0.05134310573339462, -0.5285729765892029, -0.4279192090034485, -0.03587375208735466, -0.12904316186904907, 0.06553304195404053, 0.5035879611968994, 0.012337636202573776, 0.028771359473466873, -0.42343670129776, 0.16311463713645935, 0.12130102515220642, 0.09338105469942093, -0.12494957447052002, -0.0761507898569107, -0.057200197130441666, 0.2625150978565216, 0.05469122156500816, 0.47203174233436584, -0.1362794041633606, 0.07009294629096985, -0.22353985905647278, -0.5573626160621643, 0.7304880619049072, -0.22715769708156586, -0.03957501798868179, -0.3128962218761444, 0.26194095611572266, 0.5880004167556763, 0.2372134029865265, -0.16416430473327637, 0.0323859378695488, 0.21282677352428436, -0.049447201192379, -0.4006772041320801, 0.040941014885902405, 0.14531531929969788, 0.0359976701438427, -0.06784498691558838, 0.5560645461082458, 0.17082864046096802, -0.47674641013145447, 0.2810637056827545, -0.12945130467414856 ]
https://github.com/huggingface/datasets/issues/3950
Streaming Datasets don't work with Transformers Trainer when dataloader_num_workers>1
Hi, thanks for reporting. This could be related to https://github.com/huggingface/datasets/issues/3148 too We should definitely make `TorchIterableDataset` picklable by moving it in the main code instead of inside a function. If you'd like to contribute, feel free to open a Pull Request :) I'm also taking a look at your second issue, which is more technical
## Describe the bug Streaming Datasets can't be pickled, so any interaction between them and multiprocessing results in a crash. ## Steps to reproduce the bug ```python import transformers from transformers import Trainer, AutoModelForCausalLM, TrainingArguments import datasets ds = datasets.load_dataset('oscar', "unshuffled_deduplicated_en", split='train', streaming=True).with_format("torch") model = AutoModelForCausalLM.from_pretrained("distilgpt2") Trainer(model, train_dataset=ds, args=TrainingArguments("out", max_steps=1000, dataloader_num_workers=4)).train() ``` ## Expected results For this code I'd expect a crash related to not having preprocessed the data, but instead we get a pickling error. ## Actual results ``` 0%| | 0/1000 [00:00<?, ?it/s]Traceback (most recent call last): File "/Users/dlwh/src/mistral/src/stream_fork_crash.py", line 7, in <module> Trainer(model, train_dataset=ds, args=TrainingArguments("out", max_steps=1000, dataloader_num_workers=4)).train() File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/site-packages/transformers/trainer.py", line 1339, in train for step, inputs in enumerate(epoch_iterator): File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 359, in __iter__ return self._get_iterator() File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 305, in _get_iterator return _MultiProcessingDataLoaderIter(self) File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 918, in __init__ w.start() File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/multiprocessing/process.py", line 121, in start self._popen = self._Popen(self) File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/multiprocessing/context.py", line 224, in _Popen return _default_context.get_context().Process._Popen(process_obj) File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/multiprocessing/context.py", line 284, in _Popen return Popen(process_obj) File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/multiprocessing/popen_spawn_posix.py", line 32, in __init__ super().__init__(process_obj) File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/multiprocessing/popen_fork.py", line 19, in __init__ self._launch(process_obj) File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/multiprocessing/popen_spawn_posix.py", line 47, in _launch reduction.dump(process_obj, fp) File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/multiprocessing/reduction.py", line 60, in dump ForkingPickler(file, protocol).dump(obj) AttributeError: Can't pickle local object 'iterable_dataset.<locals>.TorchIterableDataset' 0%| | 0/1000 [00:00<?, ?it/s] ``` This immediate crash can be fixed by not using a local class to make the `TorchIterableDataset` (Note that you have to do with_format("torch") or you get an exception because the dataset has no len) However, any lambdas etc used as maps will also trigger this crash. A more permanent fix would be to move away from multiprocessing and instead use something like pathos or multiprocessing_on_dill (https://stackoverflow.com/questions/19984152/what-can-multiprocessing-and-dill-do-together) Note that if you bypass this crash you get another crash. (I'll file a separate bug). ## Environment info - `datasets` version: 2.0.0 - Platform: macOS-12.2-arm64-arm-64bit - Python version: 3.8.12 - PyArrow version: 7.0.0 - Pandas version: 1.4.1
55
Streaming Datasets don't work with Transformers Trainer when dataloader_num_workers>1 ## Describe the bug Streaming Datasets can't be pickled, so any interaction between them and multiprocessing results in a crash. ## Steps to reproduce the bug ```python import transformers from transformers import Trainer, AutoModelForCausalLM, TrainingArguments import datasets ds = datasets.load_dataset('oscar', "unshuffled_deduplicated_en", split='train', streaming=True).with_format("torch") model = AutoModelForCausalLM.from_pretrained("distilgpt2") Trainer(model, train_dataset=ds, args=TrainingArguments("out", max_steps=1000, dataloader_num_workers=4)).train() ``` ## Expected results For this code I'd expect a crash related to not having preprocessed the data, but instead we get a pickling error. ## Actual results ``` 0%| | 0/1000 [00:00<?, ?it/s]Traceback (most recent call last): File "/Users/dlwh/src/mistral/src/stream_fork_crash.py", line 7, in <module> Trainer(model, train_dataset=ds, args=TrainingArguments("out", max_steps=1000, dataloader_num_workers=4)).train() File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/site-packages/transformers/trainer.py", line 1339, in train for step, inputs in enumerate(epoch_iterator): File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 359, in __iter__ return self._get_iterator() File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 305, in _get_iterator return _MultiProcessingDataLoaderIter(self) File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 918, in __init__ w.start() File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/multiprocessing/process.py", line 121, in start self._popen = self._Popen(self) File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/multiprocessing/context.py", line 224, in _Popen return _default_context.get_context().Process._Popen(process_obj) File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/multiprocessing/context.py", line 284, in _Popen return Popen(process_obj) File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/multiprocessing/popen_spawn_posix.py", line 32, in __init__ super().__init__(process_obj) File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/multiprocessing/popen_fork.py", line 19, in __init__ self._launch(process_obj) File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/multiprocessing/popen_spawn_posix.py", line 47, in _launch reduction.dump(process_obj, fp) File "/Users/dlwh/.conda/envs/mistral/lib/python3.8/multiprocessing/reduction.py", line 60, in dump ForkingPickler(file, protocol).dump(obj) AttributeError: Can't pickle local object 'iterable_dataset.<locals>.TorchIterableDataset' 0%| | 0/1000 [00:00<?, ?it/s] ``` This immediate crash can be fixed by not using a local class to make the `TorchIterableDataset` (Note that you have to do with_format("torch") or you get an exception because the dataset has no len) However, any lambdas etc used as maps will also trigger this crash. A more permanent fix would be to move away from multiprocessing and instead use something like pathos or multiprocessing_on_dill (https://stackoverflow.com/questions/19984152/what-can-multiprocessing-and-dill-do-together) Note that if you bypass this crash you get another crash. (I'll file a separate bug). ## Environment info - `datasets` version: 2.0.0 - Platform: macOS-12.2-arm64-arm-64bit - Python version: 3.8.12 - PyArrow version: 7.0.0 - Pandas version: 1.4.1 Hi, thanks for reporting. This could be related to https://github.com/huggingface/datasets/issues/3148 too We should definitely make `TorchIterableDataset` picklable by moving it in the main code instead of inside a function. If you'd like to contribute, feel free to open a Pull Request :) I'm also taking a look at your second issue, which is more technical
[ -0.47248074412345886, -0.3094193935394287, 0.0654425173997879, 0.3585296869277954, 0.25151777267456055, -0.07021686434745789, 0.3671460747718811, 0.1715017408132553, 0.1068321168422699, 0.27753061056137085, 0.0359957292675972, 0.16378755867481232, -0.5519857406616211, 0.046610280871391296, -0.08081582188606262, -0.3613407611846924, 0.051200613379478455, -0.0016886666417121887, -0.13696406781673431, 0.1102093756198883, 0.1317984163761139, 0.06304706633090973, -0.21770012378692627, -0.13677695393562317, -0.541243314743042, 0.19965744018554688, 0.20905297994613647, 0.21923744678497314, 0.20229016244411469, -0.18376320600509644, 0.4161791503429413, -0.04363227263092995, 0.29501786828041077, 0.7576097846031189, -0.00012170861737104133, 0.29986149072647095, 0.24302902817726135, -0.09656722843647003, -0.28915223479270935, -0.306179404258728, 0.07314802706241608, -0.013736136257648468, 0.13953271508216858, 0.04532327502965927, -0.11911004781723022, 0.054189443588256836, -0.033983513712882996, -0.25056394934654236, 0.6018670797348022, 0.29240673780441284, 0.14575009047985077, 0.4664665758609772, 0.007747810333967209, 0.1255747675895691, -0.0656285360455513, 0.04800821840763092, -0.24382328987121582, 0.13452064990997314, 0.32922041416168213, 0.02067001722753048, -0.33567747473716736, 0.14011907577514648, 0.1192605197429657, -0.05886462703347206, 0.022570963948965073, -0.10327722132205963, -0.2510986030101776, -0.447142630815506, 0.01591349020600319, 0.19883787631988525, 0.02959233522415161, -0.11774294823408127, -0.33491382002830505, -0.46529659628868103, -0.09680948406457901, -0.16357073187828064, 0.12186194956302643, 0.056432776153087616, -0.22680550813674927, 0.16756977140903473, -0.10326601564884186, 0.07547888159751892, -0.1817569136619568, 0.09614130854606628, 0.2327485978603363, 0.6009315252304077, -0.08018927276134491, 0.1403074711561203, 0.37131404876708984, 0.2391788363456726, 0.5082734227180481, 0.0417838916182518, 0.2118256837129593, 0.11871124058961868, -0.5128162503242493, -0.2890256643295288, -0.05419857054948807, -0.3084340989589691, -0.13548749685287476, 0.2132350653409958, 0.12713518738746643, 0.1811612844467163, -0.08314544707536697, 0.027580538764595985, 0.27875852584838867, -0.1433533877134323, -0.29856494069099426, 0.46320030093193054, 0.247784823179245, 0.1140177994966507, -0.008164197206497192, 0.029154565185308456, -0.02394874021410942, -0.1644507497549057, 0.11269722878932953, 0.19029468297958374, 0.17238520085811615, -0.0731726661324501, -0.1398508995771408, 0.028324514627456665, -0.16702485084533691, 0.061658650636672974, 0.2521897852420807, 0.20412853360176086, -0.1559971570968628, 0.5619663000106812, -0.15044552087783813, 0.12251854687929153, -0.17017903923988342, -0.3960968255996704, -0.2280830293893814, -0.13661333918571472, -0.1941811889410019, 0.10388203710317612, 0.33149218559265137, -0.14541786909103394, 0.328407347202301, 0.00945016648620367, 0.04406016692519188, -0.29217368364334106, 0.3755531907081604, -0.3100849390029907, 0.1188926175236702, 0.3441239893436432, -0.09100185334682465, 0.14858314394950867, 0.18329167366027832, 0.12882548570632935, 0.1780526041984558, 0.24707427620887756, -0.18195819854736328, -0.41426482796669006, -0.14667081832885742, 0.09968816488981247, -0.13908258080482483, -0.03744654357433319, -0.3219185173511505, 0.21167686581611633, 0.4697726368904114, -0.008510451763868332, -0.13930895924568176, -0.2732354402542114, -0.08560823649168015, 0.0009700632654130459, 0.14304129779338837, 0.31882402300834656, -0.12507839500904083, -0.17514267563819885, 0.08852800726890564, -0.04778049513697624, 0.4669764041900635, 0.1726221889257431, -0.44141969084739685, 0.013236083090305328, 0.10536546260118484, 0.07831785082817078, 0.28319162130355835, -0.03616160899400711, -0.3150378167629242, 0.30683353543281555, -0.07055766135454178, 0.3373692035675049, 0.1431310772895813, 0.1304636299610138, 0.11379259824752808, -0.07061878591775894, -0.10038943588733673, 0.41268837451934814, -0.07377617061138153, 0.2948366105556488, -0.2554883360862732, -0.22428679466247559, 0.12076199054718018, 0.33022305369377136, 0.4442169964313507, -0.03333660960197449, -0.2870497703552246, 0.2643302381038666, 0.2967151403427124, -0.0038777031004428864, 0.1389794796705246, 0.18089987337589264, 0.06346572935581207, -0.10181187093257904, -0.03291036933660507, -0.21633321046829224, -0.5028102397918701, 0.2770107090473175, 0.0779254212975502, -0.12621700763702393, 0.05419627204537392, 0.22865690290927887, 0.10615555942058563, -0.02370503917336464, -0.35605645179748535, -0.2924019992351532, 0.0056969597935676575, 0.3098640739917755, 0.0075522176921367645, -0.4361121654510498, -0.2830585837364197, 0.28574657440185547, -0.3242258131504059, 0.05275747925043106, -0.32166343927383423, 0.4042118191719055, -0.08647098392248154, -0.5062966346740723, -0.2755858898162842, -0.01693122088909149, 0.038880281150341034, -0.17002800107002258, -0.23886945843696594, 0.3959280550479889, 0.06302089244127274, 0.1537613719701767, -0.12408462911844254, -0.12872876226902008, 0.1872713565826416, -0.47422486543655396, -0.2519269287586212, 0.6201212406158447, 0.05055713653564453, -0.024947170168161392, -0.1788996458053589, 0.15531493723392487, -0.10697542130947113, 0.2524296045303345, -0.0014593712985515594, 0.02629092149436474, -0.013021541759371758, 0.12152501940727234, -0.15889465808868408, 0.11815875768661499, 0.06284096837043762, -0.33907660841941833, 0.32780471444129944, -0.07872595638036728, -0.4602664113044739, -0.09727092832326889, -0.010599043220281601, 0.05419066920876503, -0.02987462282180786, 0.12147197872400284, -0.2007026970386505, -0.07294880598783493, 0.07719328999519348, 0.13522976636886597, 0.4652867317199707, 0.05119175463914871, 0.04864753410220146, -0.05177883803844452, -0.2330900877714157, -0.24775107204914093, 0.10152025520801544, 0.30225950479507446, -0.11319949477910995, 0.3051726222038269, 0.08429736644029617, 0.12314148992300034, -0.4111555516719818, -0.4255434572696686, 0.04999256879091263, 0.30405640602111816, -0.4006431996822357, 0.3517943322658539, -0.016987409442663193, 0.1677192747592926, -0.4736177921295166, -0.32910504937171936, -0.02345631644129753, -0.26703783869743347, -0.13648037612438202, 0.5369250178337097, -0.12393569946289062, 0.25420570373535156, -0.2587150037288666, -0.022057339549064636, 0.09092771261930466, 0.1478879302740097, -0.11307156831026077, 0.03320666402578354, -0.19852694869041443, 0.022899452596902847, 0.2795405685901642, -0.49219533801078796, 0.008876357227563858, 0.34049558639526367, -0.3273731470108032, 0.025777466595172882, -0.13354294002056122, -0.04638948291540146, 0.014388680458068848, 0.20829060673713684, -0.050265759229660034, 0.25768619775772095, 0.040158458054065704, -0.3820949196815491, -0.06754481047391891, -0.04926759749650955, 0.1404999941587448, -0.02571394294500351, 0.16697640717029572, 0.2686498165130615, -0.1683764010667801, -0.38918331265449524, -0.3129204213619232, -0.2676091492176056, -0.23442162573337555, 0.08219869434833527, 0.010073229670524597, 0.538101077079773, 0.3181129992008209, 0.11473787575960159, 0.39255592226982117, -0.12116946280002594, -0.024543458595871925, -0.2303466498851776, 0.282511442899704, 0.014374719932675362, -0.18706420063972473, -0.22787770628929138, -0.05479661375284195, 0.09845056384801865, 0.06512098014354706, -0.3834301233291626, 0.5216378569602966, -0.25075897574424744, -0.20845599472522736, -0.19622883200645447, -0.07201144099235535, 0.1421724259853363, 0.1658453345298767, 0.11122576892375946, -0.10381971299648285, 0.13474604487419128, -0.04260910302400589, -0.07042878121137619, 0.34069016575813293, -0.1788976490497589, 0.23880606889724731, 0.12745283544063568, 1.1222401857376099, 0.16689753532409668, -0.34929051995277405, 0.2614860236644745, 0.13391655683517456, -0.11748869717121124, -0.07341376692056656, -0.16467048227787018, 0.15611110627651215, -0.1150575578212738, 0.11136870086193085, 0.007720157504081726, 0.0041681379079818726, -0.3154156804084778, -0.2988845407962799, 0.3505154252052307, -0.03947011008858681, -0.1729801744222641, 0.29559269547462463, -0.37691614031791687, 0.026756402105093002, -0.2104390561580658, 0.2862468361854553, 0.11731067299842834, -0.0861273854970932, -0.23637442290782928, 0.004855141043663025, 0.18512821197509766, 0.036175526678562164, 0.12328574061393738, 0.03634871169924736, -0.34643229842185974, -0.034178897738456726, -0.11168443411588669, 0.5566115379333496, 0.10519950091838837, -0.30305230617523193, 0.03516380488872528, -0.012756222859025002, 0.31409206986427307, -0.25650978088378906, 0.032500967383384705, -0.03866615891456604, -0.16899268329143524, -0.22305436432361603, -0.3223656117916107, -0.2630615532398224, 0.21479782462120056, 0.05074179172515869, 0.470895916223526, -0.14477309584617615, 0.03973769396543503, 0.33414992690086365, -0.12578506767749786, -0.026121128350496292, -0.18287669122219086, -0.40699052810668945, 0.056230634450912476, -0.06136913597583771, 0.39315158128738403, 0.232341930270195, 0.1536889225244522, -0.4403799772262573, -0.2169370800256729, -0.02631719596683979, -0.26123470067977905, 0.12921415269374847, 0.11204557120800018, -0.057766370475292206, 0.106700599193573, 0.21786026656627655, 0.17578844726085663, 0.17340093851089478, -0.11878755688667297, 0.143776997923851, 0.12448613345623016, -0.2749136686325073, 0.46346408128738403, 0.2292676419019699, 0.14419898390769958, 0.33280307054519653, -0.13418914377689362, 0.2416539490222931, 0.49761566519737244, 0.16052433848381042, 0.03907342627644539, 0.36401763558387756, 0.19697102904319763, -0.06434771418571472, -0.42846667766571045, -0.4296143054962158, 0.4811253845691681, 0.13284218311309814, 0.1675000637769699, 0.37289178371429443, -0.4092569947242737, -0.2543221712112427, 0.18800458312034607, 0.10522443056106567, 0.8885515332221985, 0.019591573625802994, 0.045519258826971054, 0.19051668047904968, -0.20331038534641266, 0.22125139832496643, -0.17958444356918335, 0.1474906951189041, -0.30607351660728455, -0.34408262372016907, -0.02449742518365383, -0.22477468848228455, 0.15312236547470093, 0.003040473908185959, -0.35150018334388733, 0.32108408212661743, -0.15770204365253448, 0.24076397716999054, 0.12011893838644028, 0.14833495020866394, 0.07795644551515579, -0.2909981906414032, -0.04614204168319702, 0.03450257331132889, -0.17018531262874603, 0.24150989949703217, -0.05155967175960541, -0.13862425088882446, 0.1942770779132843, -0.132817804813385, -0.32863008975982666, 0.23917418718338013, -0.3521183431148529, 0.12092578411102295, 0.20568977296352386, -0.3209434151649475, 0.1622816026210785, 0.13051091134548187, -0.08181406557559967, -0.11507725715637207, -0.2915295362472534, 0.17252914607524872, -0.12891972064971924, 0.22064204514026642, 0.04734787344932556, -0.0040051075629889965, 0.3963465094566345, 0.10383022576570511, -0.140268474817276, 0.37793031334877014, -0.04204137623310089, -0.27724629640579224, 0.009618684649467468, 0.05333665385842323, 0.221028134226799, -0.13942523300647736, -0.0983380377292633, -0.016013771295547485, -0.4113485813140869, -0.3527020812034607, 0.09909720718860626, 0.026288729161024094, -0.2818215489387512, -0.0020642802119255066, 0.0035351738333702087, -0.15214022994041443, -0.20871245861053467, 0.6081395745277405, 0.278178870677948, 0.24909508228302002, 0.4000989496707916, 0.39608660340309143, -0.13806098699569702, -0.12922798097133636, -0.03325497359037399, 0.07146032899618149, -0.5262513756752014, -0.03417803719639778, -0.1647001951932907, -0.1202089861035347, 0.02834891900420189, 0.08836273849010468, 0.08250785619020462, 0.18948069214820862, -0.34225305914878845, -0.0789143443107605, -0.5488651394844055, -0.10783770680427551, -0.02831893041729927, 0.2612270712852478, -0.35658499598503113, 0.26900988817214966, 0.07661569118499756, 0.16022168099880219, -0.2258853167295456, -0.11174730956554413, -0.14234764873981476, 0.1538926064968109, -0.2539013624191284, -0.18300610780715942, 0.020093875005841255, -0.033022113144397736, 0.032446347177028656, 0.26307523250579834, -0.10170716792345047, -0.12034694850444794, -0.21016660332679749, 0.13039633631706238, 0.1733148992061615, -0.13914810121059418, -0.42444172501564026, 0.12618239223957062, -0.17837150394916534, -0.07915405184030533, 0.13561061024665833, -0.10674086213111877, 0.01610487699508667, 0.1535911113023758, 0.34145426750183105, 0.18046346306800842, -0.24081631004810333, 0.022423939779400826, -0.17508983612060547, -0.005748197436332703, 0.08261381834745407, 0.09879277646541595, 0.4159993529319763, -0.04745185375213623, -0.4201781749725342, -0.12076593190431595, 0.2571184039115906, 0.21899473667144775, 0.25977623462677, -0.4708951711654663, -0.03764653205871582, -0.005140409339219332, 0.28126513957977295, 0.4639758765697479, -0.10165255516767502, -0.21965226531028748, 0.0646819919347763, 0.15854768455028534, -0.030765609815716743, 0.02918543480336666, -0.022620923817157745, 0.18118205666542053, -0.01612614467740059, 0.23530343174934387, -0.08253632485866547, -0.13297221064567566, 0.029162384569644928, 0.40799662470817566, 0.07361767441034317, -0.09352649748325348, 0.3959171772003174, 0.4847466051578522, -0.05235041677951813, 0.12904414534568787, -0.014964954927563667, -0.3467581868171692, 0.1086168885231018, 0.21399588882923126, -0.11747480183839798, 0.43944549560546875, -0.24347248673439026, -0.20665618777275085, -0.16828769445419312, -0.4012371897697449, -0.37102508544921875, 0.15678344666957855, -0.29233455657958984, 0.2601098418235779, -0.038759343326091766, 0.3350966274738312, -0.27534177899360657, -0.13225321471691132, -0.21379579603672028, -0.0059384629130363464, -0.2560798227787018, -0.23134997487068176, 0.020251523703336716, -0.005624748766422272, -0.34754514694213867, 0.04743679240345955, -0.020741943269968033, 0.15935449302196503, 0.2874847650527954, 0.12692493200302124, -0.4176236391067505, -0.20144523680210114, -0.16470611095428467, 0.3538271188735962, 0.11285790801048279, -0.24848249554634094, 0.34150728583335876, 0.1456095576286316, -0.006090879440307617, -0.36973434686660767, -0.0017749741673469543, 0.24747459590435028, 0.3940556049346924, -0.2951098680496216, 0.07545223832130432, 0.3799235224723816, 0.010842015966773033, -0.011850275099277496, 0.2849974036216736, -0.017945192754268646, 0.22351019084453583, 0.3420121371746063, 0.05489581823348999, -0.1651172935962677, 0.040281232446432114, 0.09791786968708038, 0.33622536063194275, -0.4027531147003174, 0.41676029562950134, -0.11942827701568604, -0.08432754129171371, 0.15157754719257355, -0.025141209363937378, -0.2909609377384186, 0.2816595733165741, 0.3355264961719513, -0.07530301064252853, 0.1146567240357399, -0.05788659676909447, 0.006241323426365852, 0.08763876557350159, 0.7724633812904358, 0.19593119621276855, -0.12391506880521774, -0.4452419579029083, 0.016796357929706573, -0.21064460277557373, 0.1111169159412384, 0.02090262994170189, 0.2669529318809509, -0.08794853091239929, 0.12123934924602509, 0.0001888871192932129, 0.22198368608951569, -0.024346143007278442, -0.036271121352910995, 0.3358759582042694, 0.49010565876960754, -0.3260502219200134, -0.27054163813591003, -0.30300748348236084, 0.0936509296298027, 0.18941624462604523, -0.32030242681503296, 0.2062864899635315, 0.21042601764202118, 0.022332750260829926, 0.05450460687279701, -0.2955062985420227, 0.08480256795883179, 0.02599516697227955, 0.3170589804649353, -0.10110784322023392, 0.36279863119125366, -0.02872389554977417, 0.1937134861946106, -0.4154394567012787, -0.260161429643631, -0.14127713441848755, -0.18235960602760315, 0.1771353781223297, 0.7214546203613281, -0.13389283418655396, 0.1961289644241333, -0.5098555088043213, 0.008768090046942234, 0.26201629638671875, 0.06054398790001869, -0.25727301836013794, -0.10828231275081635, -0.12259630113840103, 0.26008522510528564, -0.019397255033254623, 0.2951123118400574, -0.10348021984100342, 0.013167241588234901, -0.40095841884613037, -0.3774634897708893, 0.49682116508483887, -0.18909218907356262, -0.29253920912742615, -0.515038013458252, 0.04853902757167816, 0.20546329021453857, 0.2122131884098053, -0.5291040539741516, 0.1360636055469513, 0.13249023258686066, -0.19690075516700745, -0.27942559123039246, 0.15395472943782806, 0.3200851082801819, 0.20836244523525238, -0.06950542330741882, 0.46464312076568604, 0.18335777521133423, -0.05336606502532959, 0.3023160398006439, -0.18167361617088318 ]
https://github.com/huggingface/datasets/issues/3942
reddit_tifu dataset: Checksums didn't match for dataset source files
Hi @XingxingZhang, We have already fixed this. You should update `datasets` version to at least 1.18.4: ```shell pip install -U datasets ``` And then force the redownload: ```python load_dataset("...", download_mode="force_redownload") ``` Duplicate of: - #3773
## Describe the bug When loading the reddit_tifu dataset, it throws the exception "Checksums didn't match for dataset source files" ## Steps to reproduce the bug ```python import datasets from datasets import load_dataset print(datasets.__version__) # load_dataset('billsum') load_dataset('reddit_tifu', 'short') ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.0 - Platform: mac os - Python version: Python 3.7.6 - PyArrow version: 3.0.0
35
reddit_tifu dataset: Checksums didn't match for dataset source files ## Describe the bug When loading the reddit_tifu dataset, it throws the exception "Checksums didn't match for dataset source files" ## Steps to reproduce the bug ```python import datasets from datasets import load_dataset print(datasets.__version__) # load_dataset('billsum') load_dataset('reddit_tifu', 'short') ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.0 - Platform: mac os - Python version: Python 3.7.6 - PyArrow version: 3.0.0 Hi @XingxingZhang, We have already fixed this. You should update `datasets` version to at least 1.18.4: ```shell pip install -U datasets ``` And then force the redownload: ```python load_dataset("...", download_mode="force_redownload") ``` Duplicate of: - #3773
[ -0.3985463082790375, 0.1268264502286911, -0.09007857739925385, 0.153164342045784, 0.4119488000869751, -0.07225192338228226, 0.13589654862880707, 0.46094679832458496, -0.07004006206989288, -0.08690880239009857, -0.17139890789985657, 0.47255560755729675, 0.2960699200630188, 0.2216588854789734, 0.0006657792255282402, 0.14813414216041565, 0.11325106024742126, 0.12381259351968765, -0.21479007601737976, -0.10398203879594803, -0.051839835941791534, 0.06670444458723068, -0.02181905508041382, -0.0644039660692215, -0.12098346650600433, 0.2648584544658661, 0.10942041873931885, 0.2050814926624298, -0.13820865750312805, -0.19358888268470764, 0.23102430999279022, 0.09475694596767426, -0.17166727781295776, 0.6253609657287598, -0.00010616421059239656, 0.11786527931690216, 0.2978494167327881, -0.07381867617368698, -0.10754533112049103, -0.29031455516815186, -0.22850245237350464, -0.02665671892464161, -0.22869090735912323, -0.015738174319267273, -0.05826370790600777, -0.05077128857374191, -0.12054911255836487, -0.11843641102313995, 0.20542949438095093, 0.3480326235294342, 0.2619141638278961, 0.30784475803375244, 0.2138059288263321, 0.03265298902988434, 0.39049720764160156, 0.1167256087064743, 0.054652340710163116, 0.34778645634651184, -0.008780784904956818, -0.12658606469631195, 0.06808492541313171, 0.09575505554676056, -0.15243656933307648, 0.09426327049732208, -0.0499228909611702, -0.08783718198537827, 0.13935601711273193, -0.1794327050447464, -0.06536813080310822, 0.41482165455818176, 0.3285357356071472, -0.1959817111492157, -0.3916214406490326, 0.15055617690086365, 0.018143393099308014, -0.14976345002651215, 0.2844494879245758, 0.23776432871818542, -0.16546498239040375, 0.25231021642684937, -0.12008464336395264, 0.12104488909244537, 0.024465441703796387, 0.17319735884666443, 0.03334483504295349, -0.05796605348587036, 0.049332212656736374, -0.07787584513425827, -0.16806356608867645, -0.12065580487251282, 0.19161804020404816, -0.011359158903360367, -0.1268768161535263, -0.0633242055773735, -0.3275377154350281, 0.015214577317237854, -0.01632656157016754, -0.005516424775123596, 0.4443410038948059, 0.16946162283420563, 0.11553226411342621, 0.231002539396286, -0.17301303148269653, 0.24855971336364746, -0.029413077980279922, 0.06125408038496971, -0.08998323231935501, 0.26680830121040344, 0.2934519648551941, 0.0272210743278265, -0.19664587080478668, 0.16661489009857178, -0.026162628084421158, -0.06191188842058182, 0.3498399257659912, 0.061794769018888474, 0.2732431888580322, -0.38828152418136597, -0.352694034576416, 0.13785384595394135, 0.16148412227630615, -0.26834192872047424, 0.03409642353653908, 0.3218442499637604, -0.11961449682712555, 0.20560967922210693, -0.22457298636436462, 0.323905885219574, -0.13897301256656647, -0.049633126705884933, -0.2525368332862854, -0.031232405453920364, -0.12286372482776642, -0.21305164694786072, 0.15806995332241058, -0.3874785006046295, 0.5200120210647583, 0.13299117982387543, 0.27098190784454346, -0.14819008111953735, 0.008920997381210327, -0.0431147925555706, 0.02433542162179947, 0.38024312257766724, -0.20150534808635712, 0.04939752072095871, 0.2550950348377228, 0.0693126767873764, -0.07044259458780289, 0.11417655646800995, -0.43926167488098145, -0.14808227121829987, -0.18086007237434387, 0.3100427985191345, -0.2501484453678131, -0.18149049580097198, -0.26396775245666504, -0.3084105849266052, 0.2988123297691345, -0.189163938164711, 0.038582779467105865, -0.2646740674972534, -0.16466493904590607, -0.20922493934631348, 0.2225358784198761, 0.1276826560497284, -0.4847058951854706, 0.13471566140651703, -0.050508830696344376, -0.23089319467544556, 0.2965949475765228, 0.2197384536266327, -0.08913258463144302, 0.07854314893484116, -0.21694530546665192, 0.09270913898944855, 0.31197071075439453, -0.5282863974571228, -0.6353448033332825, -0.2045745551586151, 0.039253488183021545, 0.19975057244300842, 0.13670162856578827, 0.04899720102548599, 0.0670531690120697, -0.11922768503427505, 0.20037060976028442, 0.2554532289505005, 0.12867408990859985, 0.2997415065765381, -0.37793058156967163, -0.337425172328949, -0.02445264905691147, 0.14900736510753632, 0.07052867859601974, 0.045409075915813446, 0.19953137636184692, -0.17808519303798676, 0.24918687343597412, 0.00483790785074234, -0.30496132373809814, 0.01783401146531105, 0.42414483428001404, 0.16811737418174744, 0.018956681713461876, -0.3989565372467041, -0.11432211846113205, 0.2084313929080963, -0.060611337423324585, 0.19601699709892273, 0.021861426532268524, -0.1804831176996231, -0.5836138725280762, -0.0075209541246294975, -0.04500945284962654, -0.04989178851246834, 0.22370782494544983, 0.36126407980918884, 0.15903766453266144, 0.034652937203645706, -0.2068694829940796, 0.25423046946525574, -0.387337863445282, 0.07884390652179718, 0.03907502815127373, 0.5304796099662781, -0.2218928188085556, -0.1873174011707306, 0.2554079294204712, -0.018914423882961273, 0.02929319068789482, -0.1731528639793396, -0.12092994898557663, 0.5735873579978943, 0.23608063161373138, 0.03794192150235176, 0.08442872017621994, 0.06843621283769608, 0.17692391574382782, -0.3511032462120056, -0.21226724982261658, 0.46541252732276917, -0.006416173651814461, 0.025509566068649292, -0.03350236266851425, 0.239033043384552, -0.08995045721530914, -0.10705431550741196, -0.1001558005809784, 0.006766332313418388, 0.4162753224372864, -0.03768787533044815, 0.015117626637220383, -0.31224650144577026, 0.22215260565280914, 0.032710961997509, -0.15496623516082764, 0.04554423689842224, -0.027842864394187927, 0.07909323275089264, 0.40249648690223694, -0.016398299485445023, 0.08414797484874725, 0.0936824306845665, 0.09193402528762817, -0.006348619237542152, -0.020560285076498985, 0.3857575058937073, 0.3906041383743286, 0.2282775640487671, -0.058557700365781784, 0.06422259658575058, -0.3530418872833252, -0.1700582057237625, 0.08612460643053055, 0.12253231555223465, 0.1640954613685608, 0.22464099526405334, 0.11112469434738159, 0.12536703050136566, -0.32923442125320435, -0.08777181804180145, -0.07941263169050217, 0.3189307153224945, -0.5176076889038086, -0.14562170207500458, -0.26374971866607666, -0.06410446763038635, 0.0031649870797991753, 0.07688187807798386, -0.1447913944721222, -0.243442103266716, 0.033396318554878235, 0.1224726140499115, -0.07428748905658722, 0.2786251902580261, -0.1493644118309021, -0.06425164639949799, 0.25598064064979553, -0.2241705358028412, 0.02419871836900711, -0.1484820693731308, 0.018047990277409554, 0.12832532823085785, 0.3840254843235016, 0.17618826031684875, 0.3158921003341675, -0.4577540159225464, -0.07187271118164062, -0.19822821021080017, -0.4003252387046814, 0.07939838618040085, -0.25446873903274536, 0.6606245040893555, -0.015549838542938232, 0.30378276109695435, -0.00838865339756012, -0.18518389761447906, 0.18952322006225586, -0.11352404206991196, -0.39809802174568176, 0.1655430793762207, 0.03197909891605377, -0.1102650985121727, -0.010936914011836052, -0.16183143854141235, -0.010167127475142479, -0.37419766187667847, -0.18877674639225006, 0.2284650057554245, 0.14551189541816711, -0.022457636892795563, 0.30336999893188477, 0.05444300174713135, 0.007977831177413464, 0.21860714256763458, -0.22175471484661102, -0.6386210322380066, 0.5002471804618835, -0.1377888321876526, -0.41900789737701416, -0.038036562502384186, 0.13464917242527008, 0.06000492721796036, 0.21783548593521118, -0.4655655026435852, -0.4032660126686096, -0.19466067850589752, 0.1383519321680069, 0.14135846495628357, 0.07818103581666946, 0.047709718346595764, 0.030017564073204994, -0.184848353266716, -0.19776934385299683, 0.04907487705349922, -0.020014025270938873, -0.2559484541416168, 0.22736266255378723, -0.19552260637283325, 0.21839043498039246, -0.19372393190860748, 0.20752671360969543, 0.34051313996315, -0.07772815227508545, 0.06958403438329697, -0.022812174633145332, 0.40995994210243225, -0.10902313143014908, -0.2951969504356384, -0.05343180149793625, -0.027030229568481445, 0.052748434245586395, 0.14017631113529205, -0.046143434941768646, 0.1388128250837326, -0.19818344712257385, -0.08270750939846039, -0.3195892572402954, -0.20451100170612335, 0.0351480208337307, -0.34877803921699524, 0.1258883774280548, 0.05217290297150612, 0.086186982691288, -0.030862964689731598, -0.31614455580711365, 0.08020955324172974, 0.1962919533252716, -0.31627580523490906, -0.13932302594184875, -0.70257568359375, 0.008874437771737576, 0.014840267598628998, 0.18248683214187622, 0.22602079808712006, 0.4048420190811157, 0.0724812000989914, -0.23188424110412598, -0.020822279155254364, 0.008074766024947166, 0.19352233409881592, -0.4547176957130432, 0.2800038456916809, 0.1534048318862915, 0.35895049571990967, -0.19810478389263153, -0.11394880712032318, -0.10073960572481155, 0.08842331916093826, 0.4818376302719116, 0.2587747871875763, -0.3039301931858063, 0.13075955212116241, 0.3101760149002075, 0.33516567945480347, 0.0653010904788971, -0.11884430050849915, -0.4309219717979431, -0.06544136255979538, -0.40930432081222534, -0.025044120848178864, 0.042651690542697906, 0.15850551426410675, -0.32972776889801025, -0.10470722615718842, -0.17108196020126343, -0.0672672688961029, 0.3492293357849121, 0.2445823699235916, 0.31921645998954773, -0.08806807547807693, 0.059787411242723465, -0.25656041502952576, -0.2433246374130249, 0.5004040598869324, 0.590020477771759, -0.17352396249771118, -0.38924530148506165, -0.2921351492404938, -0.27421703934669495, -0.004819050431251526, -0.001047477126121521, -0.10321123898029327, -0.2733513414859772, -0.0534011647105217, 0.05320210009813309, 0.08755388855934143, 0.21830272674560547, 0.0769101232290268, -0.07908178865909576, -0.3087059557437897, -0.35128629207611084, 0.13027314841747284, -0.01399222295731306, -0.06083901599049568, 0.46091875433921814, 0.2954373359680176, -0.03260692209005356, 0.4726548194885254, 0.1622205525636673, 0.8940860629081726, -0.16533897817134857, -0.2153727412223816, 0.2060222327709198, -0.19958099722862244, 0.3531932532787323, -0.1270730197429657, 0.039527811110019684, -0.15721914172172546, -0.3440844416618347, 0.0689157247543335, -0.17436175048351288, 0.03225759416818619, 0.17790091037750244, -0.19136054813861847, 0.08956838399171829, -0.13884472846984863, 0.021223174408078194, 0.13264280557632446, 0.2617124319076538, 0.036639563739299774, 0.1265442967414856, -0.08653010427951813, 0.2470512092113495, -0.07131889462471008, 0.1078656017780304, 0.007368694990873337, -0.038833826780319214, -0.3476095497608185, -0.05781771242618561, -0.5247454047203064, 0.1427624523639679, -0.09104442596435547, 0.09444587677717209, -0.0052458755671978, -0.2470579594373703, -0.2983826994895935, 0.14773982763290405, 0.45771849155426025, 0.33190590143203735, -0.13353808224201202, 0.2183855026960373, 0.25252556800842285, -0.018292250111699104, 0.13754434883594513, -0.036275818943977356, 0.39666786789894104, -0.031134337186813354, -0.45780277252197266, 0.27063870429992676, -0.03445727750658989, -0.365095853805542, 0.03454248607158661, -0.05359339714050293, 0.022442009299993515, -0.19309568405151367, 0.08921994268894196, -0.10260695219039917, 0.05704762414097786, -0.29419636726379395, 0.22701527178287506, 0.11259663105010986, 0.02135823480784893, 0.2128237783908844, 0.15709909796714783, -0.3726333975791931, -0.1849452555179596, 0.3968793749809265, -0.06804663687944412, -0.15564745664596558, 0.40688440203666687, -0.0712847113609314, -0.1414739489555359, -0.23446279764175415, -0.0849199891090393, -0.31115633249282837, -0.3960669934749603, 0.05954260006546974, -0.3921937048435211, 0.03468182682991028, 0.03812052309513092, 0.22267518937587738, 0.35736769437789917, 0.22448763251304626, 0.28511178493499756, -0.7140568494796753, -0.24381926655769348, -0.08251671493053436, 0.11523894965648651, 0.15421618521213531, -0.15307152271270752, -0.034288376569747925, -0.07245709002017975, 0.016888204962015152, -0.40559956431388855, 0.01728188619017601, -0.23402774333953857, 0.03214652091264725, 0.2626633942127228, 0.11254598945379257, 0.17530503869056702, -0.2145722210407257, 0.24851733446121216, -0.18974709510803223, -0.12934397161006927, -0.32229018211364746, -0.13972170650959015, 0.04457075893878937, 0.030656160786747932, -0.23111623525619507, 0.015801571309566498, -0.06758582592010498, -0.020114753395318985, -0.07224871963262558, -0.05140618979930878, 0.0383681058883667, -0.04441722482442856, 0.22181953489780426, 0.04242563247680664, 0.02907097339630127, 0.05875946581363678, -0.14107726514339447, -0.15390056371688843, 0.13292129337787628, 0.06541489064693451, 0.11387059092521667, -0.03734865039587021, -0.047245755791664124, -0.0500401109457016, 0.08057378977537155, -0.023670360445976257, 0.2732909619808197, 0.39499160647392273, -0.16856390237808228, -0.03320756182074547, 0.39566725492477417, 0.2895078957080841, 0.41754549741744995, -0.2980008125305176, -0.017003517597913742, 0.20766958594322205, 0.316057413816452, -0.37783071398735046, -0.05006856471300125, 0.3099745213985443, 0.1895557940006256, 0.09006655216217041, 0.13661114871501923, 0.13507364690303802, -0.41322675347328186, 0.260893851518631, 0.16530674695968628, 0.4380663335323334, -0.18138141930103302, 0.3426305055618286, 0.42455482482910156, -0.07183963060379028, -0.061152782291173935, -0.010776443406939507, -0.06944824755191803, 0.004959627985954285, 0.18195444345474243, 0.1912846714258194, 0.2643626630306244, -0.4795336425304413, 0.05243225768208504, -0.18106144666671753, -0.20231543481349945, 0.3155075013637543, 0.2392916977405548, -0.07193982601165771, 0.040875550359487534, 0.16569587588310242, 0.26517564058303833, 0.02594592049717903, 0.17136530578136444, -0.30571410059928894, 0.05567470192909241, 0.04832666739821434, -0.05388530716300011, -0.10458417236804962, -0.2218398153781891, 0.10728444159030914, -0.05463354289531708, 0.012042827904224396, 0.20716023445129395, -0.08331048488616943, 0.24697943031787872, -0.32292425632476807, -0.40533679723739624, 0.17505264282226562, 0.021421795710921288, 0.051653895527124405, -0.2313874214887619, 0.13324086368083954, 0.24861079454421997, -0.15608742833137512, 0.17846085131168365, 0.46984973549842834, 0.5059426426887512, 0.3805764615535736, 0.21109704673290253, -0.17299844324588776, -0.08966267108917236, 0.012181004509329796, -0.13550956547260284, 0.41196995973587036, 0.0007015466690063477, -0.10303594172000885, 0.291939377784729, 0.28789079189300537, -0.21517442166805267, 0.018215514719486237, 0.08318819105625153, 0.024046897888183594, -0.09587734937667847, 0.15471214056015015, 0.012074500322341919, -0.12967102229595184, -0.186014324426651, -0.06978366523981094, -0.20006528496742249, 0.1387847661972046, 0.36008772253990173, 0.10608479380607605, 0.14733672142028809, -0.24591217935085297, 0.1427752822637558, 0.04693497717380524, 0.26690754294395447, 0.3562189042568207, -0.10909786075353622, -0.13220714032649994, -0.26212239265441895, -0.7937613129615784, 0.20005840063095093, -0.1258476823568344, -0.009332705289125443, -0.05196407437324524, 0.29929739236831665, -0.08362971991300583, 0.3115607500076294, 0.28264546394348145, -0.3267163038253784, -0.407503217458725, 0.19249293208122253, -0.33631497621536255, -0.0607922337949276, -0.33928412199020386, -0.12948186695575714, 0.1018279641866684, -0.35435613989830017, 0.15045759081840515, -0.08632560819387436, 0.1835865080356598, 0.011570846661925316, -0.13607554137706757, 0.00023239105939865112, -0.10715478658676147, 0.34419724345207214, -0.05188219994306564, 0.3112031817436218, -0.022623557597398758, -0.14913533627986908, -0.34012407064437866, -0.13424572348594666, -0.09563411772251129, 0.566102921962738, 0.015056187286973, 0.34652191400527954, -0.18925881385803223, -0.2565208375453949, -0.15744727849960327, 0.26687556505203247, 0.09713934361934662, -0.6565985083580017, -0.2212447077035904, -0.008265931159257889, 0.062155090272426605, -0.1685992181301117, 0.06024752929806709, -0.0058339908719062805, -0.12803587317466736, 0.34746047854423523, -0.20682235062122345, -0.38530921936035156, 0.24808669090270996, -0.03845023363828659, -0.051772452890872955, -0.143634632229805, 0.22550538182258606, -0.03605036437511444, 0.049063414335250854, -0.6397826671600342, 0.31014570593833923, 0.36389511823654175, 0.005394568666815758, -0.1337496042251587, 0.24297010898590088, -0.06995253264904022, 0.24678973853588104, -0.10457314550876617, 0.19799119234085083, -0.022992074489593506, -0.10683178901672363, 0.128611758351326, -0.12798553705215454 ]
https://github.com/huggingface/datasets/issues/3942
reddit_tifu dataset: Checksums didn't match for dataset source files
thanks @albertvillanova . by upgrading to 1.18.4 and using `load_dataset("...", download_mode="force_redownload")` fixed the bug. using the following as you suggested in another thread can also fixed the bug ``` pip install git+https://github.com/huggingface/datasets#egg=datasets ```
## Describe the bug When loading the reddit_tifu dataset, it throws the exception "Checksums didn't match for dataset source files" ## Steps to reproduce the bug ```python import datasets from datasets import load_dataset print(datasets.__version__) # load_dataset('billsum') load_dataset('reddit_tifu', 'short') ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.0 - Platform: mac os - Python version: Python 3.7.6 - PyArrow version: 3.0.0
33
reddit_tifu dataset: Checksums didn't match for dataset source files ## Describe the bug When loading the reddit_tifu dataset, it throws the exception "Checksums didn't match for dataset source files" ## Steps to reproduce the bug ```python import datasets from datasets import load_dataset print(datasets.__version__) # load_dataset('billsum') load_dataset('reddit_tifu', 'short') ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.0 - Platform: mac os - Python version: Python 3.7.6 - PyArrow version: 3.0.0 thanks @albertvillanova . by upgrading to 1.18.4 and using `load_dataset("...", download_mode="force_redownload")` fixed the bug. using the following as you suggested in another thread can also fixed the bug ``` pip install git+https://github.com/huggingface/datasets#egg=datasets ```
[ -0.42410793900489807, 0.1216534674167633, -0.08513222634792328, 0.11597372591495514, 0.4104369282722473, -0.10158805549144745, 0.16164954006671906, 0.4821440577507019, -0.06761131435632706, -0.0831584632396698, -0.17158035933971405, 0.4847012460231781, 0.2961725890636444, 0.2609197199344635, -0.005218564532697201, 0.14257271587848663, 0.08138907700777054, 0.09421785175800323, -0.1835360825061798, -0.12398014217615128, -0.03139808401465416, 0.07425891607999802, -0.06559503078460693, -0.03870120644569397, -0.12725725769996643, 0.27856096625328064, 0.09625490009784698, 0.19583746790885925, -0.12992776930332184, -0.20152506232261658, 0.2113577276468277, 0.12532106041908264, -0.22196947038173676, 0.636290967464447, -0.0001037592301145196, 0.11301752924919128, 0.30006319284439087, -0.07191501557826996, -0.08335107564926147, -0.3188896179199219, -0.19300076365470886, -0.012956444174051285, -0.17955301702022552, -0.003730103373527527, -0.1156981810927391, -0.058510150760412216, -0.09739896655082703, -0.06719852983951569, 0.21224594116210938, 0.31747108697891235, 0.2753218710422516, 0.307834267616272, 0.18722952902317047, 0.04767774045467377, 0.4358133375644684, 0.1765977293252945, 0.03763256222009659, 0.3537876307964325, -0.022257916629314423, -0.12099282443523407, 0.06151783838868141, 0.08064113557338715, -0.15998616814613342, 0.10101589560508728, -0.06591934710741043, -0.029265493154525757, 0.13965517282485962, -0.18959945440292358, -0.0617789626121521, 0.44006407260894775, 0.3036540150642395, -0.21484991908073425, -0.39980554580688477, 0.12740302085876465, 0.014880184084177017, -0.1722579002380371, 0.2918678820133209, 0.2763572931289673, -0.18040169775485992, 0.24066683650016785, -0.10716959089040756, 0.1765078902244568, 0.013362474739551544, 0.1725681722164154, 0.029583849012851715, -0.06825879216194153, 0.00822819210588932, -0.05688917636871338, -0.15947206318378448, -0.13006798923015594, 0.07155920565128326, -0.03214368224143982, -0.12414029240608215, -0.046344053000211716, -0.3199129104614258, 0.006077934056520462, -0.001688249409198761, -0.0602729395031929, 0.4826948046684265, 0.17791828513145447, 0.12457042932510376, 0.2734241783618927, -0.14927345514297485, 0.25452694296836853, -0.006030788645148277, 0.05169249698519707, -0.07793673127889633, 0.2043066769838333, 0.36898934841156006, -0.006633826531469822, -0.1574362814426422, 0.16222137212753296, -0.039365269243717194, -0.03390742093324661, 0.34803149104118347, 0.03466548025608063, 0.237738236784935, -0.367908775806427, -0.3306001126766205, 0.08055989444255829, 0.16306450963020325, -0.26450657844543457, 0.07815392315387726, 0.3441263735294342, -0.09925390034914017, 0.1183926910161972, -0.26781147718429565, 0.3250125050544739, -0.13332721590995789, -0.01965814083814621, -0.2575782239437103, -0.048782479017972946, -0.15730971097946167, -0.22141672670841217, 0.1648215502500534, -0.37670931220054626, 0.51683509349823, 0.08772332221269608, 0.31259679794311523, -0.10089093446731567, -0.009915145114064217, -0.07040868699550629, 0.06822962313890457, 0.4129200875759125, -0.1413106769323349, 0.030458712950348854, 0.20437189936637878, 0.06444311887025833, -0.11204296350479126, 0.07230270653963089, -0.395852267742157, -0.11515486985445023, -0.14376415312290192, 0.3076822757720947, -0.2786623239517212, -0.18113887310028076, -0.2636614441871643, -0.28435155749320984, 0.28131648898124695, -0.1981930285692215, 0.026653073728084564, -0.24718450009822845, -0.16558155417442322, -0.22023415565490723, 0.20797871053218842, 0.11958536505699158, -0.4008602201938629, 0.1340445876121521, 0.040018320083618164, -0.2631478011608124, 0.2815415561199188, 0.23824149370193481, -0.08492698520421982, -0.016569852828979492, -0.18423336744308472, 0.16658364236354828, 0.2956678569316864, -0.5067372918128967, -0.5864637494087219, -0.19609716534614563, 0.08660297095775604, 0.15154533088207245, 0.12352727353572845, 0.027824247255921364, 0.08128299564123154, -0.15297535061836243, 0.16888193786144257, 0.25631576776504517, 0.14704982936382294, 0.32747265696525574, -0.3717188537120819, -0.34675928950309753, -0.06833142042160034, 0.14922255277633667, 0.04078677296638489, -0.027711980044841766, 0.18484103679656982, -0.2665775716304779, 0.23141589760780334, -0.00828130915760994, -0.25885847210884094, -0.0013400204479694366, 0.4629289209842682, 0.12366145849227905, 0.03984364867210388, -0.393496572971344, -0.11942531913518906, 0.1840357780456543, -0.036974042654037476, 0.24534614384174347, 0.025998137891292572, -0.16557058691978455, -0.5125531554222107, 0.021879693493247032, -0.02506105974316597, -0.04371185973286629, 0.23404070734977722, 0.3688035011291504, 0.19658730924129486, 0.0488777793943882, -0.2205757200717926, 0.2265203297138214, -0.3307696282863617, 0.08732543140649796, 0.11346916854381561, 0.5346266031265259, -0.1987527757883072, -0.22654670476913452, 0.28730225563049316, -0.04403257369995117, 0.014706797897815704, -0.19546693563461304, -0.08233775943517685, 0.5871131420135498, 0.23655375838279724, 0.020058058202266693, 0.1091153472661972, 0.10860957950353622, 0.19482241570949554, -0.3378280997276306, -0.20329348742961884, 0.44427409768104553, -0.02978077158331871, 0.006006285548210144, -0.07321351021528244, 0.2685295641422272, -0.09328527748584747, -0.07431340962648392, -0.0977485254406929, 0.018031200394034386, 0.39661741256713867, -0.0513019934296608, -0.010614681988954544, -0.27663925290107727, 0.2215072512626648, 0.024937551468610764, -0.16487276554107666, 0.009584760293364525, -0.07905934005975723, 0.09051341563463211, 0.4233699142932892, -0.034930869936943054, 0.08302697539329529, 0.11910676211118698, 0.03723194822669029, -0.03349149972200394, -0.05237860232591629, 0.35637521743774414, 0.36151838302612305, 0.2445402890443802, -0.03817351534962654, 0.052173830568790436, -0.3511779010295868, -0.18289881944656372, 0.09715939313173294, 0.11206672340631485, 0.17187093198299408, 0.20041537284851074, 0.1687258929014206, 0.10543493181467056, -0.358381450176239, -0.05855670943856239, -0.07907111197710037, 0.2824411988258362, -0.45759317278862, -0.08441460132598877, -0.23298870027065277, -0.05392898991703987, 0.06352595239877701, 0.06435839086771011, -0.18518821895122528, -0.267781138420105, 0.07188427448272705, 0.11064033210277557, -0.08964937925338745, 0.28308263421058655, -0.10163336992263794, -0.08071587979793549, 0.285416841506958, -0.2564376890659332, -0.008692115545272827, -0.22790437936782837, -0.006023570895195007, 0.13854220509529114, 0.3668513596057892, 0.18449601531028748, 0.3543097674846649, -0.4349476993083954, -0.07028964906930923, -0.17791619896888733, -0.4401721954345703, 0.12256369739770889, -0.29300183057785034, 0.6666306853294373, 0.025609590113162994, 0.2784463167190552, 0.0197882279753685, -0.1328682005405426, 0.22282014787197113, -0.20121774077415466, -0.391088604927063, 0.18680304288864136, 0.0280624870210886, -0.16774237155914307, -0.0636751651763916, -0.106293685734272, -0.0331958532333374, -0.36104196310043335, -0.10889841616153717, 0.2706433832645416, 0.12038756906986237, -0.008712775073945522, 0.31241583824157715, 0.03285142034292221, -0.04288420453667641, 0.19938026368618011, -0.2519604563713074, -0.6342232823371887, 0.5193831324577332, -0.16573765873908997, -0.4650087058544159, -0.023607444018125534, 0.16154833137989044, 0.04646991193294525, 0.21681509912014008, -0.4444711208343506, -0.4417552053928375, -0.1710699200630188, 0.16845177114009857, 0.18459990620613098, 0.06556779891252518, 0.04955694079399109, 0.01563991978764534, -0.22200259566307068, -0.21178674697875977, 0.04596993699669838, 0.018832877278327942, -0.23630133271217346, 0.19015607237815857, -0.17148828506469727, 0.14821919798851013, -0.15507441759109497, 0.20105507969856262, 0.29569289088249207, -0.12509958446025848, 0.037527382373809814, -0.07606223970651627, 0.3984849750995636, -0.08732115477323532, -0.2652968466281891, -0.028558064252138138, -0.007674053311347961, 0.07874514907598495, 0.15039366483688354, -0.01348232664167881, 0.07918640226125717, -0.2402215600013733, -0.10224486887454987, -0.2540956735610962, -0.24346178770065308, 0.05919121205806732, -0.265656977891922, 0.13584837317466736, 0.07080960273742676, 0.12096454948186874, -0.04165318235754967, -0.36599627137184143, 0.08310863375663757, 0.20150133967399597, -0.31478646397590637, -0.1508454829454422, -0.692528247833252, 0.021448545157909393, -0.06690903753042221, 0.17957086861133575, 0.2431207299232483, 0.3036316931247711, 0.06772200763225555, -0.27007874846458435, 0.01802711933851242, -0.020248817279934883, 0.1763063371181488, -0.4398645758628845, 0.24815377593040466, 0.16293789446353912, 0.31232526898384094, -0.22533610463142395, -0.1016724705696106, -0.13414070010185242, 0.0966571792960167, 0.4808392822742462, 0.24302273988723755, -0.3737947940826416, 0.08777166157960892, 0.3234921097755432, 0.2908155024051666, 0.10370312631130219, -0.10580597817897797, -0.43681594729423523, -0.08383962512016296, -0.4116022288799286, -0.021862417459487915, 0.047754786908626556, 0.13294072449207306, -0.3464702367782593, -0.07899430394172668, -0.16329480707645416, -0.01639968901872635, 0.3298337459564209, 0.2809433937072754, 0.31333479285240173, -0.12090285122394562, 0.05616425350308418, -0.2406426966190338, -0.21895408630371094, 0.5278021097183228, 0.5243102312088013, -0.09495501220226288, -0.3953956067562103, -0.2426302433013916, -0.31014135479927063, -0.0008848980069160461, -0.01861630380153656, -0.12199641019105911, -0.276183158159256, -0.09389516711235046, 0.08738747984170914, 0.06449852883815765, 0.22765512764453888, 0.08797167986631393, -0.08599011600017548, -0.2802524268627167, -0.32431668043136597, 0.1384938359260559, -0.04852651059627533, -0.06772169470787048, 0.419759601354599, 0.33460530638694763, -0.005411038175225258, 0.4944470524787903, 0.2104489803314209, 0.8915156722068787, -0.18672654032707214, -0.18447883427143097, 0.2751500606536865, -0.22372256219387054, 0.3225424289703369, -0.12143709510564804, 0.09053120762109756, -0.1791004240512848, -0.29573774337768555, 0.07580674439668655, -0.18514223396778107, -0.012187652289867401, 0.16056500375270844, -0.2226962000131607, 0.05815182998776436, -0.0758061483502388, 0.0054927244782447815, 0.07303959131240845, 0.2642582356929779, 0.04877527058124542, 0.10008884966373444, -0.06191050261259079, 0.26461362838745117, -0.04388856887817383, 0.11898493766784668, 0.06512622535228729, -0.08078570663928986, -0.3411737382411957, -0.07118045538663864, -0.5269160866737366, 0.1258692443370819, -0.09449028223752975, 0.04403086379170418, 0.012842049822211266, -0.24539999663829803, -0.30291613936424255, 0.12309043109416962, 0.4428364634513855, 0.312519907951355, -0.13583175837993622, 0.249057337641716, 0.21313300728797913, -0.038317326456308365, 0.11087541282176971, -0.012906279414892197, 0.35552555322647095, -0.03732595220208168, -0.4588998258113861, 0.266567200422287, -0.03655267506837845, -0.32066208124160767, 0.028798162937164307, -0.03525689244270325, -0.010628744959831238, -0.18608208000659943, 0.18038645386695862, -0.07072457671165466, 0.020950935781002045, -0.2725621461868286, 0.2378467619419098, 0.11852845549583435, 0.039258453994989395, 0.20153731107711792, 0.16630156338214874, -0.3900631070137024, -0.1969236135482788, 0.38650789856910706, -0.06494759768247604, -0.12787464261054993, 0.4110037386417389, -0.07160621881484985, -0.170067697763443, -0.2587478756904602, -0.12736079096794128, -0.35832682251930237, -0.39254915714263916, 0.08100081235170364, -0.3353017270565033, 0.04288521409034729, 0.04804317653179169, 0.22222214937210083, 0.2722017168998718, 0.21637114882469177, 0.30735012888908386, -0.6881644129753113, -0.23217926919460297, -0.08987416326999664, 0.12956872582435608, 0.12610802054405212, -0.1158963218331337, -0.01201644353568554, -0.08643326163291931, -0.0231084655970335, -0.4247000217437744, 0.047091126441955566, -0.25036993622779846, 0.005843056365847588, 0.3080313801765442, 0.08561348915100098, 0.24932850897312164, -0.20334812998771667, 0.24991962313652039, -0.17247524857521057, -0.16392995417118073, -0.32887235283851624, -0.11373180150985718, 0.03530515730381012, 0.009282121434807777, -0.237827330827713, 0.02741830423474312, -0.014030136168003082, -0.06026224419474602, -0.08170092105865479, -0.01948138326406479, 0.005559422075748444, -0.0914740264415741, 0.2221047729253769, 0.004905775189399719, 0.07315655052661896, 0.08821552991867065, -0.13762086629867554, -0.11984315514564514, 0.13196496665477753, 0.05512173846364021, 0.10499054938554764, -0.0919758751988411, -0.054070018231868744, 0.01179576851427555, 0.09369468688964844, 0.004348225891590118, 0.23389533162117004, 0.4264317452907562, -0.15376675128936768, -0.05100440979003906, 0.3227175176143646, 0.32228735089302063, 0.40581610798835754, -0.28124064207077026, -0.028919463977217674, 0.19298967719078064, 0.329060822725296, -0.36459869146347046, -0.020191660150885582, 0.2974088191986084, 0.21256186068058014, 0.14926959574222565, 0.121468685567379, 0.1402864307165146, -0.3529191017150879, 0.2465333640575409, 0.1632952094078064, 0.4690539538860321, -0.15326277911663055, 0.2575383484363556, 0.3713991641998291, -0.08806860446929932, -0.03069925680756569, 0.0036938581615686417, -0.059450190514326096, 0.019754484295845032, 0.16495513916015625, 0.18002504110336304, 0.2427227646112442, -0.511440098285675, -0.0034253783524036407, -0.1807260513305664, -0.17003823816776276, 0.2842654585838318, 0.24418728053569794, -0.03078600764274597, 0.017631981521844864, 0.16404634714126587, 0.3417389392852783, 0.03355946019291878, 0.16787073016166687, -0.3114093840122223, 0.15842384099960327, 0.05875491350889206, -0.0651332437992096, -0.13625332713127136, -0.2133292853832245, 0.10712064802646637, -0.03682159632444382, -0.0005957186222076416, 0.19097183644771576, -0.046201542019844055, 0.24215497076511383, -0.23695243895053864, -0.4358561635017395, 0.16192877292633057, -0.0011737607419490814, 0.08181046694517136, -0.19525453448295593, 0.1428992599248886, 0.2592630386352539, -0.13981062173843384, 0.1648840457201004, 0.48464059829711914, 0.5281432867050171, 0.3438890278339386, 0.15207652747631073, -0.1600901186466217, -0.1637822389602661, 0.014044499024748802, -0.15508060157299042, 0.4222296178340912, 0.058570701628923416, -0.06211758777499199, 0.30539217591285706, 0.2841912806034088, -0.21383708715438843, -0.015971630811691284, 0.06504134833812714, 0.020440777763724327, -0.04447323828935623, 0.12868556380271912, 0.002024265006184578, -0.15050151944160461, -0.20987717807292938, -0.1299455761909485, -0.15172913670539856, 0.15432024002075195, 0.3381198048591614, 0.11113309860229492, 0.16120675206184387, -0.28439590334892273, 0.15750010311603546, 0.05475851520895958, 0.34554925560951233, 0.33522114157676697, -0.13730871677398682, -0.1104203388094902, -0.23817196488380432, -0.7406937479972839, 0.18637800216674805, -0.13247334957122803, -0.027810316532850266, -0.11021281778812408, 0.30541694164276123, -0.06704214960336685, 0.3236744999885559, 0.2755945324897766, -0.3410309851169586, -0.398062527179718, 0.19753509759902954, -0.371326208114624, -0.016734417527914047, -0.36980366706848145, -0.147373229265213, 0.1497357040643692, -0.32640284299850464, 0.12538543343544006, -0.10230331867933273, 0.19810092449188232, 0.011113672517240047, -0.07367534935474396, -0.029503365978598595, -0.13584238290786743, 0.3327484726905823, -0.06364216655492783, 0.27868396043777466, -0.0042929574847221375, -0.15564942359924316, -0.3237205445766449, -0.13558997213840485, -0.0823710560798645, 0.5634674429893494, -0.0003953017294406891, 0.2956925332546234, -0.18387950956821442, -0.2951936721801758, -0.13891907036304474, 0.24530108273029327, 0.11238300800323486, -0.6536940932273865, -0.17699283361434937, -0.03734579682350159, 0.0743877962231636, -0.15498214960098267, 0.054213251918554306, 0.0071577876806259155, -0.14655502140522003, 0.274323970079422, -0.2376749962568283, -0.3513871133327484, 0.29337620735168457, -0.09869281202554703, -0.03170904517173767, -0.12901702523231506, 0.1814124435186386, -0.0037690773606300354, 0.02419222891330719, -0.6241682171821594, 0.339577317237854, 0.3370667099952698, 0.0026863068342208862, -0.16349807381629944, 0.22545261681079865, -0.07395704090595245, 0.20524854958057404, -0.12349767982959747, 0.20571333169937134, -0.002731870859861374, -0.1280880719423294, 0.08986599743366241, -0.12346921861171722 ]
https://github.com/huggingface/datasets/issues/3942
reddit_tifu dataset: Checksums didn't match for dataset source files
The latter solution (installing from GitHub) was proposed because the fix was not released yet. But last week we made the 1.18.4 patch release (with the fix), so no longer necessary to install from GitHub. You can now install from PyPI, as usual: ```shell pip install -U datasets ```
## Describe the bug When loading the reddit_tifu dataset, it throws the exception "Checksums didn't match for dataset source files" ## Steps to reproduce the bug ```python import datasets from datasets import load_dataset print(datasets.__version__) # load_dataset('billsum') load_dataset('reddit_tifu', 'short') ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.0 - Platform: mac os - Python version: Python 3.7.6 - PyArrow version: 3.0.0
49
reddit_tifu dataset: Checksums didn't match for dataset source files ## Describe the bug When loading the reddit_tifu dataset, it throws the exception "Checksums didn't match for dataset source files" ## Steps to reproduce the bug ```python import datasets from datasets import load_dataset print(datasets.__version__) # load_dataset('billsum') load_dataset('reddit_tifu', 'short') ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.0 - Platform: mac os - Python version: Python 3.7.6 - PyArrow version: 3.0.0 The latter solution (installing from GitHub) was proposed because the fix was not released yet. But last week we made the 1.18.4 patch release (with the fix), so no longer necessary to install from GitHub. You can now install from PyPI, as usual: ```shell pip install -U datasets ```
[ -0.39724549651145935, 0.11584989726543427, -0.09440062940120697, 0.07433749735355377, 0.3742976784706116, -0.10165633261203766, 0.1341250240802765, 0.5053941011428833, -0.15059837698936462, -0.039488285779953, -0.15302638709545135, 0.49132516980171204, 0.306779146194458, 0.21832896769046783, -0.009193767793476582, 0.13445055484771729, 0.11480779945850372, 0.10606067627668381, -0.13345494866371155, -0.05729642137885094, -0.004550747573375702, -0.009349407628178596, -0.09666068106889725, -0.02073044329881668, -0.05836312845349312, 0.2276362180709839, 0.04450155794620514, 0.13598714768886566, -0.20589439570903778, -0.24031083285808563, 0.2638664245605469, 0.14838191866874695, -0.24423019587993622, 0.5590671300888062, -0.000104909973742906, 0.1271553337574005, 0.28306788206100464, -0.07922869175672531, -0.06135094165802002, -0.3168374300003052, -0.21795368194580078, -0.07062214612960815, -0.16819199919700623, -0.007687531411647797, -0.05521642416715622, -0.10953838378190994, -0.05279531329870224, 0.05036530643701553, 0.13349707424640656, 0.34305813908576965, 0.2658720910549164, 0.36644071340560913, 0.15841956436634064, 0.03424235060811043, 0.3947601020336151, 0.16455039381980896, 0.034879229962825775, 0.3492317497730255, -0.0626506507396698, -0.09788918495178223, 0.10930728167295456, -0.0030364966951310635, -0.1994205266237259, 0.09935000538825989, -0.10137183219194412, -0.02203412353992462, 0.04636533930897713, -0.2138504683971405, -0.09811564534902573, 0.41283416748046875, 0.23505359888076782, -0.2419973909854889, -0.38168588280677795, 0.1323263943195343, 0.0004417852032929659, -0.16433404386043549, 0.2986191213130951, 0.2788707911968231, -0.23971326649188995, 0.22248776257038116, -0.0347449854016304, 0.19949008524417877, -0.04402334243059158, 0.1778443604707718, 0.022679798305034637, 0.021603092551231384, 0.08984987437725067, -0.01901249587535858, -0.07869414985179901, -0.11372123658657074, 0.1954842209815979, 0.055482711642980576, -0.06726916134357452, -0.03754870221018791, -0.19891761243343353, 0.013719156384468079, 0.011882644146680832, -0.1319635510444641, 0.4968377351760864, 0.13591215014457703, 0.09940172731876373, 0.2437208890914917, -0.07616867125034332, 0.30326300859451294, -0.0573110468685627, 0.013757199048995972, -0.047006167471408844, 0.29967358708381653, 0.33387696743011475, 0.016460880637168884, -0.05259007588028908, 0.1817304790019989, -0.030489962548017502, -0.04606946185231209, 0.322661429643631, 0.07437137514352798, 0.2300565391778946, -0.3679658770561218, -0.43083468079566956, 0.08705795556306839, 0.14047744870185852, -0.2431652545928955, 0.03883018717169762, 0.3132535219192505, -0.059929002076387405, 0.14023573696613312, -0.27766668796539307, 0.3079221844673157, -0.1966090351343155, 0.05136037990450859, -0.233968123793602, 0.050469979643821716, -0.11488336324691772, -0.19220376014709473, 0.12689872086048126, -0.40382471680641174, 0.4870954751968384, 0.11448640376329422, 0.3165706396102905, -0.03614121675491333, -0.016285311430692673, -0.06189103052020073, 0.06210164353251457, 0.4958977997303009, -0.1525312066078186, 0.06466976553201675, 0.19759723544120789, 0.14107327163219452, -0.14358441531658173, 0.08065769076347351, -0.37741637229919434, -0.12105808407068253, -0.19833597540855408, 0.303991436958313, -0.3114699721336365, -0.1928069293498993, -0.17732200026512146, -0.3383500277996063, 0.3129972517490387, -0.2297438234090805, 0.048984527587890625, -0.2373640090227127, -0.030599035322666168, -0.2500888407230377, 0.1779908984899521, 0.11286291480064392, -0.5220828652381897, 0.14537262916564941, 0.07092315703630447, -0.2602551579475403, 0.31923729181289673, 0.2609836459159851, -0.0720185786485672, -0.03838887810707092, -0.16694983839988708, 0.22831346094608307, 0.22905701398849487, -0.4691096842288971, -0.6486251354217529, -0.22474898397922516, 0.09886913001537323, 0.06687525659799576, 0.20181459188461304, 0.033871814608573914, 0.14694276452064514, -0.09302382916212082, 0.17831161618232727, 0.1398078203201294, 0.16752111911773682, 0.22029799222946167, -0.3961760699748993, -0.366682231426239, 0.008600950241088867, 0.14621716737747192, 0.09284748882055283, -0.06889589875936508, 0.17098934948444366, -0.21688155829906464, 0.2603481411933899, -0.007141564041376114, -0.2701738476753235, -0.011122968047857285, 0.528215229511261, 0.15651202201843262, 0.031164001673460007, -0.4041967988014221, -0.03820955753326416, 0.16386935114860535, 0.006868842989206314, 0.3009796440601349, -0.10750734806060791, -0.18528877198696136, -0.499152809381485, 0.08056090027093887, -0.081040158867836, -0.0658169686794281, 0.22418010234832764, 0.32359105348587036, 0.1962800770998001, 0.03964671120047569, -0.23810327053070068, 0.20558325946331024, -0.29235386848449707, 0.045983489602804184, 0.12571346759796143, 0.49186640977859497, -0.2841660678386688, -0.19857634603977203, 0.2238282561302185, -0.021897830069065094, 0.03387068957090378, -0.19060665369033813, -0.03580966591835022, 0.567997932434082, 0.22167305648326874, -0.10007679462432861, 0.08700452744960785, 0.06386695802211761, 0.22888332605361938, -0.4107527732849121, -0.13806746900081635, 0.47231024503707886, -0.05860435217618942, 0.07389602810144424, -0.04624049365520477, 0.3331491947174072, -0.023729916661977768, -0.07152188569307327, -0.10912202298641205, 0.049144066870212555, 0.44768232107162476, -0.008242286741733551, 0.005590666085481644, -0.2900725305080414, 0.2397475689649582, 0.06964852660894394, -0.1521420031785965, 0.03257136791944504, -0.016399525105953217, 0.13289526104927063, 0.428726464509964, -0.08986914157867432, 0.10323559492826462, 0.09289476275444031, 0.0883571207523346, -0.023186564445495605, 0.01699114590883255, 0.27693891525268555, 0.2826451063156128, 0.20312440395355225, -0.07187284529209137, 0.0543082095682621, -0.4174274802207947, -0.22009563446044922, 0.04086655378341675, 0.1092730388045311, 0.1560337245464325, 0.16418889164924622, 0.14983491599559784, 0.11089719831943512, -0.4117977023124695, -0.09396928548812866, -0.05635618418455124, 0.3467801511287689, -0.4742768704891205, -0.0733722597360611, -0.265990674495697, -0.07736380398273468, 0.10146095603704453, 0.013402054086327553, -0.17972692847251892, -0.2796195149421692, 0.13749277591705322, 0.06635867059230804, -0.09628608822822571, 0.2670511305332184, -0.1250307261943817, -0.10170795023441315, 0.3037337362766266, -0.3043345510959625, -0.018075451254844666, -0.25003528594970703, 0.009439753368496895, 0.1395905762910843, 0.3336964547634125, 0.18136119842529297, 0.3696865737438202, -0.4134681522846222, -0.14911502599716187, -0.17308050394058228, -0.47312280535697937, 0.10684742033481598, -0.30547887086868286, 0.5822448134422302, 0.062696173787117, 0.2942291498184204, 0.045365430414676666, -0.22022971510887146, 0.1857265830039978, -0.18782004714012146, -0.39795783162117004, 0.2523883879184723, -0.08393631875514984, -0.1743398904800415, -0.10553218424320221, -0.16628775000572205, -0.09860469400882721, -0.3010376989841461, -0.13156679272651672, 0.29382142424583435, 0.17018620669841766, -0.009207420982420444, 0.3598105311393738, 0.032088831067085266, -0.09015510231256485, 0.15568479895591736, -0.19824613630771637, -0.5466394424438477, 0.4923824369907379, -0.1142810732126236, -0.47286859154701233, -0.03431776911020279, 0.1789809614419937, -0.01625703275203705, 0.2189088761806488, -0.48281848430633545, -0.49957314133644104, -0.14091816544532776, 0.27718743681907654, 0.17729716002941132, 0.06572748720645905, 0.08281799405813217, 0.046537481248378754, -0.20382890105247498, -0.18480297923088074, 0.0711306482553482, 0.018758922815322876, -0.23597896099090576, 0.20173946022987366, -0.1863383948802948, 0.22890904545783997, -0.08185593038797379, 0.2742736041545868, 0.2685355246067047, -0.07311032712459564, 0.004200056195259094, -0.08056449890136719, 0.42138296365737915, -0.09701540321111679, -0.25805357098579407, 0.03215636685490608, 0.0074719637632369995, 0.001061946153640747, 0.06404577940702438, -0.07829651981592178, 0.05727531015872955, -0.21488961577415466, -0.03964664787054062, -0.2577511966228485, -0.16407805681228638, 0.07821362465620041, -0.24970489740371704, 0.137588232755661, 0.07454793155193329, 0.14452064037322998, -0.10009460151195526, -0.3561765253543854, 0.07181532680988312, 0.16787031292915344, -0.35640737414360046, -0.08280172944068909, -0.6201632022857666, -0.009529286064207554, -0.10789089649915695, 0.1450863778591156, 0.2663375735282898, 0.36463436484336853, 0.026905018836259842, -0.2591596245765686, 0.07139086723327637, -0.07074583321809769, 0.13509033620357513, -0.3384820818901062, 0.2357185184955597, 0.18541745841503143, 0.39481863379478455, -0.21685132384300232, -0.163297638297081, -0.2289091795682907, 0.11738662421703339, 0.4776025414466858, 0.24994558095932007, -0.4163535535335541, 0.12656310200691223, 0.3104328215122223, 0.28553375601768494, 0.0547916553914547, -0.05626334249973297, -0.4127325713634491, -0.24539664387702942, -0.4059743583202362, 0.027147889137268066, 0.10175918787717819, 0.14064177870750427, -0.36237990856170654, -0.06898219138383865, -0.1056009978055954, -0.007307112216949463, 0.2432505041360855, 0.3092825412750244, 0.3294317424297333, -0.18114738166332245, -0.015030715614557266, -0.24088531732559204, -0.2985726594924927, 0.550568699836731, 0.5595977902412415, -0.07145637273788452, -0.3666819930076599, -0.1905132234096527, -0.31263577938079834, 0.03892327845096588, -0.060857415199279785, -0.1491357386112213, -0.19762083888053894, -0.08781444281339645, 0.11076565086841583, 0.07542257010936737, 0.18018271028995514, 0.11027641594409943, -0.10931247472763062, -0.29700782895088196, -0.33803635835647583, 0.15477854013442993, -0.015238583087921143, -0.05450738966464996, 0.35715562105178833, 0.29446423053741455, 0.056522466242313385, 0.49537545442581177, 0.22874081134796143, 0.8793985843658447, -0.20721103250980377, -0.13827352225780487, 0.3400348722934723, -0.17033651471138, 0.3492128252983093, -0.15190154314041138, 0.09961190819740295, -0.2108106166124344, -0.3150501549243927, 0.05890262871980667, -0.19750763475894928, -0.02697422355413437, 0.11172683537006378, -0.20050743222236633, 0.050446558743715286, -0.131852924823761, 0.028134014457464218, 0.1892176866531372, 0.1685664802789688, -0.012289395555853844, 0.1717423051595688, -0.0938546434044838, 0.2648228108882904, -0.01745164394378662, 0.07049379497766495, 0.022347059100866318, -0.04439911991357803, -0.3018917143344879, -0.12055675685405731, -0.5544407963752747, 0.11138170212507248, -0.08726269006729126, 0.14125347137451172, 0.014421092346310616, -0.24351072311401367, -0.39718493819236755, 0.0332229807972908, 0.3435330390930176, 0.3083486557006836, -0.08181831985712051, 0.21765661239624023, 0.32400718331336975, -0.09268170595169067, 0.21103402972221375, 0.04348018020391464, 0.3847118318080902, -0.04279068484902382, -0.4293064773082733, 0.25985831022262573, -0.052894849330186844, -0.4126795530319214, 0.01438690721988678, -0.029982686042785645, -0.0005535706877708435, -0.1255359798669815, 0.18539106845855713, -0.1328543871641159, 0.06854917109012604, -0.28625255823135376, 0.21584440767765045, 0.12698110938072205, 0.0013412057887762785, 0.19627809524536133, 0.07184440642595291, -0.3511747717857361, -0.19334867596626282, 0.3066144585609436, 0.0076828934252262115, -0.08588357269763947, 0.35521700978279114, -0.043426018208265305, -0.2067451775074005, -0.2563531994819641, -0.11877477169036865, -0.3592044413089752, -0.3510047495365143, 0.035028375685214996, -0.34219664335250854, 0.005568757653236389, 0.049760811030864716, 0.22586342692375183, 0.32261592149734497, 0.2213297188282013, 0.18314892053604126, -0.7477020025253296, -0.2691214382648468, -0.09415276348590851, 0.15923337638378143, 0.08612199127674103, -0.04235377162694931, 0.03032170608639717, -0.0951903760433197, -0.06467742472887039, -0.4064958691596985, 0.011257764883339405, -0.2635180652141571, 0.01523970440030098, 0.2727998197078705, 0.1179562360048294, 0.25826701521873474, -0.17264153063297272, 0.23671665787696838, -0.14469105005264282, -0.10713176429271698, -0.30767330527305603, -0.09654952585697174, 0.050420552492141724, 0.036834634840488434, -0.23719848692417145, 0.007071485742926598, -0.060816872864961624, -0.08374986052513123, 0.008097337558865547, 0.025252077728509903, 0.08621112257242203, -0.10705295205116272, 0.26242169737815857, 0.084205262362957, 0.04093470424413681, 0.12635251879692078, -0.11007921397686005, -0.11494429409503937, 0.09092973172664642, 0.09856104105710983, 0.2259891778230667, -0.10886881500482559, -0.004773914813995361, 0.08322277665138245, 0.0862877145409584, 0.0019971132278442383, 0.23456093668937683, 0.36547964811325073, -0.19833515584468842, 0.04445700719952583, 0.22790567576885223, 0.37406864762306213, 0.49400943517684937, -0.24132876098155975, -0.01528608426451683, 0.2320663034915924, 0.30254969000816345, -0.4159165024757385, -0.07887756824493408, 0.22192688286304474, 0.21100904047489166, 0.1202579140663147, 0.10415652394294739, 0.1157815009355545, -0.4026232659816742, 0.2909778952598572, 0.18345534801483154, 0.42618292570114136, -0.17038175463676453, 0.2705308198928833, 0.452699214220047, -0.12086416780948639, -0.045088279992341995, 0.049664344638586044, -0.1610081046819687, 0.00036369264125823975, 0.20645681023597717, 0.1648963987827301, 0.29799172282218933, -0.45401373505592346, -0.03321989253163338, -0.18205967545509338, -0.14914146065711975, 0.2815469205379486, 0.1633128970861435, 0.05775550752878189, -0.004572100937366486, 0.21152201294898987, 0.3724372088909149, -0.006283818744122982, 0.15800809860229492, -0.32510119676589966, 0.14043806493282318, 0.009628904983401299, -0.06441088765859604, -0.09819532930850983, -0.22926375269889832, 0.1581277847290039, -0.00006909668445587158, 0.0334344357252121, 0.12700310349464417, 0.06503880023956299, 0.2272886037826538, -0.2661879062652588, -0.44617071747779846, 0.1931145191192627, 0.02718069776892662, 0.04923669621348381, -0.1763869971036911, 0.19460445642471313, 0.23219193518161774, -0.1393449306488037, 0.06707987934350967, 0.43303242325782776, 0.5893827676773071, 0.35051172971725464, 0.10433033108711243, -0.1365111917257309, -0.1980598270893097, 0.030462240800261497, -0.1322544813156128, 0.41033464670181274, 0.08148527145385742, 0.012629769742488861, 0.3314889371395111, 0.2744593024253845, -0.21603301167488098, 0.046928323805332184, 0.09017812460660934, 0.022698095068335533, 0.03983784839510918, 0.16622182726860046, -0.03672603517770767, -0.18656185269355774, -0.14093263447284698, -0.12291871756315231, -0.197973370552063, 0.0937427207827568, 0.35256409645080566, 0.1525922566652298, 0.15187063813209534, -0.31288379430770874, 0.1498560607433319, 0.06332895159721375, 0.36375194787979126, 0.351704478263855, -0.12610098719596863, -0.10879352688789368, -0.16574928164482117, -0.7760737538337708, 0.23248010873794556, -0.1972476989030838, -0.042495399713516235, -0.10589973628520966, 0.27184709906578064, -0.06180211156606674, 0.29934102296829224, 0.2625768184661865, -0.20785455405712128, -0.4152522683143616, 0.14159278571605682, -0.3958682715892792, -0.026825156062841415, -0.34165388345718384, -0.13048776984214783, 0.121654212474823, -0.32088610529899597, 0.15214423835277557, -0.15853570401668549, 0.21869191527366638, 0.005663527175784111, -0.10946391522884369, 0.055831100791692734, -0.17690061032772064, 0.323753297328949, -0.023563837632536888, 0.37011584639549255, 0.007642589509487152, -0.156169593334198, -0.35721442103385925, -0.15924124419689178, -0.10577131807804108, 0.5686349272727966, 0.010058222338557243, 0.2729540467262268, -0.17672212421894073, -0.3311902582645416, -0.1452750861644745, 0.2452329695224762, 0.05327204614877701, -0.7246578335762024, -0.17613694071769714, 0.04252631217241287, 0.027209751307964325, -0.17124703526496887, 0.04007276892662048, -0.06899581849575043, -0.14340859651565552, 0.24253715574741364, -0.24396492540836334, -0.4125760793685913, 0.23316678404808044, -0.14674578607082367, -0.023578772321343422, -0.08861450105905533, 0.14381732046604156, -0.03221447765827179, 0.03078620880842209, -0.6232928037643433, 0.31212952733039856, 0.2976682186126709, -0.0648534744977951, -0.1999567151069641, 0.17541739344596863, -0.08089765906333923, 0.1580306589603424, -0.15246672928333282, 0.2680381238460541, -0.01779940351843834, -0.17849650979042053, 0.09785208106040955, -0.14917388558387756 ]
https://github.com/huggingface/datasets/issues/3941
billsum dataset: Checksums didn't match for dataset source files:
Hi @XingxingZhang, thanks for reporting. This was due to a change in Google Drive service: - #3786 We have already fixed it: - #3787 You should update `datasets` version to at least 1.18.4: ```shell pip install -U datasets ``` And then force the redownload: ```python load_dataset("...", download_mode="force_redownload") ```
## Describe the bug When loading the `billsum` dataset, it throws the exception "Checksums didn't match for dataset source files" ``` File "virtualenv_projects/codex/lib/python3.7/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=1g89WgFHMRbr4QrvA0ngh26PY081Nv3lx'] ``` ## Steps to reproduce the bug ```python import datasets from datasets import load_dataset print(datasets.__version__) load_dataset('billsum') ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.0 - Platform: mac os - Python version: Python 3.7.6 - PyArrow version: 3.0.0
48
billsum dataset: Checksums didn't match for dataset source files: ## Describe the bug When loading the `billsum` dataset, it throws the exception "Checksums didn't match for dataset source files" ``` File "virtualenv_projects/codex/lib/python3.7/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=1g89WgFHMRbr4QrvA0ngh26PY081Nv3lx'] ``` ## Steps to reproduce the bug ```python import datasets from datasets import load_dataset print(datasets.__version__) load_dataset('billsum') ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.0 - Platform: mac os - Python version: Python 3.7.6 - PyArrow version: 3.0.0 Hi @XingxingZhang, thanks for reporting. This was due to a change in Google Drive service: - #3786 We have already fixed it: - #3787 You should update `datasets` version to at least 1.18.4: ```shell pip install -U datasets ``` And then force the redownload: ```python load_dataset("...", download_mode="force_redownload") ```
[ -0.4439738392829895, 0.397952675819397, -0.10348038375377655, 0.1886252760887146, 0.22775080800056458, 0.0679105594754219, 0.21592645347118378, 0.2985672652721405, 0.16421303153038025, 0.1222994476556778, 0.09585941582918167, 0.03607388213276863, 0.14741913974285126, 0.22022394835948944, -0.0004787817597389221, 0.17700344324111938, 0.05420539900660515, -0.02884906530380249, -0.022300593554973602, -0.035269081592559814, -0.35128501057624817, 0.22892212867736816, 0.016222581267356873, -0.2879074215888977, 0.08534582704305649, 0.22261561453342438, 0.12793724238872528, 0.19072288274765015, -0.24508418142795563, -0.19241458177566528, 0.1991564929485321, 0.1335771083831787, -0.007395528256893158, 0.4593855142593384, -0.00011279575119260699, 0.18648995459079742, 0.4848976731300354, 0.028723010793328285, -0.4654407799243927, -0.08406306803226471, -0.28823673725128174, -0.20632441341876984, -0.19471600651741028, -0.13143692910671234, 0.13068750500679016, -0.007089338265359402, -0.13265526294708252, -0.15160244703292847, 0.05073942989110947, 0.29216301441192627, 0.20980481803417206, 0.3013037443161011, 0.1827806830406189, 0.07669872045516968, 0.522291898727417, -0.16028684377670288, 0.08728194236755371, 0.5475764870643616, -0.001522853970527649, -0.06393484771251678, 0.12015169113874435, 0.170780211687088, -0.21188464760780334, 0.11504678428173065, 0.17155298590660095, 0.12482494860887527, -0.03692066669464111, 0.042374663054943085, 0.06306801736354828, 0.20806241035461426, 0.30144307017326355, -0.1993895173072815, -0.3702296018600464, -0.10179540514945984, -0.03590583801269531, -0.21725572645664215, 0.6341406106948853, 0.2274865359067917, 0.07356242835521698, 0.026371262967586517, -0.5666075944900513, 0.07735152542591095, 0.035539865493774414, 0.17444825172424316, -0.14657706022262573, 0.14136990904808044, 0.041977863758802414, -0.05472224950790405, 0.03336770832538605, -0.08382587879896164, 0.15574489533901215, -0.2546091377735138, -0.22402513027191162, -0.04150107130408287, -0.2506527006626129, -0.058470308780670166, 0.09644834697246552, 0.22823083400726318, 0.38180920481681824, 0.295438289642334, -0.015584773384034634, 0.16526398062705994, -0.3365023732185364, 0.18588903546333313, 0.02201000228524208, 0.1599901020526886, -0.1169157400727272, 0.15117648243904114, 0.4685676693916321, 0.3264903426170349, 0.21190369129180908, 0.13296301662921906, 0.03633194789290428, -0.18696166574954987, 0.17591899633407593, 0.1823224425315857, 0.1848873645067215, -0.2980908453464508, -0.4048726260662079, 0.17066718637943268, 0.04925086349248886, -0.24031727015972137, 0.13309568166732788, 0.2846085727214813, -0.24748529493808746, -0.11768852919340134, 0.031855762004852295, 0.10403493046760559, -0.06707090884447098, 0.3422403335571289, -0.1705225706100464, -0.020744357258081436, -0.0911358892917633, -0.018696030601859093, 0.3730759918689728, -0.3438161313533783, 0.27264082431793213, 0.022386908531188965, -0.012366466224193573, -0.00540054589509964, 0.16974717378616333, -0.0315265916287899, -0.19722601771354675, 0.3557344973087311, -0.02101699635386467, 0.08812374621629715, 0.1051381528377533, -0.002771139144897461, -0.13863904774188995, 0.08159001171588898, -0.45350056886672974, -0.10191503167152405, -0.058096401393413544, 0.31230905652046204, -0.27506953477859497, -0.14668552577495575, -0.2939595580101013, -0.43083494901657104, 0.025702372193336487, -0.2684025466442108, -0.07894729822874069, -0.20642748475074768, -0.2950769066810608, -0.2398940771818161, 0.2672673761844635, 0.12451106309890747, -0.16261129081249237, -0.042472485452890396, -0.24647082388401031, -0.2725117802619934, 0.12950384616851807, 0.2652705907821655, -0.04691772907972336, 0.053180232644081116, -0.4091739356517792, -0.02502553164958954, -0.11500329524278641, -0.3405144214630127, -0.6405295133590698, -0.030148964375257492, 0.13240787386894226, -0.059571415185928345, 0.0593254491686821, -0.11884814500808716, 0.11254509538412094, 0.07793164253234863, 0.1620675027370453, 0.18639357388019562, 0.13861452043056488, 0.2338559329509735, -0.18203507363796234, -0.3929363787174225, 0.09782396256923676, 0.2020249366760254, 0.03030717931687832, 0.02084439992904663, 0.30796584486961365, -0.33269447088241577, 0.11348626017570496, -0.10878904163837433, -0.1471492350101471, 0.33466559648513794, 0.5563584566116333, 0.06999097019433975, 0.19290278851985931, -0.04297725111246109, -0.4167453944683075, 0.31733399629592896, -0.2022906392812729, 0.009108871221542358, -0.21942006051540375, -0.19011986255645752, -0.28894996643066406, -0.16049186885356903, -0.05690109357237816, 0.11403411626815796, 0.14962874352931976, 0.37316766381263733, 0.03786579892039299, 0.0841122418642044, 0.10657894611358643, -0.07577439397573471, -0.30216172337532043, -0.034799590706825256, -0.11802034080028534, 0.7207110524177551, -0.20658834278583527, -0.20015625655651093, 0.34062063694000244, -0.011209532618522644, 0.19534310698509216, -0.18173782527446747, -0.1705872118473053, 0.4723943769931793, 0.2709105908870697, 0.2831825017929077, 0.18770697712898254, 0.5614426136016846, 0.24813508987426758, -0.2821190357208252, 0.05496186763048172, 0.4969734251499176, 0.11277318745851517, 0.0344051718711853, -0.44335731863975525, 0.2786785364151001, -0.18275991082191467, -0.019771359860897064, 0.045956648886203766, 0.12239623814821243, 0.2940051555633545, -0.13688695430755615, 0.10650231689214706, -0.3272479176521301, 0.10075175017118454, 0.4226849377155304, 0.194494366645813, -0.0070563312619924545, 0.1111249029636383, -0.022098079323768616, 0.38122954964637756, -0.046605855226516724, 0.0902647003531456, 0.06935472786426544, -0.05835144966840744, -0.06389090418815613, 0.166403666138649, 0.44663235545158386, 0.30475354194641113, 0.17409491539001465, -0.005657348781824112, 0.12015927582979202, -0.12140589207410812, -0.16349419951438904, 0.159351646900177, -0.008226931095123291, 0.008778109215199947, 0.36416950821876526, -0.0013635526411235332, -0.011733663268387318, -0.40451741218566895, 0.003959540277719498, 0.06331976503133774, 0.29339519143104553, -0.4859108328819275, -0.13010209798812866, -0.2937871813774109, 0.06423117965459824, -0.3407524824142456, 0.062194932252168655, -0.2707397937774658, -0.437227338552475, 0.0047781337052583694, 0.434308797121048, -0.2199890911579132, 0.2267841100692749, 0.07090453803539276, 0.1152341216802597, 0.15447939932346344, -0.4277647137641907, -0.10550636798143387, -0.05956212803721428, 0.07706606388092041, 0.10295780003070831, 0.510145366191864, 0.17781485617160797, 0.352571576833725, -0.3003235459327698, -0.11545397341251373, -0.7003770470619202, -0.3411550223827362, 0.07232595980167389, -0.3449414372444153, 0.4714391231536865, 0.27954789996147156, 0.04656459018588066, -0.0035762041807174683, -0.10796353220939636, 0.07345426082611084, -0.0575128048658371, -0.3673725724220276, 0.17676731944084167, -0.1280108243227005, -0.16075196862220764, -0.04862280935049057, -0.21017807722091675, 0.06545933336019516, -0.17707906663417816, -0.1525554060935974, 0.23687703907489777, 0.09189072996377945, 0.06388141214847565, 0.13145124912261963, 0.15554799139499664, 0.20744666457176208, 0.16237390041351318, -0.2662161588668823, -0.27284830808639526, 0.4294891655445099, -0.05944756045937538, -0.3758268356323242, 0.07094749808311462, 0.04143335670232773, -0.1677161604166031, 0.3445878028869629, -0.3872813582420349, -0.35813388228416443, -0.41123872995376587, 0.14920680224895477, 0.29630839824676514, 0.11236587166786194, 0.3224453628063202, 0.15543998777866364, -0.12027529627084732, -0.2137683629989624, -0.32963263988494873, -0.07570388168096542, -0.029928378760814667, 0.20787915587425232, 0.027808256447315216, 0.23353275656700134, -0.35705727338790894, 0.3795689344406128, 0.4104432165622711, 0.031688936054706573, 0.12697678804397583, -0.15091517567634583, 0.38893863558769226, 0.021634288132190704, -0.07289334386587143, 0.07418541610240936, 0.04328847676515579, -0.17427515983581543, 0.16252535581588745, -0.05639030039310455, 0.06166950613260269, -0.016609014943242073, -0.1418505162000656, -0.3925761580467224, -0.18657603859901428, -0.11330588161945343, -0.06267282366752625, 0.4151831567287445, -0.0505913645029068, -0.00032053515315055847, 0.0038186926394701004, -0.39972543716430664, 0.17919515073299408, 0.26633772253990173, -0.07030273228883743, -0.09004496037960052, -0.3957381844520569, -0.09343411028385162, -0.0573006197810173, 0.28117531538009644, 0.13633018732070923, 0.41621139645576477, 0.0030793137848377228, 0.030415907502174377, -0.09283711016178131, -0.2878101170063019, 0.31151342391967773, -0.4760926067829132, 0.4731872081756592, 0.007527047768235207, 0.2072414755821228, 0.03165324777364731, -0.19719818234443665, -0.2591513693332672, -0.2739296555519104, -0.015857204794883728, 0.41235584020614624, -0.29543083906173706, 0.10444831103086472, 0.3437287211418152, 0.30221399664878845, -0.0788605660200119, 0.0013404954224824905, -0.34317582845687866, -0.2712920308113098, -0.49945834279060364, -0.10461067408323288, -0.2785787582397461, 0.233027845621109, -0.27904805541038513, -0.0877515971660614, 0.05306004732847214, -0.24693235754966736, 0.20365482568740845, -0.07377392053604126, 0.4733852744102478, -0.0020874685142189264, 0.24810543656349182, 0.004351075738668442, -0.03507809340953827, 0.5081514120101929, 0.8049184083938599, -0.09732730686664581, -0.017056994140148163, 0.037626709789037704, -0.2614539861679077, -0.2597309648990631, 0.09531824290752411, -0.2198733538389206, -0.10364042967557907, 0.25339144468307495, -0.011796243488788605, -0.16326649487018585, -0.17952010035514832, 0.06322955340147018, 0.17617033421993256, -0.058848150074481964, -0.14955347776412964, 0.2166215181350708, 0.05366184934973717, -0.18258878588676453, 0.28017115592956543, 0.3913872241973877, -0.23903286457061768, 0.222733736038208, 0.24810349941253662, 0.7565482258796692, -0.016507036983966827, -0.10114842653274536, 0.18696138262748718, -0.17483270168304443, -0.023605141788721085, -0.01659564860165119, 0.02449471689760685, -0.3710540533065796, -0.3856256306171417, -0.10389071702957153, -0.24082466959953308, 0.05797409266233444, -0.09655244648456573, -0.16357004642486572, 0.23775196075439453, -0.11035263538360596, 0.3662257492542267, -0.10728786140680313, 0.34594836831092834, -0.28094321489334106, 0.13919036090373993, 0.17512965202331543, 0.1916845142841339, 0.10610045492649078, 0.14918668568134308, -0.08456927537918091, 0.1082695871591568, -0.2162282019853592, -0.3280301094055176, -0.5254525542259216, 0.1337440013885498, 0.013620758429169655, 0.26302528381347656, 0.13775888085365295, -0.15047115087509155, -0.17113745212554932, 0.06931877881288528, 0.443078875541687, 0.3028510510921478, -0.4484940469264984, 0.2241181582212448, -0.054965823888778687, 0.027450507506728172, 0.039057787507772446, -0.003679906018078327, 0.28866323828697205, -0.14813676476478577, -0.3626856505870819, -0.04773890972137451, 0.010515457950532436, -0.4278806447982788, -0.14852550625801086, -0.19492055475711823, -0.45630258321762085, -0.2097744345664978, -0.03376474231481552, -0.14039729535579681, -0.19479574263095856, -0.22251726686954498, 0.19178864359855652, 0.0730387344956398, 0.22620338201522827, 0.22650501132011414, 0.012459531426429749, -0.285031795501709, -0.15739688277244568, 0.44803547859191895, 0.020508281886577606, -0.15473073720932007, 0.43164411187171936, -0.11297137290239334, -0.11393781006336212, -0.29032766819000244, -0.12555596232414246, -0.02856733649969101, -0.03383858501911163, -0.0621507354080677, -0.3304246664047241, 0.20211897790431976, 0.05353096127510071, 0.3045831322669983, 0.3380730152130127, 0.3293815851211548, 0.12490899860858917, -0.7097581028938293, 0.09440566599369049, 0.16570913791656494, -0.05251165106892586, 0.30984243750572205, -0.25248056650161743, -0.20485800504684448, 0.048609234392642975, -0.31615352630615234, -0.37209731340408325, 0.1781817227602005, -0.22590622305870056, -0.0016341358423233032, 0.1320990025997162, 0.15622901916503906, 0.25403478741645813, -0.31035345792770386, 0.24020817875862122, -0.20726652443408966, -0.22634820640087128, -0.23131462931632996, -0.1373518705368042, 0.07173643261194229, 0.14043153822422028, -0.21046018600463867, 0.0899694412946701, -0.193922221660614, -0.1288302093744278, -0.00743833277374506, 0.10969837009906769, -0.057446207851171494, -0.0725889503955841, 0.1313716620206833, 0.14213688671588898, 0.005479387938976288, -0.051659420132637024, -0.11874869465827942, -0.3321785628795624, 0.06582630425691605, -0.05967697128653526, 0.20347365736961365, -0.023850075900554657, 0.024571485817432404, -0.07454102486371994, 0.18767228722572327, 0.04319538176059723, 0.20301896333694458, 0.3733992576599121, -0.06036273390054703, -0.12487076222896576, 0.1654336005449295, 0.3799571096897125, 0.2912316918373108, -0.5166093111038208, -0.10124614834785461, 0.25979235768318176, 0.28160786628723145, -0.3110102713108063, -0.13691042363643646, 0.0074088359251618385, -0.09261588752269745, 0.15851938724517822, 0.12844476103782654, 0.40032699704170227, -0.08916515111923218, 0.2388211339712143, 0.09248913824558258, 0.504700779914856, -0.17650195956230164, 0.21201567351818085, 0.24757510423660278, -0.1299913227558136, -0.008293915539979935, 0.04744961857795715, -0.22983163595199585, -0.07034438103437424, 0.15073442459106445, 0.09804104268550873, 0.21529392898082733, -0.2681739330291748, 0.13350696861743927, -0.0801171138882637, -0.35860612988471985, 0.39391425251960754, 0.06607026606798172, -0.07330019772052765, 0.01729164645075798, 0.12096384167671204, 0.2454586923122406, -0.2816682755947113, 0.30896010994911194, -0.4304506182670593, 0.02253839746117592, 0.054360512644052505, -0.05789783596992493, -0.4669313132762909, -0.2469734251499176, -0.11705133318901062, 0.25104114413261414, 0.01389763131737709, 0.017447154968976974, 0.006003417074680328, 0.22272104024887085, -0.4141457676887512, -0.3305731415748596, 0.17177411913871765, 0.15725049376487732, 0.015599757432937622, -0.23768968880176544, 0.2213188260793686, 0.0034913942217826843, -0.022923976182937622, -0.027626056224107742, 0.5384902358055115, 0.3396732211112976, 0.26851886510849, 0.21299414336681366, -0.2461194396018982, 0.024450911208987236, 0.030788248404860497, -0.027887608855962753, 0.39601239562034607, -0.10889898240566254, -0.03298984095454216, 0.21580761671066284, 0.2966327965259552, -0.21278312802314758, -0.06420549750328064, -0.1514853984117508, -0.23453572392463684, 0.048899952322244644, 0.18912608921527863, 0.06259195506572723, 0.17808860540390015, -0.14019151031970978, 0.036786749958992004, -0.2749009430408478, -0.2027873992919922, 0.4511966407299042, 0.3370564579963684, 0.24548059701919556, 0.008548367768526077, 0.10262046009302139, 0.13841412961483002, 0.3631425201892853, 0.36096256971359253, 0.16801536083221436, -0.14274580776691437, -0.35282617807388306, -0.7317578196525574, 0.07698720693588257, -0.13427340984344482, 0.017152054235339165, 0.009587500244379044, 0.026145609095692635, -0.16467151045799255, 0.12952455878257751, 0.3378492593765259, 0.04754675179719925, -0.2551507353782654, -0.3047560155391693, -0.16414016485214233, -0.11832866072654724, -0.00981014221906662, -0.12788847088813782, -0.2332175374031067, -0.502873957157135, 0.24194476008415222, 0.008603428490459919, 0.09325874596834183, -0.1754136085510254, 0.07001003623008728, -0.13078686594963074, -0.10480226576328278, 0.43165358901023865, 0.10393629223108292, 0.5853009819984436, -0.23619422316551208, -0.07584249973297119, -0.25809887051582336, -0.14165091514587402, -0.1888698786497116, 0.16026735305786133, -0.039203185588121414, 0.32336685061454773, 0.06706181913614273, -0.16327930986881256, -0.28301092982292175, 0.5166459083557129, 0.08454252779483795, -0.261124849319458, -0.19718177616596222, 0.1904541403055191, -0.0674346387386322, -0.07911422103643417, 0.040207747370004654, -0.07405751198530197, 0.10249371826648712, 0.280538409948349, -0.19010108709335327, -0.36974552273750305, 0.11576367914676666, 0.13340522348880768, 0.04638385400176048, 0.014681261964142323, 0.24062417447566986, -0.17174050211906433, 0.070780448615551, -0.6646108627319336, 0.2447669804096222, 0.3214770555496216, 0.08586962521076202, -0.19174112379550934, 0.14135020971298218, 0.1700865924358368, 0.23279203474521637, -0.012775082141160965, 0.12809838354587555, 0.07486136257648468, -0.20490695536136627, -0.038895655423402786, -0.029094379395246506 ]
https://github.com/huggingface/datasets/issues/3941
billsum dataset: Checksums didn't match for dataset source files:
@albertvillanova YOU Said: pip install git+ https://github.com/huggingface/datasets.git Then set: dataset=load_dataset ("multinews", download_mode="force-redownload"). I changed the ’datautils‘ file according to this setting: traindata=load_dataset (path='wikitext ', name='wikitext-2-raw v1', split='train ', download_mode="force-redownload") Testdata=load_dataset (path='wikitext ', name='wikitext-2-raw v1', split='test ', download_mode="force-redownload") then the bug is ![image](https://github.com/huggingface/datasets/assets/149936473/ee956e8f-e6f1-46bf-b514-0a7a0a0e0e37) ![image](https://github.com/huggingface/datasets/assets/149936473/f1318686-942c-4341-a61d-9be7a4b5747a) I have tried both versions ![image](https://github.com/huggingface/datasets/assets/149936473/d3f0d786-304b-4596-83c6-49c3cac58aad)
## Describe the bug When loading the `billsum` dataset, it throws the exception "Checksums didn't match for dataset source files" ``` File "virtualenv_projects/codex/lib/python3.7/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=1g89WgFHMRbr4QrvA0ngh26PY081Nv3lx'] ``` ## Steps to reproduce the bug ```python import datasets from datasets import load_dataset print(datasets.__version__) load_dataset('billsum') ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.0 - Platform: mac os - Python version: Python 3.7.6 - PyArrow version: 3.0.0
49
billsum dataset: Checksums didn't match for dataset source files: ## Describe the bug When loading the `billsum` dataset, it throws the exception "Checksums didn't match for dataset source files" ``` File "virtualenv_projects/codex/lib/python3.7/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=1g89WgFHMRbr4QrvA0ngh26PY081Nv3lx'] ``` ## Steps to reproduce the bug ```python import datasets from datasets import load_dataset print(datasets.__version__) load_dataset('billsum') ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.0 - Platform: mac os - Python version: Python 3.7.6 - PyArrow version: 3.0.0 @albertvillanova YOU Said: pip install git+ https://github.com/huggingface/datasets.git Then set: dataset=load_dataset ("multinews", download_mode="force-redownload"). I changed the ’datautils‘ file according to this setting: traindata=load_dataset (path='wikitext ', name='wikitext-2-raw v1', split='train ', download_mode="force-redownload") Testdata=load_dataset (path='wikitext ', name='wikitext-2-raw v1', split='test ', download_mode="force-redownload") then the bug is ![image](https://github.com/huggingface/datasets/assets/149936473/ee956e8f-e6f1-46bf-b514-0a7a0a0e0e37) ![image](https://github.com/huggingface/datasets/assets/149936473/f1318686-942c-4341-a61d-9be7a4b5747a) I have tried both versions ![image](https://github.com/huggingface/datasets/assets/149936473/d3f0d786-304b-4596-83c6-49c3cac58aad)
[ -0.4511595368385315, 0.20923691987991333, -0.014889135956764221, 0.19549207389354706, 0.27872565388679504, 0.008088760077953339, 0.1588030755519867, 0.3976283371448517, 0.13918724656105042, -0.03088456392288208, 0.04973883926868439, 0.22299252450466156, 0.011909633874893188, 0.15075184404850006, 0.0347173698246479, 0.09299620240926743, 0.14612336456775665, 0.039041899144649506, -0.11777113378047943, -0.007490944117307663, -0.1723521500825882, 0.15955902636051178, -0.10700573772192001, -0.15839213132858276, -0.19478771090507507, 0.22901181876659393, 0.02422276698052883, 0.20204615592956543, -0.1797027587890625, -0.34677767753601074, 0.3567073345184326, 0.07388994097709656, -0.12239669263362885, 0.5739697813987732, -0.00011446043208707124, 0.2822868824005127, 0.24498990178108215, -0.10537803918123245, -0.29056426882743835, -0.02459314465522766, -0.32077518105506897, -0.39639443159103394, -0.08495377004146576, -0.25620341300964355, -0.07850676774978638, 0.09578400105237961, -0.191165491938591, -0.14916455745697021, 0.23745982348918915, 0.5034622550010681, 0.19133731722831726, 0.4326750338077545, 0.2817341387271881, 0.10783006250858307, 0.4413803815841675, -0.15969069302082062, -0.04931891709566116, 0.2855603098869324, 0.03836546465754509, -0.10079912096261978, 0.14832212030887604, 0.24561147391796112, -0.11937004327774048, 0.07024119794368744, 0.05778283253312111, 0.09593560546636581, 0.09115128964185715, -0.08766885101795197, -0.10652416199445724, 0.3350614905357361, 0.09008151292800903, -0.2735336720943451, -0.3890569806098938, -0.16448836028575897, -0.10561400651931763, -0.24945029616355896, 0.42886674404144287, 0.18468250334262848, -0.1680288314819336, 0.12216506898403168, -0.5436954498291016, -0.011044757440686226, -0.020825505256652832, 0.2914673984050751, -0.04185380041599274, 0.3632763922214508, 0.08125296235084534, 0.05034227296710014, 0.04139434173703194, 0.12146659940481186, -0.0964471697807312, -0.08869738131761551, -0.08873140811920166, 0.12258730083703995, -0.331419438123703, 0.053267769515514374, -0.029820516705513, 0.04169017821550369, 0.49026286602020264, 0.08195081353187561, -0.24253718554973602, 0.03142619878053665, -0.1502729058265686, 0.07507576048374176, 0.007433068007230759, 0.034597791731357574, -0.23363906145095825, 0.21897034347057343, 0.3248128890991211, 0.2732301950454712, -0.013259191066026688, 0.09209468960762024, -0.06592059880495071, -0.13330982625484467, 0.1377910077571869, 0.1122700497508049, 0.27498817443847656, -0.38269945979118347, -0.37639880180358887, 0.13510333001613617, 0.054595015943050385, -0.07097925245761871, 0.11347322165966034, 0.18182212114334106, -0.3130527138710022, 0.20041286945343018, 0.03258078545331955, 0.19896212220191956, -0.2416657656431198, 0.32634660601615906, -0.18747898936271667, -0.07714399695396423, -0.18600276112556458, 0.04257163777947426, 0.2590603828430176, -0.3319975435733795, 0.41369545459747314, 0.14025439321994781, 0.08470436185598373, -0.11652886122465134, 0.07398882508277893, 0.05460258200764656, -0.1208764985203743, 0.430853933095932, -0.22718855738639832, 0.24101223051548004, 0.2533871829509735, -0.04118223860859871, -0.13562655448913574, 0.09476938843727112, -0.5169349908828735, -0.3151618540287018, -0.19571472704410553, 0.2304668128490448, -0.23178161680698395, -0.1430637687444687, -0.21647441387176514, -0.2725300192832947, 0.3225213587284088, -0.18932108581066132, -0.005828924477100372, -0.2328309565782547, -0.23521670699119568, -0.21691788733005524, 0.4256342351436615, 0.11719711869955063, -0.06563930213451385, -0.07690200954675674, -0.10629425197839737, -0.27940332889556885, 0.308530330657959, 0.19370037317276, -0.2967716455459595, 0.23954829573631287, -0.26780378818511963, 0.016684427857398987, 0.23106282949447632, -0.5254138112068176, -0.5942027568817139, -0.0951976552605629, 0.050707653164863586, 0.28135743737220764, 0.03765799477696419, -0.03414762765169144, -0.11120165884494781, -0.11535637080669403, 0.007188566029071808, 0.18022894859313965, 0.1581171303987503, 0.436053991317749, -0.32595303654670715, -0.5640002489089966, 0.1635182499885559, 0.16120301187038422, 0.06275821477174759, -0.2228071689605713, 0.042782727628946304, -0.07325422018766403, 0.39208564162254333, -0.12476539611816406, -0.03241090476512909, 0.13282327353954315, 0.5411410927772522, 0.11511440575122833, 0.043964024633169174, -0.1903393566608429, -0.3740386664867401, 0.39028850197792053, -0.144252747297287, -0.001159466803073883, -0.12797820568084717, -0.29296380281448364, -0.3534061908721924, -0.16883060336112976, -0.2915530502796173, -0.16121409833431244, 0.1505149006843567, 0.4554698169231415, 0.16101931035518646, 0.09386426210403442, -0.16105464100837708, 0.1507776379585266, -0.2707726061344147, 0.06625260412693024, -0.05741764232516289, 0.5020131468772888, -0.12635675072669983, -0.15852729976177216, 0.18064972758293152, 0.17875516414642334, 0.06325283646583557, -0.16815774142742157, -0.15894338488578796, 0.648518443107605, 0.27130699157714844, 0.04844381660223007, 0.038805730640888214, 0.36084359884262085, 0.08078224211931229, -0.28993895649909973, -0.1948247104883194, 0.46669474244117737, 0.08105175197124481, -0.04726531356573105, -0.2869676351547241, 0.19713330268859863, 0.015922706574201584, 0.0586942695081234, -0.0835326761007309, 0.0437808632850647, 0.18770238757133484, -0.13609960675239563, 0.0009355926886200905, -0.20134109258651733, 0.01812683790922165, 0.059130121022462845, -0.02876254916191101, -0.04814504086971283, 0.15275700390338898, 0.014098010957241058, 0.5439438223838806, 0.16293835639953613, 0.0960722491145134, 0.06535731256008148, 0.028535395860671997, 0.006357070058584213, 0.03511125594377518, 0.17521242797374725, 0.414634644985199, 0.04155953228473663, -0.06967639923095703, 0.15235765278339386, -0.27485018968582153, -0.12315163761377335, 0.14464977383613586, 0.04761498421430588, 0.13739532232284546, 0.3807853162288666, -0.002935169730335474, 0.008423876017332077, -0.3814856708049774, 0.08109219372272491, 0.04410966485738754, 0.34290042519569397, -0.506031334400177, -0.04762566462159157, -0.31287968158721924, 0.10866939276456833, -0.37066832184791565, -0.14830996096134186, -0.20312108099460602, -0.34369248151779175, 0.108415886759758, 0.279842346906662, -0.07213208824396133, 0.30479636788368225, -0.13618849217891693, 0.0270281583070755, 0.08976461738348007, -0.25386548042297363, 0.09280899167060852, -0.16014380753040314, -0.1398138403892517, 0.10704363882541656, 0.46823424100875854, 0.20569980144500732, 0.3695555031299591, -0.30312225222587585, -0.24898934364318848, -0.3351152241230011, -0.356869637966156, 0.0004818439483642578, -0.31714457273483276, 0.45743122696876526, 0.16177040338516235, 0.1355622112751007, -0.06273186951875687, -0.293845534324646, 0.2510892450809479, -0.07280085235834122, -0.31301718950271606, 0.011104797944426537, -0.07628723233938217, -0.06945475935935974, -0.008502926677465439, -0.3741958439350128, -0.11391501873731613, -0.2977094352245331, -0.07381249964237213, 0.04908061400055885, 0.14048361778259277, 0.14691905677318573, 0.17792749404907227, 0.22740909457206726, -0.1379925161600113, 0.25626516342163086, -0.13240736722946167, -0.3583599030971527, 0.3136891722679138, -0.07234640419483185, -0.469256728887558, -0.02300131693482399, 0.11477376520633698, 0.05680607259273529, 0.2794542908668518, -0.6367389559745789, -0.3468094766139984, -0.3090006709098816, 0.1584845781326294, 0.3069562315940857, 0.24160347878932953, 0.26805567741394043, 0.06028612330555916, -0.08822712302207947, -0.2778051793575287, 0.029187850654125214, 0.05680399388074875, -0.16383704543113708, 0.37146544456481934, -0.013132985681295395, 0.06780318915843964, -0.21458983421325684, 0.7725067734718323, 0.8476488590240479, -0.03416314348578453, 0.17930346727371216, -0.25584205985069275, 0.2529027462005615, -0.04752796143293381, -0.3185366988182068, 0.14989495277404785, -0.05425046384334564, 0.1831476390361786, 0.20637786388397217, -0.0034439917653799057, 0.033900775015354156, -0.1556251347064972, 0.0918431431055069, -0.44739624857902527, -0.4519657790660858, 0.06333322077989578, -0.008808158338069916, 0.30082231760025024, -0.04733343422412872, 0.008187763392925262, -0.04720677435398102, -0.37459489703178406, 0.3198010325431824, 0.38579243421554565, -0.30049553513526917, -0.13211289048194885, -0.3600718677043915, -0.17075109481811523, -0.13382965326309204, 0.058453284204006195, 0.24868884682655334, 0.4018956124782562, 0.13619652390480042, -0.16629958152770996, 0.018379591405391693, -0.18842974305152893, 0.3203955292701721, -0.34273165464401245, 0.2334194779396057, 0.10179184377193451, 0.23335525393486023, -0.22769911587238312, -0.3085293769836426, -0.2822836637496948, -0.020054137334227562, 0.1085686981678009, 0.33346718549728394, -0.41968828439712524, -0.005934514105319977, 0.2505587339401245, 0.3842856287956238, -0.0061911121010780334, 0.02085202932357788, -0.38547536730766296, -0.1255662739276886, -0.5407440066337585, 0.025071874260902405, -0.12128165364265442, 0.3175775110721588, -0.3936636745929718, -0.12759655714035034, -0.053144343197345734, 0.027388710528612137, 0.1481829285621643, -0.0054098013788461685, 0.35599586367607117, 0.1155206710100174, 0.2726922631263733, -0.11625936627388, -0.029605917632579803, 0.31918567419052124, 0.940315306186676, -0.07496008276939392, -0.2014557123184204, -0.12985044717788696, -0.18545900285243988, -0.005612112581729889, 0.14037898182868958, -0.10870086401700974, -0.044112466275691986, 0.2422468662261963, 0.05607547610998154, -0.008850815705955029, 0.14115573465824127, 0.25840023159980774, 0.030607454478740692, -0.09100521355867386, -0.2692292630672455, 0.21996375918388367, 0.04239678010344505, -0.14827130734920502, 0.34644007682800293, 0.3208931088447571, -0.1400701105594635, -0.027829721570014954, 0.17886875569820404, 0.7795261144638062, 0.06768856197595596, -0.008373904973268509, 0.23871758580207825, -0.013949457556009293, 0.201188862323761, -0.21382476389408112, -0.01715514436364174, -0.294403612613678, -0.24496187269687653, 0.010862985625863075, -0.11241988837718964, 0.07992617040872574, -0.16837741434574127, -0.2808581590652466, 0.13982805609703064, 0.07000958919525146, 0.4579418897628784, -0.1380642205476761, 0.24040132761001587, 0.02211851067841053, 0.01746326871216297, -0.06889846920967102, 0.16002215445041656, 0.1030893549323082, 0.23886309564113617, -0.048167355358600616, 0.07976438105106354, -0.2951776385307312, -0.23033995926380157, -0.5460959672927856, 0.11877957731485367, -0.2099141776561737, 0.34834975004196167, 0.19490186870098114, -0.037304431200027466, -0.19196893274784088, 0.26198625564575195, 0.4846099615097046, 0.15719015896320343, -0.4252418279647827, 0.13856248557567596, 0.015323039144277573, -0.008470901288092136, 0.08420705050230026, -0.12548768520355225, 0.28349125385284424, -0.1981443166732788, -0.4952583909034729, 0.19448694586753845, -0.11520455777645111, -0.3382149934768677, 0.14761438965797424, -0.24949879944324493, 0.12200888246297836, -0.26192575693130493, 0.11697369813919067, 0.06965860724449158, -0.0029662176966667175, -0.2486807256937027, 0.15516094863414764, 0.044917598366737366, -0.09400612860918045, 0.3740290105342865, -0.053290802985429764, -0.2852621078491211, -0.07187716662883759, 0.48128554224967957, 0.07699593901634216, -0.11628780514001846, 0.48952484130859375, -0.0010246820747852325, -0.06660590320825577, -0.26881831884384155, 0.04659436643123627, 0.08755214512348175, -0.4308992922306061, -0.18970219790935516, -0.09274164587259293, 0.16258858144283295, 0.157539501786232, 0.6355025172233582, 0.24869991838932037, 0.18579405546188354, 0.02658158168196678, -0.5796465277671814, -0.06902499496936798, 0.04051638022065163, 0.16742245852947235, 0.34878009557724, -0.29627725481987, -0.2195613533258438, 0.01663895510137081, -0.04078704118728638, -0.3520961105823517, -0.001277646515518427, -0.25089922547340393, 0.17498476803302765, 0.055400434881448746, 0.15815983712673187, 0.269403874874115, -0.06177319958806038, 0.15066301822662354, -0.11110295355319977, -0.2560623288154602, -0.26080602407455444, -0.2363162487745285, 0.13708645105361938, 0.2182035744190216, -0.2484065145254135, 0.14987468719482422, -0.14642837643623352, -0.11160537600517273, -0.09745970368385315, 0.2668450176715851, -0.14770805835723877, -0.09457479417324066, 0.2669427692890167, 0.34988534450531006, 0.050933364778757095, -0.027265943586826324, -0.18575997650623322, -0.3273162841796875, 0.059204570949077606, 0.034166380763053894, 0.05892198532819748, -0.05245928466320038, -0.05812644958496094, 0.1546824425458908, 0.19242767989635468, 0.1790865659713745, 0.2812556028366089, 0.26290473341941833, -0.15931658446788788, -0.11657831072807312, 0.28499510884284973, 0.3347371816635132, 0.4857284724712372, -0.4752926230430603, -0.05609867721796036, 0.36260756850242615, 0.24151264131069183, -0.3137351870536804, -0.20710495114326477, 0.19779732823371887, -0.05474989116191864, 0.19395087659358978, 0.19608327746391296, 0.3198989927768707, -0.3945065140724182, 0.33892351388931274, -0.01777220144867897, 0.2115640789270401, -0.08421961963176727, 0.24409404397010803, 0.4364045560359955, -0.16955122351646423, -0.10127313435077667, -0.22487381100654602, -0.24879580736160278, -0.02564416080713272, 0.11321553587913513, -0.17573004961013794, 0.26768338680267334, -0.26473116874694824, 0.1428617388010025, -0.040221698582172394, -0.14661797881126404, 0.336132287979126, -0.05786660313606262, -0.22195219993591309, -0.011302836239337921, 0.1137453243136406, 0.35031983256340027, -0.16303877532482147, 0.10505523532629013, -0.39256635308265686, 0.29581499099731445, 0.10188128054141998, -0.14319467544555664, -0.4772517681121826, -0.13127931952476501, -0.13291358947753906, 0.035928744822740555, -0.060021329671144485, 0.04301033914089203, 0.2928242087364197, 0.19215933978557587, -0.3760693073272705, -0.4219023585319519, -0.007567707449197769, 0.17774885892868042, 0.24158629775047302, -0.16166701912879944, 0.3881388008594513, 0.26577332615852356, -0.17685604095458984, -0.04887009039521217, 0.676536500453949, 0.3652324676513672, 0.3455764949321747, 0.25144442915916443, -0.009530543349683285, 0.1355675458908081, 0.06405395269393921, -0.058499500155448914, 0.4619525671005249, -0.12056303024291992, 0.0351969376206398, 0.3226483166217804, 0.17667795717716217, -0.2160205841064453, -0.2074226588010788, -0.28386688232421875, -0.11885280907154083, -0.08496196568012238, 0.19333171844482422, 0.0023643039166927338, 0.20449823141098022, -0.1406705230474472, 0.13263070583343506, -0.38075464963912964, -0.18690061569213867, 0.3933756351470947, 0.1666882336139679, 0.3197234272956848, -0.07623983174562454, 0.10487682372331619, 0.048639215528964996, 0.49929094314575195, 0.28180643916130066, -0.03797280788421631, -0.1664925515651703, -0.390896737575531, -0.7911039590835571, 0.1355205625295639, -0.2701990008354187, -0.20823000371456146, 0.01389210857450962, 0.04827718436717987, -0.17418652772903442, 0.3803703188896179, 0.2250049114227295, -0.1221984326839447, -0.12540924549102783, -0.01584913581609726, -0.4008708596229553, -0.09040853381156921, -0.06789292395114899, -0.0802578255534172, 0.030302975326776505, -0.38798075914382935, 0.33090656995773315, -0.02537694200873375, 0.05141609162092209, -0.0008093621581792831, -0.024906493723392487, -0.052152879536151886, -0.20847517251968384, 0.32368379831314087, 0.09329439699649811, 0.37405696511268616, -0.12772107124328613, -0.21635060012340546, -0.34276527166366577, 0.05194561183452606, -0.24891124665737152, 0.24225115776062012, -0.10716314613819122, 0.39610520005226135, -0.033292241394519806, -0.10481339693069458, -0.2180284559726715, 0.2694544494152069, 0.2818734645843506, -0.3306216895580292, 0.011844279244542122, -0.015581468120217323, 0.05158144235610962, -0.041456133127212524, 0.26483041048049927, 0.054451942443847656, -0.08127270638942719, 0.2713007926940918, -0.14847321808338165, -0.47200027108192444, 0.35015982389450073, -0.10277418792247772, 0.08274003863334656, -0.18218451738357544, 0.23413333296775818, -0.2871403694152832, 0.07512592524290085, -0.7774534225463867, 0.1597682237625122, 0.42801907658576965, 0.12505581974983215, -0.24571706354618073, 0.269445538520813, -0.007351832464337349, 0.17954127490520477, -0.04198886826634407, 0.20900669693946838, -0.09923974424600601, -0.12011950463056564, 0.047234032303094864, -0.11655142903327942 ]
https://github.com/huggingface/datasets/issues/3939
Source links broken
Thanks for reporting @qqaatw. @mishig25 @sgugger do you think this can be tweaked in the new doc framework? - From: https://github.com/huggingface/datasets/blob/v2.0.0/ - To: https://github.com/huggingface/datasets/blob/2.0.0/
## Describe the bug The source links of v2.0.0 docs are broken: For exmaple, clicking the source button of this [class](https://huggingface.co/docs/datasets/v2.0.0/en/package_reference/main_classes#datasets.ClassLabel) will direct users to `https://github.com/huggingface/datasets/blob/v2.0.0/src/datasets/features/features.py#L747` here, the `v2.0.0` should be `2.0.0`. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug ``` ## Expected results Redirecting to this link: `https://github.com/huggingface/datasets/blob/2.0.0/src/datasets/features/features.py#L747` ## Actual results Described above. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: - Platform: - Python version: - PyArrow version:
24
Source links broken ## Describe the bug The source links of v2.0.0 docs are broken: For exmaple, clicking the source button of this [class](https://huggingface.co/docs/datasets/v2.0.0/en/package_reference/main_classes#datasets.ClassLabel) will direct users to `https://github.com/huggingface/datasets/blob/v2.0.0/src/datasets/features/features.py#L747` here, the `v2.0.0` should be `2.0.0`. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug ``` ## Expected results Redirecting to this link: `https://github.com/huggingface/datasets/blob/2.0.0/src/datasets/features/features.py#L747` ## Actual results Described above. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: - Platform: - Python version: - PyArrow version: Thanks for reporting @qqaatw. @mishig25 @sgugger do you think this can be tweaked in the new doc framework? - From: https://github.com/huggingface/datasets/blob/v2.0.0/ - To: https://github.com/huggingface/datasets/blob/2.0.0/
[ -0.018727196380496025, -0.00637325644493103, 0.050637226551771164, -0.015585415065288544, 0.10345367342233658, 0.0018572434782981873, 0.0943082943558693, 0.4163026511669159, -0.3947235345840454, -0.08368410170078278, -0.03725793957710266, 0.31795260310173035, -0.1664927899837494, 0.22428511083126068, 0.30808037519454956, -0.05252967029809952, 0.04873376712203026, 0.22380474209785461, -0.2547571361064911, -0.049192070960998535, -0.2380853295326233, 0.34198442101478577, -0.25536131858825684, 0.13125444948673248, -0.3358222246170044, 0.2073526829481125, 0.05167140066623688, 0.27381765842437744, -0.21539539098739624, -0.5224084258079529, 0.1666758507490158, 0.14613912999629974, -0.09800823777914047, 0.2974536418914795, -0.0001076929911505431, 0.0006842613220214844, 0.4079018831253052, 0.13414964079856873, -0.4486331641674042, -0.2668796181678772, -0.13022300601005554, -0.014327581971883774, -0.038892991840839386, 0.03160104900598526, -0.09175723791122437, -0.3623396158218384, -0.05344008654356003, 0.0620410218834877, 0.12489624321460724, 0.42761707305908203, 0.2671465277671814, 0.2947671711444855, 0.4018472135066986, 0.004119553603231907, 0.3169032633304596, 0.1281159371137619, -0.15327438712120056, 0.2432875782251358, 0.22169511020183563, -0.12914130091667175, 0.009592026472091675, 0.4768325984477997, -0.06807930022478104, -0.3794160485267639, 0.48655614256858826, 0.09330189973115921, -0.21825090050697327, -0.18065305054187775, 0.1244000643491745, 0.32174772024154663, 0.4607047736644745, -0.13071522116661072, -0.4646192491054535, -0.04796476289629936, -0.17966099083423615, -0.0997239202260971, 0.25872766971588135, 0.16638542711734772, 0.17240974307060242, 0.37363460659980774, -0.1632019281387329, -0.35253092646598816, -0.1811443567276001, 0.161577045917511, 0.18993493914604187, 0.08879196643829346, -0.22479991614818573, -0.14358627796173096, 0.25068148970603943, -0.12724569439888, 0.08988732844591141, 0.09746666997671127, -0.3128807246685028, 0.23527511954307556, 0.30295464396476746, -0.002952493727207184, 0.22640269994735718, 0.3986928462982178, 0.38988927006721497, 0.05922831594944, -0.2539222836494446, -0.1589946746826172, -0.20678026974201202, -0.025767646729946136, 0.021897396072745323, 0.015102863311767578, 0.03022884577512741, 0.26442667841911316, 0.39532577991485596, 0.45648321509361267, 0.12496614456176758, -0.06972362101078033, 0.09361061453819275, -0.238083615899086, -0.35107311606407166, -0.2569867968559265, 0.2673899531364441, -0.22377824783325195, -0.21472236514091492, 0.14016619324684143, -0.34540459513664246, 0.12687626481056213, 0.18651847541332245, 0.1045878455042839, -0.1278413087129593, 0.39367425441741943, 0.3338072896003723, 0.07700730115175247, -0.3253527879714966, -0.30071690678596497, -0.19395990669727325, 0.1009991317987442, -0.29213395714759827, 0.1147201806306839, 0.10209065675735474, -0.23803645372390747, 0.36872586607933044, 0.24571065604686737, -0.01035422831773758, -0.3510743975639343, -0.15541644394397736, 0.11391669511795044, 0.04534648358821869, 0.13539965450763702, -0.21452449262142181, 0.07333508878946304, 0.09922632575035095, -0.2943175137042999, 0.0547434464097023, 0.06429354101419449, -0.5767098069190979, -0.26697149872779846, -0.24046014249324799, 0.2087739109992981, -0.01043669506907463, 0.08271365612745285, 0.02830766886472702, 0.11780482530593872, -0.20288026332855225, -0.2205187827348709, -0.035593993961811066, 0.04799370467662811, -0.2346375584602356, -0.04468214511871338, 0.4470424950122833, 0.6542373895645142, 0.003845810890197754, -0.2002679705619812, 0.42928680777549744, 0.20778678357601166, -0.26552751660346985, 0.040392518043518066, -0.31475821137428284, 0.07726077735424042, -0.3521564304828644, -0.075222447514534, 0.01589912176132202, -0.4088338315486908, -0.1669684648513794, 0.04037089645862579, -0.07177532464265823, 0.10156040638685226, -0.039860986173152924, -0.27200740575790405, 0.05980336293578148, -0.24865588545799255, 0.17662706971168518, -0.142852321267128, 0.17044676840305328, 0.25420692563056946, -0.38096633553504944, -0.3537798523902893, -0.5163017511367798, -0.2521842420101166, 0.06081031262874603, 0.23324069380760193, 0.08412349969148636, 0.24056555330753326, 0.3700609505176544, -0.2897123694419861, 0.009981054812669754, 0.41879743337631226, 0.2980930209159851, 0.07333088666200638, 0.15278097987174988, -0.13720238208770752, -0.4137675166130066, -0.01441122405230999, -0.010708993300795555, 0.08192674815654755, -0.017585232853889465, -0.17407932877540588, -0.2825232744216919, -0.08269743621349335, -0.004541303962469101, -0.5523072481155396, 0.19271519780158997, -0.006574653089046478, 0.042988818138837814, 0.454512357711792, -0.2057272046804428, 0.14560572803020477, -0.12903067469596863, 0.37767136096954346, -0.09132397174835205, 0.5353217124938965, 0.04041898250579834, -0.06333974748849869, 0.06790436059236526, 0.32096219062805176, 0.17963945865631104, 0.03958452492952347, -0.06199384480714798, 0.49213147163391113, 0.02854103408753872, 0.3934335708618164, 0.2590908110141754, 0.3861043453216553, 0.3593551218509674, -0.5251439809799194, -0.10471146553754807, -0.020649932324886322, -0.0124322809278965, 0.05031144618988037, -0.058868564665317535, 0.08217690885066986, -0.217726930975914, 0.15177419781684875, 0.29380929470062256, 0.26124489307403564, 0.016239715740084648, -0.1683141589164734, -0.30374661087989807, -0.19375598430633545, 0.07946230471134186, 0.05782614275813103, 0.2957598567008972, 0.024156060069799423, -0.23486977815628052, 0.12415536493062973, 0.24025624990463257, -0.01831553317606449, -0.12097790092229843, 0.14074644446372986, -0.4795675277709961, -0.030586600303649902, -0.06076990067958832, 0.27356287837028503, -0.00390779972076416, 0.18367208540439606, -0.03116457536816597, 0.2403925210237503, -0.20200316607952118, -0.13299286365509033, 0.3040076196193695, -0.0053363218903541565, -0.05358818918466568, 0.1049760952591896, -0.019036073237657547, -0.010979725979268551, -0.4027559459209442, 0.14287471771240234, -0.24911636114120483, 0.06210537999868393, -0.6494684219360352, 0.13747788965702057, -0.14727364480495453, 0.059608906507492065, -0.4010850489139557, -0.1703268438577652, -0.26236554980278015, -0.32020875811576843, 0.023020299151539803, 0.4301060140132904, -0.0993967354297638, 0.1361059993505478, -0.035884808748960495, 0.21772634983062744, -0.09718412905931473, 0.20378583669662476, -0.09263455122709274, 0.16184358298778534, -0.19606220722198486, 0.0989433228969574, 0.14471377432346344, -0.0789836123585701, 0.07299158722162247, -0.47038981318473816, -0.132203608751297, -0.3642756938934326, -0.5722596049308777, 0.19214405119419098, 0.018902380019426346, 0.2950075566768646, 0.25049489736557007, 0.10460245609283447, 0.024742409586906433, -0.21640558540821075, 0.3224502503871918, -0.10981667041778564, -0.017880139872431755, -0.17466537654399872, -0.1186218336224556, -0.022393710911273956, -0.12843003869056702, -0.3466692268848419, 0.3226669430732727, -0.20087862014770508, 0.12915797531604767, -0.07345392554998398, -0.041484832763671875, 0.3959861397743225, 0.18233707547187805, 0.18155722320079803, -0.065290667116642, 0.18580658733844757, 0.03629153594374657, -0.36877092719078064, 0.27236926555633545, -0.4087772071361542, -0.3658387362957001, 0.06400768458843231, 0.11807984113693237, 0.05212227627635002, -0.11509709060192108, -0.39087140560150146, -0.255180299282074, -0.13620038330554962, -0.133320152759552, 0.11705734580755234, 0.2899686396121979, 0.10299205034971237, 0.27295368909835815, -0.13980735838413239, -0.18436765670776367, -0.12726840376853943, 0.061849914491176605, -0.2787074148654938, 0.200691819190979, 0.061800386756658554, 0.05903134122490883, 0.31851792335510254, 0.6017564535140991, 0.45735183358192444, 0.14581923186779022, 0.05027938634157181, -0.14854559302330017, 0.5783559679985046, -0.18352118134498596, -0.3250701427459717, 0.1030641421675682, -0.029277563095092773, 0.08981475979089737, 0.22594626247882843, 0.41976383328437805, 0.17923524975776672, -0.21048937737941742, 0.10172055661678314, -0.30772504210472107, -0.2809038460254669, -0.3568471074104309, -0.004193063825368881, 0.3097522556781769, 0.011116795241832733, 0.01597924530506134, 0.0432867556810379, -0.11273403465747833, 0.2602274417877197, 0.24334228038787842, 0.2835391163825989, -0.015327814035117626, -0.2746966779232025, 0.13598187267780304, -0.3467879295349121, -0.1134132593870163, 0.14334213733673096, -0.16299505531787872, 0.06945176422595978, -0.09178100526332855, -0.030289560556411743, -0.03131304308772087, 0.4923918843269348, 0.0448160246014595, 0.11548211425542831, 0.0005086064338684082, 0.05270279943943024, -0.11181411147117615, 0.06787322461605072, 0.10398118197917938, -0.014183638617396355, 0.3997327387332916, 0.15086381137371063, -0.1662704050540924, -0.3040030300617218, 0.574648380279541, -0.18543492257595062, 0.14414088428020477, 0.2501488924026489, 0.02787778154015541, -0.08171209692955017, 0.034907400608062744, -0.21403264999389648, 0.10140091925859451, 0.1384950429201126, -0.2695966362953186, -0.2430802881717682, 0.3055339753627777, -0.3200916051864624, -0.10549740493297577, 0.001531403511762619, 0.3896713852882385, 0.023887040093541145, 0.1360434740781784, 0.4518066346645355, 0.22300828993320465, 0.5665264129638672, 0.4972709119319916, -0.34185200929641724, -0.4445134401321411, -0.2440495789051056, -0.016110926866531372, -0.0021375641226768494, 0.2556374669075012, -0.19287993013858795, -0.07116522639989853, 0.05054927617311478, -0.0775006115436554, -0.243781179189682, -0.02037244848906994, 0.5912912487983704, 0.1602550894021988, -0.12548331916332245, -0.25899937748908997, 0.32231518626213074, 0.03763255104422569, 0.006918631494045258, 0.17984947562217712, 0.6519491672515869, -0.3302472233772278, -0.31811606884002686, 0.09343378245830536, 0.7855846881866455, 0.19373063743114471, 0.13964976370334625, 0.16639894247055054, -0.28204748034477234, 0.5491796731948853, -0.1134478822350502, -0.02582869678735733, -0.3375852406024933, -0.005801352672278881, -0.09174152463674545, -0.08353543281555176, 0.11454223841428757, -0.10695834457874298, -0.09798357635736465, 0.10178883373737335, -0.156188502907753, 0.32944798469543457, 0.10973216593265533, 0.0009020604193210602, 0.16294677555561066, -0.018673889338970184, -0.0811820849776268, 0.15163718163967133, 0.0768151730298996, 0.13759589195251465, -0.08108250051736832, -0.2508808374404907, -0.07867191731929779, -0.2425934225320816, -0.3804852366447449, 0.22436422109603882, -0.23277482390403748, -0.133132666349411, 0.33351513743400574, -0.15524767339229584, 0.14357618987560272, 0.46903932094573975, 0.2754203677177429, 0.20221126079559326, -0.5634796619415283, 0.12799032032489777, -0.2899840176105499, -0.005813159979879856, 0.20627395808696747, 0.18661238253116608, 0.2261178344488144, -0.09428032487630844, -0.14674712717533112, 0.0264061838388443, -0.10771223157644272, -0.14050306379795074, 0.11451917886734009, -0.35221773386001587, -0.23959840834140778, -0.18641743063926697, 0.2506723403930664, 0.2529904842376709, 0.09429661929607391, -0.36537492275238037, 0.18491613864898682, -0.006756879389286041, -0.05304041877388954, -0.24625983834266663, 0.1964193880558014, -0.14277978241443634, 0.06598488986492157, 0.49925696849823, -0.28505581617355347, -0.08623239398002625, 0.2825776934623718, 0.16508765518665314, -0.2940937280654907, -0.16211146116256714, 0.1773684322834015, 0.013757702894508839, -0.3952940106391907, 0.204675555229187, 0.08537314087152481, 0.15643702447414398, 0.06487051397562027, 0.3113628923892975, -0.03318021446466446, 0.2252185344696045, -0.014050982892513275, -0.03202088549733162, -0.04779474809765816, 0.2423122227191925, -0.2076844424009323, -0.009348016232252121, -0.031014177948236465, 0.026616685092449188, 0.2681165337562561, -0.2500365376472473, -0.3690493702888489, 0.19615814089775085, -0.03876051679253578, -0.12255015969276428, 0.21630696952342987, -0.044503629207611084, 0.4123308062553406, -0.19865140318870544, 0.16001510620117188, -0.32148128747940063, -0.1287168562412262, -0.1150253638625145, -0.5364829301834106, 0.03884723782539368, 0.030063701793551445, -0.2542648911476135, -0.013976098038256168, -0.17005206644535065, -0.09897977113723755, -0.1917017549276352, 0.19122886657714844, 0.3731423318386078, 0.035614822059869766, 0.18562200665473938, -0.18919222056865692, 0.025070801377296448, -0.00619487464427948, 0.10736269503831863, 0.013212554156780243, 0.2367616891860962, 0.03590145707130432, 0.09477923065423965, -0.19361773133277893, -0.20670823752880096, -0.04076084867119789, 0.3944602310657501, -0.15632587671279907, 0.1539541780948639, 0.41925132274627686, -0.24089376628398895, 0.046812403947114944, 0.13279715180397034, 0.4078320264816284, 0.2151671051979065, -0.17236018180847168, 0.14993731677532196, 0.12904900312423706, 0.2231355458498001, -0.06006135791540146, -0.30679020285606384, -0.11226066946983337, -0.11520687490701675, 0.08964695036411285, 0.031320154666900635, 0.21900427341461182, -0.34704312682151794, 0.2344122976064682, 0.04774944484233856, -0.055998992174863815, 0.00027484819293022156, 0.3516019284725189, 0.41573256254196167, 0.05078820511698723, 0.14394795894622803, -0.014055406674742699, -0.008917227387428284, 0.14844639599323273, 0.09558510035276413, -0.07380155473947525, -0.16817401349544525, 0.048362791538238525, 0.342197060585022, 0.025858473032712936, 0.04678935930132866, -0.2201746255159378, -0.035621315240859985, 0.03959902375936508, -0.11429768055677414, -0.22484225034713745, 0.31178516149520874, -0.00622746255248785, -0.24969880282878876, -0.10492104291915894, 0.31560179591178894, -0.0050972141325473785, -0.3626657724380493, -0.14085137844085693, -0.22752398252487183, -0.002746865153312683, -0.132359117269516, -0.013432096689939499, -0.09802496433258057, 0.027810916304588318, -0.10276898741722107, -0.09111973643302917, -0.3654923439025879, -0.15654256939888, 0.06406237185001373, 0.3974716067314148, -0.11330236494541168, 0.0956873893737793, -0.2018597275018692, 0.019768361002206802, 0.07895959913730621, 0.577748715877533, 0.31108540296554565, 0.2805877923965454, 0.2596609890460968, -0.4041694104671478, -0.06441642343997955, 0.03456597775220871, 0.06271711736917496, 0.11023806780576706, 0.013393543660640717, -0.18083058297634125, 0.17493729293346405, 0.11098039150238037, -0.23032107949256897, 0.008718252182006836, -0.2700975239276886, 0.2674710154533386, -0.22909310460090637, 0.15595798194408417, -0.14047090709209442, -0.035234592854976654, -0.3502380847930908, 0.10413473099470139, -0.18847548961639404, 0.023070866242051125, 0.3831007480621338, -0.17260167002677917, 0.012891992926597595, -0.02434036135673523, 0.10895439982414246, 0.42836499214172363, 0.16802792251110077, 0.5175715684890747, -0.046766459941864014, -0.024391550570726395, -0.44653797149658203, -0.1193038821220398, 0.032985128462314606, 0.007810607552528381, 0.10346604883670807, -0.18982763588428497, -0.0956684798002243, -0.16964060068130493, 0.046763382852077484, -0.0660494863986969, -0.2816060185432434, 0.05894649028778076, -0.09374882280826569, -0.15559758245944977, 0.06231696158647537, -0.282170832157135, 0.13386213779449463, -0.08856312930583954, 0.07645101100206375, 0.06973915547132492, -0.053744226694107056, 0.012716669589281082, 0.16643209755420685, 0.5708866715431213, -0.269040584564209, -0.13326941430568695, 0.19472694396972656, 0.13370178639888763, 0.08313117921352386, -0.10341409593820572, -0.3244401514530182, -0.5144071578979492, -0.450884610414505, -0.17803117632865906, 0.16279810667037964, -0.20570044219493866, 0.20961271226406097, -0.1672447919845581, -0.44719839096069336, -0.22468221187591553, 0.18414244055747986, 0.19264847040176392, 0.3129352629184723, -0.3379458487033844, 0.19903945922851562, -0.008137650787830353, -0.08605730533599854, 0.20508207380771637, 0.3229793608188629, -0.3311225175857544, 0.019700845703482628, -0.1655488759279251, -0.4255652129650116, 0.41102129220962524, -0.39705032110214233, 0.2084779143333435, 0.11762223392724991, 0.5874205827713013, 0.16799494624137878, -0.33221837878227234, -0.4091682732105255, -0.046515993773937225, 0.30956536531448364, 0.17823708057403564, -0.5145274996757507, 0.20178794860839844, -0.033518046140670776, 0.19734980165958405, 0.017256110906600952, 0.18790730834007263, 0.2927708923816681, -0.03396844118833542, 0.32570016384124756, -0.10063997656106949 ]
https://github.com/huggingface/datasets/issues/3939
Source links broken
@qqaatw thanks a lot for notifying about this issue! in comparison, transformers tags start with `v` like [this one](https://github.com/huggingface/transformers/blob/v4.17.0/src/transformers/models/bert/configuration_bert.py#L54). Therefore, we have to do one of 2 options below: 1. Make necessary changes on doc-builder side OR 2. Make [datasets tags](https://github.com/huggingface/datasets/tags) start with `v`, just like [transformers](https://github.com/huggingface/transformers/tags) (so that tag naming can be consistent amongst hf repos) I'll let you decide @albertvillanova @lhoestq @sgugger
## Describe the bug The source links of v2.0.0 docs are broken: For exmaple, clicking the source button of this [class](https://huggingface.co/docs/datasets/v2.0.0/en/package_reference/main_classes#datasets.ClassLabel) will direct users to `https://github.com/huggingface/datasets/blob/v2.0.0/src/datasets/features/features.py#L747` here, the `v2.0.0` should be `2.0.0`. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug ``` ## Expected results Redirecting to this link: `https://github.com/huggingface/datasets/blob/2.0.0/src/datasets/features/features.py#L747` ## Actual results Described above. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: - Platform: - Python version: - PyArrow version:
64
Source links broken ## Describe the bug The source links of v2.0.0 docs are broken: For exmaple, clicking the source button of this [class](https://huggingface.co/docs/datasets/v2.0.0/en/package_reference/main_classes#datasets.ClassLabel) will direct users to `https://github.com/huggingface/datasets/blob/v2.0.0/src/datasets/features/features.py#L747` here, the `v2.0.0` should be `2.0.0`. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug ``` ## Expected results Redirecting to this link: `https://github.com/huggingface/datasets/blob/2.0.0/src/datasets/features/features.py#L747` ## Actual results Described above. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: - Platform: - Python version: - PyArrow version: @qqaatw thanks a lot for notifying about this issue! in comparison, transformers tags start with `v` like [this one](https://github.com/huggingface/transformers/blob/v4.17.0/src/transformers/models/bert/configuration_bert.py#L54). Therefore, we have to do one of 2 options below: 1. Make necessary changes on doc-builder side OR 2. Make [datasets tags](https://github.com/huggingface/datasets/tags) start with `v`, just like [transformers](https://github.com/huggingface/transformers/tags) (so that tag naming can be consistent amongst hf repos) I'll let you decide @albertvillanova @lhoestq @sgugger
[ 0.006573304533958435, -0.08832721412181854, 0.05522353574633598, -0.007706098258495331, 0.25734013319015503, -0.07141048461198807, 0.194563090801239, 0.3197163939476013, -0.34240084886550903, -0.13495005667209625, -0.1559809446334839, 0.28022944927215576, -0.05605556070804596, 0.11672698706388474, 0.21472491323947906, -0.21557900309562683, 0.06494120508432388, 0.292023241519928, -0.25285908579826355, -0.15068894624710083, -0.15187537670135498, 0.317106693983078, -0.17909318208694458, 0.19205862283706665, -0.32746580243110657, 0.2798103988170624, 0.15340213477611542, 0.15356740355491638, -0.00003627687692642212, -0.4888615906238556, 0.19652600586414337, 0.12913069128990173, -0.016727792099118233, 0.46706172823905945, -0.0001063202871591784, 0.12509208917617798, 0.39060723781585693, 0.12827225029468536, -0.4004868268966675, -0.24710465967655182, -0.07335799932479858, 0.06785023212432861, -0.06858647614717484, 0.04545145481824875, -0.10743334144353867, -0.3432089388370514, 0.07064757496118546, 0.10799245536327362, 0.2038639783859253, 0.20740696787834167, 0.27286967635154724, 0.4251801371574402, 0.37826502323150635, -0.012951119802892208, 0.41144993901252747, 0.19365908205509186, -0.11234188824892044, 0.1789724975824356, 0.06014183163642883, -0.12187417596578598, -0.04650551825761795, 0.5278472304344177, 0.03818853199481964, -0.267795592546463, 0.515367865562439, 0.09370476752519608, -0.24435865879058838, -0.13239207863807678, 0.09913307428359985, 0.30126115679740906, 0.36470070481300354, -0.21121445298194885, -0.49382084608078003, 0.00017862766981124878, -0.23583315312862396, -0.035683292895555496, 0.2547632157802582, 0.10252410918474197, 0.23150157928466797, 0.30294808745384216, -0.15009669959545135, -0.3075670301914215, -0.1629028469324112, 0.11765024065971375, 0.16969376802444458, 0.2454024702310562, -0.17035286128520966, -0.13397130370140076, 0.21041247248649597, -0.1295374035835266, 0.030989743769168854, 0.019034620374441147, -0.2692014276981354, 0.2128344476222992, 0.25986436009407043, 0.03285261243581772, 0.08828951418399811, 0.08656340092420578, 0.32080990076065063, -0.1182466447353363, -0.2992308437824249, -0.1321708858013153, -0.1913217008113861, -0.037823617458343506, 0.012420517392456532, 0.0790378600358963, -0.08789161592721939, 0.4679938554763794, 0.37435048818588257, 0.4274033308029175, 0.08931024372577667, -0.08591285347938538, 0.08248679339885712, -0.23196983337402344, -0.24578619003295898, -0.1987798810005188, 0.15919440984725952, -0.0811111181974411, -0.014624943025410175, 0.06304723769426346, -0.3364952504634857, 0.05280004441738129, 0.167098730802536, 0.2440323829650879, -0.09627020359039307, 0.39418384432792664, 0.20296655595302582, 0.06706240773200989, -0.23618511855602264, -0.14381693303585052, -0.25301027297973633, 0.01594531536102295, -0.27756163477897644, -0.039015911519527435, 0.08575864136219025, -0.30967018008232117, 0.23990489542484283, 0.1473229080438614, 0.08369728922843933, -0.20594368875026703, -0.19745060801506042, 0.14437571167945862, 0.1165769100189209, 0.3383277952671051, -0.22126983106136322, 0.2161153256893158, 0.16554445028305054, -0.20284521579742432, 0.036064788699150085, 0.014080677181482315, -0.5151785016059875, -0.11994744837284088, -0.17744839191436768, 0.24681545794010162, 0.005151301622390747, 0.0759170800447464, -0.06467906385660172, -0.04199743643403053, -0.12024907022714615, -0.19731226563453674, -0.03686206787824631, 0.11082284152507782, -0.07676907628774643, -0.033897776156663895, 0.4125281870365143, 0.5208439826965332, -0.036895934492349625, -0.39353132247924805, 0.4047827124595642, 0.16314156353473663, -0.1775090992450714, 0.143285870552063, -0.3420290946960449, 0.00851815938949585, -0.2706589102745056, -0.11793318390846252, -0.07658661156892776, -0.3609597980976105, -0.24495205283164978, 0.22270770370960236, -0.0016612187027931213, 0.0901210755109787, -0.07533874362707138, -0.23552244901657104, -0.011615345254540443, -0.1539643555879593, 0.006134063005447388, -0.262268602848053, 0.17937421798706055, 0.3360823690891266, -0.36641842126846313, -0.4304910898208618, -0.3072747588157654, -0.18468494713306427, 0.13534289598464966, 0.28572121262550354, 0.0003828778862953186, 0.36894282698631287, 0.31141558289527893, -0.24695122241973877, 0.028399355709552765, 0.5051507949829102, 0.27330899238586426, 0.057957082986831665, 0.316569447517395, -0.11780428886413574, -0.49348074197769165, 0.008391615003347397, -0.20248104631900787, 0.1571638137102127, -0.00047051161527633667, -0.13524067401885986, -0.353607177734375, -0.0600259006023407, 0.013239674270153046, -0.49089309573173523, 0.19138269126415253, 0.025792479515075684, -0.11175563931465149, 0.24875538051128387, -0.17168787121772766, 0.06510984152555466, 0.07135415822267532, 0.28543493151664734, -0.18426407873630524, 0.6522876620292664, -0.11032360047101974, 0.041320715099573135, -0.022340301424264908, 0.2086711823940277, 0.19806137681007385, -0.040436286479234695, -0.18119195103645325, 0.46354058384895325, -0.03577003628015518, 0.46842825412750244, 0.24343827366828918, 0.39545154571533203, 0.4232787787914276, -0.6769606471061707, -0.0680813416838646, 0.23788899183273315, 0.061164453625679016, 0.05185353010892868, -0.15336591005325317, -0.07803131639957428, -0.20215055346488953, 0.12722516059875488, 0.29532212018966675, 0.18230117857456207, 0.09995216131210327, -0.1082378625869751, -0.3196212649345398, -0.20149827003479004, 0.05501577630639076, 0.09016837179660797, 0.35740333795547485, 0.1439761072397232, -0.09223243594169617, -0.019955158233642578, 0.41580331325531006, 0.008318763226270676, -0.09114506095647812, 0.24261650443077087, -0.6027883887290955, 0.03111240640282631, -0.13308770954608917, 0.14087918400764465, -0.09195464849472046, 0.1593044102191925, -0.10361972451210022, 0.0961064025759697, -0.2534540891647339, -0.13966864347457886, 0.34617412090301514, 0.19419166445732117, -0.027099719271063805, 0.13989543914794922, -0.004346281755715609, 0.073723204433918, -0.3817145526409149, -0.059618063271045685, -0.1980961561203003, -0.003168424591422081, -0.5729356408119202, 0.21626481413841248, -0.11706910282373428, 0.0944562628865242, -0.4428468346595764, -0.3303820788860321, -0.4261094331741333, -0.28538814187049866, 0.00585254468023777, 0.22882457077503204, -0.1748674064874649, 0.3124576508998871, 0.14807114005088806, 0.07110631465911865, -0.04109756648540497, 0.0884726494550705, -0.1559079885482788, 0.07679331302642822, -0.15819686651229858, 0.07606455683708191, 0.02646704390645027, -0.1489148586988449, -0.06248290836811066, -0.3570835292339325, -0.17311495542526245, -0.26137080788612366, -0.6772151589393616, 0.3111251890659332, -0.004201963543891907, 0.21398842334747314, 0.32881492376327515, 0.054091185331344604, 0.01160304993391037, -0.2733727693557739, 0.35486847162246704, -0.05301223695278168, 0.08010740578174591, -0.04306713491678238, -0.2086726278066635, -0.04743769019842148, -0.1984630674123764, -0.34039655327796936, 0.31577450037002563, -0.3135410249233246, 0.07668951153755188, -0.10404612123966217, -0.061331361532211304, 0.568486213684082, 0.0826462060213089, 0.13006527721881866, 0.06882533431053162, 0.16183233261108398, 0.06848929077386856, -0.1441926211118698, 0.3157408535480499, -0.3044099807739258, -0.3007640540599823, -0.012480657547712326, -0.06195316091179848, 0.029726965352892876, -0.18005609512329102, -0.2494424283504486, -0.08452101796865463, -0.2803371846675873, -0.2651456296443939, 0.15524649620056152, 0.36137619614601135, -0.00782950222492218, 0.27847224473953247, -0.11681728065013885, -0.2203999161720276, -0.05243765562772751, 0.04514782130718231, -0.23665693402290344, 0.20671150088310242, 0.041631802916526794, 0.024815022945404053, 0.12740901112556458, 0.7445490956306458, 0.3744005858898163, 0.022750813513994217, 0.07578567415475845, -0.07840375602245331, 0.39578333497047424, -0.18995261192321777, -0.351010799407959, 0.026480088010430336, -0.015322282910346985, 0.11675594747066498, 0.23789046704769135, 0.30862531065940857, 0.14837676286697388, -0.10459111630916595, 0.05398561432957649, -0.22009733319282532, -0.3021542429924011, -0.25298044085502625, 0.02830483950674534, 0.31841135025024414, 0.041960496455430984, 0.06339363753795624, -0.034647874534130096, -0.03425168618559837, 0.28034815192222595, 0.2388090193271637, 0.18910253047943115, -0.05405844748020172, -0.1551043838262558, 0.09145297855138779, -0.1900840699672699, -0.11413529515266418, 0.13444359600543976, -0.13187074661254883, 0.10708831250667572, -0.16743162274360657, -0.09544679522514343, -0.0775546282529831, 0.5738285779953003, 0.09871437400579453, 0.20874306559562683, 0.05136933550238609, 0.05524357408285141, -0.0276316050440073, 0.009201634675264359, -0.00051078200340271, -0.27815768122673035, 0.4202432632446289, 0.21957165002822876, -0.323696494102478, -0.3355166018009186, 0.4898747503757477, -0.2777423560619354, 0.06940795481204987, 0.21461227536201477, -0.10754243284463882, 0.011725813150405884, -0.10031113773584366, -0.32748425006866455, 0.11997049301862717, 0.12486816197633743, -0.33183369040489197, -0.19163988530635834, 0.26266324520111084, -0.37108322978019714, -0.03846590220928192, 0.13828817009925842, 0.3959484398365021, 0.056457385420799255, 0.1404435932636261, 0.40675240755081177, 0.26408541202545166, 0.4464472830295563, 0.4217384457588196, -0.2865971326828003, -0.5550225973129272, -0.07189535349607468, 0.04316594824194908, 0.0015476718544960022, 0.19136619567871094, -0.12003589421510696, -0.03965234011411667, 0.2790414094924927, 0.07943636178970337, -0.35376375913619995, -0.014698689803481102, 0.49231797456741333, 0.1145172193646431, -0.0971994698047638, -0.2554031312465668, 0.3727576732635498, -0.09462690353393555, -0.06150311604142189, 0.06023178994655609, 0.6576161980628967, -0.3099476397037506, -0.03627307340502739, 0.09828181564807892, 0.8206638097763062, 0.15137715637683868, 0.1835634410381317, 0.1358841508626938, -0.36579573154449463, 0.4504368305206299, -0.0858180820941925, -0.007444683462381363, -0.380733460187912, -0.13003532588481903, -0.0560217946767807, -0.0709962248802185, 0.119301937520504, 0.03178408369421959, -0.20747455954551697, 0.1414080560207367, -0.13039079308509827, 0.36231502890586853, 0.10496565699577332, 0.011263087391853333, 0.21789611876010895, -0.1973806470632553, -0.09238334000110626, 0.14768557250499725, -0.008714571595191956, 0.2857822775840759, -0.034518174827098846, -0.3050088882446289, 0.07182586193084717, -0.3472042679786682, -0.34342002868652344, 0.27120664715766907, -0.19708262383937836, -0.10502813756465912, 0.4748389720916748, 0.010328724980354309, 0.22914043068885803, 0.2635142207145691, 0.3203057050704956, 0.2762210965156555, -0.4620066285133362, 0.29726284742355347, -0.18293669819831848, 0.045551884919404984, 0.0763220489025116, 0.2973567843437195, 0.21260297298431396, -0.04334674030542374, -0.1583106368780136, 0.05332700535655022, -0.14840923249721527, -0.10553179681301117, 0.11027213931083679, -0.3807244300842285, -0.16449196636676788, -0.19740501046180725, 0.4225022494792938, 0.25157541036605835, -0.01224549300968647, -0.3645032048225403, 0.20145569741725922, -0.0970323383808136, -0.08515287935733795, -0.29829204082489014, 0.2595798373222351, -0.16113045811653137, -0.043887730687856674, 0.4537911117076874, -0.23797151446342468, -0.041548214852809906, 0.29902246594429016, 0.22896386682987213, -0.3229804039001465, -0.1686018705368042, 0.04480956494808197, 0.026469780132174492, -0.6376499533653259, 0.17262926697731018, 0.05080293491482735, -0.07424163073301315, 0.0984610915184021, 0.38336530327796936, 0.02179907262325287, 0.23945385217666626, -0.11113943159580231, 0.032745301723480225, -0.17767977714538574, 0.2863345742225647, -0.17227810621261597, 0.032998695969581604, 0.02370043843984604, 0.04933229088783264, 0.24731460213661194, -0.05841576308012009, -0.3894331753253937, 0.07755979150533676, -0.10206697136163712, -0.049041859805583954, 0.02708800509572029, -0.24703913927078247, 0.4562746584415436, -0.24136517941951752, 0.1913222223520279, -0.2705221176147461, -0.22540755569934845, -0.1410515159368515, -0.6216678619384766, 0.021057799458503723, -0.014837980270385742, -0.26170745491981506, -0.197419673204422, -0.007928036153316498, -0.10670369863510132, -0.23366820812225342, 0.30424171686172485, 0.2600107192993164, 0.13511598110198975, 0.30701878666877747, -0.14960749447345734, -0.028866171836853027, -0.0921696275472641, -0.027988553047180176, 0.15534964203834534, 0.26058220863342285, 0.10121827572584152, 0.03282846882939339, -0.291141539812088, -0.18657606840133667, -0.2158435732126236, 0.30433472990989685, -0.030382923781871796, 0.19678911566734314, 0.5015548467636108, -0.24325601756572723, 0.02561216428875923, 0.14174214005470276, 0.40047329664230347, 0.02507312223315239, -0.07237368822097778, 0.06395171582698822, 0.10912609100341797, 0.23834660649299622, -0.1504669338464737, -0.32869020104408264, -0.1849862039089203, -0.13202586770057678, 0.11514569818973541, 0.0655580535531044, 0.18825043737888336, -0.023188859224319458, 0.30617737770080566, 0.16083288192749023, 0.13882049918174744, -0.025348488241434097, 0.3115018308162689, 0.5027974843978882, 0.05980697646737099, 0.23674051463603973, 0.06261887401342392, 0.0053738802671432495, 0.22408995032310486, 0.13373303413391113, -0.08721139281988144, -0.23896248638629913, -0.04741760343313217, 0.3242659568786621, 0.2234245240688324, 0.03486935421824455, -0.4290313124656677, -0.009588107466697693, 0.04681692644953728, 0.0021249279379844666, -0.17511966824531555, 0.20284414291381836, 0.004449866712093353, -0.2747330069541931, -0.13699527084827423, 0.31850677728652954, -0.018360685557127, -0.4083232283592224, -0.11752518266439438, -0.11889141798019409, -0.1525910347700119, -0.13948240876197815, -0.046743739396333694, -0.06437745690345764, 0.16475093364715576, -0.009990133345127106, -0.020254790782928467, -0.2531701624393463, -0.07869662344455719, 0.08974291384220123, 0.3792349100112915, -0.13673323392868042, 0.13485346734523773, -0.059538111090660095, -0.08077682554721832, -0.03152706101536751, 0.4621847867965698, 0.22796326875686646, 0.18377670645713806, 0.2093247026205063, -0.3050137162208557, 0.02712187170982361, -0.01273563876748085, 0.03919798880815506, 0.03065873123705387, -0.07920916378498077, -0.07984703779220581, 0.16308879852294922, 0.13443170487880707, -0.26881417632102966, -0.1177104264497757, -0.2920817732810974, 0.40075093507766724, -0.06968671083450317, 0.3741433918476105, -0.21742510795593262, -0.005607973784208298, -0.287703275680542, 0.1019311472773552, -0.27861446142196655, 0.10633602738380432, 0.38933682441711426, -0.09436222910881042, 0.04781544208526611, -0.089609794318676, 0.12149479985237122, 0.41608065366744995, 0.274614542722702, 0.48154836893081665, -0.010893717408180237, -0.13898006081581116, -0.23725266754627228, -0.10028187930583954, 0.031226135790348053, 0.04317162558436394, 0.16844724118709564, -0.03771544620394707, -0.08706988394260406, -0.08496006578207016, -0.03186948597431183, 0.004110708832740784, -0.35578393936157227, 0.006980826146900654, -0.022439077496528625, -0.0498594231903553, 0.1196042001247406, -0.2719650864601135, 0.14854180812835693, -0.03951630741357803, -0.07107329368591309, 0.10144741833209991, 0.17938905954360962, 0.03414684534072876, 0.09359844028949738, 0.4311005473136902, -0.09439650177955627, -0.2619916498661041, 0.12522301077842712, -0.00321117602288723, -0.02370227873325348, -0.1803712546825409, -0.3040218651294708, -0.40991464257240295, -0.5458905696868896, -0.09131386876106262, 0.031492769718170166, -0.15682420134544373, 0.3712517023086548, -0.1308712512254715, -0.3182939887046814, -0.3569454848766327, 0.05216730758547783, 0.20994870364665985, 0.17881432175636292, -0.37115001678466797, 0.27412039041519165, -0.10680702328681946, -0.14083118736743927, 0.22952213883399963, 0.3648470938205719, -0.1950661838054657, -0.07062826305627823, -0.1876826137304306, -0.5193626284599304, 0.4849519431591034, -0.39823195338249207, 0.023398935794830322, 0.022014424204826355, 0.4077364504337311, 0.31938302516937256, -0.24384593963623047, -0.44576507806777954, 0.0022866427898406982, 0.23407959938049316, 0.12488851696252823, -0.5927688479423523, -0.008183065801858902, 0.0874781459569931, 0.13565856218338013, -0.06358028948307037, 0.23021000623703003, 0.2830721437931061, -0.11976094543933868, 0.20068344473838806, -0.04123479500412941 ]
https://github.com/huggingface/datasets/issues/3939
Source links broken
I think option 2 is the easiest and would provide harmony in the HF ecosystem but we can also add a doc config parameter to decide whether the default version has a v or not if `datasets` folks prefer their tags without a v :-)
## Describe the bug The source links of v2.0.0 docs are broken: For exmaple, clicking the source button of this [class](https://huggingface.co/docs/datasets/v2.0.0/en/package_reference/main_classes#datasets.ClassLabel) will direct users to `https://github.com/huggingface/datasets/blob/v2.0.0/src/datasets/features/features.py#L747` here, the `v2.0.0` should be `2.0.0`. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug ``` ## Expected results Redirecting to this link: `https://github.com/huggingface/datasets/blob/2.0.0/src/datasets/features/features.py#L747` ## Actual results Described above. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: - Platform: - Python version: - PyArrow version:
45
Source links broken ## Describe the bug The source links of v2.0.0 docs are broken: For exmaple, clicking the source button of this [class](https://huggingface.co/docs/datasets/v2.0.0/en/package_reference/main_classes#datasets.ClassLabel) will direct users to `https://github.com/huggingface/datasets/blob/v2.0.0/src/datasets/features/features.py#L747` here, the `v2.0.0` should be `2.0.0`. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug ``` ## Expected results Redirecting to this link: `https://github.com/huggingface/datasets/blob/2.0.0/src/datasets/features/features.py#L747` ## Actual results Described above. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: - Platform: - Python version: - PyArrow version: I think option 2 is the easiest and would provide harmony in the HF ecosystem but we can also add a doc config parameter to decide whether the default version has a v or not if `datasets` folks prefer their tags without a v :-)
[ -0.0938100814819336, -0.02608155459165573, 0.060420338064432144, -0.04348883032798767, 0.1273479163646698, 0.021094396710395813, 0.04810978099703789, 0.4152701199054718, -0.2235431671142578, -0.05964799225330353, -0.11131661385297775, 0.29802387952804565, -0.08623695373535156, 0.23173697292804718, 0.23043395578861237, -0.024584226310253143, 0.024447977542877197, 0.27270039916038513, -0.23734742403030396, -0.11964631080627441, -0.20885077118873596, 0.3087247610092163, -0.14786335825920105, 0.19975942373275757, -0.23497354984283447, 0.18338871002197266, 0.032827913761138916, 0.25849995017051697, -0.161520853638649, -0.5289612412452698, 0.11829133331775665, 0.209294855594635, 0.011678716167807579, 0.3349646329879761, -0.000106717852759175, 0.05892680585384369, 0.3170062303543091, 0.162636861205101, -0.4697599709033966, -0.26910626888275146, -0.06872104108333588, 0.006092267110943794, -0.0742267444729805, 0.08373991400003433, -0.1293400526046753, -0.44730719923973083, -0.04494673013687134, 0.03496250510215759, 0.09868311136960983, 0.260193407535553, 0.2783134877681732, 0.3367937505245209, 0.31822216510772705, -0.06644626706838608, 0.42353203892707825, 0.1754712164402008, -0.10660845041275024, 0.2765168845653534, 0.06710903346538544, -0.2146499752998352, -0.035665519535541534, 0.5221790671348572, -0.03742434084415436, -0.22944124042987823, 0.5925664305686951, 0.0748157873749733, -0.23065418004989624, -0.1428271383047104, 0.113522969186306, 0.3589002192020416, 0.4462854862213135, -0.2040633261203766, -0.44559386372566223, -0.012326948344707489, -0.19616326689720154, -0.14397461712360382, 0.2808186113834381, 0.13247881829738617, 0.1828143298625946, 0.3789462149143219, -0.02670259214937687, -0.3251273036003113, -0.14169785380363464, 0.18769431114196777, 0.18292340636253357, 0.0478195920586586, -0.15877608954906464, -0.12044665962457657, 0.219321608543396, -0.09207265079021454, 0.00353892520070076, 0.04458089917898178, -0.3210742473602295, 0.18068668246269226, 0.29292359948158264, 0.05942399799823761, 0.2188921868801117, 0.22791311144828796, 0.500938355922699, -0.09822407364845276, -0.33714422583580017, -0.14530304074287415, -0.18118730187416077, 0.019848976284265518, 0.022125093266367912, -0.04416998103260994, 0.0716971680521965, 0.27434372901916504, 0.42422568798065186, 0.42288127541542053, 0.09472252428531647, -0.0924699679017067, 0.17719464004039764, -0.21705938875675201, -0.2569163143634796, -0.2759924829006195, 0.2077207863330841, -0.2495429962873459, -0.18218058347702026, 0.14640536904335022, -0.3560431897640228, 0.08267546445131302, 0.07744183391332626, 0.24127978086471558, -0.0906749740242958, 0.3241419196128845, 0.2872462272644043, 0.07347962260246277, -0.3544256091117859, -0.30649030208587646, -0.24015845358371735, 0.04186414182186127, -0.280103862285614, 0.09552618116140366, 0.05107518658041954, -0.34973859786987305, 0.3087666630744934, 0.26111507415771484, 0.06720571964979172, -0.2071342170238495, -0.16492560505867004, 0.0901016891002655, -0.008488722145557404, 0.27011287212371826, -0.13565358519554138, 0.11408010870218277, 0.16798275709152222, -0.2783726453781128, 0.020644664764404297, 0.012968119233846664, -0.5031886696815491, -0.17938372492790222, -0.2505917251110077, 0.2505786418914795, 0.03783206641674042, 0.08409713208675385, -0.022669993340969086, 0.06780609488487244, -0.23318147659301758, -0.21021124720573425, -0.014882266521453857, 0.014644062146544456, -0.1627746969461441, -0.1056721955537796, 0.44566628336906433, 0.611469566822052, -0.1278376579284668, -0.2162666618824005, 0.44671815633773804, 0.14955738186836243, -0.27544930577278137, 0.08988472819328308, -0.289693146944046, 0.020184557884931564, -0.3396971821784973, -0.03714056685566902, 0.017925776541233063, -0.3582268953323364, -0.23366911709308624, 0.1740303337574005, 0.02962028980255127, 0.07615500688552856, -0.09981163591146469, -0.2329990267753601, 0.055562835186719894, -0.19669601321220398, 0.16276104748249054, -0.17805339395999908, 0.15551011264324188, 0.19533880054950714, -0.41920000314712524, -0.3424871861934662, -0.4184393286705017, -0.1906794309616089, 0.10426346212625504, 0.23888131976127625, 0.11202690750360489, 0.1496869921684265, 0.3964490592479706, -0.2935856878757477, 0.0016189615707844496, 0.47993355989456177, 0.34683114290237427, 0.23652687668800354, 0.20163258910179138, -0.17111119627952576, -0.4050755798816681, -0.0027983002364635468, -0.09232303500175476, 0.12908296287059784, 0.04364991933107376, -0.27185362577438354, -0.2950781285762787, -0.0758378803730011, 0.0052124857902526855, -0.48976632952690125, 0.18820694088935852, 0.004058182239532471, -0.08415339887142181, 0.37241366505622864, -0.21333158016204834, 0.24319516122341156, -0.06398136913776398, 0.3611893653869629, -0.05163789913058281, 0.6402112245559692, -0.056584082543849945, -0.053917355835437775, 0.09882371127605438, 0.26739224791526794, 0.22470134496688843, 0.005534534342586994, -0.1258653700351715, 0.4742072522640228, -0.05025690421462059, 0.32498782873153687, 0.31341859698295593, 0.3151770234107971, 0.3843262791633606, -0.530179500579834, -0.03584671765565872, 0.03827822208404541, -0.014295518398284912, 0.06245107203722, -0.04240603744983673, 0.07585253566503525, -0.11778385937213898, 0.11855699121952057, 0.23845113813877106, 0.2068023383617401, 0.01741875521838665, -0.12245124578475952, -0.2819075286388397, -0.1586686670780182, 0.1379288136959076, -0.02503260225057602, 0.28053683042526245, 0.06653843075037003, -0.2582448720932007, 0.12834270298480988, 0.4364573061466217, -0.0032925326377153397, -0.1276252567768097, 0.2597481310367584, -0.5415121912956238, 0.013213984668254852, 0.04971682280302048, 0.10193771123886108, -0.027682065963745117, 0.2440483570098877, -0.08070231974124908, 0.22095562517642975, -0.3232033848762512, -0.08019053190946579, 0.2584238052368164, -0.007365986704826355, 0.010758953168988228, 0.09142504632472992, 0.004674525931477547, 0.0482407882809639, -0.4385214149951935, 0.03489873930811882, -0.32345154881477356, 0.0315578430891037, -0.6536999344825745, 0.16263127326965332, -0.26349908113479614, 0.012103665620088577, -0.26666995882987976, -0.15370750427246094, -0.420026570558548, -0.3341842591762543, 0.06127934530377388, 0.3405524492263794, -0.11690926551818848, 0.172660693526268, -0.04136068373918533, 0.13152097165584564, -0.11053114384412766, 0.13214954733848572, -0.08885498344898224, 0.1297265887260437, -0.2626478374004364, 0.0790102481842041, 0.04842638224363327, -0.04531605914235115, 0.13109226524829865, -0.3703796863555908, -0.21986380219459534, -0.35291796922683716, -0.6234230399131775, 0.24638360738754272, -0.010176893323659897, 0.3135117292404175, 0.3105323910713196, 0.09217825531959534, -0.02135530672967434, -0.1409447342157364, 0.3786442279815674, -0.12010133266448975, -0.005682925693690777, -0.10517322272062302, -0.17944464087486267, -0.06183795630931854, -0.1545274555683136, -0.3004792630672455, 0.2768149971961975, -0.30936598777770996, 0.05649423599243164, -0.1263277530670166, -0.03402906656265259, 0.45347103476524353, 0.15510693192481995, 0.14167749881744385, -0.04147446155548096, 0.12964355945587158, -0.052972450852394104, -0.2394370585680008, 0.2339758425951004, -0.3955618143081665, -0.4028540253639221, 0.10190287232398987, 0.07713697105646133, 0.00928722694516182, -0.09163065254688263, -0.4671470522880554, -0.2465720921754837, -0.12759600579738617, -0.015394698828458786, 0.08627667278051376, 0.3007091283798218, 0.04042967036366463, 0.23578180372714996, -0.16162684559822083, -0.20276358723640442, -0.14912410080432892, 0.0937601700425148, -0.27706483006477356, 0.17066249251365662, 0.0628296509385109, 0.14723160862922668, 0.30296236276626587, 0.6238443851470947, 0.4332583248615265, 0.16056376695632935, 0.16758009791374207, -0.10963419824838638, 0.563291072845459, -0.19817253947257996, -0.357951819896698, 0.10972076654434204, -0.012949958443641663, 0.1556568294763565, 0.24986635148525238, 0.33021441102027893, 0.19459375739097595, -0.19821502268314362, 0.04504038766026497, -0.20438739657402039, -0.28630274534225464, -0.2914910614490509, 0.008482441306114197, 0.300515353679657, 0.03279951587319374, 0.04198306053876877, 0.0025830864906311035, -0.06766413152217865, 0.34328487515449524, 0.3429281711578369, 0.18663913011550903, 0.07932502031326294, -0.2376401424407959, 0.17671717703342438, -0.23797616362571716, 0.0025853440165519714, 0.03942597657442093, -0.18711118400096893, -0.03535383939743042, -0.06500561535358429, -0.04596894979476929, -0.09596490114927292, 0.5105565190315247, 0.02190050669014454, 0.13966193795204163, 0.02411811053752899, 0.0669468566775322, -0.10394401103258133, 0.016844268888235092, 0.09005329012870789, -0.08741910755634308, 0.3198080360889435, 0.18861186504364014, -0.30223414301872253, -0.36031821370124817, 0.5360913276672363, -0.23623065650463104, 0.1131880134344101, 0.1769532412290573, -0.06058909744024277, -0.13581505417823792, -0.02715202420949936, -0.28569352626800537, 0.0505615770816803, 0.08715371042490005, -0.25986069440841675, -0.2206462174654007, 0.2770586609840393, -0.33583196997642517, -0.01672694832086563, 0.06681230664253235, 0.37226352095603943, -0.012221512384712696, 0.11518704891204834, 0.42904695868492126, 0.3365401327610016, 0.5713508725166321, 0.48640623688697815, -0.3246348798274994, -0.4982232451438904, -0.20099273324012756, -0.0242452435195446, 0.07481649518013, 0.25169533491134644, -0.17545808851718903, -0.016244500875473022, 0.1650737226009369, 0.023363731801509857, -0.308078795671463, -0.029987391084432602, 0.5820733308792114, 0.11676420271396637, -0.13338807225227356, -0.24427734315395355, 0.38098466396331787, -0.0068033188581466675, -0.025257185101509094, 0.22956568002700806, 0.7350908517837524, -0.2789328694343567, -0.14442023634910583, 0.06212928518652916, 0.8639345765113831, 0.20767661929130554, 0.17683890461921692, 0.2517295181751251, -0.3787846565246582, 0.4886276125907898, -0.1721019297838211, -0.1086631566286087, -0.3633344769477844, -0.12015098333358765, -0.10333064943552017, -0.07702000439167023, 0.18432140350341797, -0.05054042488336563, -0.11127610504627228, 0.18847961723804474, -0.08537574112415314, 0.2654910981655121, 0.14524315297603607, 0.06276976317167282, 0.10562043637037277, -0.07169561088085175, -0.1252238154411316, 0.1735766977071762, -0.0503351092338562, 0.24425692856311798, -0.10270781069993973, -0.280977725982666, -0.006993379443883896, -0.28005942702293396, -0.3366466760635376, 0.20544302463531494, -0.22025522589683533, -0.1656247228384018, 0.3570648431777954, -0.05024975910782814, 0.19083335995674133, 0.16848954558372498, 0.26397132873535156, 0.24417658150196075, -0.4172581434249878, 0.11458525061607361, -0.2094811201095581, 0.058018650859594345, 0.12859421968460083, 0.20326654613018036, 0.31432831287384033, -0.10345257818698883, -0.20839940011501312, 0.057688113301992416, -0.09370101988315582, -0.1389348804950714, 0.11530369520187378, -0.4125867486000061, -0.3023762106895447, -0.18496941030025482, 0.34211400151252747, 0.24775415658950806, 0.1524532288312912, -0.3444867432117462, 0.18758665025234222, -0.04712051898241043, -0.032696433365345, -0.2432628571987152, 0.2757343351840973, -0.12533706426620483, -0.0757422000169754, 0.43345367908477783, -0.3151337504386902, -0.00014857575297355652, 0.23429007828235626, 0.23973016440868378, -0.3701954483985901, -0.16172721982002258, 0.09571849554777145, 0.06319411098957062, -0.3943464756011963, 0.17130771279335022, 0.04474842548370361, 0.04484112560749054, 0.03243109956383705, 0.315470427274704, 0.060877032577991486, 0.11079498380422592, 0.009696822613477707, -0.05200265347957611, -0.05409744381904602, 0.31099677085876465, -0.2490207403898239, -0.01602456346154213, 0.02879825234413147, 0.055401887744665146, 0.2371433973312378, -0.1646817922592163, -0.4020210802555084, 0.09290521591901779, -0.0032725930213928223, -0.09181506931781769, 0.15284213423728943, -0.06211274862289429, 0.43175065517425537, -0.2689690589904785, 0.18433493375778198, -0.3016473650932312, -0.23203466832637787, -0.14498849213123322, -0.5727109909057617, 0.049187302589416504, -0.03765563666820526, -0.23085053265094757, -0.002773585496470332, -0.18812310695648193, -0.12036125361919403, -0.2148164063692093, 0.3004641830921173, 0.3123694658279419, 0.02332448586821556, 0.22251737117767334, -0.18572865426540375, -0.06828445941209793, 0.0034654513001441956, 0.09891576319932938, 0.12907427549362183, 0.25737306475639343, 0.011783067137002945, 0.043863244354724884, -0.2610114812850952, -0.20755767822265625, -0.11585713922977448, 0.34264832735061646, -0.18530847132205963, 0.142380952835083, 0.4913385510444641, -0.2742849588394165, 0.07861955463886261, 0.12114246189594269, 0.5221433639526367, 0.0933530330657959, -0.1368584930896759, 0.12382392585277557, 0.16240590810775757, 0.2421744167804718, -0.18432959914207458, -0.24155324697494507, -0.08617332577705383, -0.09138327836990356, 0.13286679983139038, 0.01694304496049881, 0.26207593083381653, -0.09641028940677643, 0.1942180097103119, 0.10953591018915176, 0.045215096324682236, -0.04550474137067795, 0.24196243286132812, 0.4247082471847534, 0.03629540279507637, 0.22784388065338135, 0.04577375948429108, 0.06855109333992004, 0.13707245886325836, 0.1743280589580536, -0.03300914168357849, -0.218160480260849, 0.11215946823358536, 0.32493433356285095, 0.09656909108161926, -0.05890559405088425, -0.2388468235731125, 0.05893120914697647, 0.0821240097284317, -0.08808217197656631, -0.2041776180267334, 0.30199670791625977, -0.06039077416062355, -0.4134873151779175, -0.020619943737983704, 0.33597272634506226, -0.009826388210058212, -0.24726706743240356, -0.1368499994277954, -0.16359761357307434, -0.14805881679058075, -0.11234186589717865, -0.0376700721681118, -0.1004457175731659, 0.1365641951560974, -0.02250053733587265, -0.011443980038166046, -0.4132920503616333, -0.07322179526090622, 0.033442988991737366, 0.4008607268333435, -0.049682796001434326, 0.1276898980140686, -0.20011408627033234, 0.020770873874425888, 0.057896316051483154, 0.5146756768226624, 0.3084947466850281, 0.2143527865409851, 0.1696755439043045, -0.39648571610450745, -0.053461577743291855, 0.022639291360974312, 0.017198514193296432, -0.04000183194875717, -0.029479756951332092, -0.16723425686359406, 0.20177243649959564, 0.12007811665534973, -0.24529233574867249, -0.032104235142469406, -0.34443801641464233, 0.2764935791492462, -0.21597127616405487, 0.2820577025413513, -0.14611205458641052, -0.020927302539348602, -0.2426106333732605, 0.04721975699067116, -0.1918855905532837, 0.04557052627205849, 0.4850761890411377, -0.08584867417812347, 0.03391186147928238, -0.09342159330844879, 0.11760951578617096, 0.3938857614994049, 0.15619327127933502, 0.5331165790557861, 0.004312347620725632, -0.049594275653362274, -0.2791774868965149, -0.24329662322998047, 0.020139358937740326, -0.14144067466259003, 0.04801901429891586, -0.06002724915742874, -0.05554603785276413, -0.014699302613735199, -0.001001007854938507, 0.08802156895399094, -0.2618252635002136, 0.07828556001186371, -0.12064941227436066, -0.13695980608463287, 0.022916149348020554, -0.3294661045074463, 0.0943850427865982, -0.07106899470090866, -0.006121635437011719, 0.1335524469614029, 0.02596931904554367, 0.017331942915916443, 0.11610478162765503, 0.5133119821548462, -0.09142877161502838, -0.28963541984558105, 0.21709640324115753, 0.06131143867969513, 0.04341452568769455, -0.133522167801857, -0.3484777808189392, -0.3721040189266205, -0.46785974502563477, -0.16605739295482635, 0.1542394459247589, -0.2642560601234436, 0.290395051240921, -0.11456449329853058, -0.5081774592399597, -0.2719097435474396, 0.20052044093608856, 0.19675804674625397, 0.2211487889289856, -0.34577763080596924, 0.332629919052124, -0.04506418853998184, -0.1149594634771347, 0.20554564893245697, 0.34389206767082214, -0.2626469135284424, -0.01088167168200016, -0.2408202737569809, -0.4680546224117279, 0.4570285975933075, -0.39421865344047546, 0.1349315196275711, 0.10475271195173264, 0.5356264710426331, 0.3176352083683014, -0.35119637846946716, -0.3826906681060791, -0.07134152203798294, 0.2912704050540924, 0.14391835033893585, -0.5351695418357849, 0.1411285102367401, -0.04426902160048485, 0.1605004519224167, -0.03871561586856842, 0.20882511138916016, 0.19049081206321716, -0.14990022778511047, 0.3096005618572235, -0.052401021122932434 ]
https://github.com/huggingface/datasets/issues/3939
Source links broken
For me it is OK to conform to the rest of libraries and tag/release with a preceding "v", rather than adding an extra argument to the doc builder just for `datasets`. Let me know if it is also OK for you @lhoestq.
## Describe the bug The source links of v2.0.0 docs are broken: For exmaple, clicking the source button of this [class](https://huggingface.co/docs/datasets/v2.0.0/en/package_reference/main_classes#datasets.ClassLabel) will direct users to `https://github.com/huggingface/datasets/blob/v2.0.0/src/datasets/features/features.py#L747` here, the `v2.0.0` should be `2.0.0`. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug ``` ## Expected results Redirecting to this link: `https://github.com/huggingface/datasets/blob/2.0.0/src/datasets/features/features.py#L747` ## Actual results Described above. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: - Platform: - Python version: - PyArrow version:
42
Source links broken ## Describe the bug The source links of v2.0.0 docs are broken: For exmaple, clicking the source button of this [class](https://huggingface.co/docs/datasets/v2.0.0/en/package_reference/main_classes#datasets.ClassLabel) will direct users to `https://github.com/huggingface/datasets/blob/v2.0.0/src/datasets/features/features.py#L747` here, the `v2.0.0` should be `2.0.0`. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug ``` ## Expected results Redirecting to this link: `https://github.com/huggingface/datasets/blob/2.0.0/src/datasets/features/features.py#L747` ## Actual results Described above. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: - Platform: - Python version: - PyArrow version: For me it is OK to conform to the rest of libraries and tag/release with a preceding "v", rather than adding an extra argument to the doc builder just for `datasets`. Let me know if it is also OK for you @lhoestq.
[ -0.06857258826494217, -0.0409822091460228, 0.03707267716526985, 0.02772561088204384, 0.11493310332298279, -0.0037942901253700256, 0.09673530608415604, 0.3829955756664276, -0.284008264541626, -0.08974970877170563, 0.013847913593053818, 0.4365796148777008, -0.16966956853866577, 0.20860902965068817, 0.27250975370407104, -0.015474021434783936, 0.027102194726467133, 0.2615858018398285, -0.23530036211013794, -0.05576329678297043, -0.19190862774848938, 0.32406458258628845, -0.2042725533246994, 0.15359731018543243, -0.2703424394130707, 0.16700772941112518, 0.05919663608074188, 0.22880259156227112, -0.210321307182312, -0.5422208905220032, 0.1276172548532486, 0.09950952231884003, -0.09613016247749329, 0.3311275243759155, -0.00010484188533155248, 0.014094918966293335, 0.3476296663284302, 0.11788316071033478, -0.46990257501602173, -0.32337164878845215, -0.07190580666065216, -0.04517444223165512, -0.014612242579460144, 0.007851429283618927, -0.1258244514465332, -0.38263753056526184, -0.0499860942363739, 0.040569499135017395, 0.20525309443473816, 0.3482357859611511, 0.29924139380455017, 0.3699879050254822, 0.40042030811309814, -0.025440096855163574, 0.31988397240638733, 0.09179302304983139, -0.1380610466003418, 0.2120724320411682, 0.2295103222131729, -0.08494467288255692, 0.025417476892471313, 0.4892393946647644, -0.09460703283548355, -0.3265683650970459, 0.5314120650291443, 0.04722386598587036, -0.17972692847251892, -0.17143046855926514, 0.16353046894073486, 0.24255332350730896, 0.4872799813747406, -0.20833820104599, -0.4699011445045471, -0.11158948391675949, -0.16438955068588257, -0.10523474961519241, 0.27280116081237793, 0.157929927110672, 0.1723015308380127, 0.37794098258018494, -0.11091509461402893, -0.30613428354263306, -0.14328691363334656, 0.15419967472553253, 0.22639745473861694, 0.08621766418218613, -0.2519299387931824, -0.0910816565155983, 0.24005286395549774, -0.14484699070453644, 0.006197155453264713, 0.04364236444234848, -0.244179368019104, 0.23085860908031464, 0.30396077036857605, 0.0491374135017395, 0.24624839425086975, 0.31643417477607727, 0.4329476058483124, 0.03382953256368637, -0.24571917951107025, -0.166847825050354, -0.15821698307991028, 0.02299295738339424, 0.05064783990383148, 0.03706469386816025, 0.04733627662062645, 0.2774549722671509, 0.3622593283653259, 0.4133020341396332, 0.12218676507472992, -0.09972948580980301, 0.09326662123203278, -0.2681901156902313, -0.28482481837272644, -0.24620363116264343, 0.2989387512207031, -0.23956115543842316, -0.16568239033222198, 0.11722007393836975, -0.3065183162689209, 0.10300906747579575, 0.1287200152873993, 0.12420883774757385, -0.1266864836215973, 0.2936514914035797, 0.2503073811531067, 0.11159668117761612, -0.2978444993495941, -0.27460694313049316, -0.25280529260635376, 0.09233273565769196, -0.3332327902317047, 0.09450244903564453, 0.047519464045763016, -0.3274151384830475, 0.42791685461997986, 0.2757469713687897, -0.031062103807926178, -0.31624552607536316, -0.1458655148744583, 0.15687210857868195, 0.02882857620716095, 0.17694516479969025, -0.18471911549568176, 0.13152362406253815, 0.11254364252090454, -0.33790385723114014, 0.03578943759202957, 0.07285948842763901, -0.5392186641693115, -0.2632758915424347, -0.257292240858078, 0.23652388155460358, -0.07681837677955627, 0.08641744405031204, 0.021407857537269592, 0.08648516982793808, -0.12738609313964844, -0.24156363308429718, -0.03407958894968033, 0.028794359415769577, -0.1553218513727188, -0.10245736688375473, 0.47231218218803406, 0.5689952373504639, -0.04420073702931404, -0.20523352921009064, 0.3962593674659729, 0.1763758510351181, -0.2838979959487915, 0.0653100311756134, -0.2998726963996887, 0.02726127952337265, -0.33179137110710144, -0.06619127094745636, 0.05865676701068878, -0.34850582480430603, -0.253240704536438, 0.052734073251485825, -0.06210455670952797, 0.0943613201379776, -0.0569324716925621, -0.22658628225326538, 0.08054269105195999, -0.19946885108947754, 0.151341050863266, -0.15672667324543, 0.13604040443897247, 0.22211399674415588, -0.36290112137794495, -0.335586279630661, -0.4271734952926636, -0.2099134624004364, 0.022417305037379265, 0.1930699348449707, 0.06782694160938263, 0.19263063371181488, 0.34970471262931824, -0.2855261564254761, 0.00785788893699646, 0.4326571226119995, 0.26887625455856323, 0.14131979644298553, 0.1627604216337204, -0.2141360640525818, -0.45434826612472534, 0.02311229705810547, 0.014629144221544266, 0.11954347044229507, -0.060312047600746155, -0.19259318709373474, -0.3112247586250305, -0.044710732996463776, -0.006701607257127762, -0.5698429346084595, 0.19874660670757294, 0.03201781213283539, 0.05202994868159294, 0.4144052565097809, -0.2403135448694229, 0.06194489449262619, -0.08917336910963058, 0.3533374071121216, -0.18708688020706177, 0.510124146938324, -0.028679775074124336, -0.10506238788366318, 0.07406377792358398, 0.29776710271835327, 0.17484423518180847, -0.004764540120959282, -0.09909041225910187, 0.43988820910453796, 0.016254378482699394, 0.3992917537689209, 0.24217474460601807, 0.32414597272872925, 0.333495169878006, -0.5155150294303894, -0.03255937248468399, 0.04492218792438507, 0.013015265576541424, 0.04748214781284332, -0.07446710020303726, 0.10519282519817352, -0.18024727702140808, 0.12187758088111877, 0.26520252227783203, 0.24511167407035828, 0.05831029266119003, -0.13850289583206177, -0.3420467674732208, -0.18122702836990356, 0.1253894567489624, 0.004158571362495422, 0.33565399050712585, 0.05254216119647026, -0.2468472421169281, 0.07545479387044907, 0.32658934593200684, -0.02088490128517151, -0.08774086087942123, 0.16048488020896912, -0.5521724224090576, 0.018359199166297913, -0.040405429899692535, 0.22131018340587616, -0.026440754532814026, 0.21663102507591248, -0.05458758398890495, 0.21474571526050568, -0.19936969876289368, -0.15526513755321503, 0.2608475089073181, 0.010920166969299316, -0.0694994181394577, 0.10700687766075134, -0.050351906567811966, 0.034260280430316925, -0.404156357049942, 0.13186076283454895, -0.2834663987159729, 0.06590820848941803, -0.6127707958221436, 0.14653530716896057, -0.18511678278446198, -0.004733879119157791, -0.34986448287963867, -0.1750107705593109, -0.3272973597049713, -0.28267771005630493, 0.000533025711774826, 0.34730780124664307, -0.11425165832042694, 0.2196817845106125, 0.018021494150161743, 0.15746065974235535, -0.09303653985261917, 0.12112700939178467, -0.06029908359050751, 0.1002466082572937, -0.19092446565628052, 0.10533082485198975, 0.12741200625896454, -0.037529196590185165, 0.1316763311624527, -0.40643200278282166, -0.14150670170783997, -0.3676319420337677, -0.6100162863731384, 0.20572404563426971, -0.05325789004564285, 0.3561288118362427, 0.29654067754745483, 0.09791597723960876, 0.034605108201503754, -0.18775521218776703, 0.3916507661342621, -0.16640423238277435, -0.0030587948858737946, -0.20270304381847382, -0.12463684380054474, -0.13989630341529846, -0.191345676779747, -0.32278040051460266, 0.3065452575683594, -0.26729267835617065, 0.1486290693283081, 0.0013124197721481323, -0.06703734397888184, 0.4120711088180542, 0.16943101584911346, 0.20765048265457153, -0.029799209907650948, 0.20865923166275024, -0.021446071565151215, -0.3043406009674072, 0.2605181038379669, -0.3829052448272705, -0.37952300906181335, 0.08543828129768372, 0.10121886432170868, 0.10162052512168884, -0.13153930008411407, -0.38946807384490967, -0.21886509656906128, -0.1357193887233734, -0.09739112854003906, 0.13852058351039886, 0.31747347116470337, 0.08875027298927307, 0.25321251153945923, -0.13824079930782318, -0.2035430371761322, -0.2159438282251358, 0.06346350908279419, -0.26604539155960083, 0.18671980500221252, 0.07705879956483841, 0.1234537735581398, 0.2745434641838074, 0.6042422652244568, 0.4831821322441101, 0.07789026200771332, 0.07766332477331161, -0.15374864637851715, 0.570214033126831, -0.18345710635185242, -0.3768291473388672, 0.10079352557659149, -0.012722194194793701, 0.0910809189081192, 0.2515849471092224, 0.3735177218914032, 0.19840599596500397, -0.2324851006269455, 0.08003921806812286, -0.3127259910106659, -0.2807956039905548, -0.3015068471431732, 0.08191351592540741, 0.2696897089481354, 0.007625911384820938, 0.03316328674554825, -0.0065736789256334305, -0.06785652041435242, 0.2335626780986786, 0.2676522731781006, 0.23081117868423462, 0.015109648928046227, -0.3017246425151825, 0.17812804877758026, -0.35486099123954773, -0.04990805685520172, 0.06987357884645462, -0.251777708530426, 0.03482608124613762, -0.08620486408472061, -0.06161646544933319, -0.07549413293600082, 0.45697879791259766, 0.01808956265449524, 0.1266849935054779, 0.018736805766820908, 0.017660051584243774, -0.18003541231155396, 0.06768250465393066, 0.08017443120479584, 0.04203683137893677, 0.36880961060523987, 0.21175530552864075, -0.27098140120506287, -0.26856309175491333, 0.5095070600509644, -0.10433600842952728, 0.13984408974647522, 0.16781052947044373, -0.012487556785345078, -0.12532076239585876, -0.07771953195333481, -0.23275300860404968, 0.06686042249202728, 0.12330508977174759, -0.1826305389404297, -0.22688965499401093, 0.2782963216304779, -0.3110484480857849, -0.07775844633579254, 0.05780790373682976, 0.40680018067359924, -0.02726191282272339, 0.13367386162281036, 0.4225408136844635, 0.2806122303009033, 0.5045508742332458, 0.5588105320930481, -0.3416958749294281, -0.45834434032440186, -0.23647984862327576, -0.08490583300590515, 0.026481039822101593, 0.2522547245025635, -0.21287021040916443, -0.03933822363615036, 0.10979316383600235, -0.061987146735191345, -0.24668440222740173, -0.09073863178491592, 0.6485924124717712, 0.17285439372062683, -0.09500323235988617, -0.32579582929611206, 0.32330402731895447, 0.054485026746988297, -0.016835324466228485, 0.24280478060245514, 0.6123128533363342, -0.3001173138618469, -0.23878243565559387, 0.05322395637631416, 0.8434706926345825, 0.18972894549369812, 0.1447426974773407, 0.22882765531539917, -0.21729585528373718, 0.5947752594947815, 0.011541735380887985, -0.07844273000955582, -0.35590308904647827, -0.07943911105394363, -0.061366006731987, -0.07175203412771225, 0.13803750276565552, -0.08387736976146698, -0.13094793260097504, 0.1572730988264084, -0.135624498128891, 0.3036980926990509, 0.09363361448049545, 0.04949471354484558, 0.1263202428817749, -0.03210427612066269, -0.18310680985450745, 0.176744282245636, 0.047963500022888184, 0.1840250939130783, -0.08376245945692062, -0.25468873977661133, -0.058079905807971954, -0.29927265644073486, -0.38540470600128174, 0.20094186067581177, -0.2570496201515198, -0.133027583360672, 0.2980400323867798, -0.13658545911312103, 0.16172395646572113, 0.3902057409286499, 0.24679943919181824, 0.21630294620990753, -0.45382407307624817, 0.1524299681186676, -0.2886556088924408, -0.04461679980158806, 0.1526421308517456, 0.1913185715675354, 0.258046418428421, -0.12493797391653061, -0.1334628462791443, 0.06227564811706543, -0.10368682444095612, -0.1378880739212036, 0.16094744205474854, -0.3535417914390564, -0.27727317810058594, -0.20149807631969452, 0.15618042647838593, 0.20508381724357605, 0.0648273378610611, -0.35915035009384155, 0.20659823715686798, 0.018196865916252136, -0.024407748132944107, -0.21065279841423035, 0.18609954416751862, -0.13319851458072662, -0.021920815110206604, 0.421663373708725, -0.2871285080909729, -0.04036659002304077, 0.267961710691452, 0.22932152450084686, -0.29646068811416626, -0.1722923219203949, 0.07788672298192978, -0.008948217146098614, -0.40397000312805176, 0.21306243538856506, 0.06589608639478683, 0.13498960435390472, 0.075832299888134, 0.3453030288219452, 0.08066119253635406, 0.21213865280151367, 0.008805003017187119, -0.09225013852119446, -0.049817927181720734, 0.28780364990234375, -0.19098079204559326, 0.005017116665840149, 0.012259181588888168, 0.04992971569299698, 0.2650596797466278, -0.19338524341583252, -0.409685343503952, 0.16603699326515198, -0.02847459353506565, -0.07006432861089706, 0.28983885049819946, -0.03822304308414459, 0.41542622447013855, -0.2157321274280548, 0.17923511564731598, -0.2840617895126343, -0.1872076541185379, -0.15185080468654633, -0.504985511302948, 0.03071226179599762, 0.010242190212011337, -0.23426294326782227, -0.014563965611159801, -0.17149220407009125, -0.10240533947944641, -0.2157888114452362, 0.2530081570148468, 0.29784807562828064, 0.045162878930568695, 0.16740074753761292, -0.22854526340961456, 0.019427143037319183, -0.04253869876265526, 0.1129712238907814, -0.004833430051803589, 0.19958636164665222, 0.035639602690935135, 0.0907004177570343, -0.20378801226615906, -0.2015608251094818, -0.10116840153932571, 0.3150491416454315, -0.16928572952747345, 0.1969165802001953, 0.4447115957736969, -0.24480699002742767, 0.04950926825404167, 0.18523874878883362, 0.4808458387851715, 0.20255757868289948, -0.18548208475112915, 0.18994587659835815, 0.13675647974014282, 0.24656720459461212, -0.12095360457897186, -0.21488621830940247, -0.0695808082818985, -0.1050061583518982, 0.12941987812519073, 0.03799186646938324, 0.22163653373718262, -0.20722153782844543, 0.1973446011543274, 0.06696679443120956, 0.06384025514125824, -0.06953902542591095, 0.35656648874282837, 0.4504660665988922, 0.03188492730259895, 0.16333547234535217, 0.018099598586559296, 0.09549368917942047, 0.17457422614097595, 0.15905916690826416, -0.1598724126815796, -0.13938389718532562, 0.1027613952755928, 0.3055417239665985, 0.07496605813503265, 0.029335904866456985, -0.17202503979206085, 0.055345483124256134, 0.031517334282398224, -0.09417467564344406, -0.1980050802230835, 0.3041779398918152, -0.10253406316041946, -0.2646653652191162, -0.11560816317796707, 0.3541267514228821, -0.026988275349140167, -0.3020206093788147, -0.14362064003944397, -0.23739835619926453, -0.03305497020483017, -0.10840588808059692, -0.06581073999404907, -0.05164667218923569, 0.06320411711931229, -0.10837158560752869, -0.049778059124946594, -0.40170547366142273, -0.14655917882919312, 0.040929362177848816, 0.3599441945552826, -0.10345686972141266, 0.1539267599582672, -0.18799565732479095, 0.014895468950271606, 0.013902388513088226, 0.5579451322555542, 0.4079957604408264, 0.23593874275684357, 0.20087189972400665, -0.3624403774738312, -0.08924740552902222, 0.032680004835128784, 0.047638580203056335, 0.08919110894203186, -0.0007773861289024353, -0.20194485783576965, 0.21701133251190186, 0.14256921410560608, -0.2743305265903473, -0.01602306216955185, -0.2699125111103058, 0.2642662227153778, -0.23608364164829254, 0.14450731873512268, -0.18130557239055634, -0.048675987869501114, -0.3389904797077179, 0.09055738896131516, -0.21106785535812378, 0.061138805001974106, 0.4215485751628876, -0.10097517818212509, 0.009801777079701424, -0.08376496285200119, 0.13105161488056183, 0.4161888062953949, 0.19483682513237, 0.5166512131690979, 0.06299377232789993, -0.0071930838748812675, -0.38086646795272827, -0.2603961229324341, 0.07670609652996063, -0.0056190043687820435, 0.03719586879014969, -0.13737615942955017, -0.09453987330198288, -0.1146666631102562, 0.07775484025478363, 0.015091754496097565, -0.2239352911710739, 0.09036858379840851, -0.18350382149219513, -0.14617551863193512, 0.07492326945066452, -0.2830624580383301, 0.06375168263912201, -0.01612481102347374, 0.08020857721567154, 0.05372219905257225, -0.09731494635343552, 0.03419863432645798, 0.11707606911659241, 0.5751520395278931, -0.2480621337890625, -0.17093700170516968, 0.23380142450332642, 0.04093091934919357, 0.11238379031419754, -0.133813738822937, -0.3035840690135956, -0.4380737245082855, -0.44427600502967834, -0.17146943509578705, 0.2502017617225647, -0.16799841821193695, 0.2505802810192108, -0.18640495836734772, -0.38561466336250305, -0.2827325463294983, 0.20099709928035736, 0.21218056976795197, 0.23718887567520142, -0.3100062906742096, 0.258678138256073, -0.030854089185595512, -0.1173805221915245, 0.20869775116443634, 0.3419797122478485, -0.3216811418533325, -0.00017460249364376068, -0.1689455509185791, -0.4566843807697296, 0.4393810033798218, -0.40092745423316956, 0.15277604758739471, 0.09245888143777847, 0.5254743099212646, 0.22750970721244812, -0.3546493649482727, -0.4207150936126709, -0.005316704511642456, 0.2980218827724457, 0.17420551180839539, -0.558285653591156, 0.15554118156433105, -0.032574158161878586, 0.16626787185668945, -0.024977276101708412, 0.22974474728107452, 0.2572575509548187, -0.11537257581949234, 0.3159104287624359, -0.09642339497804642 ]
https://github.com/huggingface/datasets/issues/3939
Source links broken
We could add a tag for each release without a 'v' but it could be confusing on github to see both tags `v2.0.0` and `2.0.0` IMO (not sure if many users check them though). Removing the tags without 'v' would break our versioning for github datasets: the library looks for dataset scripts at the URLs like `https://raw.githubusercontent.com/huggingface/datasets/{revision}/datasets/{path}/{name}` where `revision` is equal to `datasets.__version__` (which doesn't start with a 'v') for all released versions of `datasets`. I think we could just have a parameter for the documentation - and having different URLs schemes for the source links that the users don't even see (they simply click on a button) is probably fine
## Describe the bug The source links of v2.0.0 docs are broken: For exmaple, clicking the source button of this [class](https://huggingface.co/docs/datasets/v2.0.0/en/package_reference/main_classes#datasets.ClassLabel) will direct users to `https://github.com/huggingface/datasets/blob/v2.0.0/src/datasets/features/features.py#L747` here, the `v2.0.0` should be `2.0.0`. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug ``` ## Expected results Redirecting to this link: `https://github.com/huggingface/datasets/blob/2.0.0/src/datasets/features/features.py#L747` ## Actual results Described above. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: - Platform: - Python version: - PyArrow version:
111
Source links broken ## Describe the bug The source links of v2.0.0 docs are broken: For exmaple, clicking the source button of this [class](https://huggingface.co/docs/datasets/v2.0.0/en/package_reference/main_classes#datasets.ClassLabel) will direct users to `https://github.com/huggingface/datasets/blob/v2.0.0/src/datasets/features/features.py#L747` here, the `v2.0.0` should be `2.0.0`. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug ``` ## Expected results Redirecting to this link: `https://github.com/huggingface/datasets/blob/2.0.0/src/datasets/features/features.py#L747` ## Actual results Described above. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: - Platform: - Python version: - PyArrow version: We could add a tag for each release without a 'v' but it could be confusing on github to see both tags `v2.0.0` and `2.0.0` IMO (not sure if many users check them though). Removing the tags without 'v' would break our versioning for github datasets: the library looks for dataset scripts at the URLs like `https://raw.githubusercontent.com/huggingface/datasets/{revision}/datasets/{path}/{name}` where `revision` is equal to `datasets.__version__` (which doesn't start with a 'v') for all released versions of `datasets`. I think we could just have a parameter for the documentation - and having different URLs schemes for the source links that the users don't even see (they simply click on a button) is probably fine
[ -0.054221466183662415, 0.013687819242477417, 0.005049262195825577, -0.011431075632572174, 0.11554194986820221, -0.026993289589881897, 0.09385920315980911, 0.4597060978412628, -0.30111852288246155, -0.04287761449813843, 0.009345443919301033, 0.3782212734222412, -0.18527118861675262, 0.19493314623832703, 0.18505032360553741, 0.03635898604989052, -0.02116101235151291, 0.22467252612113953, -0.1446911096572876, -0.020479895174503326, -0.1109916940331459, 0.24557159841060638, -0.1002919152379036, 0.12038707733154297, -0.13068687915802002, 0.1420888751745224, 0.07505694031715393, 0.16421732306480408, -0.20087961852550507, -0.5908649563789368, 0.1809438318014145, 0.19909879565238953, -0.04738394543528557, 0.38123536109924316, -0.00010529274004511535, 0.12017008662223816, 0.3078627586364746, 0.06678712368011475, -0.5651859641075134, -0.3012247681617737, -0.02687477506697178, -0.11251536756753922, 0.021057887002825737, 0.03102055937051773, -0.171564519405365, -0.3184588849544525, -0.015397405251860619, -0.00910484790802002, 0.23964671790599823, 0.1511985808610916, 0.2965371906757355, 0.34289926290512085, 0.274720162153244, 0.038969460874795914, 0.4245392382144928, 0.1686263084411621, -0.19505813717842102, 0.27107957005500793, 0.27787625789642334, 0.01123620755970478, 0.025373242795467377, 0.5503284335136414, -0.05393355339765549, -0.308357298374176, 0.47956061363220215, 0.04613650217652321, -0.10211902111768723, -0.1716679334640503, 0.06531650573015213, 0.27525731921195984, 0.3913717269897461, -0.30507132411003113, -0.54134601354599, -0.1542349010705948, -0.11893925070762634, -0.1727122813463211, 0.22407659888267517, 0.1865035891532898, 0.022091001272201538, 0.3470360338687897, -0.25099822878837585, -0.3444196581840515, -0.2074720859527588, 0.10317473113536835, 0.31460294127464294, 0.09383536875247955, -0.20218810439109802, -0.04186512529850006, 0.11609523743391037, -0.14823514223098755, -0.17663826048374176, 0.08473111689090729, -0.24278569221496582, 0.22142437100410461, 0.34313732385635376, -0.10510852932929993, 0.23367485404014587, 0.1466367244720459, 0.5375952124595642, 0.15475013852119446, -0.23099231719970703, -0.11340425163507462, -0.253858357667923, 0.012633152306079865, 0.1252821832895279, 0.02873225510120392, 0.0497492253780365, 0.3027370572090149, 0.4774962067604065, 0.4509267508983612, 0.15230974555015564, 0.0032334737479686737, 0.15282663702964783, -0.22793905436992645, -0.2619706690311432, -0.15018871426582336, 0.39434999227523804, -0.22470253705978394, -0.07355915755033493, 0.07892223447561264, -0.3622934818267822, 0.08667672425508499, 0.08636251837015152, 0.16196858882904053, -0.15158312022686005, 0.3022729158401489, 0.19392487406730652, 0.07199379801750183, -0.22028858959674835, -0.2049558460712433, -0.21745985746383667, -0.03924977406859398, -0.28196150064468384, 0.2269870489835739, 0.013396035879850388, -0.35934701561927795, 0.4161595106124878, 0.3444632291793823, -0.11019794642925262, -0.2677724361419678, -0.1357264518737793, 0.24799992144107819, 0.015217885375022888, 0.17209525406360626, -0.17286141216754913, 0.15444758534431458, 0.0781944990158081, -0.42880749702453613, -0.10563616454601288, -0.03079134225845337, -0.42725875973701477, -0.23456595838069916, -0.22004742920398712, 0.20965149998664856, -0.07909394800662994, 0.19994401931762695, -0.08629196137189865, 0.07304862141609192, -0.18823763728141785, -0.14382915198802948, 0.01686088740825653, 0.08181709051132202, -0.044659487903118134, -0.15918149054050446, 0.4636856019496918, 0.5729563236236572, 0.1028030514717102, -0.25809246301651, 0.3721667528152466, 0.14564448595046997, -0.2716272473335266, 0.07603703439235687, -0.27441585063934326, -0.07422863692045212, -0.2762051522731781, -0.23873727023601532, 0.12671321630477905, -0.5267276167869568, -0.16850551962852478, 0.20146618783473969, -0.09598332643508911, 0.1630432903766632, -0.024290427565574646, -0.13671615719795227, 0.11233365535736084, -0.3080493211746216, 0.08887417614459991, -0.15518565475940704, 0.08742867410182953, 0.15942835807800293, -0.3915192782878876, -0.45669037103652954, -0.37656450271606445, -0.15319950878620148, -0.053194042295217514, 0.21914973855018616, 0.08978038281202316, 0.12206672877073288, 0.43283137679100037, -0.29962441325187683, 0.03313517943024635, 0.3649166226387024, 0.37871044874191284, 0.14092200994491577, 0.11503330618143082, -0.1485045701265335, -0.4050963521003723, 0.03813357651233673, 0.0813489481806755, 0.14959052205085754, -0.08750022947788239, -0.3053792715072632, -0.23222458362579346, -0.13037219643592834, -0.029927965253591537, -0.5637581944465637, 0.1992889791727066, 0.0872492641210556, 0.056571196764707565, 0.3677259087562561, -0.21610984206199646, 0.038598522543907166, -0.09123680740594864, 0.3434741497039795, -0.1919734925031662, 0.48450595140457153, -0.01670013926923275, 0.00021718069911003113, 0.09135180711746216, 0.31549739837646484, 0.1559927761554718, -0.07459858059883118, -0.034419383853673935, 0.4763198792934418, 0.018972117453813553, 0.3283328115940094, 0.31833407282829285, 0.3700166940689087, 0.39356181025505066, -0.43801286816596985, -0.056852541863918304, 0.11766490340232849, -0.08238759636878967, 0.1427532434463501, -0.07387129217386246, 0.18738651275634766, -0.1279745250940323, 0.1506776213645935, 0.22778604924678802, 0.23563280701637268, 0.18272334337234497, -0.11468945443630219, -0.45964303612709045, -0.22114580869674683, -0.02098916843533516, 0.06802312284708023, 0.31041496992111206, 0.03933082893490791, -0.3383372724056244, 0.14521315693855286, 0.3033580183982849, -0.007537156343460083, -0.0899386927485466, 0.1617816686630249, -0.44715332984924316, 0.027151957154273987, 0.019170813262462616, 0.3026748597621918, -0.11498431861400604, 0.25385546684265137, -0.060898277908563614, 0.2296641319990158, -0.2084740698337555, -0.12987136840820312, 0.23935428261756897, 0.00734112411737442, -0.09310495108366013, -0.061248913407325745, -0.043651219457387924, 0.07107904553413391, -0.2412252426147461, 0.048248592764139175, -0.30923959612846375, 0.035306207835674286, -0.5924835801124573, 0.1631026417016983, -0.22131171822547913, -0.08642411231994629, -0.38935187458992004, -0.21411101520061493, -0.3764782249927521, -0.1409262865781784, 0.06535553932189941, 0.29651039838790894, -0.23336270451545715, 0.2432197630405426, 0.03189383074641228, 0.11901301890611649, -0.14268949627876282, 0.10429566353559494, 0.034551769495010376, 0.014747494831681252, -0.15764588117599487, 0.1128983199596405, 0.20090632140636444, -0.11816415190696716, 0.19704771041870117, -0.41989246010780334, -0.23601321876049042, -0.46602097153663635, -0.6053328514099121, 0.19022813439369202, -0.1535024493932724, 0.3012956976890564, 0.2898384928703308, 0.1072128415107727, 0.12669341266155243, -0.18565882742404938, 0.3020485043525696, -0.07245377451181412, 0.0014362428337335587, -0.22254185378551483, -0.09735724329948425, -0.11178857088088989, -0.24134887754917145, -0.29892873764038086, 0.3168427050113678, -0.2898722290992737, 0.2237965166568756, 0.03204820677638054, 0.020856309682130814, 0.4790832996368408, 0.1273512989282608, 0.10418304800987244, 0.08406498283147812, 0.1887030303478241, -0.007760609500110149, -0.3454836905002594, 0.17690423130989075, -0.40330255031585693, -0.29739314317703247, 0.11095677316188812, 0.19292296469211578, 0.1309964805841446, 0.001093186903744936, -0.5002478361129761, -0.18283626437187195, -0.0578061044216156, -0.04789263755083084, 0.22289980947971344, 0.23762372136116028, 0.07526959478855133, 0.32475998997688293, -0.13577181100845337, -0.15082401037216187, -0.27672767639160156, 0.03729703649878502, -0.2727069556713104, 0.1897265464067459, 0.08713126182556152, 0.13492104411125183, 0.25058096647262573, 0.6639523506164551, 0.5149471759796143, 0.06229647994041443, 0.0514855831861496, -0.1781603842973709, 0.571937084197998, -0.07264740020036697, -0.2306562215089798, 0.10524143278598785, 0.017731770873069763, 0.07656289637088776, 0.28299570083618164, 0.42579466104507446, 0.09882501512765884, -0.2450859397649765, -0.0021957848221063614, -0.268898069858551, -0.3858238160610199, -0.31060659885406494, -0.0585053488612175, 0.24574947357177734, -0.030535724014043808, 0.045184120535850525, -0.02196383662521839, -0.03372661769390106, 0.22629132866859436, 0.3182810842990875, 0.21872183680534363, 0.08128902316093445, -0.30844274163246155, 0.07492759823799133, -0.20818179845809937, -0.03610046207904816, 0.1402258574962616, -0.22319243848323822, 0.13049493730068207, -0.12132129818201065, -0.08804149925708771, -0.061745624989271164, 0.21867918968200684, -0.042803503572940826, 0.25811898708343506, 0.021652664989233017, -0.014626283198595047, -0.2722747027873993, 0.01412280648946762, 0.13574831187725067, 0.08024159073829651, 0.32307496666908264, 0.2573145627975464, -0.3667582869529724, -0.3756216764450073, 0.4498584568500519, -0.14503027498722076, 0.11644932627677917, 0.2267363965511322, -0.07692814618349075, -0.15822497010231018, -0.09840953350067139, -0.23526352643966675, 0.011012980714440346, -0.03130192309617996, -0.2092444747686386, -0.3121057450771332, 0.24048954248428345, -0.2777899205684662, -0.06794632971286774, 0.20606382191181183, 0.4053444564342499, 0.021825360134243965, 0.14147615432739258, 0.3459532856941223, 0.25256526470184326, 0.52109694480896, 0.5847522020339966, -0.24941319227218628, -0.4579269289970398, -0.16946297883987427, -0.04092080146074295, -0.0322212353348732, 0.2885251045227051, -0.11596944183111191, 0.009096518158912659, 0.11946423351764679, 0.008690029382705688, -0.28674080967903137, -0.0688350573182106, 0.5297386646270752, 0.13331931829452515, -0.20400290191173553, -0.3759598731994629, 0.3375391364097595, 0.011565569788217545, -0.1160980686545372, 0.33086976408958435, 0.612769603729248, -0.32982322573661804, -0.19536887109279633, 0.12307411432266235, 0.8620074987411499, 0.25637200474739075, 0.12284140288829803, 0.1947365403175354, -0.39383697509765625, 0.5247853398323059, 0.012616440653800964, -0.059756435453891754, -0.3649611473083496, 0.03724108636379242, -0.05958477780222893, -0.07603104412555695, 0.07870511710643768, -0.1857781708240509, -0.19024454057216644, 0.13128776848316193, -0.1647689789533615, 0.26361873745918274, 0.03762073442339897, 0.07315796613693237, 0.05950178951025009, -0.00003102049231529236, -0.2378513216972351, 0.1923292577266693, -0.000762447714805603, 0.14921866357326508, -0.08915422111749649, -0.2485375851392746, -0.14541055262088776, -0.3152446150779724, -0.4438244104385376, 0.13863831758499146, -0.26788341999053955, -0.12101127207279205, 0.24951672554016113, -0.10527203232049942, 0.10444754362106323, 0.3050275444984436, 0.3691343665122986, 0.21562840044498444, -0.44749850034713745, 0.14476560056209564, -0.2815280556678772, 0.0476696640253067, 0.11352688819169998, 0.19571012258529663, 0.3107720911502838, -0.12605853378772736, -0.1145562008023262, 0.04732843115925789, -0.051462896168231964, -0.188827782869339, 0.08686068654060364, -0.3910388946533203, -0.3402099013328552, -0.11585071682929993, 0.3479395806789398, 0.23847536742687225, 0.07552124559879303, -0.36495766043663025, 0.19082579016685486, 0.023540329188108444, -0.026315977796912193, -0.14793625473976135, 0.17452315986156464, -0.13240836560726166, -0.049581412225961685, 0.2619989812374115, -0.19335347414016724, 0.0298319011926651, 0.15584629774093628, 0.07723619043827057, -0.23210114240646362, -0.16623340547084808, 0.09798247367143631, 0.052544668316841125, -0.40100324153900146, 0.22459864616394043, -0.046054448932409286, 0.08910207450389862, 0.08774339407682419, 0.3769429624080658, 0.07137948274612427, 0.2265879213809967, 0.017004985362291336, -0.02647211030125618, -0.00016581080853939056, 0.3245793581008911, -0.20697133243083954, 0.0046026334166526794, -0.05734684318304062, 0.04172991216182709, 0.1950514018535614, -0.19591458141803741, -0.4131655693054199, 0.0913863331079483, -0.10045166313648224, -0.04141489416360855, 0.2346096783876419, 0.07885676622390747, 0.4323659837245941, -0.21284696459770203, 0.1490345597267151, -0.3537525534629822, -0.24959853291511536, -0.13248459994792938, -0.4759083390235901, 0.018820226192474365, -0.08795374631881714, -0.22025877237319946, -0.0221298485994339, -0.04314286261796951, -0.001382775604724884, -0.1816764920949936, 0.31015968322753906, 0.32150042057037354, 0.07397020608186722, 0.1726272702217102, -0.19510449469089508, 0.0521383062005043, -0.08797282725572586, 0.09314156323671341, 0.027987677603960037, 0.334195077419281, 0.136514812707901, 0.10436417162418365, -0.2650353014469147, -0.22048164904117584, -0.1169372946023941, 0.3173973560333252, -0.16774465143680573, 0.2694794535636902, 0.38584351539611816, -0.1445881426334381, 0.027617204934358597, 0.2676352262496948, 0.47237464785575867, 0.23305828869342804, -0.11182499676942825, 0.1401636004447937, 0.16757512092590332, 0.23470810055732727, -0.03494785726070404, -0.11347699165344238, -0.05369727686047554, -0.10070674866437912, 0.12629558145999908, 0.1496426910161972, 0.18780487775802612, -0.14701391756534576, 0.2113792449235916, 0.0580008402466774, 0.14702393114566803, -0.11916439235210419, 0.4365270137786865, 0.34480926394462585, -0.05680682882666588, 0.11834262311458588, -0.08959853649139404, 0.04523512348532677, 0.24276286363601685, -0.026522114872932434, -0.22292771935462952, -0.14383773505687714, 0.128520667552948, 0.1530759632587433, 0.09822933375835419, 0.179973304271698, -0.18564923107624054, 0.029802612960338593, 0.011390320956707, -0.08147790282964706, -0.1017957329750061, 0.2614836096763611, -0.021274439990520477, -0.3652615249156952, -0.018122313544154167, 0.29961106181144714, 0.08161213994026184, -0.22258679568767548, -0.21706564724445343, -0.19519248604774475, -0.15299221873283386, -0.1178181916475296, -0.09089355170726776, -0.134139746427536, 0.05739983543753624, -0.022860199213027954, -0.04211677610874176, -0.4502756893634796, -0.10497883707284927, 0.08181670308113098, 0.4716487228870392, -0.11050790548324585, 0.10670245438814163, -0.033829376101493835, -0.08636093139648438, 0.010394355282187462, 0.46587875485420227, 0.40359464287757874, 0.1855059564113617, 0.1668895035982132, -0.2718513011932373, -0.011134367436170578, 0.08816404640674591, 0.025197073817253113, -0.08026077598333359, -0.0877370536327362, -0.22216670215129852, 0.19365733861923218, 0.15617504715919495, -0.20780880749225616, 0.02228567562997341, -0.3632344901561737, 0.21097597479820251, -0.19542305171489716, 0.3592410087585449, -0.19868062436580658, -0.03623555600643158, -0.23811879754066467, 0.034887395799160004, -0.19077345728874207, 0.022417491301894188, 0.31707876920700073, -0.027316654101014137, 0.022421665489673615, -0.10083562135696411, 0.13339482247829437, 0.4469565749168396, 0.19785629212856293, 0.4370652139186859, -0.008701182901859283, 0.11587453633546829, -0.3751973509788513, -0.30363816022872925, 0.0029106363654136658, -0.05261031910777092, -0.08595772087574005, -0.1112590804696083, -0.0204201377928257, -0.08463721722364426, 0.0941736251115799, 0.05070510506629944, -0.31959986686706543, 0.06802929937839508, -0.16137270629405975, -0.14163945615291595, 0.11276717483997345, -0.2535055875778198, 0.0642239898443222, 0.014650866389274597, -0.0034303925931453705, 0.08544111251831055, -0.1613759994506836, 0.04363624006509781, 0.20769460499286652, 0.5889083743095398, -0.09815847873687744, -0.25953370332717896, 0.26941341161727905, 0.0012875832617282867, -0.06589657068252563, -0.09092345833778381, -0.4144922196865082, -0.459087610244751, -0.40707480907440186, -0.23585478961467743, 0.18688899278640747, -0.1709122359752655, 0.33043035864830017, -0.21480591595172882, -0.42710766196250916, -0.3543010652065277, 0.1898268312215805, 0.2043718546628952, 0.23761238157749176, -0.12549903988838196, 0.24730154871940613, 0.07181132584810257, -0.08249752968549728, 0.18000727891921997, 0.25682181119918823, -0.36245134472846985, 0.049809858202934265, -0.20353055000305176, -0.4626932740211487, 0.48564061522483826, -0.3534536361694336, 0.1519511491060257, 0.10792791843414307, 0.5809342265129089, 0.23570919036865234, -0.2840249240398407, -0.42030444741249084, 0.055797331035137177, 0.29647114872932434, 0.2373553216457367, -0.5385140180587769, 0.14890065789222717, -0.054968904703855515, 0.09026199579238892, 0.007988952100276947, 0.12809546291828156, 0.18834197521209717, -0.14948725700378418, 0.3586437702178955, -0.1158812940120697 ]
https://github.com/huggingface/datasets/issues/3939
Source links broken
This is done in #3943 to go along with [doc-builder#146](https://github.com/huggingface/doc-builder/pull/146). Note that this will only work for future versions, so once those two are merged, the actual v2.0.0 doc should be fixed. The easiest is to cherry-pick this commit on the v2.0.0 release branch (or on a new branch created from the 2.0.0 tag, with a name that triggers the doc building job, for instance v2.0.0-release)
## Describe the bug The source links of v2.0.0 docs are broken: For exmaple, clicking the source button of this [class](https://huggingface.co/docs/datasets/v2.0.0/en/package_reference/main_classes#datasets.ClassLabel) will direct users to `https://github.com/huggingface/datasets/blob/v2.0.0/src/datasets/features/features.py#L747` here, the `v2.0.0` should be `2.0.0`. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug ``` ## Expected results Redirecting to this link: `https://github.com/huggingface/datasets/blob/2.0.0/src/datasets/features/features.py#L747` ## Actual results Described above. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: - Platform: - Python version: - PyArrow version:
66
Source links broken ## Describe the bug The source links of v2.0.0 docs are broken: For exmaple, clicking the source button of this [class](https://huggingface.co/docs/datasets/v2.0.0/en/package_reference/main_classes#datasets.ClassLabel) will direct users to `https://github.com/huggingface/datasets/blob/v2.0.0/src/datasets/features/features.py#L747` here, the `v2.0.0` should be `2.0.0`. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug ``` ## Expected results Redirecting to this link: `https://github.com/huggingface/datasets/blob/2.0.0/src/datasets/features/features.py#L747` ## Actual results Described above. ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: - Platform: - Python version: - PyArrow version: This is done in #3943 to go along with [doc-builder#146](https://github.com/huggingface/doc-builder/pull/146). Note that this will only work for future versions, so once those two are merged, the actual v2.0.0 doc should be fixed. The easiest is to cherry-pick this commit on the v2.0.0 release branch (or on a new branch created from the 2.0.0 tag, with a name that triggers the doc building job, for instance v2.0.0-release)
[ -0.10714317858219147, -0.037290483713150024, 0.047776129096746445, 0.005761992186307907, 0.11596400290727615, 0.003081120550632477, 0.12522906064987183, 0.4230194091796875, -0.3148474097251892, -0.026350483298301697, 0.0007156252395361662, 0.3678084909915924, -0.09867092967033386, 0.25609341263771057, 0.21047194302082062, -0.019489988684654236, -0.001351386308670044, 0.24695658683776855, -0.2531589865684509, -0.032865576446056366, -0.21429480612277985, 0.3160282373428345, -0.19371140003204346, 0.12621504068374634, -0.3483330309391022, 0.16341440379619598, 0.049094751477241516, 0.22356221079826355, -0.19719868898391724, -0.5112730264663696, 0.12942135334014893, 0.13948523998260498, -0.1343918740749359, 0.333217054605484, -0.0001022324213408865, 0.05521012842655182, 0.3468747138977051, 0.13726456463336945, -0.4601231813430786, -0.3032650351524353, 0.02040347456932068, -0.09965097159147263, -0.013936544768512249, 0.002639167010784149, -0.16390088200569153, -0.3710721731185913, 0.0037499479949474335, 0.10297869145870209, 0.1823270320892334, 0.30791470408439636, 0.3265562653541565, 0.39166030287742615, 0.3803834915161133, -0.03780394047498703, 0.3094500005245209, 0.117323137819767, -0.1556161642074585, 0.21635261178016663, 0.15630361437797546, -0.11733916401863098, 0.012751787900924683, 0.4927566945552826, -0.08386455476284027, -0.3008235991001129, 0.46444326639175415, 0.07686026394367218, -0.235021710395813, -0.15525415539741516, 0.15823359787464142, 0.2733319103717804, 0.3548750877380371, -0.2061711847782135, -0.4903326630592346, -0.14474423229694366, -0.1784852147102356, -0.08328413963317871, 0.289174348115921, 0.11956650018692017, 0.14206700026988983, 0.3346913456916809, -0.12300389260053635, -0.2604272663593292, -0.130666583776474, 0.10259297490119934, 0.15024662017822266, 0.050147462636232376, -0.25478020310401917, -0.0900404080748558, 0.2541617751121521, -0.15240317583084106, -0.010520256124436855, 0.05368471518158913, -0.23372182250022888, 0.1924678087234497, 0.2942923903465271, 0.052460700273513794, 0.32224568724632263, 0.27182647585868835, 0.40080752968788147, 0.04539390280842781, -0.22644518315792084, -0.10802371054887772, -0.14412502944469452, 0.04510065168142319, 0.048737622797489166, 0.025850940495729446, 0.01952064037322998, 0.2145216017961502, 0.3920157551765442, 0.43948864936828613, 0.09437963366508484, -0.11749769002199173, 0.13072942197322845, -0.23789356648921967, -0.2649363577365875, -0.24739602208137512, 0.3130304217338562, -0.2161942720413208, -0.161179319024086, 0.1364140510559082, -0.2770586609840393, 0.19082124531269073, 0.09679777920246124, 0.15430769324302673, -0.11171133816242218, 0.32401591539382935, 0.2667907476425171, 0.10049504786729813, -0.3145938515663147, -0.22436638176441193, -0.26669907569885254, 0.05294416472315788, -0.2293560951948166, 0.08539913594722748, 0.10422074794769287, -0.2768051326274872, 0.4117843806743622, 0.24152429401874542, -0.029895402491092682, -0.3137987554073334, -0.15777960419654846, 0.16388800740242004, -0.017633095383644104, 0.21998067200183868, -0.14373667538166046, 0.09196951985359192, 0.1454603224992752, -0.29547005891799927, 0.03028528392314911, 0.043909087777137756, -0.48097896575927734, -0.20230044424533844, -0.16826827824115753, 0.26291465759277344, -0.0678282380104065, 0.11453913897275925, -0.010587342083454132, 0.09048208594322205, -0.14759612083435059, -0.20702806115150452, -0.047719068825244904, 0.019392672926187515, -0.14735235273838043, -0.11849585920572281, 0.5030522346496582, 0.6115778684616089, -0.04496465250849724, -0.22015950083732605, 0.4343181550502777, 0.15215207636356354, -0.2516007125377655, 0.05596594512462616, -0.23137183487415314, 0.001185484230518341, -0.3202057182788849, -0.015087798237800598, -0.04724063724279404, -0.33315691351890564, -0.21490967273712158, 0.08403192460536957, -0.0985766053199768, 0.09504574537277222, -0.03054649382829666, -0.20895293354988098, 0.03232623264193535, -0.1870991587638855, 0.11249315738677979, -0.14420045912265778, 0.14252719283103943, 0.24584588408470154, -0.3801752030849457, -0.3218502998352051, -0.44893449544906616, -0.17603141069412231, 0.054382361471652985, 0.18994399905204773, 0.08403138816356659, 0.12464932352304459, 0.2788214385509491, -0.26094645261764526, 0.040330298244953156, 0.41249001026153564, 0.26734644174575806, 0.16248807311058044, 0.1385268121957779, -0.18562954664230347, -0.4126909673213959, 0.02193944901227951, -0.008496355265378952, 0.10847923159599304, -0.08572423458099365, -0.22801364958286285, -0.2862425744533539, -0.06536192446947098, -0.01488509401679039, -0.5016239285469055, 0.24133151769638062, 0.03938059136271477, 0.04335343465209007, 0.4598079323768616, -0.21049995720386505, 0.11986897140741348, -0.11991404742002487, 0.3309999108314514, -0.1858648806810379, 0.4658701717853546, -0.010256392881274223, -0.09169191867113113, 0.10248441994190216, 0.3219946622848511, 0.15872901678085327, 0.0016079056076705456, -0.06620030105113983, 0.49051231145858765, -0.044254809617996216, 0.3863057494163513, 0.18349844217300415, 0.2843044102191925, 0.30864638090133667, -0.4547377824783325, -0.11416610330343246, 0.00014322996139526367, 0.03506477549672127, 0.047292560338974, -0.09802231937646866, 0.17024768888950348, -0.1524065136909485, 0.13411647081375122, 0.26324617862701416, 0.24059972167015076, 0.0994584858417511, -0.170314759016037, -0.3035508096218109, -0.18825620412826538, 0.05786975100636482, 0.0169622004032135, 0.31962671875953674, 0.04152651131153107, -0.2741641700267792, 0.13832490146160126, 0.308535635471344, 0.016617093235254288, -0.06199056655168533, 0.12381928414106369, -0.5089432597160339, 0.025640025734901428, -0.08801626414060593, 0.2399567812681198, -0.06264731287956238, 0.2277643233537674, -0.015358667820692062, 0.2512657344341278, -0.1977047622203827, -0.15809471905231476, 0.2575699985027313, 0.02954476699233055, -0.0812298133969307, 0.08682726323604584, -0.02442343346774578, -0.040758728981018066, -0.4203323423862457, 0.1737302541732788, -0.28595492243766785, 0.08197695016860962, -0.6088327169418335, 0.0974341332912445, -0.16661310195922852, 0.019634105265140533, -0.34586650133132935, -0.15313498675823212, -0.29059678316116333, -0.2852281332015991, 0.08015911281108856, 0.4142056107521057, -0.1749155968427658, 0.1939692348241806, -0.021395279094576836, 0.16838379204273224, -0.06926579773426056, 0.11465473473072052, -0.11276154220104218, 0.05859651416540146, -0.16268596053123474, 0.1369713991880417, 0.12409798800945282, -0.007601669058203697, 0.13840070366859436, -0.42836034297943115, -0.12478569895029068, -0.358652263879776, -0.5773411989212036, 0.1289958655834198, -0.06649795174598694, 0.28420647978782654, 0.2798342704772949, 0.12290643155574799, -0.0028935037553310394, -0.21526990830898285, 0.393256813287735, -0.1551632136106491, -0.10435345768928528, -0.1494436264038086, -0.09615907073020935, -0.10468275099992752, -0.2238081991672516, -0.3382064998149872, 0.3277101516723633, -0.28044599294662476, 0.23503276705741882, -0.01950598508119583, -0.03940155357122421, 0.38019996881484985, 0.21397489309310913, 0.22099952399730682, -0.08142337948083878, 0.20862139761447906, -0.029328910633921623, -0.33483216166496277, 0.2482713907957077, -0.3973129987716675, -0.4279312193393707, 0.08392275869846344, 0.12312769889831543, 0.05475933849811554, -0.14074978232383728, -0.43552082777023315, -0.28645551204681396, -0.14782482385635376, -0.04181121289730072, 0.18203818798065186, 0.2941396236419678, 0.14779512584209442, 0.26054537296295166, -0.20709477365016937, -0.2066696286201477, -0.18100406229496002, 0.08621980249881744, -0.29010042548179626, 0.13582482933998108, 0.0799984410405159, 0.13289740681648254, 0.24311324954032898, 0.5736212730407715, 0.4284619688987732, 0.130968376994133, 0.08570047467947006, -0.15776197612285614, 0.6485412120819092, -0.23015457391738892, -0.3381350040435791, 0.10571791976690292, -0.007149249315261841, 0.11455263197422028, 0.2659189701080322, 0.36085912585258484, 0.14759398996829987, -0.23362313210964203, 0.031857408583164215, -0.28436514735221863, -0.3194163739681244, -0.3027117848396301, 0.04559670761227608, 0.26393944025039673, 0.021514080464839935, 0.03283826261758804, -0.01683961972594261, -0.03650408983230591, 0.2358182668685913, 0.24309571087360382, 0.20474396646022797, 0.00971373450011015, -0.27536502480506897, 0.1396523118019104, -0.36646658182144165, -0.06081129610538483, 0.09713757783174515, -0.19107113778591156, 0.03537115082144737, -0.15071341395378113, -0.020180106163024902, -0.08945861458778381, 0.4674481153488159, 0.09359169751405716, 0.1470591425895691, 0.04331755265593529, -0.0334508903324604, -0.2149500995874405, 0.06885850429534912, 0.06657049059867859, -0.022825168445706367, 0.37932100892066956, 0.21909797191619873, -0.30118560791015625, -0.2932259142398834, 0.4774177670478821, -0.14084963500499725, 0.12678954005241394, 0.22274430096149445, -0.033011868596076965, -0.15710419416427612, -0.023255744948983192, -0.1845138669013977, 0.09401065856218338, 0.14128179848194122, -0.19383542239665985, -0.2403881698846817, 0.1853194534778595, -0.31238511204719543, -0.09752121567726135, 0.08143751323223114, 0.4165748059749603, -0.01951323077082634, 0.13887639343738556, 0.4379505515098572, 0.24038441479206085, 0.4868622124195099, 0.5241217017173767, -0.2787899076938629, -0.4160948395729065, -0.21053355932235718, -0.042023032903671265, -0.017901428043842316, 0.22663968801498413, -0.21051733195781708, -0.04308900982141495, 0.10981421172618866, 0.007360108196735382, -0.2666988670825958, -0.00749213807284832, 0.5887690782546997, 0.13545410335063934, -0.04882322996854782, -0.2815682888031006, 0.3301006555557251, -0.0045273564755916595, 0.007907859981060028, 0.164038747549057, 0.6071715354919434, -0.2599136233329773, -0.21851398050785065, 0.01809566468000412, 0.7705108523368835, 0.18317483365535736, 0.15676862001419067, 0.2308731973171234, -0.22611962258815765, 0.5741899609565735, -0.01307523250579834, -0.06037266552448273, -0.3449274003505707, -0.07696440070867538, -0.05019194632768631, -0.002143215388059616, 0.07875844836235046, -0.10732918977737427, -0.10039188712835312, 0.08383594453334808, -0.09126193076372147, 0.30219244956970215, 0.11165910959243774, -0.02070651762187481, 0.10151369869709015, -0.05062679573893547, -0.1471155881881714, 0.2037443220615387, 0.03411981463432312, 0.16360655426979065, -0.029731759801506996, -0.23468486964702606, -0.04349979758262634, -0.2744353711605072, -0.33393266797065735, 0.1835142970085144, -0.24968010187149048, -0.09634830802679062, 0.27446305751800537, -0.12969455122947693, 0.05411810800433159, 0.3524026870727539, 0.2341807335615158, 0.21623367071151733, -0.49218082427978516, 0.1382884383201599, -0.23213252425193787, -0.03307310491800308, 0.15203553438186646, 0.21181605756282806, 0.24144907295703888, -0.11468633264303207, -0.1421186476945877, 0.011213034391403198, -0.10891679674386978, -0.11472373455762863, 0.15095695853233337, -0.30078673362731934, -0.30613136291503906, -0.18428093194961548, 0.1955001801252365, 0.1856139451265335, 0.11929260194301605, -0.4250791072845459, 0.23634201288223267, -0.01825675368309021, -0.03583735227584839, -0.22204819321632385, 0.1800803244113922, -0.16606870293617249, 0.002011658623814583, 0.4534938335418701, -0.2811463475227356, -0.018277667462825775, 0.2749771177768707, 0.19992555677890778, -0.3000599145889282, -0.19035369157791138, 0.10348909348249435, 0.033404793590307236, -0.4011295437812805, 0.20152337849140167, 0.10549446195363998, 0.08501152694225311, 0.060784194618463516, 0.33908548951148987, 0.03141912817955017, 0.16759002208709717, -0.05754474177956581, -0.060511164367198944, -0.11753089725971222, 0.24784615635871887, -0.13665318489074707, 0.061641253530979156, 0.07806269824504852, 0.08688436448574066, 0.24255341291427612, -0.1960875540971756, -0.43590688705444336, 0.1603040248155594, -0.11043553054332733, -0.09478700160980225, 0.2648346424102783, -0.05652974545955658, 0.4508224427700043, -0.19405397772789001, 0.2131625860929489, -0.25257569551467896, -0.1636119931936264, -0.19669824838638306, -0.481346994638443, 0.020926639437675476, -0.0005657393485307693, -0.2056204229593277, -0.0367913544178009, -0.11808977276086807, -0.09879368543624878, -0.2385931760072708, 0.2675916850566864, 0.3241938054561615, 0.012127764523029327, 0.14587652683258057, -0.23802818357944489, 0.054844245314598083, 0.02610165625810623, 0.10487480461597443, 0.006439566612243652, 0.17040079832077026, 0.01803761161863804, 0.06523066014051437, -0.24691976606845856, -0.14856673777103424, 0.03447054326534271, 0.2824959456920624, -0.18784017860889435, 0.18061426281929016, 0.43190285563468933, -0.2521035671234131, 0.018308479338884354, 0.1535836011171341, 0.490538626909256, 0.1772577166557312, -0.13015015423297882, 0.1224200427532196, 0.1628842055797577, 0.2809225618839264, -0.16195516288280487, -0.18989968299865723, -0.06326498091220856, -0.13129033148288727, 0.1742437481880188, 0.05590848624706268, 0.1841929852962494, -0.2290532886981964, 0.18790265917778015, 0.09848634153604507, 0.08057866990566254, -0.044587597250938416, 0.2905265688896179, 0.38589292764663696, 0.05872340872883797, 0.10438272356987, 0.03374466672539711, 0.10711722075939178, 0.17118361592292786, 0.1622190624475479, -0.07219039648771286, -0.11345693469047546, 0.03256061673164368, 0.299601674079895, 0.00957365334033966, 0.007332552224397659, -0.14855560660362244, 0.011912375688552856, -0.0005843117833137512, -0.09388098865747452, -0.21990817785263062, 0.34830114245414734, -0.09991927444934845, -0.27538585662841797, -0.11080509424209595, 0.3650294244289398, -0.03081805258989334, -0.31886133551597595, -0.16857142746448517, -0.2220933735370636, 0.03112967312335968, -0.1163695901632309, 0.03187327831983566, -0.06826098263263702, 0.12855248153209686, -0.10162672400474548, -0.03635159134864807, -0.4059378504753113, -0.1483134627342224, 0.039918333292007446, 0.3701283931732178, -0.08837541937828064, 0.1206682026386261, -0.1198350191116333, -0.018549926578998566, 0.009615018963813782, 0.5763811469078064, 0.42217886447906494, 0.2314804643392563, 0.23978182673454285, -0.3418089747428894, -0.09415784478187561, 0.00965171866118908, -0.02715846709907055, 0.07777662575244904, -0.01646476984024048, -0.16600604355335236, 0.23771582543849945, 0.17929349839687347, -0.2863866090774536, -0.008888088166713715, -0.2958658039569855, 0.24188436567783356, -0.19891507923603058, 0.14517498016357422, -0.2286737859249115, -0.06657840311527252, -0.34727197885513306, 0.046889953315258026, -0.2402421236038208, 0.0027648736722767353, 0.35273438692092896, -0.12640084326267242, 0.03165392205119133, -0.12330296635627747, 0.1452215015888214, 0.39772188663482666, 0.23822501301765442, 0.4856225550174713, -0.009014606475830078, 0.007738557178527117, -0.3651890158653259, -0.2859887182712555, 0.0634186714887619, -0.07130217552185059, 0.03682880848646164, -0.1309402585029602, -0.03452957421541214, -0.11177218705415726, 0.00040907785296440125, -0.010024890303611755, -0.2517552375793457, 0.06182747334241867, -0.1680072396993637, -0.15320755541324615, 0.05638594925403595, -0.2865450382232666, 0.0033837761729955673, -0.008756516501307487, 0.049636147916316986, 0.07576102018356323, -0.09695598483085632, 0.08311011642217636, 0.1763840615749359, 0.5667520761489868, -0.2636776268482208, -0.1828838586807251, 0.21239103376865387, 0.07081755995750427, 0.07186424732208252, -0.11390776187181473, -0.2972789704799652, -0.4610171914100647, -0.4370005130767822, -0.17129550874233246, 0.2058832347393036, -0.18695741891860962, 0.2751208543777466, -0.1540077030658722, -0.4488617479801178, -0.23471243679523468, 0.22215920686721802, 0.22715617716312408, 0.20180833339691162, -0.2480246126651764, 0.24034428596496582, -0.03853749483823776, -0.08420032262802124, 0.19194437563419342, 0.32848113775253296, -0.29926204681396484, 0.003751581534743309, -0.19196343421936035, -0.523949921131134, 0.43620768189430237, -0.40403759479522705, 0.1329258531332016, 0.12143252044916153, 0.5170426368713379, 0.24137893319129944, -0.30936357378959656, -0.4317304491996765, 0.010916762053966522, 0.2694335877895355, 0.19246390461921692, -0.5227465629577637, 0.14958268404006958, -0.12825556099414825, 0.11339588463306427, 0.0032999441027641296, 0.2263985425233841, 0.25676655769348145, -0.1053273007273674, 0.3469494879245758, -0.10885804891586304 ]
https://github.com/huggingface/datasets/issues/3937
Missing languages in lvwerra/github-code dataset
That seems to be an oversight - I originally planned to include them in the dataset and for some reason they were in the list of languages but not in the query. Since there is an issue with the deduplication step I'll rerun the pipeline anyway and will double check the query. Thanks for reporting this @Eytan-S!
Hi, I'm working with the github-code dataset. First of all, thank you for creating this amazing dataset! I've noticed that two languages are missing from the dataset: TypeScript and Scala. Looks like they're also omitted from the query you used to get the original code. Are there any plans to add them in the future? Thanks!
57
Missing languages in lvwerra/github-code dataset Hi, I'm working with the github-code dataset. First of all, thank you for creating this amazing dataset! I've noticed that two languages are missing from the dataset: TypeScript and Scala. Looks like they're also omitted from the query you used to get the original code. Are there any plans to add them in the future? Thanks! That seems to be an oversight - I originally planned to include them in the dataset and for some reason they were in the list of languages but not in the query. Since there is an issue with the deduplication step I'll rerun the pipeline anyway and will double check the query. Thanks for reporting this @Eytan-S!
[ 0.028587136417627335, 0.08368466794490814, -0.24119462072849274, 0.11609712988138199, 0.1939321607351303, 0.07511136680841446, 0.11346013844013214, 0.30450183153152466, 0.21810367703437805, -0.044578418135643005, 0.010674945078790188, 0.31046247482299805, -0.0661669671535492, 0.15925440192222595, 0.31110864877700806, -0.0231081023812294, 0.1431608945131302, -0.08285756409168243, -0.09866759181022644, -0.37230414152145386, 0.13414514064788818, 0.5402258038520813, -0.06623855978250504, -0.2558542490005493, -0.012976428493857384, 0.2341163605451584, -0.03351916745305061, 0.13579314947128296, -0.15296746790409088, -0.21892188489437103, 0.20527051389217377, 0.07972463965415955, 0.15834663808345795, 0.13565023243427277, -0.00011809346324298531, -0.13131605088710785, 0.13486751914024353, -0.2493516504764557, -0.0429881252348423, -0.1027955561876297, -0.2700394093990326, -0.20897619426250458, -0.0831199437379837, -0.006010182201862335, -0.08993496000766754, 0.21684019267559052, 0.040547750890254974, -0.9287722110748291, 0.15543925762176514, 0.41259559988975525, 0.14028514921665192, -0.04822629690170288, 0.07329466938972473, -0.03215085342526436, 0.4961043894290924, 0.2492421269416809, -0.06876469403505325, 0.07627680897712708, 0.8073577880859375, 0.043597690761089325, 0.09561814367771149, 0.3410218060016632, 0.18845662474632263, -0.4317695200443268, -0.2999335825443268, 0.1760675460100174, -0.07145825773477554, -0.4523974359035492, 0.2324964702129364, 0.22068893909454346, 0.48990800976753235, -0.3061121702194214, -0.24554355442523956, -0.05792159587144852, 0.0029783817008137703, -0.16975422203540802, -0.04199244827032089, 0.04150477051734924, 0.16262777149677277, 0.29223886132240295, -0.22647503018379211, -0.38397520780563354, -0.13964831829071045, 0.0650663822889328, 0.3619152307510376, 0.1776198148727417, 0.13405542075634003, 0.017208922654390335, -0.4431988298892975, 0.2792978286743164, -0.160061776638031, -0.19012711942195892, 0.08584123849868774, 0.2896312177181244, -0.057617928832769394, -0.09598109126091003, 0.3380833864212036, -0.018048115074634552, 0.09219688177108765, 0.21710823476314545, -0.11468382179737091, 0.09673437476158142, -0.1910437047481537, -0.046273842453956604, 0.014135187491774559, 0.16490136086940765, 0.1749160885810852, 0.1733643114566803, 0.28635770082473755, -0.280083566904068, 0.1415085345506668, 0.0229828879237175, -0.35264280438423157, 0.04144296422600746, -0.1964731514453888, 0.32550618052482605, 0.07767287641763687, -0.21259728074073792, 0.00863477773964405, 0.20142659544944763, -0.272254079580307, -0.41933730244636536, -0.1099286824464798, -0.033308133482933044, 0.20338910818099976, 0.1968441605567932, -0.1095568984746933, 0.3547726273536682, -0.29867053031921387, -0.6461304426193237, -0.1396753042936325, 0.0649980753660202, -0.09523191303014755, -0.2280779331922531, 0.10834583640098572, 0.04932864010334015, 0.2804524600505829, 0.1642279177904129, 0.16958072781562805, -0.039205096662044525, 0.03671834617853165, -0.12187749147415161, -0.08480977267026901, 0.011129457503557205, -0.06253965944051743, 0.054991595447063446, 0.31147241592407227, -0.7545152902603149, -0.126669242978096, 0.27932924032211304, 0.03747081011533737, 0.030387867242097855, -0.303484171628952, 0.1159186065196991, -0.1894134134054184, -0.21701180934906006, -0.4007621109485626, 0.4835270345211029, 0.13270507752895355, 0.032046157866716385, 0.08117075264453888, -0.41084301471710205, 0.44059374928474426, -0.1636563390493393, 0.3112887144088745, 0.34332817792892456, -0.5936993360519409, -0.07429935783147812, -0.199519544839859, -0.18253977596759796, 0.410172700881958, 0.2085353434085846, -0.16399706900119781, 0.41302502155303955, -0.2053508162498474, 0.38453108072280884, 0.618567943572998, -0.2792363464832306, 0.1131226122379303, 0.13485835492610931, 0.20561496913433075, 0.025386707857251167, -0.150300532579422, -0.048983339220285416, 0.47215536236763, -0.042581286281347275, -0.06127628684043884, 0.06901908665895462, -0.25018298625946045, -0.2780109941959381, -0.30730879306793213, -0.02324923686683178, 0.42799729108810425, 0.26044756174087524, 0.42883121967315674, -0.049479030072689056, 0.4264566898345947, -0.3806416988372803, 0.3495767116546631, -0.09711088240146637, 0.14970488846302032, 0.35682785511016846, 0.3827945291996002, 0.24352675676345825, 0.14854750037193298, -0.22186315059661865, -0.11173699051141739, 0.12012515217065811, -0.06033755838871002, 0.07432671636343002, 0.15141750872135162, 0.11528727412223816, -0.039378196001052856, -0.03207064047455788, -0.1781095415353775, -0.16791102290153503, 0.07855287939310074, 0.05203733220696449, -0.24538744986057281, 0.2314881831407547, -0.13849937915802002, -0.3390560746192932, 0.010971857234835625, -0.09600067138671875, -0.4160977602005005, 0.2616405189037323, -0.08834143728017807, -0.24726611375808716, 0.06018247455358505, 0.24425551295280457, -0.002603203058242798, -0.13053837418556213, -0.11591757088899612, -0.17176809906959534, 0.46826767921447754, -0.046319276094436646, 0.8385351300239563, 0.25908035039901733, 0.1498352736234665, -0.3225872218608856, 0.17709872126579285, 0.18832240998744965, 0.12484441697597504, 0.06096768379211426, 0.19951748847961426, 0.25792473554611206, 0.07942342758178711, -0.0838351920247078, 0.07647773623466492, 0.07468616962432861, 0.5405637621879578, 0.05350111797451973, -0.22326771914958954, -0.12480656802654266, 0.4487490952014923, 0.13480989634990692, 0.1296198070049286, 0.008504090830683708, -0.37714964151382446, 0.3240276277065277, 0.6538195610046387, -0.2940187156200409, 0.053971681743860245, -0.046494074165821075, -0.010647706687450409, -0.0842781513929367, 0.02056170254945755, -0.0418112576007843, 0.1210269182920456, 0.2205112725496292, 0.008228305727243423, -0.3815178871154785, 0.1313840001821518, -0.2564082145690918, 0.09814119338989258, -0.04500812292098999, -0.07092142850160599, -0.028196372091770172, 0.1349099576473236, -0.025935359299182892, -0.39110857248306274, -0.14394666254520416, 0.041009947657585144, -0.12267963588237762, 0.08427262306213379, 0.10165385901927948, -0.46276652812957764, 0.09287896007299423, -0.2698926627635956, 0.10796269029378891, -0.30626049637794495, -0.28774183988571167, 0.293712317943573, -0.5787976384162903, -0.302734375, 0.27731209993362427, 0.0761464536190033, -0.1747937947511673, -0.44159454107284546, -0.0911058858036995, -0.10222437977790833, -0.29549360275268555, -0.3739977180957794, 0.08126169443130493, 0.25217536091804504, -0.3914755880832672, 0.31389254331588745, -0.2583540380001068, -0.0910448506474495, -0.2865503430366516, -0.6029033660888672, -0.035376809537410736, -0.36729443073272705, 0.13018593192100525, -0.021030500531196594, -0.03765644133090973, 0.18901805579662323, 0.06967570632696152, 0.08341008424758911, 0.12774650752544403, -0.17762017250061035, -0.0701809898018837, 0.06262435764074326, -0.23527055978775024, -0.22671476006507874, -0.39635878801345825, -0.26632359623908997, 0.023264124989509583, -0.09714916348457336, 0.01845802366733551, -0.07479672133922577, -0.25241029262542725, -0.30738213658332825, 0.0471220426261425, -0.24381369352340698, -0.04582908749580383, -0.12582862377166748, 0.07815171778202057, 0.15191952884197235, 0.15291322767734528, -0.27656206488609314, 0.08695623278617859, 0.023625023663043976, 0.19311033189296722, -0.10127508640289307, -0.4148791432380676, 0.4246085286140442, -0.022717123851180077, 0.41936734318733215, -0.12151968479156494, -0.20130755007266998, 0.4556480050086975, 0.29917168617248535, 0.02019949071109295, -0.2214750349521637, -0.06910102069377899, 0.13422076404094696, 0.11004127562046051, 0.19274677336215973, -0.35942336916923523, 0.2671033442020416, -0.20635217428207397, 0.596294641494751, 0.30688560009002686, 0.38872483372688293, 0.23219817876815796, 0.20876489579677582, 0.20671920478343964, -0.16016682982444763, 0.10081552714109421, 0.3125142455101013, 0.04137720167636871, -0.1070522665977478, 0.29937708377838135, -0.043664075434207916, -0.45200008153915405, 0.16577407717704773, 0.03667699173092842, -0.2125348448753357, -0.12179777026176453, 0.3304602801799774, -0.46155762672424316, 0.09225323796272278, 0.02838306501507759, -0.04237918555736542, -0.08022361993789673, 0.019106216728687286, -0.3780822455883026, 0.14648708701133728, 0.4205085039138794, 0.14584188163280487, -0.3123852014541626, -0.3688105046749115, -0.3079690933227539, 0.2044488489627838, 0.10900118201971054, 0.0013909507542848587, -0.14364126324653625, -0.12293635308742523, 0.031091272830963135, 0.2570793926715851, -0.05899009108543396, -0.2825150489807129, -0.40084534883499146, 0.3269069194793701, -0.2071634978055954, 0.0806453749537468, -0.29185232520103455, -0.42080217599868774, 0.1803921014070511, 0.4823038578033447, 0.09443967789411545, -0.34826159477233887, -0.14872461557388306, -0.1370561420917511, 0.4558585584163666, -0.06794445216655731, 0.32733023166656494, -0.08598015457391739, -0.33323660492897034, -0.3970704972743988, -0.024598658084869385, 0.24296815693378448, -0.0002660355530679226, -0.24275614321231842, -0.14205577969551086, 0.1570841521024704, -0.0930686891078949, 0.002130068838596344, -0.016973361372947693, 0.192221999168396, -0.20356735587120056, -0.009218830615282059, -0.37494659423828125, -0.03116721659898758, 0.04350089654326439, 0.18341274559497833, -0.08307923376560211, -0.28294074535369873, 0.2957158088684082, -0.6159276366233826, 0.5342955589294434, 0.11078166961669922, 0.04867522418498993, 0.27441149950027466, 0.07737278938293457, 0.022840019315481186, -0.11520148068666458, -0.23209431767463684, 0.2836027145385742, 0.23502597212791443, -0.3691919147968292, -0.2645052671432495, -0.27078133821487427, -0.5056391358375549, -0.04744357243180275, 0.3980128765106201, -0.05017860233783722, -0.23902703821659088, 0.1985228806734085, -0.12409425526857376, 1.0393133163452148, 0.14790934324264526, 0.008361756801605225, -0.2017037570476532, -0.05868053808808327, -0.060031142085790634, -0.0015494748950004578, 0.06849557161331177, -0.08620945364236832, 0.004268272779881954, -0.024452896788716316, 0.031339701265096664, 0.18627002835273743, 0.012417979538440704, -0.16228671371936798, 0.2612380385398865, -0.03997206315398216, 0.3028910160064697, 0.2169824093580246, -0.019060097634792328, 0.36922186613082886, 0.17461395263671875, -0.1222621351480484, 0.1038036197423935, 0.0621381439268589, 0.16936095058918, -0.0881875604391098, -0.2811139225959778, -0.27085307240486145, -0.19250991940498352, -0.7406718134880066, 0.025801192969083786, -0.013087684288620949, 0.25296008586883545, -0.05912022665143013, -0.4014781713485718, 0.32525572180747986, 0.5531045198440552, 0.5242069959640503, 0.39062264561653137, -0.17326515913009644, 0.22236253321170807, 0.11253955960273743, 0.24618536233901978, 0.21296660602092743, 0.015856068581342697, -0.2229594588279724, -0.3417658507823944, -0.39577263593673706, 0.005836158990859985, -0.14998896420001984, -0.11596009135246277, -0.6014730930328369, 0.08603663742542267, -0.2174931913614273, 0.21246066689491272, 0.15853258967399597, 0.35260096192359924, 0.009823113679885864, -0.2854945659637451, 0.09781268239021301, 0.41383159160614014, 0.016101468354463577, 0.06777670234441757, -0.12873221933841705, -0.24489474296569824, -0.3810710906982422, -0.2521584630012512, 0.36138916015625, 0.25942495465278625, 0.43635323643684387, 0.21808497607707977, -0.14987713098526, -0.24993261694908142, 0.04442281275987625, 0.3223898410797119, -0.5586377382278442, 0.08011484146118164, -0.3135620653629303, -0.04904940724372864, -0.1881343126296997, 0.08924639970064163, 0.001890387386083603, -0.2152915596961975, -0.2554842233657837, -0.198234423995018, 0.09308858960866928, 0.2567363679409027, 0.03983515873551369, -0.17829914391040802, -0.2274249792098999, 0.0061450619250535965, -0.11858535557985306, 0.09080736339092255, -0.24269291758537292, 0.028001978993415833, -0.3842604160308838, 0.2561984658241272, 0.002747785300016403, -0.03447304666042328, 0.2038590908050537, -0.06466595828533173, 0.057129815220832825, -0.2572520971298218, 0.21874761581420898, -0.15246498584747314, 0.030405521392822266, 0.10184457898139954, -0.19700968265533447, 0.23993746936321259, 0.007296848110854626, 0.1459703892469406, 0.1601872742176056, -0.058146797120571136, 0.03129333630204201, -0.19303575158119202, 0.1958322674036026, 0.34682750701904297, 0.07919709384441376, -0.02976888418197632, 0.062117189168930054, -0.025917228311300278, -0.09871506690979004, 0.43228113651275635, 0.2377275973558426, 0.11506327241659164, 0.6449827551841736, -0.05057011544704437, -0.19139549136161804, -0.05944424122571945, -0.15832771360874176, 0.44707632064819336, 0.18075862526893616, 0.016466651111841202, 0.3607349395751953, 0.15316826105117798, 0.05617080628871918, 0.0956239178776741, -0.15049578249454498, 0.20553377270698547, 0.0735015720129013, 0.11890114843845367, -0.340974360704422, -0.1252337545156479, 0.4064803719520569, -0.15504325926303864, -0.09247106313705444, 0.1800495684146881, -0.041154902428388596, 0.3272901773452759, 0.522861659526825, -0.07336658984422684, 0.2977837324142456, -0.027764830738306046, 0.40210676193237305, -0.08952441811561584, 0.1416119784116745, 0.2569718062877655, -0.33430585265159607, 0.10752958059310913, -0.2852579355239868, 0.14347437024116516, -0.3398045599460602, 0.15266110002994537, -0.012973543256521225, 0.01695091277360916, 0.31105130910873413, -0.13392876088619232, -0.04006266966462135, 0.06058909744024277, 0.021019205451011658, 0.07605025172233582, 0.0564178042113781, -0.07590997964143753, 0.2201659083366394, -0.04043355584144592, -0.13441312313079834, 0.1160685271024704, -0.1802154779434204, 0.10450096428394318, -0.11750485748052597, 0.01598430424928665, -0.24156107008457184, -0.10102207958698273, -0.0544586144387722, 0.35053765773773193, -0.10934290289878845, 0.2154398411512375, -0.14642854034900665, -0.3764215111732483, 0.49135226011276245, -0.2585466802120209, -0.07637379318475723, 0.020645279437303543, 0.4554756283760071, 0.4513874650001526, -0.1376294642686844, 0.04102974385023117, 0.18597187101840973, 0.08612659573554993, 0.006530718877911568, 0.0645340085029602, -0.030203931033611298, 0.08465103805065155, -0.12204690277576447, -0.0750621035695076, 0.34073179960250854, 0.22282962501049042, 0.4450766146183014, -0.06522868573665619, 0.048392683267593384, 0.062383756041526794, 0.20907673239707947, 0.061707284301519394, -0.287544310092926, -0.07806636393070221, 0.627332329750061, -0.16622988879680634, 0.027121372520923615, -0.45864054560661316, 0.014030322432518005, -0.3225859999656677, 0.19007305800914764, 0.18520310521125793, 0.29799604415893555, -0.11874708533287048, -0.05034279078245163, 0.0333125963807106, 0.017049666494131088, 0.27210041880607605, 0.3407093584537506, 0.0392131581902504, -0.25268983840942383, -0.24742865562438965, -0.1971769779920578, 0.02860967069864273, -0.10250017046928406, 0.15533244609832764, -0.002454346977174282, 0.20899897813796997, 0.6616396903991699, -0.003580242395401001, 0.5100170969963074, 0.006416563410311937, -0.06153818964958191, 0.02725745178759098, -0.2660564184188843, -0.02355712279677391, 0.11937780678272247, 0.1867152601480484, -0.06113249808549881, 0.08090198785066605, 0.5073037147521973, 0.1644834727048874, -0.04605041816830635, -0.2058572769165039, -0.0022498778998851776, 0.2370656132698059, -0.41121912002563477, -0.11814957857131958, 0.33140215277671814, 0.09635672718286514, -0.27569785714149475, -0.31462952494621277, 0.024207893759012222, -0.3084230422973633, -0.10397443920373917, 0.3302183747291565, -0.1968332976102829, 0.18624067306518555, -0.3115707039833069, -0.14481936395168304, -0.20386098325252533, 0.31849896907806396, 0.03908658027648926, 0.10090711712837219, -0.3834967613220215, -0.1472577005624771, 0.1266675591468811, -0.1976228505373001, 0.05864468589425087, 0.09805633127689362, -0.04760044068098068, 0.014468846842646599, -0.20533913373947144, 0.09496676176786423, 0.09114452451467514, -0.12784822285175323, -0.2762783467769623, -0.3463122248649597, 0.006322883069515228, 0.4667695164680481, 0.2479970008134842, -0.3784622848033905, 0.008264675736427307, 0.34563568234443665, 0.20463308691978455, -0.056569866836071014, 0.5100768208503723, 0.23718658089637756, 0.11769254505634308, 0.06300769746303558, 0.050537995994091034, 0.18419981002807617, 0.105925053358078, 0.16003091633319855, -0.09548190981149673 ]
https://github.com/huggingface/datasets/issues/3937
Missing languages in lvwerra/github-code dataset
Can confirm that the two languages are indeed missing from the dataset. Here are the file counts per language: ```Python {'Assembly': 82847, 'Batchfile': 236755, 'C': 14127969, 'C#': 6793439, 'C++': 7368473, 'CMake': 175076, 'CSS': 1733625, 'Dockerfile': 331966, 'FORTRAN': 141963, 'GO': 2259363, 'Haskell': 340521, 'HTML': 11165464, 'Java': 19515696, 'JavaScript': 11829024, 'Julia': 58177, 'Lua': 576279, 'Makefile': 679338, 'Markdown': 8454049, 'PHP': 11181930, 'Perl': 497490, 'PowerShell': 136827, 'Python': 7203553, 'Ruby': 4479767, 'Rust': 321765, 'SQL': 655657, 'Scala': 0, 'Shell': 1382786, 'TypeScript': 0, 'TeX': 250764, 'Visual Basic': 155371} ```
Hi, I'm working with the github-code dataset. First of all, thank you for creating this amazing dataset! I've noticed that two languages are missing from the dataset: TypeScript and Scala. Looks like they're also omitted from the query you used to get the original code. Are there any plans to add them in the future? Thanks!
82
Missing languages in lvwerra/github-code dataset Hi, I'm working with the github-code dataset. First of all, thank you for creating this amazing dataset! I've noticed that two languages are missing from the dataset: TypeScript and Scala. Looks like they're also omitted from the query you used to get the original code. Are there any plans to add them in the future? Thanks! Can confirm that the two languages are indeed missing from the dataset. Here are the file counts per language: ```Python {'Assembly': 82847, 'Batchfile': 236755, 'C': 14127969, 'C#': 6793439, 'C++': 7368473, 'CMake': 175076, 'CSS': 1733625, 'Dockerfile': 331966, 'FORTRAN': 141963, 'GO': 2259363, 'Haskell': 340521, 'HTML': 11165464, 'Java': 19515696, 'JavaScript': 11829024, 'Julia': 58177, 'Lua': 576279, 'Makefile': 679338, 'Markdown': 8454049, 'PHP': 11181930, 'Perl': 497490, 'PowerShell': 136827, 'Python': 7203553, 'Ruby': 4479767, 'Rust': 321765, 'SQL': 655657, 'Scala': 0, 'Shell': 1382786, 'TypeScript': 0, 'TeX': 250764, 'Visual Basic': 155371} ```
[ -0.025679614394903183, 0.19238924980163574, -0.27297845482826233, 0.0706946849822998, 0.2020147442817688, 0.0939294621348381, 0.16081146895885468, 0.4261840879917145, 0.16122005879878998, 0.01640966534614563, 0.029924066737294197, 0.15671661496162415, -0.1640651524066925, 0.18716339766979218, 0.3560536801815033, 0.01128193736076355, 0.17203447222709656, -0.03638112545013428, -0.14423547685146332, -0.36239713430404663, 0.042869143187999725, 0.48930278420448303, -0.04485516995191574, -0.2011830359697342, -0.020117584615945816, 0.20238599181175232, 0.05016320198774338, 0.14956584572792053, -0.18767660856246948, -0.327783465385437, 0.2157067209482193, 0.021230529993772507, 0.19919688999652863, 0.21189677715301514, -0.00011492698104120791, -0.08778128027915955, 0.08635410666465759, -0.2238592505455017, -0.023206405341625214, -0.13822601735591888, -0.17042756080627441, -0.3886408805847168, -0.18969890475273132, -0.07291876524686813, -0.07651077955961227, 0.20065949857234955, 0.018585916608572006, -0.8684791326522827, 0.16755038499832153, 0.3963252902030945, 0.16558431088924408, -0.10499675571918488, 0.09501948952674866, -0.04733893647789955, 0.6005458235740662, 0.24466274678707123, -0.11109460890293121, 0.0045622363686561584, 0.6433556079864502, -0.054537177085876465, 0.10175953805446625, 0.3778309226036072, 0.23077893257141113, -0.42386820912361145, -0.3097911477088928, 0.24372023344039917, -0.1349988877773285, -0.4171084761619568, 0.15950429439544678, 0.20917350053787231, 0.5050122141838074, -0.34560829401016235, -0.31711575388908386, -0.14886802434921265, -0.07199328392744064, -0.1449182778596878, -0.013686731457710266, 0.21474456787109375, 0.17871257662773132, 0.3075534403324127, -0.2559266686439514, -0.3309676945209503, -0.18335086107254028, 0.09507456421852112, 0.3122915029525757, 0.24483080208301544, 0.1176176592707634, 0.031905077397823334, -0.36354950070381165, 0.16872642934322357, -0.26041218638420105, -0.2298237383365631, 0.18107512593269348, 0.3094376027584076, -0.033233050256967545, -0.11147396266460419, 0.389437735080719, -0.08679395169019699, 0.17579573392868042, 0.12506359815597534, -0.08985768258571625, 0.036678943783044815, -0.24587805569171906, -0.08891909569501877, 0.005250995978713036, 0.16625383496284485, 0.24261757731437683, 0.18286143243312836, 0.3056696057319641, -0.21732138097286224, 0.1982504278421402, 0.041154440492391586, -0.19463734328746796, -0.05288056656718254, -0.1924162060022354, 0.28904348611831665, 0.09395156800746918, -0.1790701448917389, 0.02153555490076542, 0.2261703610420227, -0.2377767562866211, -0.4298744201660156, -0.18048794567584991, -0.025548212230205536, 0.0555436834692955, 0.19523808360099792, -0.12719033658504486, 0.40235263109207153, -0.23233012855052948, -0.51693195104599, -0.11513998359441757, 0.09752964973449707, -0.17403413355350494, -0.22450481355190277, 0.23399151861667633, 0.04745206981897354, 0.2792045474052429, 0.17657098174095154, 0.08304581046104431, 0.10219980776309967, 0.047658853232860565, -0.15074807405471802, -0.06966335326433182, 0.02982339635491371, -0.02904437482357025, 0.1349361091852188, 0.2338401973247528, -0.6994520425796509, -0.1566346287727356, 0.3318854868412018, -0.026033438742160797, 0.05200149491429329, -0.27038830518722534, 0.16291211545467377, -0.33284080028533936, -0.24333208799362183, -0.31357625126838684, 0.369437575340271, 0.07464049756526947, -0.024840334430336952, 0.03666101396083832, -0.37301188707351685, 0.35281065106391907, -0.14587189257144928, 0.311385840177536, 0.29403674602508545, -0.5485299229621887, -0.09953193366527557, -0.08098279684782028, -0.15371474623680115, 0.304337739944458, 0.24709829688072205, -0.19080998003482819, 0.41381528973579407, -0.1726740598678589, 0.3982340097427368, 0.6215548515319824, -0.25112786889076233, 0.07291471213102341, 0.0038430094718933105, 0.28127169609069824, 0.018806664273142815, -0.12512412667274475, -0.025328297168016434, 0.4686035215854645, -0.02949291467666626, -0.12226688861846924, 0.12916353344917297, -0.20783431828022003, -0.19831325113773346, -0.3049210011959076, -0.05495406687259674, 0.44003409147262573, 0.29107946157455444, 0.49135860800743103, -0.21547499299049377, 0.4613809287548065, -0.32648125290870667, 0.38611701130867004, -0.1471494734287262, 0.19627083837985992, 0.3553467392921448, 0.3257569670677185, 0.2856222987174988, 0.07355275005102158, -0.26163285970687866, -0.20052435994148254, 0.19212806224822998, 0.024081561714410782, 0.08896937221288681, 0.08175377547740936, 0.15803344547748566, -0.07044520974159241, -0.06474354863166809, -0.1479937583208084, -0.18407732248306274, 0.05803985893726349, 0.1112368106842041, -0.27584004402160645, 0.2813238203525543, -0.1926245093345642, -0.301366925239563, 0.020285392180085182, -0.058716677129268646, -0.33979544043540955, 0.25255250930786133, -0.12648934125900269, -0.22549760341644287, 0.028132662177085876, 0.27141904830932617, -0.03459600359201431, -0.1238945946097374, 0.0004114983603358269, -0.1363062858581543, 0.4618397355079651, -0.14853046834468842, 0.8477863669395447, 0.3481527268886566, 0.21421074867248535, -0.34387093782424927, 0.2147151678800583, 0.15160450339317322, 0.1434130072593689, 0.049810394644737244, -0.02226303517818451, 0.3566559851169586, 0.06044730544090271, -0.03898847848176956, 0.07076433300971985, 0.02058168314397335, 0.4183605909347534, 0.084983229637146, -0.25008177757263184, -0.10124341398477554, 0.48321881890296936, 0.158494234085083, 0.11891607940196991, 0.006275642663240433, -0.31072762608528137, 0.19578367471694946, 0.7553418278694153, -0.26095420122146606, 0.03817186504602432, 0.0694722831249237, -0.01088203489780426, -0.08754207193851471, -0.07166801393032074, -0.02052733302116394, 0.1116083562374115, 0.26289597153663635, -0.003321003168821335, -0.3195088803768158, 0.0447811596095562, -0.24861811101436615, 0.03603620082139969, -0.0551719069480896, 0.0059099579229950905, 0.00460105761885643, 0.1698198914527893, 0.007816212251782417, -0.30270034074783325, -0.17550325393676758, -0.026513181626796722, -0.10362157970666885, 0.06040399149060249, 0.043718621134757996, -0.42802056670188904, 0.20083513855934143, -0.27006998658180237, 0.011656195856630802, -0.33434224128723145, -0.269816130399704, 0.21131153404712677, -0.6460707187652588, -0.3205452561378479, 0.29559993743896484, -0.020122617483139038, -0.11810313165187836, -0.4078664183616638, -0.04546254873275757, -0.012884311378002167, -0.32614865899086, -0.3053865432739258, 0.11869834363460541, 0.1231827437877655, -0.41791194677352905, 0.25284305214881897, -0.29784703254699707, -0.051990486681461334, -0.26620280742645264, -0.561852753162384, -0.017668738961219788, -0.3140754699707031, 0.12104125320911407, -0.057067304849624634, -0.05792008340358734, 0.22679726779460907, -0.0060051074251532555, 0.11747771501541138, 0.10879762470722198, -0.15011151134967804, -0.100529246032238, 0.03604260832071304, -0.22332371771335602, -0.1995154172182083, -0.381091445684433, -0.32010433077812195, 0.005955241620540619, -0.05865537375211716, 0.14066019654273987, -0.027405209839344025, -0.20679405331611633, -0.22889363765716553, 0.06224888190627098, -0.30895912647247314, -0.004711402580142021, -0.004524819552898407, 0.03392227366566658, 0.160125732421875, 0.07324837148189545, -0.2625446319580078, 0.14966684579849243, 0.04909942299127579, 0.08931251615285873, -0.043859902769327164, -0.38097476959228516, 0.46873441338539124, -0.1299927830696106, 0.49263036251068115, -0.17725297808647156, -0.049305349588394165, 0.3978646397590637, 0.3220382630825043, -0.026726841926574707, -0.2125960886478424, -0.123216912150383, 0.11982094496488571, 0.12309655547142029, 0.16056615114212036, -0.3566538989543915, 0.24340865015983582, -0.14203907549381256, 0.6082155108451843, 0.24521932005882263, 0.37709492444992065, 0.23056291043758392, 0.19845382869243622, 0.2721203863620758, -0.1513032615184784, 0.057843759655952454, 0.3715667426586151, 0.07462450861930847, -0.03444964066147804, 0.24699930846691132, 0.02385794371366501, -0.362042099237442, 0.14272262156009674, 0.05937795713543892, -0.22897869348526, -0.1073904037475586, 0.42089274525642395, -0.3031471371650696, 0.16735970973968506, 0.007267184555530548, -0.0987863689661026, -0.18586888909339905, -0.10300334542989731, -0.3614768385887146, 0.1702362596988678, 0.40310904383659363, 0.20360898971557617, -0.38543668389320374, -0.3592767119407654, -0.28880593180656433, 0.19826608896255493, 0.1265789270401001, -0.0854104608297348, -0.14707249402999878, -0.19721591472625732, -0.04945586621761322, 0.2963685691356659, -0.08755655586719513, -0.18062028288841248, -0.30738210678100586, 0.31597456336021423, -0.1877233386039734, 0.046536728739738464, -0.3310796618461609, -0.49510928988456726, 0.13973189890384674, 0.4764525592327118, 0.17559954524040222, -0.2528931200504303, -0.22975976765155792, -0.1026548445224762, 0.47599610686302185, -0.08844339102506638, 0.29879865050315857, -0.06674838066101074, -0.22622138261795044, -0.3390539288520813, -0.09953530877828598, 0.2543744444847107, 0.054967913776636124, -0.2586366534233093, -0.10770656168460846, 0.126511812210083, -0.12107346206903458, -0.04412709176540375, 0.003524264320731163, 0.20646941661834717, -0.1079624593257904, -0.04380454123020172, -0.34536680579185486, -0.00944499671459198, -0.028313560411334038, 0.18523924052715302, -0.1265488713979721, -0.2544983923435211, 0.2681289613246918, -0.6170742511749268, 0.4954449534416199, 0.06365076452493668, 0.05006546527147293, 0.17306292057037354, 0.07187645137310028, 0.08338160812854767, -0.17664070427417755, -0.190659299492836, 0.3187924921512604, 0.19095930457115173, -0.34320324659347534, -0.35660964250564575, -0.19426971673965454, -0.5235334634780884, -0.1331656128168106, 0.2471478283405304, -0.010436765849590302, -0.2628048360347748, 0.2058810144662857, -0.12154211848974228, 0.934286892414093, 0.18391016125679016, 0.11190970242023468, -0.1230422630906105, -0.010901696979999542, 0.05676214396953583, -0.06748820096254349, 0.0371650755405426, -0.018628783524036407, 0.034744031727313995, -0.018513910472393036, 0.016845282167196274, 0.1721278429031372, 0.04408399760723114, -0.09172778576612473, 0.27315783500671387, 0.004950091242790222, 0.259662002325058, 0.07441877573728561, -0.023557422682642937, 0.3927775025367737, 0.11204230785369873, -0.16210396587848663, 0.14547596871852875, 0.05466422811150551, 0.17577937245368958, -0.09153608977794647, -0.2224576622247696, -0.292726993560791, -0.16763617098331451, -0.795190155506134, 0.02360614761710167, 0.0721609964966774, 0.29904061555862427, -0.10800161957740784, -0.4125494360923767, 0.32099056243896484, 0.6349419951438904, 0.5020198822021484, 0.38942915201187134, -0.10948051512241364, 0.21544387936592102, -0.04548627883195877, 0.274331271648407, 0.30321913957595825, 0.03823595121502876, -0.1583200991153717, -0.3511745035648346, -0.43247559666633606, 0.0767769142985344, -0.16583429276943207, -0.09455616772174835, -0.4888189435005188, 0.07561466842889786, -0.18219633400440216, 0.09632781147956848, 0.15529854595661163, 0.3204020857810974, 0.08026908338069916, -0.2532544434070587, 0.12986676394939423, 0.41505420207977295, 0.135868638753891, 0.1469516158103943, -0.09373420476913452, -0.33575713634490967, -0.3397155702114105, -0.23395982384681702, 0.3216918110847473, 0.23542872071266174, 0.4608860909938812, 0.25055381655693054, -0.19294707477092743, -0.2592308819293976, 0.18829911947250366, 0.32783353328704834, -0.5327315926551819, 0.031878843903541565, -0.2385769486427307, 0.0005563795566558838, -0.2152596116065979, 0.08463642746210098, 0.10922883450984955, -0.2613215744495392, -0.18243110179901123, -0.2667313814163208, 0.14139889180660248, 0.2751086950302124, 0.039475634694099426, -0.2799631357192993, -0.2697276473045349, -0.011650163680315018, -0.013592321425676346, -0.01897714100778103, -0.28815045952796936, 0.03306148573756218, -0.3972577452659607, 0.26137858629226685, 0.055765654891729355, -0.013012014329433441, 0.1857759952545166, -0.13065005838871002, 0.0671020969748497, -0.4076143503189087, 0.1415034979581833, -0.19030985236167908, -0.05623922124505043, 0.07909044623374939, -0.2013395130634308, 0.21965767443180084, 0.02382766455411911, 0.10174578428268433, 0.19551338255405426, -0.09199358522891998, -0.0028403587639331818, -0.16208462417125702, 0.21184922754764557, 0.48648345470428467, -0.07874795794487, 0.06038414314389229, 0.1481330692768097, 0.018176725134253502, -0.15173113346099854, 0.42681652307510376, 0.1966482251882553, 0.15827710926532745, 0.6204153895378113, -0.026130657643079758, -0.1489611268043518, -0.05768074840307236, -0.22581957280635834, 0.4929642975330353, 0.16494722664356232, -0.01002577692270279, 0.3974589407444, 0.2649003863334656, 0.13935184478759766, 0.05849091336131096, -0.1677057445049286, 0.2427300661802292, 0.09205629676580429, 0.18196454644203186, -0.34104204177856445, -0.18962106108665466, 0.39915958046913147, -0.06897812336683273, -0.0335443876683712, 0.16554772853851318, -0.05788993090391159, 0.2671602964401245, 0.4870591163635254, -0.011926480568945408, 0.3394782543182373, -0.07702644169330597, 0.3884607255458832, -0.009810920804738998, 0.1319471299648285, 0.28641369938850403, -0.31360864639282227, 0.10295619070529938, -0.17900851368904114, 0.2248428612947464, -0.2954586148262024, 0.07369255274534225, 0.022260695695877075, -0.04366898164153099, 0.26514652371406555, -0.19953562319278717, -0.03649033233523369, 0.08140484243631363, -0.030134975910186768, 0.030189506709575653, 0.0901140496134758, 0.015585362911224365, 0.177952840924263, -0.007499444764107466, -0.16142772138118744, 0.03382274508476257, -0.10573206096887589, 0.09731890261173248, -0.12061481922864914, -0.0601181760430336, -0.2721722722053528, -0.050874315202236176, -0.21415749192237854, 0.3229532837867737, -0.08734001219272614, 0.21449774503707886, -0.16159285604953766, -0.3430802822113037, 0.3952774107456207, -0.2436930537223816, -0.09864770621061325, -0.018509838730096817, 0.3514019846916199, 0.43349677324295044, -0.11453275382518768, -0.017576050013303757, 0.2871607542037964, 0.12941697239875793, -0.004351403564214706, 0.05196689814329147, 0.011804318055510521, 0.041541825979948044, -0.1291162520647049, -0.14766882359981537, 0.3081432580947876, 0.3051758408546448, 0.3706652522087097, -0.0782778263092041, 0.1308947056531906, -0.009547271765768528, 0.2984255850315094, -0.007851850241422653, -0.3038436472415924, -0.02616400271654129, 0.4173746407032013, -0.11798679828643799, -0.029572218656539917, -0.4269636273384094, 0.03921094909310341, -0.3561628758907318, 0.15293976664543152, 0.1751413196325302, 0.3330801725387573, -0.042190127074718475, -0.07125634700059891, 0.04678437113761902, 0.05220891535282135, 0.277098685503006, 0.2881578505039215, 0.04498976469039917, -0.2620600759983063, -0.2448168694972992, -0.18899376690387726, -0.11844038218259811, -0.14268425107002258, 0.08882488310337067, -0.048546768724918365, 0.22623871266841888, 0.5656470656394958, 0.11212366819381714, 0.5434878468513489, 0.009104195982217789, -0.12413091957569122, -0.04168195277452469, -0.34052523970603943, 0.0301440991461277, 0.27532339096069336, 0.24144336581230164, -0.11532706767320633, 0.10180502384901047, 0.5232326984405518, 0.05450126901268959, 0.011680111289024353, -0.22186952829360962, 0.020617716014385223, 0.21008437871932983, -0.5251827239990234, 0.030277244746685028, 0.3162849247455597, 0.09891881793737411, -0.34222695231437683, -0.31579044461250305, -0.05499258264899254, -0.361084908246994, -0.017472989857196808, 0.26860588788986206, -0.24479684233665466, 0.27418267726898193, -0.3248908519744873, -0.14493709802627563, -0.09849520772695541, 0.2544889748096466, 0.014897976070642471, 0.11423873156309128, -0.34241366386413574, -0.16301897168159485, 0.23209241032600403, -0.17329199612140656, 0.04655245691537857, 0.05199889838695526, -0.07088898122310638, -0.018803469836711884, -0.19106024503707886, 0.06101109832525253, 0.049081042408943176, -0.05358368903398514, -0.3189559876918793, -0.4071875214576721, -0.029445990920066833, 0.45146796107292175, 0.27298271656036377, -0.381119042634964, 0.06072128564119339, 0.32067298889160156, 0.2390633523464203, -0.11124499142169952, 0.42021918296813965, 0.16736958920955658, 0.033133190125226974, 0.07957382500171661, 0.10924365371465683, 0.08775873482227325, -0.054711535573005676, 0.020239021629095078, -0.13194862008094788 ]
https://github.com/huggingface/datasets/issues/3937
Missing languages in lvwerra/github-code dataset
@Eytan-S check out v1.1 of the `github-code` dataset where issue should be fixed: | | Language |File Count| Size (GB)| |---:|:-------------|---------:|-------:| | 0 | Java | 19548190 | 107.7 | | 1 | C | 14143113 | 183.83 | | 2 | JavaScript | 11839883 | 87.82 | | 3 | HTML | 11178557 | 118.12 | | 4 | PHP | 11177610 | 61.41 | | 5 | Markdown | 8464626 | 23.09 | | 6 | C++ | 7380520 | 87.73 | | 7 | Python | 7226626 | 52.03 | | 8 | C# | 6811652 | 36.83 | | 9 | Ruby | 4473331 | 10.95 | | 10 | GO | 2265436 | 19.28 | | 11 | TypeScript | 1940406 | 24.59 | | 12 | CSS | 1734406 | 22.67 | | 13 | Shell | 1385648 | 3.01 | | 14 | Scala | 835755 | 3.87 | | 15 | Makefile | 679430 | 2.92 | | 16 | SQL | 656671 | 5.67 | | 17 | Lua | 578554 | 2.81 | | 18 | Perl | 497949 | 4.7 | | 19 | Dockerfile | 366505 | 0.71 | | 20 | Haskell | 340623 | 1.85 | | 21 | Rust | 322431 | 2.68 | | 22 | TeX | 251015 | 2.15 | | 23 | Batchfile | 236945 | 0.7 | | 24 | CMake | 175282 | 0.54 | | 25 | Visual Basic | 155652 | 1.91 | | 26 | FORTRAN | 142038 | 1.62 | | 27 | PowerShell | 136846 | 0.69 | | 28 | Assembly | 82905 | 0.78 | | 29 | Julia | 58317 | 0.29 |
Hi, I'm working with the github-code dataset. First of all, thank you for creating this amazing dataset! I've noticed that two languages are missing from the dataset: TypeScript and Scala. Looks like they're also omitted from the query you used to get the original code. Are there any plans to add them in the future? Thanks!
292
Missing languages in lvwerra/github-code dataset Hi, I'm working with the github-code dataset. First of all, thank you for creating this amazing dataset! I've noticed that two languages are missing from the dataset: TypeScript and Scala. Looks like they're also omitted from the query you used to get the original code. Are there any plans to add them in the future? Thanks! @Eytan-S check out v1.1 of the `github-code` dataset where issue should be fixed: | | Language |File Count| Size (GB)| |---:|:-------------|---------:|-------:| | 0 | Java | 19548190 | 107.7 | | 1 | C | 14143113 | 183.83 | | 2 | JavaScript | 11839883 | 87.82 | | 3 | HTML | 11178557 | 118.12 | | 4 | PHP | 11177610 | 61.41 | | 5 | Markdown | 8464626 | 23.09 | | 6 | C++ | 7380520 | 87.73 | | 7 | Python | 7226626 | 52.03 | | 8 | C# | 6811652 | 36.83 | | 9 | Ruby | 4473331 | 10.95 | | 10 | GO | 2265436 | 19.28 | | 11 | TypeScript | 1940406 | 24.59 | | 12 | CSS | 1734406 | 22.67 | | 13 | Shell | 1385648 | 3.01 | | 14 | Scala | 835755 | 3.87 | | 15 | Makefile | 679430 | 2.92 | | 16 | SQL | 656671 | 5.67 | | 17 | Lua | 578554 | 2.81 | | 18 | Perl | 497949 | 4.7 | | 19 | Dockerfile | 366505 | 0.71 | | 20 | Haskell | 340623 | 1.85 | | 21 | Rust | 322431 | 2.68 | | 22 | TeX | 251015 | 2.15 | | 23 | Batchfile | 236945 | 0.7 | | 24 | CMake | 175282 | 0.54 | | 25 | Visual Basic | 155652 | 1.91 | | 26 | FORTRAN | 142038 | 1.62 | | 27 | PowerShell | 136846 | 0.69 | | 28 | Assembly | 82905 | 0.78 | | 29 | Julia | 58317 | 0.29 |
[ -0.1165027767419815, 0.17573139071464539, -0.2867789566516876, 0.044658251106739044, 0.23426881432533264, 0.06973320990800858, 0.21076853573322296, 0.48765984177589417, 0.09907743334770203, -0.03029206395149231, 0.010414352640509605, 0.13508346676826477, -0.10653747618198395, 0.2204892933368683, 0.34610721468925476, 0.025111885741353035, 0.13992461562156677, -0.08777379989624023, -0.14956016838550568, -0.3193645477294922, -0.008418828248977661, 0.47242775559425354, -0.04873069375753403, -0.23977772891521454, -0.04071683809161186, 0.19732177257537842, 0.022621987387537956, 0.09997475147247314, -0.1959889829158783, -0.3407723605632782, 0.2284444123506546, 0.0911732092499733, 0.19403894245624542, 0.13973912596702576, -0.00011454798368504271, -0.06935890763998032, 0.12964342534542084, -0.2191796600818634, -0.006958690006285906, -0.09306690096855164, -0.19355827569961548, -0.40407583117485046, -0.22334380447864532, -0.07776135951280594, -0.09089218080043793, 0.2074505239725113, 0.054557252675294876, -0.853604793548584, 0.13768857717514038, 0.4116024672985077, 0.17154891788959503, -0.09390954673290253, 0.1063069999217987, -0.046019844710826874, 0.6560297012329102, 0.19299980998039246, -0.14944078028202057, 0.1279999017715454, 0.7118922472000122, -0.07874517887830734, 0.018286466598510742, 0.3406772315502167, 0.2465631663799286, -0.4278446137905121, -0.28676095604896545, 0.1836579591035843, 0.004468828439712524, -0.35829874873161316, 0.2361508011817932, 0.17070694267749786, 0.4931999146938324, -0.35727906227111816, -0.34582576155662537, -0.14508718252182007, -0.05350925400853157, -0.20407550036907196, 0.02501114457845688, 0.18352150917053223, 0.21187032759189606, 0.31894272565841675, -0.33603528141975403, -0.35852909088134766, -0.1601267158985138, 0.11926446855068207, 0.3567977845668793, 0.19397950172424316, 0.11704877763986588, 0.027788586914539337, -0.36901339888572693, 0.12190143764019012, -0.23568902909755707, -0.23598971962928772, 0.0907813161611557, 0.2736189663410187, -0.09127157926559448, -0.11804921925067902, 0.3698878288269043, -0.036425597965717316, 0.17093610763549805, 0.2265787273645401, -0.08315278589725494, 0.09225989878177643, -0.234983891248703, -0.07010891288518906, -0.07568883895874023, 0.20854341983795166, 0.2819488048553467, 0.1499198079109192, 0.2922832667827606, -0.18370233476161957, 0.15515044331550598, 0.09983930736780167, -0.208014115691185, -0.07051753252744675, -0.2117113471031189, 0.33455637097358704, 0.02190646529197693, -0.11785325407981873, 0.04768393188714981, 0.20434452593326569, -0.22024786472320557, -0.43090277910232544, -0.16316889226436615, -0.015856526792049408, 0.099577896296978, 0.20640802383422852, -0.08005015552043915, 0.4178922176361084, -0.2216956913471222, -0.5596264004707336, -0.07778356224298477, 0.09677620232105255, -0.171560600399971, -0.17712359130382538, 0.20035848021507263, 0.09216544032096863, 0.2234044075012207, 0.1769372522830963, -0.03946038335561752, 0.08832430839538574, 0.08595863729715347, -0.18935897946357727, -0.12137038260698318, -0.011078443378210068, -0.0006252564489841461, 0.039322227239608765, 0.22813837230205536, -0.6668612360954285, -0.13275636732578278, 0.3084128797054291, -0.031133554875850677, 0.06054201349616051, -0.2392408698797226, 0.1641126573085785, -0.25483769178390503, -0.21039193868637085, -0.3466988503932953, 0.4311295449733734, 0.10443596541881561, -0.04278188571333885, 0.015163466334342957, -0.385944128036499, 0.3128689229488373, -0.14788931608200073, 0.291603147983551, 0.30751675367355347, -0.6040514707565308, -0.10681842267513275, -0.14558693766593933, -0.11449167132377625, 0.26948440074920654, 0.2100975662469864, -0.15825356543064117, 0.44918200373649597, -0.15026846528053284, 0.42478567361831665, 0.5745782256126404, -0.22379982471466064, 0.07900114357471466, 0.04364936798810959, 0.2436828464269638, -0.016756827011704445, -0.13826590776443481, 0.003588572610169649, 0.4121810793876648, 0.0013142104726284742, -0.20790442824363708, 0.13794848322868347, -0.20859427750110626, -0.21670836210250854, -0.31763678789138794, -0.11413773894309998, 0.3354859948158264, 0.2777213454246521, 0.5184727907180786, -0.17050260305404663, 0.5119088292121887, -0.36227914690971375, 0.3690457344055176, -0.14047791063785553, 0.19461043179035187, 0.37084317207336426, 0.31466034054756165, 0.26168954372406006, 0.02909533679485321, -0.21393749117851257, -0.21321484446525574, 0.17795273661613464, 0.0373096838593483, 0.09031210839748383, 0.11101704835891724, 0.12566693127155304, -0.08896145969629288, -0.07898052781820297, -0.08591166138648987, -0.10780608654022217, 0.07811189442873001, 0.18400591611862183, -0.29989317059516907, 0.2557096779346466, -0.1540885716676712, -0.3484489917755127, -0.039953939616680145, -0.056760985404253006, -0.38553547859191895, 0.24274031817913055, -0.13954249024391174, -0.22428247332572937, 0.03864727169275284, 0.23441901803016663, -0.034975796937942505, -0.14142896234989166, -0.012980123981833458, -0.09532932192087173, 0.4386503994464874, -0.16171808540821075, 0.9140035510063171, 0.36810868978500366, 0.12907934188842773, -0.2840624153614044, 0.11721598356962204, 0.09825225174427032, 0.09909280389547348, 0.04974168539047241, 0.002330813556909561, 0.37336260080337524, 0.13948284089565277, -0.012980714440345764, 0.08050936460494995, 0.02512226067483425, 0.4260934591293335, 0.07895778119564056, -0.16838198900222778, -0.1044234186410904, 0.46968644857406616, 0.16813743114471436, 0.1921074092388153, -0.03884752839803696, -0.2415400743484497, 0.20845657587051392, 0.7448077201843262, -0.26455914974212646, 0.09392374753952026, 0.020721638575196266, 0.07111174613237381, -0.08734031766653061, -0.05158417671918869, 0.04097587987780571, 0.1051088348031044, 0.24443571269512177, -0.0024087391793727875, -0.3163754343986511, 0.10441963374614716, -0.24039843678474426, 0.07101590931415558, -0.07475075125694275, 0.011088657192885876, -0.06156329810619354, 0.11879820376634598, -0.04053937643766403, -0.23690831661224365, -0.22699762880802155, 0.018142299726605415, -0.11579114198684692, 0.03659253939986229, 0.03429708629846573, -0.45084699988365173, 0.21606576442718506, -0.2354920357465744, 0.08887365460395813, -0.34244826436042786, -0.2915825843811035, 0.2036007046699524, -0.628210186958313, -0.3598635792732239, 0.30005672574043274, 0.025184445083141327, -0.05105198919773102, -0.3525962233543396, -0.025088293477892876, -0.06065201759338379, -0.352089524269104, -0.3338575065135956, 0.11842779815196991, 0.24542103707790375, -0.4940095841884613, 0.272599458694458, -0.3685755133628845, -0.12788192927837372, -0.2681593596935272, -0.5508769750595093, -0.00368364155292511, -0.34559953212738037, 0.17303746938705444, -0.050375282764434814, -0.03832104802131653, 0.16831044852733612, 0.04045071080327034, 0.1555762141942978, 0.14639167487621307, -0.1438140869140625, -0.10847215354442596, 0.044746845960617065, -0.2873830497264862, -0.22415603697299957, -0.4101354479789734, -0.21828693151474, -0.02915293723344803, -0.05886455625295639, 0.09002913534641266, -0.01518077403306961, -0.21059337258338928, -0.17424806952476501, 0.07708814740180969, -0.24133723974227905, -0.02282101847231388, 0.019903449341654778, -0.023896630853414536, 0.15592758357524872, 0.06711140275001526, -0.24551136791706085, 0.11292009055614471, 0.06396239250898361, 0.16325871646404266, -0.017941826954483986, -0.4219539165496826, 0.4583308696746826, -0.14280854165554047, 0.5473785400390625, -0.13919705152511597, -0.05648133158683777, 0.32044023275375366, 0.2972013056278229, -0.03150623291730881, -0.22316783666610718, -0.13873645663261414, 0.1665104627609253, -0.021684668958187103, 0.13574057817459106, -0.2508479952812195, 0.27482858300209045, -0.10301181674003601, 0.655278205871582, 0.18024341762065887, 0.35565003752708435, 0.2377552092075348, 0.21751944720745087, 0.28932809829711914, -0.16288858652114868, 0.086469367146492, 0.37669873237609863, 0.06524015218019485, 0.01926637813448906, 0.2492063343524933, 0.0036867717280983925, -0.3488319516181946, 0.16151486337184906, 0.04803616181015968, -0.2274242341518402, -0.09832032024860382, 0.4677930474281311, -0.42230406403541565, 0.16434600949287415, -0.016966361552476883, -0.059386756271123886, -0.18515545129776, -0.0742497444152832, -0.3410046398639679, 0.15066802501678467, 0.3700691759586334, 0.20637668669223785, -0.38359877467155457, -0.3622974753379822, -0.2450457215309143, 0.3124164044857025, 0.1707742065191269, -0.06685073673725128, -0.16309389472007751, -0.13321971893310547, -0.07445754110813141, 0.25299960374832153, -0.08634153008460999, -0.2541593015193939, -0.28383588790893555, 0.33295854926109314, -0.20188279449939728, 0.09530914574861526, -0.3292267322540283, -0.4446415603160858, 0.12902812659740448, 0.5448914766311646, 0.11265428364276886, -0.3063701391220093, -0.19722072780132294, -0.1436202973127365, 0.39750808477401733, -0.02521487884223461, 0.2906670570373535, -0.014302950352430344, -0.1965409219264984, -0.36490124464035034, -0.09836877137422562, 0.19521784782409668, 0.07529745250940323, -0.28129225969314575, -0.08090309798717499, 0.12602044641971588, -0.15966525673866272, -0.057059839367866516, 0.05203625187277794, 0.19075855612754822, -0.12652553617954254, -0.02024732530117035, -0.4092150926589966, -0.02841726690530777, 0.031562868505716324, 0.17826393246650696, -0.11811056733131409, -0.26982608437538147, 0.299419105052948, -0.583552896976471, 0.4473188817501068, 0.06515555083751678, 0.04965350404381752, 0.20835049450397491, 0.06852947175502777, 0.09075843542814255, -0.1434924453496933, -0.1599617600440979, 0.32974356412887573, 0.18415021896362305, -0.3005068004131317, -0.379859983921051, -0.141544371843338, -0.5327884554862976, -0.07289452850818634, 0.23081865906715393, 0.02959275245666504, -0.32301172614097595, 0.2096065729856491, -0.13758131861686707, 0.951720118522644, 0.1809443235397339, 0.047792691737413406, -0.13888821005821228, -0.0334232933819294, -0.00241680396720767, -0.10425607860088348, 0.07763297855854034, -0.04190661013126373, 0.07230706512928009, -0.004848245531320572, 0.03018384799361229, 0.1268160343170166, 0.14099553227424622, -0.08529296517372131, 0.22748571634292603, 0.026156410574913025, 0.23242950439453125, 0.11657442152500153, 0.009757719933986664, 0.31147459149360657, 0.11558885872364044, -0.16751933097839355, 0.15692126750946045, 0.04309368506073952, 0.07143447548151016, -0.09812431037425995, -0.20840634405612946, -0.2922167181968689, -0.15396295487880707, -0.7871791124343872, 0.01777016371488571, 0.010226646438241005, 0.32257992029190063, -0.11223924160003662, -0.32846957445144653, 0.3267083168029785, 0.6003856658935547, 0.4703444838523865, 0.40753182768821716, -0.1217392235994339, 0.24686481058597565, -0.013271190226078033, 0.2712871730327606, 0.30796927213668823, 0.009021860547363758, -0.0965365618467331, -0.30779317021369934, -0.4269559383392334, 0.07278449088335037, -0.1300889104604721, -0.13697220385074615, -0.5327871441841125, 0.06283034384250641, -0.1053805947303772, 0.11883892863988876, 0.1676761507987976, 0.2594485878944397, -0.0007013529539108276, -0.2647824287414551, 0.14149312674999237, 0.3872554302215576, 0.16357313096523285, 0.13257935643196106, -0.1252332180738449, -0.3151291012763977, -0.34778156876564026, -0.2533557713031769, 0.2751001715660095, 0.24169689416885376, 0.4107119143009186, 0.2551652193069458, -0.22303669154644012, -0.27383527159690857, 0.2533452808856964, 0.42344799637794495, -0.5279836654663086, 0.04769713059067726, -0.24168485403060913, -0.03579081594944, -0.21040000021457672, 0.03023170307278633, 0.10027499496936798, -0.23721683025360107, -0.11445851624011993, -0.2774208188056946, 0.1469315141439438, 0.29829466342926025, 0.011035621166229248, -0.25403061509132385, -0.22902053594589233, -0.03209388256072998, -0.03609529510140419, 0.054901085793972015, -0.28848129510879517, -0.01962966099381447, -0.4143093228340149, 0.22681069374084473, -0.0022516101598739624, 0.03645870462059975, 0.1801283359527588, -0.12567079067230225, 0.07082314044237137, -0.3637864589691162, 0.07845330238342285, -0.18290308117866516, -0.055213045328855515, 0.08203204721212387, -0.18199068307876587, 0.21317732334136963, 0.013726864941418171, 0.09216954559087753, 0.17411884665489197, -0.14178936183452606, -0.029370099306106567, -0.1958768665790558, 0.18956883251667023, 0.41344118118286133, -0.07745631039142609, 0.07905447483062744, 0.10683219134807587, -0.04299218952655792, -0.16042369604110718, 0.4243203401565552, 0.19113506376743317, 0.18021851778030396, 0.6220946907997131, -0.028182845562696457, -0.11106698215007782, -0.057510264217853546, -0.1464298516511917, 0.4780621826648712, 0.23801815509796143, -0.025627203285694122, 0.36292922496795654, 0.23060688376426697, 0.11873205006122589, 0.026674821972846985, -0.1945960968732834, 0.20214039087295532, 0.07922308892011642, 0.17140598595142365, -0.30616822838783264, -0.17562232911586761, 0.3837767541408539, -0.09734978526830673, -0.0016547180712223053, 0.1367148756980896, -0.060267988592386246, 0.2749719023704529, 0.4997277855873108, -0.013141965493559837, 0.33224964141845703, -0.0717189759016037, 0.3947423994541168, -0.048630256205797195, 0.1522151380777359, 0.2947213649749756, -0.29856806993484497, 0.10164566338062286, -0.236202210187912, 0.25825682282447815, -0.297872930765152, 0.1601412445306778, -0.043137408792972565, -0.038846056908369064, 0.2784537374973297, -0.19514282047748566, -0.00860847532749176, 0.09977710247039795, -0.015566565096378326, 0.07631658762693405, 0.05592603236436844, -0.016726531088352203, 0.15627111494541168, -0.05670150741934776, -0.13511697947978973, -0.030436065047979355, -0.13630583882331848, 0.13577547669410706, -0.269913911819458, -0.012265630066394806, -0.34488630294799805, -0.07937467098236084, -0.222069650888443, 0.3018299341201782, -0.008534222841262817, 0.2481183260679245, -0.13711445033550262, -0.34875771403312683, 0.33473002910614014, -0.2519548237323761, -0.07771178334951401, -0.05638201907277107, 0.3920678198337555, 0.43389755487442017, -0.11032222211360931, -0.007583532482385635, 0.26590627431869507, 0.1752272993326187, 0.06891708076000214, 0.11958758533000946, -0.08618035167455673, 0.07049122452735901, -0.14133241772651672, -0.12197549641132355, 0.30783671140670776, 0.23422403633594513, 0.3810119330883026, -0.07483711838722229, 0.12654168903827667, 0.003286370076239109, 0.2934357225894928, 0.041251711547374725, -0.26928621530532837, 0.014505501836538315, 0.3689817488193512, -0.13388870656490326, -0.04546254873275757, -0.4327344596385956, 0.015753231942653656, -0.33420777320861816, 0.2130298763513565, 0.19544939696788788, 0.3214011490345001, -0.04666794091463089, -0.10237298160791397, 0.05448271334171295, 0.06928566098213196, 0.30089008808135986, 0.3069427013397217, -0.09573253244161606, -0.3197464942932129, -0.24168673157691956, -0.16306929290294647, -0.1200123056769371, -0.1031809002161026, 0.06872141361236572, -0.07825260609388351, 0.20891767740249634, 0.6219741106033325, 0.09604915976524353, 0.5108245611190796, -0.08749137073755264, -0.09789825230836868, 0.01350180059671402, -0.34928780794143677, 0.038541920483112335, 0.24664585292339325, 0.1954587996006012, -0.10295747220516205, 0.06641938537359238, 0.5484514236450195, 0.11594018340110779, 0.0066744014620780945, -0.22996877133846283, -0.004709921777248383, 0.30208635330200195, -0.4837205111980438, -0.041923895478248596, 0.30389806628227234, 0.1447121798992157, -0.3686681389808655, -0.2795160412788391, -0.11447356641292572, -0.3308757543563843, -0.022360390052199364, 0.30507081747055054, -0.26346254348754883, 0.338166743516922, -0.32983851432800293, -0.180442675948143, -0.11142444610595703, 0.2813311517238617, -0.056063584983348846, 0.14553813636302948, -0.22658616304397583, -0.171031653881073, 0.18911844491958618, -0.1735125333070755, 0.07657917588949203, 0.036320894956588745, -0.05846227705478668, 0.03481288254261017, -0.2626878619194031, 0.006550151854753494, 0.03782854974269867, -0.08443901687860489, -0.30372288823127747, -0.354170024394989, -0.03324529528617859, 0.5034387707710266, 0.32907652854919434, -0.36258020997047424, 0.04626264423131943, 0.317719966173172, 0.2555716037750244, -0.0655539333820343, 0.4308648109436035, 0.22043098509311676, 0.09135636687278748, 0.06777265667915344, 0.10352236032485962, 0.09834504127502441, -0.09021303802728653, 0.01658763736486435, -0.1739598661661148 ]
https://github.com/huggingface/datasets/issues/3929
Load a local dataset twice
Hi @caush, thanks for reporting: In order to load local CSV files, you can use our "csv" loading script: https://huggingface.co/docs/datasets/loading#csv ```python dataset = load_dataset("csv", data_files=["data/file1.csv", "data/file2.csv"]) ``` OR: ```python dataset = load_dataset("csv", data_dir="data") ``` Alternatively, you may also use: ```python dataset = load_dataset("data")
## Describe the bug Load a local "dataset" composed of two csv files twice. ## Steps to reproduce the bug Put the two joined files in a repository named "Data". Then in python: import datasets as ds ds.load_dataset('Data', data_files = {'file1.csv', 'file2.csv'}) ## Expected results Should give something like (because files have only one data row): Title, clicks Truc et astuce, 123 Machin, 12 ## Actual results Gives Title, clicks Truc et astuce, 123 Machin, 12 Truc et astuce, 123 Machin, 12 ## Environment info [file1.csv](https://github.com/huggingface/datasets/files/8256322/file1.csv) [file2.csv](https://github.com/huggingface/datasets/files/8256323/file2.csv) - `datasets` version: 2.0.0 - Platform: Linux-5.4.0-65-generic-x86_64-with-glibc2.10 - Python version: 3.8.12 - PyArrow version: 7.0.0 - Pandas version: 1.4.1
43
Load a local dataset twice ## Describe the bug Load a local "dataset" composed of two csv files twice. ## Steps to reproduce the bug Put the two joined files in a repository named "Data". Then in python: import datasets as ds ds.load_dataset('Data', data_files = {'file1.csv', 'file2.csv'}) ## Expected results Should give something like (because files have only one data row): Title, clicks Truc et astuce, 123 Machin, 12 ## Actual results Gives Title, clicks Truc et astuce, 123 Machin, 12 Truc et astuce, 123 Machin, 12 ## Environment info [file1.csv](https://github.com/huggingface/datasets/files/8256322/file1.csv) [file2.csv](https://github.com/huggingface/datasets/files/8256323/file2.csv) - `datasets` version: 2.0.0 - Platform: Linux-5.4.0-65-generic-x86_64-with-glibc2.10 - Python version: 3.8.12 - PyArrow version: 7.0.0 - Pandas version: 1.4.1 Hi @caush, thanks for reporting: In order to load local CSV files, you can use our "csv" loading script: https://huggingface.co/docs/datasets/loading#csv ```python dataset = load_dataset("csv", data_files=["data/file1.csv", "data/file2.csv"]) ``` OR: ```python dataset = load_dataset("csv", data_dir="data") ``` Alternatively, you may also use: ```python dataset = load_dataset("data")
[ -0.004710078239440918, -0.23964521288871765, -0.09018473327159882, 0.2367398738861084, 0.18133650720119476, -0.025692373514175415, 0.3377518951892853, 0.3137403726577759, 0.3259289562702179, 0.47391563653945923, -0.13535860180854797, 0.06573460251092911, 0.2889903783798218, 0.08491250872612, -0.1292007565498352, -0.024654626846313477, 0.11088989675045013, 0.37505343556404114, -0.4979865849018097, -0.1276562213897705, -0.059983912855386734, 0.15588444471359253, -0.055531345307826996, 0.014005042612552643, 0.021801862865686417, 0.11875717341899872, -0.11776209622621536, 0.34213265776634216, 0.08036448061466217, -0.07984967529773712, 0.2447359412908554, -0.010856732726097107, -0.260064959526062, 0.5470014214515686, -0.00009962552576325834, 0.0467817559838295, 0.11377589404582977, 0.09744063764810562, -0.051864828914403915, -0.2566024661064148, -0.013181917369365692, -0.23621991276741028, 0.29249030351638794, -0.26614832878112793, -0.08974241465330124, -0.16568756103515625, -0.195389062166214, -0.14460986852645874, 0.4296990633010864, -0.006117417011409998, 0.33109167218208313, 0.30429694056510925, -0.12120583653450012, -0.23162053525447845, 0.25227630138397217, 0.0968964472413063, -0.011650856584310532, 0.4617191255092621, 0.2905224561691284, -0.2931233048439026, -0.0854266807436943, 0.12578195333480835, -0.1210964024066925, 0.10451696813106537, 0.009483437985181808, 0.31252050399780273, -0.028593018651008606, 0.05820446461439133, 0.16276562213897705, 0.041473329067230225, 0.02904365211725235, -0.15579429268836975, -0.05515752732753754, -0.38242655992507935, -0.011155454441905022, -0.15773913264274597, 0.09650855511426926, 0.16073685884475708, -0.11406069993972778, 0.22036784887313843, 0.029550720006227493, 0.22240865230560303, 0.0803384780883789, -0.10809385776519775, 0.11442792415618896, -0.08054760098457336, -0.1729043871164322, 0.06952571868896484, 0.25177842378616333, -0.09016134589910507, -0.17926013469696045, -0.03893449157476425, -0.045541826635599136, 0.12819871306419373, -0.34175947308540344, 0.1355651170015335, 0.3452342748641968, 0.004655919969081879, -0.025853902101516724, -0.009073954075574875, 0.1109967902302742, -0.04357123374938965, -0.03787044435739517, 0.27118241786956787, 0.28398746252059937, 0.15146449208259583, -0.05058123916387558, -0.035910699516534805, 0.3308826684951782, 0.2138853818178177, -0.19204702973365784, -0.014265485107898712, 0.1853335201740265, -0.39672598242759705, -0.04807821288704872, -0.03223550692200661, 0.3155703544616699, -0.14441806077957153, -0.3964410126209259, 0.31857743859291077, -0.07561784237623215, 0.0642363652586937, -0.07763630151748657, 0.3774130940437317, -0.21325895190238953, 0.10708427429199219, 0.07806190103292465, 0.12514695525169373, -0.20043231546878815, -0.08693686127662659, -0.3048516809940338, 0.012817637994885445, -0.18417073786258698, -0.09097856283187866, 0.19532866775989532, -0.2779320776462555, 0.08456746488809586, 0.43281054496765137, 0.15379318594932556, -0.24053527414798737, -0.06603670120239258, -0.11043655872344971, -0.10112190991640091, 0.29681453108787537, 0.3218608498573303, 0.23123322427272797, 0.2191811352968216, -0.3751530051231384, 0.083343006670475, 0.14818260073661804, -0.17471098899841309, -0.047924503684043884, -0.308077871799469, 0.3341526687145233, 0.04005270451307297, 0.2966659665107727, 0.006283275783061981, 0.01755741611123085, 0.15652163326740265, -0.061171844601631165, 0.07679888606071472, 0.198652982711792, -0.28211817145347595, -0.1887473165988922, 0.1655864715576172, 0.38565361499786377, -0.2357446849346161, 0.10859166085720062, 0.23960524797439575, -0.10523764789104462, 0.0915287658572197, 0.3889171779155731, -0.2728273272514343, 0.002475328743457794, -0.36753734946250916, 0.24605347216129303, 0.03551875054836273, -0.37201541662216187, -0.32357490062713623, 0.23626697063446045, -0.4288937449455261, 0.10700487345457077, 0.3266940116882324, -0.1531018763780594, -0.05442172288894653, -0.06427370756864548, 0.25853434205055237, 0.07893059402704239, 0.011589884757995605, 0.15046417713165283, -0.37569135427474976, -0.1237972304224968, 0.02719467505812645, -0.12394656240940094, -0.20032034814357758, -0.030145421624183655, 0.2965589761734009, -0.3555014729499817, 0.4262881278991699, -0.22915896773338318, 0.07372894883155823, 0.17656353116035461, 0.17698082327842712, 0.16628876328468323, 0.20485684275627136, -0.14884717762470245, -0.4092329442501068, 0.12841057777404785, -0.22412966191768646, -0.0464651882648468, -0.059825554490089417, -0.48733317852020264, -0.5007219314575195, 0.01938248611986637, -0.18151304125785828, -0.08489161729812622, 0.26552814245224, 0.0896143689751625, -0.12997685372829437, 0.05538054183125496, 0.023289967328310013, 0.07654806971549988, -0.128106027841568, -0.018113166093826294, -0.2700132131576538, 0.26977935433387756, -0.1623060256242752, -0.017880503088235855, -0.05012824758887291, 0.13196751475334167, 0.20508608222007751, -0.02910507284104824, 0.012626389972865582, 0.431097149848938, -0.1858828067779541, 0.5137693881988525, 0.19859778881072998, -0.22251035273075104, 0.0997757539153099, 0.05521949753165245, -0.1412792205810547, 0.14075890183448792, 0.2804335951805115, -0.07873276621103287, -0.3607140779495239, 0.4162088632583618, -0.15044468641281128, 0.03698916733264923, 0.14843237400054932, -0.15064002573490143, 0.20416365563869476, -0.2732313573360443, 0.05563878268003464, -0.34593576192855835, 0.2634027898311615, 0.24474431574344635, 0.09857173264026642, 0.285840779542923, -0.6951723694801331, 0.16131170094013214, 0.22505658864974976, -0.06204579770565033, 0.06355501711368561, -0.08827275782823563, -0.1729610562324524, -0.07600851356983185, -0.12218618392944336, 0.25645068287849426, 0.4227169156074524, 0.22771108150482178, 0.16282467544078827, 0.0713808611035347, -0.043850988149642944, -0.3499738276004791, 0.026619844138622284, -0.2437189668416977, -0.07943638414144516, 0.5034428238868713, 0.26673996448516846, -0.09155610203742981, -0.455887109041214, 0.07102474570274353, 0.02282320149242878, 0.14135879278182983, -0.3404088616371155, -0.09834802150726318, -0.19967280328273773, -0.303891122341156, -0.4504394829273224, -0.05990750715136528, 0.14697378873825073, -0.16570456326007843, 0.045710645616054535, 0.4463576376438141, -0.31066790223121643, 0.0832667276263237, 0.011362586170434952, 0.15088340640068054, 0.0220253337174654, 0.1434856504201889, 0.061366476118564606, 0.07033544033765793, -0.20748677849769592, 0.2287396490573883, 0.1455424427986145, 0.2019869089126587, 0.23036563396453857, -0.02081695757806301, -0.044699251651763916, -0.1016831248998642, -0.21472212672233582, -0.06206575036048889, 0.04380616918206215, 0.23366567492485046, -0.0233599990606308, 0.1378120630979538, -0.15263575315475464, -0.37306922674179077, 0.33012503385543823, 0.024960434064269066, -0.2775484621524811, -0.10205119103193283, 0.03983942046761513, -0.013703811913728714, -0.5017808079719543, -0.28868067264556885, -0.011824022978544235, -0.2671646773815155, 0.31390732526779175, -0.09134556353092194, 0.09270545095205307, 0.06510189920663834, 0.02109779417514801, 0.12918004393577576, -0.05049716681241989, 0.23912355303764343, -0.35363224148750305, -0.25936654210090637, 0.15799926221370697, -0.3354128301143646, -0.4113503694534302, -0.2560962438583374, -0.0732128918170929, -0.05310823395848274, -0.39904195070266724, -0.2729156017303467, -0.3575664758682251, -0.2843838334083557, 0.17336203157901764, -0.00932668149471283, 0.08987972140312195, 0.15209758281707764, -0.001228119246661663, -0.356486439704895, -0.22946015000343323, -0.0361364372074604, 0.1663168966770172, 0.0678071528673172, -0.3076004087924957, -0.0907314121723175, 0.09600739181041718, 0.0307714082300663, 0.4480382800102234, 0.2505354583263397, 0.22743114829063416, 0.22571240365505219, -0.17798246443271637, 0.4103536009788513, -0.08345762640237808, -0.5407406091690063, -0.03460976108908653, -0.051806896924972534, -0.12385972589254379, 0.35317468643188477, -0.015249505639076233, 0.011535687372088432, -0.16010132431983948, -0.05087094008922577, -0.4275689423084259, -0.3824065923690796, -0.07697569578886032, 0.09493563324213028, -0.12397419661283493, 0.12667332589626312, -0.12748247385025024, 0.11850729584693909, 0.11082962155342102, 0.016854261979460716, 0.16010543704032898, -0.06502901762723923, -0.17265892028808594, 0.01793227717280388, -0.0339590348303318, -0.2860409617424011, 0.10117217153310776, 0.18379434943199158, 0.0884321928024292, -0.0779721736907959, -0.2448802888393402, 0.09711574018001556, -0.0020962110720574856, 0.7027955055236816, 0.18896862864494324, 0.2946755290031433, -0.06982026994228363, 0.02880435436964035, -0.05792196840047836, -0.048344578593969345, -0.08925317227840424, -0.15169517695903778, 0.333906888961792, 0.4728013277053833, -0.033933304250240326, -0.026301007717847824, 0.20315414667129517, 0.3084132969379425, -0.1594245880842209, -0.10848741233348846, -0.23920272290706635, -0.04528777301311493, -0.3013748228549957, 0.055719900876283646, 0.13462749123573303, 0.31341877579689026, -0.07218838483095169, -0.25354450941085815, -0.05028942972421646, -0.18512612581253052, 0.1554163694381714, 0.09314610064029694, 0.25816333293914795, 0.10138454288244247, 0.35876035690307617, 0.0451519712805748, 0.12438853085041046, -0.11214888095855713, 0.8085204362869263, -0.07877032458782196, -0.28686782717704773, 0.01723671890795231, -0.20143626630306244, 0.08582484722137451, 0.3019680380821228, -0.1300361454486847, 0.21881046891212463, -0.14009565114974976, 0.23762871325016022, -0.12646737694740295, -0.0007684854790568352, 0.21402426064014435, 0.07926256954669952, -0.023120447993278503, -0.18597950041294098, 0.15643173456192017, -0.06790970265865326, -0.28785672783851624, 0.023195555433630943, 0.029013093560934067, -0.1576676070690155, 0.00726400688290596, -0.36204269528388977, 0.7524012923240662, -0.02528984099626541, 0.04886673763394356, 0.15199191868305206, -0.33272290229797363, 0.40312784910202026, 0.05719070881605148, -0.19806119799613953, -0.19008685648441315, -0.33276188373565674, 0.09434371441602707, 0.043664079159498215, 0.1084921807050705, -0.12381602823734283, 0.011006932705640793, 0.159739151597023, 0.02304767072200775, 0.294050395488739, -0.11171015352010727, -0.014115635305643082, 0.24063844978809357, -0.11938297748565674, -0.17069090902805328, 0.1621929109096527, 0.21827302873134613, 0.14676587283611298, 0.12704521417617798, -0.06431316584348679, -0.08506255596876144, -0.18328963220119476, -0.06073060259222984, 0.1929333209991455, -0.0062172007746994495, 0.10107456147670746, -0.0765506774187088, -0.5355000495910645, -0.25851133465766907, 0.30848240852355957, 0.012400805950164795, 0.21567577123641968, -0.0968252494931221, 0.24924616515636444, 0.050151992589235306, 0.24860641360282898, -0.2240094244480133, -0.034745171666145325, 0.16566011309623718, 0.02919081598520279, -0.2310943603515625, -0.10324966162443161, -0.010209964588284492, 0.045166015625, 0.06868696212768555, 0.441280722618103, -0.27574652433395386, -0.21178007125854492, -0.24871547520160675, 0.03435442969202995, 0.30888351798057556, -0.3675852119922638, 0.2228824943304062, -0.10148011147975922, -0.04670753702521324, -0.22310513257980347, 0.0013468749821186066, -0.3782041668891907, -0.20842833817005157, 0.5793222784996033, 0.302989661693573, -0.2784509062767029, 0.18788552284240723, 0.22621150314807892, -0.19780339300632477, -0.20801642537117004, -0.10461026430130005, 0.23885351419448853, -0.4535726010799408, 0.06532816588878632, -0.04533025249838829, 0.08396002650260925, 0.1356043815612793, 0.27501410245895386, 0.16278225183486938, 0.06197885796427727, -0.010889753699302673, -0.3319646716117859, -0.15810322761535645, -0.04170132428407669, 0.17548958957195282, 0.12905730307102203, 0.4048638641834259, 0.26506665349006653, -0.01591687649488449, 0.1407773643732071, -0.44409722089767456, 0.24746941030025482, -0.10313085466623306, 0.132727712392807, 0.22622984647750854, 0.07045581191778183, 0.08820454031229019, -0.0273900106549263, 0.35270246863365173, 0.10994365066289902, -0.006086448207497597, -0.4125460088253021, -0.17577138543128967, 0.03343228995800018, -0.21198061108589172, 0.014547859318554401, -0.06283970177173615, -0.061887212097644806, 0.1551261842250824, -0.2291945070028305, 0.3136364221572876, 0.17971456050872803, -0.011138662695884705, -0.08809036016464233, -0.05207185074687004, 0.14892393350601196, 0.03150755912065506, 0.00618550181388855, -0.18016016483306885, 0.026812709867954254, -0.11418309807777405, -0.050509072840213776, -0.37725138664245605, -0.00901128351688385, 0.06471642851829529, -0.05435057729482651, 0.027688533067703247, 0.11742419749498367, -0.015326127409934998, -0.21860112249851227, -0.1685829907655716, 0.14462535083293915, 0.7309185266494751, 0.015139896422624588, -0.07873955368995667, 0.048951856791973114, 0.14072313904762268, 0.3903743028640747, -0.428327739238739, -0.10984250158071518, 0.07272541522979736, -0.088528573513031, 0.241064190864563, 0.17914626002311707, 0.15401983261108398, -0.16044317185878754, 0.08769331872463226, 0.13791415095329285, 0.20005202293395996, -0.038092903792858124, 0.060897938907146454, 0.4376496970653534, 0.22380410134792328, -0.017160315066576004, 0.0854380652308464, 0.010401008650660515, 0.3310551643371582, 0.5499606728553772, -0.088875912129879, -0.08585282415151596, -0.019880149513483047, 0.23150457441806793, -0.067463718354702, -0.2500931918621063, 0.3824150264263153, 0.22079354524612427, -0.3823070526123047, -0.1782766878604889, 0.2565421462059021, 0.727474570274353, -0.3294006884098053, -0.05903325602412224, -0.036911096423864365, 0.3122018873691559, -0.25309672951698303, -0.19805991649627686, 0.08474060893058777, -0.1881745308637619, -0.21025089919567108, 0.16193394362926483, 0.16023175418376923, 0.25318604707717896, 0.16627827286720276, -0.1664372682571411, -0.03495113551616669, -0.40039515495300293, -0.18176999688148499, 0.1099674329161644, 0.20200544595718384, -0.24854369461536407, -0.023425621911883354, 0.3915693163871765, -0.17448945343494415, -0.14377717673778534, 0.306202232837677, 0.29733169078826904, 0.20255610346794128, 0.2117137610912323, 0.03493655472993851, -0.041563380509614944, -0.06990507245063782, -0.26874691247940063, -0.033870771527290344, 0.011795870959758759, 0.04589863866567612, 0.32735565304756165, 0.3267676830291748, -0.36918431520462036, 0.3147922456264496, 0.0319901704788208, 0.13902021944522858, -0.43475186824798584, -0.06274200230836868, -0.22698596119880676, -0.03734414279460907, -0.2019462287425995, -0.17539197206497192, -0.48052921891212463, -0.11089406162500381, 0.1036166250705719, -0.0022515649907290936, 0.2703614830970764, -0.3344461917877197, 0.17905497550964355, 0.2313142716884613, 0.13774991035461426, 0.12509320676326752, 0.13132336735725403, -0.11017290502786636, -0.27298450469970703, -0.6104815006256104, 0.3906269073486328, 0.010884299874305725, 0.14778845012187958, -0.19072867929935455, 0.16832350194454193, -0.1368427574634552, 0.08461257070302963, 0.10569946467876434, 0.11739084869623184, 0.13727356493473053, 0.02135317027568817, -0.12121421098709106, -0.0991511195898056, -0.3517342209815979, -0.3314829170703888, 0.2507394254207611, -0.2562106251716614, 0.05962375923991203, -0.30195969343185425, 0.21948137879371643, -0.12331105768680573, -0.029745060950517654, -0.10254164040088654, -0.16171172261238098, 0.3857586085796356, 0.0974220260977745, 0.30645817518234253, -0.31455862522125244, 0.01733463443815708, 0.0014596544206142426, -0.3505769371986389, -0.16541050374507904, 0.24994122982025146, 0.09420870244503021, 0.1036430299282074, -0.14326469600200653, -0.06216992810368538, 0.15346533060073853, 0.1317564696073532, 0.24926923215389252, 0.12098607420921326, -0.06982824951410294, 0.04866916686296463, -0.012713514268398285, -0.045088231563568115, -0.09437979757785797, 0.3053075075149536, -0.04617155343294144, 0.3020267188549042, -0.08539317548274994, -0.582926869392395, 0.3667336106300354, -0.28746938705444336, -0.07920463383197784, -0.17060497403144836, 0.3206231892108917, 0.060159921646118164, -0.1556359976530075, -0.37892839312553406, -0.044011153280735016, 0.18959492444992065, 0.16573163866996765, -0.24492697417736053, 0.21541155874729156, -0.35279399156570435, -0.12928631901741028, -0.0303126759827137, 0.25489211082458496, 0.5088757276535034, -0.2604706287384033, 0.33313021063804626, -0.3637111186981201 ]
https://github.com/huggingface/datasets/issues/3928
Frugal score deprecations
Hi @Ierezell, thanks for reporting. I'm making a PR to suppress those logs from the terminal.
## Describe the bug The frugal score returns a really verbose output with warnings that can be easily changed. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets.load import load_metric frugal = load_metric("frugalscore") frugal.compute(predictions=["Do you like spinachis"], references=["Do you like spinach"]) ``` ## Expected results A clear and concise description of the expected results. ``` {'scores': [0.9946]} ``` ## Actual results Specify the actual results or traceback. ``` PyTorch: setting up devices The default value for the training argument `--report_to` will change in v5 (from all installed integrations to none). In v5, you will need to use `--report_to all` to get the same behavior as now. You should start updating your code and make this info disappear :-). 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 864.09ba/s] Using amp half precision backend The following columns in the test set don't have a corresponding argument in `BertForSequenceClassification.forward` and have been ignored: sentence2, sentence1. If sentence2, sentence1 are not expected by `BertForSequenceClassification.forward`, you can safely ignore this message. ***** Running Prediction ***** Num examples = 1 Batch size = 64 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 4644.85it/s] {'scores': [0.9946]} ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.0 - Platform: Linux-5.13.0-30-generic-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 7.0.0
16
Frugal score deprecations ## Describe the bug The frugal score returns a really verbose output with warnings that can be easily changed. ## Steps to reproduce the bug ```python # Sample code to reproduce the bug from datasets.load import load_metric frugal = load_metric("frugalscore") frugal.compute(predictions=["Do you like spinachis"], references=["Do you like spinach"]) ``` ## Expected results A clear and concise description of the expected results. ``` {'scores': [0.9946]} ``` ## Actual results Specify the actual results or traceback. ``` PyTorch: setting up devices The default value for the training argument `--report_to` will change in v5 (from all installed integrations to none). In v5, you will need to use `--report_to all` to get the same behavior as now. You should start updating your code and make this info disappear :-). 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 864.09ba/s] Using amp half precision backend The following columns in the test set don't have a corresponding argument in `BertForSequenceClassification.forward` and have been ignored: sentence2, sentence1. If sentence2, sentence1 are not expected by `BertForSequenceClassification.forward`, you can safely ignore this message. ***** Running Prediction ***** Num examples = 1 Batch size = 64 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 4644.85it/s] {'scores': [0.9946]} ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.17.0 - Platform: Linux-5.13.0-30-generic-x86_64-with-glibc2.29 - Python version: 3.8.10 - PyArrow version: 7.0.0 Hi @Ierezell, thanks for reporting. I'm making a PR to suppress those logs from the terminal.
[ -0.3378295600414276, -0.1535777598619461, -0.03944755345582962, 0.10396874696016312, 0.4437432289123535, -0.18886882066726685, -0.1592685729265213, 0.1735534965991974, -0.020147843286395073, 0.20251178741455078, -0.06267473846673965, 0.43469884991645813, -0.1748407632112503, -0.03435743227601051, -0.22541894018650055, -0.022845886647701263, 0.07024326920509338, 0.05441337823867798, -0.24884489178657532, -0.25208839774131775, -0.13038116693496704, 0.08973710238933563, 0.006878063082695007, 0.1989314705133438, -0.26260361075401306, 0.11414643377065659, 0.06794939935207367, -0.11314751952886581, -0.2152862548828125, -0.38688531517982483, 0.40604957938194275, -0.030786190181970596, -0.10227975994348526, 0.23700758814811707, -0.00010375129932072014, -0.13463249802589417, 0.16735556721687317, -0.0023025739938020706, -0.40046006441116333, -0.07842162251472473, 0.26177138090133667, 0.01569138467311859, 0.12310438603162766, -0.05165573209524155, -0.22779011726379395, -0.1748313158750534, 0.025581112131476402, -0.27729782462120056, -0.046051621437072754, 0.38156431913375854, 0.3101311922073364, 0.11242377758026123, -0.22577141225337982, -0.12330278754234314, 0.12359271943569183, 0.1563766598701477, -0.17029604315757751, 0.15475645661354065, -0.17867079377174377, -0.41442635655403137, -0.4361140727996826, 0.16699719429016113, 0.05668419599533081, 0.029030032455921173, 0.27592986822128296, 0.10340330004692078, 0.09863806515932083, -0.11056780815124512, -0.09583909064531326, -0.08546195179224014, -0.2756708860397339, -0.11207398027181625, -0.298307865858078, -0.09433625638484955, -0.053403954952955246, -0.40777158737182617, -0.11936255544424057, -0.11414454877376556, -0.06714564561843872, 0.0519256591796875, -0.19269520044326782, 0.18825389444828033, -0.24340346455574036, 0.1841530054807663, -0.07980019599199295, 0.5335028171539307, -0.11264180392026901, -0.04200809448957443, 0.14495453238487244, -0.05111227184534073, -0.18945589661598206, 0.12727534770965576, 0.08807429671287537, 0.09780330955982208, -0.10657186806201935, -0.14975304901599884, 0.1707923710346222, -0.05704491585493088, 0.2708339989185333, 0.08253352344036102, -0.012334299273788929, -0.03188644349575043, 0.2568417489528656, -0.2839895486831665, 0.025031624361872673, 0.2162346988916397, -0.06381393224000931, 0.20979741215705872, 0.019234362989664078, 0.42870762944221497, 0.13238945603370667, 0.10884307324886322, 0.318207710981369, 0.009753765538334846, 0.20418529212474823, -0.09811323881149292, -0.018105482682585716, -0.37032073736190796, -0.5631876587867737, 0.27459070086479187, -0.1825668215751648, 0.031269945204257965, 0.026635952293872833, 0.4671001136302948, -0.2071504145860672, 0.20529472827911377, 0.05769490450620651, 0.05080167204141617, -0.25267842411994934, 0.27154868841171265, -0.21114110946655273, 0.09162956476211548, -0.29120323061943054, 0.05665437877178192, 0.33831650018692017, -0.00602366030216217, 0.4036903381347656, 0.021108772605657578, 0.4984661936759949, -0.03251976519823074, -0.10858139395713806, -0.2354334592819214, 0.2931165397167206, 0.18255868554115295, -0.5195481181144714, 0.009268131107091904, 0.06708570569753647, -0.008557267487049103, -0.042930107563734055, 0.14347758889198303, 0.06948485225439072, -0.3315310776233673, 0.03495026007294655, 0.33426016569137573, -0.2195741981267929, -0.27523550391197205, 0.33452215790748596, 0.10055308043956757, -0.04234256595373154, 0.12494529783725739, 0.1751549243927002, -0.30346453189849854, -0.4291783273220062, 0.06256406009197235, 0.3627043664455414, -0.007814288139343262, 0.04841947928071022, -0.21744894981384277, -0.007435579784214497, -0.04377199336886406, 0.32638853788375854, 0.04617645964026451, 0.04448036476969719, 0.26030611991882324, -0.03672899305820465, -0.050739169120788574, 0.27060097455978394, -0.5030349493026733, -0.41779598593711853, 0.06361447274684906, -0.033568982034921646, 0.08855921030044556, 0.05272044986486435, 0.08097735792398453, 0.18121623992919922, 0.015210735611617565, 0.07516328990459442, 0.16122953593730927, 0.006976837292313576, -0.02780500054359436, -0.5932225584983826, -0.2590724527835846, -0.20132477581501007, 0.3081681430339813, 0.3527049124240875, -0.1111256554722786, 0.025052227079868317, 0.2770068347454071, 0.44573304057121277, -0.03932076320052147, -0.15911781787872314, -0.0009498447179794312, 0.48904746770858765, -0.05159996449947357, 0.1928202360868454, -0.2841027081012726, 0.0008989572525024414, 0.183417409658432, -0.36273065209388733, 0.06883656978607178, 0.28010979294776917, -0.13602030277252197, -0.46667391061782837, 0.05347695201635361, -0.12158671021461487, -0.1781875491142273, 0.22312459349632263, 0.06720630079507828, 0.06752662360668182, -0.17403510212898254, -0.0908317118883133, 0.2509271800518036, -0.3949294686317444, -0.011342187412083149, 0.2516956031322479, 0.19872279465198517, -0.10473880916833878, -0.2395796775817871, 0.009805329144001007, 0.2431734800338745, 0.3918589949607849, 0.2498939484357834, 0.029433269053697586, 0.29206985235214233, 0.1432495266199112, -0.24604670703411102, 0.08144360035657883, 0.12408870458602905, 0.029170077294111252, -0.18405203521251678, -0.030153652653098106, 0.3805076479911804, 0.1791280061006546, 0.17110654711723328, -0.2636033296585083, 0.24527348577976227, -0.0348503403365612, 0.024508021771907806, 0.16514763236045837, -0.09793680906295776, 0.10347606241703033, 0.05278564617037773, -0.13002364337444305, -0.3680850565433502, 0.5212818384170532, -0.24908481538295746, -0.1638222336769104, -0.14842158555984497, -0.299000084400177, 0.09199278801679611, 0.2996717691421509, -0.10291130840778351, 0.13116763532161713, 0.22852876782417297, 0.13759104907512665, -0.09791299700737, 0.15540142357349396, 0.08749942481517792, 0.37447816133499146, 0.27780959010124207, 0.13254502415657043, 0.10826680809259415, -0.5552950501441956, -0.05384688451886177, 0.23719476163387299, 0.0423240102827549, 0.04868784919381142, 0.3187307119369507, 0.19578847289085388, 0.0028426945209503174, -0.3306094706058502, -0.0696399062871933, -0.2293574959039688, 0.12542906403541565, -0.31751593947410583, 0.20111499726772308, -0.05447668582201004, 0.1383332908153534, -0.19114547967910767, -0.5996840596199036, 0.06336729228496552, -0.4704867899417877, 0.2032283991575241, 0.2646014988422394, -0.25206220149993896, 0.14258402585983276, 0.149064838886261, 0.3770417869091034, -0.10184076428413391, 0.1937844604253769, -0.2119622826576233, -0.24089734256267548, -0.30953356623649597, 0.18116314709186554, -0.2978997230529785, 0.15500135719776154, 0.29826077818870544, -0.11921925842761993, -0.03554517775774002, -0.26566770672798157, -0.40786442160606384, 0.20127002894878387, -0.07847528159618378, 0.4971252679824829, 0.13045422732830048, -0.2698684334754944, -0.0013049133121967316, 0.059208065271377563, 0.08198347687721252, -0.1078684851527214, 0.0827527791261673, 0.16923992335796356, -0.10932505130767822, 0.12645845115184784, -0.2981233596801758, -0.38410425186157227, -0.006575062870979309, -0.1004360169172287, 0.0030255839228630066, 0.22504682838916779, -0.04617144167423248, 0.187185600399971, -0.02215750142931938, 0.3031824231147766, -0.20700129866600037, 0.20326294004917145, -0.28991204500198364, 0.3341037929058075, 0.3405091464519501, -0.24491846561431885, -0.4820891320705414, -0.07643887400627136, 0.20489434897899628, -0.1099216639995575, -0.1470324695110321, -0.4176192283630371, -0.08863649517297745, -0.28059765696525574, 0.006769683212041855, -0.2689161002635956, -0.07089997082948685, 0.05338175967335701, 0.19493088126182556, -0.1580944061279297, -0.104312464594841, 0.00927119329571724, 0.023091621696949005, -0.36727800965309143, 0.09910889714956284, -0.5600794553756714, 0.16006971895694733, 0.1685008406639099, 0.2952643036842346, -0.00577218271791935, 0.014219224452972412, 0.06047623232007027, -0.05180245637893677, 0.15682122111320496, -0.2586078941822052, -0.12774565815925598, 0.2522009015083313, -0.28498148918151855, -0.196714848279953, 0.19128668308258057, -0.09063315391540527, 0.11523420363664627, -0.036045461893081665, 0.2835809588432312, 0.2513674199581146, -0.20648933947086334, -0.0007135309278964996, 0.022964483126997948, -0.07553679496049881, 0.013706527650356293, 0.38564586639404297, -0.06619496643543243, -0.2076021432876587, 0.0850270539522171, -0.09718172252178192, -0.10285758227109909, -0.17096370458602905, 0.22164346277713776, 0.0017496750224381685, -0.31704235076904297, 0.15229210257530212, 0.1392885446548462, 0.2987605929374695, -0.08689526468515396, -0.3397795259952545, 0.0017373040318489075, -0.03576582670211792, -0.010132908821105957, 0.3722437918186188, 0.26514512300491333, 0.2433193325996399, -0.04595853015780449, -0.43027302622795105, -0.25568753480911255, -0.649670422077179, -0.33158329129219055, -0.22988642752170563, 0.4959816038608551, -0.21568039059638977, -0.26184776425361633, 0.5776286125183105, 0.017922570928931236, -0.13794133067131042, 0.10200577229261398, -0.46491575241088867, -0.22729885578155518, 0.06702648103237152, 0.23469555377960205, 0.10473676770925522, 0.28567272424697876, -0.37281256914138794, 0.16092486679553986, 0.010124662891030312, -0.1406346559524536, 0.15609107911586761, 0.0012695621699094772, 0.2573934495449066, -0.08082130551338196, 0.11788390576839447, -0.4528873860836029, -0.064226895570755, 0.0408988818526268, 0.06480523943901062, -0.04234294965863228, -0.055423304438591, 0.24527952075004578, -0.13349226117134094, 0.2329285442829132, 0.3257201910018921, -0.03862131014466286, -0.06986837834119797, -0.2750140428543091, 0.43106144666671753, -0.5223262906074524, 0.07351869344711304, 0.3365568518638611, 0.12853404879570007, -0.012756921350955963, 0.0864824429154396, 0.4466661512851715, 0.15196959674358368, -0.1364288330078125, 0.11224742233753204, 0.4472202658653259, -0.17113874852657318, 0.3856388330459595, 0.49843069911003113, 0.8165246248245239, 0.17384940385818481, 0.21343529224395752, 0.5304656624794006, -0.37831562757492065, 0.4855729639530182, -0.2863426208496094, 0.10951769351959229, -0.11164409667253494, -0.411451131105423, 0.14454813301563263, 0.07726940512657166, 0.16133716702461243, -0.02792999893426895, -0.225910484790802, 0.36797142028808594, -0.237970232963562, 0.077876515686512, 0.28826481103897095, -0.07390057295560837, 0.018536116927862167, -0.031922150403261185, -0.18850906193256378, 0.24712705612182617, -0.19381485879421234, 0.047516778111457825, -0.13168391585350037, 0.09177277237176895, -0.005821827799081802, -0.05604112893342972, -0.057173971086740494, 0.17058148980140686, 0.17549000680446625, -0.07488561421632767, -0.15874488651752472, -0.1070633977651596, -0.11191986501216888, -0.0036471784114837646, 0.5831870436668396, 0.1982131153345108, -0.14457684755325317, 0.06354273110628128, -0.3196728527545929, 0.22380349040031433, 0.03349743410944939, 0.12615656852722168, 0.2901461720466614, -0.2721792161464691, -0.30474987626075745, 0.024955682456493378, -0.05601973459124565, 0.15896698832511902, 0.010480731725692749, -0.12767045199871063, 0.007844585925340652, -0.3236308991909027, 0.0472666434943676, 0.026129692792892456, 0.09785884618759155, -0.2087256759405136, 0.23244984447956085, -0.041749872267246246, -0.1985476166009903, 0.12117971479892731, 0.13167376816272736, -0.47800013422966003, -0.26177552342414856, 0.2792523205280304, 0.10079308599233627, -0.022490259259939194, 0.31026509404182434, -0.10880021750926971, -0.3115732669830322, -0.3070816099643707, -0.2684107720851898, 0.235803484916687, -0.3634129464626312, -0.16847549378871918, -0.023879745975136757, -0.23056772351264954, 0.06512541323900223, 0.45631417632102966, 0.36273831129074097, 0.06322049349546432, -0.26127132773399353, -0.06808161735534668, -0.2648400366306305, 0.1545906960964203, 0.003259766846895218, 0.12298780679702759, 0.012241538614034653, -0.09260958433151245, 0.09827852994203568, -0.17448796331882477, -0.457951158285141, -0.1371200531721115, -0.45167940855026245, -0.013447362929582596, 0.04689913988113403, -0.1100977286696434, 0.1988515555858612, 0.059914980083703995, 0.237362802028656, 0.13018587231636047, -0.17560870945453644, -0.2577670216560364, -0.15780009329319, 0.08160094916820526, 0.08630093187093735, 0.11643366515636444, -0.11723364889621735, 0.09625335782766342, -0.10937042534351349, -0.04105132073163986, -0.025609703734517097, 0.4234182834625244, 0.2561717629432678, 0.6909574866294861, 0.061224352568387985, 0.30384519696235657, 0.11605025827884674, -0.22516250610351562, 0.20017382502555847, 0.10793223232030869, -0.09193459153175354, -0.04225705564022064, 0.07354603707790375, -0.18929319083690643, -0.05661800876259804, 0.033021215349435806, -0.04439374804496765, 0.2027473747730255, 0.2766474783420563, -0.1438184529542923, -0.06099666655063629, -0.1071830540895462, 0.38919347524642944, 0.22238174080848694, 0.005832992028445005, -0.5441277623176575, -0.010135514661669731, 0.31407177448272705, -0.299207478761673, -0.28235527873039246, -0.3264005780220032, 0.19427721202373505, 0.21201825141906738, 0.3103427290916443, -0.07771249115467072, -0.13502708077430725, 0.30943477153778076, 0.22791504859924316, 0.09144798666238785, -0.0499194860458374, -0.00017256569117307663, 0.0871049240231514, 0.052878644317388535, 0.11879566311836243, 0.22982901334762573, -0.24901390075683594, 0.24724525213241577, 0.14404067397117615, -0.19633662700653076, 0.6334904432296753, -0.21264484524726868, 0.1752282977104187, 0.01354873925447464, 0.14999403059482574, 0.18819580972194672, 0.22451090812683105, -0.16221296787261963, 0.0451645627617836, -0.08814501762390137, 0.3793267011642456, -0.02736833691596985, -0.256562739610672, -0.2931441068649292, -0.13208889961242676, -0.19869458675384521, -0.1579958200454712, -0.144148051738739, -0.1489458978176117, -0.10240551084280014, -0.04465905576944351, -0.11822672188282013, 0.19923309981822968, 0.3403468728065491, -0.024700358510017395, -0.22503866255283356, 0.09776783734560013, -0.27288874983787537, 0.30719441175460815, 0.32862138748168945, -0.12977628409862518, 0.20767739415168762, 0.2605954110622406, -0.046407558023929596, -0.16764739155769348, 0.4961449205875397, 0.11401093006134033, 0.20687800645828247, -0.021497264504432678, 0.010702897794544697, -0.05409998074173927, -0.19020919501781464, -0.035423628985881805, 0.34976327419281006, 0.15884730219841003, -0.034399259835481644, 0.2833396792411804, 0.26093345880508423, -0.2933729290962219, 0.32150015234947205, 0.0872710645198822, 0.30634525418281555, -0.3373114764690399, 0.22931838035583496, 0.2238188236951828, 0.0739220604300499, 0.03775838762521744, 0.04052967578172684, -0.46965813636779785, 0.1814960539340973, 0.12791882455348969, 0.12286683171987534, 0.1909831464290619, -0.07801207900047302, 0.14134348928928375, 0.30393365025520325, 0.4013426601886749, -0.01313837245106697, -0.17223143577575684, -0.30340850353240967, -0.003625422716140747, -0.3544192612171173, 0.12874969840049744, 0.07597663998603821, 0.16951249539852142, 0.029935749247670174, -0.09348457306623459, -0.05908925086259842, 0.1956692785024643, 0.2524082064628601, -0.16201454401016235, -0.06917055696249008, 0.050299085676670074, -0.27325740456581116, -0.1341128796339035, -0.23459936678409576, -0.06291081011295319, 0.02855473756790161, -0.24417930841445923, 0.06851600110530853, -0.1467398703098297, 0.22946584224700928, 0.05142392963171005, -0.2022016942501068, 0.0459371842443943, 0.3193037807941437, 0.11666101217269897, 0.1934594064950943, 0.2269161343574524, 0.023344263434410095, -0.3008909225463867, -0.08237643539905548, 0.0295064989477396, 0.12981779873371124, -0.06857451051473618, -0.13119806349277496, 0.13677190244197845, 0.015594961121678352, -0.13105587661266327, -0.22815006971359253, 0.19646497070789337, 0.26859188079833984, -0.12645266950130463, -0.2299545407295227, 0.2669712007045746, 0.09977612644433975, -0.08008763939142227, -0.15547169744968414, 0.3830471336841583, 0.11051839590072632, 0.2157009094953537, -0.3221602439880371, -0.38463667035102844, 0.4996876120567322, -0.28320178389549255, -0.18043731153011322, -0.08072920143604279, 0.3498278558254242, 0.17445433139801025, -0.27037423849105835, -0.6277050971984863, -0.10346502810716629, 0.11246868968009949, 0.12799891829490662, -0.21314527094364166, 0.1316390037536621, -0.30356767773628235, 0.04271910712122917, -0.08071192353963852, 0.771286129951477, 0.2134261429309845, -0.030820447951555252, 0.11939574778079987, -0.3566485047340393 ]
https://github.com/huggingface/datasets/issues/3920
'datasets.features' is not a package
Hi @Arij-Aladel, You are using a very old version of our library `datasets`: 1.8.0 Current version is 2.0.0 (and the previous one was 1.18.4) Please, try to update `datasets` library and check if the problem persists: ```shell /env/bin/pip install -U datasets
@albertvillanova python 3.9 os: ubuntu 20.04 In conda environment torch installed by ```/env/bin/pip install torch==1.9.0+cu111 torchvision==0.10.0+cu111 torchaudio==0.9.0 -f https://download.pytorch.org/whl/torch_stable.html``` datasets package is installed by ``` /env/bin/pip install datasets==1.8.0 ``` During runing the code I have this error ``` [6]<stderr>: File "/home/arij/Memory-transformer-with-hierarchical-attention_MLM/env/lib/python3.9/site-packages/torch/serialization.py", line 875, in find_class [6]<stderr>: return super().find_class(mod_name, name) [6]<stderr>:ModuleNotFoundError: No module named 'datasets.features.features'; 'datasets.features' is not a package ``` precisely this error appears when torch.load('data_file.pt') ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/arij/Memory-transformer-with-hierarchical-attention_MLM/env/lib/python3.9/site-packages/torch/serialization.py", line 607, in load return _load(opened_zipfile, map_location, pickle_module, **pickle_load_args) File "/home/arij/Memory-transformer-with-hierarchical-attention_MLM/env/lib/python3.9/site-packages/torch/serialization.py", line 882, in _load result = unpickler.load() File "/home/arij/Memory-transformer-with-hierarchical-attention_MLM/env/lib/python3.9/site-packages/torch/serialization.py", line 875, in find_class return super().find_class(mod_name, name) ModuleNotFoundError: No module named 'datasets.features.features'; 'datasets.features' is not a package ``` Why I am getting this error?
41
'datasets.features' is not a package @albertvillanova python 3.9 os: ubuntu 20.04 In conda environment torch installed by ```/env/bin/pip install torch==1.9.0+cu111 torchvision==0.10.0+cu111 torchaudio==0.9.0 -f https://download.pytorch.org/whl/torch_stable.html``` datasets package is installed by ``` /env/bin/pip install datasets==1.8.0 ``` During runing the code I have this error ``` [6]<stderr>: File "/home/arij/Memory-transformer-with-hierarchical-attention_MLM/env/lib/python3.9/site-packages/torch/serialization.py", line 875, in find_class [6]<stderr>: return super().find_class(mod_name, name) [6]<stderr>:ModuleNotFoundError: No module named 'datasets.features.features'; 'datasets.features' is not a package ``` precisely this error appears when torch.load('data_file.pt') ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/arij/Memory-transformer-with-hierarchical-attention_MLM/env/lib/python3.9/site-packages/torch/serialization.py", line 607, in load return _load(opened_zipfile, map_location, pickle_module, **pickle_load_args) File "/home/arij/Memory-transformer-with-hierarchical-attention_MLM/env/lib/python3.9/site-packages/torch/serialization.py", line 882, in _load result = unpickler.load() File "/home/arij/Memory-transformer-with-hierarchical-attention_MLM/env/lib/python3.9/site-packages/torch/serialization.py", line 875, in find_class return super().find_class(mod_name, name) ModuleNotFoundError: No module named 'datasets.features.features'; 'datasets.features' is not a package ``` Why I am getting this error? Hi @Arij-Aladel, You are using a very old version of our library `datasets`: 1.8.0 Current version is 2.0.0 (and the previous one was 1.18.4) Please, try to update `datasets` library and check if the problem persists: ```shell /env/bin/pip install -U datasets
[ -0.3741750717163086, -0.22591999173164368, -0.09576916694641113, 0.38590580224990845, 0.3267723321914673, 0.13503113389015198, 0.26702067255973816, 0.2414320409297943, -0.3361455202102661, -0.14156855642795563, 0.2684740126132965, 0.5509803295135498, -0.2597140669822693, -0.11254910379648209, -0.06670638918876648, -0.2506268620491028, 0.1918475329875946, 0.08867080509662628, -0.17539989948272705, 0.05060774087905884, -0.10208342969417572, 0.1772274225950241, -0.3086733818054199, 0.10468301177024841, -0.4401833117008209, -0.1291007399559021, 0.0576624870300293, 0.0011673495173454285, -0.13088321685791016, -0.399321585893631, 0.1733085811138153, -0.16565865278244019, 0.20088133215904236, 0.5336258411407471, -0.00011024416016880423, -0.10228168964385986, 0.33392465114593506, -0.23506730794906616, -0.4051908254623413, -0.26962411403656006, 0.22399604320526123, -0.3448658883571625, 0.14054837822914124, -0.3205176889896393, -0.06486145406961441, -0.12189709395170212, -0.19568198919296265, -0.3246593177318573, -0.08891986310482025, 0.19991959631443024, 0.27525678277015686, 0.267362117767334, 0.34145304560661316, -0.10779186338186264, 0.19695879518985748, 0.26476991176605225, -0.24338331818580627, 0.08721950650215149, 0.2781103849411011, 0.09321686625480652, 0.18580052256584167, 0.39207538962364197, -0.456419974565506, 0.19954393804073334, 0.5340100526809692, -0.1901661902666092, -0.4218785762786865, -0.31499215960502625, 0.11905639618635178, 0.10653910040855408, 0.796087920665741, -0.36334508657455444, -0.28720003366470337, -0.008440278470516205, 0.020924966782331467, -0.1926264613866806, 0.1773245483636856, 0.2702401876449585, -0.11275741457939148, -0.06549392640590668, -0.035116761922836304, -0.12356740236282349, 0.1466795802116394, 0.08738831430673599, 0.023481249809265137, 0.27007168531417847, -0.239439457654953, 0.21988803148269653, -0.07782241702079773, -0.15123313665390015, 0.2789127826690674, 0.0992506742477417, 0.25504887104034424, 0.19500461220741272, -0.12746655941009521, 0.05939074605703354, 0.03587530553340912, -0.5418816208839417, -0.023245658725500107, 0.08670292794704437, -0.038979023694992065, -0.007804345339536667, 0.09801064431667328, 0.05334644019603729, -0.042688529938459396, 0.22712242603302002, 0.11537754535675049, 0.4202689528465271, 0.03676001355051994, -0.10194555670022964, 0.14799782633781433, -0.0050262585282325745, -0.2203562706708908, -0.11633581668138504, -0.023935794830322266, 0.2413005530834198, 0.28395432233810425, -0.06533555686473846, -0.19467651844024658, 0.08955992758274078, -0.11487186700105667, -0.1264280527830124, 0.018678508698940277, 0.39361393451690674, 0.06177138909697533, 0.18921628594398499, 0.24960292875766754, 0.08985432982444763, -0.13638420403003693, 0.13494211435317993, -0.10189004242420197, 0.2601061165332794, -0.19463281333446503, -0.14825330674648285, 0.2276371568441391, -0.30550089478492737, 0.3545939028263092, -0.23950347304344177, 0.019527580589056015, 0.0681515634059906, 0.018961651250720024, -0.10807028412818909, 0.009323999285697937, 0.23945112526416779, -0.18299856781959534, 0.26771095395088196, 0.27975010871887207, 0.6432611346244812, -0.3090866506099701, 0.2902590036392212, -0.26923897862434387, -0.3517669439315796, -0.2852003872394562, 0.19589978456497192, 0.10388997197151184, 0.09138026833534241, 0.17037470638751984, -0.21502144634723663, 0.2958920896053314, -0.3047989010810852, 0.06185177341103554, -0.11401467025279999, 0.07036565244197845, -0.24778608977794647, 0.09030582010746002, 0.28641200065612793, -0.40727800130844116, -0.24135984480381012, 0.1788349449634552, -0.040697526186704636, 0.055856384336948395, -0.3058129847049713, -0.21954190731048584, 0.33049890398979187, -0.28533193469047546, -0.1353888064622879, 0.3486596941947937, -0.2800935208797455, -0.3074305057525635, 0.002001630375161767, -0.08193129301071167, -0.15498292446136475, 0.08199379593133926, 0.19810324907302856, 0.005579514428973198, 0.10803565382957458, 0.1426400989294052, 0.15172289311885834, 0.3037722110748291, -0.19951830804347992, -0.03550901636481285, -0.2358681559562683, 0.3622281551361084, 0.1398119330406189, 0.30745068192481995, -0.023919321596622467, 0.05824511498212814, 0.07442797720432281, -0.06564844399690628, 0.04967092350125313, -0.14296114444732666, 0.3088865280151367, 0.08220194280147552, 0.3442078232765198, 0.06463411450386047, -0.2338404655456543, -0.17890450358390808, 0.11573866754770279, -0.03917606547474861, -0.022163458168506622, -0.4385873079299927, 0.10390153527259827, 0.014368264004588127, 0.028883198276162148, -0.21154747903347015, -0.29560935497283936, 0.1296864002943039, 0.17594175040721893, -0.11914956569671631, -0.11431865394115448, -0.31494277715682983, 0.5230894684791565, 0.1073751151561737, 0.06159152835607529, -0.33575648069381714, 0.21512176096439362, -0.3341526985168457, -0.33242520689964294, -0.011332141235470772, 0.24160295724868774, 0.4527861475944519, -0.19768452644348145, -0.1754535436630249, 0.29432007670402527, -0.11125565320253372, -0.24716289341449738, -0.14325717091560364, -0.17965562641620636, 0.09061401337385178, -0.28480058908462524, 0.28814831376075745, 0.258849173784256, 0.13362647593021393, 0.03994932770729065, 0.17150259017944336, 0.1567477136850357, 0.1792507767677307, 0.042357854545116425, 0.1538580060005188, 0.15633398294448853, 0.14080829918384552, -0.013587206602096558, 0.04917629808187485, -0.05725564807653427, 0.301737904548645, 0.06137221306562424, 0.11577217280864716, 0.08872893452644348, -0.21417826414108276, -0.158018559217453, 0.24114736914634705, -0.06252806633710861, 0.11269177496433258, 0.026463480666279793, -0.35451990365982056, 0.30179694294929504, 0.30626165866851807, -0.5455058813095093, 0.45737963914871216, 0.16244268417358398, -0.20859092473983765, -0.05471578985452652, 0.08784670382738113, 0.13446326553821564, 0.2282802164554596, 0.17003166675567627, -0.07012283802032471, 0.24215078353881836, -0.1418667733669281, 0.23564903438091278, -0.048891350626945496, -0.27748754620552063, -0.11230342090129852, 0.04522673040628433, -0.3060614764690399, 0.18040181696414948, -0.28327420353889465, 0.07697699964046478, -0.3119245767593384, -0.3987561762332916, -0.19129979610443115, -0.040501225739717484, -0.11433221399784088, 0.09673886001110077, 0.279266893863678, 0.3615090548992157, -0.15127918124198914, -0.11778773367404938, 0.33059781789779663, -0.5154702067375183, 0.14459873735904694, 0.07882276922464371, -0.11448454111814499, 0.02616630122065544, 0.012874347157776356, 0.019678857177495956, 0.38106250762939453, -0.11074289679527283, 0.19321182370185852, -0.312522828578949, -0.18344861268997192, 0.2537645101547241, -0.20774973928928375, -0.12841935455799103, 0.2780032157897949, -0.08780094981193542, 0.11909759044647217, -0.39301204681396484, 0.2900562882423401, -0.14665473997592926, -0.12009643018245697, 0.1572495847940445, 0.06971954554319382, -0.25995346903800964, -0.02577127516269684, -0.703116774559021, -0.41416066884994507, -0.40536677837371826, -0.16339562833309174, 0.09794026613235474, 0.19347096979618073, 0.16473090648651123, 0.30098891258239746, 0.27138209342956543, 0.28019773960113525, 0.2716802954673767, -0.08012185245752335, -0.12011805176734924, 0.3552948534488678, -0.13764087855815887, -0.281904399394989, 0.04763934388756752, -0.017822040244936943, 0.09193240851163864, 0.32459986209869385, -0.30154892802238464, -0.07867111265659332, 0.09804392606019974, 0.24990475177764893, -0.307530015707016, 0.2871677279472351, 0.4976470172405243, 0.2648237645626068, -0.08831655979156494, -0.12027726322412491, -0.12881511449813843, -0.21213793754577637, -0.27437567710876465, 0.5441573858261108, 0.08987916260957718, 0.35918641090393066, -0.08743681013584137, 0.7763411998748779, 0.11341868340969086, -0.3107065260410309, 0.298134982585907, 0.050173480063676834, 0.39419978857040405, -0.1232939288020134, -0.5466141104698181, 0.19644375145435333, -0.17088723182678223, 0.0900067389011383, -0.025041133165359497, -0.2001853883266449, -0.1408824622631073, -0.2492641657590866, 0.10744589567184448, -0.12176007032394409, 0.05130969360470772, 0.05214231461286545, -0.2855060398578644, 0.45198553800582886, -0.2216452956199646, 0.28811922669410706, -0.24876832962036133, 0.1426340639591217, 0.1584223210811615, 0.22098302841186523, 0.0030384808778762817, 0.07780099660158157, -0.41878756880760193, -0.15482887625694275, -0.19084051251411438, 0.2923682928085327, 0.04104273021221161, 0.37432435154914856, -0.07573486119508743, -0.13548137247562408, -0.011224374175071716, 0.03736716881394386, 0.4620533585548401, 0.2408917248249054, -0.21120671927928925, 0.30334052443504333, -0.027022290974855423, -0.36680281162261963, -0.35842326283454895, 0.02493343874812126, 0.3707382082939148, 0.03719872981309891, 0.025850344449281693, -0.217615008354187, -0.21170242130756378, 0.4089055359363556, 0.16623905301094055, -0.06532011181116104, -0.20080526173114777, -0.49668678641319275, -0.2267846167087555, -0.532019317150116, -0.15989533066749573, -0.032059408724308014, 0.08639157563447952, -0.018129223957657814, -0.2054261714220047, -0.1696622222661972, -0.1352301836013794, 0.06478703767061234, -0.1818404644727707, 0.3392963111400604, -0.09797731786966324, 0.06942287087440491, 0.057453930377960205, 0.4522797465324402, 0.4305257499217987, 0.46374380588531494, 0.09853294491767883, -0.17335331439971924, 0.046103693544864655, -0.10460610687732697, 0.2627708613872528, 0.019664324820041656, -0.16025744378566742, -0.21856343746185303, -0.3358825445175171, 0.05258310213685036, -0.23460546135902405, 0.04959253594279289, 0.31707990169525146, -0.13133929669857025, -0.4279490113258362, -0.27027127146720886, 0.3132436275482178, 0.20573720335960388, 0.12184853851795197, 0.26049304008483887, -0.36194247007369995, -0.1658412218093872, 0.15071985125541687, 0.16693979501724243, 0.8320006132125854, 0.03990831971168518, -0.01936480775475502, -0.014578398317098618, 0.001198548823595047, 0.17768989503383636, -0.4797196388244629, 0.22602520883083344, -0.22526124119758606, -0.24064739048480988, -0.21968257427215576, -0.2536159157752991, 0.3146797716617584, 0.07288606464862823, -0.35507136583328247, 0.39165276288986206, -0.3155171275138855, 0.0948949009180069, -0.03874370455741882, 0.0208110511302948, 0.031146470457315445, -0.1235293298959732, 0.21808896958827972, 0.16266563534736633, -0.18669365346431732, 0.538061797618866, -0.07751969248056412, 0.13432645797729492, -0.27294808626174927, -0.4975568652153015, -0.17902852594852448, 0.01723584532737732, -0.29910871386528015, 0.4744400382041931, 0.06246522441506386, -0.41841959953308105, 0.020318441092967987, 0.14943575859069824, -0.1316712647676468, 0.030212659388780594, -0.0559551864862442, 0.02090298943221569, 0.11362308263778687, -0.16295531392097473, -0.15873976051807404, 0.06089981645345688, 0.43800562620162964, -0.012162288650870323, -0.120182104408741, 0.30072832107543945, -0.2026798129081726, -0.12918157875537872, 0.13042041659355164, -0.009007014334201813, 0.49532562494277954, -0.33495041728019714, -0.19469067454338074, 0.12883689999580383, 0.09283779561519623, -0.09914621710777283, 0.14738354086875916, 0.08858640491962433, -0.23025892674922943, 0.22016185522079468, -0.060708265751600266, -0.0464637465775013, -0.14554575085639954, 0.4257330894470215, 0.025198854506015778, -0.09715770930051804, 0.30826693773269653, 0.12963323295116425, -0.4059511423110962, -0.13645577430725098, 0.0021717697381973267, 0.06170475110411644, -0.24137815833091736, -0.1518009901046753, 0.10439767688512802, -0.11247720569372177, -0.09419086575508118, 0.1932571977376938, 0.07084713876247406, 0.09288790822029114, -0.20950539410114288, -0.20462104678153992, -0.4415660500526428, 0.007133319973945618, -0.20169790089130402, 0.21546176075935364, -0.04287233576178551, 0.17202723026275635, 0.29143133759498596, -0.02463238500058651, -0.30549514293670654, -0.0807790532708168, -0.18042634427547455, 0.05773000419139862, 0.3512424826622009, 0.14731842279434204, -0.2900450527667999, 0.03983648121356964, 0.16489283740520477, 0.03824838995933533, -0.16154374182224274, -0.18867221474647522, 0.04508637264370918, 0.08936673402786255, 0.049118176102638245, -0.08633944392204285, -0.24162675440311432, -0.3026331663131714, -0.06494538486003876, -0.12369576096534729, 0.040712762624025345, 0.30590036511421204, 0.004430003464221954, 0.3837522864341736, -0.08332523703575134, -0.01871369034051895, -0.12753385305404663, 0.10102378576993942, 0.009692445397377014, 0.14698660373687744, 0.24046888947486877, -0.11950938403606415, 0.15342694520950317, 0.2368829846382141, -0.36800119280815125, 0.08798453211784363, 0.12387537956237793, -0.07242084294557571, 0.28189733624458313, -0.23667581379413605, 0.1622786968946457, 0.11432017385959625, -0.007200941443443298, 0.29386866092681885, -0.40682703256607056, 0.02991362474858761, 0.2632197439670563, 0.25054633617401123, -0.37909674644470215, -0.3383805453777313, -0.1862896978855133, 0.027066607028245926, -0.14200574159622192, 0.03688473999500275, 0.2599121630191803, 0.042442500591278076, 0.35020947456359863, 0.10942324250936508, 0.458891898393631, 0.10470753163099289, 0.321412056684494, 0.3904522955417633, 0.25067394971847534, 0.07528974860906601, 0.4124307334423065, 0.10028748214244843, 0.20619980990886688, 0.4392406940460205, -0.08337778598070145, 0.44040554761886597, 0.2258222997188568, 0.11029794812202454, 0.13345611095428467, -0.20126713812351227, -0.08292075991630554, -0.055171042680740356, 0.3932676315307617, -0.08956526964902878, -0.20299407839775085, 0.2844516336917877, -0.5359916090965271, -0.24801112711429596, 0.01295378990471363, 0.10742096602916718, -0.22247332334518433, 0.15216761827468872, 0.20833444595336914, -0.001278311014175415, -0.02494180202484131, -0.00033765286207199097, 0.060766223818063736, -0.14244331419467926, 0.3217042088508606, 0.06129436194896698, -0.37564975023269653, -0.2069338858127594, 0.343535840511322, 0.20722761750221252, -0.07168661803007126, -0.1754911094903946, -0.00862918607890606, 0.09294118732213974, 0.01766645535826683, -0.1332242488861084, 0.23995184898376465, 0.43495073914527893, 0.3649115264415741, -0.20951363444328308, -0.2165943831205368, -0.024998821318149567, 0.033600665628910065, 0.052087247371673584, 0.21853342652320862, -0.18643325567245483, 0.1656481921672821, 0.04995608702301979, 0.1358557641506195, -0.18797838687896729, 0.06801506876945496, 0.25798624753952026, 0.05791017785668373, -0.14474809169769287, 0.37336117029190063, -0.41807451844215393, -0.3002009987831116, -0.15730278193950653, 0.12614460289478302, -0.5329145193099976, 0.3028823733329773, 0.6953955888748169, 0.21016357839107513, -0.10064411908388138, -0.0446716770529747, 0.05710877478122711, -0.20953069627285004, 0.22364968061447144, 0.27103862166404724, 0.0633525475859642, -0.21935917437076569, -0.06399037688970566, -0.39367544651031494, 0.3142837882041931, 0.17512735724449158, -0.08270224928855896, 0.16996893286705017, -0.10917067527770996, 0.05902903899550438, 0.05207808315753937, -0.006501704454421997, -0.29846280813217163, 0.24614277482032776, -0.005984082818031311, -0.4277285933494568, -0.18105074763298035, -0.06220747530460358, 0.3620951473712921, 0.13318058848381042, -0.2224636673927307, -0.15551698207855225, -0.22441574931144714, 0.06951162964105606, -0.34156882762908936, -0.37385880947113037, 0.2054353952407837, 0.13270065188407898, 0.7374688982963562, -0.27236872911453247, 0.5493059158325195, -0.007691271603107452, -0.18690668046474457, 0.000631038099527359, -0.04796622321009636, 0.054922979325056076, 0.12912659347057343, 0.15982875227928162, 0.3263165056705475, -0.19642062485218048, 0.0011586882174015045, -0.5071015954017639, 0.45130717754364014, 0.026351608335971832, -0.1768263578414917, -0.25718408823013306, 0.11798921972513199, -0.31918877363204956, 0.08707975596189499, 0.20612211525440216, 0.10192503780126572, -0.04628191143274307, 0.194358229637146, -0.4337760806083679, -0.31689950823783875, 0.5328305959701538, 0.023535247892141342, -0.24673891067504883, -0.017322655767202377, -0.020388662815093994, 0.05060870200395584, 0.14563633501529694, -0.7105305790901184, 0.0613141730427742, 0.30707332491874695, 0.08849471062421799, -0.03304659202694893, 0.07569526135921478, -0.06624956429004669, 0.023167181760072708, -0.04506434500217438, 0.450108140707016, -0.22754967212677002, 0.028077619150280952, -0.012120040133595467, -0.10973648726940155 ]
https://github.com/huggingface/datasets/issues/3920
'datasets.features' is not a package
The problem I can no I have build my project on this version and old version on transformers. I have preprocessed the data again to use it. Thank for your reply
@albertvillanova python 3.9 os: ubuntu 20.04 In conda environment torch installed by ```/env/bin/pip install torch==1.9.0+cu111 torchvision==0.10.0+cu111 torchaudio==0.9.0 -f https://download.pytorch.org/whl/torch_stable.html``` datasets package is installed by ``` /env/bin/pip install datasets==1.8.0 ``` During runing the code I have this error ``` [6]<stderr>: File "/home/arij/Memory-transformer-with-hierarchical-attention_MLM/env/lib/python3.9/site-packages/torch/serialization.py", line 875, in find_class [6]<stderr>: return super().find_class(mod_name, name) [6]<stderr>:ModuleNotFoundError: No module named 'datasets.features.features'; 'datasets.features' is not a package ``` precisely this error appears when torch.load('data_file.pt') ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/arij/Memory-transformer-with-hierarchical-attention_MLM/env/lib/python3.9/site-packages/torch/serialization.py", line 607, in load return _load(opened_zipfile, map_location, pickle_module, **pickle_load_args) File "/home/arij/Memory-transformer-with-hierarchical-attention_MLM/env/lib/python3.9/site-packages/torch/serialization.py", line 882, in _load result = unpickler.load() File "/home/arij/Memory-transformer-with-hierarchical-attention_MLM/env/lib/python3.9/site-packages/torch/serialization.py", line 875, in find_class return super().find_class(mod_name, name) ModuleNotFoundError: No module named 'datasets.features.features'; 'datasets.features' is not a package ``` Why I am getting this error?
31
'datasets.features' is not a package @albertvillanova python 3.9 os: ubuntu 20.04 In conda environment torch installed by ```/env/bin/pip install torch==1.9.0+cu111 torchvision==0.10.0+cu111 torchaudio==0.9.0 -f https://download.pytorch.org/whl/torch_stable.html``` datasets package is installed by ``` /env/bin/pip install datasets==1.8.0 ``` During runing the code I have this error ``` [6]<stderr>: File "/home/arij/Memory-transformer-with-hierarchical-attention_MLM/env/lib/python3.9/site-packages/torch/serialization.py", line 875, in find_class [6]<stderr>: return super().find_class(mod_name, name) [6]<stderr>:ModuleNotFoundError: No module named 'datasets.features.features'; 'datasets.features' is not a package ``` precisely this error appears when torch.load('data_file.pt') ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/arij/Memory-transformer-with-hierarchical-attention_MLM/env/lib/python3.9/site-packages/torch/serialization.py", line 607, in load return _load(opened_zipfile, map_location, pickle_module, **pickle_load_args) File "/home/arij/Memory-transformer-with-hierarchical-attention_MLM/env/lib/python3.9/site-packages/torch/serialization.py", line 882, in _load result = unpickler.load() File "/home/arij/Memory-transformer-with-hierarchical-attention_MLM/env/lib/python3.9/site-packages/torch/serialization.py", line 875, in find_class return super().find_class(mod_name, name) ModuleNotFoundError: No module named 'datasets.features.features'; 'datasets.features' is not a package ``` Why I am getting this error? The problem I can no I have build my project on this version and old version on transformers. I have preprocessed the data again to use it. Thank for your reply
[ -0.3741750717163086, -0.22591999173164368, -0.09576916694641113, 0.38590580224990845, 0.3267723321914673, 0.13503113389015198, 0.26702067255973816, 0.2414320409297943, -0.3361455202102661, -0.14156855642795563, 0.2684740126132965, 0.5509803295135498, -0.2597140669822693, -0.11254910379648209, -0.06670638918876648, -0.2506268620491028, 0.1918475329875946, 0.08867080509662628, -0.17539989948272705, 0.05060774087905884, -0.10208342969417572, 0.1772274225950241, -0.3086733818054199, 0.10468301177024841, -0.4401833117008209, -0.1291007399559021, 0.0576624870300293, 0.0011673495173454285, -0.13088321685791016, -0.399321585893631, 0.1733085811138153, -0.16565865278244019, 0.20088133215904236, 0.5336258411407471, -0.00011024416016880423, -0.10228168964385986, 0.33392465114593506, -0.23506730794906616, -0.4051908254623413, -0.26962411403656006, 0.22399604320526123, -0.3448658883571625, 0.14054837822914124, -0.3205176889896393, -0.06486145406961441, -0.12189709395170212, -0.19568198919296265, -0.3246593177318573, -0.08891986310482025, 0.19991959631443024, 0.27525678277015686, 0.267362117767334, 0.34145304560661316, -0.10779186338186264, 0.19695879518985748, 0.26476991176605225, -0.24338331818580627, 0.08721950650215149, 0.2781103849411011, 0.09321686625480652, 0.18580052256584167, 0.39207538962364197, -0.456419974565506, 0.19954393804073334, 0.5340100526809692, -0.1901661902666092, -0.4218785762786865, -0.31499215960502625, 0.11905639618635178, 0.10653910040855408, 0.796087920665741, -0.36334508657455444, -0.28720003366470337, -0.008440278470516205, 0.020924966782331467, -0.1926264613866806, 0.1773245483636856, 0.2702401876449585, -0.11275741457939148, -0.06549392640590668, -0.035116761922836304, -0.12356740236282349, 0.1466795802116394, 0.08738831430673599, 0.023481249809265137, 0.27007168531417847, -0.239439457654953, 0.21988803148269653, -0.07782241702079773, -0.15123313665390015, 0.2789127826690674, 0.0992506742477417, 0.25504887104034424, 0.19500461220741272, -0.12746655941009521, 0.05939074605703354, 0.03587530553340912, -0.5418816208839417, -0.023245658725500107, 0.08670292794704437, -0.038979023694992065, -0.007804345339536667, 0.09801064431667328, 0.05334644019603729, -0.042688529938459396, 0.22712242603302002, 0.11537754535675049, 0.4202689528465271, 0.03676001355051994, -0.10194555670022964, 0.14799782633781433, -0.0050262585282325745, -0.2203562706708908, -0.11633581668138504, -0.023935794830322266, 0.2413005530834198, 0.28395432233810425, -0.06533555686473846, -0.19467651844024658, 0.08955992758274078, -0.11487186700105667, -0.1264280527830124, 0.018678508698940277, 0.39361393451690674, 0.06177138909697533, 0.18921628594398499, 0.24960292875766754, 0.08985432982444763, -0.13638420403003693, 0.13494211435317993, -0.10189004242420197, 0.2601061165332794, -0.19463281333446503, -0.14825330674648285, 0.2276371568441391, -0.30550089478492737, 0.3545939028263092, -0.23950347304344177, 0.019527580589056015, 0.0681515634059906, 0.018961651250720024, -0.10807028412818909, 0.009323999285697937, 0.23945112526416779, -0.18299856781959534, 0.26771095395088196, 0.27975010871887207, 0.6432611346244812, -0.3090866506099701, 0.2902590036392212, -0.26923897862434387, -0.3517669439315796, -0.2852003872394562, 0.19589978456497192, 0.10388997197151184, 0.09138026833534241, 0.17037470638751984, -0.21502144634723663, 0.2958920896053314, -0.3047989010810852, 0.06185177341103554, -0.11401467025279999, 0.07036565244197845, -0.24778608977794647, 0.09030582010746002, 0.28641200065612793, -0.40727800130844116, -0.24135984480381012, 0.1788349449634552, -0.040697526186704636, 0.055856384336948395, -0.3058129847049713, -0.21954190731048584, 0.33049890398979187, -0.28533193469047546, -0.1353888064622879, 0.3486596941947937, -0.2800935208797455, -0.3074305057525635, 0.002001630375161767, -0.08193129301071167, -0.15498292446136475, 0.08199379593133926, 0.19810324907302856, 0.005579514428973198, 0.10803565382957458, 0.1426400989294052, 0.15172289311885834, 0.3037722110748291, -0.19951830804347992, -0.03550901636481285, -0.2358681559562683, 0.3622281551361084, 0.1398119330406189, 0.30745068192481995, -0.023919321596622467, 0.05824511498212814, 0.07442797720432281, -0.06564844399690628, 0.04967092350125313, -0.14296114444732666, 0.3088865280151367, 0.08220194280147552, 0.3442078232765198, 0.06463411450386047, -0.2338404655456543, -0.17890450358390808, 0.11573866754770279, -0.03917606547474861, -0.022163458168506622, -0.4385873079299927, 0.10390153527259827, 0.014368264004588127, 0.028883198276162148, -0.21154747903347015, -0.29560935497283936, 0.1296864002943039, 0.17594175040721893, -0.11914956569671631, -0.11431865394115448, -0.31494277715682983, 0.5230894684791565, 0.1073751151561737, 0.06159152835607529, -0.33575648069381714, 0.21512176096439362, -0.3341526985168457, -0.33242520689964294, -0.011332141235470772, 0.24160295724868774, 0.4527861475944519, -0.19768452644348145, -0.1754535436630249, 0.29432007670402527, -0.11125565320253372, -0.24716289341449738, -0.14325717091560364, -0.17965562641620636, 0.09061401337385178, -0.28480058908462524, 0.28814831376075745, 0.258849173784256, 0.13362647593021393, 0.03994932770729065, 0.17150259017944336, 0.1567477136850357, 0.1792507767677307, 0.042357854545116425, 0.1538580060005188, 0.15633398294448853, 0.14080829918384552, -0.013587206602096558, 0.04917629808187485, -0.05725564807653427, 0.301737904548645, 0.06137221306562424, 0.11577217280864716, 0.08872893452644348, -0.21417826414108276, -0.158018559217453, 0.24114736914634705, -0.06252806633710861, 0.11269177496433258, 0.026463480666279793, -0.35451990365982056, 0.30179694294929504, 0.30626165866851807, -0.5455058813095093, 0.45737963914871216, 0.16244268417358398, -0.20859092473983765, -0.05471578985452652, 0.08784670382738113, 0.13446326553821564, 0.2282802164554596, 0.17003166675567627, -0.07012283802032471, 0.24215078353881836, -0.1418667733669281, 0.23564903438091278, -0.048891350626945496, -0.27748754620552063, -0.11230342090129852, 0.04522673040628433, -0.3060614764690399, 0.18040181696414948, -0.28327420353889465, 0.07697699964046478, -0.3119245767593384, -0.3987561762332916, -0.19129979610443115, -0.040501225739717484, -0.11433221399784088, 0.09673886001110077, 0.279266893863678, 0.3615090548992157, -0.15127918124198914, -0.11778773367404938, 0.33059781789779663, -0.5154702067375183, 0.14459873735904694, 0.07882276922464371, -0.11448454111814499, 0.02616630122065544, 0.012874347157776356, 0.019678857177495956, 0.38106250762939453, -0.11074289679527283, 0.19321182370185852, -0.312522828578949, -0.18344861268997192, 0.2537645101547241, -0.20774973928928375, -0.12841935455799103, 0.2780032157897949, -0.08780094981193542, 0.11909759044647217, -0.39301204681396484, 0.2900562882423401, -0.14665473997592926, -0.12009643018245697, 0.1572495847940445, 0.06971954554319382, -0.25995346903800964, -0.02577127516269684, -0.703116774559021, -0.41416066884994507, -0.40536677837371826, -0.16339562833309174, 0.09794026613235474, 0.19347096979618073, 0.16473090648651123, 0.30098891258239746, 0.27138209342956543, 0.28019773960113525, 0.2716802954673767, -0.08012185245752335, -0.12011805176734924, 0.3552948534488678, -0.13764087855815887, -0.281904399394989, 0.04763934388756752, -0.017822040244936943, 0.09193240851163864, 0.32459986209869385, -0.30154892802238464, -0.07867111265659332, 0.09804392606019974, 0.24990475177764893, -0.307530015707016, 0.2871677279472351, 0.4976470172405243, 0.2648237645626068, -0.08831655979156494, -0.12027726322412491, -0.12881511449813843, -0.21213793754577637, -0.27437567710876465, 0.5441573858261108, 0.08987916260957718, 0.35918641090393066, -0.08743681013584137, 0.7763411998748779, 0.11341868340969086, -0.3107065260410309, 0.298134982585907, 0.050173480063676834, 0.39419978857040405, -0.1232939288020134, -0.5466141104698181, 0.19644375145435333, -0.17088723182678223, 0.0900067389011383, -0.025041133165359497, -0.2001853883266449, -0.1408824622631073, -0.2492641657590866, 0.10744589567184448, -0.12176007032394409, 0.05130969360470772, 0.05214231461286545, -0.2855060398578644, 0.45198553800582886, -0.2216452956199646, 0.28811922669410706, -0.24876832962036133, 0.1426340639591217, 0.1584223210811615, 0.22098302841186523, 0.0030384808778762817, 0.07780099660158157, -0.41878756880760193, -0.15482887625694275, -0.19084051251411438, 0.2923682928085327, 0.04104273021221161, 0.37432435154914856, -0.07573486119508743, -0.13548137247562408, -0.011224374175071716, 0.03736716881394386, 0.4620533585548401, 0.2408917248249054, -0.21120671927928925, 0.30334052443504333, -0.027022290974855423, -0.36680281162261963, -0.35842326283454895, 0.02493343874812126, 0.3707382082939148, 0.03719872981309891, 0.025850344449281693, -0.217615008354187, -0.21170242130756378, 0.4089055359363556, 0.16623905301094055, -0.06532011181116104, -0.20080526173114777, -0.49668678641319275, -0.2267846167087555, -0.532019317150116, -0.15989533066749573, -0.032059408724308014, 0.08639157563447952, -0.018129223957657814, -0.2054261714220047, -0.1696622222661972, -0.1352301836013794, 0.06478703767061234, -0.1818404644727707, 0.3392963111400604, -0.09797731786966324, 0.06942287087440491, 0.057453930377960205, 0.4522797465324402, 0.4305257499217987, 0.46374380588531494, 0.09853294491767883, -0.17335331439971924, 0.046103693544864655, -0.10460610687732697, 0.2627708613872528, 0.019664324820041656, -0.16025744378566742, -0.21856343746185303, -0.3358825445175171, 0.05258310213685036, -0.23460546135902405, 0.04959253594279289, 0.31707990169525146, -0.13133929669857025, -0.4279490113258362, -0.27027127146720886, 0.3132436275482178, 0.20573720335960388, 0.12184853851795197, 0.26049304008483887, -0.36194247007369995, -0.1658412218093872, 0.15071985125541687, 0.16693979501724243, 0.8320006132125854, 0.03990831971168518, -0.01936480775475502, -0.014578398317098618, 0.001198548823595047, 0.17768989503383636, -0.4797196388244629, 0.22602520883083344, -0.22526124119758606, -0.24064739048480988, -0.21968257427215576, -0.2536159157752991, 0.3146797716617584, 0.07288606464862823, -0.35507136583328247, 0.39165276288986206, -0.3155171275138855, 0.0948949009180069, -0.03874370455741882, 0.0208110511302948, 0.031146470457315445, -0.1235293298959732, 0.21808896958827972, 0.16266563534736633, -0.18669365346431732, 0.538061797618866, -0.07751969248056412, 0.13432645797729492, -0.27294808626174927, -0.4975568652153015, -0.17902852594852448, 0.01723584532737732, -0.29910871386528015, 0.4744400382041931, 0.06246522441506386, -0.41841959953308105, 0.020318441092967987, 0.14943575859069824, -0.1316712647676468, 0.030212659388780594, -0.0559551864862442, 0.02090298943221569, 0.11362308263778687, -0.16295531392097473, -0.15873976051807404, 0.06089981645345688, 0.43800562620162964, -0.012162288650870323, -0.120182104408741, 0.30072832107543945, -0.2026798129081726, -0.12918157875537872, 0.13042041659355164, -0.009007014334201813, 0.49532562494277954, -0.33495041728019714, -0.19469067454338074, 0.12883689999580383, 0.09283779561519623, -0.09914621710777283, 0.14738354086875916, 0.08858640491962433, -0.23025892674922943, 0.22016185522079468, -0.060708265751600266, -0.0464637465775013, -0.14554575085639954, 0.4257330894470215, 0.025198854506015778, -0.09715770930051804, 0.30826693773269653, 0.12963323295116425, -0.4059511423110962, -0.13645577430725098, 0.0021717697381973267, 0.06170475110411644, -0.24137815833091736, -0.1518009901046753, 0.10439767688512802, -0.11247720569372177, -0.09419086575508118, 0.1932571977376938, 0.07084713876247406, 0.09288790822029114, -0.20950539410114288, -0.20462104678153992, -0.4415660500526428, 0.007133319973945618, -0.20169790089130402, 0.21546176075935364, -0.04287233576178551, 0.17202723026275635, 0.29143133759498596, -0.02463238500058651, -0.30549514293670654, -0.0807790532708168, -0.18042634427547455, 0.05773000419139862, 0.3512424826622009, 0.14731842279434204, -0.2900450527667999, 0.03983648121356964, 0.16489283740520477, 0.03824838995933533, -0.16154374182224274, -0.18867221474647522, 0.04508637264370918, 0.08936673402786255, 0.049118176102638245, -0.08633944392204285, -0.24162675440311432, -0.3026331663131714, -0.06494538486003876, -0.12369576096534729, 0.040712762624025345, 0.30590036511421204, 0.004430003464221954, 0.3837522864341736, -0.08332523703575134, -0.01871369034051895, -0.12753385305404663, 0.10102378576993942, 0.009692445397377014, 0.14698660373687744, 0.24046888947486877, -0.11950938403606415, 0.15342694520950317, 0.2368829846382141, -0.36800119280815125, 0.08798453211784363, 0.12387537956237793, -0.07242084294557571, 0.28189733624458313, -0.23667581379413605, 0.1622786968946457, 0.11432017385959625, -0.007200941443443298, 0.29386866092681885, -0.40682703256607056, 0.02991362474858761, 0.2632197439670563, 0.25054633617401123, -0.37909674644470215, -0.3383805453777313, -0.1862896978855133, 0.027066607028245926, -0.14200574159622192, 0.03688473999500275, 0.2599121630191803, 0.042442500591278076, 0.35020947456359863, 0.10942324250936508, 0.458891898393631, 0.10470753163099289, 0.321412056684494, 0.3904522955417633, 0.25067394971847534, 0.07528974860906601, 0.4124307334423065, 0.10028748214244843, 0.20619980990886688, 0.4392406940460205, -0.08337778598070145, 0.44040554761886597, 0.2258222997188568, 0.11029794812202454, 0.13345611095428467, -0.20126713812351227, -0.08292075991630554, -0.055171042680740356, 0.3932676315307617, -0.08956526964902878, -0.20299407839775085, 0.2844516336917877, -0.5359916090965271, -0.24801112711429596, 0.01295378990471363, 0.10742096602916718, -0.22247332334518433, 0.15216761827468872, 0.20833444595336914, -0.001278311014175415, -0.02494180202484131, -0.00033765286207199097, 0.060766223818063736, -0.14244331419467926, 0.3217042088508606, 0.06129436194896698, -0.37564975023269653, -0.2069338858127594, 0.343535840511322, 0.20722761750221252, -0.07168661803007126, -0.1754911094903946, -0.00862918607890606, 0.09294118732213974, 0.01766645535826683, -0.1332242488861084, 0.23995184898376465, 0.43495073914527893, 0.3649115264415741, -0.20951363444328308, -0.2165943831205368, -0.024998821318149567, 0.033600665628910065, 0.052087247371673584, 0.21853342652320862, -0.18643325567245483, 0.1656481921672821, 0.04995608702301979, 0.1358557641506195, -0.18797838687896729, 0.06801506876945496, 0.25798624753952026, 0.05791017785668373, -0.14474809169769287, 0.37336117029190063, -0.41807451844215393, -0.3002009987831116, -0.15730278193950653, 0.12614460289478302, -0.5329145193099976, 0.3028823733329773, 0.6953955888748169, 0.21016357839107513, -0.10064411908388138, -0.0446716770529747, 0.05710877478122711, -0.20953069627285004, 0.22364968061447144, 0.27103862166404724, 0.0633525475859642, -0.21935917437076569, -0.06399037688970566, -0.39367544651031494, 0.3142837882041931, 0.17512735724449158, -0.08270224928855896, 0.16996893286705017, -0.10917067527770996, 0.05902903899550438, 0.05207808315753937, -0.006501704454421997, -0.29846280813217163, 0.24614277482032776, -0.005984082818031311, -0.4277285933494568, -0.18105074763298035, -0.06220747530460358, 0.3620951473712921, 0.13318058848381042, -0.2224636673927307, -0.15551698207855225, -0.22441574931144714, 0.06951162964105606, -0.34156882762908936, -0.37385880947113037, 0.2054353952407837, 0.13270065188407898, 0.7374688982963562, -0.27236872911453247, 0.5493059158325195, -0.007691271603107452, -0.18690668046474457, 0.000631038099527359, -0.04796622321009636, 0.054922979325056076, 0.12912659347057343, 0.15982875227928162, 0.3263165056705475, -0.19642062485218048, 0.0011586882174015045, -0.5071015954017639, 0.45130717754364014, 0.026351608335971832, -0.1768263578414917, -0.25718408823013306, 0.11798921972513199, -0.31918877363204956, 0.08707975596189499, 0.20612211525440216, 0.10192503780126572, -0.04628191143274307, 0.194358229637146, -0.4337760806083679, -0.31689950823783875, 0.5328305959701538, 0.023535247892141342, -0.24673891067504883, -0.017322655767202377, -0.020388662815093994, 0.05060870200395584, 0.14563633501529694, -0.7105305790901184, 0.0613141730427742, 0.30707332491874695, 0.08849471062421799, -0.03304659202694893, 0.07569526135921478, -0.06624956429004669, 0.023167181760072708, -0.04506434500217438, 0.450108140707016, -0.22754967212677002, 0.028077619150280952, -0.012120040133595467, -0.10973648726940155 ]
https://github.com/huggingface/datasets/issues/3919
AttributeError: 'DatasetDict' object has no attribute 'features'
You are likely trying to get the `features` from a `DatasetDict`, a dictionary containing `Datasets`. You probably first want to index into a particular split from your `DatasetDict` i.e. `dataset['train'].features`. For example ```python ds = load_dataset('mnist') ds.features ``` Returns ```python --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) [<ipython-input-39-791c1f9df6c2>](https://localhost:8080/#) in <module>() ----> 1 ds.features AttributeError: 'DatasetDict' object has no attribute 'features' ``` If we look at the dataset variable, we see it is a `DatasetDict`: ```python print(ds) DatasetDict({ train: Dataset({ features: ['image', 'label'], num_rows: 60000 }) test: Dataset({ features: ['image', 'label'], num_rows: 10000 }) }) ``` We can grab the features from a split by indexing into `train`: ```python ds['train'].features {'image': Image(decode=True, id=None), 'label': ClassLabel(num_classes=10, names=['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'], id=None)} ``` Hope that helps
## Describe the bug Receiving the error when trying to check for Dataset features ## Steps to reproduce the bug from datasets import Dataset dataset = Dataset.from_pandas(df[['id', 'words', 'bboxes', 'ner_tags', 'image_path']]) dataset.features ## Expected results A clear and concise description of the expected results. ## Actual results Getting the following errror AttributeError: 'DatasetDict' object has no attribute 'features' ## Environment info Copy-and-paste the text below in your GitHub issue. - `datasets` version: 1.18.4 - Platform: Linux-4.14.252-131.483.amzn1.x86_64-x86_64-with-glibc2.9 - Python version: 3.6.13 - PyArrow version: 6.0.1
129
AttributeError: 'DatasetDict' object has no attribute 'features' ## Describe the bug Receiving the error when trying to check for Dataset features ## Steps to reproduce the bug from datasets import Dataset dataset = Dataset.from_pandas(df[['id', 'words', 'bboxes', 'ner_tags', 'image_path']]) dataset.features ## Expected results A clear and concise description of the expected results. ## Actual results Getting the following errror AttributeError: 'DatasetDict' object has no attribute 'features' ## Environment info Copy-and-paste the text below in your GitHub issue. - `datasets` version: 1.18.4 - Platform: Linux-4.14.252-131.483.amzn1.x86_64-x86_64-with-glibc2.9 - Python version: 3.6.13 - PyArrow version: 6.0.1 You are likely trying to get the `features` from a `DatasetDict`, a dictionary containing `Datasets`. You probably first want to index into a particular split from your `DatasetDict` i.e. `dataset['train'].features`. For example ```python ds = load_dataset('mnist') ds.features ``` Returns ```python --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) [<ipython-input-39-791c1f9df6c2>](https://localhost:8080/#) in <module>() ----> 1 ds.features AttributeError: 'DatasetDict' object has no attribute 'features' ``` If we look at the dataset variable, we see it is a `DatasetDict`: ```python print(ds) DatasetDict({ train: Dataset({ features: ['image', 'label'], num_rows: 60000 }) test: Dataset({ features: ['image', 'label'], num_rows: 10000 }) }) ``` We can grab the features from a split by indexing into `train`: ```python ds['train'].features {'image': Image(decode=True, id=None), 'label': ClassLabel(num_classes=10, names=['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'], id=None)} ``` Hope that helps
[ -0.013954099267721176, -0.03527218848466873, -0.10288140177726746, 0.33697444200515747, 0.3277428150177002, 0.02265188843011856, 0.30330103635787964, 0.4544645845890045, 0.1717873215675354, 0.1745666116476059, 0.06919296830892563, 0.4478001594543457, -0.2436327487230301, 0.1366272121667862, -0.1275877058506012, -0.24250206351280212, -0.029421858489513397, 0.17054438591003418, 0.007441364228725433, -0.0669296532869339, -0.14443805813789368, 0.024976462125778198, -0.20566420257091522, 0.26582634449005127, -0.5032066106796265, 0.0041901543736457825, -0.18038822710514069, 0.055174924433231354, -0.03400751203298569, -0.4680497944355011, 0.15242215991020203, -0.1613832265138626, -0.036113444715738297, 0.30581405758857727, -0.00010464845399837941, 0.09342929720878601, 0.16936367750167847, 0.05070120841264725, -0.28138378262519836, -0.36594706773757935, -0.2892951965332031, -0.2373008131980896, 0.14568333327770233, -0.4955085217952728, -0.19542232155799866, -0.1856522411108017, -0.006068268790841103, -0.16229280829429626, -0.015388727188110352, 0.5002396702766418, 0.2862968146800995, 0.26748600602149963, 0.1411435902118683, -0.05305807664990425, 0.3056086003780365, 0.19235071539878845, -0.17733260989189148, 0.12755095958709717, 0.006992846727371216, -0.055815212428569794, 0.09603124856948853, 0.30970337986946106, -0.10831940174102783, 0.22093647718429565, 0.18158365786075592, 0.2157306969165802, 0.033248137682676315, -0.39655598998069763, -0.09770748764276505, 0.18432822823524475, 0.42469117045402527, -0.2445250153541565, -0.4067665636539459, -0.24571016430854797, -0.014759463258087635, -0.23077745735645294, 0.10040602087974548, 0.0007501514628529549, -0.08989201486110687, 0.1927996724843979, 0.02096078172326088, 0.027595404535531998, -0.06493465602397919, 0.14706100523471832, -0.3547362983226776, 0.14129184186458588, -0.017638344317674637, 0.002990424633026123, 0.07036589831113815, -0.03492382913827896, -0.058896567672491074, -0.05530887097120285, 0.007565848529338837, 0.06377864629030228, -0.09857861697673798, -0.09775450825691223, 0.30155855417251587, -0.5063891410827637, 0.005194421857595444, 0.24267196655273438, -0.11632567644119263, -0.13488554954528809, -0.19838428497314453, 0.15866699814796448, 0.1446683704853058, 0.08336196839809418, 0.035031065344810486, 0.5097033381462097, 0.216675266623497, 0.10803569108247757, -0.3452061116695404, -0.17079007625579834, -0.016277208924293518, -0.09451395273208618, 0.30030936002731323, -0.010965604335069656, 0.7289285659790039, -0.2296231985092163, -0.46104544401168823, 0.15620186924934387, -0.31069639325141907, -0.06738432496786118, 0.1400633603334427, 0.3057185113430023, -0.12456568330526352, -0.035419903695583344, 0.05484927445650101, 0.08107725530862808, -0.1669221669435501, -0.045420121401548386, -0.29755181074142456, 0.2615829110145569, 0.0476350300014019, -0.20525380969047546, 0.19100911915302277, -0.13750556111335754, 0.2233583927154541, -0.18459847569465637, 0.09254544228315353, -0.1901542693376541, -0.1291980743408203, -0.3210464119911194, -0.006420664489269257, 0.2904098629951477, -0.19991379976272583, 0.0721983090043068, 0.3901292383670807, -0.39698100090026855, -0.20392319560050964, 0.07647810131311417, -0.20232805609703064, -0.443923681974411, -0.2131587266921997, 0.27373576164245605, -0.0764303058385849, 0.04960445314645767, -0.1618964672088623, 0.11184413731098175, -0.007823102176189423, 0.07518504559993744, 0.03215690702199936, -0.11526522040367126, -0.13549481332302094, -0.19095419347286224, 0.31346946954727173, 0.2843310236930847, -0.2474866807460785, 0.009310662746429443, 0.0902288481593132, -0.16062800586223602, 0.09095686674118042, 0.10207533836364746, -0.13818612694740295, 0.31528398394584656, -0.21103745698928833, 0.18192942440509796, 0.23309436440467834, -0.17243202030658722, -0.5221554040908813, 0.06333868950605392, 0.04358961433172226, 0.14212916791439056, -0.027085192501544952, 0.20097655057907104, 0.20322191715240479, 0.19883234798908234, 0.1635819375514984, 0.3399921655654907, -0.050038546323776245, -0.07079163193702698, -0.16108272969722748, 0.0736411064863205, 0.44701844453811646, 0.050644997507333755, 0.2065850794315338, 0.08102866262197495, -0.02404620498418808, -0.047586407512426376, 0.028733249753713608, -0.04520537331700325, -0.14708475768566132, -0.03271804749965668, 0.41530585289001465, 0.265788197517395, 0.07623142004013062, -0.3513879179954529, -0.17221367359161377, 0.3042089641094208, 0.19370721280574799, 0.15067851543426514, -0.4737115502357483, -0.12062592804431915, -0.21445390582084656, 0.2057483047246933, -0.12725922465324402, -0.29772982001304626, 0.22002089023590088, -0.1370811015367508, -0.04332822561264038, 0.14378206431865692, -0.3122764825820923, 0.36091747879981995, -0.24749304354190826, 0.1307644546031952, -0.09955249726772308, 0.5904867649078369, -0.32228848338127136, -0.09532417356967926, -0.06666668504476547, 0.06260639429092407, 0.09143559634685516, 0.13958881795406342, -0.24764302372932434, 0.21975991129875183, 0.21533037722110748, -0.19629471004009247, 0.09488941729068756, -0.017245516180992126, 0.16231371462345123, -0.3762046992778778, -0.05497554689645767, 0.3310409486293793, 0.2934524714946747, -0.06490197777748108, -0.03635138273239136, 0.3346617817878723, 0.07967119663953781, 0.2509177625179291, 0.06484469771385193, 0.21922948956489563, 0.247346431016922, -0.11294570565223694, -0.03185340762138367, -0.21491605043411255, 0.022009141743183136, -0.35834479331970215, -0.03851309046149254, 0.04961056262254715, -0.4896143674850464, -0.029070667922496796, 0.42848965525627136, 0.054468777030706406, 0.11050139367580414, 0.09990572184324265, -0.04851935803890228, 0.19551843404769897, -0.0648038312792778, -0.03973754495382309, 0.21611490845680237, 0.20315082371234894, -0.08355970680713654, 0.06220628321170807, -0.186453178524971, 0.12117250263690948, 0.1281709223985672, 0.19102364778518677, 0.05696018040180206, 0.0325748547911644, 0.20857937633991241, 0.05200236290693283, -0.13573598861694336, -0.5500061511993408, -0.15187965333461761, 0.4341030716896057, -0.39632943272590637, 0.14547188580036163, -0.3453608751296997, -0.2158285677433014, 0.04585712030529976, -0.43994730710983276, -0.1712983101606369, -0.3245241045951843, 0.12890765070915222, 0.0612177774310112, -0.10600456595420837, 0.15063077211380005, -0.381145179271698, -0.15877516567707062, 0.16442245244979858, -0.09929084777832031, 0.14493301510810852, -0.194255068898201, -0.17719000577926636, 0.11520056426525116, 0.09909790009260178, 0.24535787105560303, 0.25394517183303833, -0.0662795826792717, 0.09977983683347702, -0.2679760158061981, -0.2552330493927002, 0.020804256200790405, -0.2323756068944931, 0.322997123003006, 0.13746236264705658, 0.1334657371044159, -0.019839094951748848, -0.23604492843151093, 0.38553720712661743, 0.12685731053352356, -0.261226624250412, 0.27804461121559143, 0.1323849856853485, -0.20819182693958282, -0.06694221496582031, -0.4795384109020233, -0.2876949608325958, -0.38658764958381653, -0.03690151870250702, 0.16977205872535706, 0.31260448694229126, 0.3071242868900299, 0.23872700333595276, 0.33068326115608215, 0.2524978220462799, 0.2014569789171219, -0.1052926704287529, 0.04414137825369835, 0.42395278811454773, 0.014794973656535149, -0.26914405822753906, -0.06683431565761566, -0.1950058788061142, -0.08668667078018188, -0.012013629078865051, -0.5371823906898499, -0.03862076252698898, -0.26679903268814087, 0.48386019468307495, 0.13510926067829132, -0.16800321638584137, 0.33070969581604004, 0.11464916914701462, -0.19144003093242645, -0.05271570757031441, -0.12319186329841614, 0.08378881216049194, 0.0974913164973259, 0.02112283557653427, -0.012797217816114426, 0.31998351216316223, 0.02224956825375557, 0.40223419666290283, -0.16926704347133636, -0.08873337507247925, 0.2956228256225586, -0.31720399856567383, 0.1582517921924591, -0.1855296492576599, -0.6727222800254822, -0.05122950300574303, -0.06262961030006409, -0.2304861843585968, 0.0026340335607528687, -0.002987327054142952, -0.015222305431962013, -0.36311691999435425, -0.09601791203022003, -0.22242018580436707, -0.30288565158843994, 0.030247366055846214, -0.12089622020721436, 0.10642904043197632, -0.06427354365587234, 0.18701517581939697, -0.21636871993541718, 0.0958891361951828, -0.01488546747714281, 0.1636141836643219, 0.044263552874326706, -0.22579355537891388, -0.4044085144996643, -0.33719152212142944, -0.2090734839439392, 0.14834628999233246, 0.12735670804977417, 0.2618357539176941, 0.049855392426252365, -0.05797318369150162, 0.0892573893070221, -0.014976542443037033, 0.4895961284637451, 0.13579024374485016, -0.032352566719055176, 0.21207532286643982, -0.21763983368873596, -0.21724256873130798, -0.18865488469600677, -0.32676634192466736, 0.3106698989868164, -0.08878561854362488, 0.3744092285633087, -0.15664520859718323, -0.018848443403840065, 0.35498949885368347, 0.042356833815574646, -0.19211673736572266, 0.007604797370731831, -0.20450106263160706, -0.13182640075683594, -0.43408119678497314, 0.10705016553401947, 0.12386248260736465, 0.21186842024326324, 0.09054014086723328, -0.07279711961746216, -0.27004221081733704, -0.051817845553159714, 0.2788478136062622, 0.23015697300434113, 0.1539461612701416, -0.19545120000839233, 0.27432936429977417, -0.13888539373874664, 0.059543829411268234, 0.2998698353767395, 0.5448806285858154, 0.12029580771923065, -0.4198371171951294, -0.2035863995552063, -0.06993332505226135, 0.20538362860679626, 0.0982714593410492, -0.17581650614738464, -0.11047462373971939, -0.10304810851812363, 0.12614354491233826, -0.14620964229106903, 0.0890379324555397, 0.4279269576072693, -0.0005542286671698093, -0.36007148027420044, -0.44477394223213196, 0.4459327161312103, 0.013446144759654999, -0.005855463445186615, 0.3476969003677368, 0.268543541431427, -0.2575814127922058, 0.45513975620269775, -0.05453195422887802, 0.826382577419281, 0.16902242600917816, -0.08791741728782654, 0.41893431544303894, -0.02036510407924652, 0.40667447447776794, 0.07637862861156464, 0.22428134083747864, -0.22118781507015228, -0.5563564896583557, -0.15797728300094604, -0.03219207748770714, 0.12385846674442291, -0.028145089745521545, -0.20523148775100708, 0.22310630977153778, -0.1838391125202179, 0.05753125995397568, -0.05539067089557648, 0.1546042412519455, 0.17577697336673737, -0.018076278269290924, -0.3529493808746338, 0.21409979462623596, -0.19382528960704803, 0.3441389203071594, 0.19625353813171387, 0.03264668956398964, -0.4199730157852173, -0.11939477920532227, -0.3849220871925354, 0.019474435597658157, 0.054328400641679764, 0.33397752046585083, 0.344980388879776, -0.24964569509029388, -0.02942158281803131, -0.06153338775038719, 0.029949501156806946, 0.1405116617679596, -0.10612192749977112, 0.1437109261751175, 0.1349938064813614, 0.0425150990486145, 0.0628456398844719, 0.00967478472739458, 0.6006613969802856, -0.013121090829372406, -0.40130576491355896, 0.21494105458259583, -0.03453364223241806, -0.2119120955467224, 0.14766183495521545, 0.05353253334760666, 0.08608177304267883, -0.395675927400589, -0.2919691801071167, -0.06638030707836151, 0.028134088963270187, -0.3174698054790497, 0.23591041564941406, -0.007079660892486572, -0.26667308807373047, 0.13846072554588318, 0.11053887009620667, -0.2450610250234604, -0.1468660831451416, 0.13718831539154053, 0.06387415528297424, 0.3378026783466339, 0.3366074562072754, 0.2100258618593216, -0.2473025768995285, -0.20640036463737488, -0.02554270252585411, 0.14532168209552765, -0.21194711327552795, 0.19343949854373932, -0.1524318903684616, 0.11122976243495941, -0.14977097511291504, 0.23604349792003632, 0.042243730276823044, 0.11126166582107544, -0.01885075680911541, -0.43118512630462646, -0.27843254804611206, 0.16666926443576813, 0.0005844272673130035, 0.27504870295524597, -0.13065513968467712, 0.09084230661392212, 0.04008597135543823, 0.06291382759809494, -0.39353710412979126, 0.030800435692071915, -0.3916904926300049, 0.24746637046337128, 0.19390913844108582, 0.13183164596557617, 0.03881533071398735, -0.2472522258758545, 0.3335708677768707, -0.05185037851333618, 0.10467112064361572, -0.3349894881248474, -0.16976287961006165, 0.06862708926200867, 0.05514541268348694, -0.031040271744132042, -0.03406506031751633, -0.10742014646530151, -0.07217757403850555, -0.24814072251319885, -0.06809574365615845, 0.4209647476673126, -0.07573571801185608, 0.5515307784080505, 0.1255427747964859, -0.019074372947216034, 0.10871684551239014, 0.10175730288028717, -0.13297872245311737, 0.2903514802455902, 0.2900036573410034, 0.115231953561306, -0.08211074024438858, 0.04932291805744171, -0.47253328561782837, 0.11273838579654694, -0.5414897203445435, 0.13669347763061523, 0.3394870162010193, -0.301433265209198, 0.11472165584564209, 0.16224651038646698, 0.2480127215385437, 0.10116373747587204, -0.20011867582798004, 0.014640981331467628, 0.2555602490901947, 0.33015191555023193, -0.43441200256347656, -0.08212603628635406, 0.3487645983695984, -0.07352478057146072, 0.13158610463142395, 0.25674253702163696, -0.05361132696270943, 0.05115441977977753, -0.3148898482322693, 0.17383134365081787, 0.2143934816122055, 0.018854642286896706, 0.002423419151455164, 0.3287145495414734, -0.03047938272356987, -0.04094129428267479, 0.21205994486808777, 0.1461872011423111, 0.3032192885875702, 0.630563497543335, -0.13978716731071472, 0.0880938321352005, 0.2679827809333801, 0.16719642281532288, 0.13489213585853577, -0.10008688271045685, 0.07727017998695374, -0.046889692544937134, -0.10099771618843079, -0.13996773958206177, -0.10598447918891907, 0.04594400152564049, -0.1659504771232605, 0.022127382457256317, 0.10409101098775864, 0.241540789604187, -0.04107251763343811, 0.16425800323486328, 0.07418055832386017, -0.14156092703342438, -0.20702680945396423, -0.14489008486270905, 0.07894888520240784, -0.2202022820711136, 0.15681639313697815, 0.04551117122173309, -0.203362837433815, -0.3547029197216034, 0.42696282267570496, 0.03537996858358383, 0.31724199652671814, -0.26738211512565613, 0.03660613298416138, 0.23460088670253754, -0.054067254066467285, 0.15804532170295715, 0.24145987629890442, 0.48182955384254456, 0.19233189523220062, -0.149161696434021, -0.03161802142858505, -0.2378738671541214, -0.3354159891605377, 0.02768300101161003, 0.15862855315208435, -0.22296220064163208, 0.2576499879360199, 0.22409886121749878, 0.22178056836128235, -0.20381169021129608, 0.07854470610618591, 0.14694340527057648, 0.2628462612628937, -0.38959020376205444, 0.5054507255554199, 0.13865581154823303, -0.28014782071113586, -0.09167978167533875, -0.10551876574754715, -0.27214646339416504, -0.40604814887046814, 0.2506382465362549, 0.11364970356225967, 0.15805307030677795, 0.0957261249423027, 0.13417929410934448, -0.11299426853656769, 0.1121675968170166, 0.3616020083427429, 0.3468111753463745, -0.18684083223342896, 0.18507333099842072, -0.5115488171577454, 0.06215449795126915, -0.2499549388885498, -0.23228950798511505, 0.19445930421352386, 0.263854056596756, -0.14925745129585266, 0.15436729788780212, 0.17349553108215332, 0.10611561685800552, -0.01898006908595562, 0.09408828616142273, -0.3223618268966675, -0.3729754686355591, -0.2423785775899887, 0.008153168484568596, -0.10810282081365585, -0.0880066528916359, -0.06445980072021484, -0.34744715690612793, 0.1711408495903015, 0.012281903065741062, -0.21066780388355255, 0.16650868952274323, 0.32056620717048645, 0.2840234041213989, 0.09854082018136978, 0.3889370262622833, 0.03221714496612549, 0.14767241477966309, -0.06455829739570618, -0.19189757108688354, -0.20202170312404633, 0.2568937838077545, 0.1049489676952362, 0.5490994453430176, 0.02250134013593197, -0.23422183096408844, -0.2337855100631714, 0.563503623008728, 0.177551731467247, -0.34786179661750793, -0.14327546954154968, 0.22923268377780914, -0.17119979858398438, 0.02999897114932537, -0.029442887753248215, 0.13438843190670013, 0.02353152260184288, 0.11156158149242401, -0.09615348279476166, -0.5894373655319214, 0.5169140100479126, -0.3480845093727112, -0.3138347864151001, -0.20939800143241882, 0.18618237972259521, 0.46068522334098816, 0.08550217747688293, -0.43865880370140076, -0.26203781366348267, 0.4400898814201355, -0.11493586748838425, -0.23762951791286469, 0.023766813799738884, 0.06435190141201019, 0.2617909908294678, -0.00881722941994667, 0.3274315595626831, -0.15022557973861694, -0.05571846663951874, 0.08477127552032471, -0.1101997047662735 ]
https://github.com/huggingface/datasets/issues/3918
datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files
Hi @willowdong! These issues were fixed on master. We will have a new release of `datasets` later today. In the meantime, you can avoid these issues by installing `datasets` from master as follows: ```bash pip install git+https://github.com/huggingface/datasets.git ```
## Describe the bug Can't load the dataset ## Steps to reproduce the bug ```python # Sample code to reproduce the bug ``` from datasets import load_dataset dataset = load_dataset('multi_news') dataset_2=load_dataset("reddit_tifu", "long") ## Actual results raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=1ffWfITKFMJeqjT8loC8aiCLRNJpc_XnF'] ## Environment info - `datasets` version: 1.18.4 - Platform: macOS-10.16-x86_64-i386-64bit - Python version: 3.8.0 - PyArrow version: 6.0.1
38
datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files ## Describe the bug Can't load the dataset ## Steps to reproduce the bug ```python # Sample code to reproduce the bug ``` from datasets import load_dataset dataset = load_dataset('multi_news') dataset_2=load_dataset("reddit_tifu", "long") ## Actual results raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=1ffWfITKFMJeqjT8loC8aiCLRNJpc_XnF'] ## Environment info - `datasets` version: 1.18.4 - Platform: macOS-10.16-x86_64-i386-64bit - Python version: 3.8.0 - PyArrow version: 6.0.1 Hi @willowdong! These issues were fixed on master. We will have a new release of `datasets` later today. In the meantime, you can avoid these issues by installing `datasets` from master as follows: ```bash pip install git+https://github.com/huggingface/datasets.git ```
[ -0.3251981735229492, 0.10444559156894684, -0.12089811265468597, 0.19404193758964539, 0.2922669053077698, 0.04987134039402008, 0.12173217535018921, 0.33443665504455566, 0.09431622922420502, 0.1404137760400772, -0.12785334885120392, 0.2029477059841156, 0.04963637888431549, 0.0912993773818016, -0.2518993318080902, 0.2652892768383026, 0.01607908308506012, -0.04567660391330719, -0.17951789498329163, -0.02387191727757454, -0.24216945469379425, 0.23047146201133728, -0.15581980347633362, -0.16971702873706818, -0.14197492599487305, 0.1738639771938324, 0.05241052061319351, 0.28720414638519287, -0.07561977952718735, -0.23010635375976562, 0.12010660767555237, 0.16647018492221832, -0.08334654569625854, 0.5554540753364563, -0.00010376597492722794, 0.17449375987052917, 0.3435874581336975, -0.020840834826231003, -0.16634683310985565, -0.32620662450790405, -0.4284007251262665, -0.37969332933425903, -0.11701987683773041, -0.20623679459095, -0.01846836507320404, 0.07832950353622437, -0.04581291973590851, -0.11207746714353561, 0.21421776711940765, 0.417229562997818, 0.3292238414287567, 0.4237021505832672, 0.10019879043102264, -0.07194523513317108, 0.306405633687973, -0.10232311487197876, -0.03104386106133461, 0.18292203545570374, 0.020657554268836975, -0.06577195972204208, -0.09725672751665115, 0.34084153175354004, -0.17117808759212494, 0.16198672354221344, -0.15317651629447937, -0.01986059918999672, 0.08025557547807693, -0.18361039459705353, 0.2516777217388153, 0.33878135681152344, 0.3033505976200104, -0.12836885452270508, -0.3122381269931793, -0.057510387152433395, -0.10064428299665451, 0.08613498508930206, 0.37192389369010925, 0.2933351993560791, -0.09345102310180664, 0.18833012878894806, -0.46519434452056885, 0.1557200700044632, 0.03454574942588806, 0.24677620828151703, 0.09373655915260315, 0.06858444958925247, -0.027818161994218826, 0.030192870646715164, 0.07497362792491913, -0.11276549100875854, 0.4349053204059601, -0.31085404753685, 0.0576593242585659, -0.05117853730916977, -0.4282955229282379, -0.006312184035778046, 0.15341214835643768, 0.26463672518730164, 0.3667003810405731, 0.19678263366222382, 0.060116566717624664, 0.1350746750831604, -0.32057997584342957, 0.20077240467071533, 0.0059420280158519745, -0.035074472427368164, -0.06909859925508499, 0.1592850536108017, 0.3608614206314087, 0.19412191212177277, -0.09500473737716675, 0.11825434118509293, -0.0038033900782465935, -0.27701690793037415, 0.2882761061191559, 0.012853576801717281, 0.2886619567871094, -0.34144097566604614, -0.3861631453037262, 0.18065758049488068, 0.05787810683250427, -0.21492114663124084, 0.13297420740127563, 0.46884626150131226, -0.27983012795448303, 0.18328547477722168, -0.1679287552833557, 0.22993150353431702, -0.1847194880247116, -0.07550279796123505, -0.330508291721344, -0.02814643830060959, -0.1138712465763092, -0.010640310123562813, 0.20798002183437347, -0.1856895387172699, 0.33728694915771484, 0.08257154375314713, 0.11556174606084824, -0.15868791937828064, 0.15711118280887604, -0.14226266741752625, -0.04160965234041214, 0.39676085114479065, 0.12312853336334229, 0.15336874127388, 0.2573883533477783, -0.01220020279288292, -0.07997646927833557, 0.17795546352863312, -0.38968977332115173, -0.20658259093761444, -0.03826838731765747, 0.3383522927761078, -0.27545928955078125, -0.08327609300613403, -0.08920081704854965, -0.09604290127754211, 0.23251396417617798, -0.1623983383178711, -0.03519155830144882, -0.17693865299224854, -0.11387479305267334, -0.24328123033046722, 0.18078379333019257, 0.23626214265823364, -0.09674833714962006, 0.03205249458551407, 0.014309298247098923, -0.15991581976413727, 0.1947908103466034, 0.2277044653892517, -0.16255499422550201, -0.028795510530471802, -0.1713346540927887, -0.017227202653884888, 0.24784763157367706, -0.23699289560317993, -0.5096580386161804, 0.06534754484891891, -0.07394654303789139, 0.29449787735939026, 0.10339633375406265, 0.05328395962715149, -0.19021520018577576, -0.048378150910139084, 0.14238116145133972, 0.29008811712265015, 0.13121454417705536, 0.24799877405166626, -0.30401772260665894, -0.3199297785758972, 0.11306177079677582, 0.1988229751586914, 0.13053500652313232, -0.011691935360431671, 0.2603777348995209, -0.22790589928627014, 0.3221949338912964, -0.13263142108917236, -0.10025975853204727, 0.27563101053237915, 0.2547571063041687, 0.08104099333286285, 0.06351570785045624, -0.29729360342025757, -0.4121536612510681, 0.24570316076278687, -0.038302067667245865, -0.0165146142244339, -0.09444814920425415, -0.1573408842086792, -0.31470009684562683, -0.08922827988862991, -0.15880626440048218, -0.017957787960767746, 0.23922595381736755, 0.31782567501068115, 0.2121143937110901, 0.04249029979109764, -0.0707753375172615, 0.296085923910141, -0.24166721105575562, -0.04489212855696678, -0.29106056690216064, 0.5378289222717285, -0.20038798451423645, -0.05814356356859207, 0.21505609154701233, 0.026644036173820496, 0.26151564717292786, -0.10058974474668503, -0.1682828664779663, 0.5476428270339966, 0.1651141494512558, 0.11278026551008224, 0.11270555853843689, 0.2415403574705124, -0.001196170225739479, -0.4421369433403015, -0.0753178596496582, 0.6118805408477783, 0.06213608384132385, -0.07583548873662949, -0.32085761427879333, 0.3685756325721741, -0.13856519758701324, 0.12926031649112701, 0.12971730530261993, 0.054193802177906036, 0.36852651834487915, -0.24756932258605957, -0.01450966764241457, -0.16444429755210876, 0.29344895482063293, -0.11324258148670197, -0.06188239902257919, 0.024949394166469574, -0.15432044863700867, -0.022782452404499054, 0.4171396791934967, -0.030007462948560715, 0.05596724897623062, 0.15487226843833923, 0.01134469360113144, -0.15987294912338257, -0.09797640889883041, 0.42908763885498047, 0.3949565291404724, 0.2348758429288864, 0.025971926748752594, 0.03857085853815079, -0.16390056908130646, -0.22161434590816498, 0.1419145166873932, 0.03299065679311752, 0.17280301451683044, 0.3657894432544708, 0.2601338326931, -0.06302442401647568, -0.35953816771507263, -0.19616080820560455, 0.0646396353840828, 0.20933358371257782, -0.43758755922317505, -0.09439747035503387, -0.2645990252494812, -0.02524593472480774, -0.12750278413295746, -0.041716668754816055, -0.18851757049560547, -0.42841529846191406, 0.008741956204175949, 0.29583674669265747, -0.09296134114265442, 0.25324568152427673, -0.22713473439216614, -0.0029736459255218506, 0.16723203659057617, -0.01965252496302128, 0.1114535927772522, -0.09224263578653336, 0.02060374990105629, 0.15871386229991913, 0.3771224021911621, 0.05593585595488548, 0.2599860727787018, -0.283097505569458, -0.10395945608615875, -0.5253939628601074, -0.27163007855415344, 0.010847531259059906, -0.15098771452903748, 0.22819779813289642, 0.12804454565048218, 0.1844860017299652, -0.0059729889035224915, -0.15724332630634308, 0.33385640382766724, -0.21404053270816803, -0.2097417563199997, 0.23731982707977295, 0.013537476770579815, -0.07892012596130371, 0.09804315865039825, -0.2553718090057373, -0.26569750905036926, -0.3681037724018097, -0.0525885671377182, 0.1545400768518448, 0.19653311371803284, 0.17349742352962494, 0.20039306581020355, 0.12426705658435822, 0.11743303388357162, 0.24313437938690186, -0.3164874017238617, -0.47152677178382874, 0.5315618515014648, -0.20299342274665833, -0.45949363708496094, -0.12201033532619476, 0.09769975394010544, 0.07319189608097076, 0.12190420925617218, -0.5819918513298035, -0.3393837511539459, -0.3437165915966034, 0.0835421085357666, 0.11654143035411835, 0.10277688503265381, 0.18155622482299805, 0.018345750868320465, -0.25543826818466187, -0.2616175413131714, -0.09554743766784668, -0.0749545469880104, -0.1663517951965332, 0.24957171082496643, -0.10130281001329422, 0.13874515891075134, -0.05957670509815216, 0.36822736263275146, 0.3913567364215851, 0.0895826518535614, 0.1297496259212494, 0.017874732613563538, 0.4014892876148224, -0.10940470546483994, -0.32245585322380066, -0.04734306037425995, -0.11997255682945251, -0.01729360967874527, 0.2794901728630066, 0.028291331604123116, -0.023329274728894234, -0.20534585416316986, 0.0001874379813671112, -0.3878914713859558, -0.15351538360118866, -0.02248748578131199, -0.053689099848270416, 0.06242303177714348, 0.14859075844287872, 0.04206479340791702, -0.08235470950603485, -0.24224436283111572, 0.1733534187078476, 0.19398623704910278, -0.33533957600593567, -0.24393285810947418, -0.6115713119506836, 0.04456188529729843, -0.03670549392700195, 0.40174365043640137, 0.11886222660541534, 0.26423361897468567, 0.08526097238063812, -0.18466141819953918, 0.0009688287973403931, -0.22331877052783966, 0.3589746057987213, -0.4670083522796631, 0.223800927400589, 0.092790886759758, 0.08449187874794006, -0.21058662235736847, -0.1031833291053772, -0.15906140208244324, 0.18764179944992065, 0.31406742334365845, 0.32768261432647705, -0.26921722292900085, 0.03480454161763191, 0.21783465147018433, 0.19368405640125275, 0.009883303195238113, -0.2605147659778595, -0.31074750423431396, -0.16509245336055756, -0.435465931892395, -0.16792696714401245, -0.0266037005931139, 0.21735402941703796, -0.4056756794452667, -0.08120837807655334, -0.02514871023595333, -0.07838354259729385, 0.2597423493862152, 0.07201045751571655, 0.2526996433734894, 0.008843118324875832, 0.27319014072418213, -0.04569738358259201, -0.09159870445728302, 0.33955663442611694, 0.9000713229179382, -0.2525014877319336, -0.43205058574676514, 0.036048613488674164, -0.15836960077285767, -0.08978831022977829, 0.14177188277244568, -0.06874177604913712, -0.1316463053226471, 0.3268163502216339, 0.1896221935749054, 0.051342304795980453, 0.041988059878349304, 0.12383932620286942, 0.028404027223587036, -0.30641624331474304, -0.3403691351413727, 0.2581240236759186, 0.0760582834482193, -0.09613103419542313, 0.3767189085483551, -0.0007002130150794983, -0.09337051212787628, 0.21539045870304108, -0.018564730882644653, 0.816746711730957, -0.09275448322296143, -0.014409814029932022, 0.06375835835933685, -0.05809867009520531, 0.1682000309228897, -0.16491980850696564, 0.02617119625210762, -0.29519110918045044, -0.42479559779167175, 0.03711827099323273, -0.17459654808044434, 0.03620430454611778, 0.1741129457950592, -0.14593391120433807, 0.22712452709674835, -0.006957404315471649, 0.22504526376724243, 0.04340352118015289, 0.28667277097702026, -0.08847475051879883, 0.027304060757160187, -0.22085168957710266, 0.29307252168655396, 0.0459187813103199, 0.06232660636305809, -0.0046227360144257545, 0.05793585628271103, -0.13862068951129913, -0.1283203363418579, -0.2966979742050171, 0.25449010729789734, -0.19293145835399628, 0.36433321237564087, 0.14069825410842896, -0.20611494779586792, -0.3440343141555786, 0.2571277916431427, 0.342786967754364, 0.2032148241996765, -0.3472328782081604, 0.23520010709762573, 0.2605372965335846, 0.06837069243192673, -0.07769106328487396, -0.13833220303058624, 0.3357045352458954, -0.022785671055316925, -0.2697606384754181, 0.19545039534568787, -0.07461635768413544, -0.45049774646759033, 0.09579126536846161, -0.08809716999530792, -0.064653180539608, -0.2543289363384247, -0.09419615566730499, -0.14528989791870117, 0.005196236073970795, -0.3810565173625946, 0.24799397587776184, 0.1885288506746292, -0.06301159411668777, 0.1671350598335266, 0.1640794575214386, -0.3328733444213867, -0.21309587359428406, 0.5634602308273315, 0.06769946217536926, -0.1355094462633133, 0.30127429962158203, 0.13100531697273254, -0.2782844305038452, -0.26457875967025757, 0.03540903329849243, -0.018840700387954712, -0.304055392742157, 0.10992173850536346, -0.22028633952140808, 0.10459063947200775, 0.10219120234251022, 0.3893318176269531, 0.23154273629188538, 0.35075706243515015, 0.1312364935874939, -0.6423170566558838, -0.02017335407435894, -0.0047228410840034485, 0.06482332944869995, 0.20055630803108215, -0.1543518304824829, -0.1743970513343811, -0.03310774266719818, 0.012470711953938007, -0.45413586497306824, 0.08195424824953079, -0.329982191324234, 0.0037040673196315765, 0.011840692721307278, -0.03566325455904007, 0.24235448241233826, -0.06371573358774185, 0.25454390048980713, -0.09244242310523987, -0.13314127922058105, -0.3401722013950348, -0.11993758380413055, 0.0970817357301712, 0.09539815783500671, -0.16176322102546692, -0.03433781489729881, -0.1883908361196518, -0.13010336458683014, -0.1867830902338028, 0.09628863632678986, 0.251459002494812, -0.1302362084388733, -0.020093776285648346, 0.03698870912194252, -0.20739862322807312, -0.08195330947637558, -0.11325979232788086, -0.3339618742465973, 0.02835715562105179, -0.0002677631564438343, 0.010089363902807236, -0.09179989248514175, 0.011714167892932892, -0.008814019151031971, 0.1077108085155487, 0.18020811676979065, 0.08548757433891296, 0.3533133864402771, -0.3219224810600281, -0.16870296001434326, 0.36974242329597473, 0.3824246823787689, 0.3148975372314453, -0.400375634431839, -0.0063043273985385895, 0.1606171727180481, 0.3518230617046356, -0.34058326482772827, -0.0836743712425232, 0.1912851780653, -0.1039135754108429, 0.1488317996263504, 0.07411547750234604, 0.16006644070148468, -0.37067002058029175, 0.3438097834587097, 0.189348042011261, 0.36274486780166626, -0.2891691327095032, 0.1432000696659088, 0.23305150866508484, -0.032038964331150055, -0.0006428249180316925, 0.06901980936527252, -0.14419522881507874, -0.051153115928173065, 0.047079309821128845, -0.0669277086853981, 0.31680911779403687, -0.2750926613807678, 0.10706277936697006, -0.12342118471860886, -0.34845930337905884, 0.464780330657959, 0.13298830389976501, -0.22300100326538086, -0.02842789888381958, -0.019383884966373444, 0.23002055287361145, -0.17320558428764343, 0.26654547452926636, -0.44889628887176514, 0.1675969809293747, 0.07315169274806976, -0.11808404326438904, 0.00974775105714798, -0.24904975295066833, -0.09682591259479523, 0.06132226809859276, 0.038575731217861176, 0.01712973415851593, 0.29381823539733887, 0.10357841104269028, -0.1305484175682068, -0.4465365707874298, 0.05767242610454559, 0.01589350216090679, 0.09632585197687149, -0.2808413505554199, 0.2949613034725189, 0.3184124231338501, -0.04008786380290985, 0.07941283285617828, 0.3605577349662781, 0.5183039307594299, 0.31719771027565, 0.10302160680294037, -0.10683773458003998, -0.0334150530397892, -0.07286590337753296, -0.08516710996627808, 0.5696831941604614, 0.024357736110687256, -0.13602764904499054, 0.4195381700992584, 0.27677035331726074, -0.316811740398407, 0.04663582146167755, 0.026815421879291534, -0.0046022310853004456, -0.14703738689422607, 0.16432461142539978, -0.03052205592393875, 0.020187854766845703, -0.10161134600639343, -0.016546055674552917, -0.4118996560573578, -0.2614504396915436, 0.3399813175201416, -0.10818605124950409, 0.25619152188301086, -0.12051085382699966, 0.15945445001125336, -0.005927929654717445, 0.41368791460990906, 0.3206772208213806, 0.0775822326540947, -0.21753722429275513, -0.2855317294597626, -0.7710368633270264, 0.27325740456581116, -0.2597074806690216, 0.016654355451464653, -0.11387623101472855, 0.2710442543029785, -0.029258884489536285, 0.2886205315589905, 0.21960851550102234, -0.17721302807331085, -0.17081288993358612, 0.13080227375030518, -0.3710585832595825, -0.090512216091156, 0.005661122500896454, -0.06627628952264786, 0.03692932426929474, -0.3051983416080475, 0.16314737498760223, -0.06883041560649872, 0.1745363175868988, -0.06350819766521454, -0.06766076385974884, -0.04939815402030945, -0.005859989672899246, 0.25540468096733093, 0.034443698823451996, 0.5188740491867065, -0.176155686378479, -0.1703777313232422, -0.18157562613487244, -0.219975084066391, -0.01877603679895401, 0.3412051498889923, 0.05817628651857376, 0.4106433391571045, -0.1149480864405632, -0.20832423865795135, -0.08090580999851227, 0.2761739194393158, 0.05578804761171341, -0.37698203325271606, -0.0485183447599411, 0.050543710589408875, -0.11263322830200195, 0.10826967656612396, 0.02230551466345787, 0.017351504415273666, -0.04059310257434845, 0.3363281190395355, -0.1108475923538208, -0.482267290353775, 0.4292309880256653, -0.13866758346557617, -0.08469487726688385, -0.19346177577972412, 0.2980421185493469, -0.24751925468444824, -0.026080897077918053, -0.5874741673469543, 0.24073809385299683, 0.4082554876804352, 0.14538225531578064, -0.2057095617055893, 0.18870556354522705, -0.19609014689922333, 0.19184057414531708, -0.04742562025785446, 0.04842992126941681, 0.10779564082622528, -0.2527146339416504, 0.11214053630828857, -0.1427140235900879 ]
https://github.com/huggingface/datasets/issues/3909
Error loading file audio when downloading the Common Voice dataset directly from the Hub
Hi ! It could an issue with torchaudio, which version of torchaudio are you using ? Can you also try updating `datasets` to 2.0.0 and see if it works ?
## Describe the bug When loading the Common_Voice dataset, by downloading it directly from the Hugging Face hub, some files can not be opened. ## Steps to reproduce the bug ```python import torch import torchaudio from datasets import load_dataset, load_metric from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor import re test_dataset = load_dataset("common_voice", "it", split="test") #test_dataset = load_dataset('csv', data_files = {'test': '/workspace/Dataset/Common_Voice/cv-corpus80/it/test.csv'}) wer = load_metric("wer") processor = Wav2Vec2Processor.from_pretrained("joorock12/wav2vec2-large-xlsr-italian") model = Wav2Vec2ForCTC.from_pretrained("joorock12/wav2vec2-large-xlsr-italian") model.to("cuda") chars_to_ignore_regex = '[\,\?\.\!\-\;\:\"\“\'\�]' resampler = torchaudio.transforms.Resample(48_000, 16_000) ``` ## Expected results The common voice dataset downloaded and correctly loaded whit the use of the hugging face datasets library. ## Actual results The error is: ```python 0ex [00:00, ?ex/s] --------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) <ipython-input-48-ef87f4129e6e> in <module> 7 return batch 8 ----> 9 test_dataset = test_dataset.map(speech_file_to_array_fn) /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in map(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint, desc) 2107 2108 if num_proc is None or num_proc == 1: -> 2109 return self._map_single( 2110 function=function, 2111 with_indices=with_indices, /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 516 self: "Dataset" = kwargs.pop("self") 517 # apply actual function --> 518 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 519 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 520 for dataset in datasets: /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 483 } 484 # apply actual function --> 485 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 486 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 487 # re-apply format to the output /opt/conda/lib/python3.8/site-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 411 # Call actual function 412 --> 413 out = func(self, *args, **kwargs) 414 415 # Update fingerprint of in-place transforms + update in-place history of transforms /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in _map_single(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, new_fingerprint, rank, offset, disable_tqdm, desc, cache_only) 2465 if not batched: 2466 for i, example in enumerate(pbar): -> 2467 example = apply_function_on_filtered_inputs(example, i, offset=offset) 2468 if update_data: 2469 if i == 0: /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in apply_function_on_filtered_inputs(inputs, indices, check_same_num_examples, offset) 2372 if with_rank: 2373 additional_args += (rank,) -> 2374 processed_inputs = function(*fn_args, *additional_args, **fn_kwargs) 2375 if update_data is None: 2376 # Check if the function returns updated examples /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in decorated(item, *args, **kwargs) 2067 ) 2068 # Use the LazyDict internally, while mapping the function -> 2069 result = f(decorated_item, *args, **kwargs) 2070 # Return a standard dict 2071 return result.data if isinstance(result, LazyDict) else result <ipython-input-48-ef87f4129e6e> in speech_file_to_array_fn(batch) 3 def speech_file_to_array_fn(batch): 4 batch["sentence"] = re.sub(chars_to_ignore_regex, '', batch["sentence"]).lower() ----> 5 speech_array, sampling_rate = torchaudio.load(batch["path"]) 6 batch["speech"] = resampler(speech_array).squeeze().numpy() 7 return batch /opt/conda/lib/python3.8/site-packages/torchaudio/backend/sox_io_backend.py in load(filepath, frame_offset, num_frames, normalize, channels_first, format) 150 filepath, frame_offset, num_frames, normalize, channels_first, format) 151 filepath = os.fspath(filepath) --> 152 return torch.ops.torchaudio.sox_io_load_audio_file( 153 filepath, frame_offset, num_frames, normalize, channels_first, format) 154 RuntimeError: Error loading audio file: failed to open file common_voice_it_17415776.mp3 ``` ## Environment info - `datasets` version: 1.18.4 - Platform: Linux-5.4.0-x86_64-with-glibc2.10 - Python version: 3.8.5 - PyArrow version: 7.0.0
30
Error loading file audio when downloading the Common Voice dataset directly from the Hub ## Describe the bug When loading the Common_Voice dataset, by downloading it directly from the Hugging Face hub, some files can not be opened. ## Steps to reproduce the bug ```python import torch import torchaudio from datasets import load_dataset, load_metric from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor import re test_dataset = load_dataset("common_voice", "it", split="test") #test_dataset = load_dataset('csv', data_files = {'test': '/workspace/Dataset/Common_Voice/cv-corpus80/it/test.csv'}) wer = load_metric("wer") processor = Wav2Vec2Processor.from_pretrained("joorock12/wav2vec2-large-xlsr-italian") model = Wav2Vec2ForCTC.from_pretrained("joorock12/wav2vec2-large-xlsr-italian") model.to("cuda") chars_to_ignore_regex = '[\,\?\.\!\-\;\:\"\“\'\�]' resampler = torchaudio.transforms.Resample(48_000, 16_000) ``` ## Expected results The common voice dataset downloaded and correctly loaded whit the use of the hugging face datasets library. ## Actual results The error is: ```python 0ex [00:00, ?ex/s] --------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) <ipython-input-48-ef87f4129e6e> in <module> 7 return batch 8 ----> 9 test_dataset = test_dataset.map(speech_file_to_array_fn) /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in map(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint, desc) 2107 2108 if num_proc is None or num_proc == 1: -> 2109 return self._map_single( 2110 function=function, 2111 with_indices=with_indices, /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 516 self: "Dataset" = kwargs.pop("self") 517 # apply actual function --> 518 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 519 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 520 for dataset in datasets: /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 483 } 484 # apply actual function --> 485 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 486 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 487 # re-apply format to the output /opt/conda/lib/python3.8/site-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 411 # Call actual function 412 --> 413 out = func(self, *args, **kwargs) 414 415 # Update fingerprint of in-place transforms + update in-place history of transforms /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in _map_single(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, new_fingerprint, rank, offset, disable_tqdm, desc, cache_only) 2465 if not batched: 2466 for i, example in enumerate(pbar): -> 2467 example = apply_function_on_filtered_inputs(example, i, offset=offset) 2468 if update_data: 2469 if i == 0: /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in apply_function_on_filtered_inputs(inputs, indices, check_same_num_examples, offset) 2372 if with_rank: 2373 additional_args += (rank,) -> 2374 processed_inputs = function(*fn_args, *additional_args, **fn_kwargs) 2375 if update_data is None: 2376 # Check if the function returns updated examples /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in decorated(item, *args, **kwargs) 2067 ) 2068 # Use the LazyDict internally, while mapping the function -> 2069 result = f(decorated_item, *args, **kwargs) 2070 # Return a standard dict 2071 return result.data if isinstance(result, LazyDict) else result <ipython-input-48-ef87f4129e6e> in speech_file_to_array_fn(batch) 3 def speech_file_to_array_fn(batch): 4 batch["sentence"] = re.sub(chars_to_ignore_regex, '', batch["sentence"]).lower() ----> 5 speech_array, sampling_rate = torchaudio.load(batch["path"]) 6 batch["speech"] = resampler(speech_array).squeeze().numpy() 7 return batch /opt/conda/lib/python3.8/site-packages/torchaudio/backend/sox_io_backend.py in load(filepath, frame_offset, num_frames, normalize, channels_first, format) 150 filepath, frame_offset, num_frames, normalize, channels_first, format) 151 filepath = os.fspath(filepath) --> 152 return torch.ops.torchaudio.sox_io_load_audio_file( 153 filepath, frame_offset, num_frames, normalize, channels_first, format) 154 RuntimeError: Error loading audio file: failed to open file common_voice_it_17415776.mp3 ``` ## Environment info - `datasets` version: 1.18.4 - Platform: Linux-5.4.0-x86_64-with-glibc2.10 - Python version: 3.8.5 - PyArrow version: 7.0.0 Hi ! It could an issue with torchaudio, which version of torchaudio are you using ? Can you also try updating `datasets` to 2.0.0 and see if it works ?
[ -0.2770323157310486, -0.5579105615615845, 0.09589694440364838, 0.4342244267463684, 0.09727804362773895, 0.027911096811294556, 0.15836107730865479, 0.33873307704925537, 0.22135819494724274, 0.15522411465644836, -0.6184945702552795, 0.18397583067417145, -0.05294143408536911, -0.3478994071483612, -0.05929677188396454, -0.11353304982185364, 0.05205851420760155, 0.12789690494537354, 0.006890520453453064, -0.2776695787906647, -0.23433703184127808, 0.28213611245155334, -0.2509043216705322, 0.3531126379966736, -0.41620147228240967, 0.018599342554807663, 0.23966798186302185, 0.5088717341423035, -0.10240722447633743, -0.3314360976219177, 0.3121221661567688, -0.049110058695077896, 0.21300554275512695, 0.42743340134620667, -0.00011626708146650344, 0.01847243309020996, 0.42071837186813354, -0.09775641560554504, -0.12180495262145996, -0.23716510832309723, -0.19443681836128235, 0.3139556646347046, -0.02869165875017643, 0.11379411071538925, 0.061336398124694824, 0.23813310265541077, 0.026398228481411934, -0.18683810532093048, 0.679694652557373, 0.43267786502838135, 0.13235680758953094, 0.31490659713745117, 0.08415131270885468, -0.1255195289850235, 0.20867401361465454, -0.05309772491455078, 0.0639687180519104, 0.5049846768379211, 0.30220597982406616, 0.00259303767234087, -0.07932626456022263, 0.14007936418056488, -0.31338444352149963, -0.06280699372291565, 0.04819555580615997, 0.06921328604221344, -0.426424503326416, -0.38632896542549133, 0.10070794820785522, 0.2126060426235199, 0.3382570445537567, -0.2975596487522125, -0.25352251529693604, -0.04287698119878769, -0.058155354112386703, -0.18395376205444336, 0.2144213318824768, 0.3430328071117401, -0.37090981006622314, 0.23434549570083618, -0.18853528797626495, -0.004032709635794163, -0.1982617974281311, 0.058018382638692856, 0.10877946019172668, -0.009603306651115417, -0.02408905327320099, 0.14499402046203613, 0.2289453148841858, 0.018675196915864944, 0.05647570267319679, 0.03250373899936676, -0.15864931046962738, 0.39803871512413025, -0.34383630752563477, 0.04840007424354553, -0.1927213966846466, -0.014284588396549225, 0.1082155779004097, -0.08669380098581314, 0.24339264631271362, 0.05876778066158295, -0.23499979078769684, 0.10373343527317047, 0.23148411512374878, 0.06012197956442833, -0.16859948635101318, 0.03925395384430885, 0.29576343297958374, 0.017396776005625725, 0.014471843838691711, -0.1853044033050537, -0.3221342861652374, -0.3186969757080078, -0.14338745176792145, 0.09794499725103378, 0.19261899590492249, -0.27118220925331116, -0.6065789461135864, 0.04596153646707535, -0.03390328958630562, 0.1479753702878952, 0.17384935915470123, 0.31211206316947937, 0.016977332532405853, 0.31723660230636597, 0.20833487808704376, 0.32961905002593994, -0.2861897945404053, -0.021716203540563583, -0.0565779022872448, 0.1310737282037735, -0.09009547531604767, 0.09019054472446442, 0.3719748556613922, -0.22760462760925293, 0.2882646918296814, 0.20364227890968323, 0.5024918913841248, -0.24629946053028107, -0.1376001536846161, -0.09106007218360901, -0.0856826975941658, 0.15259021520614624, 0.14541095495224, 0.24470292031764984, -0.01570010557770729, 0.17074118554592133, -0.12184935063123703, 0.2836284637451172, -0.5029199123382568, -0.2279486209154129, -0.06333234161138535, 0.08435345441102982, -0.06915614008903503, 0.21165704727172852, -0.12493100017309189, -0.25759825110435486, -0.05730409175157547, -0.5344335436820984, -0.036678723990917206, -0.27148622274398804, -0.13042688369750977, -0.002776735695078969, 0.3777680993080139, 0.3689073920249939, -0.03938111662864685, 0.12282519042491913, 0.25821900367736816, 0.00014906376600265503, 0.11490777879953384, 0.3810599446296692, -0.1746087521314621, 0.11200635880231857, -0.48481953144073486, 0.35615843534469604, 0.22818255424499512, -0.8792298436164856, -0.5025163888931274, 0.06289049983024597, -0.037103187292814255, 0.3826613426208496, -0.018000729382038116, 0.0565459243953228, 0.10723871737718582, -0.06808920204639435, 0.4597163796424866, 0.2403297871351242, 0.1922263354063034, 0.0933542251586914, -0.013021349906921387, -0.10080482810735703, -0.054364725947380066, 0.14788371324539185, -0.08365412056446075, 0.10020548105239868, 0.07504963129758835, 0.284922331571579, 0.4207438826560974, -0.0055228956043720245, -0.031135352328419685, 0.09051112830638885, 0.1467074751853943, -0.3343490958213806, -0.03124464862048626, -0.1820223033428192, -0.27533137798309326, 0.2643183171749115, -0.2552793622016907, -0.002508345991373062, -0.07806146144866943, -0.0329587496817112, -0.39293399453163147, -0.13749152421951294, -0.4621693789958954, -0.07916873693466187, -0.07062454521656036, -0.04195162653923035, -0.09313219785690308, -0.12476550042629242, -0.14919625222682953, 0.5878197550773621, 0.055098265409469604, 0.12425758689641953, -0.42913058400154114, 0.3229445219039917, 0.024823784828186035, -0.030508678406476974, 0.14741358160972595, 0.26910170912742615, 0.18435212969779968, 0.02096908539533615, -0.35535258054733276, 0.34442654252052307, 0.027948522940278053, 0.5421099066734314, -0.26071470975875854, -0.17290695011615753, 0.3404977023601532, -0.5525878667831421, 0.15411531925201416, 0.29732152819633484, 0.26975297927856445, -0.006363842636346817, -0.10973940044641495, 0.25175991654396057, -0.10282127559185028, 0.018935061991214752, 0.03397834300994873, -0.05582156032323837, 0.17936912178993225, 0.15102048218250275, -0.12889593839645386, 0.22698885202407837, 0.14321470260620117, 0.23597963154315948, 0.5638932585716248, -0.2110595703125, -0.2772648334503174, -0.43520522117614746, 0.3617568612098694, 0.0532027892768383, 0.021741025149822235, 0.26164764165878296, -0.3282064199447632, -0.032182078808546066, 0.21952202916145325, -0.5220211744308472, 0.4011763334274292, 0.06110561639070511, -0.0803278237581253, 0.2169056385755539, -0.05586007982492447, -0.08555246144533157, 0.03866899758577347, 0.051218703389167786, -0.12749633193016052, 0.5026895403862, -0.06063156574964523, 0.08067140728235245, -0.4853990972042084, -0.0822642371058464, -0.30685895681381226, 0.028065117076039314, -0.4187680780887604, -0.14754781126976013, 0.04546543210744858, 0.36578965187072754, -0.1748250126838684, -0.24361242353916168, -0.3200421929359436, 0.11623135209083557, -0.026017118245363235, 0.6292791366577148, 0.02971501648426056, 0.03812052309513092, 0.11472339928150177, 0.2774619162082672, 0.2759174704551697, -0.08548887073993683, -0.2166493684053421, 0.17867058515548706, -0.23782047629356384, -0.021520836278796196, 0.16123907268047333, 0.21292296051979065, -0.08307084441184998, -0.21213191747665405, 0.2197173535823822, -0.17499202489852905, 0.12032520025968552, 0.12909939885139465, 0.04738793522119522, 0.08906523138284683, -0.12384140491485596, 0.1089024692773819, 0.06711980700492859, -0.4015740156173706, 0.07105322927236557, -0.10025634616613388, -0.05633460730314255, -0.042991187423467636, -0.02343771420419216, -0.01307118684053421, -0.02713935822248459, -0.545944094657898, -0.3770199716091156, -0.5261210799217224, 0.24776524305343628, -0.13639779388904572, 0.036179497838020325, -0.029861275106668472, -0.03858410567045212, -0.08212710916996002, -0.07616680860519409, 0.0971461609005928, -0.1557803750038147, -0.26470765471458435, 0.309308260679245, -0.1937536895275116, -0.33318376541137695, 0.0525224544107914, 0.033474162220954895, 0.4599122405052185, -0.10991264134645462, -0.24993227422237396, -0.008260473608970642, 0.04814992845058441, 0.18314117193222046, -0.09988492727279663, -0.07636593282222748, 0.11369621008634567, 0.0019146844279021025, 0.0809374675154686, 0.05231861025094986, -0.009031057357788086, 0.022821269929409027, 0.33897843956947327, 0.024671807885169983, 0.13368560373783112, 0.06707312166690826, -0.24614155292510986, 0.6589117050170898, 0.45807820558547974, 0.14896930754184723, 0.2617548704147339, -0.19428709149360657, 0.1342177391052246, -0.3761756122112274, -0.37782248854637146, -0.08691157400608063, -0.28992632031440735, -0.043990358710289, 0.5156703591346741, 0.16831758618354797, 0.009578267112374306, -0.37715333700180054, -0.18304263055324554, -0.25266072154045105, -0.29770609736442566, -0.09708845615386963, -0.04316405951976776, 0.025047797709703445, 0.058458294719457626, 0.27664515376091003, 0.0747424066066742, -0.1940096914768219, 0.20087693631649017, 0.08338311314582825, 0.287151575088501, -0.05479157343506813, -0.009123027324676514, -0.06178690865635872, -0.41861772537231445, 0.030735604465007782, 0.1404174566268921, 0.534278154373169, -0.22692416608333588, -0.01436610147356987, 0.06381159275770187, 0.20995871722698212, 0.47142183780670166, 0.2789836823940277, 0.2866937518119812, -0.014352003112435341, 0.13850779831409454, -0.16818097233772278, 0.01891050860285759, -0.16929833590984344, 0.11901309341192245, 0.18159078061580658, 0.379824697971344, -0.031138833612203598, -0.07682528346776962, -0.09382424503564835, 0.333234578371048, 0.06378093361854553, -0.17394180595874786, -0.19881467521190643, -0.040970176458358765, -0.4132498800754547, 0.18625473976135254, 0.12071508914232254, 0.28672510385513306, -0.3996559977531433, -0.07379723340272903, 0.3993132710456848, -0.029008837416768074, 0.2683798670768738, 0.07178448140621185, 0.33029869198799133, -0.018429696559906006, 0.5079402327537537, 0.34190189838409424, 0.27935123443603516, -0.12642981112003326, 0.8726478815078735, 0.16466845571994781, -0.32467398047447205, 0.1023121103644371, -0.14930832386016846, -0.1009916290640831, 0.5327768921852112, -0.05585196614265442, -0.12248688191175461, -0.06683029979467392, -0.00208909809589386, -0.33247360587120056, 0.2613466680049896, 0.3142696022987366, 0.2035779356956482, -0.3986468017101288, -0.053624458611011505, 0.3759845197200775, 0.013521041721105576, -0.15399828553199768, 0.2730399966239929, 0.15352126955986023, -0.18436942994594574, 0.11813164502382278, -0.2964574098587036, 1.0028693675994873, 0.29215991497039795, 0.38279834389686584, 0.33120766282081604, -0.0403263121843338, -0.25095823407173157, -0.3336679935455322, 0.12121297419071198, -0.195364311337471, -0.009909839369356632, -0.08722211420536041, -0.1132839247584343, 0.010335206985473633, 0.08502357453107834, -0.047607485204935074, 0.16018682718276978, 0.1450435370206833, 0.15587502717971802, 0.09084368497133255, 0.1495521366596222, -0.20617999136447906, -0.36241960525512695, 0.13761049509048462, -0.03631533682346344, 0.008114513009786606, 0.4701991379261017, 0.027335677295923233, -0.20948491990566254, -0.12359604239463806, -0.43839800357818604, -0.2067754864692688, 0.4537021219730377, -0.02490997686982155, 0.015206215903162956, 0.01389496773481369, -0.2945724129676819, 0.28440946340560913, 0.2792624235153198, 0.24092541635036469, 0.09079261124134064, -0.4155939519405365, 0.33117491006851196, -0.08191638439893723, 0.16726641356945038, -0.035567548125982285, 0.1296275556087494, -0.03349057585000992, 0.012440256774425507, -0.27931106090545654, 0.12695690989494324, -0.06181180477142334, -0.08563102036714554, -0.08044236153364182, 0.21885205805301666, 0.30540239810943604, -0.28523752093315125, -0.3833872079849243, -0.08823654055595398, -0.08520680665969849, -0.08969622850418091, 0.08523978292942047, 0.020793724805116653, -0.26321035623550415, 0.028793390840291977, 0.13482971489429474, -0.19870103895664215, 0.07361789792776108, 0.7157278656959534, -0.21619486808776855, -0.40783554315567017, 0.525931715965271, -0.03187789022922516, -0.1757955551147461, -0.18215447664260864, 0.010316140949726105, 0.22788503766059875, -0.7808632850646973, -0.08664583414793015, 0.0636194720864296, -0.016169942915439606, -0.26184701919555664, 0.24291348457336426, 0.19839337468147278, -0.14161664247512817, 0.03535440191626549, -0.3575725257396698, -0.3615676462650299, 0.14261282980442047, -0.010569274425506592, 0.22173704206943512, 0.11650729924440384, -0.18187673389911652, 0.06232482194900513, -0.14183980226516724, -0.20647580921649933, 0.19626659154891968, -0.009395597502589226, 0.022348549216985703, 0.04063926637172699, -0.11828801780939102, 0.22060193121433258, -0.053671225905418396, 0.10214763879776001, 0.3039659261703491, -0.18094773590564728, -0.02308243326842785, -0.042056068778038025, 0.21786414086818695, 0.023754261434078217, -0.38775283098220825, 0.02898479998111725, 0.062146253883838654, -0.0851418673992157, -0.19581125676631927, 0.2831711173057556, 0.42211171984672546, -0.04726536571979523, 0.013724126853048801, -0.14231979846954346, 0.03260470926761627, -0.1692994385957718, 0.24321550130844116, -0.09351427853107452, 0.18204471468925476, -0.01983621157705784, 0.13155832886695862, -0.3124009966850281, -0.11211840808391571, -0.10252625495195389, 0.15947449207305908, 0.46348804235458374, 0.015816006809473038, 0.346934974193573, -0.1923011988401413, 0.21910378336906433, -0.06629229336977005, 0.3411138951778412, 0.2435232251882553, -0.32933923602104187, 0.0363701730966568, 0.07581855356693268, 0.10577034950256348, -0.22725267708301544, -0.1414531022310257, -0.03557751700282097, -0.36020228266716003, -0.02304612100124359, -0.07206862419843674, 0.23506879806518555, -0.22633253037929535, -0.020852841436862946, -0.13155849277973175, 0.525967001914978, -0.03318247199058533, 0.09584097564220428, 0.41311314702033997, -0.03663492947816849, 0.13297760486602783, 0.002517400309443474, -0.06277187168598175, 0.06262171268463135, 0.7115365266799927, -0.6978963613510132, 0.32272979617118835, -0.028169691562652588, 0.20823754370212555, 0.15712305903434753, -0.5921528935432434, -0.45160040259361267, -0.2154974639415741, -0.1937330663204193, 0.018517307937145233, 0.026244420558214188, 0.25458988547325134, -0.43879610300064087, -0.2378970980644226, -0.3239344656467438, -0.0800803005695343, -0.0958557054400444, -0.059052564203739166, -0.0014115013182163239, -0.26197922229766846, -0.2249443084001541, 0.09458263218402863, -0.12867684662342072, 0.0023498274385929108, 0.011743150651454926, 0.1596602201461792, 0.07600148022174835, 0.1438908725976944, -0.34576934576034546, 0.1408289074897766, -0.09282314032316208, -0.16015590727329254, 0.3072662651538849, 0.23558449745178223, -0.00004850327968597412, 0.4841148257255554, 0.21162159740924835, 0.41191384196281433, 0.23468101024627686, -0.1337091624736786, 0.28372445702552795, 0.015671081840991974, 0.061894893646240234, 0.15075258910655975, 0.17140795290470123, 0.13324429094791412, 0.4558273255825043, 0.15403854846954346, 0.15771034359931946, -0.076406329870224, 0.0038068927824497223, -0.13753101229667664, -0.0006683319807052612, -0.31447499990463257, 0.20412170886993408, -0.3874052166938782, -0.10375910997390747, -0.2713545858860016, -0.12411905080080032, -0.35081079602241516, -0.021677006036043167, 0.2912825047969818, 0.09558927267789841, 0.1698872148990631, 0.05434950441122055, 0.02193460240960121, -0.1371026188135147, 0.18775752186775208, 0.39388325810432434, 0.2558993995189667, -0.22049416601657867, -0.1704561710357666, -0.48756417632102966, 0.35607051849365234, 0.2565136253833771, 0.07519616931676865, 0.013225976377725601, -0.2334994673728943, -0.08682560175657272, 0.06714159995317459, 0.008107803761959076, -0.12664566934108734, -0.0661567822098732, -0.02463717758655548, -0.07811778783798218, -0.10590320825576782, 0.15233266353607178, 0.27882859110832214, -0.09651102125644684, -0.624112606048584, 0.1253812462091446, 0.11245261877775192, -0.07089421153068542, 0.061471156775951385, 0.01043611764907837, -0.273332804441452, -0.0715714693069458, 0.16231894493103027, 0.08624143898487091, 0.5717625617980957, -0.21861761808395386, 0.0313815176486969, -0.173872172832489, -0.32304808497428894, 0.02933143451809883, -0.2709759473800659, -0.07250240445137024, 0.564789891242981, 0.09582987427711487, -0.09765683114528656, -0.3332044184207916, 0.08346625417470932, -0.12430719286203384, -0.015079692006111145, -0.5276537537574768, 0.05318921059370041, -0.3631989061832428, 0.23524655401706696, 0.035567428916692734, 0.20453280210494995, -0.1933111846446991, 0.0221614558249712, -0.20922574400901794, -0.36021485924720764, 0.7947116494178772, -0.3871307969093323, -0.2767919600009918, -0.18636015057563782, 0.4942859411239624, -0.0789816752076149, -0.08302656561136246, -0.33390480279922485, 0.20013993978500366, 0.15004682540893555, -0.04587758332490921, -0.22052977979183197, -0.04882187768816948, -0.10193786025047302, -0.20831264555454254, -0.04813859239220619, 0.31086403131484985, 0.39258232712745667, -0.2813003957271576, 0.28173041343688965, -0.49086499214172363 ]
https://github.com/huggingface/datasets/issues/3909
Error loading file audio when downloading the Common Voice dataset directly from the Hub
I _might_ have a similar issue. I'm trying to use the librispeech_asr dataset and read it with soundfile. ```python from datasets import load_dataset, load_metric from transformers import Speech2TextForConditionalGeneration, Speech2TextProcessor import soundfile as sf librispeech_eval = load_dataset("librispeech_asr", "clean", split="test") # change to "other" for other test dataset wer = load_metric("wer") model = Speech2TextForConditionalGeneration.from_pretrained("facebook/s2t-small-librispeech-asr").to("cuda") processor = Speech2TextProcessor.from_pretrained("facebook/s2t-small-librispeech-asr", do_upper_case=True) def map_to_array(batch): speech, _ = sf.read(batch["file"]) batch["speech"] = speech return batch librispeech_eval = librispeech_eval.map(map_to_array) def map_to_pred(batch): features = processor(batch["speech"], sampling_rate=16000, padding=True, return_tensors="pt") input_features = features.input_features.to("cuda") attention_mask = features.attention_mask.to("cuda") gen_tokens = model.generate(input_ids=input_features, attention_mask=attention_mask) batch["transcription"] = processor.batch_decode(gen_tokens, skip_special_tokens=True) return batch result = librispeech_eval.map(map_to_pred, batched=True, batch_size=8, remove_columns=["speech"]) print("WER:", wer(predictions=result["transcription"], references=result["text"])) ``` The code is taken directly from "https://huggingface.co/facebook/s2t-small-librispeech-asr". The short error code is "RuntimeError: Error opening '6930-75918-0000.flac': System error." (it can't find the first file), and I agree, I can't find the file either. The dataset has downloaded correctly (it says), but on the location, there are only ".arrow" files, no ".flac" files. **Error message:** ```python RuntimeError Traceback (most recent call last) Input In [15], in <cell line: 16>() 13 batch["speech"] = speech 14 return batch ---> 16 librispeech_eval = librispeech_eval.map(map_to_array) 18 def map_to_pred(batch): 19 features = processor(batch["speech"], sampling_rate=16000, padding=True, return_tensors="pt") File C:\ProgramData\Miniconda3\envs\noise_cancel\lib\site-packages\datasets\arrow_dataset.py:1953, in Dataset.map(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint, desc) 1950 disable_tqdm = not logging.is_progress_bar_enabled() 1952 if num_proc is None or num_proc == 1: -> 1953 return self._map_single( 1954 function=function, 1955 with_indices=with_indices, 1956 with_rank=with_rank, 1957 input_columns=input_columns, 1958 batched=batched, 1959 batch_size=batch_size, 1960 drop_last_batch=drop_last_batch, 1961 remove_columns=remove_columns, 1962 keep_in_memory=keep_in_memory, 1963 load_from_cache_file=load_from_cache_file, 1964 cache_file_name=cache_file_name, 1965 writer_batch_size=writer_batch_size, 1966 features=features, 1967 disable_nullable=disable_nullable, 1968 fn_kwargs=fn_kwargs, 1969 new_fingerprint=new_fingerprint, 1970 disable_tqdm=disable_tqdm, 1971 desc=desc, 1972 ) 1973 else: 1975 def format_cache_file_name(cache_file_name, rank): File C:\ProgramData\Miniconda3\envs\noise_cancel\lib\site-packages\datasets\arrow_dataset.py:519, in transmit_tasks.<locals>.wrapper(*args, **kwargs) 517 self: "Dataset" = kwargs.pop("self") 518 # apply actual function --> 519 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 520 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 521 for dataset in datasets: 522 # Remove task templates if a column mapping of the template is no longer valid File C:\ProgramData\Miniconda3\envs\noise_cancel\lib\site-packages\datasets\arrow_dataset.py:486, in transmit_format.<locals>.wrapper(*args, **kwargs) 479 self_format = { 480 "type": self._format_type, 481 "format_kwargs": self._format_kwargs, 482 "columns": self._format_columns, 483 "output_all_columns": self._output_all_columns, 484 } 485 # apply actual function --> 486 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 487 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 488 # re-apply format to the output File C:\ProgramData\Miniconda3\envs\noise_cancel\lib\site-packages\datasets\fingerprint.py:458, in fingerprint_transform.<locals>._fingerprint.<locals>.wrapper(*args, **kwargs) 452 kwargs[fingerprint_name] = update_fingerprint( 453 self._fingerprint, transform, kwargs_for_fingerprint 454 ) 456 # Call actual function --> 458 out = func(self, *args, **kwargs) 460 # Update fingerprint of in-place transforms + update in-place history of transforms 462 if inplace: # update after calling func so that the fingerprint doesn't change if the function fails File C:\ProgramData\Miniconda3\envs\noise_cancel\lib\site-packages\datasets\arrow_dataset.py:2318, in Dataset._map_single(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, new_fingerprint, rank, offset, disable_tqdm, desc, cache_only) 2316 if not batched: 2317 for i, example in enumerate(pbar): -> 2318 example = apply_function_on_filtered_inputs(example, i, offset=offset) 2319 if update_data: 2320 if i == 0: File C:\ProgramData\Miniconda3\envs\noise_cancel\lib\site-packages\datasets\arrow_dataset.py:2218, in Dataset._map_single.<locals>.apply_function_on_filtered_inputs(inputs, indices, check_same_num_examples, offset) 2216 if with_rank: 2217 additional_args += (rank,) -> 2218 processed_inputs = function(*fn_args, *additional_args, **fn_kwargs) 2219 if update_data is None: 2220 # Check if the function returns updated examples 2221 update_data = isinstance(processed_inputs, (Mapping, pa.Table)) File C:\ProgramData\Miniconda3\envs\noise_cancel\lib\site-packages\datasets\arrow_dataset.py:1913, in Dataset.map.<locals>.decorate.<locals>.decorated(item, *args, **kwargs) 1909 decorated_item = ( 1910 Example(item, features=self.features) if not batched else Batch(item, features=self.features) 1911 ) 1912 # Use the LazyDict internally, while mapping the function -> 1913 result = f(decorated_item, *args, **kwargs) 1914 # Return a standard dict 1915 return result.data if isinstance(result, LazyDict) else result Input In [15], in map_to_array(batch) 11 def map_to_array(batch): ---> 12 speech, _ = sf.read(batch["file"]) 13 batch["speech"] = speech 14 return batch File C:\ProgramData\Miniconda3\envs\noise_cancel\lib\site-packages\soundfile.py:256, in read(file, frames, start, stop, dtype, always_2d, fill_value, out, samplerate, channels, format, subtype, endian, closefd) 170 def read(file, frames=-1, start=0, stop=None, dtype='float64', always_2d=False, 171 fill_value=None, out=None, samplerate=None, channels=None, 172 format=None, subtype=None, endian=None, closefd=True): 173 """Provide audio data from a sound file as NumPy array. 174 175 By default, the whole file is read from the beginning, but the (...) 254 255 """ --> 256 with SoundFile(file, 'r', samplerate, channels, 257 subtype, endian, format, closefd) as f: 258 frames = f._prepare_read(start, stop, frames) 259 data = f.read(frames, dtype, always_2d, fill_value, out) File C:\ProgramData\Miniconda3\envs\noise_cancel\lib\site-packages\soundfile.py:629, in SoundFile.__init__(self, file, mode, samplerate, channels, subtype, endian, format, closefd) 626 self._mode = mode 627 self._info = _create_info_struct(file, mode, samplerate, channels, 628 format, subtype, endian) --> 629 self._file = self._open(file, mode_int, closefd) 630 if set(mode).issuperset('r+') and self.seekable(): 631 # Move write position to 0 (like in Python file objects) 632 self.seek(0) File C:\ProgramData\Miniconda3\envs\noise_cancel\lib\site-packages\soundfile.py:1183, in SoundFile._open(self, file, mode_int, closefd) 1181 else: 1182 raise TypeError("Invalid file: {0!r}".format(self.name)) -> 1183 _error_check(_snd.sf_error(file_ptr), 1184 "Error opening {0!r}: ".format(self.name)) 1185 if mode_int == _snd.SFM_WRITE: 1186 # Due to a bug in libsndfile version <= 1.0.25, frames != 0 1187 # when opening a named pipe in SFM_WRITE mode. 1188 # See http://github.com/erikd/libsndfile/issues/77. 1189 self._info.frames = 0 File C:\ProgramData\Miniconda3\envs\noise_cancel\lib\site-packages\soundfile.py:1357, in _error_check(err, prefix) 1355 if err != 0: 1356 err_str = _snd.sf_error_number(err) -> 1357 raise RuntimeError(prefix + _ffi.string(err_str).decode('utf-8', 'replace')) RuntimeError: Error opening '6930-75918-0000.flac': System error. ``` **Package versions:** ```python python: 3.9 transformers: 4.17.0 datasets: 2.0.0 SoundFile: 0.10.3.post1 ```
## Describe the bug When loading the Common_Voice dataset, by downloading it directly from the Hugging Face hub, some files can not be opened. ## Steps to reproduce the bug ```python import torch import torchaudio from datasets import load_dataset, load_metric from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor import re test_dataset = load_dataset("common_voice", "it", split="test") #test_dataset = load_dataset('csv', data_files = {'test': '/workspace/Dataset/Common_Voice/cv-corpus80/it/test.csv'}) wer = load_metric("wer") processor = Wav2Vec2Processor.from_pretrained("joorock12/wav2vec2-large-xlsr-italian") model = Wav2Vec2ForCTC.from_pretrained("joorock12/wav2vec2-large-xlsr-italian") model.to("cuda") chars_to_ignore_regex = '[\,\?\.\!\-\;\:\"\“\'\�]' resampler = torchaudio.transforms.Resample(48_000, 16_000) ``` ## Expected results The common voice dataset downloaded and correctly loaded whit the use of the hugging face datasets library. ## Actual results The error is: ```python 0ex [00:00, ?ex/s] --------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) <ipython-input-48-ef87f4129e6e> in <module> 7 return batch 8 ----> 9 test_dataset = test_dataset.map(speech_file_to_array_fn) /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in map(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint, desc) 2107 2108 if num_proc is None or num_proc == 1: -> 2109 return self._map_single( 2110 function=function, 2111 with_indices=with_indices, /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 516 self: "Dataset" = kwargs.pop("self") 517 # apply actual function --> 518 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 519 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 520 for dataset in datasets: /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 483 } 484 # apply actual function --> 485 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 486 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 487 # re-apply format to the output /opt/conda/lib/python3.8/site-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 411 # Call actual function 412 --> 413 out = func(self, *args, **kwargs) 414 415 # Update fingerprint of in-place transforms + update in-place history of transforms /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in _map_single(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, new_fingerprint, rank, offset, disable_tqdm, desc, cache_only) 2465 if not batched: 2466 for i, example in enumerate(pbar): -> 2467 example = apply_function_on_filtered_inputs(example, i, offset=offset) 2468 if update_data: 2469 if i == 0: /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in apply_function_on_filtered_inputs(inputs, indices, check_same_num_examples, offset) 2372 if with_rank: 2373 additional_args += (rank,) -> 2374 processed_inputs = function(*fn_args, *additional_args, **fn_kwargs) 2375 if update_data is None: 2376 # Check if the function returns updated examples /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in decorated(item, *args, **kwargs) 2067 ) 2068 # Use the LazyDict internally, while mapping the function -> 2069 result = f(decorated_item, *args, **kwargs) 2070 # Return a standard dict 2071 return result.data if isinstance(result, LazyDict) else result <ipython-input-48-ef87f4129e6e> in speech_file_to_array_fn(batch) 3 def speech_file_to_array_fn(batch): 4 batch["sentence"] = re.sub(chars_to_ignore_regex, '', batch["sentence"]).lower() ----> 5 speech_array, sampling_rate = torchaudio.load(batch["path"]) 6 batch["speech"] = resampler(speech_array).squeeze().numpy() 7 return batch /opt/conda/lib/python3.8/site-packages/torchaudio/backend/sox_io_backend.py in load(filepath, frame_offset, num_frames, normalize, channels_first, format) 150 filepath, frame_offset, num_frames, normalize, channels_first, format) 151 filepath = os.fspath(filepath) --> 152 return torch.ops.torchaudio.sox_io_load_audio_file( 153 filepath, frame_offset, num_frames, normalize, channels_first, format) 154 RuntimeError: Error loading audio file: failed to open file common_voice_it_17415776.mp3 ``` ## Environment info - `datasets` version: 1.18.4 - Platform: Linux-5.4.0-x86_64-with-glibc2.10 - Python version: 3.8.5 - PyArrow version: 7.0.0
854
Error loading file audio when downloading the Common Voice dataset directly from the Hub ## Describe the bug When loading the Common_Voice dataset, by downloading it directly from the Hugging Face hub, some files can not be opened. ## Steps to reproduce the bug ```python import torch import torchaudio from datasets import load_dataset, load_metric from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor import re test_dataset = load_dataset("common_voice", "it", split="test") #test_dataset = load_dataset('csv', data_files = {'test': '/workspace/Dataset/Common_Voice/cv-corpus80/it/test.csv'}) wer = load_metric("wer") processor = Wav2Vec2Processor.from_pretrained("joorock12/wav2vec2-large-xlsr-italian") model = Wav2Vec2ForCTC.from_pretrained("joorock12/wav2vec2-large-xlsr-italian") model.to("cuda") chars_to_ignore_regex = '[\,\?\.\!\-\;\:\"\“\'\�]' resampler = torchaudio.transforms.Resample(48_000, 16_000) ``` ## Expected results The common voice dataset downloaded and correctly loaded whit the use of the hugging face datasets library. ## Actual results The error is: ```python 0ex [00:00, ?ex/s] --------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) <ipython-input-48-ef87f4129e6e> in <module> 7 return batch 8 ----> 9 test_dataset = test_dataset.map(speech_file_to_array_fn) /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in map(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint, desc) 2107 2108 if num_proc is None or num_proc == 1: -> 2109 return self._map_single( 2110 function=function, 2111 with_indices=with_indices, /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 516 self: "Dataset" = kwargs.pop("self") 517 # apply actual function --> 518 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 519 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 520 for dataset in datasets: /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 483 } 484 # apply actual function --> 485 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 486 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 487 # re-apply format to the output /opt/conda/lib/python3.8/site-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 411 # Call actual function 412 --> 413 out = func(self, *args, **kwargs) 414 415 # Update fingerprint of in-place transforms + update in-place history of transforms /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in _map_single(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, new_fingerprint, rank, offset, disable_tqdm, desc, cache_only) 2465 if not batched: 2466 for i, example in enumerate(pbar): -> 2467 example = apply_function_on_filtered_inputs(example, i, offset=offset) 2468 if update_data: 2469 if i == 0: /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in apply_function_on_filtered_inputs(inputs, indices, check_same_num_examples, offset) 2372 if with_rank: 2373 additional_args += (rank,) -> 2374 processed_inputs = function(*fn_args, *additional_args, **fn_kwargs) 2375 if update_data is None: 2376 # Check if the function returns updated examples /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in decorated(item, *args, **kwargs) 2067 ) 2068 # Use the LazyDict internally, while mapping the function -> 2069 result = f(decorated_item, *args, **kwargs) 2070 # Return a standard dict 2071 return result.data if isinstance(result, LazyDict) else result <ipython-input-48-ef87f4129e6e> in speech_file_to_array_fn(batch) 3 def speech_file_to_array_fn(batch): 4 batch["sentence"] = re.sub(chars_to_ignore_regex, '', batch["sentence"]).lower() ----> 5 speech_array, sampling_rate = torchaudio.load(batch["path"]) 6 batch["speech"] = resampler(speech_array).squeeze().numpy() 7 return batch /opt/conda/lib/python3.8/site-packages/torchaudio/backend/sox_io_backend.py in load(filepath, frame_offset, num_frames, normalize, channels_first, format) 150 filepath, frame_offset, num_frames, normalize, channels_first, format) 151 filepath = os.fspath(filepath) --> 152 return torch.ops.torchaudio.sox_io_load_audio_file( 153 filepath, frame_offset, num_frames, normalize, channels_first, format) 154 RuntimeError: Error loading audio file: failed to open file common_voice_it_17415776.mp3 ``` ## Environment info - `datasets` version: 1.18.4 - Platform: Linux-5.4.0-x86_64-with-glibc2.10 - Python version: 3.8.5 - PyArrow version: 7.0.0 I _might_ have a similar issue. I'm trying to use the librispeech_asr dataset and read it with soundfile. ```python from datasets import load_dataset, load_metric from transformers import Speech2TextForConditionalGeneration, Speech2TextProcessor import soundfile as sf librispeech_eval = load_dataset("librispeech_asr", "clean", split="test") # change to "other" for other test dataset wer = load_metric("wer") model = Speech2TextForConditionalGeneration.from_pretrained("facebook/s2t-small-librispeech-asr").to("cuda") processor = Speech2TextProcessor.from_pretrained("facebook/s2t-small-librispeech-asr", do_upper_case=True) def map_to_array(batch): speech, _ = sf.read(batch["file"]) batch["speech"] = speech return batch librispeech_eval = librispeech_eval.map(map_to_array) def map_to_pred(batch): features = processor(batch["speech"], sampling_rate=16000, padding=True, return_tensors="pt") input_features = features.input_features.to("cuda") attention_mask = features.attention_mask.to("cuda") gen_tokens = model.generate(input_ids=input_features, attention_mask=attention_mask) batch["transcription"] = processor.batch_decode(gen_tokens, skip_special_tokens=True) return batch result = librispeech_eval.map(map_to_pred, batched=True, batch_size=8, remove_columns=["speech"]) print("WER:", wer(predictions=result["transcription"], references=result["text"])) ``` The code is taken directly from "https://huggingface.co/facebook/s2t-small-librispeech-asr". The short error code is "RuntimeError: Error opening '6930-75918-0000.flac': System error." (it can't find the first file), and I agree, I can't find the file either. The dataset has downloaded correctly (it says), but on the location, there are only ".arrow" files, no ".flac" files. **Error message:** ```python RuntimeError Traceback (most recent call last) Input In [15], in <cell line: 16>() 13 batch["speech"] = speech 14 return batch ---> 16 librispeech_eval = librispeech_eval.map(map_to_array) 18 def map_to_pred(batch): 19 features = processor(batch["speech"], sampling_rate=16000, padding=True, return_tensors="pt") File C:\ProgramData\Miniconda3\envs\noise_cancel\lib\site-packages\datasets\arrow_dataset.py:1953, in Dataset.map(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint, desc) 1950 disable_tqdm = not logging.is_progress_bar_enabled() 1952 if num_proc is None or num_proc == 1: -> 1953 return self._map_single( 1954 function=function, 1955 with_indices=with_indices, 1956 with_rank=with_rank, 1957 input_columns=input_columns, 1958 batched=batched, 1959 batch_size=batch_size, 1960 drop_last_batch=drop_last_batch, 1961 remove_columns=remove_columns, 1962 keep_in_memory=keep_in_memory, 1963 load_from_cache_file=load_from_cache_file, 1964 cache_file_name=cache_file_name, 1965 writer_batch_size=writer_batch_size, 1966 features=features, 1967 disable_nullable=disable_nullable, 1968 fn_kwargs=fn_kwargs, 1969 new_fingerprint=new_fingerprint, 1970 disable_tqdm=disable_tqdm, 1971 desc=desc, 1972 ) 1973 else: 1975 def format_cache_file_name(cache_file_name, rank): File C:\ProgramData\Miniconda3\envs\noise_cancel\lib\site-packages\datasets\arrow_dataset.py:519, in transmit_tasks.<locals>.wrapper(*args, **kwargs) 517 self: "Dataset" = kwargs.pop("self") 518 # apply actual function --> 519 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 520 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 521 for dataset in datasets: 522 # Remove task templates if a column mapping of the template is no longer valid File C:\ProgramData\Miniconda3\envs\noise_cancel\lib\site-packages\datasets\arrow_dataset.py:486, in transmit_format.<locals>.wrapper(*args, **kwargs) 479 self_format = { 480 "type": self._format_type, 481 "format_kwargs": self._format_kwargs, 482 "columns": self._format_columns, 483 "output_all_columns": self._output_all_columns, 484 } 485 # apply actual function --> 486 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 487 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 488 # re-apply format to the output File C:\ProgramData\Miniconda3\envs\noise_cancel\lib\site-packages\datasets\fingerprint.py:458, in fingerprint_transform.<locals>._fingerprint.<locals>.wrapper(*args, **kwargs) 452 kwargs[fingerprint_name] = update_fingerprint( 453 self._fingerprint, transform, kwargs_for_fingerprint 454 ) 456 # Call actual function --> 458 out = func(self, *args, **kwargs) 460 # Update fingerprint of in-place transforms + update in-place history of transforms 462 if inplace: # update after calling func so that the fingerprint doesn't change if the function fails File C:\ProgramData\Miniconda3\envs\noise_cancel\lib\site-packages\datasets\arrow_dataset.py:2318, in Dataset._map_single(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, new_fingerprint, rank, offset, disable_tqdm, desc, cache_only) 2316 if not batched: 2317 for i, example in enumerate(pbar): -> 2318 example = apply_function_on_filtered_inputs(example, i, offset=offset) 2319 if update_data: 2320 if i == 0: File C:\ProgramData\Miniconda3\envs\noise_cancel\lib\site-packages\datasets\arrow_dataset.py:2218, in Dataset._map_single.<locals>.apply_function_on_filtered_inputs(inputs, indices, check_same_num_examples, offset) 2216 if with_rank: 2217 additional_args += (rank,) -> 2218 processed_inputs = function(*fn_args, *additional_args, **fn_kwargs) 2219 if update_data is None: 2220 # Check if the function returns updated examples 2221 update_data = isinstance(processed_inputs, (Mapping, pa.Table)) File C:\ProgramData\Miniconda3\envs\noise_cancel\lib\site-packages\datasets\arrow_dataset.py:1913, in Dataset.map.<locals>.decorate.<locals>.decorated(item, *args, **kwargs) 1909 decorated_item = ( 1910 Example(item, features=self.features) if not batched else Batch(item, features=self.features) 1911 ) 1912 # Use the LazyDict internally, while mapping the function -> 1913 result = f(decorated_item, *args, **kwargs) 1914 # Return a standard dict 1915 return result.data if isinstance(result, LazyDict) else result Input In [15], in map_to_array(batch) 11 def map_to_array(batch): ---> 12 speech, _ = sf.read(batch["file"]) 13 batch["speech"] = speech 14 return batch File C:\ProgramData\Miniconda3\envs\noise_cancel\lib\site-packages\soundfile.py:256, in read(file, frames, start, stop, dtype, always_2d, fill_value, out, samplerate, channels, format, subtype, endian, closefd) 170 def read(file, frames=-1, start=0, stop=None, dtype='float64', always_2d=False, 171 fill_value=None, out=None, samplerate=None, channels=None, 172 format=None, subtype=None, endian=None, closefd=True): 173 """Provide audio data from a sound file as NumPy array. 174 175 By default, the whole file is read from the beginning, but the (...) 254 255 """ --> 256 with SoundFile(file, 'r', samplerate, channels, 257 subtype, endian, format, closefd) as f: 258 frames = f._prepare_read(start, stop, frames) 259 data = f.read(frames, dtype, always_2d, fill_value, out) File C:\ProgramData\Miniconda3\envs\noise_cancel\lib\site-packages\soundfile.py:629, in SoundFile.__init__(self, file, mode, samplerate, channels, subtype, endian, format, closefd) 626 self._mode = mode 627 self._info = _create_info_struct(file, mode, samplerate, channels, 628 format, subtype, endian) --> 629 self._file = self._open(file, mode_int, closefd) 630 if set(mode).issuperset('r+') and self.seekable(): 631 # Move write position to 0 (like in Python file objects) 632 self.seek(0) File C:\ProgramData\Miniconda3\envs\noise_cancel\lib\site-packages\soundfile.py:1183, in SoundFile._open(self, file, mode_int, closefd) 1181 else: 1182 raise TypeError("Invalid file: {0!r}".format(self.name)) -> 1183 _error_check(_snd.sf_error(file_ptr), 1184 "Error opening {0!r}: ".format(self.name)) 1185 if mode_int == _snd.SFM_WRITE: 1186 # Due to a bug in libsndfile version <= 1.0.25, frames != 0 1187 # when opening a named pipe in SFM_WRITE mode. 1188 # See http://github.com/erikd/libsndfile/issues/77. 1189 self._info.frames = 0 File C:\ProgramData\Miniconda3\envs\noise_cancel\lib\site-packages\soundfile.py:1357, in _error_check(err, prefix) 1355 if err != 0: 1356 err_str = _snd.sf_error_number(err) -> 1357 raise RuntimeError(prefix + _ffi.string(err_str).decode('utf-8', 'replace')) RuntimeError: Error opening '6930-75918-0000.flac': System error. ``` **Package versions:** ```python python: 3.9 transformers: 4.17.0 datasets: 2.0.0 SoundFile: 0.10.3.post1 ```
[ -0.2770323157310486, -0.5579105615615845, 0.09589694440364838, 0.4342244267463684, 0.09727804362773895, 0.027911096811294556, 0.15836107730865479, 0.33873307704925537, 0.22135819494724274, 0.15522411465644836, -0.6184945702552795, 0.18397583067417145, -0.05294143408536911, -0.3478994071483612, -0.05929677188396454, -0.11353304982185364, 0.05205851420760155, 0.12789690494537354, 0.006890520453453064, -0.2776695787906647, -0.23433703184127808, 0.28213611245155334, -0.2509043216705322, 0.3531126379966736, -0.41620147228240967, 0.018599342554807663, 0.23966798186302185, 0.5088717341423035, -0.10240722447633743, -0.3314360976219177, 0.3121221661567688, -0.049110058695077896, 0.21300554275512695, 0.42743340134620667, -0.00011626708146650344, 0.01847243309020996, 0.42071837186813354, -0.09775641560554504, -0.12180495262145996, -0.23716510832309723, -0.19443681836128235, 0.3139556646347046, -0.02869165875017643, 0.11379411071538925, 0.061336398124694824, 0.23813310265541077, 0.026398228481411934, -0.18683810532093048, 0.679694652557373, 0.43267786502838135, 0.13235680758953094, 0.31490659713745117, 0.08415131270885468, -0.1255195289850235, 0.20867401361465454, -0.05309772491455078, 0.0639687180519104, 0.5049846768379211, 0.30220597982406616, 0.00259303767234087, -0.07932626456022263, 0.14007936418056488, -0.31338444352149963, -0.06280699372291565, 0.04819555580615997, 0.06921328604221344, -0.426424503326416, -0.38632896542549133, 0.10070794820785522, 0.2126060426235199, 0.3382570445537567, -0.2975596487522125, -0.25352251529693604, -0.04287698119878769, -0.058155354112386703, -0.18395376205444336, 0.2144213318824768, 0.3430328071117401, -0.37090981006622314, 0.23434549570083618, -0.18853528797626495, -0.004032709635794163, -0.1982617974281311, 0.058018382638692856, 0.10877946019172668, -0.009603306651115417, -0.02408905327320099, 0.14499402046203613, 0.2289453148841858, 0.018675196915864944, 0.05647570267319679, 0.03250373899936676, -0.15864931046962738, 0.39803871512413025, -0.34383630752563477, 0.04840007424354553, -0.1927213966846466, -0.014284588396549225, 0.1082155779004097, -0.08669380098581314, 0.24339264631271362, 0.05876778066158295, -0.23499979078769684, 0.10373343527317047, 0.23148411512374878, 0.06012197956442833, -0.16859948635101318, 0.03925395384430885, 0.29576343297958374, 0.017396776005625725, 0.014471843838691711, -0.1853044033050537, -0.3221342861652374, -0.3186969757080078, -0.14338745176792145, 0.09794499725103378, 0.19261899590492249, -0.27118220925331116, -0.6065789461135864, 0.04596153646707535, -0.03390328958630562, 0.1479753702878952, 0.17384935915470123, 0.31211206316947937, 0.016977332532405853, 0.31723660230636597, 0.20833487808704376, 0.32961905002593994, -0.2861897945404053, -0.021716203540563583, -0.0565779022872448, 0.1310737282037735, -0.09009547531604767, 0.09019054472446442, 0.3719748556613922, -0.22760462760925293, 0.2882646918296814, 0.20364227890968323, 0.5024918913841248, -0.24629946053028107, -0.1376001536846161, -0.09106007218360901, -0.0856826975941658, 0.15259021520614624, 0.14541095495224, 0.24470292031764984, -0.01570010557770729, 0.17074118554592133, -0.12184935063123703, 0.2836284637451172, -0.5029199123382568, -0.2279486209154129, -0.06333234161138535, 0.08435345441102982, -0.06915614008903503, 0.21165704727172852, -0.12493100017309189, -0.25759825110435486, -0.05730409175157547, -0.5344335436820984, -0.036678723990917206, -0.27148622274398804, -0.13042688369750977, -0.002776735695078969, 0.3777680993080139, 0.3689073920249939, -0.03938111662864685, 0.12282519042491913, 0.25821900367736816, 0.00014906376600265503, 0.11490777879953384, 0.3810599446296692, -0.1746087521314621, 0.11200635880231857, -0.48481953144073486, 0.35615843534469604, 0.22818255424499512, -0.8792298436164856, -0.5025163888931274, 0.06289049983024597, -0.037103187292814255, 0.3826613426208496, -0.018000729382038116, 0.0565459243953228, 0.10723871737718582, -0.06808920204639435, 0.4597163796424866, 0.2403297871351242, 0.1922263354063034, 0.0933542251586914, -0.013021349906921387, -0.10080482810735703, -0.054364725947380066, 0.14788371324539185, -0.08365412056446075, 0.10020548105239868, 0.07504963129758835, 0.284922331571579, 0.4207438826560974, -0.0055228956043720245, -0.031135352328419685, 0.09051112830638885, 0.1467074751853943, -0.3343490958213806, -0.03124464862048626, -0.1820223033428192, -0.27533137798309326, 0.2643183171749115, -0.2552793622016907, -0.002508345991373062, -0.07806146144866943, -0.0329587496817112, -0.39293399453163147, -0.13749152421951294, -0.4621693789958954, -0.07916873693466187, -0.07062454521656036, -0.04195162653923035, -0.09313219785690308, -0.12476550042629242, -0.14919625222682953, 0.5878197550773621, 0.055098265409469604, 0.12425758689641953, -0.42913058400154114, 0.3229445219039917, 0.024823784828186035, -0.030508678406476974, 0.14741358160972595, 0.26910170912742615, 0.18435212969779968, 0.02096908539533615, -0.35535258054733276, 0.34442654252052307, 0.027948522940278053, 0.5421099066734314, -0.26071470975875854, -0.17290695011615753, 0.3404977023601532, -0.5525878667831421, 0.15411531925201416, 0.29732152819633484, 0.26975297927856445, -0.006363842636346817, -0.10973940044641495, 0.25175991654396057, -0.10282127559185028, 0.018935061991214752, 0.03397834300994873, -0.05582156032323837, 0.17936912178993225, 0.15102048218250275, -0.12889593839645386, 0.22698885202407837, 0.14321470260620117, 0.23597963154315948, 0.5638932585716248, -0.2110595703125, -0.2772648334503174, -0.43520522117614746, 0.3617568612098694, 0.0532027892768383, 0.021741025149822235, 0.26164764165878296, -0.3282064199447632, -0.032182078808546066, 0.21952202916145325, -0.5220211744308472, 0.4011763334274292, 0.06110561639070511, -0.0803278237581253, 0.2169056385755539, -0.05586007982492447, -0.08555246144533157, 0.03866899758577347, 0.051218703389167786, -0.12749633193016052, 0.5026895403862, -0.06063156574964523, 0.08067140728235245, -0.4853990972042084, -0.0822642371058464, -0.30685895681381226, 0.028065117076039314, -0.4187680780887604, -0.14754781126976013, 0.04546543210744858, 0.36578965187072754, -0.1748250126838684, -0.24361242353916168, -0.3200421929359436, 0.11623135209083557, -0.026017118245363235, 0.6292791366577148, 0.02971501648426056, 0.03812052309513092, 0.11472339928150177, 0.2774619162082672, 0.2759174704551697, -0.08548887073993683, -0.2166493684053421, 0.17867058515548706, -0.23782047629356384, -0.021520836278796196, 0.16123907268047333, 0.21292296051979065, -0.08307084441184998, -0.21213191747665405, 0.2197173535823822, -0.17499202489852905, 0.12032520025968552, 0.12909939885139465, 0.04738793522119522, 0.08906523138284683, -0.12384140491485596, 0.1089024692773819, 0.06711980700492859, -0.4015740156173706, 0.07105322927236557, -0.10025634616613388, -0.05633460730314255, -0.042991187423467636, -0.02343771420419216, -0.01307118684053421, -0.02713935822248459, -0.545944094657898, -0.3770199716091156, -0.5261210799217224, 0.24776524305343628, -0.13639779388904572, 0.036179497838020325, -0.029861275106668472, -0.03858410567045212, -0.08212710916996002, -0.07616680860519409, 0.0971461609005928, -0.1557803750038147, -0.26470765471458435, 0.309308260679245, -0.1937536895275116, -0.33318376541137695, 0.0525224544107914, 0.033474162220954895, 0.4599122405052185, -0.10991264134645462, -0.24993227422237396, -0.008260473608970642, 0.04814992845058441, 0.18314117193222046, -0.09988492727279663, -0.07636593282222748, 0.11369621008634567, 0.0019146844279021025, 0.0809374675154686, 0.05231861025094986, -0.009031057357788086, 0.022821269929409027, 0.33897843956947327, 0.024671807885169983, 0.13368560373783112, 0.06707312166690826, -0.24614155292510986, 0.6589117050170898, 0.45807820558547974, 0.14896930754184723, 0.2617548704147339, -0.19428709149360657, 0.1342177391052246, -0.3761756122112274, -0.37782248854637146, -0.08691157400608063, -0.28992632031440735, -0.043990358710289, 0.5156703591346741, 0.16831758618354797, 0.009578267112374306, -0.37715333700180054, -0.18304263055324554, -0.25266072154045105, -0.29770609736442566, -0.09708845615386963, -0.04316405951976776, 0.025047797709703445, 0.058458294719457626, 0.27664515376091003, 0.0747424066066742, -0.1940096914768219, 0.20087693631649017, 0.08338311314582825, 0.287151575088501, -0.05479157343506813, -0.009123027324676514, -0.06178690865635872, -0.41861772537231445, 0.030735604465007782, 0.1404174566268921, 0.534278154373169, -0.22692416608333588, -0.01436610147356987, 0.06381159275770187, 0.20995871722698212, 0.47142183780670166, 0.2789836823940277, 0.2866937518119812, -0.014352003112435341, 0.13850779831409454, -0.16818097233772278, 0.01891050860285759, -0.16929833590984344, 0.11901309341192245, 0.18159078061580658, 0.379824697971344, -0.031138833612203598, -0.07682528346776962, -0.09382424503564835, 0.333234578371048, 0.06378093361854553, -0.17394180595874786, -0.19881467521190643, -0.040970176458358765, -0.4132498800754547, 0.18625473976135254, 0.12071508914232254, 0.28672510385513306, -0.3996559977531433, -0.07379723340272903, 0.3993132710456848, -0.029008837416768074, 0.2683798670768738, 0.07178448140621185, 0.33029869198799133, -0.018429696559906006, 0.5079402327537537, 0.34190189838409424, 0.27935123443603516, -0.12642981112003326, 0.8726478815078735, 0.16466845571994781, -0.32467398047447205, 0.1023121103644371, -0.14930832386016846, -0.1009916290640831, 0.5327768921852112, -0.05585196614265442, -0.12248688191175461, -0.06683029979467392, -0.00208909809589386, -0.33247360587120056, 0.2613466680049896, 0.3142696022987366, 0.2035779356956482, -0.3986468017101288, -0.053624458611011505, 0.3759845197200775, 0.013521041721105576, -0.15399828553199768, 0.2730399966239929, 0.15352126955986023, -0.18436942994594574, 0.11813164502382278, -0.2964574098587036, 1.0028693675994873, 0.29215991497039795, 0.38279834389686584, 0.33120766282081604, -0.0403263121843338, -0.25095823407173157, -0.3336679935455322, 0.12121297419071198, -0.195364311337471, -0.009909839369356632, -0.08722211420536041, -0.1132839247584343, 0.010335206985473633, 0.08502357453107834, -0.047607485204935074, 0.16018682718276978, 0.1450435370206833, 0.15587502717971802, 0.09084368497133255, 0.1495521366596222, -0.20617999136447906, -0.36241960525512695, 0.13761049509048462, -0.03631533682346344, 0.008114513009786606, 0.4701991379261017, 0.027335677295923233, -0.20948491990566254, -0.12359604239463806, -0.43839800357818604, -0.2067754864692688, 0.4537021219730377, -0.02490997686982155, 0.015206215903162956, 0.01389496773481369, -0.2945724129676819, 0.28440946340560913, 0.2792624235153198, 0.24092541635036469, 0.09079261124134064, -0.4155939519405365, 0.33117491006851196, -0.08191638439893723, 0.16726641356945038, -0.035567548125982285, 0.1296275556087494, -0.03349057585000992, 0.012440256774425507, -0.27931106090545654, 0.12695690989494324, -0.06181180477142334, -0.08563102036714554, -0.08044236153364182, 0.21885205805301666, 0.30540239810943604, -0.28523752093315125, -0.3833872079849243, -0.08823654055595398, -0.08520680665969849, -0.08969622850418091, 0.08523978292942047, 0.020793724805116653, -0.26321035623550415, 0.028793390840291977, 0.13482971489429474, -0.19870103895664215, 0.07361789792776108, 0.7157278656959534, -0.21619486808776855, -0.40783554315567017, 0.525931715965271, -0.03187789022922516, -0.1757955551147461, -0.18215447664260864, 0.010316140949726105, 0.22788503766059875, -0.7808632850646973, -0.08664583414793015, 0.0636194720864296, -0.016169942915439606, -0.26184701919555664, 0.24291348457336426, 0.19839337468147278, -0.14161664247512817, 0.03535440191626549, -0.3575725257396698, -0.3615676462650299, 0.14261282980442047, -0.010569274425506592, 0.22173704206943512, 0.11650729924440384, -0.18187673389911652, 0.06232482194900513, -0.14183980226516724, -0.20647580921649933, 0.19626659154891968, -0.009395597502589226, 0.022348549216985703, 0.04063926637172699, -0.11828801780939102, 0.22060193121433258, -0.053671225905418396, 0.10214763879776001, 0.3039659261703491, -0.18094773590564728, -0.02308243326842785, -0.042056068778038025, 0.21786414086818695, 0.023754261434078217, -0.38775283098220825, 0.02898479998111725, 0.062146253883838654, -0.0851418673992157, -0.19581125676631927, 0.2831711173057556, 0.42211171984672546, -0.04726536571979523, 0.013724126853048801, -0.14231979846954346, 0.03260470926761627, -0.1692994385957718, 0.24321550130844116, -0.09351427853107452, 0.18204471468925476, -0.01983621157705784, 0.13155832886695862, -0.3124009966850281, -0.11211840808391571, -0.10252625495195389, 0.15947449207305908, 0.46348804235458374, 0.015816006809473038, 0.346934974193573, -0.1923011988401413, 0.21910378336906433, -0.06629229336977005, 0.3411138951778412, 0.2435232251882553, -0.32933923602104187, 0.0363701730966568, 0.07581855356693268, 0.10577034950256348, -0.22725267708301544, -0.1414531022310257, -0.03557751700282097, -0.36020228266716003, -0.02304612100124359, -0.07206862419843674, 0.23506879806518555, -0.22633253037929535, -0.020852841436862946, -0.13155849277973175, 0.525967001914978, -0.03318247199058533, 0.09584097564220428, 0.41311314702033997, -0.03663492947816849, 0.13297760486602783, 0.002517400309443474, -0.06277187168598175, 0.06262171268463135, 0.7115365266799927, -0.6978963613510132, 0.32272979617118835, -0.028169691562652588, 0.20823754370212555, 0.15712305903434753, -0.5921528935432434, -0.45160040259361267, -0.2154974639415741, -0.1937330663204193, 0.018517307937145233, 0.026244420558214188, 0.25458988547325134, -0.43879610300064087, -0.2378970980644226, -0.3239344656467438, -0.0800803005695343, -0.0958557054400444, -0.059052564203739166, -0.0014115013182163239, -0.26197922229766846, -0.2249443084001541, 0.09458263218402863, -0.12867684662342072, 0.0023498274385929108, 0.011743150651454926, 0.1596602201461792, 0.07600148022174835, 0.1438908725976944, -0.34576934576034546, 0.1408289074897766, -0.09282314032316208, -0.16015590727329254, 0.3072662651538849, 0.23558449745178223, -0.00004850327968597412, 0.4841148257255554, 0.21162159740924835, 0.41191384196281433, 0.23468101024627686, -0.1337091624736786, 0.28372445702552795, 0.015671081840991974, 0.061894893646240234, 0.15075258910655975, 0.17140795290470123, 0.13324429094791412, 0.4558273255825043, 0.15403854846954346, 0.15771034359931946, -0.076406329870224, 0.0038068927824497223, -0.13753101229667664, -0.0006683319807052612, -0.31447499990463257, 0.20412170886993408, -0.3874052166938782, -0.10375910997390747, -0.2713545858860016, -0.12411905080080032, -0.35081079602241516, -0.021677006036043167, 0.2912825047969818, 0.09558927267789841, 0.1698872148990631, 0.05434950441122055, 0.02193460240960121, -0.1371026188135147, 0.18775752186775208, 0.39388325810432434, 0.2558993995189667, -0.22049416601657867, -0.1704561710357666, -0.48756417632102966, 0.35607051849365234, 0.2565136253833771, 0.07519616931676865, 0.013225976377725601, -0.2334994673728943, -0.08682560175657272, 0.06714159995317459, 0.008107803761959076, -0.12664566934108734, -0.0661567822098732, -0.02463717758655548, -0.07811778783798218, -0.10590320825576782, 0.15233266353607178, 0.27882859110832214, -0.09651102125644684, -0.624112606048584, 0.1253812462091446, 0.11245261877775192, -0.07089421153068542, 0.061471156775951385, 0.01043611764907837, -0.273332804441452, -0.0715714693069458, 0.16231894493103027, 0.08624143898487091, 0.5717625617980957, -0.21861761808395386, 0.0313815176486969, -0.173872172832489, -0.32304808497428894, 0.02933143451809883, -0.2709759473800659, -0.07250240445137024, 0.564789891242981, 0.09582987427711487, -0.09765683114528656, -0.3332044184207916, 0.08346625417470932, -0.12430719286203384, -0.015079692006111145, -0.5276537537574768, 0.05318921059370041, -0.3631989061832428, 0.23524655401706696, 0.035567428916692734, 0.20453280210494995, -0.1933111846446991, 0.0221614558249712, -0.20922574400901794, -0.36021485924720764, 0.7947116494178772, -0.3871307969093323, -0.2767919600009918, -0.18636015057563782, 0.4942859411239624, -0.0789816752076149, -0.08302656561136246, -0.33390480279922485, 0.20013993978500366, 0.15004682540893555, -0.04587758332490921, -0.22052977979183197, -0.04882187768816948, -0.10193786025047302, -0.20831264555454254, -0.04813859239220619, 0.31086403131484985, 0.39258232712745667, -0.2813003957271576, 0.28173041343688965, -0.49086499214172363 ]
https://github.com/huggingface/datasets/issues/3909
Error loading file audio when downloading the Common Voice dataset directly from the Hub
Hi ! In `datasets` 2.0 can access the audio array with `librispeech_eval[0]["audio"]["array"]` already, no need to use `map_to_array`. See our documentation on [how to process audio data](https://huggingface.co/docs/datasets/audio_process) :) cc @patrickvonplaten we will need to update the readme at [facebook/s2t-small-librispeech-asr](https://huggingface.co/facebook/s2t-small-librispeech-asr) as well as https://huggingface.co/docs/transformers/model_doc/speech_to_text
## Describe the bug When loading the Common_Voice dataset, by downloading it directly from the Hugging Face hub, some files can not be opened. ## Steps to reproduce the bug ```python import torch import torchaudio from datasets import load_dataset, load_metric from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor import re test_dataset = load_dataset("common_voice", "it", split="test") #test_dataset = load_dataset('csv', data_files = {'test': '/workspace/Dataset/Common_Voice/cv-corpus80/it/test.csv'}) wer = load_metric("wer") processor = Wav2Vec2Processor.from_pretrained("joorock12/wav2vec2-large-xlsr-italian") model = Wav2Vec2ForCTC.from_pretrained("joorock12/wav2vec2-large-xlsr-italian") model.to("cuda") chars_to_ignore_regex = '[\,\?\.\!\-\;\:\"\“\'\�]' resampler = torchaudio.transforms.Resample(48_000, 16_000) ``` ## Expected results The common voice dataset downloaded and correctly loaded whit the use of the hugging face datasets library. ## Actual results The error is: ```python 0ex [00:00, ?ex/s] --------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) <ipython-input-48-ef87f4129e6e> in <module> 7 return batch 8 ----> 9 test_dataset = test_dataset.map(speech_file_to_array_fn) /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in map(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint, desc) 2107 2108 if num_proc is None or num_proc == 1: -> 2109 return self._map_single( 2110 function=function, 2111 with_indices=with_indices, /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 516 self: "Dataset" = kwargs.pop("self") 517 # apply actual function --> 518 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 519 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 520 for dataset in datasets: /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 483 } 484 # apply actual function --> 485 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 486 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 487 # re-apply format to the output /opt/conda/lib/python3.8/site-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 411 # Call actual function 412 --> 413 out = func(self, *args, **kwargs) 414 415 # Update fingerprint of in-place transforms + update in-place history of transforms /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in _map_single(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, new_fingerprint, rank, offset, disable_tqdm, desc, cache_only) 2465 if not batched: 2466 for i, example in enumerate(pbar): -> 2467 example = apply_function_on_filtered_inputs(example, i, offset=offset) 2468 if update_data: 2469 if i == 0: /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in apply_function_on_filtered_inputs(inputs, indices, check_same_num_examples, offset) 2372 if with_rank: 2373 additional_args += (rank,) -> 2374 processed_inputs = function(*fn_args, *additional_args, **fn_kwargs) 2375 if update_data is None: 2376 # Check if the function returns updated examples /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in decorated(item, *args, **kwargs) 2067 ) 2068 # Use the LazyDict internally, while mapping the function -> 2069 result = f(decorated_item, *args, **kwargs) 2070 # Return a standard dict 2071 return result.data if isinstance(result, LazyDict) else result <ipython-input-48-ef87f4129e6e> in speech_file_to_array_fn(batch) 3 def speech_file_to_array_fn(batch): 4 batch["sentence"] = re.sub(chars_to_ignore_regex, '', batch["sentence"]).lower() ----> 5 speech_array, sampling_rate = torchaudio.load(batch["path"]) 6 batch["speech"] = resampler(speech_array).squeeze().numpy() 7 return batch /opt/conda/lib/python3.8/site-packages/torchaudio/backend/sox_io_backend.py in load(filepath, frame_offset, num_frames, normalize, channels_first, format) 150 filepath, frame_offset, num_frames, normalize, channels_first, format) 151 filepath = os.fspath(filepath) --> 152 return torch.ops.torchaudio.sox_io_load_audio_file( 153 filepath, frame_offset, num_frames, normalize, channels_first, format) 154 RuntimeError: Error loading audio file: failed to open file common_voice_it_17415776.mp3 ``` ## Environment info - `datasets` version: 1.18.4 - Platform: Linux-5.4.0-x86_64-with-glibc2.10 - Python version: 3.8.5 - PyArrow version: 7.0.0
43
Error loading file audio when downloading the Common Voice dataset directly from the Hub ## Describe the bug When loading the Common_Voice dataset, by downloading it directly from the Hugging Face hub, some files can not be opened. ## Steps to reproduce the bug ```python import torch import torchaudio from datasets import load_dataset, load_metric from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor import re test_dataset = load_dataset("common_voice", "it", split="test") #test_dataset = load_dataset('csv', data_files = {'test': '/workspace/Dataset/Common_Voice/cv-corpus80/it/test.csv'}) wer = load_metric("wer") processor = Wav2Vec2Processor.from_pretrained("joorock12/wav2vec2-large-xlsr-italian") model = Wav2Vec2ForCTC.from_pretrained("joorock12/wav2vec2-large-xlsr-italian") model.to("cuda") chars_to_ignore_regex = '[\,\?\.\!\-\;\:\"\“\'\�]' resampler = torchaudio.transforms.Resample(48_000, 16_000) ``` ## Expected results The common voice dataset downloaded and correctly loaded whit the use of the hugging face datasets library. ## Actual results The error is: ```python 0ex [00:00, ?ex/s] --------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) <ipython-input-48-ef87f4129e6e> in <module> 7 return batch 8 ----> 9 test_dataset = test_dataset.map(speech_file_to_array_fn) /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in map(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint, desc) 2107 2108 if num_proc is None or num_proc == 1: -> 2109 return self._map_single( 2110 function=function, 2111 with_indices=with_indices, /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 516 self: "Dataset" = kwargs.pop("self") 517 # apply actual function --> 518 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 519 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 520 for dataset in datasets: /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 483 } 484 # apply actual function --> 485 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 486 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 487 # re-apply format to the output /opt/conda/lib/python3.8/site-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 411 # Call actual function 412 --> 413 out = func(self, *args, **kwargs) 414 415 # Update fingerprint of in-place transforms + update in-place history of transforms /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in _map_single(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, new_fingerprint, rank, offset, disable_tqdm, desc, cache_only) 2465 if not batched: 2466 for i, example in enumerate(pbar): -> 2467 example = apply_function_on_filtered_inputs(example, i, offset=offset) 2468 if update_data: 2469 if i == 0: /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in apply_function_on_filtered_inputs(inputs, indices, check_same_num_examples, offset) 2372 if with_rank: 2373 additional_args += (rank,) -> 2374 processed_inputs = function(*fn_args, *additional_args, **fn_kwargs) 2375 if update_data is None: 2376 # Check if the function returns updated examples /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in decorated(item, *args, **kwargs) 2067 ) 2068 # Use the LazyDict internally, while mapping the function -> 2069 result = f(decorated_item, *args, **kwargs) 2070 # Return a standard dict 2071 return result.data if isinstance(result, LazyDict) else result <ipython-input-48-ef87f4129e6e> in speech_file_to_array_fn(batch) 3 def speech_file_to_array_fn(batch): 4 batch["sentence"] = re.sub(chars_to_ignore_regex, '', batch["sentence"]).lower() ----> 5 speech_array, sampling_rate = torchaudio.load(batch["path"]) 6 batch["speech"] = resampler(speech_array).squeeze().numpy() 7 return batch /opt/conda/lib/python3.8/site-packages/torchaudio/backend/sox_io_backend.py in load(filepath, frame_offset, num_frames, normalize, channels_first, format) 150 filepath, frame_offset, num_frames, normalize, channels_first, format) 151 filepath = os.fspath(filepath) --> 152 return torch.ops.torchaudio.sox_io_load_audio_file( 153 filepath, frame_offset, num_frames, normalize, channels_first, format) 154 RuntimeError: Error loading audio file: failed to open file common_voice_it_17415776.mp3 ``` ## Environment info - `datasets` version: 1.18.4 - Platform: Linux-5.4.0-x86_64-with-glibc2.10 - Python version: 3.8.5 - PyArrow version: 7.0.0 Hi ! In `datasets` 2.0 can access the audio array with `librispeech_eval[0]["audio"]["array"]` already, no need to use `map_to_array`. See our documentation on [how to process audio data](https://huggingface.co/docs/datasets/audio_process) :) cc @patrickvonplaten we will need to update the readme at [facebook/s2t-small-librispeech-asr](https://huggingface.co/facebook/s2t-small-librispeech-asr) as well as https://huggingface.co/docs/transformers/model_doc/speech_to_text
[ -0.2770323157310486, -0.5579105615615845, 0.09589694440364838, 0.4342244267463684, 0.09727804362773895, 0.027911096811294556, 0.15836107730865479, 0.33873307704925537, 0.22135819494724274, 0.15522411465644836, -0.6184945702552795, 0.18397583067417145, -0.05294143408536911, -0.3478994071483612, -0.05929677188396454, -0.11353304982185364, 0.05205851420760155, 0.12789690494537354, 0.006890520453453064, -0.2776695787906647, -0.23433703184127808, 0.28213611245155334, -0.2509043216705322, 0.3531126379966736, -0.41620147228240967, 0.018599342554807663, 0.23966798186302185, 0.5088717341423035, -0.10240722447633743, -0.3314360976219177, 0.3121221661567688, -0.049110058695077896, 0.21300554275512695, 0.42743340134620667, -0.00011626708146650344, 0.01847243309020996, 0.42071837186813354, -0.09775641560554504, -0.12180495262145996, -0.23716510832309723, -0.19443681836128235, 0.3139556646347046, -0.02869165875017643, 0.11379411071538925, 0.061336398124694824, 0.23813310265541077, 0.026398228481411934, -0.18683810532093048, 0.679694652557373, 0.43267786502838135, 0.13235680758953094, 0.31490659713745117, 0.08415131270885468, -0.1255195289850235, 0.20867401361465454, -0.05309772491455078, 0.0639687180519104, 0.5049846768379211, 0.30220597982406616, 0.00259303767234087, -0.07932626456022263, 0.14007936418056488, -0.31338444352149963, -0.06280699372291565, 0.04819555580615997, 0.06921328604221344, -0.426424503326416, -0.38632896542549133, 0.10070794820785522, 0.2126060426235199, 0.3382570445537567, -0.2975596487522125, -0.25352251529693604, -0.04287698119878769, -0.058155354112386703, -0.18395376205444336, 0.2144213318824768, 0.3430328071117401, -0.37090981006622314, 0.23434549570083618, -0.18853528797626495, -0.004032709635794163, -0.1982617974281311, 0.058018382638692856, 0.10877946019172668, -0.009603306651115417, -0.02408905327320099, 0.14499402046203613, 0.2289453148841858, 0.018675196915864944, 0.05647570267319679, 0.03250373899936676, -0.15864931046962738, 0.39803871512413025, -0.34383630752563477, 0.04840007424354553, -0.1927213966846466, -0.014284588396549225, 0.1082155779004097, -0.08669380098581314, 0.24339264631271362, 0.05876778066158295, -0.23499979078769684, 0.10373343527317047, 0.23148411512374878, 0.06012197956442833, -0.16859948635101318, 0.03925395384430885, 0.29576343297958374, 0.017396776005625725, 0.014471843838691711, -0.1853044033050537, -0.3221342861652374, -0.3186969757080078, -0.14338745176792145, 0.09794499725103378, 0.19261899590492249, -0.27118220925331116, -0.6065789461135864, 0.04596153646707535, -0.03390328958630562, 0.1479753702878952, 0.17384935915470123, 0.31211206316947937, 0.016977332532405853, 0.31723660230636597, 0.20833487808704376, 0.32961905002593994, -0.2861897945404053, -0.021716203540563583, -0.0565779022872448, 0.1310737282037735, -0.09009547531604767, 0.09019054472446442, 0.3719748556613922, -0.22760462760925293, 0.2882646918296814, 0.20364227890968323, 0.5024918913841248, -0.24629946053028107, -0.1376001536846161, -0.09106007218360901, -0.0856826975941658, 0.15259021520614624, 0.14541095495224, 0.24470292031764984, -0.01570010557770729, 0.17074118554592133, -0.12184935063123703, 0.2836284637451172, -0.5029199123382568, -0.2279486209154129, -0.06333234161138535, 0.08435345441102982, -0.06915614008903503, 0.21165704727172852, -0.12493100017309189, -0.25759825110435486, -0.05730409175157547, -0.5344335436820984, -0.036678723990917206, -0.27148622274398804, -0.13042688369750977, -0.002776735695078969, 0.3777680993080139, 0.3689073920249939, -0.03938111662864685, 0.12282519042491913, 0.25821900367736816, 0.00014906376600265503, 0.11490777879953384, 0.3810599446296692, -0.1746087521314621, 0.11200635880231857, -0.48481953144073486, 0.35615843534469604, 0.22818255424499512, -0.8792298436164856, -0.5025163888931274, 0.06289049983024597, -0.037103187292814255, 0.3826613426208496, -0.018000729382038116, 0.0565459243953228, 0.10723871737718582, -0.06808920204639435, 0.4597163796424866, 0.2403297871351242, 0.1922263354063034, 0.0933542251586914, -0.013021349906921387, -0.10080482810735703, -0.054364725947380066, 0.14788371324539185, -0.08365412056446075, 0.10020548105239868, 0.07504963129758835, 0.284922331571579, 0.4207438826560974, -0.0055228956043720245, -0.031135352328419685, 0.09051112830638885, 0.1467074751853943, -0.3343490958213806, -0.03124464862048626, -0.1820223033428192, -0.27533137798309326, 0.2643183171749115, -0.2552793622016907, -0.002508345991373062, -0.07806146144866943, -0.0329587496817112, -0.39293399453163147, -0.13749152421951294, -0.4621693789958954, -0.07916873693466187, -0.07062454521656036, -0.04195162653923035, -0.09313219785690308, -0.12476550042629242, -0.14919625222682953, 0.5878197550773621, 0.055098265409469604, 0.12425758689641953, -0.42913058400154114, 0.3229445219039917, 0.024823784828186035, -0.030508678406476974, 0.14741358160972595, 0.26910170912742615, 0.18435212969779968, 0.02096908539533615, -0.35535258054733276, 0.34442654252052307, 0.027948522940278053, 0.5421099066734314, -0.26071470975875854, -0.17290695011615753, 0.3404977023601532, -0.5525878667831421, 0.15411531925201416, 0.29732152819633484, 0.26975297927856445, -0.006363842636346817, -0.10973940044641495, 0.25175991654396057, -0.10282127559185028, 0.018935061991214752, 0.03397834300994873, -0.05582156032323837, 0.17936912178993225, 0.15102048218250275, -0.12889593839645386, 0.22698885202407837, 0.14321470260620117, 0.23597963154315948, 0.5638932585716248, -0.2110595703125, -0.2772648334503174, -0.43520522117614746, 0.3617568612098694, 0.0532027892768383, 0.021741025149822235, 0.26164764165878296, -0.3282064199447632, -0.032182078808546066, 0.21952202916145325, -0.5220211744308472, 0.4011763334274292, 0.06110561639070511, -0.0803278237581253, 0.2169056385755539, -0.05586007982492447, -0.08555246144533157, 0.03866899758577347, 0.051218703389167786, -0.12749633193016052, 0.5026895403862, -0.06063156574964523, 0.08067140728235245, -0.4853990972042084, -0.0822642371058464, -0.30685895681381226, 0.028065117076039314, -0.4187680780887604, -0.14754781126976013, 0.04546543210744858, 0.36578965187072754, -0.1748250126838684, -0.24361242353916168, -0.3200421929359436, 0.11623135209083557, -0.026017118245363235, 0.6292791366577148, 0.02971501648426056, 0.03812052309513092, 0.11472339928150177, 0.2774619162082672, 0.2759174704551697, -0.08548887073993683, -0.2166493684053421, 0.17867058515548706, -0.23782047629356384, -0.021520836278796196, 0.16123907268047333, 0.21292296051979065, -0.08307084441184998, -0.21213191747665405, 0.2197173535823822, -0.17499202489852905, 0.12032520025968552, 0.12909939885139465, 0.04738793522119522, 0.08906523138284683, -0.12384140491485596, 0.1089024692773819, 0.06711980700492859, -0.4015740156173706, 0.07105322927236557, -0.10025634616613388, -0.05633460730314255, -0.042991187423467636, -0.02343771420419216, -0.01307118684053421, -0.02713935822248459, -0.545944094657898, -0.3770199716091156, -0.5261210799217224, 0.24776524305343628, -0.13639779388904572, 0.036179497838020325, -0.029861275106668472, -0.03858410567045212, -0.08212710916996002, -0.07616680860519409, 0.0971461609005928, -0.1557803750038147, -0.26470765471458435, 0.309308260679245, -0.1937536895275116, -0.33318376541137695, 0.0525224544107914, 0.033474162220954895, 0.4599122405052185, -0.10991264134645462, -0.24993227422237396, -0.008260473608970642, 0.04814992845058441, 0.18314117193222046, -0.09988492727279663, -0.07636593282222748, 0.11369621008634567, 0.0019146844279021025, 0.0809374675154686, 0.05231861025094986, -0.009031057357788086, 0.022821269929409027, 0.33897843956947327, 0.024671807885169983, 0.13368560373783112, 0.06707312166690826, -0.24614155292510986, 0.6589117050170898, 0.45807820558547974, 0.14896930754184723, 0.2617548704147339, -0.19428709149360657, 0.1342177391052246, -0.3761756122112274, -0.37782248854637146, -0.08691157400608063, -0.28992632031440735, -0.043990358710289, 0.5156703591346741, 0.16831758618354797, 0.009578267112374306, -0.37715333700180054, -0.18304263055324554, -0.25266072154045105, -0.29770609736442566, -0.09708845615386963, -0.04316405951976776, 0.025047797709703445, 0.058458294719457626, 0.27664515376091003, 0.0747424066066742, -0.1940096914768219, 0.20087693631649017, 0.08338311314582825, 0.287151575088501, -0.05479157343506813, -0.009123027324676514, -0.06178690865635872, -0.41861772537231445, 0.030735604465007782, 0.1404174566268921, 0.534278154373169, -0.22692416608333588, -0.01436610147356987, 0.06381159275770187, 0.20995871722698212, 0.47142183780670166, 0.2789836823940277, 0.2866937518119812, -0.014352003112435341, 0.13850779831409454, -0.16818097233772278, 0.01891050860285759, -0.16929833590984344, 0.11901309341192245, 0.18159078061580658, 0.379824697971344, -0.031138833612203598, -0.07682528346776962, -0.09382424503564835, 0.333234578371048, 0.06378093361854553, -0.17394180595874786, -0.19881467521190643, -0.040970176458358765, -0.4132498800754547, 0.18625473976135254, 0.12071508914232254, 0.28672510385513306, -0.3996559977531433, -0.07379723340272903, 0.3993132710456848, -0.029008837416768074, 0.2683798670768738, 0.07178448140621185, 0.33029869198799133, -0.018429696559906006, 0.5079402327537537, 0.34190189838409424, 0.27935123443603516, -0.12642981112003326, 0.8726478815078735, 0.16466845571994781, -0.32467398047447205, 0.1023121103644371, -0.14930832386016846, -0.1009916290640831, 0.5327768921852112, -0.05585196614265442, -0.12248688191175461, -0.06683029979467392, -0.00208909809589386, -0.33247360587120056, 0.2613466680049896, 0.3142696022987366, 0.2035779356956482, -0.3986468017101288, -0.053624458611011505, 0.3759845197200775, 0.013521041721105576, -0.15399828553199768, 0.2730399966239929, 0.15352126955986023, -0.18436942994594574, 0.11813164502382278, -0.2964574098587036, 1.0028693675994873, 0.29215991497039795, 0.38279834389686584, 0.33120766282081604, -0.0403263121843338, -0.25095823407173157, -0.3336679935455322, 0.12121297419071198, -0.195364311337471, -0.009909839369356632, -0.08722211420536041, -0.1132839247584343, 0.010335206985473633, 0.08502357453107834, -0.047607485204935074, 0.16018682718276978, 0.1450435370206833, 0.15587502717971802, 0.09084368497133255, 0.1495521366596222, -0.20617999136447906, -0.36241960525512695, 0.13761049509048462, -0.03631533682346344, 0.008114513009786606, 0.4701991379261017, 0.027335677295923233, -0.20948491990566254, -0.12359604239463806, -0.43839800357818604, -0.2067754864692688, 0.4537021219730377, -0.02490997686982155, 0.015206215903162956, 0.01389496773481369, -0.2945724129676819, 0.28440946340560913, 0.2792624235153198, 0.24092541635036469, 0.09079261124134064, -0.4155939519405365, 0.33117491006851196, -0.08191638439893723, 0.16726641356945038, -0.035567548125982285, 0.1296275556087494, -0.03349057585000992, 0.012440256774425507, -0.27931106090545654, 0.12695690989494324, -0.06181180477142334, -0.08563102036714554, -0.08044236153364182, 0.21885205805301666, 0.30540239810943604, -0.28523752093315125, -0.3833872079849243, -0.08823654055595398, -0.08520680665969849, -0.08969622850418091, 0.08523978292942047, 0.020793724805116653, -0.26321035623550415, 0.028793390840291977, 0.13482971489429474, -0.19870103895664215, 0.07361789792776108, 0.7157278656959534, -0.21619486808776855, -0.40783554315567017, 0.525931715965271, -0.03187789022922516, -0.1757955551147461, -0.18215447664260864, 0.010316140949726105, 0.22788503766059875, -0.7808632850646973, -0.08664583414793015, 0.0636194720864296, -0.016169942915439606, -0.26184701919555664, 0.24291348457336426, 0.19839337468147278, -0.14161664247512817, 0.03535440191626549, -0.3575725257396698, -0.3615676462650299, 0.14261282980442047, -0.010569274425506592, 0.22173704206943512, 0.11650729924440384, -0.18187673389911652, 0.06232482194900513, -0.14183980226516724, -0.20647580921649933, 0.19626659154891968, -0.009395597502589226, 0.022348549216985703, 0.04063926637172699, -0.11828801780939102, 0.22060193121433258, -0.053671225905418396, 0.10214763879776001, 0.3039659261703491, -0.18094773590564728, -0.02308243326842785, -0.042056068778038025, 0.21786414086818695, 0.023754261434078217, -0.38775283098220825, 0.02898479998111725, 0.062146253883838654, -0.0851418673992157, -0.19581125676631927, 0.2831711173057556, 0.42211171984672546, -0.04726536571979523, 0.013724126853048801, -0.14231979846954346, 0.03260470926761627, -0.1692994385957718, 0.24321550130844116, -0.09351427853107452, 0.18204471468925476, -0.01983621157705784, 0.13155832886695862, -0.3124009966850281, -0.11211840808391571, -0.10252625495195389, 0.15947449207305908, 0.46348804235458374, 0.015816006809473038, 0.346934974193573, -0.1923011988401413, 0.21910378336906433, -0.06629229336977005, 0.3411138951778412, 0.2435232251882553, -0.32933923602104187, 0.0363701730966568, 0.07581855356693268, 0.10577034950256348, -0.22725267708301544, -0.1414531022310257, -0.03557751700282097, -0.36020228266716003, -0.02304612100124359, -0.07206862419843674, 0.23506879806518555, -0.22633253037929535, -0.020852841436862946, -0.13155849277973175, 0.525967001914978, -0.03318247199058533, 0.09584097564220428, 0.41311314702033997, -0.03663492947816849, 0.13297760486602783, 0.002517400309443474, -0.06277187168598175, 0.06262171268463135, 0.7115365266799927, -0.6978963613510132, 0.32272979617118835, -0.028169691562652588, 0.20823754370212555, 0.15712305903434753, -0.5921528935432434, -0.45160040259361267, -0.2154974639415741, -0.1937330663204193, 0.018517307937145233, 0.026244420558214188, 0.25458988547325134, -0.43879610300064087, -0.2378970980644226, -0.3239344656467438, -0.0800803005695343, -0.0958557054400444, -0.059052564203739166, -0.0014115013182163239, -0.26197922229766846, -0.2249443084001541, 0.09458263218402863, -0.12867684662342072, 0.0023498274385929108, 0.011743150651454926, 0.1596602201461792, 0.07600148022174835, 0.1438908725976944, -0.34576934576034546, 0.1408289074897766, -0.09282314032316208, -0.16015590727329254, 0.3072662651538849, 0.23558449745178223, -0.00004850327968597412, 0.4841148257255554, 0.21162159740924835, 0.41191384196281433, 0.23468101024627686, -0.1337091624736786, 0.28372445702552795, 0.015671081840991974, 0.061894893646240234, 0.15075258910655975, 0.17140795290470123, 0.13324429094791412, 0.4558273255825043, 0.15403854846954346, 0.15771034359931946, -0.076406329870224, 0.0038068927824497223, -0.13753101229667664, -0.0006683319807052612, -0.31447499990463257, 0.20412170886993408, -0.3874052166938782, -0.10375910997390747, -0.2713545858860016, -0.12411905080080032, -0.35081079602241516, -0.021677006036043167, 0.2912825047969818, 0.09558927267789841, 0.1698872148990631, 0.05434950441122055, 0.02193460240960121, -0.1371026188135147, 0.18775752186775208, 0.39388325810432434, 0.2558993995189667, -0.22049416601657867, -0.1704561710357666, -0.48756417632102966, 0.35607051849365234, 0.2565136253833771, 0.07519616931676865, 0.013225976377725601, -0.2334994673728943, -0.08682560175657272, 0.06714159995317459, 0.008107803761959076, -0.12664566934108734, -0.0661567822098732, -0.02463717758655548, -0.07811778783798218, -0.10590320825576782, 0.15233266353607178, 0.27882859110832214, -0.09651102125644684, -0.624112606048584, 0.1253812462091446, 0.11245261877775192, -0.07089421153068542, 0.061471156775951385, 0.01043611764907837, -0.273332804441452, -0.0715714693069458, 0.16231894493103027, 0.08624143898487091, 0.5717625617980957, -0.21861761808395386, 0.0313815176486969, -0.173872172832489, -0.32304808497428894, 0.02933143451809883, -0.2709759473800659, -0.07250240445137024, 0.564789891242981, 0.09582987427711487, -0.09765683114528656, -0.3332044184207916, 0.08346625417470932, -0.12430719286203384, -0.015079692006111145, -0.5276537537574768, 0.05318921059370041, -0.3631989061832428, 0.23524655401706696, 0.035567428916692734, 0.20453280210494995, -0.1933111846446991, 0.0221614558249712, -0.20922574400901794, -0.36021485924720764, 0.7947116494178772, -0.3871307969093323, -0.2767919600009918, -0.18636015057563782, 0.4942859411239624, -0.0789816752076149, -0.08302656561136246, -0.33390480279922485, 0.20013993978500366, 0.15004682540893555, -0.04587758332490921, -0.22052977979183197, -0.04882187768816948, -0.10193786025047302, -0.20831264555454254, -0.04813859239220619, 0.31086403131484985, 0.39258232712745667, -0.2813003957271576, 0.28173041343688965, -0.49086499214172363 ]
https://github.com/huggingface/datasets/issues/3909
Error loading file audio when downloading the Common Voice dataset directly from the Hub
Thanks! And sorry for posting this problem in what turned on to be an unrelated thread. I rewrote the code, and the model works. The WER is 0.137 however, so I'm not sure if I have missed a step. I will look further into that at a later point. The transcriptions look good through manual inspection. The rewritten code: ```python from datasets import load_dataset, load_metric from transformers import Speech2TextForConditionalGeneration, Speech2TextProcessor, Wav2Vec2Processor librispeech_eval = load_dataset("librispeech_asr", "clean", split="test") # change to "other" for other test dataset wer = load_metric("wer") model = Speech2TextForConditionalGeneration.from_pretrained("facebook/s2t-small-librispeech-asr").to("cuda") processor = Speech2TextProcessor.from_pretrained("facebook/s2t-small-librispeech-asr", do_upper_case=True) def map_to_pred(batch): audio = batch["audio"] features = processor(audio["array"], sampling_rate=audio["sampling_rate"], padding=True, return_tensors="pt") input_features = features.input_features.to("cuda") attention_mask = features.attention_mask.to("cuda") gen_tokens = model.generate(input_features=input_features, attention_mask=attention_mask) batch["transcription"] = processor.batch_decode(gen_tokens, skip_special_tokens=True) return batch result = librispeech_eval.map(map_to_pred)#, batched=True, batch_size=8) print("WER:", wer.compute(predictions=result["transcription"], references=result["text"])) ```
## Describe the bug When loading the Common_Voice dataset, by downloading it directly from the Hugging Face hub, some files can not be opened. ## Steps to reproduce the bug ```python import torch import torchaudio from datasets import load_dataset, load_metric from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor import re test_dataset = load_dataset("common_voice", "it", split="test") #test_dataset = load_dataset('csv', data_files = {'test': '/workspace/Dataset/Common_Voice/cv-corpus80/it/test.csv'}) wer = load_metric("wer") processor = Wav2Vec2Processor.from_pretrained("joorock12/wav2vec2-large-xlsr-italian") model = Wav2Vec2ForCTC.from_pretrained("joorock12/wav2vec2-large-xlsr-italian") model.to("cuda") chars_to_ignore_regex = '[\,\?\.\!\-\;\:\"\“\'\�]' resampler = torchaudio.transforms.Resample(48_000, 16_000) ``` ## Expected results The common voice dataset downloaded and correctly loaded whit the use of the hugging face datasets library. ## Actual results The error is: ```python 0ex [00:00, ?ex/s] --------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) <ipython-input-48-ef87f4129e6e> in <module> 7 return batch 8 ----> 9 test_dataset = test_dataset.map(speech_file_to_array_fn) /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in map(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint, desc) 2107 2108 if num_proc is None or num_proc == 1: -> 2109 return self._map_single( 2110 function=function, 2111 with_indices=with_indices, /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 516 self: "Dataset" = kwargs.pop("self") 517 # apply actual function --> 518 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 519 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 520 for dataset in datasets: /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 483 } 484 # apply actual function --> 485 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 486 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 487 # re-apply format to the output /opt/conda/lib/python3.8/site-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 411 # Call actual function 412 --> 413 out = func(self, *args, **kwargs) 414 415 # Update fingerprint of in-place transforms + update in-place history of transforms /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in _map_single(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, new_fingerprint, rank, offset, disable_tqdm, desc, cache_only) 2465 if not batched: 2466 for i, example in enumerate(pbar): -> 2467 example = apply_function_on_filtered_inputs(example, i, offset=offset) 2468 if update_data: 2469 if i == 0: /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in apply_function_on_filtered_inputs(inputs, indices, check_same_num_examples, offset) 2372 if with_rank: 2373 additional_args += (rank,) -> 2374 processed_inputs = function(*fn_args, *additional_args, **fn_kwargs) 2375 if update_data is None: 2376 # Check if the function returns updated examples /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in decorated(item, *args, **kwargs) 2067 ) 2068 # Use the LazyDict internally, while mapping the function -> 2069 result = f(decorated_item, *args, **kwargs) 2070 # Return a standard dict 2071 return result.data if isinstance(result, LazyDict) else result <ipython-input-48-ef87f4129e6e> in speech_file_to_array_fn(batch) 3 def speech_file_to_array_fn(batch): 4 batch["sentence"] = re.sub(chars_to_ignore_regex, '', batch["sentence"]).lower() ----> 5 speech_array, sampling_rate = torchaudio.load(batch["path"]) 6 batch["speech"] = resampler(speech_array).squeeze().numpy() 7 return batch /opt/conda/lib/python3.8/site-packages/torchaudio/backend/sox_io_backend.py in load(filepath, frame_offset, num_frames, normalize, channels_first, format) 150 filepath, frame_offset, num_frames, normalize, channels_first, format) 151 filepath = os.fspath(filepath) --> 152 return torch.ops.torchaudio.sox_io_load_audio_file( 153 filepath, frame_offset, num_frames, normalize, channels_first, format) 154 RuntimeError: Error loading audio file: failed to open file common_voice_it_17415776.mp3 ``` ## Environment info - `datasets` version: 1.18.4 - Platform: Linux-5.4.0-x86_64-with-glibc2.10 - Python version: 3.8.5 - PyArrow version: 7.0.0
130
Error loading file audio when downloading the Common Voice dataset directly from the Hub ## Describe the bug When loading the Common_Voice dataset, by downloading it directly from the Hugging Face hub, some files can not be opened. ## Steps to reproduce the bug ```python import torch import torchaudio from datasets import load_dataset, load_metric from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor import re test_dataset = load_dataset("common_voice", "it", split="test") #test_dataset = load_dataset('csv', data_files = {'test': '/workspace/Dataset/Common_Voice/cv-corpus80/it/test.csv'}) wer = load_metric("wer") processor = Wav2Vec2Processor.from_pretrained("joorock12/wav2vec2-large-xlsr-italian") model = Wav2Vec2ForCTC.from_pretrained("joorock12/wav2vec2-large-xlsr-italian") model.to("cuda") chars_to_ignore_regex = '[\,\?\.\!\-\;\:\"\“\'\�]' resampler = torchaudio.transforms.Resample(48_000, 16_000) ``` ## Expected results The common voice dataset downloaded and correctly loaded whit the use of the hugging face datasets library. ## Actual results The error is: ```python 0ex [00:00, ?ex/s] --------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) <ipython-input-48-ef87f4129e6e> in <module> 7 return batch 8 ----> 9 test_dataset = test_dataset.map(speech_file_to_array_fn) /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in map(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint, desc) 2107 2108 if num_proc is None or num_proc == 1: -> 2109 return self._map_single( 2110 function=function, 2111 with_indices=with_indices, /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 516 self: "Dataset" = kwargs.pop("self") 517 # apply actual function --> 518 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 519 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 520 for dataset in datasets: /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 483 } 484 # apply actual function --> 485 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 486 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 487 # re-apply format to the output /opt/conda/lib/python3.8/site-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 411 # Call actual function 412 --> 413 out = func(self, *args, **kwargs) 414 415 # Update fingerprint of in-place transforms + update in-place history of transforms /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in _map_single(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, new_fingerprint, rank, offset, disable_tqdm, desc, cache_only) 2465 if not batched: 2466 for i, example in enumerate(pbar): -> 2467 example = apply_function_on_filtered_inputs(example, i, offset=offset) 2468 if update_data: 2469 if i == 0: /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in apply_function_on_filtered_inputs(inputs, indices, check_same_num_examples, offset) 2372 if with_rank: 2373 additional_args += (rank,) -> 2374 processed_inputs = function(*fn_args, *additional_args, **fn_kwargs) 2375 if update_data is None: 2376 # Check if the function returns updated examples /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in decorated(item, *args, **kwargs) 2067 ) 2068 # Use the LazyDict internally, while mapping the function -> 2069 result = f(decorated_item, *args, **kwargs) 2070 # Return a standard dict 2071 return result.data if isinstance(result, LazyDict) else result <ipython-input-48-ef87f4129e6e> in speech_file_to_array_fn(batch) 3 def speech_file_to_array_fn(batch): 4 batch["sentence"] = re.sub(chars_to_ignore_regex, '', batch["sentence"]).lower() ----> 5 speech_array, sampling_rate = torchaudio.load(batch["path"]) 6 batch["speech"] = resampler(speech_array).squeeze().numpy() 7 return batch /opt/conda/lib/python3.8/site-packages/torchaudio/backend/sox_io_backend.py in load(filepath, frame_offset, num_frames, normalize, channels_first, format) 150 filepath, frame_offset, num_frames, normalize, channels_first, format) 151 filepath = os.fspath(filepath) --> 152 return torch.ops.torchaudio.sox_io_load_audio_file( 153 filepath, frame_offset, num_frames, normalize, channels_first, format) 154 RuntimeError: Error loading audio file: failed to open file common_voice_it_17415776.mp3 ``` ## Environment info - `datasets` version: 1.18.4 - Platform: Linux-5.4.0-x86_64-with-glibc2.10 - Python version: 3.8.5 - PyArrow version: 7.0.0 Thanks! And sorry for posting this problem in what turned on to be an unrelated thread. I rewrote the code, and the model works. The WER is 0.137 however, so I'm not sure if I have missed a step. I will look further into that at a later point. The transcriptions look good through manual inspection. The rewritten code: ```python from datasets import load_dataset, load_metric from transformers import Speech2TextForConditionalGeneration, Speech2TextProcessor, Wav2Vec2Processor librispeech_eval = load_dataset("librispeech_asr", "clean", split="test") # change to "other" for other test dataset wer = load_metric("wer") model = Speech2TextForConditionalGeneration.from_pretrained("facebook/s2t-small-librispeech-asr").to("cuda") processor = Speech2TextProcessor.from_pretrained("facebook/s2t-small-librispeech-asr", do_upper_case=True) def map_to_pred(batch): audio = batch["audio"] features = processor(audio["array"], sampling_rate=audio["sampling_rate"], padding=True, return_tensors="pt") input_features = features.input_features.to("cuda") attention_mask = features.attention_mask.to("cuda") gen_tokens = model.generate(input_features=input_features, attention_mask=attention_mask) batch["transcription"] = processor.batch_decode(gen_tokens, skip_special_tokens=True) return batch result = librispeech_eval.map(map_to_pred)#, batched=True, batch_size=8) print("WER:", wer.compute(predictions=result["transcription"], references=result["text"])) ```
[ -0.2770323157310486, -0.5579105615615845, 0.09589694440364838, 0.4342244267463684, 0.09727804362773895, 0.027911096811294556, 0.15836107730865479, 0.33873307704925537, 0.22135819494724274, 0.15522411465644836, -0.6184945702552795, 0.18397583067417145, -0.05294143408536911, -0.3478994071483612, -0.05929677188396454, -0.11353304982185364, 0.05205851420760155, 0.12789690494537354, 0.006890520453453064, -0.2776695787906647, -0.23433703184127808, 0.28213611245155334, -0.2509043216705322, 0.3531126379966736, -0.41620147228240967, 0.018599342554807663, 0.23966798186302185, 0.5088717341423035, -0.10240722447633743, -0.3314360976219177, 0.3121221661567688, -0.049110058695077896, 0.21300554275512695, 0.42743340134620667, -0.00011626708146650344, 0.01847243309020996, 0.42071837186813354, -0.09775641560554504, -0.12180495262145996, -0.23716510832309723, -0.19443681836128235, 0.3139556646347046, -0.02869165875017643, 0.11379411071538925, 0.061336398124694824, 0.23813310265541077, 0.026398228481411934, -0.18683810532093048, 0.679694652557373, 0.43267786502838135, 0.13235680758953094, 0.31490659713745117, 0.08415131270885468, -0.1255195289850235, 0.20867401361465454, -0.05309772491455078, 0.0639687180519104, 0.5049846768379211, 0.30220597982406616, 0.00259303767234087, -0.07932626456022263, 0.14007936418056488, -0.31338444352149963, -0.06280699372291565, 0.04819555580615997, 0.06921328604221344, -0.426424503326416, -0.38632896542549133, 0.10070794820785522, 0.2126060426235199, 0.3382570445537567, -0.2975596487522125, -0.25352251529693604, -0.04287698119878769, -0.058155354112386703, -0.18395376205444336, 0.2144213318824768, 0.3430328071117401, -0.37090981006622314, 0.23434549570083618, -0.18853528797626495, -0.004032709635794163, -0.1982617974281311, 0.058018382638692856, 0.10877946019172668, -0.009603306651115417, -0.02408905327320099, 0.14499402046203613, 0.2289453148841858, 0.018675196915864944, 0.05647570267319679, 0.03250373899936676, -0.15864931046962738, 0.39803871512413025, -0.34383630752563477, 0.04840007424354553, -0.1927213966846466, -0.014284588396549225, 0.1082155779004097, -0.08669380098581314, 0.24339264631271362, 0.05876778066158295, -0.23499979078769684, 0.10373343527317047, 0.23148411512374878, 0.06012197956442833, -0.16859948635101318, 0.03925395384430885, 0.29576343297958374, 0.017396776005625725, 0.014471843838691711, -0.1853044033050537, -0.3221342861652374, -0.3186969757080078, -0.14338745176792145, 0.09794499725103378, 0.19261899590492249, -0.27118220925331116, -0.6065789461135864, 0.04596153646707535, -0.03390328958630562, 0.1479753702878952, 0.17384935915470123, 0.31211206316947937, 0.016977332532405853, 0.31723660230636597, 0.20833487808704376, 0.32961905002593994, -0.2861897945404053, -0.021716203540563583, -0.0565779022872448, 0.1310737282037735, -0.09009547531604767, 0.09019054472446442, 0.3719748556613922, -0.22760462760925293, 0.2882646918296814, 0.20364227890968323, 0.5024918913841248, -0.24629946053028107, -0.1376001536846161, -0.09106007218360901, -0.0856826975941658, 0.15259021520614624, 0.14541095495224, 0.24470292031764984, -0.01570010557770729, 0.17074118554592133, -0.12184935063123703, 0.2836284637451172, -0.5029199123382568, -0.2279486209154129, -0.06333234161138535, 0.08435345441102982, -0.06915614008903503, 0.21165704727172852, -0.12493100017309189, -0.25759825110435486, -0.05730409175157547, -0.5344335436820984, -0.036678723990917206, -0.27148622274398804, -0.13042688369750977, -0.002776735695078969, 0.3777680993080139, 0.3689073920249939, -0.03938111662864685, 0.12282519042491913, 0.25821900367736816, 0.00014906376600265503, 0.11490777879953384, 0.3810599446296692, -0.1746087521314621, 0.11200635880231857, -0.48481953144073486, 0.35615843534469604, 0.22818255424499512, -0.8792298436164856, -0.5025163888931274, 0.06289049983024597, -0.037103187292814255, 0.3826613426208496, -0.018000729382038116, 0.0565459243953228, 0.10723871737718582, -0.06808920204639435, 0.4597163796424866, 0.2403297871351242, 0.1922263354063034, 0.0933542251586914, -0.013021349906921387, -0.10080482810735703, -0.054364725947380066, 0.14788371324539185, -0.08365412056446075, 0.10020548105239868, 0.07504963129758835, 0.284922331571579, 0.4207438826560974, -0.0055228956043720245, -0.031135352328419685, 0.09051112830638885, 0.1467074751853943, -0.3343490958213806, -0.03124464862048626, -0.1820223033428192, -0.27533137798309326, 0.2643183171749115, -0.2552793622016907, -0.002508345991373062, -0.07806146144866943, -0.0329587496817112, -0.39293399453163147, -0.13749152421951294, -0.4621693789958954, -0.07916873693466187, -0.07062454521656036, -0.04195162653923035, -0.09313219785690308, -0.12476550042629242, -0.14919625222682953, 0.5878197550773621, 0.055098265409469604, 0.12425758689641953, -0.42913058400154114, 0.3229445219039917, 0.024823784828186035, -0.030508678406476974, 0.14741358160972595, 0.26910170912742615, 0.18435212969779968, 0.02096908539533615, -0.35535258054733276, 0.34442654252052307, 0.027948522940278053, 0.5421099066734314, -0.26071470975875854, -0.17290695011615753, 0.3404977023601532, -0.5525878667831421, 0.15411531925201416, 0.29732152819633484, 0.26975297927856445, -0.006363842636346817, -0.10973940044641495, 0.25175991654396057, -0.10282127559185028, 0.018935061991214752, 0.03397834300994873, -0.05582156032323837, 0.17936912178993225, 0.15102048218250275, -0.12889593839645386, 0.22698885202407837, 0.14321470260620117, 0.23597963154315948, 0.5638932585716248, -0.2110595703125, -0.2772648334503174, -0.43520522117614746, 0.3617568612098694, 0.0532027892768383, 0.021741025149822235, 0.26164764165878296, -0.3282064199447632, -0.032182078808546066, 0.21952202916145325, -0.5220211744308472, 0.4011763334274292, 0.06110561639070511, -0.0803278237581253, 0.2169056385755539, -0.05586007982492447, -0.08555246144533157, 0.03866899758577347, 0.051218703389167786, -0.12749633193016052, 0.5026895403862, -0.06063156574964523, 0.08067140728235245, -0.4853990972042084, -0.0822642371058464, -0.30685895681381226, 0.028065117076039314, -0.4187680780887604, -0.14754781126976013, 0.04546543210744858, 0.36578965187072754, -0.1748250126838684, -0.24361242353916168, -0.3200421929359436, 0.11623135209083557, -0.026017118245363235, 0.6292791366577148, 0.02971501648426056, 0.03812052309513092, 0.11472339928150177, 0.2774619162082672, 0.2759174704551697, -0.08548887073993683, -0.2166493684053421, 0.17867058515548706, -0.23782047629356384, -0.021520836278796196, 0.16123907268047333, 0.21292296051979065, -0.08307084441184998, -0.21213191747665405, 0.2197173535823822, -0.17499202489852905, 0.12032520025968552, 0.12909939885139465, 0.04738793522119522, 0.08906523138284683, -0.12384140491485596, 0.1089024692773819, 0.06711980700492859, -0.4015740156173706, 0.07105322927236557, -0.10025634616613388, -0.05633460730314255, -0.042991187423467636, -0.02343771420419216, -0.01307118684053421, -0.02713935822248459, -0.545944094657898, -0.3770199716091156, -0.5261210799217224, 0.24776524305343628, -0.13639779388904572, 0.036179497838020325, -0.029861275106668472, -0.03858410567045212, -0.08212710916996002, -0.07616680860519409, 0.0971461609005928, -0.1557803750038147, -0.26470765471458435, 0.309308260679245, -0.1937536895275116, -0.33318376541137695, 0.0525224544107914, 0.033474162220954895, 0.4599122405052185, -0.10991264134645462, -0.24993227422237396, -0.008260473608970642, 0.04814992845058441, 0.18314117193222046, -0.09988492727279663, -0.07636593282222748, 0.11369621008634567, 0.0019146844279021025, 0.0809374675154686, 0.05231861025094986, -0.009031057357788086, 0.022821269929409027, 0.33897843956947327, 0.024671807885169983, 0.13368560373783112, 0.06707312166690826, -0.24614155292510986, 0.6589117050170898, 0.45807820558547974, 0.14896930754184723, 0.2617548704147339, -0.19428709149360657, 0.1342177391052246, -0.3761756122112274, -0.37782248854637146, -0.08691157400608063, -0.28992632031440735, -0.043990358710289, 0.5156703591346741, 0.16831758618354797, 0.009578267112374306, -0.37715333700180054, -0.18304263055324554, -0.25266072154045105, -0.29770609736442566, -0.09708845615386963, -0.04316405951976776, 0.025047797709703445, 0.058458294719457626, 0.27664515376091003, 0.0747424066066742, -0.1940096914768219, 0.20087693631649017, 0.08338311314582825, 0.287151575088501, -0.05479157343506813, -0.009123027324676514, -0.06178690865635872, -0.41861772537231445, 0.030735604465007782, 0.1404174566268921, 0.534278154373169, -0.22692416608333588, -0.01436610147356987, 0.06381159275770187, 0.20995871722698212, 0.47142183780670166, 0.2789836823940277, 0.2866937518119812, -0.014352003112435341, 0.13850779831409454, -0.16818097233772278, 0.01891050860285759, -0.16929833590984344, 0.11901309341192245, 0.18159078061580658, 0.379824697971344, -0.031138833612203598, -0.07682528346776962, -0.09382424503564835, 0.333234578371048, 0.06378093361854553, -0.17394180595874786, -0.19881467521190643, -0.040970176458358765, -0.4132498800754547, 0.18625473976135254, 0.12071508914232254, 0.28672510385513306, -0.3996559977531433, -0.07379723340272903, 0.3993132710456848, -0.029008837416768074, 0.2683798670768738, 0.07178448140621185, 0.33029869198799133, -0.018429696559906006, 0.5079402327537537, 0.34190189838409424, 0.27935123443603516, -0.12642981112003326, 0.8726478815078735, 0.16466845571994781, -0.32467398047447205, 0.1023121103644371, -0.14930832386016846, -0.1009916290640831, 0.5327768921852112, -0.05585196614265442, -0.12248688191175461, -0.06683029979467392, -0.00208909809589386, -0.33247360587120056, 0.2613466680049896, 0.3142696022987366, 0.2035779356956482, -0.3986468017101288, -0.053624458611011505, 0.3759845197200775, 0.013521041721105576, -0.15399828553199768, 0.2730399966239929, 0.15352126955986023, -0.18436942994594574, 0.11813164502382278, -0.2964574098587036, 1.0028693675994873, 0.29215991497039795, 0.38279834389686584, 0.33120766282081604, -0.0403263121843338, -0.25095823407173157, -0.3336679935455322, 0.12121297419071198, -0.195364311337471, -0.009909839369356632, -0.08722211420536041, -0.1132839247584343, 0.010335206985473633, 0.08502357453107834, -0.047607485204935074, 0.16018682718276978, 0.1450435370206833, 0.15587502717971802, 0.09084368497133255, 0.1495521366596222, -0.20617999136447906, -0.36241960525512695, 0.13761049509048462, -0.03631533682346344, 0.008114513009786606, 0.4701991379261017, 0.027335677295923233, -0.20948491990566254, -0.12359604239463806, -0.43839800357818604, -0.2067754864692688, 0.4537021219730377, -0.02490997686982155, 0.015206215903162956, 0.01389496773481369, -0.2945724129676819, 0.28440946340560913, 0.2792624235153198, 0.24092541635036469, 0.09079261124134064, -0.4155939519405365, 0.33117491006851196, -0.08191638439893723, 0.16726641356945038, -0.035567548125982285, 0.1296275556087494, -0.03349057585000992, 0.012440256774425507, -0.27931106090545654, 0.12695690989494324, -0.06181180477142334, -0.08563102036714554, -0.08044236153364182, 0.21885205805301666, 0.30540239810943604, -0.28523752093315125, -0.3833872079849243, -0.08823654055595398, -0.08520680665969849, -0.08969622850418091, 0.08523978292942047, 0.020793724805116653, -0.26321035623550415, 0.028793390840291977, 0.13482971489429474, -0.19870103895664215, 0.07361789792776108, 0.7157278656959534, -0.21619486808776855, -0.40783554315567017, 0.525931715965271, -0.03187789022922516, -0.1757955551147461, -0.18215447664260864, 0.010316140949726105, 0.22788503766059875, -0.7808632850646973, -0.08664583414793015, 0.0636194720864296, -0.016169942915439606, -0.26184701919555664, 0.24291348457336426, 0.19839337468147278, -0.14161664247512817, 0.03535440191626549, -0.3575725257396698, -0.3615676462650299, 0.14261282980442047, -0.010569274425506592, 0.22173704206943512, 0.11650729924440384, -0.18187673389911652, 0.06232482194900513, -0.14183980226516724, -0.20647580921649933, 0.19626659154891968, -0.009395597502589226, 0.022348549216985703, 0.04063926637172699, -0.11828801780939102, 0.22060193121433258, -0.053671225905418396, 0.10214763879776001, 0.3039659261703491, -0.18094773590564728, -0.02308243326842785, -0.042056068778038025, 0.21786414086818695, 0.023754261434078217, -0.38775283098220825, 0.02898479998111725, 0.062146253883838654, -0.0851418673992157, -0.19581125676631927, 0.2831711173057556, 0.42211171984672546, -0.04726536571979523, 0.013724126853048801, -0.14231979846954346, 0.03260470926761627, -0.1692994385957718, 0.24321550130844116, -0.09351427853107452, 0.18204471468925476, -0.01983621157705784, 0.13155832886695862, -0.3124009966850281, -0.11211840808391571, -0.10252625495195389, 0.15947449207305908, 0.46348804235458374, 0.015816006809473038, 0.346934974193573, -0.1923011988401413, 0.21910378336906433, -0.06629229336977005, 0.3411138951778412, 0.2435232251882553, -0.32933923602104187, 0.0363701730966568, 0.07581855356693268, 0.10577034950256348, -0.22725267708301544, -0.1414531022310257, -0.03557751700282097, -0.36020228266716003, -0.02304612100124359, -0.07206862419843674, 0.23506879806518555, -0.22633253037929535, -0.020852841436862946, -0.13155849277973175, 0.525967001914978, -0.03318247199058533, 0.09584097564220428, 0.41311314702033997, -0.03663492947816849, 0.13297760486602783, 0.002517400309443474, -0.06277187168598175, 0.06262171268463135, 0.7115365266799927, -0.6978963613510132, 0.32272979617118835, -0.028169691562652588, 0.20823754370212555, 0.15712305903434753, -0.5921528935432434, -0.45160040259361267, -0.2154974639415741, -0.1937330663204193, 0.018517307937145233, 0.026244420558214188, 0.25458988547325134, -0.43879610300064087, -0.2378970980644226, -0.3239344656467438, -0.0800803005695343, -0.0958557054400444, -0.059052564203739166, -0.0014115013182163239, -0.26197922229766846, -0.2249443084001541, 0.09458263218402863, -0.12867684662342072, 0.0023498274385929108, 0.011743150651454926, 0.1596602201461792, 0.07600148022174835, 0.1438908725976944, -0.34576934576034546, 0.1408289074897766, -0.09282314032316208, -0.16015590727329254, 0.3072662651538849, 0.23558449745178223, -0.00004850327968597412, 0.4841148257255554, 0.21162159740924835, 0.41191384196281433, 0.23468101024627686, -0.1337091624736786, 0.28372445702552795, 0.015671081840991974, 0.061894893646240234, 0.15075258910655975, 0.17140795290470123, 0.13324429094791412, 0.4558273255825043, 0.15403854846954346, 0.15771034359931946, -0.076406329870224, 0.0038068927824497223, -0.13753101229667664, -0.0006683319807052612, -0.31447499990463257, 0.20412170886993408, -0.3874052166938782, -0.10375910997390747, -0.2713545858860016, -0.12411905080080032, -0.35081079602241516, -0.021677006036043167, 0.2912825047969818, 0.09558927267789841, 0.1698872148990631, 0.05434950441122055, 0.02193460240960121, -0.1371026188135147, 0.18775752186775208, 0.39388325810432434, 0.2558993995189667, -0.22049416601657867, -0.1704561710357666, -0.48756417632102966, 0.35607051849365234, 0.2565136253833771, 0.07519616931676865, 0.013225976377725601, -0.2334994673728943, -0.08682560175657272, 0.06714159995317459, 0.008107803761959076, -0.12664566934108734, -0.0661567822098732, -0.02463717758655548, -0.07811778783798218, -0.10590320825576782, 0.15233266353607178, 0.27882859110832214, -0.09651102125644684, -0.624112606048584, 0.1253812462091446, 0.11245261877775192, -0.07089421153068542, 0.061471156775951385, 0.01043611764907837, -0.273332804441452, -0.0715714693069458, 0.16231894493103027, 0.08624143898487091, 0.5717625617980957, -0.21861761808395386, 0.0313815176486969, -0.173872172832489, -0.32304808497428894, 0.02933143451809883, -0.2709759473800659, -0.07250240445137024, 0.564789891242981, 0.09582987427711487, -0.09765683114528656, -0.3332044184207916, 0.08346625417470932, -0.12430719286203384, -0.015079692006111145, -0.5276537537574768, 0.05318921059370041, -0.3631989061832428, 0.23524655401706696, 0.035567428916692734, 0.20453280210494995, -0.1933111846446991, 0.0221614558249712, -0.20922574400901794, -0.36021485924720764, 0.7947116494178772, -0.3871307969093323, -0.2767919600009918, -0.18636015057563782, 0.4942859411239624, -0.0789816752076149, -0.08302656561136246, -0.33390480279922485, 0.20013993978500366, 0.15004682540893555, -0.04587758332490921, -0.22052977979183197, -0.04882187768816948, -0.10193786025047302, -0.20831264555454254, -0.04813859239220619, 0.31086403131484985, 0.39258232712745667, -0.2813003957271576, 0.28173041343688965, -0.49086499214172363 ]
https://github.com/huggingface/datasets/issues/3909
Error loading file audio when downloading the Common Voice dataset directly from the Hub
I think the issue comes from the fact that you set `batched=False` while `map_to_pred` still returns a list of strings for "transcription". You can fix it by adding `[0]` at the end of this line to get the string: ```python batch["transcription"] = processor.batch_decode(gen_tokens, skip_special_tokens=True)[0] ```
## Describe the bug When loading the Common_Voice dataset, by downloading it directly from the Hugging Face hub, some files can not be opened. ## Steps to reproduce the bug ```python import torch import torchaudio from datasets import load_dataset, load_metric from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor import re test_dataset = load_dataset("common_voice", "it", split="test") #test_dataset = load_dataset('csv', data_files = {'test': '/workspace/Dataset/Common_Voice/cv-corpus80/it/test.csv'}) wer = load_metric("wer") processor = Wav2Vec2Processor.from_pretrained("joorock12/wav2vec2-large-xlsr-italian") model = Wav2Vec2ForCTC.from_pretrained("joorock12/wav2vec2-large-xlsr-italian") model.to("cuda") chars_to_ignore_regex = '[\,\?\.\!\-\;\:\"\“\'\�]' resampler = torchaudio.transforms.Resample(48_000, 16_000) ``` ## Expected results The common voice dataset downloaded and correctly loaded whit the use of the hugging face datasets library. ## Actual results The error is: ```python 0ex [00:00, ?ex/s] --------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) <ipython-input-48-ef87f4129e6e> in <module> 7 return batch 8 ----> 9 test_dataset = test_dataset.map(speech_file_to_array_fn) /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in map(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint, desc) 2107 2108 if num_proc is None or num_proc == 1: -> 2109 return self._map_single( 2110 function=function, 2111 with_indices=with_indices, /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 516 self: "Dataset" = kwargs.pop("self") 517 # apply actual function --> 518 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 519 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 520 for dataset in datasets: /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 483 } 484 # apply actual function --> 485 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 486 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 487 # re-apply format to the output /opt/conda/lib/python3.8/site-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 411 # Call actual function 412 --> 413 out = func(self, *args, **kwargs) 414 415 # Update fingerprint of in-place transforms + update in-place history of transforms /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in _map_single(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, new_fingerprint, rank, offset, disable_tqdm, desc, cache_only) 2465 if not batched: 2466 for i, example in enumerate(pbar): -> 2467 example = apply_function_on_filtered_inputs(example, i, offset=offset) 2468 if update_data: 2469 if i == 0: /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in apply_function_on_filtered_inputs(inputs, indices, check_same_num_examples, offset) 2372 if with_rank: 2373 additional_args += (rank,) -> 2374 processed_inputs = function(*fn_args, *additional_args, **fn_kwargs) 2375 if update_data is None: 2376 # Check if the function returns updated examples /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in decorated(item, *args, **kwargs) 2067 ) 2068 # Use the LazyDict internally, while mapping the function -> 2069 result = f(decorated_item, *args, **kwargs) 2070 # Return a standard dict 2071 return result.data if isinstance(result, LazyDict) else result <ipython-input-48-ef87f4129e6e> in speech_file_to_array_fn(batch) 3 def speech_file_to_array_fn(batch): 4 batch["sentence"] = re.sub(chars_to_ignore_regex, '', batch["sentence"]).lower() ----> 5 speech_array, sampling_rate = torchaudio.load(batch["path"]) 6 batch["speech"] = resampler(speech_array).squeeze().numpy() 7 return batch /opt/conda/lib/python3.8/site-packages/torchaudio/backend/sox_io_backend.py in load(filepath, frame_offset, num_frames, normalize, channels_first, format) 150 filepath, frame_offset, num_frames, normalize, channels_first, format) 151 filepath = os.fspath(filepath) --> 152 return torch.ops.torchaudio.sox_io_load_audio_file( 153 filepath, frame_offset, num_frames, normalize, channels_first, format) 154 RuntimeError: Error loading audio file: failed to open file common_voice_it_17415776.mp3 ``` ## Environment info - `datasets` version: 1.18.4 - Platform: Linux-5.4.0-x86_64-with-glibc2.10 - Python version: 3.8.5 - PyArrow version: 7.0.0
45
Error loading file audio when downloading the Common Voice dataset directly from the Hub ## Describe the bug When loading the Common_Voice dataset, by downloading it directly from the Hugging Face hub, some files can not be opened. ## Steps to reproduce the bug ```python import torch import torchaudio from datasets import load_dataset, load_metric from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor import re test_dataset = load_dataset("common_voice", "it", split="test") #test_dataset = load_dataset('csv', data_files = {'test': '/workspace/Dataset/Common_Voice/cv-corpus80/it/test.csv'}) wer = load_metric("wer") processor = Wav2Vec2Processor.from_pretrained("joorock12/wav2vec2-large-xlsr-italian") model = Wav2Vec2ForCTC.from_pretrained("joorock12/wav2vec2-large-xlsr-italian") model.to("cuda") chars_to_ignore_regex = '[\,\?\.\!\-\;\:\"\“\'\�]' resampler = torchaudio.transforms.Resample(48_000, 16_000) ``` ## Expected results The common voice dataset downloaded and correctly loaded whit the use of the hugging face datasets library. ## Actual results The error is: ```python 0ex [00:00, ?ex/s] --------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) <ipython-input-48-ef87f4129e6e> in <module> 7 return batch 8 ----> 9 test_dataset = test_dataset.map(speech_file_to_array_fn) /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in map(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint, desc) 2107 2108 if num_proc is None or num_proc == 1: -> 2109 return self._map_single( 2110 function=function, 2111 with_indices=with_indices, /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 516 self: "Dataset" = kwargs.pop("self") 517 # apply actual function --> 518 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 519 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 520 for dataset in datasets: /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 483 } 484 # apply actual function --> 485 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 486 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 487 # re-apply format to the output /opt/conda/lib/python3.8/site-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 411 # Call actual function 412 --> 413 out = func(self, *args, **kwargs) 414 415 # Update fingerprint of in-place transforms + update in-place history of transforms /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in _map_single(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, new_fingerprint, rank, offset, disable_tqdm, desc, cache_only) 2465 if not batched: 2466 for i, example in enumerate(pbar): -> 2467 example = apply_function_on_filtered_inputs(example, i, offset=offset) 2468 if update_data: 2469 if i == 0: /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in apply_function_on_filtered_inputs(inputs, indices, check_same_num_examples, offset) 2372 if with_rank: 2373 additional_args += (rank,) -> 2374 processed_inputs = function(*fn_args, *additional_args, **fn_kwargs) 2375 if update_data is None: 2376 # Check if the function returns updated examples /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in decorated(item, *args, **kwargs) 2067 ) 2068 # Use the LazyDict internally, while mapping the function -> 2069 result = f(decorated_item, *args, **kwargs) 2070 # Return a standard dict 2071 return result.data if isinstance(result, LazyDict) else result <ipython-input-48-ef87f4129e6e> in speech_file_to_array_fn(batch) 3 def speech_file_to_array_fn(batch): 4 batch["sentence"] = re.sub(chars_to_ignore_regex, '', batch["sentence"]).lower() ----> 5 speech_array, sampling_rate = torchaudio.load(batch["path"]) 6 batch["speech"] = resampler(speech_array).squeeze().numpy() 7 return batch /opt/conda/lib/python3.8/site-packages/torchaudio/backend/sox_io_backend.py in load(filepath, frame_offset, num_frames, normalize, channels_first, format) 150 filepath, frame_offset, num_frames, normalize, channels_first, format) 151 filepath = os.fspath(filepath) --> 152 return torch.ops.torchaudio.sox_io_load_audio_file( 153 filepath, frame_offset, num_frames, normalize, channels_first, format) 154 RuntimeError: Error loading audio file: failed to open file common_voice_it_17415776.mp3 ``` ## Environment info - `datasets` version: 1.18.4 - Platform: Linux-5.4.0-x86_64-with-glibc2.10 - Python version: 3.8.5 - PyArrow version: 7.0.0 I think the issue comes from the fact that you set `batched=False` while `map_to_pred` still returns a list of strings for "transcription". You can fix it by adding `[0]` at the end of this line to get the string: ```python batch["transcription"] = processor.batch_decode(gen_tokens, skip_special_tokens=True)[0] ```
[ -0.2770323157310486, -0.5579105615615845, 0.09589694440364838, 0.4342244267463684, 0.09727804362773895, 0.027911096811294556, 0.15836107730865479, 0.33873307704925537, 0.22135819494724274, 0.15522411465644836, -0.6184945702552795, 0.18397583067417145, -0.05294143408536911, -0.3478994071483612, -0.05929677188396454, -0.11353304982185364, 0.05205851420760155, 0.12789690494537354, 0.006890520453453064, -0.2776695787906647, -0.23433703184127808, 0.28213611245155334, -0.2509043216705322, 0.3531126379966736, -0.41620147228240967, 0.018599342554807663, 0.23966798186302185, 0.5088717341423035, -0.10240722447633743, -0.3314360976219177, 0.3121221661567688, -0.049110058695077896, 0.21300554275512695, 0.42743340134620667, -0.00011626708146650344, 0.01847243309020996, 0.42071837186813354, -0.09775641560554504, -0.12180495262145996, -0.23716510832309723, -0.19443681836128235, 0.3139556646347046, -0.02869165875017643, 0.11379411071538925, 0.061336398124694824, 0.23813310265541077, 0.026398228481411934, -0.18683810532093048, 0.679694652557373, 0.43267786502838135, 0.13235680758953094, 0.31490659713745117, 0.08415131270885468, -0.1255195289850235, 0.20867401361465454, -0.05309772491455078, 0.0639687180519104, 0.5049846768379211, 0.30220597982406616, 0.00259303767234087, -0.07932626456022263, 0.14007936418056488, -0.31338444352149963, -0.06280699372291565, 0.04819555580615997, 0.06921328604221344, -0.426424503326416, -0.38632896542549133, 0.10070794820785522, 0.2126060426235199, 0.3382570445537567, -0.2975596487522125, -0.25352251529693604, -0.04287698119878769, -0.058155354112386703, -0.18395376205444336, 0.2144213318824768, 0.3430328071117401, -0.37090981006622314, 0.23434549570083618, -0.18853528797626495, -0.004032709635794163, -0.1982617974281311, 0.058018382638692856, 0.10877946019172668, -0.009603306651115417, -0.02408905327320099, 0.14499402046203613, 0.2289453148841858, 0.018675196915864944, 0.05647570267319679, 0.03250373899936676, -0.15864931046962738, 0.39803871512413025, -0.34383630752563477, 0.04840007424354553, -0.1927213966846466, -0.014284588396549225, 0.1082155779004097, -0.08669380098581314, 0.24339264631271362, 0.05876778066158295, -0.23499979078769684, 0.10373343527317047, 0.23148411512374878, 0.06012197956442833, -0.16859948635101318, 0.03925395384430885, 0.29576343297958374, 0.017396776005625725, 0.014471843838691711, -0.1853044033050537, -0.3221342861652374, -0.3186969757080078, -0.14338745176792145, 0.09794499725103378, 0.19261899590492249, -0.27118220925331116, -0.6065789461135864, 0.04596153646707535, -0.03390328958630562, 0.1479753702878952, 0.17384935915470123, 0.31211206316947937, 0.016977332532405853, 0.31723660230636597, 0.20833487808704376, 0.32961905002593994, -0.2861897945404053, -0.021716203540563583, -0.0565779022872448, 0.1310737282037735, -0.09009547531604767, 0.09019054472446442, 0.3719748556613922, -0.22760462760925293, 0.2882646918296814, 0.20364227890968323, 0.5024918913841248, -0.24629946053028107, -0.1376001536846161, -0.09106007218360901, -0.0856826975941658, 0.15259021520614624, 0.14541095495224, 0.24470292031764984, -0.01570010557770729, 0.17074118554592133, -0.12184935063123703, 0.2836284637451172, -0.5029199123382568, -0.2279486209154129, -0.06333234161138535, 0.08435345441102982, -0.06915614008903503, 0.21165704727172852, -0.12493100017309189, -0.25759825110435486, -0.05730409175157547, -0.5344335436820984, -0.036678723990917206, -0.27148622274398804, -0.13042688369750977, -0.002776735695078969, 0.3777680993080139, 0.3689073920249939, -0.03938111662864685, 0.12282519042491913, 0.25821900367736816, 0.00014906376600265503, 0.11490777879953384, 0.3810599446296692, -0.1746087521314621, 0.11200635880231857, -0.48481953144073486, 0.35615843534469604, 0.22818255424499512, -0.8792298436164856, -0.5025163888931274, 0.06289049983024597, -0.037103187292814255, 0.3826613426208496, -0.018000729382038116, 0.0565459243953228, 0.10723871737718582, -0.06808920204639435, 0.4597163796424866, 0.2403297871351242, 0.1922263354063034, 0.0933542251586914, -0.013021349906921387, -0.10080482810735703, -0.054364725947380066, 0.14788371324539185, -0.08365412056446075, 0.10020548105239868, 0.07504963129758835, 0.284922331571579, 0.4207438826560974, -0.0055228956043720245, -0.031135352328419685, 0.09051112830638885, 0.1467074751853943, -0.3343490958213806, -0.03124464862048626, -0.1820223033428192, -0.27533137798309326, 0.2643183171749115, -0.2552793622016907, -0.002508345991373062, -0.07806146144866943, -0.0329587496817112, -0.39293399453163147, -0.13749152421951294, -0.4621693789958954, -0.07916873693466187, -0.07062454521656036, -0.04195162653923035, -0.09313219785690308, -0.12476550042629242, -0.14919625222682953, 0.5878197550773621, 0.055098265409469604, 0.12425758689641953, -0.42913058400154114, 0.3229445219039917, 0.024823784828186035, -0.030508678406476974, 0.14741358160972595, 0.26910170912742615, 0.18435212969779968, 0.02096908539533615, -0.35535258054733276, 0.34442654252052307, 0.027948522940278053, 0.5421099066734314, -0.26071470975875854, -0.17290695011615753, 0.3404977023601532, -0.5525878667831421, 0.15411531925201416, 0.29732152819633484, 0.26975297927856445, -0.006363842636346817, -0.10973940044641495, 0.25175991654396057, -0.10282127559185028, 0.018935061991214752, 0.03397834300994873, -0.05582156032323837, 0.17936912178993225, 0.15102048218250275, -0.12889593839645386, 0.22698885202407837, 0.14321470260620117, 0.23597963154315948, 0.5638932585716248, -0.2110595703125, -0.2772648334503174, -0.43520522117614746, 0.3617568612098694, 0.0532027892768383, 0.021741025149822235, 0.26164764165878296, -0.3282064199447632, -0.032182078808546066, 0.21952202916145325, -0.5220211744308472, 0.4011763334274292, 0.06110561639070511, -0.0803278237581253, 0.2169056385755539, -0.05586007982492447, -0.08555246144533157, 0.03866899758577347, 0.051218703389167786, -0.12749633193016052, 0.5026895403862, -0.06063156574964523, 0.08067140728235245, -0.4853990972042084, -0.0822642371058464, -0.30685895681381226, 0.028065117076039314, -0.4187680780887604, -0.14754781126976013, 0.04546543210744858, 0.36578965187072754, -0.1748250126838684, -0.24361242353916168, -0.3200421929359436, 0.11623135209083557, -0.026017118245363235, 0.6292791366577148, 0.02971501648426056, 0.03812052309513092, 0.11472339928150177, 0.2774619162082672, 0.2759174704551697, -0.08548887073993683, -0.2166493684053421, 0.17867058515548706, -0.23782047629356384, -0.021520836278796196, 0.16123907268047333, 0.21292296051979065, -0.08307084441184998, -0.21213191747665405, 0.2197173535823822, -0.17499202489852905, 0.12032520025968552, 0.12909939885139465, 0.04738793522119522, 0.08906523138284683, -0.12384140491485596, 0.1089024692773819, 0.06711980700492859, -0.4015740156173706, 0.07105322927236557, -0.10025634616613388, -0.05633460730314255, -0.042991187423467636, -0.02343771420419216, -0.01307118684053421, -0.02713935822248459, -0.545944094657898, -0.3770199716091156, -0.5261210799217224, 0.24776524305343628, -0.13639779388904572, 0.036179497838020325, -0.029861275106668472, -0.03858410567045212, -0.08212710916996002, -0.07616680860519409, 0.0971461609005928, -0.1557803750038147, -0.26470765471458435, 0.309308260679245, -0.1937536895275116, -0.33318376541137695, 0.0525224544107914, 0.033474162220954895, 0.4599122405052185, -0.10991264134645462, -0.24993227422237396, -0.008260473608970642, 0.04814992845058441, 0.18314117193222046, -0.09988492727279663, -0.07636593282222748, 0.11369621008634567, 0.0019146844279021025, 0.0809374675154686, 0.05231861025094986, -0.009031057357788086, 0.022821269929409027, 0.33897843956947327, 0.024671807885169983, 0.13368560373783112, 0.06707312166690826, -0.24614155292510986, 0.6589117050170898, 0.45807820558547974, 0.14896930754184723, 0.2617548704147339, -0.19428709149360657, 0.1342177391052246, -0.3761756122112274, -0.37782248854637146, -0.08691157400608063, -0.28992632031440735, -0.043990358710289, 0.5156703591346741, 0.16831758618354797, 0.009578267112374306, -0.37715333700180054, -0.18304263055324554, -0.25266072154045105, -0.29770609736442566, -0.09708845615386963, -0.04316405951976776, 0.025047797709703445, 0.058458294719457626, 0.27664515376091003, 0.0747424066066742, -0.1940096914768219, 0.20087693631649017, 0.08338311314582825, 0.287151575088501, -0.05479157343506813, -0.009123027324676514, -0.06178690865635872, -0.41861772537231445, 0.030735604465007782, 0.1404174566268921, 0.534278154373169, -0.22692416608333588, -0.01436610147356987, 0.06381159275770187, 0.20995871722698212, 0.47142183780670166, 0.2789836823940277, 0.2866937518119812, -0.014352003112435341, 0.13850779831409454, -0.16818097233772278, 0.01891050860285759, -0.16929833590984344, 0.11901309341192245, 0.18159078061580658, 0.379824697971344, -0.031138833612203598, -0.07682528346776962, -0.09382424503564835, 0.333234578371048, 0.06378093361854553, -0.17394180595874786, -0.19881467521190643, -0.040970176458358765, -0.4132498800754547, 0.18625473976135254, 0.12071508914232254, 0.28672510385513306, -0.3996559977531433, -0.07379723340272903, 0.3993132710456848, -0.029008837416768074, 0.2683798670768738, 0.07178448140621185, 0.33029869198799133, -0.018429696559906006, 0.5079402327537537, 0.34190189838409424, 0.27935123443603516, -0.12642981112003326, 0.8726478815078735, 0.16466845571994781, -0.32467398047447205, 0.1023121103644371, -0.14930832386016846, -0.1009916290640831, 0.5327768921852112, -0.05585196614265442, -0.12248688191175461, -0.06683029979467392, -0.00208909809589386, -0.33247360587120056, 0.2613466680049896, 0.3142696022987366, 0.2035779356956482, -0.3986468017101288, -0.053624458611011505, 0.3759845197200775, 0.013521041721105576, -0.15399828553199768, 0.2730399966239929, 0.15352126955986023, -0.18436942994594574, 0.11813164502382278, -0.2964574098587036, 1.0028693675994873, 0.29215991497039795, 0.38279834389686584, 0.33120766282081604, -0.0403263121843338, -0.25095823407173157, -0.3336679935455322, 0.12121297419071198, -0.195364311337471, -0.009909839369356632, -0.08722211420536041, -0.1132839247584343, 0.010335206985473633, 0.08502357453107834, -0.047607485204935074, 0.16018682718276978, 0.1450435370206833, 0.15587502717971802, 0.09084368497133255, 0.1495521366596222, -0.20617999136447906, -0.36241960525512695, 0.13761049509048462, -0.03631533682346344, 0.008114513009786606, 0.4701991379261017, 0.027335677295923233, -0.20948491990566254, -0.12359604239463806, -0.43839800357818604, -0.2067754864692688, 0.4537021219730377, -0.02490997686982155, 0.015206215903162956, 0.01389496773481369, -0.2945724129676819, 0.28440946340560913, 0.2792624235153198, 0.24092541635036469, 0.09079261124134064, -0.4155939519405365, 0.33117491006851196, -0.08191638439893723, 0.16726641356945038, -0.035567548125982285, 0.1296275556087494, -0.03349057585000992, 0.012440256774425507, -0.27931106090545654, 0.12695690989494324, -0.06181180477142334, -0.08563102036714554, -0.08044236153364182, 0.21885205805301666, 0.30540239810943604, -0.28523752093315125, -0.3833872079849243, -0.08823654055595398, -0.08520680665969849, -0.08969622850418091, 0.08523978292942047, 0.020793724805116653, -0.26321035623550415, 0.028793390840291977, 0.13482971489429474, -0.19870103895664215, 0.07361789792776108, 0.7157278656959534, -0.21619486808776855, -0.40783554315567017, 0.525931715965271, -0.03187789022922516, -0.1757955551147461, -0.18215447664260864, 0.010316140949726105, 0.22788503766059875, -0.7808632850646973, -0.08664583414793015, 0.0636194720864296, -0.016169942915439606, -0.26184701919555664, 0.24291348457336426, 0.19839337468147278, -0.14161664247512817, 0.03535440191626549, -0.3575725257396698, -0.3615676462650299, 0.14261282980442047, -0.010569274425506592, 0.22173704206943512, 0.11650729924440384, -0.18187673389911652, 0.06232482194900513, -0.14183980226516724, -0.20647580921649933, 0.19626659154891968, -0.009395597502589226, 0.022348549216985703, 0.04063926637172699, -0.11828801780939102, 0.22060193121433258, -0.053671225905418396, 0.10214763879776001, 0.3039659261703491, -0.18094773590564728, -0.02308243326842785, -0.042056068778038025, 0.21786414086818695, 0.023754261434078217, -0.38775283098220825, 0.02898479998111725, 0.062146253883838654, -0.0851418673992157, -0.19581125676631927, 0.2831711173057556, 0.42211171984672546, -0.04726536571979523, 0.013724126853048801, -0.14231979846954346, 0.03260470926761627, -0.1692994385957718, 0.24321550130844116, -0.09351427853107452, 0.18204471468925476, -0.01983621157705784, 0.13155832886695862, -0.3124009966850281, -0.11211840808391571, -0.10252625495195389, 0.15947449207305908, 0.46348804235458374, 0.015816006809473038, 0.346934974193573, -0.1923011988401413, 0.21910378336906433, -0.06629229336977005, 0.3411138951778412, 0.2435232251882553, -0.32933923602104187, 0.0363701730966568, 0.07581855356693268, 0.10577034950256348, -0.22725267708301544, -0.1414531022310257, -0.03557751700282097, -0.36020228266716003, -0.02304612100124359, -0.07206862419843674, 0.23506879806518555, -0.22633253037929535, -0.020852841436862946, -0.13155849277973175, 0.525967001914978, -0.03318247199058533, 0.09584097564220428, 0.41311314702033997, -0.03663492947816849, 0.13297760486602783, 0.002517400309443474, -0.06277187168598175, 0.06262171268463135, 0.7115365266799927, -0.6978963613510132, 0.32272979617118835, -0.028169691562652588, 0.20823754370212555, 0.15712305903434753, -0.5921528935432434, -0.45160040259361267, -0.2154974639415741, -0.1937330663204193, 0.018517307937145233, 0.026244420558214188, 0.25458988547325134, -0.43879610300064087, -0.2378970980644226, -0.3239344656467438, -0.0800803005695343, -0.0958557054400444, -0.059052564203739166, -0.0014115013182163239, -0.26197922229766846, -0.2249443084001541, 0.09458263218402863, -0.12867684662342072, 0.0023498274385929108, 0.011743150651454926, 0.1596602201461792, 0.07600148022174835, 0.1438908725976944, -0.34576934576034546, 0.1408289074897766, -0.09282314032316208, -0.16015590727329254, 0.3072662651538849, 0.23558449745178223, -0.00004850327968597412, 0.4841148257255554, 0.21162159740924835, 0.41191384196281433, 0.23468101024627686, -0.1337091624736786, 0.28372445702552795, 0.015671081840991974, 0.061894893646240234, 0.15075258910655975, 0.17140795290470123, 0.13324429094791412, 0.4558273255825043, 0.15403854846954346, 0.15771034359931946, -0.076406329870224, 0.0038068927824497223, -0.13753101229667664, -0.0006683319807052612, -0.31447499990463257, 0.20412170886993408, -0.3874052166938782, -0.10375910997390747, -0.2713545858860016, -0.12411905080080032, -0.35081079602241516, -0.021677006036043167, 0.2912825047969818, 0.09558927267789841, 0.1698872148990631, 0.05434950441122055, 0.02193460240960121, -0.1371026188135147, 0.18775752186775208, 0.39388325810432434, 0.2558993995189667, -0.22049416601657867, -0.1704561710357666, -0.48756417632102966, 0.35607051849365234, 0.2565136253833771, 0.07519616931676865, 0.013225976377725601, -0.2334994673728943, -0.08682560175657272, 0.06714159995317459, 0.008107803761959076, -0.12664566934108734, -0.0661567822098732, -0.02463717758655548, -0.07811778783798218, -0.10590320825576782, 0.15233266353607178, 0.27882859110832214, -0.09651102125644684, -0.624112606048584, 0.1253812462091446, 0.11245261877775192, -0.07089421153068542, 0.061471156775951385, 0.01043611764907837, -0.273332804441452, -0.0715714693069458, 0.16231894493103027, 0.08624143898487091, 0.5717625617980957, -0.21861761808395386, 0.0313815176486969, -0.173872172832489, -0.32304808497428894, 0.02933143451809883, -0.2709759473800659, -0.07250240445137024, 0.564789891242981, 0.09582987427711487, -0.09765683114528656, -0.3332044184207916, 0.08346625417470932, -0.12430719286203384, -0.015079692006111145, -0.5276537537574768, 0.05318921059370041, -0.3631989061832428, 0.23524655401706696, 0.035567428916692734, 0.20453280210494995, -0.1933111846446991, 0.0221614558249712, -0.20922574400901794, -0.36021485924720764, 0.7947116494178772, -0.3871307969093323, -0.2767919600009918, -0.18636015057563782, 0.4942859411239624, -0.0789816752076149, -0.08302656561136246, -0.33390480279922485, 0.20013993978500366, 0.15004682540893555, -0.04587758332490921, -0.22052977979183197, -0.04882187768816948, -0.10193786025047302, -0.20831264555454254, -0.04813859239220619, 0.31086403131484985, 0.39258232712745667, -0.2813003957271576, 0.28173041343688965, -0.49086499214172363 ]
https://github.com/huggingface/datasets/issues/3909
Error loading file audio when downloading the Common Voice dataset directly from the Hub
We no longer use `torchaudio` for decoding MP3 files, and the problem with model cards has been addressed, so I'm closing this issue.
## Describe the bug When loading the Common_Voice dataset, by downloading it directly from the Hugging Face hub, some files can not be opened. ## Steps to reproduce the bug ```python import torch import torchaudio from datasets import load_dataset, load_metric from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor import re test_dataset = load_dataset("common_voice", "it", split="test") #test_dataset = load_dataset('csv', data_files = {'test': '/workspace/Dataset/Common_Voice/cv-corpus80/it/test.csv'}) wer = load_metric("wer") processor = Wav2Vec2Processor.from_pretrained("joorock12/wav2vec2-large-xlsr-italian") model = Wav2Vec2ForCTC.from_pretrained("joorock12/wav2vec2-large-xlsr-italian") model.to("cuda") chars_to_ignore_regex = '[\,\?\.\!\-\;\:\"\“\'\�]' resampler = torchaudio.transforms.Resample(48_000, 16_000) ``` ## Expected results The common voice dataset downloaded and correctly loaded whit the use of the hugging face datasets library. ## Actual results The error is: ```python 0ex [00:00, ?ex/s] --------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) <ipython-input-48-ef87f4129e6e> in <module> 7 return batch 8 ----> 9 test_dataset = test_dataset.map(speech_file_to_array_fn) /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in map(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint, desc) 2107 2108 if num_proc is None or num_proc == 1: -> 2109 return self._map_single( 2110 function=function, 2111 with_indices=with_indices, /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 516 self: "Dataset" = kwargs.pop("self") 517 # apply actual function --> 518 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 519 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 520 for dataset in datasets: /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 483 } 484 # apply actual function --> 485 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 486 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 487 # re-apply format to the output /opt/conda/lib/python3.8/site-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 411 # Call actual function 412 --> 413 out = func(self, *args, **kwargs) 414 415 # Update fingerprint of in-place transforms + update in-place history of transforms /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in _map_single(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, new_fingerprint, rank, offset, disable_tqdm, desc, cache_only) 2465 if not batched: 2466 for i, example in enumerate(pbar): -> 2467 example = apply_function_on_filtered_inputs(example, i, offset=offset) 2468 if update_data: 2469 if i == 0: /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in apply_function_on_filtered_inputs(inputs, indices, check_same_num_examples, offset) 2372 if with_rank: 2373 additional_args += (rank,) -> 2374 processed_inputs = function(*fn_args, *additional_args, **fn_kwargs) 2375 if update_data is None: 2376 # Check if the function returns updated examples /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in decorated(item, *args, **kwargs) 2067 ) 2068 # Use the LazyDict internally, while mapping the function -> 2069 result = f(decorated_item, *args, **kwargs) 2070 # Return a standard dict 2071 return result.data if isinstance(result, LazyDict) else result <ipython-input-48-ef87f4129e6e> in speech_file_to_array_fn(batch) 3 def speech_file_to_array_fn(batch): 4 batch["sentence"] = re.sub(chars_to_ignore_regex, '', batch["sentence"]).lower() ----> 5 speech_array, sampling_rate = torchaudio.load(batch["path"]) 6 batch["speech"] = resampler(speech_array).squeeze().numpy() 7 return batch /opt/conda/lib/python3.8/site-packages/torchaudio/backend/sox_io_backend.py in load(filepath, frame_offset, num_frames, normalize, channels_first, format) 150 filepath, frame_offset, num_frames, normalize, channels_first, format) 151 filepath = os.fspath(filepath) --> 152 return torch.ops.torchaudio.sox_io_load_audio_file( 153 filepath, frame_offset, num_frames, normalize, channels_first, format) 154 RuntimeError: Error loading audio file: failed to open file common_voice_it_17415776.mp3 ``` ## Environment info - `datasets` version: 1.18.4 - Platform: Linux-5.4.0-x86_64-with-glibc2.10 - Python version: 3.8.5 - PyArrow version: 7.0.0
23
Error loading file audio when downloading the Common Voice dataset directly from the Hub ## Describe the bug When loading the Common_Voice dataset, by downloading it directly from the Hugging Face hub, some files can not be opened. ## Steps to reproduce the bug ```python import torch import torchaudio from datasets import load_dataset, load_metric from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor import re test_dataset = load_dataset("common_voice", "it", split="test") #test_dataset = load_dataset('csv', data_files = {'test': '/workspace/Dataset/Common_Voice/cv-corpus80/it/test.csv'}) wer = load_metric("wer") processor = Wav2Vec2Processor.from_pretrained("joorock12/wav2vec2-large-xlsr-italian") model = Wav2Vec2ForCTC.from_pretrained("joorock12/wav2vec2-large-xlsr-italian") model.to("cuda") chars_to_ignore_regex = '[\,\?\.\!\-\;\:\"\“\'\�]' resampler = torchaudio.transforms.Resample(48_000, 16_000) ``` ## Expected results The common voice dataset downloaded and correctly loaded whit the use of the hugging face datasets library. ## Actual results The error is: ```python 0ex [00:00, ?ex/s] --------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) <ipython-input-48-ef87f4129e6e> in <module> 7 return batch 8 ----> 9 test_dataset = test_dataset.map(speech_file_to_array_fn) /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in map(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, num_proc, suffix_template, new_fingerprint, desc) 2107 2108 if num_proc is None or num_proc == 1: -> 2109 return self._map_single( 2110 function=function, 2111 with_indices=with_indices, /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 516 self: "Dataset" = kwargs.pop("self") 517 # apply actual function --> 518 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 519 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 520 for dataset in datasets: /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in wrapper(*args, **kwargs) 483 } 484 # apply actual function --> 485 out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs) 486 datasets: List["Dataset"] = list(out.values()) if isinstance(out, dict) else [out] 487 # re-apply format to the output /opt/conda/lib/python3.8/site-packages/datasets/fingerprint.py in wrapper(*args, **kwargs) 411 # Call actual function 412 --> 413 out = func(self, *args, **kwargs) 414 415 # Update fingerprint of in-place transforms + update in-place history of transforms /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in _map_single(self, function, with_indices, with_rank, input_columns, batched, batch_size, drop_last_batch, remove_columns, keep_in_memory, load_from_cache_file, cache_file_name, writer_batch_size, features, disable_nullable, fn_kwargs, new_fingerprint, rank, offset, disable_tqdm, desc, cache_only) 2465 if not batched: 2466 for i, example in enumerate(pbar): -> 2467 example = apply_function_on_filtered_inputs(example, i, offset=offset) 2468 if update_data: 2469 if i == 0: /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in apply_function_on_filtered_inputs(inputs, indices, check_same_num_examples, offset) 2372 if with_rank: 2373 additional_args += (rank,) -> 2374 processed_inputs = function(*fn_args, *additional_args, **fn_kwargs) 2375 if update_data is None: 2376 # Check if the function returns updated examples /opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py in decorated(item, *args, **kwargs) 2067 ) 2068 # Use the LazyDict internally, while mapping the function -> 2069 result = f(decorated_item, *args, **kwargs) 2070 # Return a standard dict 2071 return result.data if isinstance(result, LazyDict) else result <ipython-input-48-ef87f4129e6e> in speech_file_to_array_fn(batch) 3 def speech_file_to_array_fn(batch): 4 batch["sentence"] = re.sub(chars_to_ignore_regex, '', batch["sentence"]).lower() ----> 5 speech_array, sampling_rate = torchaudio.load(batch["path"]) 6 batch["speech"] = resampler(speech_array).squeeze().numpy() 7 return batch /opt/conda/lib/python3.8/site-packages/torchaudio/backend/sox_io_backend.py in load(filepath, frame_offset, num_frames, normalize, channels_first, format) 150 filepath, frame_offset, num_frames, normalize, channels_first, format) 151 filepath = os.fspath(filepath) --> 152 return torch.ops.torchaudio.sox_io_load_audio_file( 153 filepath, frame_offset, num_frames, normalize, channels_first, format) 154 RuntimeError: Error loading audio file: failed to open file common_voice_it_17415776.mp3 ``` ## Environment info - `datasets` version: 1.18.4 - Platform: Linux-5.4.0-x86_64-with-glibc2.10 - Python version: 3.8.5 - PyArrow version: 7.0.0 We no longer use `torchaudio` for decoding MP3 files, and the problem with model cards has been addressed, so I'm closing this issue.
[ -0.2770323157310486, -0.5579105615615845, 0.09589694440364838, 0.4342244267463684, 0.09727804362773895, 0.027911096811294556, 0.15836107730865479, 0.33873307704925537, 0.22135819494724274, 0.15522411465644836, -0.6184945702552795, 0.18397583067417145, -0.05294143408536911, -0.3478994071483612, -0.05929677188396454, -0.11353304982185364, 0.05205851420760155, 0.12789690494537354, 0.006890520453453064, -0.2776695787906647, -0.23433703184127808, 0.28213611245155334, -0.2509043216705322, 0.3531126379966736, -0.41620147228240967, 0.018599342554807663, 0.23966798186302185, 0.5088717341423035, -0.10240722447633743, -0.3314360976219177, 0.3121221661567688, -0.049110058695077896, 0.21300554275512695, 0.42743340134620667, -0.00011626708146650344, 0.01847243309020996, 0.42071837186813354, -0.09775641560554504, -0.12180495262145996, -0.23716510832309723, -0.19443681836128235, 0.3139556646347046, -0.02869165875017643, 0.11379411071538925, 0.061336398124694824, 0.23813310265541077, 0.026398228481411934, -0.18683810532093048, 0.679694652557373, 0.43267786502838135, 0.13235680758953094, 0.31490659713745117, 0.08415131270885468, -0.1255195289850235, 0.20867401361465454, -0.05309772491455078, 0.0639687180519104, 0.5049846768379211, 0.30220597982406616, 0.00259303767234087, -0.07932626456022263, 0.14007936418056488, -0.31338444352149963, -0.06280699372291565, 0.04819555580615997, 0.06921328604221344, -0.426424503326416, -0.38632896542549133, 0.10070794820785522, 0.2126060426235199, 0.3382570445537567, -0.2975596487522125, -0.25352251529693604, -0.04287698119878769, -0.058155354112386703, -0.18395376205444336, 0.2144213318824768, 0.3430328071117401, -0.37090981006622314, 0.23434549570083618, -0.18853528797626495, -0.004032709635794163, -0.1982617974281311, 0.058018382638692856, 0.10877946019172668, -0.009603306651115417, -0.02408905327320099, 0.14499402046203613, 0.2289453148841858, 0.018675196915864944, 0.05647570267319679, 0.03250373899936676, -0.15864931046962738, 0.39803871512413025, -0.34383630752563477, 0.04840007424354553, -0.1927213966846466, -0.014284588396549225, 0.1082155779004097, -0.08669380098581314, 0.24339264631271362, 0.05876778066158295, -0.23499979078769684, 0.10373343527317047, 0.23148411512374878, 0.06012197956442833, -0.16859948635101318, 0.03925395384430885, 0.29576343297958374, 0.017396776005625725, 0.014471843838691711, -0.1853044033050537, -0.3221342861652374, -0.3186969757080078, -0.14338745176792145, 0.09794499725103378, 0.19261899590492249, -0.27118220925331116, -0.6065789461135864, 0.04596153646707535, -0.03390328958630562, 0.1479753702878952, 0.17384935915470123, 0.31211206316947937, 0.016977332532405853, 0.31723660230636597, 0.20833487808704376, 0.32961905002593994, -0.2861897945404053, -0.021716203540563583, -0.0565779022872448, 0.1310737282037735, -0.09009547531604767, 0.09019054472446442, 0.3719748556613922, -0.22760462760925293, 0.2882646918296814, 0.20364227890968323, 0.5024918913841248, -0.24629946053028107, -0.1376001536846161, -0.09106007218360901, -0.0856826975941658, 0.15259021520614624, 0.14541095495224, 0.24470292031764984, -0.01570010557770729, 0.17074118554592133, -0.12184935063123703, 0.2836284637451172, -0.5029199123382568, -0.2279486209154129, -0.06333234161138535, 0.08435345441102982, -0.06915614008903503, 0.21165704727172852, -0.12493100017309189, -0.25759825110435486, -0.05730409175157547, -0.5344335436820984, -0.036678723990917206, -0.27148622274398804, -0.13042688369750977, -0.002776735695078969, 0.3777680993080139, 0.3689073920249939, -0.03938111662864685, 0.12282519042491913, 0.25821900367736816, 0.00014906376600265503, 0.11490777879953384, 0.3810599446296692, -0.1746087521314621, 0.11200635880231857, -0.48481953144073486, 0.35615843534469604, 0.22818255424499512, -0.8792298436164856, -0.5025163888931274, 0.06289049983024597, -0.037103187292814255, 0.3826613426208496, -0.018000729382038116, 0.0565459243953228, 0.10723871737718582, -0.06808920204639435, 0.4597163796424866, 0.2403297871351242, 0.1922263354063034, 0.0933542251586914, -0.013021349906921387, -0.10080482810735703, -0.054364725947380066, 0.14788371324539185, -0.08365412056446075, 0.10020548105239868, 0.07504963129758835, 0.284922331571579, 0.4207438826560974, -0.0055228956043720245, -0.031135352328419685, 0.09051112830638885, 0.1467074751853943, -0.3343490958213806, -0.03124464862048626, -0.1820223033428192, -0.27533137798309326, 0.2643183171749115, -0.2552793622016907, -0.002508345991373062, -0.07806146144866943, -0.0329587496817112, -0.39293399453163147, -0.13749152421951294, -0.4621693789958954, -0.07916873693466187, -0.07062454521656036, -0.04195162653923035, -0.09313219785690308, -0.12476550042629242, -0.14919625222682953, 0.5878197550773621, 0.055098265409469604, 0.12425758689641953, -0.42913058400154114, 0.3229445219039917, 0.024823784828186035, -0.030508678406476974, 0.14741358160972595, 0.26910170912742615, 0.18435212969779968, 0.02096908539533615, -0.35535258054733276, 0.34442654252052307, 0.027948522940278053, 0.5421099066734314, -0.26071470975875854, -0.17290695011615753, 0.3404977023601532, -0.5525878667831421, 0.15411531925201416, 0.29732152819633484, 0.26975297927856445, -0.006363842636346817, -0.10973940044641495, 0.25175991654396057, -0.10282127559185028, 0.018935061991214752, 0.03397834300994873, -0.05582156032323837, 0.17936912178993225, 0.15102048218250275, -0.12889593839645386, 0.22698885202407837, 0.14321470260620117, 0.23597963154315948, 0.5638932585716248, -0.2110595703125, -0.2772648334503174, -0.43520522117614746, 0.3617568612098694, 0.0532027892768383, 0.021741025149822235, 0.26164764165878296, -0.3282064199447632, -0.032182078808546066, 0.21952202916145325, -0.5220211744308472, 0.4011763334274292, 0.06110561639070511, -0.0803278237581253, 0.2169056385755539, -0.05586007982492447, -0.08555246144533157, 0.03866899758577347, 0.051218703389167786, -0.12749633193016052, 0.5026895403862, -0.06063156574964523, 0.08067140728235245, -0.4853990972042084, -0.0822642371058464, -0.30685895681381226, 0.028065117076039314, -0.4187680780887604, -0.14754781126976013, 0.04546543210744858, 0.36578965187072754, -0.1748250126838684, -0.24361242353916168, -0.3200421929359436, 0.11623135209083557, -0.026017118245363235, 0.6292791366577148, 0.02971501648426056, 0.03812052309513092, 0.11472339928150177, 0.2774619162082672, 0.2759174704551697, -0.08548887073993683, -0.2166493684053421, 0.17867058515548706, -0.23782047629356384, -0.021520836278796196, 0.16123907268047333, 0.21292296051979065, -0.08307084441184998, -0.21213191747665405, 0.2197173535823822, -0.17499202489852905, 0.12032520025968552, 0.12909939885139465, 0.04738793522119522, 0.08906523138284683, -0.12384140491485596, 0.1089024692773819, 0.06711980700492859, -0.4015740156173706, 0.07105322927236557, -0.10025634616613388, -0.05633460730314255, -0.042991187423467636, -0.02343771420419216, -0.01307118684053421, -0.02713935822248459, -0.545944094657898, -0.3770199716091156, -0.5261210799217224, 0.24776524305343628, -0.13639779388904572, 0.036179497838020325, -0.029861275106668472, -0.03858410567045212, -0.08212710916996002, -0.07616680860519409, 0.0971461609005928, -0.1557803750038147, -0.26470765471458435, 0.309308260679245, -0.1937536895275116, -0.33318376541137695, 0.0525224544107914, 0.033474162220954895, 0.4599122405052185, -0.10991264134645462, -0.24993227422237396, -0.008260473608970642, 0.04814992845058441, 0.18314117193222046, -0.09988492727279663, -0.07636593282222748, 0.11369621008634567, 0.0019146844279021025, 0.0809374675154686, 0.05231861025094986, -0.009031057357788086, 0.022821269929409027, 0.33897843956947327, 0.024671807885169983, 0.13368560373783112, 0.06707312166690826, -0.24614155292510986, 0.6589117050170898, 0.45807820558547974, 0.14896930754184723, 0.2617548704147339, -0.19428709149360657, 0.1342177391052246, -0.3761756122112274, -0.37782248854637146, -0.08691157400608063, -0.28992632031440735, -0.043990358710289, 0.5156703591346741, 0.16831758618354797, 0.009578267112374306, -0.37715333700180054, -0.18304263055324554, -0.25266072154045105, -0.29770609736442566, -0.09708845615386963, -0.04316405951976776, 0.025047797709703445, 0.058458294719457626, 0.27664515376091003, 0.0747424066066742, -0.1940096914768219, 0.20087693631649017, 0.08338311314582825, 0.287151575088501, -0.05479157343506813, -0.009123027324676514, -0.06178690865635872, -0.41861772537231445, 0.030735604465007782, 0.1404174566268921, 0.534278154373169, -0.22692416608333588, -0.01436610147356987, 0.06381159275770187, 0.20995871722698212, 0.47142183780670166, 0.2789836823940277, 0.2866937518119812, -0.014352003112435341, 0.13850779831409454, -0.16818097233772278, 0.01891050860285759, -0.16929833590984344, 0.11901309341192245, 0.18159078061580658, 0.379824697971344, -0.031138833612203598, -0.07682528346776962, -0.09382424503564835, 0.333234578371048, 0.06378093361854553, -0.17394180595874786, -0.19881467521190643, -0.040970176458358765, -0.4132498800754547, 0.18625473976135254, 0.12071508914232254, 0.28672510385513306, -0.3996559977531433, -0.07379723340272903, 0.3993132710456848, -0.029008837416768074, 0.2683798670768738, 0.07178448140621185, 0.33029869198799133, -0.018429696559906006, 0.5079402327537537, 0.34190189838409424, 0.27935123443603516, -0.12642981112003326, 0.8726478815078735, 0.16466845571994781, -0.32467398047447205, 0.1023121103644371, -0.14930832386016846, -0.1009916290640831, 0.5327768921852112, -0.05585196614265442, -0.12248688191175461, -0.06683029979467392, -0.00208909809589386, -0.33247360587120056, 0.2613466680049896, 0.3142696022987366, 0.2035779356956482, -0.3986468017101288, -0.053624458611011505, 0.3759845197200775, 0.013521041721105576, -0.15399828553199768, 0.2730399966239929, 0.15352126955986023, -0.18436942994594574, 0.11813164502382278, -0.2964574098587036, 1.0028693675994873, 0.29215991497039795, 0.38279834389686584, 0.33120766282081604, -0.0403263121843338, -0.25095823407173157, -0.3336679935455322, 0.12121297419071198, -0.195364311337471, -0.009909839369356632, -0.08722211420536041, -0.1132839247584343, 0.010335206985473633, 0.08502357453107834, -0.047607485204935074, 0.16018682718276978, 0.1450435370206833, 0.15587502717971802, 0.09084368497133255, 0.1495521366596222, -0.20617999136447906, -0.36241960525512695, 0.13761049509048462, -0.03631533682346344, 0.008114513009786606, 0.4701991379261017, 0.027335677295923233, -0.20948491990566254, -0.12359604239463806, -0.43839800357818604, -0.2067754864692688, 0.4537021219730377, -0.02490997686982155, 0.015206215903162956, 0.01389496773481369, -0.2945724129676819, 0.28440946340560913, 0.2792624235153198, 0.24092541635036469, 0.09079261124134064, -0.4155939519405365, 0.33117491006851196, -0.08191638439893723, 0.16726641356945038, -0.035567548125982285, 0.1296275556087494, -0.03349057585000992, 0.012440256774425507, -0.27931106090545654, 0.12695690989494324, -0.06181180477142334, -0.08563102036714554, -0.08044236153364182, 0.21885205805301666, 0.30540239810943604, -0.28523752093315125, -0.3833872079849243, -0.08823654055595398, -0.08520680665969849, -0.08969622850418091, 0.08523978292942047, 0.020793724805116653, -0.26321035623550415, 0.028793390840291977, 0.13482971489429474, -0.19870103895664215, 0.07361789792776108, 0.7157278656959534, -0.21619486808776855, -0.40783554315567017, 0.525931715965271, -0.03187789022922516, -0.1757955551147461, -0.18215447664260864, 0.010316140949726105, 0.22788503766059875, -0.7808632850646973, -0.08664583414793015, 0.0636194720864296, -0.016169942915439606, -0.26184701919555664, 0.24291348457336426, 0.19839337468147278, -0.14161664247512817, 0.03535440191626549, -0.3575725257396698, -0.3615676462650299, 0.14261282980442047, -0.010569274425506592, 0.22173704206943512, 0.11650729924440384, -0.18187673389911652, 0.06232482194900513, -0.14183980226516724, -0.20647580921649933, 0.19626659154891968, -0.009395597502589226, 0.022348549216985703, 0.04063926637172699, -0.11828801780939102, 0.22060193121433258, -0.053671225905418396, 0.10214763879776001, 0.3039659261703491, -0.18094773590564728, -0.02308243326842785, -0.042056068778038025, 0.21786414086818695, 0.023754261434078217, -0.38775283098220825, 0.02898479998111725, 0.062146253883838654, -0.0851418673992157, -0.19581125676631927, 0.2831711173057556, 0.42211171984672546, -0.04726536571979523, 0.013724126853048801, -0.14231979846954346, 0.03260470926761627, -0.1692994385957718, 0.24321550130844116, -0.09351427853107452, 0.18204471468925476, -0.01983621157705784, 0.13155832886695862, -0.3124009966850281, -0.11211840808391571, -0.10252625495195389, 0.15947449207305908, 0.46348804235458374, 0.015816006809473038, 0.346934974193573, -0.1923011988401413, 0.21910378336906433, -0.06629229336977005, 0.3411138951778412, 0.2435232251882553, -0.32933923602104187, 0.0363701730966568, 0.07581855356693268, 0.10577034950256348, -0.22725267708301544, -0.1414531022310257, -0.03557751700282097, -0.36020228266716003, -0.02304612100124359, -0.07206862419843674, 0.23506879806518555, -0.22633253037929535, -0.020852841436862946, -0.13155849277973175, 0.525967001914978, -0.03318247199058533, 0.09584097564220428, 0.41311314702033997, -0.03663492947816849, 0.13297760486602783, 0.002517400309443474, -0.06277187168598175, 0.06262171268463135, 0.7115365266799927, -0.6978963613510132, 0.32272979617118835, -0.028169691562652588, 0.20823754370212555, 0.15712305903434753, -0.5921528935432434, -0.45160040259361267, -0.2154974639415741, -0.1937330663204193, 0.018517307937145233, 0.026244420558214188, 0.25458988547325134, -0.43879610300064087, -0.2378970980644226, -0.3239344656467438, -0.0800803005695343, -0.0958557054400444, -0.059052564203739166, -0.0014115013182163239, -0.26197922229766846, -0.2249443084001541, 0.09458263218402863, -0.12867684662342072, 0.0023498274385929108, 0.011743150651454926, 0.1596602201461792, 0.07600148022174835, 0.1438908725976944, -0.34576934576034546, 0.1408289074897766, -0.09282314032316208, -0.16015590727329254, 0.3072662651538849, 0.23558449745178223, -0.00004850327968597412, 0.4841148257255554, 0.21162159740924835, 0.41191384196281433, 0.23468101024627686, -0.1337091624736786, 0.28372445702552795, 0.015671081840991974, 0.061894893646240234, 0.15075258910655975, 0.17140795290470123, 0.13324429094791412, 0.4558273255825043, 0.15403854846954346, 0.15771034359931946, -0.076406329870224, 0.0038068927824497223, -0.13753101229667664, -0.0006683319807052612, -0.31447499990463257, 0.20412170886993408, -0.3874052166938782, -0.10375910997390747, -0.2713545858860016, -0.12411905080080032, -0.35081079602241516, -0.021677006036043167, 0.2912825047969818, 0.09558927267789841, 0.1698872148990631, 0.05434950441122055, 0.02193460240960121, -0.1371026188135147, 0.18775752186775208, 0.39388325810432434, 0.2558993995189667, -0.22049416601657867, -0.1704561710357666, -0.48756417632102966, 0.35607051849365234, 0.2565136253833771, 0.07519616931676865, 0.013225976377725601, -0.2334994673728943, -0.08682560175657272, 0.06714159995317459, 0.008107803761959076, -0.12664566934108734, -0.0661567822098732, -0.02463717758655548, -0.07811778783798218, -0.10590320825576782, 0.15233266353607178, 0.27882859110832214, -0.09651102125644684, -0.624112606048584, 0.1253812462091446, 0.11245261877775192, -0.07089421153068542, 0.061471156775951385, 0.01043611764907837, -0.273332804441452, -0.0715714693069458, 0.16231894493103027, 0.08624143898487091, 0.5717625617980957, -0.21861761808395386, 0.0313815176486969, -0.173872172832489, -0.32304808497428894, 0.02933143451809883, -0.2709759473800659, -0.07250240445137024, 0.564789891242981, 0.09582987427711487, -0.09765683114528656, -0.3332044184207916, 0.08346625417470932, -0.12430719286203384, -0.015079692006111145, -0.5276537537574768, 0.05318921059370041, -0.3631989061832428, 0.23524655401706696, 0.035567428916692734, 0.20453280210494995, -0.1933111846446991, 0.0221614558249712, -0.20922574400901794, -0.36021485924720764, 0.7947116494178772, -0.3871307969093323, -0.2767919600009918, -0.18636015057563782, 0.4942859411239624, -0.0789816752076149, -0.08302656561136246, -0.33390480279922485, 0.20013993978500366, 0.15004682540893555, -0.04587758332490921, -0.22052977979183197, -0.04882187768816948, -0.10193786025047302, -0.20831264555454254, -0.04813859239220619, 0.31086403131484985, 0.39258232712745667, -0.2813003957271576, 0.28173041343688965, -0.49086499214172363 ]
https://github.com/huggingface/datasets/issues/3906
NonMatchingChecksumError on Spider dataset
Hi @kolk, thanks for reporting. Indeed, Google Drive service recently changed their service and we had to add a fix to our library to cope with that change: - #3787 We just made patch release last week: 1.18.4 https://github.com/huggingface/datasets/releases/tag/1.18.4 Please, feel free to update your local `datasets` version, so that you get the fix: ```shell pip install -U datasets ```
## Describe the bug Failure to generate dataset ```spider``` because of checksums error for dataset source files. ## Steps to reproduce the bug ``` from datasets import load_dataset spider = load_dataset("spider") ``` ## Expected results Checksums should match for files from url ['https://drive.google.com/uc?export=download&id=1_AckYkinAnhqmRQtGsQgUKAnTHxxX5J0'] ## Actual results ``` >>> load_dataset("spider") load_dataset("spider") Downloading and preparing dataset spider/spider (download: 95.12 MiB, generated: 5.17 MiB, post-processed: Unknown size, total: 100.29 MiB) to /home/user/.cache/huggingface/datasets/spider/spider/1.0.0/79778ebea87c59b19411f1eb3eda317e9dd5f7788a556d837ef25c3ae6e5e8b7... Traceback (most recent call last): File "/home/user/py3_env/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 3441, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "<ipython-input-5-d4cb54197348>", line 1, in <module> load_dataset("spider") File "/home/user/py3_env/lib/python3.8/site-packages/datasets/load.py", line 1702, in load_dataset builder_instance.download_and_prepare( File "/home/user/py3_env/lib/python3.8/site-packages/datasets/builder.py", line 594, in download_and_prepare self._download_and_prepare( File "/home/user/py3_env/lib/python3.8/site-packages/datasets/builder.py", line 665, in _download_and_prepare verify_checksums( File "/home/user/py3_env/lib/python3.8/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=1_AckYkinAnhqmRQtGsQgUKAnTHxxX5J0'] ``` ## Environment info datasets version: 1.18.3 Platform: Ubuntu 20 LTS Python version: 3.8.10 PyArrow version: 6.0.1
60
NonMatchingChecksumError on Spider dataset ## Describe the bug Failure to generate dataset ```spider``` because of checksums error for dataset source files. ## Steps to reproduce the bug ``` from datasets import load_dataset spider = load_dataset("spider") ``` ## Expected results Checksums should match for files from url ['https://drive.google.com/uc?export=download&id=1_AckYkinAnhqmRQtGsQgUKAnTHxxX5J0'] ## Actual results ``` >>> load_dataset("spider") load_dataset("spider") Downloading and preparing dataset spider/spider (download: 95.12 MiB, generated: 5.17 MiB, post-processed: Unknown size, total: 100.29 MiB) to /home/user/.cache/huggingface/datasets/spider/spider/1.0.0/79778ebea87c59b19411f1eb3eda317e9dd5f7788a556d837ef25c3ae6e5e8b7... Traceback (most recent call last): File "/home/user/py3_env/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 3441, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "<ipython-input-5-d4cb54197348>", line 1, in <module> load_dataset("spider") File "/home/user/py3_env/lib/python3.8/site-packages/datasets/load.py", line 1702, in load_dataset builder_instance.download_and_prepare( File "/home/user/py3_env/lib/python3.8/site-packages/datasets/builder.py", line 594, in download_and_prepare self._download_and_prepare( File "/home/user/py3_env/lib/python3.8/site-packages/datasets/builder.py", line 665, in _download_and_prepare verify_checksums( File "/home/user/py3_env/lib/python3.8/site-packages/datasets/utils/info_utils.py", line 40, in verify_checksums raise NonMatchingChecksumError(error_msg + str(bad_urls)) datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: ['https://drive.google.com/uc?export=download&id=1_AckYkinAnhqmRQtGsQgUKAnTHxxX5J0'] ``` ## Environment info datasets version: 1.18.3 Platform: Ubuntu 20 LTS Python version: 3.8.10 PyArrow version: 6.0.1 Hi @kolk, thanks for reporting. Indeed, Google Drive service recently changed their service and we had to add a fix to our library to cope with that change: - #3787 We just made patch release last week: 1.18.4 https://github.com/huggingface/datasets/releases/tag/1.18.4 Please, feel free to update your local `datasets` version, so that you get the fix: ```shell pip install -U datasets ```
[ -0.16796554625034332, 0.02548976242542267, -0.08636106550693512, 0.29547399282455444, 0.3215498924255371, -0.11661093682050705, 0.13645054399967194, 0.4342500865459442, 0.18611492216587067, 0.2588539123535156, -0.26600897312164307, 0.01770993508398533, -0.03663628548383713, 0.10005372017621994, -0.19143712520599365, 0.1708940863609314, -0.001742042601108551, 0.0505831353366375, -0.41161954402923584, -0.11288270354270935, -0.2612488865852356, 0.06638642400503159, 0.007392898201942444, -0.2859494686126709, 0.13124024868011475, 0.14940457046031952, 0.2227994203567505, 0.18769726157188416, -0.15677423775196075, -0.2523316740989685, 0.16429612040519714, 0.037932612001895905, -0.0013276031240820885, 0.41555631160736084, -0.00011177128908457235, 0.17115534842014313, 0.29562902450561523, -0.018709242343902588, -0.377507746219635, -0.015473827719688416, -0.2517729699611664, -0.34794604778289795, -0.16859211027622223, -0.2898808419704437, -0.10902462899684906, 0.13996250927448273, 0.04789774492383003, -0.23278966546058655, 0.08608557283878326, 0.2851850986480713, 0.2384158819913864, 0.612579345703125, 0.2131853848695755, 0.023269372060894966, 0.3841732442378998, 0.0321945957839489, -0.17363423109054565, 0.19570480287075043, 0.22533999383449554, 0.19895197451114655, -0.3688904345035553, 0.15840187668800354, -0.01420500036329031, 0.1721503734588623, 0.18035218119621277, -0.08368492126464844, 0.12506578862667084, -0.3748972713947296, 0.1349821835756302, 0.19534114003181458, 0.33627474308013916, -0.18573272228240967, -0.36684995889663696, -0.01779048889875412, -0.25588664412498474, 0.14570553600788116, 0.28395453095436096, 0.38373038172721863, -0.2814314663410187, -0.012902442365884781, -0.5050474405288696, 0.3566202223300934, -0.10089821368455887, 0.14776335656642914, 0.327389121055603, 0.279934287071228, 0.07568272948265076, 0.0006083175539970398, -0.13119274377822876, -0.2798722982406616, 0.24663498997688293, -0.3080366253852844, -0.051103223115205765, 0.0926307812333107, -0.4308571517467499, -0.1335952877998352, 0.1100366860628128, 0.3322862386703491, 0.4337329566478729, 0.676236629486084, 0.08878949284553528, 0.07778113335371017, -0.08213858306407928, -0.03116200864315033, 0.09315505623817444, 0.05179242417216301, -0.06634848564863205, 0.18338385224342346, 0.4966816306114197, 0.438620924949646, 0.05651373043656349, 0.10350143909454346, 0.10216853767633438, -0.2871926426887512, 0.5880288481712341, 0.18433666229248047, 0.35933011770248413, -0.29246193170547485, -0.24555803835391998, 0.2702585756778717, -0.10031232237815857, -0.023043140769004822, 0.16098174452781677, 0.18037578463554382, -0.3155960142612457, -0.02686123549938202, 0.08837524056434631, 0.14500772953033447, -0.17724373936653137, -0.09954953193664551, -0.2915545701980591, -0.05721692368388176, -0.149821937084198, -0.10414954274892807, 0.18914391100406647, -0.007183395326137543, 0.26586756110191345, 0.11938802152872086, 0.23435840010643005, -0.08176645636558533, 0.18977023661136627, -0.04135540500283241, -0.12744387984275818, 0.412668913602829, 0.06330481171607971, -0.023397136479616165, 0.18504071235656738, 0.06913433969020844, -0.06478806585073471, 0.1271272599697113, 0.01564629003405571, -0.2397373616695404, -0.08916321396827698, 0.26310235261917114, -0.462105929851532, 0.07795998454093933, 0.09815908223390579, -0.4419334828853607, 0.2803556025028229, -0.09809483587741852, 0.1347419172525406, -0.2901304364204407, -0.20413663983345032, -0.2873302102088928, 0.26777225732803345, 0.3509765863418579, 0.3208661377429962, 0.09274683892726898, 0.06630236655473709, -0.2560472786426544, 0.2722521126270294, 0.2439751923084259, -0.03637133538722992, 0.009361833333969116, -0.29819241166114807, -0.17321716248989105, 0.13135160505771637, -0.2259349673986435, -0.4142879247665405, -0.010627486743032932, -0.0069068558514118195, 0.42062684893608093, 0.21578681468963623, 0.14090491831302643, -0.04235726594924927, -0.029632657766342163, -0.05687038600444794, 0.10147791355848312, -0.05082497000694275, 0.25417444109916687, -0.2801445722579956, -0.1679406613111496, 0.0960809737443924, 0.10126765072345734, 0.07242094725370407, 0.12181976437568665, 0.21498148143291473, -0.256716251373291, 0.1568293571472168, -0.2339552938938141, 0.07579051703214645, 0.12556639313697815, 0.4142957627773285, -0.008463792502880096, 0.08312381058931351, -0.3101625442504883, -0.4560267925262451, 0.4116442799568176, -0.21822519600391388, 0.34071052074432373, -0.34706079959869385, -0.17757336795330048, -0.3112812340259552, -0.09721452742815018, -0.16126748919487, -0.10452046990394592, 0.14216077327728271, 0.22360962629318237, 0.18474002182483673, -0.17960473895072937, 0.0860038548707962, 0.1932876706123352, -0.33276674151420593, 0.1498599648475647, -0.5810316205024719, 0.4491335153579712, -0.11531925946474075, -0.14584948122501373, 0.13035160303115845, 0.1455845981836319, -0.03207208216190338, 0.029165755957365036, -0.15930181741714478, 0.3726523220539093, 0.18082888424396515, -0.034403279423713684, -0.03612436354160309, 0.23959045112133026, -0.039079517126083374, -0.2366049885749817, 0.14062391221523285, 0.49012303352355957, 0.04809153825044632, 0.011560633778572083, -0.2281101644039154, 0.3029247522354126, -0.26313358545303345, 0.08404026925563812, 0.08541218936443329, 0.00457809679210186, 0.2411205768585205, -0.06438279151916504, -0.20805032551288605, -0.07292643189430237, 0.178310364484787, 0.010178896598517895, 0.24968667328357697, 0.15164299309253693, -0.2811576724052429, 0.03138875961303711, 0.1325373649597168, -0.08593198657035828, 0.06303457915782928, 0.17347502708435059, 0.1342916339635849, -0.08896693587303162, 0.13075962662696838, 0.3538670241832733, 0.26266106963157654, 0.14389772713184357, 0.1389661431312561, 0.0689506009221077, -0.10383480042219162, -0.1060250923037529, 0.05516161397099495, 0.0143328458070755, -0.014449933543801308, 0.4606793522834778, 0.2667941451072693, -0.1306176334619522, -0.38860273361206055, -0.137741357088089, -0.17297162115573883, 0.2812448740005493, -0.4171098470687866, -0.12187093496322632, -0.1354808211326599, -0.21494755148887634, -0.3599184453487396, 0.11039546132087708, -0.27173712849617004, -0.20577429234981537, -0.13544420897960663, 0.36621004343032837, -0.29978957772254944, 0.3312624990940094, -0.29386013746261597, -0.06393222510814667, 0.17044135928153992, -0.17117300629615784, 0.03197856247425079, 0.16694898903369904, 0.03915215656161308, 0.07759106159210205, 0.31676915287971497, 0.12944409251213074, 0.39877671003341675, -0.33423349261283875, 0.03620106354355812, -0.5946775674819946, -0.24281996488571167, -0.11304967105388641, 0.0139473807066679, 0.1447075456380844, 0.4299740493297577, 0.1122177466750145, 0.142053484916687, -0.42347729206085205, 0.40492042899131775, -0.06497295945882797, -0.41678857803344727, 0.22320415079593658, 0.024280089884996414, -0.08459457755088806, 0.030787896364927292, -0.11111832410097122, 0.037443362176418304, -0.36216795444488525, 0.042772576212882996, 0.19077718257904053, 0.22333210706710815, 0.1083916500210762, -0.007076104171574116, -0.014428550377488136, 0.2055196613073349, 0.39018547534942627, -0.12452546507120132, -0.6085826754570007, 0.450972318649292, 0.014897370710968971, -0.22133173048496246, -0.06278207898139954, -0.3001181483268738, 0.08898813277482986, 0.32303792238235474, -0.4250461459159851, -0.21025462448596954, -0.4416131377220154, 0.4154331684112549, 0.1584671437740326, 0.13172762095928192, 0.22637324035167694, 0.1449032574892044, -0.11196645349264145, -0.1887500286102295, -0.24624395370483398, 0.14747172594070435, -0.06004679203033447, 0.3447147011756897, -0.10121623426675797, 0.3811486065387726, -0.07560984045267105, 0.48063915967941284, 0.4218045175075531, 0.10284373164176941, 0.1447441726922989, 0.05007626861333847, 0.33705562353134155, -0.08271542936563492, -0.21983984112739563, 0.08826231211423874, -0.07582634687423706, -0.20413169264793396, 0.020503900945186615, 0.12512584030628204, 0.17810852825641632, -0.1402079463005066, -0.06775481253862381, -0.21758389472961426, -0.29901430010795593, -0.0332784503698349, -0.13474275171756744, 0.27366673946380615, 0.03718579187989235, 0.052117690443992615, -0.19301903247833252, -0.1318897008895874, 0.07023671269416809, 0.10948055982589722, 0.05463334172964096, -0.04103953391313553, -0.3864152729511261, 0.1372370421886444, -0.30346810817718506, 0.21567922830581665, 0.3026650846004486, 0.30845215916633606, 0.12299935519695282, -0.21258413791656494, -0.16024206578731537, -0.06883299350738525, 0.4302878975868225, -0.34393808245658875, 0.31616854667663574, -0.0009476672857999802, -0.1937982589006424, -0.0435674786567688, -0.0976545587182045, 0.02693026140332222, -0.09270966053009033, 0.3193941116333008, 0.2746087312698364, -0.4805346727371216, 0.08087962120771408, 0.48059335350990295, 0.46249011158943176, -0.07857570052146912, -0.15603531897068024, -0.36046409606933594, -0.23848894238471985, -0.29315510392189026, -0.04259779304265976, -0.0034584421664476395, 0.19102704524993896, -0.03557920455932617, -0.12803494930267334, 0.054476141929626465, -0.09827016294002533, 0.21233181655406952, 0.095798060297966, 0.18732869625091553, -0.05022183060646057, 0.5306673645973206, -0.18993300199508667, -0.22758981585502625, 0.18936078250408173, 0.9041648507118225, -0.4054535925388336, -0.5909422636032104, -0.08106433600187302, -0.16014111042022705, -0.24695217609405518, 0.0557861402630806, 0.035245783627033234, -0.2437470555305481, 0.38888290524482727, -0.0007015317678451538, -0.07550496608018875, -0.14689847826957703, 0.09943246841430664, 0.14964434504508972, -0.2541827857494354, -0.2613089680671692, 0.07536883652210236, -0.16695399582386017, 0.027862146496772766, 0.36677929759025574, 0.00474364310503006, -0.08386469632387161, 0.0762133002281189, 0.1936836540699005, 0.745721697807312, 0.016358934342861176, 0.041596777737140656, 0.20958212018013, -0.21306602656841278, 0.18527981638908386, 0.021242603659629822, -0.022858113050460815, -0.4402023255825043, -0.5098690390586853, 0.026190733537077904, -0.2784948945045471, 0.01594897359609604, 0.06116262078285217, 0.1024608165025711, 0.3045133054256439, -0.1234586089849472, 0.4664115011692047, 0.059837475419044495, 0.15945513546466827, -0.2128707468509674, -0.07712864875793457, -0.034660808742046356, 0.22149431705474854, -0.18692289292812347, 0.2379305362701416, -0.05406632646918297, 0.0468638576567173, -0.09692060947418213, -0.19420385360717773, -0.31582197546958923, 0.32528987526893616, 0.019246462732553482, 0.19731050729751587, 0.44874802231788635, -0.31851524114608765, -0.16793940961360931, 0.13573969900608063, 0.2521148920059204, 0.2901901304721832, -0.17415237426757812, 0.028517212718725204, 0.5030844807624817, 0.19389978051185608, 0.17393405735492706, 0.08312485367059708, 0.4321644604206085, -0.15061253309249878, -0.08571617305278778, -0.05000516027212143, 0.0005816370248794556, -0.4203122854232788, 0.17116490006446838, -0.17239224910736084, -0.17522531747817993, -0.5125869512557983, -0.08551962673664093, -0.20631760358810425, -0.09394758939743042, -0.3690595328807831, 0.18402743339538574, 0.22431693971157074, -0.15403339266777039, 0.146710604429245, -0.035165417939424515, -0.2979353666305542, -0.11670154333114624, 0.45143982768058777, 0.14269739389419556, -0.24403131008148193, 0.23084178566932678, 0.026278171688318253, -0.2984665036201477, -0.21300962567329407, 0.09962866455316544, -0.15577736496925354, -0.5088306665420532, 0.26491880416870117, -0.3336535096168518, 0.1312561184167862, -0.14804638922214508, 0.2768075168132782, 0.2203037291765213, 0.21427521109580994, 0.17521271109580994, -0.4406704306602478, -0.16068939864635468, 0.05437837541103363, 0.24218061566352844, 0.3161923885345459, -0.28703513741493225, 0.048468638211488724, -0.08058752864599228, -0.2952461838722229, -0.3630438446998596, -0.2205744832754135, -0.4493398070335388, 0.038317203521728516, -0.027636785060167313, -0.0656428411602974, -0.007145782001316547, -0.05768765136599541, 0.25157082080841064, -0.1159273236989975, -0.22183214128017426, -0.21067115664482117, -0.2256448119878769, 0.11254484951496124, -0.0045495834201574326, -0.25397443771362305, 0.20823349058628082, -0.097392238676548, -0.12157119810581207, -0.25780582427978516, 0.039872851222753525, 0.2746000587940216, -0.1016315370798111, -0.06808871030807495, 0.17392773926258087, 0.00395888090133667, -0.0176816638559103, -0.012927763164043427, -0.35177382826805115, -0.006547167897224426, -0.07449740916490555, 0.0787922590970993, -0.1259576976299286, -0.07809416204690933, 0.07043728232383728, 0.04594588279724121, 0.06214400753378868, 0.008170606568455696, 0.3778413236141205, -0.06954215466976166, -0.36049574613571167, 0.2283974438905716, 0.37511125206947327, 0.3845582902431488, -0.2192770391702652, -0.044164881110191345, 0.05159255489706993, 0.2784510552883148, -0.35744741559028625, -0.062285516411066055, -0.16263508796691895, -0.07807984203100204, 0.13520832359790802, 0.2378799468278885, -0.17721959948539734, -0.3327313959598541, 0.659755289554596, 0.0663318932056427, 0.24077275395393372, -0.28172826766967773, 0.22998830676078796, 0.4328608810901642, -0.048844560980796814, -0.08599281311035156, 0.3226190507411957, -0.22472351789474487, 0.0787869244813919, 0.04493538662791252, 0.0731656551361084, 0.22925841808319092, 0.0717681348323822, 0.12101230770349503, -0.15922585129737854, -0.22952662408351898, 0.0853569433093071, -0.10287749767303467, -0.09972967207431793, 0.019313085824251175, 0.17690449953079224, 0.19250357151031494, -0.2803208529949188, 0.22408847510814667, -0.4122214615345001, -0.013240788131952286, -0.08289902657270432, 0.08788353204727173, -0.18070337176322937, -0.20119322836399078, -0.025239326059818268, 0.09004470705986023, -0.051085520535707474, 0.034329913556575775, 0.18389709293842316, -0.01311732828617096, -0.09283079206943512, -0.4060724675655365, -0.06773117929697037, -0.026209034025669098, 0.035925399512052536, -0.26357680559158325, 0.20421475172042847, 0.6374574899673462, -0.11420764029026031, -0.05599938705563545, 0.3909932076931, 0.47153839468955994, 0.30396488308906555, 0.07835796475410461, -0.008176383562386036, -0.022783637046813965, -0.0024701133370399475, -0.16382932662963867, 0.5176709890365601, 0.0009208768606185913, 0.06063004583120346, 0.3803858160972595, 0.1782929003238678, -0.23150253295898438, -0.04854263737797737, -0.14663006365299225, -0.3697527348995209, -0.12132547795772552, 0.7142720818519592, -0.06620018929243088, 0.02914242446422577, -0.030819088220596313, 0.0077906399965286255, -0.18541133403778076, -0.18205974996089935, -0.04345463961362839, 0.08031237870454788, 0.08906348049640656, -0.08645317703485489, 0.10901296138763428, -0.13090366125106812, 0.40169206261634827, 0.20546820759773254, 0.09229829907417297, -0.20699751377105713, -0.2887667417526245, -0.6116126775741577, 0.26037147641181946, -0.23382306098937988, -0.23034343123435974, -0.06138966232538223, 0.12490066885948181, -0.18083399534225464, 0.17178888618946075, 0.17831197381019592, -0.1176827996969223, -0.1783403754234314, 0.005671706050634384, -0.14612652361392975, -0.1505631059408188, -0.09954372048377991, -0.2074045091867447, -0.0614130012691021, -0.48818036913871765, 0.2587381899356842, 0.028389431536197662, 0.19446977972984314, 0.038267504423856735, -0.1708190143108368, 0.08177748322486877, -0.04336768388748169, 0.07753495872020721, 0.18105457723140717, 0.5223293900489807, -0.12268207222223282, -0.15044307708740234, -0.1628185510635376, -0.38882705569267273, -0.12567618489265442, 0.34563687443733215, 0.027928316965699196, 0.5277637243270874, 0.18865670263767242, -0.09195323288440704, -0.2686385214328766, 0.42413273453712463, 0.13854126632213593, -0.0869656577706337, 0.01737046055495739, 0.26625487208366394, -0.2107408046722412, -0.013077394105494022, 0.1119052842259407, 0.0011198632419109344, 0.11517943441867828, 0.1521528959274292, -0.20205408334732056, -0.416265606880188, 0.5105510354042053, -0.03896825760602951, -0.3001614809036255, -0.3912935256958008, 0.22660069167613983, -0.30001428723335266, -0.179383784532547, -0.5620109438896179, 0.14763253927230835, 0.33482158184051514, 0.14932048320770264, -0.14686089754104614, 0.24613752961158752, -0.23881684243679047, 0.16765518486499786, 0.09371069073677063, 0.17382386326789856, 0.00783531740307808, -0.16195569932460785, 0.032272737473249435, -0.18924403190612793 ]
https://github.com/huggingface/datasets/issues/3904
CONLL2003 Dataset not available
Thanks for reporting, @omarespejel. I'm sorry but I can't reproduce the issue: the loading of the dataset works perfecto for me and I can reach the data URL: https://data.deepai.org/conll2003.zip Might it be due to a temporary problem in the data owner site (https://data.deepai.org/) that is fixed now? Could you please try loading the dataset again and tell if the problem persists?
## Describe the bug [CONLL2003](https://huggingface.co/datasets/conll2003) Dataset can no longer reach 'https://data.deepai.org/conll2003.zip' ![image](https://user-images.githubusercontent.com/4755430/158084483-ff83631c-5154-4823-892d-577bf1166db0.png) ## Steps to reproduce the bug ```python from datasets import load_dataset datasets = load_dataset("conll2003") ``` ## Expected results Download the conll2003 dataset. ## Actual results Error: `ConnectionError: Couldn't reach https://data.deepai.org/conll2003.zip (error 502)`
61
CONLL2003 Dataset not available ## Describe the bug [CONLL2003](https://huggingface.co/datasets/conll2003) Dataset can no longer reach 'https://data.deepai.org/conll2003.zip' ![image](https://user-images.githubusercontent.com/4755430/158084483-ff83631c-5154-4823-892d-577bf1166db0.png) ## Steps to reproduce the bug ```python from datasets import load_dataset datasets = load_dataset("conll2003") ``` ## Expected results Download the conll2003 dataset. ## Actual results Error: `ConnectionError: Couldn't reach https://data.deepai.org/conll2003.zip (error 502)` Thanks for reporting, @omarespejel. I'm sorry but I can't reproduce the issue: the loading of the dataset works perfecto for me and I can reach the data URL: https://data.deepai.org/conll2003.zip Might it be due to a temporary problem in the data owner site (https://data.deepai.org/) that is fixed now? Could you please try loading the dataset again and tell if the problem persists?
[ -0.19115200638771057, 0.015068858861923218, -0.04346455633640289, 0.3382740616798401, 0.19229736924171448, 0.003913998603820801, 0.24652226269245148, 0.11542615294456482, -0.3758264183998108, 0.14859795570373535, -0.08610620349645615, 0.24523372948169708, 0.45359793305397034, 0.18522953987121582, -0.03814239054918289, -0.04471437633037567, 0.0035964325070381165, -0.012561380863189697, -0.21330714225769043, 0.060949765145778656, -0.30829134583473206, 0.18396520614624023, -0.3245497941970825, -0.10919594764709473, -0.28258803486824036, 0.1720990240573883, -0.07653991132974625, 0.06689835339784622, -0.22171607613563538, -0.35949328541755676, 0.6459475159645081, -0.13874869048595428, 0.21910445392131805, 0.2534445822238922, -0.00012016008258797228, 0.14592459797859192, 0.46363961696624756, -0.02020614966750145, -0.33507850766181946, -0.16898168623447418, -0.5470798015594482, -0.39675620198249817, 0.04096268117427826, -0.06470457464456558, -0.1748000681400299, 0.26191475987434387, -0.17636781930923462, -0.3023735284805298, 0.26656773686408997, 0.28986531496047974, 0.17050231993198395, 0.4098837077617645, 0.5369903445243835, -0.2640502452850342, 0.29561588168144226, -0.4764297604560852, -0.14127667248249054, 0.4444655478000641, 0.12860432267189026, -0.1353069692850113, 0.24800986051559448, 0.28592756390571594, 0.12736676633358002, 0.012010417878627777, -0.004651226103305817, 0.09351398795843124, 0.01991560310125351, -0.4266189932823181, 0.023851405829191208, 0.2839430570602417, 0.6837103962898254, -0.06895050406455994, -0.5916916728019714, -0.19943112134933472, 0.1127125546336174, -0.31337177753448486, 0.36460012197494507, 0.012456584721803665, -0.09106965363025665, 0.22428840398788452, -0.06235024705529213, -0.147173210978508, -0.18292966485023499, 0.3587573170661926, -0.492633581161499, 0.4509402811527252, -0.19488506019115448, 0.13813188672065735, -0.15499594807624817, -0.09618860483169556, 0.45065027475357056, -0.0444483682513237, 0.04777296632528305, 0.1217944324016571, -0.49158740043640137, -0.04232613369822502, -0.15969085693359375, -0.06420078128576279, 0.18791735172271729, 0.11003381758928299, 0.048882659524679184, -0.2731249928474426, -0.33850839734077454, 0.0699988529086113, 0.3205319046974182, -0.003291051834821701, -0.2013462781906128, 0.320568710565567, 0.35866862535476685, 0.23064078390598297, 0.2811121344566345, -0.13952314853668213, -0.1319955587387085, -0.20441865921020508, -0.1598118543624878, 0.13392940163612366, 0.3498334288597107, -0.17719164490699768, -0.43414056301116943, 0.12732857465744019, -0.32412391901016235, -0.07660644501447678, -0.07587391138076782, 0.29050424695014954, -0.25828418135643005, 0.2126733660697937, 0.10261410474777222, 0.3468855619430542, 0.11745081096887589, -0.4192105829715729, -0.0438922755420208, -0.22957415878772736, -0.21553248167037964, -0.2688177227973938, 0.0998634397983551, -0.2314804494380951, 0.20513851940631866, -0.019631050527095795, -0.09734483063220978, -0.1232246607542038, -0.033059485256671906, -0.040992371737957, -0.14822226762771606, 0.19223462045192719, 0.10045929253101349, 0.03272730112075806, 0.09718967229127884, 0.037022337317466736, -0.07200920581817627, -0.09108980745077133, -0.36555901169776917, -0.1358172446489334, -0.26482608914375305, 0.09369687736034393, -0.09767273813486099, -0.15898838639259338, 0.2533981204032898, -0.21234600245952606, 0.02008087933063507, -0.10462558269500732, -0.027964718639850616, -0.04639683663845062, -0.48273974657058716, -0.17590166628360748, 0.3223656117916107, 0.5480448603630066, -0.47499972581863403, -0.03621373325586319, -0.29156774282455444, -0.10599404573440552, 0.022866129875183105, 0.03329063579440117, -0.17206774652004242, 0.06412699818611145, -0.4246785044670105, -0.2673773765563965, 0.2539883852005005, -0.21587075293064117, -0.7834101319313049, 0.30356884002685547, -0.2715332806110382, 0.03992693871259689, -0.04515095800161362, -0.03061467967927456, 0.08711099624633789, 0.05912972241640091, 0.32823845744132996, 0.2745512127876282, 0.110478974878788, -0.1492653340101242, -0.10582488775253296, -0.23186291754245758, 0.1638522744178772, 0.07517041265964508, 0.13664832711219788, 0.28225648403167725, 0.2140791267156601, -0.3216873109340668, 0.31023967266082764, 0.31720367074012756, 0.18834000825881958, 0.41314101219177246, 0.39031457901000977, 0.17728926241397858, 0.024958010762929916, 0.040650926530361176, -0.31793513894081116, 0.3623960018157959, -0.024050621315836906, 0.026844670996069908, -0.22663001716136932, 0.10809549689292908, -0.4873017966747284, 0.23200716078281403, -0.19569940865039825, 0.024978963658213615, 0.04174058884382248, 0.12907840311527252, 0.16892051696777344, 0.2547796368598938, -0.12891046702861786, 0.43837815523147583, 0.18673557043075562, 0.13982315361499786, -0.422347754240036, 0.44426053762435913, -0.01992552913725376, 0.00019360613077878952, 0.19317860901355743, 0.1566053032875061, 0.27015992999076843, -0.09264566004276276, -0.18761080503463745, 0.2386399805545807, -0.056941572576761246, -0.024609573185443878, 0.09340894222259521, 0.10013476014137268, 0.2624250054359436, -0.40590718388557434, 0.1694064438343048, 0.15686148405075073, 0.05021514371037483, 0.171063631772995, 0.10344425588846207, 0.3641473054885864, 0.2523152828216553, 0.22228184342384338, -0.20741967856884003, 0.3584582507610321, 0.4630546271800995, -0.21008311212062836, -0.008765880018472672, -0.1599048376083374, 0.05583386495709419, 0.16976863145828247, 0.4409288167953491, -0.114601731300354, -0.1469866931438446, 0.09478694200515747, -0.019596781581640244, -0.11336018145084381, -0.026415444910526276, 0.309070885181427, -0.18184328079223633, 0.07920428365468979, 0.03710244223475456, 0.5061419606208801, 0.3599758744239807, 0.041861020028591156, 0.044969089329242706, -0.03925374895334244, -0.03506558761000633, -0.18294455111026764, 0.26573634147644043, 0.06884883344173431, 0.3184826374053955, 0.2294774353504181, 0.2030525952577591, 0.18624167144298553, 0.0453629344701767, -0.23903267085552216, 0.04260891675949097, 0.07153507322072983, -0.2365993857383728, -0.019994348287582397, -0.23384535312652588, -0.4098166823387146, -0.04566226899623871, 0.028428740799427032, -0.30254003405570984, -0.28744807839393616, -0.20334407687187195, 0.05067409574985504, 0.015891756862401962, 0.015362916514277458, -0.41205283999443054, 0.10923998802900314, 0.1572522670030594, 0.12075111269950867, -0.06784673780202866, -0.06369546055793762, -0.0878443494439125, 0.008200887590646744, 0.09452284872531891, -0.5000413656234741, 0.1805093139410019, -0.19454516470432281, 0.007902195677161217, -0.45189493894577026, -0.06430140882730484, 0.3004826307296753, 0.0559653714299202, 0.3807736039161682, 0.216862291097641, 0.26702916622161865, 0.19776883721351624, 0.13796846568584442, 0.3405520021915436, 0.15339164435863495, -0.11987277120351791, 0.11927832663059235, 0.008619889616966248, 0.07635339349508286, 0.2641283869743347, -0.07043621689081192, -0.34523671865463257, -0.2517300248146057, 0.056800853461027145, -0.23251646757125854, 0.07570774853229523, -0.016378268599510193, 0.09469126909971237, -0.03414594382047653, -0.0891999751329422, 0.04682936519384384, -0.23206135630607605, -0.5243462324142456, 0.31117695569992065, -0.14749445021152496, -0.38041651248931885, 0.02464703842997551, -0.08434973657131195, 0.23659656941890717, -0.08332861959934235, -0.5951569676399231, 0.044373173266649246, -0.34687453508377075, 0.4830990433692932, -0.1941373646259308, 0.003399444743990898, 0.1338634490966797, -0.1919364482164383, -0.010831203311681747, -0.11787223070859909, -0.37834417819976807, -0.20683595538139343, 0.004114244133234024, 0.5643001794815063, 0.33328136801719666, 0.332001656293869, -0.026735588908195496, 0.26419597864151, 0.386923611164093, 0.039504557847976685, 0.5707175731658936, -0.04987999051809311, 0.24507573246955872, -0.0015227794647216797, -0.39204221963882446, -0.25063449144363403, -0.11817413568496704, -0.0007201060652732849, -0.0969877690076828, 0.13666534423828125, -0.0840376690030098, -0.40820348262786865, -0.18047970533370972, -0.4638148844242096, -0.31003716588020325, -0.26301470398902893, -0.05455980449914932, 0.26460257172584534, 0.15944941341876984, -0.016508951783180237, -0.0641588494181633, -0.047110818326473236, -0.041521720588207245, 0.13299012184143066, 0.27947431802749634, -0.06083943694829941, -0.2114706188440323, -0.21952109038829803, -0.4127485454082489, 0.3840046525001526, -0.03914208710193634, 0.5614627003669739, -0.10381123423576355, 0.14243844151496887, 0.1303785741329193, 0.06279127299785614, 0.9076783061027527, -0.24028556048870087, 0.4136836528778076, 0.12455935776233673, 0.050257205963134766, -0.2619355022907257, -0.09364492446184158, 0.1447487622499466, -0.13647571206092834, 0.4983562231063843, 0.30628639459609985, -0.2155607044696808, -0.00568737369030714, 0.32167166471481323, 0.027638224884867668, -0.18510980904102325, -0.12302715331315994, -0.2718760073184967, -0.21615737676620483, -0.06572599709033966, -0.14766359329223633, -0.2521294951438904, 0.2960749566555023, 0.05917998403310776, -0.22613021731376648, 0.07178441435098648, -0.27951326966285706, -0.2031470686197281, -0.05073145776987076, 0.20388442277908325, 0.16610243916511536, 0.4969925880432129, 0.2737088203430176, 0.20790114998817444, 0.045184217393398285, 0.8385030031204224, -0.13789646327495575, -0.6208722591400146, 0.19787099957466125, -0.0020992066711187363, 0.29065096378326416, 0.25879502296447754, -0.13150595128536224, 0.05012194812297821, 0.12495113164186478, 0.1828811764717102, -0.2365289330482483, -0.058875057846307755, 0.38961702585220337, 0.02007509022951126, -0.31546562910079956, -0.3522895276546478, 0.41334858536720276, -0.11969152092933655, -0.07742508500814438, 0.2960857152938843, -0.20741386711597443, -0.03463803231716156, 0.07567077875137329, -0.038555510342121124, 0.8922377824783325, -0.021095573902130127, 0.042875759303569794, 0.0754886344075203, -0.13448891043663025, 0.5228075385093689, 0.10011540353298187, 0.07673400640487671, -0.1800796389579773, -0.08899839967489243, -0.02977604977786541, -0.1939973384141922, -0.16420164704322815, -0.1829158514738083, 0.1340533345937729, 0.2182130664587021, -0.18612822890281677, -0.0774337649345398, 0.22448183596134186, 0.1976214498281479, -0.28847283124923706, 0.13851496577262878, -0.1291043609380722, 0.1248304545879364, 0.08164424449205399, 0.5570243000984192, -0.03404247760772705, -0.09936956316232681, -0.26152145862579346, -0.2593694031238556, -0.5591570734977722, 0.25401490926742554, -0.4038146138191223, 0.15125983953475952, 0.08421267569065094, -0.4220609664916992, 0.054151345044374466, 0.3395459055900574, 0.15337291359901428, 0.13436800241470337, -0.41350817680358887, 0.18730120360851288, 0.0916299819946289, -0.16503176093101501, 0.1925804764032364, 0.14373567700386047, -0.03525730222463608, -0.02409549057483673, -0.40064308047294617, 0.21343600749969482, -0.11348430812358856, -0.12861496210098267, 0.06310826539993286, 0.19591152667999268, 0.17592599987983704, -0.3346274495124817, 0.08005324006080627, -0.23236584663391113, 0.23478549718856812, -0.2757504880428314, 0.11947274208068848, 0.24758735299110413, 0.025711018592119217, -0.18882310390472412, -0.03276741877198219, -0.24265484511852264, -0.06691066920757294, 0.539645254611969, -0.1909582018852234, 0.2523764371871948, 0.25487226247787476, 0.3027553856372833, -0.031450942158699036, -0.08982479572296143, 0.2655039131641388, -0.15584127604961395, -0.4167011082172394, 0.058578263968229294, -0.015593490563333035, 0.26074254512786865, -0.3070591688156128, 0.14229844510555267, 0.2564082145690918, -0.21532070636749268, 0.0073471106588840485, -0.619866669178009, 0.0851762592792511, 0.0075850412249565125, -0.13173693418502808, 0.13310962915420532, -0.2024492621421814, 0.21466657519340515, 0.06795503199100494, -0.3402145206928253, -0.24631521105766296, 0.11495848745107651, -0.23663587868213654, -0.1373569369316101, 0.19908937811851501, -0.026688508689403534, 0.15255142748355865, -0.0944032222032547, 0.1513260155916214, -0.038509637117385864, -0.040293850004673004, -0.12544897198677063, -0.18095368146896362, 0.15659120678901672, 0.04638240858912468, -0.3762653172016144, -0.08632967621088028, -0.3366072177886963, -0.08194026350975037, 0.06711365282535553, -0.05831073224544525, 0.11375278979539871, 0.10952341556549072, 0.024087682366371155, -0.25990650057792664, 0.03673718124628067, -0.1710970103740692, 0.3740759789943695, 0.059745293110609055, 0.2589576840400696, 0.13608814775943756, 0.35542649030685425, -0.013484046794474125, 0.13338832557201385, -0.1836177259683609, -0.10557448118925095, -0.3500216603279114, -0.10296767204999924, 0.6350160241127014, -0.25303614139556885, 0.11502891778945923, 0.22928690910339355, 0.24974185228347778, 0.2683599591255188, -0.2464687079191208, 0.271299809217453, 0.22421133518218994, 0.1670607477426529, -0.38129037618637085, -0.23477816581726074, -0.10021443665027618, 0.2833961844444275, -0.030682174488902092, -0.01467057317495346, 0.04844054952263832, -0.12744376063346863, -0.018455177545547485, -0.010573518462479115, 0.4933081567287445, 0.365694522857666, 0.20759224891662598, 0.4332521855831146, 0.32081693410873413, 0.1659936010837555, 0.11757879704236984, 0.004366947337985039, 0.045387957245111465, 0.2055547535419464, 0.14560121297836304, -0.1914810687303543, -0.24915102124214172, 0.2741049528121948, -0.03651604801416397, -0.5798565745353699, 0.2956145405769348, 0.2205730825662613, -0.43631571531295776, -0.027055829763412476, -0.16614460945129395, 0.48816123604774475, -0.36518555879592896, 0.2885010540485382, -0.4972076714038849, 0.25253909826278687, 0.07493089139461517, 0.01682186871767044, -0.22634679079055786, -0.26562148332595825, 0.03521573543548584, 0.1310940533876419, 0.038227859884500504, -0.2626180648803711, 0.09663689881563187, 0.1318877786397934, -0.15023232996463776, -0.4018239378929138, -0.00810980424284935, 0.33538421988487244, 0.12464646995067596, -0.3651183247566223, 0.25106579065322876, 0.2998778820037842, -0.17136356234550476, -0.020206797868013382, 0.4311610460281372, 0.4374365508556366, 0.04113922640681267, 0.11686208844184875, 0.0450550802052021, 0.12708134949207306, -0.12920233607292175, -0.14454108476638794, 0.19475606083869934, 0.11900138109922409, -0.06292110681533813, 0.3850318491458893, 0.15411759912967682, -0.07481058686971664, -0.04006636515259743, 0.12065236270427704, 0.42261743545532227, -0.24354450404644012, 0.1335022747516632, -0.44736337661743164, -0.0996750071644783, -0.21456310153007507, -0.04537361115217209, -0.4648353159427643, 0.20756512880325317, 0.34766995906829834, -0.25468531250953674, 0.11988835781812668, -0.13813410699367523, 0.034540146589279175, -0.2664833664894104, 0.14666305482387543, 0.6147031188011169, 0.27601158618927, -0.38686156272888184, -0.42310547828674316, -0.33533501625061035, 0.22705265879631042, -0.33326345682144165, -0.11873377859592438, 0.11515220254659653, 0.05219405144453049, -0.16758215427398682, 0.08090236783027649, 0.25228437781333923, 0.02659207582473755, -0.16889497637748718, 0.42343443632125854, -0.2544214129447937, -0.3319868743419647, 0.1851409524679184, 0.3096407353878021, -0.08628706634044647, -0.29282036423683167, 0.21933692693710327, -0.30076703429222107, -0.00814993679523468, -0.08476539701223373, -0.012938480824232101, 0.09499725699424744, -0.3085218667984009, 0.5483870506286621, 0.24112725257873535, 0.3730904459953308, -0.0366552360355854, -0.21378940343856812, -0.3023764193058014, -0.34091895818710327, 0.022301845252513885, 0.10450775176286697, -0.016010891646146774, 0.19743682444095612, -0.13263604044914246, 0.022627919912338257, -0.21877031028270721, 0.06248895823955536, -0.0899987518787384, 0.07036879658699036, -0.17674872279167175, 0.01849708892405033, -0.1629563868045807, 0.06801234930753708, 0.17027164995670319, 0.058070506900548935, -0.04314057528972626, -0.034690774977207184, -0.017896898090839386, -0.24955043196678162, 0.25359949469566345, -0.1726679801940918, -0.07869808375835419, -0.09131616353988647, 0.3004400134086609, -0.13714861869812012, 0.04048318415880203, -0.11070837825536728, 0.06827355176210403, 0.5644798278808594, 0.22856351733207703, -0.1479523479938507, 0.12468978762626648, 0.040691789239645004, -0.03340720012784004, 0.05748865380883217, 0.5261132717132568, 0.0965176597237587, -0.24727749824523926, 0.212070494890213, -0.09309929609298706 ]
https://github.com/huggingface/datasets/issues/3904
CONLL2003 Dataset not available
I am getting the same issue. I use google colab with CPU. The code I used is exactly the same as described above. ``` from datasets import load_dataset dataset = load_dataset("conll2003") ``` The produced error: ![image](https://github.com/huggingface/datasets/assets/9371628/d87f7fb0-ef58-4755-abb5-f8f92c51fe02) Note: This error is different from what was initially described in this thread. This is because I use CPU. When I use GPU I reproduce the same initial error of the thread. Moreover, I receive the following warning: ``` WARNING:urllib3.connection:Certificate did not match expected hostname: data.deepai.org. Certificate: {'subject': ((('commonName', '*.b-cdn.net'),),), 'issuer': ((('countryName', 'GB'),), (('stateOrProvinceName', 'Greater Manchester'),), (('localityName', 'Salford'),), (('organizationName', 'Sectigo Limited'),), (('commonName', 'Sectigo RSA Domain Validation Secure Server CA'),)), 'version': 3, 'serialNumber': 'DDED48B13E1EA03983E833AB2C35EF07', 'notBefore': 'Nov 7 00:00:00 2022 GMT', 'notAfter': 'Nov 11 23:59:59 2023 GMT', 'subjectAltName': (('DNS', '*.b-cdn.net'), ('DNS', 'b-cdn.net')), 'OCSP': ('http://ocsp.sectigo.com/',), 'caIssuers': ('http://crt.sectigo.com/SectigoRSADomainValidationSecureServerCA.crt',)} Downloading and preparing dataset conll2003/conll2003 to /root/.cache/huggingface/datasets/conll2003/conll2003/1.0.0/9a4d16a94f8674ba3466315300359b0acd891b68b6c8743ddf60b9c702adce98... WARNING:urllib3.connection:Certificate did not match expected hostname: data.deepai.org. Certificate: {'subject': ((('commonName', '*.b-cdn.net'),),), 'issuer': ((('countryName', 'GB'),), (('stateOrProvinceName', 'Greater Manchester'),), (('localityName', 'Salford'),), (('organizationName', 'Sectigo Limited'),), (('commonName', 'Sectigo RSA Domain Validation Secure Server CA'),)), 'version': 3, 'serialNumber': 'DDED48B13E1EA03983E833AB2C35EF07', 'notBefore': 'Nov 7 00:00:00 2022 GMT', 'notAfter': 'Nov 11 23:59:59 2023 GMT', 'subjectAltName': (('DNS', '*.b-cdn.net'), ('DNS', 'b-cdn.net')), 'OCSP': ('http://ocsp.sectigo.com/',), 'caIssuers': ('http://crt.sectigo.com/SectigoRSADomainValidationSecureServerCA.crt',)} ```
## Describe the bug [CONLL2003](https://huggingface.co/datasets/conll2003) Dataset can no longer reach 'https://data.deepai.org/conll2003.zip' ![image](https://user-images.githubusercontent.com/4755430/158084483-ff83631c-5154-4823-892d-577bf1166db0.png) ## Steps to reproduce the bug ```python from datasets import load_dataset datasets = load_dataset("conll2003") ``` ## Expected results Download the conll2003 dataset. ## Actual results Error: `ConnectionError: Couldn't reach https://data.deepai.org/conll2003.zip (error 502)`
193
CONLL2003 Dataset not available ## Describe the bug [CONLL2003](https://huggingface.co/datasets/conll2003) Dataset can no longer reach 'https://data.deepai.org/conll2003.zip' ![image](https://user-images.githubusercontent.com/4755430/158084483-ff83631c-5154-4823-892d-577bf1166db0.png) ## Steps to reproduce the bug ```python from datasets import load_dataset datasets = load_dataset("conll2003") ``` ## Expected results Download the conll2003 dataset. ## Actual results Error: `ConnectionError: Couldn't reach https://data.deepai.org/conll2003.zip (error 502)` I am getting the same issue. I use google colab with CPU. The code I used is exactly the same as described above. ``` from datasets import load_dataset dataset = load_dataset("conll2003") ``` The produced error: ![image](https://github.com/huggingface/datasets/assets/9371628/d87f7fb0-ef58-4755-abb5-f8f92c51fe02) Note: This error is different from what was initially described in this thread. This is because I use CPU. When I use GPU I reproduce the same initial error of the thread. Moreover, I receive the following warning: ``` WARNING:urllib3.connection:Certificate did not match expected hostname: data.deepai.org. Certificate: {'subject': ((('commonName', '*.b-cdn.net'),),), 'issuer': ((('countryName', 'GB'),), (('stateOrProvinceName', 'Greater Manchester'),), (('localityName', 'Salford'),), (('organizationName', 'Sectigo Limited'),), (('commonName', 'Sectigo RSA Domain Validation Secure Server CA'),)), 'version': 3, 'serialNumber': 'DDED48B13E1EA03983E833AB2C35EF07', 'notBefore': 'Nov 7 00:00:00 2022 GMT', 'notAfter': 'Nov 11 23:59:59 2023 GMT', 'subjectAltName': (('DNS', '*.b-cdn.net'), ('DNS', 'b-cdn.net')), 'OCSP': ('http://ocsp.sectigo.com/',), 'caIssuers': ('http://crt.sectigo.com/SectigoRSADomainValidationSecureServerCA.crt',)} Downloading and preparing dataset conll2003/conll2003 to /root/.cache/huggingface/datasets/conll2003/conll2003/1.0.0/9a4d16a94f8674ba3466315300359b0acd891b68b6c8743ddf60b9c702adce98... WARNING:urllib3.connection:Certificate did not match expected hostname: data.deepai.org. Certificate: {'subject': ((('commonName', '*.b-cdn.net'),),), 'issuer': ((('countryName', 'GB'),), (('stateOrProvinceName', 'Greater Manchester'),), (('localityName', 'Salford'),), (('organizationName', 'Sectigo Limited'),), (('commonName', 'Sectigo RSA Domain Validation Secure Server CA'),)), 'version': 3, 'serialNumber': 'DDED48B13E1EA03983E833AB2C35EF07', 'notBefore': 'Nov 7 00:00:00 2022 GMT', 'notAfter': 'Nov 11 23:59:59 2023 GMT', 'subjectAltName': (('DNS', '*.b-cdn.net'), ('DNS', 'b-cdn.net')), 'OCSP': ('http://ocsp.sectigo.com/',), 'caIssuers': ('http://crt.sectigo.com/SectigoRSADomainValidationSecureServerCA.crt',)} ```
[ -0.23122742772102356, 0.10169914364814758, 0.01943160966038704, 0.35455381870269775, 0.0892065018415451, 0.03595958650112152, 0.27444344758987427, 0.0804341584444046, -0.2968224883079529, 0.26328158378601074, -0.06898251175880432, 0.3295479118824005, 0.4328650236129761, 0.2564679682254791, -0.12666787207126617, 0.034081026911735535, 0.15164393186569214, -0.060831815004348755, 0.05168475955724716, 0.04119069129228592, -0.30916428565979004, 0.2370370328426361, -0.3092840909957886, -0.09551675617694855, -0.5455300211906433, -0.07300598919391632, -0.10532599687576294, 0.13586848974227905, -0.17467424273490906, -0.2289746254682541, 0.4807952046394348, -0.1213722825050354, 0.14508561789989471, 0.36300843954086304, -0.0001274350070161745, 0.057665303349494934, 0.3361808657646179, 0.019673557952046394, -0.44489338994026184, -0.17107237875461578, -0.45668312907218933, -0.20699681341648102, 0.1567288190126419, -0.10143055766820908, -0.18190696835517883, 0.39436984062194824, -0.001550251618027687, -0.13190928101539612, 0.35951900482177734, 0.3127383887767792, 0.04935726523399353, 0.2163231521844864, 0.310909628868103, -0.18824730813503265, 0.18921074271202087, -0.46620041131973267, -0.24516956508159637, 0.5518178343772888, 0.11378002911806107, -0.009939447045326233, 0.10064297169446945, 0.2707979083061218, -0.011732319369912148, 0.07745349407196045, -0.03146590292453766, 0.22051770985126495, -0.3259033262729645, -0.547964334487915, 0.28834912180900574, 0.2129870355129242, 0.3468232750892639, -0.1966736614704132, -0.367450475692749, -0.17672356963157654, 0.10063260048627853, -0.35842078924179077, 0.29754263162612915, 0.054199181497097015, -0.2734505534172058, 0.08526304364204407, -0.07286959886550903, -0.12549668550491333, -0.12067443132400513, 0.1560630202293396, -0.3670717179775238, 0.6289952993392944, -0.2103252112865448, 0.2277999222278595, 0.003993410617113113, 0.06779865175485611, 0.47148239612579346, -0.11582523584365845, 0.14493784308433533, -0.06765536218881607, -0.4636507034301758, 0.046699851751327515, -0.2523353397846222, 0.11718754470348358, 0.05113519728183746, 0.062390655279159546, 0.07113017141819, -0.16624099016189575, -0.18062056601047516, 0.10842745006084442, 0.1017947793006897, -0.07870905101299286, -0.2862020432949066, 0.31367015838623047, 0.4752674102783203, 0.36413145065307617, 0.1893029361963272, -0.009829144924879074, -0.14358916878700256, -0.2685830295085907, -0.3192521035671234, 0.3436046540737152, 0.2864043712615967, -0.260073721408844, -0.5670723915100098, 0.03384232893586159, -0.34921368956565857, 0.06796808540821075, 0.028631379827857018, 0.37633582949638367, -0.3748692572116852, 0.015805989503860474, 0.015968255698680878, 0.1560412049293518, -0.07581880688667297, -0.3041260540485382, 0.03487604111433029, -0.030022945255041122, -0.16689200699329376, 0.01389292161911726, 0.11769300699234009, -0.28264883160591125, 0.22134347259998322, 0.021728944033384323, 0.06914978474378586, 0.014656562358140945, -0.06180563569068909, -0.34679925441741943, -0.0796016976237297, 0.20503701269626617, 0.20970827341079712, 0.013827146962285042, 0.05999688059091568, -0.11212258785963058, -0.07262930274009705, -0.06464669853448868, -0.3521472215652466, -0.09749271720647812, -0.1273033171892166, 0.0009623775258660316, -0.17269785702228546, -0.09185928106307983, 0.10172394663095474, -0.07477940618991852, 0.08230645954608917, -0.0507965013384819, -0.1321887969970703, -0.09812963008880615, -0.5702201724052429, -0.1829809993505478, 0.3961254954338074, 0.6122652292251587, -0.45577216148376465, -0.054500460624694824, -0.15867416560649872, 0.0764433890581131, 0.06471898406744003, 0.17673534154891968, -0.05345192179083824, 0.04176436364650726, -0.33339032530784607, -0.22589020431041718, 0.08655273914337158, -0.13251987099647522, -0.8547021150588989, 0.21663345396518707, -0.16079749166965485, -0.04962287098169327, -0.008847810328006744, -0.037798214703798294, 0.15787628293037415, 0.0434858538210392, 0.44504621624946594, 0.18355849385261536, 0.003741508349776268, -0.14421948790550232, -0.118117555975914, -0.3889213800430298, -0.040002718567848206, 0.0539289228618145, 0.18707244098186493, 0.2683245837688446, 0.20551422238349915, -0.36040568351745605, 0.21229881048202515, 0.010054297745227814, 0.06164915859699249, 0.32561302185058594, 0.5271890759468079, -0.06579956412315369, -0.07451523095369339, 0.2797713577747345, -0.5033487677574158, 0.3391197621822357, 0.023483965545892715, 0.28680798411369324, -0.571108341217041, 0.11139833927154541, -0.3304251432418823, 0.06352873146533966, -0.20042599737644196, 0.047108568251132965, -0.012735206633806229, 0.23910456895828247, 0.07743240892887115, 0.24765311181545258, 0.023938242346048355, 0.5865194201469421, 0.18324674665927887, 0.14023523032665253, -0.31726428866386414, 0.41758182644844055, -0.1528516709804535, -0.12374372780323029, 0.23103296756744385, -0.04659723490476608, 0.2876081168651581, -0.05272451415657997, -0.12378428131341934, 0.047429319471120834, -0.025132836773991585, 0.07260052859783173, 0.11155304312705994, 0.16607028245925903, 0.33943021297454834, -0.2989932894706726, 0.10958503931760788, 0.07691086828708649, 0.09858935326337814, 0.24913829565048218, 0.23048710823059082, 0.4332343339920044, 0.3540225625038147, 0.2817646265029907, -0.13582947850227356, 0.14059945940971375, 0.2355317771434784, -0.09710893034934998, 0.15429680049419403, -0.037053197622299194, -0.04795246943831444, 0.3894789516925812, 0.5143175721168518, -0.09551550447940826, -0.09258028119802475, 0.2810828685760498, 0.15129978954792023, 0.06530505418777466, 0.061908379197120667, 0.19111603498458862, -0.1290193498134613, -0.017089931294322014, 0.21656867861747742, 0.3022709786891937, 0.33040642738342285, -0.057793136686086655, 0.06120529770851135, 0.2535770833492279, -0.19654875993728638, -0.23221835494041443, 0.07057355344295502, 0.11709044873714447, 0.5248627662658691, 0.10129015892744064, 0.07914837449789047, 0.1737978309392929, -0.10440754145383835, -0.3836817741394043, 0.1629117876291275, 0.18735186755657196, -0.2890273332595825, 0.1919289082288742, -0.17455676198005676, -0.3693524897098541, 0.028163766488432884, 0.13725459575653076, -0.2393644154071808, -0.2555190920829773, -0.27351242303848267, 0.262310266494751, -0.0057726334780454636, -0.006795341148972511, -0.18368691205978394, 0.2165997177362442, 0.25584447383880615, -0.1732398420572281, -0.11290881782770157, -0.12518978118896484, -0.2741009294986725, -0.028082452714443207, 0.1668231338262558, -0.38545382022857666, 0.2719172239303589, -0.1975749433040619, -0.050341151654720306, -0.34233275055885315, -0.21311932802200317, 0.40839800238609314, 0.0010327771306037903, 0.3680887222290039, 0.13091397285461426, 0.25337350368499756, -0.13604530692100525, -0.004422111436724663, 0.2808689475059509, 0.15854983031749725, -0.09578706324100494, -0.23757651448249817, -0.19201427698135376, 0.011193635873496532, 0.2687380611896515, -0.11456216126680374, -0.20969106256961823, -0.20130273699760437, 0.023343820124864578, -0.24707211554050446, 0.22616705298423767, -0.07574717700481415, 0.18284042179584503, 0.07111077010631561, 0.13025321066379547, 0.1465805321931839, -0.2075348049402237, -0.36157742142677307, 0.23368440568447113, -0.10106618702411652, -0.35953137278556824, 0.10015586018562317, -0.14226816594600677, 0.223891481757164, 0.09945175051689148, -0.5901668667793274, -0.2080468386411667, -0.35266727209091187, 0.28401950001716614, 0.05065883696079254, -0.012856421992182732, 0.05656641349196434, -0.1382334679365158, 0.02516610361635685, -0.04672246426343918, -0.4517694413661957, -0.12814369797706604, 0.007427658885717392, 0.609412670135498, 0.3802701234817505, 0.32122603058815, 0.10460898280143738, 0.3099061846733093, 0.3570379912853241, -0.14726075530052185, 0.4879647195339203, -0.06347689777612686, 0.2067079246044159, -0.008865870535373688, -0.3484005928039551, 0.009298530407249928, -0.20152458548545837, -0.14265774190425873, 0.06830829381942749, -0.11320910602807999, -0.0512981191277504, -0.4231140613555908, -0.10688112676143646, -0.37280771136283875, -0.3708590865135193, -0.15964668989181519, 0.056458741426467896, 0.29071712493896484, 0.13314497470855713, 0.0954613909125328, -0.02866089902818203, -0.0067455824464559555, 0.04557912424206734, 0.1655246764421463, 0.13449229300022125, -0.09140416234731674, 0.16055504977703094, -0.18384353816509247, -0.7163311243057251, 0.5435137152671814, 0.05978022515773773, 0.5139124393463135, -0.2974850833415985, 0.18075603246688843, 0.037993423640728, -0.034608010202646255, 0.6414631605148315, -0.17708587646484375, 0.1835050731897354, -0.026221303269267082, -0.10762406140565872, -0.16589432954788208, -0.06839063763618469, -0.08440697193145752, -0.1592782586812973, 0.45206114649772644, 0.39521828293800354, -0.28765955567359924, 0.11587926000356674, 0.26959142088890076, 0.031854234635829926, -0.09641991555690765, 0.10088057816028595, -0.3128136098384857, -0.4799041152000427, -0.1685423105955124, -0.016799092292785645, -0.1531175673007965, 0.24320125579833984, 0.04237547516822815, -0.19572630524635315, 0.16801562905311584, -0.29520511627197266, -0.025148019194602966, 0.17399796843528748, 0.1608394980430603, 0.3536958396434784, 0.2840065062046051, 0.08313916623592377, 0.29384005069732666, 0.24037061631679535, 0.8862630128860474, -0.09381423890590668, -0.6505507826805115, 0.2801991105079651, 0.0663197711110115, 0.1021210253238678, 0.4850550591945648, -0.06558037549257278, 0.06132446229457855, 0.10819177329540253, 0.2728053331375122, -0.05619773641228676, 0.20863695442676544, 0.23568083345890045, 0.1065283790230751, -0.5105652213096619, -0.2405896633863449, 0.4521087110042572, 0.015703942626714706, -0.17829805612564087, 0.23841239511966705, -0.19872917234897614, -0.11669695377349854, 0.21061140298843384, 0.2065889835357666, 0.9482998847961426, 0.02095557004213333, -0.043263863772153854, 0.2530274987220764, -0.12706702947616577, 0.7318475842475891, 0.10764719545841217, 0.1825774610042572, -0.2040252983570099, -0.30079859495162964, -0.07986952364444733, -0.15139085054397583, -0.04479262977838516, -0.13050618767738342, -0.07233960926532745, 0.20274683833122253, -0.007026582956314087, -0.06022774055600166, 0.3544754981994629, 0.2425003945827484, -0.2970332205295563, 0.11157248914241791, -0.09463267773389816, 0.021891389042139053, -0.06483293324708939, 0.5315927267074585, -0.11476655304431915, -0.12413643300533295, -0.4550033509731293, -0.26430800557136536, -0.5055047273635864, 0.3643162250518799, -0.6447656750679016, 0.21749302744865417, -0.11344777047634125, -0.5686149597167969, 0.15328317880630493, 0.090670645236969, 0.49326419830322266, 0.06340297311544418, -0.33155348896980286, 0.2106451392173767, 0.0932498350739479, -0.12944379448890686, 0.13095910847187042, -0.20083023607730865, 0.03306373208761215, -0.08875162899494171, -0.3386286497116089, 0.01654461771249771, -0.03641987219452858, -0.3341723084449768, 0.1692870855331421, 0.13343903422355652, -0.023515142500400543, -0.10760696977376938, 0.08567695319652557, -0.1790241301059723, 0.10865166783332825, -0.21737641096115112, 0.025183238089084625, 0.011281050741672516, 0.05665130168199539, 0.014610681682825089, 0.061499159783124924, -0.3535378873348236, -0.07602046430110931, 0.44310444593429565, -0.14331889152526855, 0.21720266342163086, 0.36072051525115967, 0.3694569170475006, -0.012750249356031418, -0.02111751027405262, -0.06284213066101074, -0.20082204043865204, -0.2637763023376465, 0.0997937023639679, -0.16457277536392212, 0.11822490394115448, -0.25517529249191284, 0.3211691379547119, 0.2677890360355377, 0.007676035165786743, 0.04782877489924431, -0.5633628368377686, -0.02433590218424797, 0.08732086420059204, -0.22629384696483612, 0.1562514305114746, 0.024935074150562286, 0.290158748626709, 0.19084466993808746, -0.4582499861717224, -0.15878672897815704, 0.07984068244695663, -0.3279726803302765, -0.035238027572631836, 0.24414849281311035, -0.0674721747636795, 0.23761551082134247, 0.06432636082172394, -0.009190401062369347, 0.1504186987876892, -0.07396306097507477, -0.07672619819641113, -0.13687899708747864, 0.19154025614261627, 0.12693709135055542, -0.3508857488632202, -0.24410183727741241, -0.26584392786026, -0.009845692664384842, -0.058221228420734406, 0.29484570026397705, 0.20542645454406738, 0.06805058568716049, -0.05750998109579086, -0.4385935962200165, 0.0840025544166565, -0.11989996582269669, 0.2224959433078766, -0.06249137222766876, 0.4093441367149353, 0.39888083934783936, 0.447846919298172, 0.004262909758836031, 0.14116182923316956, 0.09448587149381638, -0.031070955097675323, -0.28580838441848755, -0.28419867157936096, 0.41225337982177734, -0.2871612310409546, 0.024919163435697556, -0.017207114025950432, 0.04612080007791519, 0.2898405194282532, -0.1959313303232193, -0.030078917741775513, 0.18095383048057556, 0.04235716164112091, -0.3155129551887512, -0.05579044669866562, -0.17936348915100098, 0.143279567360878, 0.03144700452685356, 0.2584524154663086, 0.15815459191799164, -0.030808012932538986, -0.11128897964954376, -0.08342170715332031, 0.498031347990036, 0.4547179937362671, 0.2512062191963196, 0.19864405691623688, 0.21368764340877533, 0.4204649329185486, 0.08583205193281174, -0.08791035413742065, 0.011635370552539825, 0.046070244163274765, 0.07483775168657303, -0.1837758868932724, -0.3472899794578552, 0.33520129323005676, 0.28503334522247314, -0.5557709336280823, 0.45778176188468933, 0.29476428031921387, -0.4668194055557251, -0.1698763370513916, -0.013707764446735382, 0.3959391117095947, -0.23949365317821503, 0.10910047590732574, -0.5610407590866089, 0.24575239419937134, 0.03155292943120003, 0.02692141756415367, -0.16695861518383026, -0.190755695104599, -0.08573687821626663, 0.32538652420043945, 0.07359501719474792, -0.3355758786201477, -0.04168763756752014, 0.1398983597755432, -0.32326650619506836, -0.0663454681634903, -0.06955934315919876, 0.44626322388648987, 0.042587656527757645, -0.20232892036437988, 0.3089359700679779, 0.14128616452217102, -0.3279465436935425, -0.18854467570781708, 0.38207492232322693, 0.5318808555603027, 0.14186367392539978, 0.09023348987102509, -0.03501831740140915, 0.23077288269996643, -0.03204748407006264, -0.13042110204696655, -0.09433849900960922, 0.27423787117004395, 0.0010940209031105042, 0.39401525259017944, 0.027860375121235847, -0.03983718529343605, -0.09572666883468628, 0.05213317647576332, 0.3097028434276581, -0.0016438858583569527, 0.05625861883163452, -0.3944418430328369, 0.04426654428243637, -0.10212989151477814, 0.044971928000450134, -0.5619485378265381, 0.18058612942695618, 0.3327464163303375, -0.41331011056900024, 0.1685156524181366, 0.05519399046897888, -0.029150478541851044, -0.2848600447177887, 0.39244139194488525, 0.473865270614624, 0.28094860911369324, -0.4449922740459442, -0.4700278639793396, -0.27185022830963135, 0.3144606053829193, -0.12238115072250366, -0.0972989872097969, -0.14171938598155975, 0.07805363833904266, -0.19641545414924622, 0.17099592089653015, 0.10126388072967529, -0.0018030018545687199, -0.01188170351088047, 0.2779694199562073, -0.3184276223182678, -0.2025374323129654, 0.029668200761079788, 0.1117648184299469, -0.08629128336906433, -0.3503565192222595, 0.2288942039012909, -0.24145086109638214, -0.08878913521766663, -0.11350882053375244, -0.22169528901576996, -0.022392014041543007, -0.39001062512397766, 0.7037659883499146, 0.43229201436042786, 0.7213772535324097, -0.09662365168333054, -0.26104018092155457, -0.16033588349819183, -0.1899128556251526, -0.003588427323848009, 0.2897864878177643, 0.17884734272956848, 0.24501138925552368, 0.14399439096450806, 0.09323771297931671, -0.24917708337306976, 0.407901793718338, 0.09929825365543365, -0.10876006633043289, -0.10112050920724869, -0.013449055142700672, -0.15783044695854187, 0.10681856423616409, 0.026797883212566376, 0.08959773182868958, -0.03936184197664261, -0.024975493550300598, -0.2400888353586197, -0.30987292528152466, 0.3038034439086914, -0.1957641988992691, -0.09684395790100098, -0.2481463998556137, 0.31117135286331177, -0.07935994118452072, 0.06236053258180618, -0.13222470879554749, 0.009114205837249756, 0.25201794505119324, 0.008013490587472916, -0.4416356086730957, 0.13946445286273956, 0.0220843143761158, 0.057263512164354324, 0.0017137043178081512, 0.44377589225769043, -0.0227712020277977, -0.43744492530822754, -0.04879645258188248, -0.1948455572128296 ]
https://github.com/huggingface/datasets/issues/3902
Can't import datasets: partially initialized module 'fsspec' has no attribute 'utils'
Update: `"python3 -c "from from datasets import Dataset, DatasetDict"` works, but not if I import without the `python3 -c`
## Describe the bug Unable to import datasets ## Steps to reproduce the bug ```python from datasets import Dataset, DatasetDict ``` ## Expected results The import works without errors ## Actual results ``` AttributeError Traceback (most recent call last) <ipython-input-37-c8cfcbe62127> in <module> 11 # from tqdm import tqdm 12 # import torch ---> 13 from datasets import Dataset 14 # from transformers import Trainer, TrainingArguments, AutoModel, AutoTokenizer, AutoModelForMaskedLM, DataCollatorForLanguageModeling 15 # from sentence_transformers import SentenceTransformer ~/.local/lib/python3.8/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 ~/.local/lib/python3.8/site-packages/datasets/arrow_dataset.py in <module> 46 ) 47 ---> 48 import fsspec 49 import numpy as np 50 import pandas as pd ~/.local/lib/python3.8/site-packages/fsspec/__init__.py in <module> 10 from . import _version, caching 11 from .callbacks import Callback ---> 12 from .core import get_fs_token_paths, open, open_files, open_local 13 from .exceptions import FSTimeoutError 14 from .mapping import FSMap, get_mapper ~/.local/lib/python3.8/site-packages/fsspec/core.py in <module> 16 caches, 17 ) ---> 18 from .compression import compr 19 from .registry import filesystem, get_filesystem_class 20 from .utils import ( ~/.local/lib/python3.8/site-packages/fsspec/compression.py in <module> 68 69 ---> 70 register_compression("zip", unzip, "zip") 71 register_compression("bz2", BZ2File, "bz2") 72 ~/.local/lib/python3.8/site-packages/fsspec/compression.py in register_compression(name, callback, extensions, force) 44 45 for ext in extensions: ---> 46 if ext in fsspec.utils.compressions and not force: 47 raise ValueError( 48 "Duplicate compression file extension: %s (%s)" % (ext, name) AttributeError: partially initialized module 'fsspec' has no attribute 'utils' (most likely due to a circular import) ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.4 - Platform: Jupyter notebook - Python version: 3.8.10 - PyArrow version: 7.0.0
19
Can't import datasets: partially initialized module 'fsspec' has no attribute 'utils' ## Describe the bug Unable to import datasets ## Steps to reproduce the bug ```python from datasets import Dataset, DatasetDict ``` ## Expected results The import works without errors ## Actual results ``` AttributeError Traceback (most recent call last) <ipython-input-37-c8cfcbe62127> in <module> 11 # from tqdm import tqdm 12 # import torch ---> 13 from datasets import Dataset 14 # from transformers import Trainer, TrainingArguments, AutoModel, AutoTokenizer, AutoModelForMaskedLM, DataCollatorForLanguageModeling 15 # from sentence_transformers import SentenceTransformer ~/.local/lib/python3.8/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 ~/.local/lib/python3.8/site-packages/datasets/arrow_dataset.py in <module> 46 ) 47 ---> 48 import fsspec 49 import numpy as np 50 import pandas as pd ~/.local/lib/python3.8/site-packages/fsspec/__init__.py in <module> 10 from . import _version, caching 11 from .callbacks import Callback ---> 12 from .core import get_fs_token_paths, open, open_files, open_local 13 from .exceptions import FSTimeoutError 14 from .mapping import FSMap, get_mapper ~/.local/lib/python3.8/site-packages/fsspec/core.py in <module> 16 caches, 17 ) ---> 18 from .compression import compr 19 from .registry import filesystem, get_filesystem_class 20 from .utils import ( ~/.local/lib/python3.8/site-packages/fsspec/compression.py in <module> 68 69 ---> 70 register_compression("zip", unzip, "zip") 71 register_compression("bz2", BZ2File, "bz2") 72 ~/.local/lib/python3.8/site-packages/fsspec/compression.py in register_compression(name, callback, extensions, force) 44 45 for ext in extensions: ---> 46 if ext in fsspec.utils.compressions and not force: 47 raise ValueError( 48 "Duplicate compression file extension: %s (%s)" % (ext, name) AttributeError: partially initialized module 'fsspec' has no attribute 'utils' (most likely due to a circular import) ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.4 - Platform: Jupyter notebook - Python version: 3.8.10 - PyArrow version: 7.0.0 Update: `"python3 -c "from from datasets import Dataset, DatasetDict"` works, but not if I import without the `python3 -c`
[ -0.3171515464782715, -0.09776302427053452, -0.06043749302625656, 0.2508161664009094, 0.5410333275794983, 0.05154288560152054, 0.23068265616893768, 0.17841294407844543, 0.14518412947654724, -0.040658801794052124, -0.09140444546937943, 0.2070273607969284, -0.084994375705719, 0.04220215231180191, -0.04811275005340576, 0.08007920533418655, 0.039268046617507935, 0.15737521648406982, -0.36250394582748413, -0.1490756869316101, -0.06672461330890656, 0.10862759500741959, -0.26059067249298096, 0.022999126464128494, -0.466716468334198, -0.042055703699588776, 0.0897894874215126, 0.2693989872932434, -0.3021414279937744, -0.6751570105552673, 0.24881316721439362, -0.20236380398273468, 0.1428641974925995, 0.3091626763343811, -0.00011272792471572757, 0.07196445763111115, 0.31681162118911743, -0.04032504931092262, -0.3669929504394531, 0.05797802656888962, -0.15879760682582855, -0.26110249757766724, 0.20147602260112762, -0.1858026683330536, 0.08908775448799133, -0.2615581154823303, -0.07321896404027939, -0.5562986135482788, 0.1979614645242691, 0.6020063757896423, 0.25396668910980225, 0.2535480856895447, 0.376718670129776, -0.06563211977481842, -0.045886389911174774, -0.06528595089912415, -0.06956792622804642, -0.04196920618414879, 0.15392962098121643, -0.1513931155204773, 0.14413458108901978, -0.04410780221223831, -0.011127104982733727, 0.24274758994579315, 0.1799449920654297, -0.18483398854732513, 0.11254110932350159, -0.4305424094200134, -0.004380378872156143, 0.008901070803403854, 0.4734686017036438, -0.26163238286972046, -0.4875105023384094, -0.07161401957273483, 0.13187725841999054, -0.0342160165309906, 0.0774441584944725, 0.0017764540389180183, 0.0501030795276165, 0.1682342141866684, 0.19307708740234375, -0.09622704237699509, -0.11906039714813232, 0.26570793986320496, -0.19760432839393616, 0.04112093150615692, -0.24809175729751587, -0.03282373398542404, 0.024130165576934814, -0.2687961459159851, 0.16090503334999084, -0.18382328748703003, -0.036659497767686844, 0.28214240074157715, -0.22307954728603363, 0.04322678595781326, 0.41319891810417175, -0.3409280478954315, -0.15406987071037292, 0.30150270462036133, -0.299243301153183, -0.0061616115272045135, -0.051598694175481796, 0.2656782865524292, 0.053783681243658066, 0.07202626764774323, 0.18192285299301147, 0.46634235978126526, 0.07023472338914871, 0.0044092098250985146, -0.15646399557590485, -0.040541306138038635, -0.15212152898311615, -0.26030200719833374, 0.09620270133018494, 0.14478649199008942, 0.37065839767456055, -0.21037127077579498, -0.2649964690208435, 0.18519195914268494, 0.019285283982753754, -0.043023303151130676, -0.10792860388755798, 0.24174907803535461, -0.05323328450322151, 0.49048876762390137, 0.0674702599644661, 0.16117116808891296, -0.18243078887462616, -0.223494753241539, -0.2142261266708374, 0.17835773527622223, -0.16306696832180023, -0.2605765163898468, 0.1102810800075531, -0.09984138607978821, 0.15280334651470184, -0.08293214440345764, -0.04964061826467514, -0.21254324913024902, 0.18549475073814392, -0.3258238732814789, 0.10657598078250885, 0.28788453340530396, -0.031680282205343246, 0.34963691234588623, 0.31112372875213623, -0.26707953214645386, -0.08031046390533447, -0.058453500270843506, -0.3358180522918701, -0.2745758295059204, -0.2645736336708069, 0.271582692861557, -0.08938035368919373, -0.03860313445329666, -0.2773096263408661, -0.13826343417167664, -0.001873895525932312, 0.0657275915145874, -0.09576103836297989, -0.20593179762363434, 0.010018687695264816, -0.11577405035495758, 0.29598507285118103, 0.490772545337677, -0.28953707218170166, -0.15737900137901306, -0.13499686121940613, -0.15308181941509247, 0.10317740589380264, 0.21477645635604858, -0.14108461141586304, 0.39069005846977234, -0.26492229104042053, 0.0945349931716919, 0.48440417647361755, -0.3106129765510559, -0.31145423650741577, 0.22609683871269226, 0.2197267860174179, -0.06543944776058197, -0.030199281871318817, -0.2271599918603897, 0.1230243444442749, 0.14875702559947968, 0.22017759084701538, 0.332999587059021, 0.0629456639289856, -0.10715688019990921, -0.1610437035560608, -0.27670273184776306, 0.10841444134712219, 0.11616796255111694, 0.252284437417984, 0.012943990528583527, 0.08791626989841461, -0.06491702795028687, 0.055202726274728775, -0.05373653396964073, -0.03042011894285679, 0.5308902263641357, 0.28945422172546387, 0.15469232201576233, -0.12563128769397736, -0.5731552839279175, -0.2998692989349365, 0.31530991196632385, 0.1423247903585434, -0.06704059988260269, -0.17839540541172028, 0.12941677868366241, -0.2853480279445648, 0.12696023285388947, -0.20799003541469574, -0.20013093948364258, 0.12254360318183899, 0.07607466727495193, -0.15454870462417603, 0.10147273540496826, -0.39258813858032227, 0.0076316604390740395, -0.06900878250598907, 0.18116495013237, -0.2581489086151123, 0.3928670287132263, -0.30306217074394226, -0.18765966594219208, 0.043139830231666565, 0.13435599207878113, 0.1268024891614914, -0.10185257345438004, -0.21805664896965027, 0.11747054755687714, 0.3525499105453491, 0.09945233911275864, -0.1108863428235054, 0.18622471392154694, 0.09371235221624374, -0.4421733617782593, -0.2014678567647934, 0.4330581724643707, 0.35604187846183777, -0.03442063182592392, -0.002596065402030945, 0.06976740062236786, 0.052470818161964417, 0.15935036540031433, 0.1339358687400818, 0.17263855040073395, 0.286373496055603, -0.04151713103055954, 0.004168527200818062, -0.2934674322605133, 0.31247633695602417, 0.116340771317482, 0.23497314751148224, 0.10873205214738846, -0.0224030539393425, -0.13542252779006958, 0.19067762792110443, 0.0591118223965168, 0.0022930800914764404, -0.021951235830783844, -0.31939324736595154, 0.16619879007339478, 0.23598264157772064, -0.02356395497918129, 0.28609901666641235, 0.19343039393424988, -0.1650981605052948, 0.04640590772032738, 0.031079571694135666, 0.0036385729908943176, 0.2746044099330902, 0.16061383485794067, -0.020850826054811478, 0.26999861001968384, 0.14348088204860687, 0.22186720371246338, -0.15482386946678162, -0.3139861822128296, 0.011663133278489113, 0.33507898449897766, -0.6247823238372803, 0.12507255375385284, -0.4319002032279968, -0.09627754986286163, -0.08149651437997818, -0.004813322797417641, 0.17064064741134644, -0.2390514612197876, -0.3558325171470642, 0.18457645177841187, -0.09491457045078278, 0.1931573450565338, -0.45263564586639404, -0.05014105141162872, 0.098725825548172, -0.10246298462152481, -0.09762448072433472, -0.06425698101520538, -0.022789839655160904, 0.03417038545012474, 0.36367565393447876, 0.16349512338638306, 0.245236337184906, 0.0313413143157959, 0.044554587453603745, -0.18766166269779205, -0.2511567771434784, 0.015845652669668198, 0.20322009921073914, 0.4261605739593506, 0.16843192279338837, 0.09592774510383606, 0.2268286496400833, -0.16761338710784912, 0.30050233006477356, 0.0435410812497139, -0.14982372522354126, 0.21190835535526276, -0.07048477232456207, -0.4356119632720947, -0.10263246297836304, -0.3086390197277069, -0.2543671727180481, -0.4043402373790741, -0.018026098608970642, 0.24284975230693817, 0.15528088808059692, 0.23305925726890564, 0.10103055089712143, 0.1663682758808136, 0.044180139899253845, 0.11335045099258423, -0.021914945915341377, -0.1602955013513565, 0.5347223281860352, -0.17979571223258972, -0.44392773509025574, -0.01387760415673256, -0.2253856658935547, -0.04958037659525871, -0.0044830674305558205, -0.34044092893600464, -0.041778627783060074, -0.41509583592414856, 0.4369359314441681, -0.23528876900672913, 0.20079350471496582, 0.23944060504436493, 0.2682829797267914, -0.06723663210868835, -0.18456247448921204, -0.06681997328996658, -0.22535642981529236, 0.14146116375923157, -0.1335574984550476, -0.2373022437095642, 0.21806645393371582, -0.04648969694972038, 0.6331477165222168, 0.31701335310935974, -0.01502600684762001, 0.25921958684921265, -0.195589080452919, 0.19635207951068878, -0.1575065553188324, -0.6132757663726807, 0.0977250263094902, -0.12901154160499573, 0.07018490880727768, 0.013216815888881683, -0.1097625270485878, 0.15461720526218414, -0.08840632438659668, 0.3763571083545685, -0.18966403603553772, -0.1465119868516922, -0.00036887265741825104, -0.42130815982818604, 0.28798708319664, -0.0034612342715263367, 0.1694815754890442, 0.006279433146119118, 0.10683088004589081, 0.12514658272266388, 0.13151788711547852, -0.0973164364695549, 0.07398810982704163, -0.5398017764091492, 0.020996423438191414, 0.016362041234970093, 0.10464179515838623, 0.03518640249967575, 0.48555099964141846, 0.06590418517589569, 0.035828493535518646, 0.017657995223999023, 0.009616702795028687, 0.23147469758987427, -0.1142621859908104, 0.005787137895822525, 0.386913537979126, 0.013032358139753342, -0.6777915954589844, -0.05012882128357887, -0.18090826272964478, -0.020523661747574806, 0.1754775196313858, 0.17699405550956726, -0.22882989048957825, -0.002136276802048087, -0.10486441850662231, 0.17409303784370422, -0.1285291165113449, 0.16523754596710205, -0.20593129098415375, -0.14944878220558167, -0.5392333269119263, -0.16577771306037903, 0.15196651220321655, 0.1271957904100418, 0.23109371960163116, 0.12344084680080414, -0.46179133653640747, -0.14889146387577057, 0.2593580484390259, 0.062009718269109726, 0.16712093353271484, -0.12351681292057037, 0.4289439618587494, -0.023796774446964264, -0.1577301174402237, 0.4475746154785156, 0.746050238609314, -0.11362507939338684, -0.5447680950164795, -0.060017555952072144, -0.08744077384471893, 0.2579821050167084, 0.004747077822685242, -0.11654917895793915, 0.12495829164981842, -0.16898390650749207, -0.012255072593688965, -0.15822701156139374, 0.24201588332653046, 0.269519180059433, 0.22413404285907745, -0.13950325548648834, -0.34403887391090393, 0.1826171576976776, -0.09912410378456116, 0.03972955048084259, 0.3657597601413727, 0.2760234475135803, -0.15273942053318024, 0.35801488161087036, -0.26759934425354004, 0.6217220425605774, 0.33936792612075806, 0.04975150525569916, 0.05505133420228958, -0.2366834282875061, 0.3242892920970917, 0.08412973582744598, -0.15680019557476044, -0.23610518872737885, -0.11885246634483337, 0.0038306210190057755, -0.2843486964702606, 0.4368289113044739, -0.048340342938899994, 0.0006250292062759399, 0.22597971558570862, -0.29166939854621887, -0.07701873779296875, 0.173760324716568, 0.260698139667511, 0.2664484977722168, -0.17583045363426208, -0.16462239623069763, 0.19953829050064087, -0.10726985335350037, 0.2747100591659546, 0.0841742604970932, 0.0987074002623558, -0.056727346032857895, -0.1630982756614685, -0.29195302724838257, 0.20893362164497375, -0.35654374957084656, 0.5035456418991089, 0.3993522524833679, -0.08271489292383194, 0.37616652250289917, 0.10423840582370758, 0.07614617049694061, 0.12127764523029327, -0.21772512793540955, 0.1551395058631897, 0.19369468092918396, 0.03296337276697159, 0.017473215237259865, 0.06043621152639389, 0.51174396276474, -0.10836158692836761, -0.05664276331663132, 0.2612245976924896, -0.1502450555562973, -0.013430651277303696, 0.08428743481636047, 0.14933280646800995, 0.3192765712738037, -0.3976705074310303, -0.4220251739025116, 0.04850088804960251, 0.1735306680202484, -0.16910411417484283, 0.16930197179317474, 0.19322878122329712, -0.05794047564268112, 0.3934537172317505, 0.12736491858959198, -0.060699015855789185, 0.019433245062828064, 0.39513182640075684, -0.18167629837989807, 0.1414213627576828, 0.5099263191223145, -0.03183053806424141, -0.3732169270515442, -0.1795956790447235, 0.1953200399875641, -0.037644077092409134, -0.37818068265914917, 0.05274446681141853, -0.10866031050682068, -0.08604176342487335, -0.10286647081375122, 0.1954628974199295, 0.2338566780090332, -0.06194164603948593, 0.03633394464850426, -0.34008124470710754, -0.3147146701812744, -0.17115290462970734, -0.016301047056913376, -0.06530687212944031, -0.14821311831474304, 0.3487366735935211, -0.11560259014368057, 0.1409914493560791, -0.30561918020248413, 0.2488008737564087, -0.1831078678369522, 0.17554505169391632, 0.3181937634944916, -0.038143500685691833, -0.08204396069049835, -0.39331361651420593, 0.2110455334186554, -0.05023959279060364, -0.0873701274394989, -0.2965153157711029, -0.38338685035705566, 0.09868680685758591, 0.2363496720790863, -0.3316833972930908, 0.17906689643859863, -0.10183770954608917, -0.0952133983373642, -0.14592067897319794, -0.3483108878135681, 0.3726712167263031, -0.0686497688293457, 0.43838804960250854, 0.08193694800138474, -0.1049133762717247, -0.2645224332809448, 0.2500067353248596, -0.14474111795425415, 0.20595940947532654, -0.024176571518182755, 0.14891570806503296, 0.09480281174182892, 0.15069566667079926, -0.2641914188861847, -0.0032508298754692078, -0.10637739300727844, 0.14913728833198547, 0.37953290343284607, -0.39363133907318115, 0.19025349617004395, 0.023775769397616386, -0.033275652676820755, 0.4096049666404724, -0.46057772636413574, 0.1719651073217392, 0.24431341886520386, 0.25607818365097046, -0.3487221896648407, -0.08786126971244812, -0.08719861507415771, -0.008514734916388988, 0.12860874831676483, -0.09391089528799057, 0.053489718586206436, -0.22862018644809723, 0.18686005473136902, 0.13822966814041138, -0.08321652561426163, 0.027663426473736763, 0.2625828981399536, 0.09137847274541855, -0.048302508890628815, -0.10441619157791138, 0.2093053013086319, 0.14431233704090118, 0.08090730756521225, 0.5423405766487122, -0.039710596203804016, 0.018325844779610634, 0.07720012217760086, -0.018654417246580124, 0.00880875438451767, -0.3392186760902405, 0.1876833736896515, -0.23717689514160156, 0.035129301249980927, 0.03145644813776016, -0.008899837732315063, 0.23849725723266602, -0.0979124903678894, -0.24213629961013794, 0.3265654146671295, 0.03753427788615227, -0.05618720501661301, -0.022519901394844055, 0.07469605654478073, 0.08593975752592087, -0.10873915255069733, -0.12437643110752106, -0.014037113636732101, -0.24101854860782623, 0.2886113226413727, 0.27983248233795166, -0.3408263325691223, -0.5902041792869568, 0.013779962435364723, 0.25045979022979736, 0.23660656809806824, -0.3291141986846924, 0.2761158049106598, 0.028463564813137054, -0.1257660835981369, -0.09440985321998596, 0.39279070496559143, 0.6184647083282471, 0.18721574544906616, -0.01659739390015602, 0.12241246551275253, 0.09602870047092438, -0.24181482195854187, -0.034662894904613495, 0.20031492412090302, -0.22802093625068665, 0.23433302342891693, 0.34502530097961426, 0.17148059606552124, -0.2647436857223511, -0.24989472329616547, -0.05521668121218681, -0.1794516146183014, -0.4442252218723297, 0.542850911617279, -0.08735503256320953, -0.1593649834394455, -0.07414847612380981, 0.06949227303266525, -0.3150585889816284, -0.11971361935138702, 0.6771426200866699, 0.08323579281568527, 0.19981348514556885, -0.0850101113319397, 0.09360005706548691, 0.0008086021989583969, 0.2952710688114166, 0.40151873230934143, 0.22234901785850525, -0.20465187728405, -0.07261891663074493, -0.6258226037025452, 0.1252232939004898, -0.06084465608000755, -0.022706380113959312, 0.09532670676708221, 0.15285144746303558, -0.025804854929447174, 0.058547936379909515, 0.11271010339260101, 0.09222651273012161, 0.053285397589206696, 0.20561756193637848, -0.40701183676719666, -0.24375297129154205, -0.15650586783885956, 0.05774654448032379, -0.012777026742696762, -0.4809655249118805, 0.049941062927246094, -0.2340085357427597, 0.15047496557235718, -0.06905920803546906, -0.25045135617256165, 0.09111085534095764, 0.14442318677902222, 0.4137847125530243, 0.09770418703556061, 0.5867863893508911, -0.16918283700942993, 0.02256276272237301, -0.05988115444779396, -0.44262734055519104, -0.12077229470014572, 0.289655476808548, 0.14116811752319336, 0.3157990574836731, -0.15325838327407837, -0.23565687239170074, -0.3393156826496124, 0.1562572866678238, 0.060108743607997894, -0.10989068448543549, -0.3785388469696045, 0.36626213788986206, -0.23814639449119568, 0.2603236138820648, -0.1275015026330948, 0.1894601285457611, -0.08470530807971954, 0.20015180110931396, -0.23328198492527008, -0.592947781085968, 0.5382559299468994, -0.1991792768239975, -0.25278764963150024, -0.20841044187545776, 0.3369365334510803, 0.16195307672023773, 0.028050273656845093, -0.371259868144989, -0.12912002205848694, 0.503371000289917, -0.3103446662425995, -0.334636926651001, 0.33660832047462463, -0.15335659682750702, 0.23768062889575958, -0.12228970229625702, 0.6446775197982788, 0.009723009541630745, -0.11631220579147339, 0.24436384439468384, -0.012111887335777283 ]
https://github.com/huggingface/datasets/issues/3902
Can't import datasets: partially initialized module 'fsspec' has no attribute 'utils'
Hi @arunasank, thanks for reporting. It seems that this can be caused because you are using an old version of `fsspec`: the reason why it works if you run `python3` seems to be that `python3` runs in a Python virtual env (with an updated version of `fsspec`); whereas the error arises when you run the import from other Python virtual env (with an old version of `fsspec`). In order to fix this, you should update `fsspec` from within the "problematic" Python virtual env: ``` pip install -U "fsspec[http]>=2021.05.0"
## Describe the bug Unable to import datasets ## Steps to reproduce the bug ```python from datasets import Dataset, DatasetDict ``` ## Expected results The import works without errors ## Actual results ``` AttributeError Traceback (most recent call last) <ipython-input-37-c8cfcbe62127> in <module> 11 # from tqdm import tqdm 12 # import torch ---> 13 from datasets import Dataset 14 # from transformers import Trainer, TrainingArguments, AutoModel, AutoTokenizer, AutoModelForMaskedLM, DataCollatorForLanguageModeling 15 # from sentence_transformers import SentenceTransformer ~/.local/lib/python3.8/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 ~/.local/lib/python3.8/site-packages/datasets/arrow_dataset.py in <module> 46 ) 47 ---> 48 import fsspec 49 import numpy as np 50 import pandas as pd ~/.local/lib/python3.8/site-packages/fsspec/__init__.py in <module> 10 from . import _version, caching 11 from .callbacks import Callback ---> 12 from .core import get_fs_token_paths, open, open_files, open_local 13 from .exceptions import FSTimeoutError 14 from .mapping import FSMap, get_mapper ~/.local/lib/python3.8/site-packages/fsspec/core.py in <module> 16 caches, 17 ) ---> 18 from .compression import compr 19 from .registry import filesystem, get_filesystem_class 20 from .utils import ( ~/.local/lib/python3.8/site-packages/fsspec/compression.py in <module> 68 69 ---> 70 register_compression("zip", unzip, "zip") 71 register_compression("bz2", BZ2File, "bz2") 72 ~/.local/lib/python3.8/site-packages/fsspec/compression.py in register_compression(name, callback, extensions, force) 44 45 for ext in extensions: ---> 46 if ext in fsspec.utils.compressions and not force: 47 raise ValueError( 48 "Duplicate compression file extension: %s (%s)" % (ext, name) AttributeError: partially initialized module 'fsspec' has no attribute 'utils' (most likely due to a circular import) ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.4 - Platform: Jupyter notebook - Python version: 3.8.10 - PyArrow version: 7.0.0
88
Can't import datasets: partially initialized module 'fsspec' has no attribute 'utils' ## Describe the bug Unable to import datasets ## Steps to reproduce the bug ```python from datasets import Dataset, DatasetDict ``` ## Expected results The import works without errors ## Actual results ``` AttributeError Traceback (most recent call last) <ipython-input-37-c8cfcbe62127> in <module> 11 # from tqdm import tqdm 12 # import torch ---> 13 from datasets import Dataset 14 # from transformers import Trainer, TrainingArguments, AutoModel, AutoTokenizer, AutoModelForMaskedLM, DataCollatorForLanguageModeling 15 # from sentence_transformers import SentenceTransformer ~/.local/lib/python3.8/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 ~/.local/lib/python3.8/site-packages/datasets/arrow_dataset.py in <module> 46 ) 47 ---> 48 import fsspec 49 import numpy as np 50 import pandas as pd ~/.local/lib/python3.8/site-packages/fsspec/__init__.py in <module> 10 from . import _version, caching 11 from .callbacks import Callback ---> 12 from .core import get_fs_token_paths, open, open_files, open_local 13 from .exceptions import FSTimeoutError 14 from .mapping import FSMap, get_mapper ~/.local/lib/python3.8/site-packages/fsspec/core.py in <module> 16 caches, 17 ) ---> 18 from .compression import compr 19 from .registry import filesystem, get_filesystem_class 20 from .utils import ( ~/.local/lib/python3.8/site-packages/fsspec/compression.py in <module> 68 69 ---> 70 register_compression("zip", unzip, "zip") 71 register_compression("bz2", BZ2File, "bz2") 72 ~/.local/lib/python3.8/site-packages/fsspec/compression.py in register_compression(name, callback, extensions, force) 44 45 for ext in extensions: ---> 46 if ext in fsspec.utils.compressions and not force: 47 raise ValueError( 48 "Duplicate compression file extension: %s (%s)" % (ext, name) AttributeError: partially initialized module 'fsspec' has no attribute 'utils' (most likely due to a circular import) ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.4 - Platform: Jupyter notebook - Python version: 3.8.10 - PyArrow version: 7.0.0 Hi @arunasank, thanks for reporting. It seems that this can be caused because you are using an old version of `fsspec`: the reason why it works if you run `python3` seems to be that `python3` runs in a Python virtual env (with an updated version of `fsspec`); whereas the error arises when you run the import from other Python virtual env (with an old version of `fsspec`). In order to fix this, you should update `fsspec` from within the "problematic" Python virtual env: ``` pip install -U "fsspec[http]>=2021.05.0"
[ -0.3171515464782715, -0.09776302427053452, -0.06043749302625656, 0.2508161664009094, 0.5410333275794983, 0.05154288560152054, 0.23068265616893768, 0.17841294407844543, 0.14518412947654724, -0.040658801794052124, -0.09140444546937943, 0.2070273607969284, -0.084994375705719, 0.04220215231180191, -0.04811275005340576, 0.08007920533418655, 0.039268046617507935, 0.15737521648406982, -0.36250394582748413, -0.1490756869316101, -0.06672461330890656, 0.10862759500741959, -0.26059067249298096, 0.022999126464128494, -0.466716468334198, -0.042055703699588776, 0.0897894874215126, 0.2693989872932434, -0.3021414279937744, -0.6751570105552673, 0.24881316721439362, -0.20236380398273468, 0.1428641974925995, 0.3091626763343811, -0.00011272792471572757, 0.07196445763111115, 0.31681162118911743, -0.04032504931092262, -0.3669929504394531, 0.05797802656888962, -0.15879760682582855, -0.26110249757766724, 0.20147602260112762, -0.1858026683330536, 0.08908775448799133, -0.2615581154823303, -0.07321896404027939, -0.5562986135482788, 0.1979614645242691, 0.6020063757896423, 0.25396668910980225, 0.2535480856895447, 0.376718670129776, -0.06563211977481842, -0.045886389911174774, -0.06528595089912415, -0.06956792622804642, -0.04196920618414879, 0.15392962098121643, -0.1513931155204773, 0.14413458108901978, -0.04410780221223831, -0.011127104982733727, 0.24274758994579315, 0.1799449920654297, -0.18483398854732513, 0.11254110932350159, -0.4305424094200134, -0.004380378872156143, 0.008901070803403854, 0.4734686017036438, -0.26163238286972046, -0.4875105023384094, -0.07161401957273483, 0.13187725841999054, -0.0342160165309906, 0.0774441584944725, 0.0017764540389180183, 0.0501030795276165, 0.1682342141866684, 0.19307708740234375, -0.09622704237699509, -0.11906039714813232, 0.26570793986320496, -0.19760432839393616, 0.04112093150615692, -0.24809175729751587, -0.03282373398542404, 0.024130165576934814, -0.2687961459159851, 0.16090503334999084, -0.18382328748703003, -0.036659497767686844, 0.28214240074157715, -0.22307954728603363, 0.04322678595781326, 0.41319891810417175, -0.3409280478954315, -0.15406987071037292, 0.30150270462036133, -0.299243301153183, -0.0061616115272045135, -0.051598694175481796, 0.2656782865524292, 0.053783681243658066, 0.07202626764774323, 0.18192285299301147, 0.46634235978126526, 0.07023472338914871, 0.0044092098250985146, -0.15646399557590485, -0.040541306138038635, -0.15212152898311615, -0.26030200719833374, 0.09620270133018494, 0.14478649199008942, 0.37065839767456055, -0.21037127077579498, -0.2649964690208435, 0.18519195914268494, 0.019285283982753754, -0.043023303151130676, -0.10792860388755798, 0.24174907803535461, -0.05323328450322151, 0.49048876762390137, 0.0674702599644661, 0.16117116808891296, -0.18243078887462616, -0.223494753241539, -0.2142261266708374, 0.17835773527622223, -0.16306696832180023, -0.2605765163898468, 0.1102810800075531, -0.09984138607978821, 0.15280334651470184, -0.08293214440345764, -0.04964061826467514, -0.21254324913024902, 0.18549475073814392, -0.3258238732814789, 0.10657598078250885, 0.28788453340530396, -0.031680282205343246, 0.34963691234588623, 0.31112372875213623, -0.26707953214645386, -0.08031046390533447, -0.058453500270843506, -0.3358180522918701, -0.2745758295059204, -0.2645736336708069, 0.271582692861557, -0.08938035368919373, -0.03860313445329666, -0.2773096263408661, -0.13826343417167664, -0.001873895525932312, 0.0657275915145874, -0.09576103836297989, -0.20593179762363434, 0.010018687695264816, -0.11577405035495758, 0.29598507285118103, 0.490772545337677, -0.28953707218170166, -0.15737900137901306, -0.13499686121940613, -0.15308181941509247, 0.10317740589380264, 0.21477645635604858, -0.14108461141586304, 0.39069005846977234, -0.26492229104042053, 0.0945349931716919, 0.48440417647361755, -0.3106129765510559, -0.31145423650741577, 0.22609683871269226, 0.2197267860174179, -0.06543944776058197, -0.030199281871318817, -0.2271599918603897, 0.1230243444442749, 0.14875702559947968, 0.22017759084701538, 0.332999587059021, 0.0629456639289856, -0.10715688019990921, -0.1610437035560608, -0.27670273184776306, 0.10841444134712219, 0.11616796255111694, 0.252284437417984, 0.012943990528583527, 0.08791626989841461, -0.06491702795028687, 0.055202726274728775, -0.05373653396964073, -0.03042011894285679, 0.5308902263641357, 0.28945422172546387, 0.15469232201576233, -0.12563128769397736, -0.5731552839279175, -0.2998692989349365, 0.31530991196632385, 0.1423247903585434, -0.06704059988260269, -0.17839540541172028, 0.12941677868366241, -0.2853480279445648, 0.12696023285388947, -0.20799003541469574, -0.20013093948364258, 0.12254360318183899, 0.07607466727495193, -0.15454870462417603, 0.10147273540496826, -0.39258813858032227, 0.0076316604390740395, -0.06900878250598907, 0.18116495013237, -0.2581489086151123, 0.3928670287132263, -0.30306217074394226, -0.18765966594219208, 0.043139830231666565, 0.13435599207878113, 0.1268024891614914, -0.10185257345438004, -0.21805664896965027, 0.11747054755687714, 0.3525499105453491, 0.09945233911275864, -0.1108863428235054, 0.18622471392154694, 0.09371235221624374, -0.4421733617782593, -0.2014678567647934, 0.4330581724643707, 0.35604187846183777, -0.03442063182592392, -0.002596065402030945, 0.06976740062236786, 0.052470818161964417, 0.15935036540031433, 0.1339358687400818, 0.17263855040073395, 0.286373496055603, -0.04151713103055954, 0.004168527200818062, -0.2934674322605133, 0.31247633695602417, 0.116340771317482, 0.23497314751148224, 0.10873205214738846, -0.0224030539393425, -0.13542252779006958, 0.19067762792110443, 0.0591118223965168, 0.0022930800914764404, -0.021951235830783844, -0.31939324736595154, 0.16619879007339478, 0.23598264157772064, -0.02356395497918129, 0.28609901666641235, 0.19343039393424988, -0.1650981605052948, 0.04640590772032738, 0.031079571694135666, 0.0036385729908943176, 0.2746044099330902, 0.16061383485794067, -0.020850826054811478, 0.26999861001968384, 0.14348088204860687, 0.22186720371246338, -0.15482386946678162, -0.3139861822128296, 0.011663133278489113, 0.33507898449897766, -0.6247823238372803, 0.12507255375385284, -0.4319002032279968, -0.09627754986286163, -0.08149651437997818, -0.004813322797417641, 0.17064064741134644, -0.2390514612197876, -0.3558325171470642, 0.18457645177841187, -0.09491457045078278, 0.1931573450565338, -0.45263564586639404, -0.05014105141162872, 0.098725825548172, -0.10246298462152481, -0.09762448072433472, -0.06425698101520538, -0.022789839655160904, 0.03417038545012474, 0.36367565393447876, 0.16349512338638306, 0.245236337184906, 0.0313413143157959, 0.044554587453603745, -0.18766166269779205, -0.2511567771434784, 0.015845652669668198, 0.20322009921073914, 0.4261605739593506, 0.16843192279338837, 0.09592774510383606, 0.2268286496400833, -0.16761338710784912, 0.30050233006477356, 0.0435410812497139, -0.14982372522354126, 0.21190835535526276, -0.07048477232456207, -0.4356119632720947, -0.10263246297836304, -0.3086390197277069, -0.2543671727180481, -0.4043402373790741, -0.018026098608970642, 0.24284975230693817, 0.15528088808059692, 0.23305925726890564, 0.10103055089712143, 0.1663682758808136, 0.044180139899253845, 0.11335045099258423, -0.021914945915341377, -0.1602955013513565, 0.5347223281860352, -0.17979571223258972, -0.44392773509025574, -0.01387760415673256, -0.2253856658935547, -0.04958037659525871, -0.0044830674305558205, -0.34044092893600464, -0.041778627783060074, -0.41509583592414856, 0.4369359314441681, -0.23528876900672913, 0.20079350471496582, 0.23944060504436493, 0.2682829797267914, -0.06723663210868835, -0.18456247448921204, -0.06681997328996658, -0.22535642981529236, 0.14146116375923157, -0.1335574984550476, -0.2373022437095642, 0.21806645393371582, -0.04648969694972038, 0.6331477165222168, 0.31701335310935974, -0.01502600684762001, 0.25921958684921265, -0.195589080452919, 0.19635207951068878, -0.1575065553188324, -0.6132757663726807, 0.0977250263094902, -0.12901154160499573, 0.07018490880727768, 0.013216815888881683, -0.1097625270485878, 0.15461720526218414, -0.08840632438659668, 0.3763571083545685, -0.18966403603553772, -0.1465119868516922, -0.00036887265741825104, -0.42130815982818604, 0.28798708319664, -0.0034612342715263367, 0.1694815754890442, 0.006279433146119118, 0.10683088004589081, 0.12514658272266388, 0.13151788711547852, -0.0973164364695549, 0.07398810982704163, -0.5398017764091492, 0.020996423438191414, 0.016362041234970093, 0.10464179515838623, 0.03518640249967575, 0.48555099964141846, 0.06590418517589569, 0.035828493535518646, 0.017657995223999023, 0.009616702795028687, 0.23147469758987427, -0.1142621859908104, 0.005787137895822525, 0.386913537979126, 0.013032358139753342, -0.6777915954589844, -0.05012882128357887, -0.18090826272964478, -0.020523661747574806, 0.1754775196313858, 0.17699405550956726, -0.22882989048957825, -0.002136276802048087, -0.10486441850662231, 0.17409303784370422, -0.1285291165113449, 0.16523754596710205, -0.20593129098415375, -0.14944878220558167, -0.5392333269119263, -0.16577771306037903, 0.15196651220321655, 0.1271957904100418, 0.23109371960163116, 0.12344084680080414, -0.46179133653640747, -0.14889146387577057, 0.2593580484390259, 0.062009718269109726, 0.16712093353271484, -0.12351681292057037, 0.4289439618587494, -0.023796774446964264, -0.1577301174402237, 0.4475746154785156, 0.746050238609314, -0.11362507939338684, -0.5447680950164795, -0.060017555952072144, -0.08744077384471893, 0.2579821050167084, 0.004747077822685242, -0.11654917895793915, 0.12495829164981842, -0.16898390650749207, -0.012255072593688965, -0.15822701156139374, 0.24201588332653046, 0.269519180059433, 0.22413404285907745, -0.13950325548648834, -0.34403887391090393, 0.1826171576976776, -0.09912410378456116, 0.03972955048084259, 0.3657597601413727, 0.2760234475135803, -0.15273942053318024, 0.35801488161087036, -0.26759934425354004, 0.6217220425605774, 0.33936792612075806, 0.04975150525569916, 0.05505133420228958, -0.2366834282875061, 0.3242892920970917, 0.08412973582744598, -0.15680019557476044, -0.23610518872737885, -0.11885246634483337, 0.0038306210190057755, -0.2843486964702606, 0.4368289113044739, -0.048340342938899994, 0.0006250292062759399, 0.22597971558570862, -0.29166939854621887, -0.07701873779296875, 0.173760324716568, 0.260698139667511, 0.2664484977722168, -0.17583045363426208, -0.16462239623069763, 0.19953829050064087, -0.10726985335350037, 0.2747100591659546, 0.0841742604970932, 0.0987074002623558, -0.056727346032857895, -0.1630982756614685, -0.29195302724838257, 0.20893362164497375, -0.35654374957084656, 0.5035456418991089, 0.3993522524833679, -0.08271489292383194, 0.37616652250289917, 0.10423840582370758, 0.07614617049694061, 0.12127764523029327, -0.21772512793540955, 0.1551395058631897, 0.19369468092918396, 0.03296337276697159, 0.017473215237259865, 0.06043621152639389, 0.51174396276474, -0.10836158692836761, -0.05664276331663132, 0.2612245976924896, -0.1502450555562973, -0.013430651277303696, 0.08428743481636047, 0.14933280646800995, 0.3192765712738037, -0.3976705074310303, -0.4220251739025116, 0.04850088804960251, 0.1735306680202484, -0.16910411417484283, 0.16930197179317474, 0.19322878122329712, -0.05794047564268112, 0.3934537172317505, 0.12736491858959198, -0.060699015855789185, 0.019433245062828064, 0.39513182640075684, -0.18167629837989807, 0.1414213627576828, 0.5099263191223145, -0.03183053806424141, -0.3732169270515442, -0.1795956790447235, 0.1953200399875641, -0.037644077092409134, -0.37818068265914917, 0.05274446681141853, -0.10866031050682068, -0.08604176342487335, -0.10286647081375122, 0.1954628974199295, 0.2338566780090332, -0.06194164603948593, 0.03633394464850426, -0.34008124470710754, -0.3147146701812744, -0.17115290462970734, -0.016301047056913376, -0.06530687212944031, -0.14821311831474304, 0.3487366735935211, -0.11560259014368057, 0.1409914493560791, -0.30561918020248413, 0.2488008737564087, -0.1831078678369522, 0.17554505169391632, 0.3181937634944916, -0.038143500685691833, -0.08204396069049835, -0.39331361651420593, 0.2110455334186554, -0.05023959279060364, -0.0873701274394989, -0.2965153157711029, -0.38338685035705566, 0.09868680685758591, 0.2363496720790863, -0.3316833972930908, 0.17906689643859863, -0.10183770954608917, -0.0952133983373642, -0.14592067897319794, -0.3483108878135681, 0.3726712167263031, -0.0686497688293457, 0.43838804960250854, 0.08193694800138474, -0.1049133762717247, -0.2645224332809448, 0.2500067353248596, -0.14474111795425415, 0.20595940947532654, -0.024176571518182755, 0.14891570806503296, 0.09480281174182892, 0.15069566667079926, -0.2641914188861847, -0.0032508298754692078, -0.10637739300727844, 0.14913728833198547, 0.37953290343284607, -0.39363133907318115, 0.19025349617004395, 0.023775769397616386, -0.033275652676820755, 0.4096049666404724, -0.46057772636413574, 0.1719651073217392, 0.24431341886520386, 0.25607818365097046, -0.3487221896648407, -0.08786126971244812, -0.08719861507415771, -0.008514734916388988, 0.12860874831676483, -0.09391089528799057, 0.053489718586206436, -0.22862018644809723, 0.18686005473136902, 0.13822966814041138, -0.08321652561426163, 0.027663426473736763, 0.2625828981399536, 0.09137847274541855, -0.048302508890628815, -0.10441619157791138, 0.2093053013086319, 0.14431233704090118, 0.08090730756521225, 0.5423405766487122, -0.039710596203804016, 0.018325844779610634, 0.07720012217760086, -0.018654417246580124, 0.00880875438451767, -0.3392186760902405, 0.1876833736896515, -0.23717689514160156, 0.035129301249980927, 0.03145644813776016, -0.008899837732315063, 0.23849725723266602, -0.0979124903678894, -0.24213629961013794, 0.3265654146671295, 0.03753427788615227, -0.05618720501661301, -0.022519901394844055, 0.07469605654478073, 0.08593975752592087, -0.10873915255069733, -0.12437643110752106, -0.014037113636732101, -0.24101854860782623, 0.2886113226413727, 0.27983248233795166, -0.3408263325691223, -0.5902041792869568, 0.013779962435364723, 0.25045979022979736, 0.23660656809806824, -0.3291141986846924, 0.2761158049106598, 0.028463564813137054, -0.1257660835981369, -0.09440985321998596, 0.39279070496559143, 0.6184647083282471, 0.18721574544906616, -0.01659739390015602, 0.12241246551275253, 0.09602870047092438, -0.24181482195854187, -0.034662894904613495, 0.20031492412090302, -0.22802093625068665, 0.23433302342891693, 0.34502530097961426, 0.17148059606552124, -0.2647436857223511, -0.24989472329616547, -0.05521668121218681, -0.1794516146183014, -0.4442252218723297, 0.542850911617279, -0.08735503256320953, -0.1593649834394455, -0.07414847612380981, 0.06949227303266525, -0.3150585889816284, -0.11971361935138702, 0.6771426200866699, 0.08323579281568527, 0.19981348514556885, -0.0850101113319397, 0.09360005706548691, 0.0008086021989583969, 0.2952710688114166, 0.40151873230934143, 0.22234901785850525, -0.20465187728405, -0.07261891663074493, -0.6258226037025452, 0.1252232939004898, -0.06084465608000755, -0.022706380113959312, 0.09532670676708221, 0.15285144746303558, -0.025804854929447174, 0.058547936379909515, 0.11271010339260101, 0.09222651273012161, 0.053285397589206696, 0.20561756193637848, -0.40701183676719666, -0.24375297129154205, -0.15650586783885956, 0.05774654448032379, -0.012777026742696762, -0.4809655249118805, 0.049941062927246094, -0.2340085357427597, 0.15047496557235718, -0.06905920803546906, -0.25045135617256165, 0.09111085534095764, 0.14442318677902222, 0.4137847125530243, 0.09770418703556061, 0.5867863893508911, -0.16918283700942993, 0.02256276272237301, -0.05988115444779396, -0.44262734055519104, -0.12077229470014572, 0.289655476808548, 0.14116811752319336, 0.3157990574836731, -0.15325838327407837, -0.23565687239170074, -0.3393156826496124, 0.1562572866678238, 0.060108743607997894, -0.10989068448543549, -0.3785388469696045, 0.36626213788986206, -0.23814639449119568, 0.2603236138820648, -0.1275015026330948, 0.1894601285457611, -0.08470530807971954, 0.20015180110931396, -0.23328198492527008, -0.592947781085968, 0.5382559299468994, -0.1991792768239975, -0.25278764963150024, -0.20841044187545776, 0.3369365334510803, 0.16195307672023773, 0.028050273656845093, -0.371259868144989, -0.12912002205848694, 0.503371000289917, -0.3103446662425995, -0.334636926651001, 0.33660832047462463, -0.15335659682750702, 0.23768062889575958, -0.12228970229625702, 0.6446775197982788, 0.009723009541630745, -0.11631220579147339, 0.24436384439468384, -0.012111887335777283 ]
https://github.com/huggingface/datasets/issues/3902
Can't import datasets: partially initialized module 'fsspec' has no attribute 'utils'
from lightgbm import LGBMModel,LGBMClassifier, plot_importance after importing lib getting (partially initialized module 'fsspec' has no attribute 'utils' (most likely due to a circular import) error, can help me
## Describe the bug Unable to import datasets ## Steps to reproduce the bug ```python from datasets import Dataset, DatasetDict ``` ## Expected results The import works without errors ## Actual results ``` AttributeError Traceback (most recent call last) <ipython-input-37-c8cfcbe62127> in <module> 11 # from tqdm import tqdm 12 # import torch ---> 13 from datasets import Dataset 14 # from transformers import Trainer, TrainingArguments, AutoModel, AutoTokenizer, AutoModelForMaskedLM, DataCollatorForLanguageModeling 15 # from sentence_transformers import SentenceTransformer ~/.local/lib/python3.8/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 ~/.local/lib/python3.8/site-packages/datasets/arrow_dataset.py in <module> 46 ) 47 ---> 48 import fsspec 49 import numpy as np 50 import pandas as pd ~/.local/lib/python3.8/site-packages/fsspec/__init__.py in <module> 10 from . import _version, caching 11 from .callbacks import Callback ---> 12 from .core import get_fs_token_paths, open, open_files, open_local 13 from .exceptions import FSTimeoutError 14 from .mapping import FSMap, get_mapper ~/.local/lib/python3.8/site-packages/fsspec/core.py in <module> 16 caches, 17 ) ---> 18 from .compression import compr 19 from .registry import filesystem, get_filesystem_class 20 from .utils import ( ~/.local/lib/python3.8/site-packages/fsspec/compression.py in <module> 68 69 ---> 70 register_compression("zip", unzip, "zip") 71 register_compression("bz2", BZ2File, "bz2") 72 ~/.local/lib/python3.8/site-packages/fsspec/compression.py in register_compression(name, callback, extensions, force) 44 45 for ext in extensions: ---> 46 if ext in fsspec.utils.compressions and not force: 47 raise ValueError( 48 "Duplicate compression file extension: %s (%s)" % (ext, name) AttributeError: partially initialized module 'fsspec' has no attribute 'utils' (most likely due to a circular import) ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.4 - Platform: Jupyter notebook - Python version: 3.8.10 - PyArrow version: 7.0.0
28
Can't import datasets: partially initialized module 'fsspec' has no attribute 'utils' ## Describe the bug Unable to import datasets ## Steps to reproduce the bug ```python from datasets import Dataset, DatasetDict ``` ## Expected results The import works without errors ## Actual results ``` AttributeError Traceback (most recent call last) <ipython-input-37-c8cfcbe62127> in <module> 11 # from tqdm import tqdm 12 # import torch ---> 13 from datasets import Dataset 14 # from transformers import Trainer, TrainingArguments, AutoModel, AutoTokenizer, AutoModelForMaskedLM, DataCollatorForLanguageModeling 15 # from sentence_transformers import SentenceTransformer ~/.local/lib/python3.8/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 ~/.local/lib/python3.8/site-packages/datasets/arrow_dataset.py in <module> 46 ) 47 ---> 48 import fsspec 49 import numpy as np 50 import pandas as pd ~/.local/lib/python3.8/site-packages/fsspec/__init__.py in <module> 10 from . import _version, caching 11 from .callbacks import Callback ---> 12 from .core import get_fs_token_paths, open, open_files, open_local 13 from .exceptions import FSTimeoutError 14 from .mapping import FSMap, get_mapper ~/.local/lib/python3.8/site-packages/fsspec/core.py in <module> 16 caches, 17 ) ---> 18 from .compression import compr 19 from .registry import filesystem, get_filesystem_class 20 from .utils import ( ~/.local/lib/python3.8/site-packages/fsspec/compression.py in <module> 68 69 ---> 70 register_compression("zip", unzip, "zip") 71 register_compression("bz2", BZ2File, "bz2") 72 ~/.local/lib/python3.8/site-packages/fsspec/compression.py in register_compression(name, callback, extensions, force) 44 45 for ext in extensions: ---> 46 if ext in fsspec.utils.compressions and not force: 47 raise ValueError( 48 "Duplicate compression file extension: %s (%s)" % (ext, name) AttributeError: partially initialized module 'fsspec' has no attribute 'utils' (most likely due to a circular import) ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.4 - Platform: Jupyter notebook - Python version: 3.8.10 - PyArrow version: 7.0.0 from lightgbm import LGBMModel,LGBMClassifier, plot_importance after importing lib getting (partially initialized module 'fsspec' has no attribute 'utils' (most likely due to a circular import) error, can help me
[ -0.3171515464782715, -0.09776302427053452, -0.06043749302625656, 0.2508161664009094, 0.5410333275794983, 0.05154288560152054, 0.23068265616893768, 0.17841294407844543, 0.14518412947654724, -0.040658801794052124, -0.09140444546937943, 0.2070273607969284, -0.084994375705719, 0.04220215231180191, -0.04811275005340576, 0.08007920533418655, 0.039268046617507935, 0.15737521648406982, -0.36250394582748413, -0.1490756869316101, -0.06672461330890656, 0.10862759500741959, -0.26059067249298096, 0.022999126464128494, -0.466716468334198, -0.042055703699588776, 0.0897894874215126, 0.2693989872932434, -0.3021414279937744, -0.6751570105552673, 0.24881316721439362, -0.20236380398273468, 0.1428641974925995, 0.3091626763343811, -0.00011272792471572757, 0.07196445763111115, 0.31681162118911743, -0.04032504931092262, -0.3669929504394531, 0.05797802656888962, -0.15879760682582855, -0.26110249757766724, 0.20147602260112762, -0.1858026683330536, 0.08908775448799133, -0.2615581154823303, -0.07321896404027939, -0.5562986135482788, 0.1979614645242691, 0.6020063757896423, 0.25396668910980225, 0.2535480856895447, 0.376718670129776, -0.06563211977481842, -0.045886389911174774, -0.06528595089912415, -0.06956792622804642, -0.04196920618414879, 0.15392962098121643, -0.1513931155204773, 0.14413458108901978, -0.04410780221223831, -0.011127104982733727, 0.24274758994579315, 0.1799449920654297, -0.18483398854732513, 0.11254110932350159, -0.4305424094200134, -0.004380378872156143, 0.008901070803403854, 0.4734686017036438, -0.26163238286972046, -0.4875105023384094, -0.07161401957273483, 0.13187725841999054, -0.0342160165309906, 0.0774441584944725, 0.0017764540389180183, 0.0501030795276165, 0.1682342141866684, 0.19307708740234375, -0.09622704237699509, -0.11906039714813232, 0.26570793986320496, -0.19760432839393616, 0.04112093150615692, -0.24809175729751587, -0.03282373398542404, 0.024130165576934814, -0.2687961459159851, 0.16090503334999084, -0.18382328748703003, -0.036659497767686844, 0.28214240074157715, -0.22307954728603363, 0.04322678595781326, 0.41319891810417175, -0.3409280478954315, -0.15406987071037292, 0.30150270462036133, -0.299243301153183, -0.0061616115272045135, -0.051598694175481796, 0.2656782865524292, 0.053783681243658066, 0.07202626764774323, 0.18192285299301147, 0.46634235978126526, 0.07023472338914871, 0.0044092098250985146, -0.15646399557590485, -0.040541306138038635, -0.15212152898311615, -0.26030200719833374, 0.09620270133018494, 0.14478649199008942, 0.37065839767456055, -0.21037127077579498, -0.2649964690208435, 0.18519195914268494, 0.019285283982753754, -0.043023303151130676, -0.10792860388755798, 0.24174907803535461, -0.05323328450322151, 0.49048876762390137, 0.0674702599644661, 0.16117116808891296, -0.18243078887462616, -0.223494753241539, -0.2142261266708374, 0.17835773527622223, -0.16306696832180023, -0.2605765163898468, 0.1102810800075531, -0.09984138607978821, 0.15280334651470184, -0.08293214440345764, -0.04964061826467514, -0.21254324913024902, 0.18549475073814392, -0.3258238732814789, 0.10657598078250885, 0.28788453340530396, -0.031680282205343246, 0.34963691234588623, 0.31112372875213623, -0.26707953214645386, -0.08031046390533447, -0.058453500270843506, -0.3358180522918701, -0.2745758295059204, -0.2645736336708069, 0.271582692861557, -0.08938035368919373, -0.03860313445329666, -0.2773096263408661, -0.13826343417167664, -0.001873895525932312, 0.0657275915145874, -0.09576103836297989, -0.20593179762363434, 0.010018687695264816, -0.11577405035495758, 0.29598507285118103, 0.490772545337677, -0.28953707218170166, -0.15737900137901306, -0.13499686121940613, -0.15308181941509247, 0.10317740589380264, 0.21477645635604858, -0.14108461141586304, 0.39069005846977234, -0.26492229104042053, 0.0945349931716919, 0.48440417647361755, -0.3106129765510559, -0.31145423650741577, 0.22609683871269226, 0.2197267860174179, -0.06543944776058197, -0.030199281871318817, -0.2271599918603897, 0.1230243444442749, 0.14875702559947968, 0.22017759084701538, 0.332999587059021, 0.0629456639289856, -0.10715688019990921, -0.1610437035560608, -0.27670273184776306, 0.10841444134712219, 0.11616796255111694, 0.252284437417984, 0.012943990528583527, 0.08791626989841461, -0.06491702795028687, 0.055202726274728775, -0.05373653396964073, -0.03042011894285679, 0.5308902263641357, 0.28945422172546387, 0.15469232201576233, -0.12563128769397736, -0.5731552839279175, -0.2998692989349365, 0.31530991196632385, 0.1423247903585434, -0.06704059988260269, -0.17839540541172028, 0.12941677868366241, -0.2853480279445648, 0.12696023285388947, -0.20799003541469574, -0.20013093948364258, 0.12254360318183899, 0.07607466727495193, -0.15454870462417603, 0.10147273540496826, -0.39258813858032227, 0.0076316604390740395, -0.06900878250598907, 0.18116495013237, -0.2581489086151123, 0.3928670287132263, -0.30306217074394226, -0.18765966594219208, 0.043139830231666565, 0.13435599207878113, 0.1268024891614914, -0.10185257345438004, -0.21805664896965027, 0.11747054755687714, 0.3525499105453491, 0.09945233911275864, -0.1108863428235054, 0.18622471392154694, 0.09371235221624374, -0.4421733617782593, -0.2014678567647934, 0.4330581724643707, 0.35604187846183777, -0.03442063182592392, -0.002596065402030945, 0.06976740062236786, 0.052470818161964417, 0.15935036540031433, 0.1339358687400818, 0.17263855040073395, 0.286373496055603, -0.04151713103055954, 0.004168527200818062, -0.2934674322605133, 0.31247633695602417, 0.116340771317482, 0.23497314751148224, 0.10873205214738846, -0.0224030539393425, -0.13542252779006958, 0.19067762792110443, 0.0591118223965168, 0.0022930800914764404, -0.021951235830783844, -0.31939324736595154, 0.16619879007339478, 0.23598264157772064, -0.02356395497918129, 0.28609901666641235, 0.19343039393424988, -0.1650981605052948, 0.04640590772032738, 0.031079571694135666, 0.0036385729908943176, 0.2746044099330902, 0.16061383485794067, -0.020850826054811478, 0.26999861001968384, 0.14348088204860687, 0.22186720371246338, -0.15482386946678162, -0.3139861822128296, 0.011663133278489113, 0.33507898449897766, -0.6247823238372803, 0.12507255375385284, -0.4319002032279968, -0.09627754986286163, -0.08149651437997818, -0.004813322797417641, 0.17064064741134644, -0.2390514612197876, -0.3558325171470642, 0.18457645177841187, -0.09491457045078278, 0.1931573450565338, -0.45263564586639404, -0.05014105141162872, 0.098725825548172, -0.10246298462152481, -0.09762448072433472, -0.06425698101520538, -0.022789839655160904, 0.03417038545012474, 0.36367565393447876, 0.16349512338638306, 0.245236337184906, 0.0313413143157959, 0.044554587453603745, -0.18766166269779205, -0.2511567771434784, 0.015845652669668198, 0.20322009921073914, 0.4261605739593506, 0.16843192279338837, 0.09592774510383606, 0.2268286496400833, -0.16761338710784912, 0.30050233006477356, 0.0435410812497139, -0.14982372522354126, 0.21190835535526276, -0.07048477232456207, -0.4356119632720947, -0.10263246297836304, -0.3086390197277069, -0.2543671727180481, -0.4043402373790741, -0.018026098608970642, 0.24284975230693817, 0.15528088808059692, 0.23305925726890564, 0.10103055089712143, 0.1663682758808136, 0.044180139899253845, 0.11335045099258423, -0.021914945915341377, -0.1602955013513565, 0.5347223281860352, -0.17979571223258972, -0.44392773509025574, -0.01387760415673256, -0.2253856658935547, -0.04958037659525871, -0.0044830674305558205, -0.34044092893600464, -0.041778627783060074, -0.41509583592414856, 0.4369359314441681, -0.23528876900672913, 0.20079350471496582, 0.23944060504436493, 0.2682829797267914, -0.06723663210868835, -0.18456247448921204, -0.06681997328996658, -0.22535642981529236, 0.14146116375923157, -0.1335574984550476, -0.2373022437095642, 0.21806645393371582, -0.04648969694972038, 0.6331477165222168, 0.31701335310935974, -0.01502600684762001, 0.25921958684921265, -0.195589080452919, 0.19635207951068878, -0.1575065553188324, -0.6132757663726807, 0.0977250263094902, -0.12901154160499573, 0.07018490880727768, 0.013216815888881683, -0.1097625270485878, 0.15461720526218414, -0.08840632438659668, 0.3763571083545685, -0.18966403603553772, -0.1465119868516922, -0.00036887265741825104, -0.42130815982818604, 0.28798708319664, -0.0034612342715263367, 0.1694815754890442, 0.006279433146119118, 0.10683088004589081, 0.12514658272266388, 0.13151788711547852, -0.0973164364695549, 0.07398810982704163, -0.5398017764091492, 0.020996423438191414, 0.016362041234970093, 0.10464179515838623, 0.03518640249967575, 0.48555099964141846, 0.06590418517589569, 0.035828493535518646, 0.017657995223999023, 0.009616702795028687, 0.23147469758987427, -0.1142621859908104, 0.005787137895822525, 0.386913537979126, 0.013032358139753342, -0.6777915954589844, -0.05012882128357887, -0.18090826272964478, -0.020523661747574806, 0.1754775196313858, 0.17699405550956726, -0.22882989048957825, -0.002136276802048087, -0.10486441850662231, 0.17409303784370422, -0.1285291165113449, 0.16523754596710205, -0.20593129098415375, -0.14944878220558167, -0.5392333269119263, -0.16577771306037903, 0.15196651220321655, 0.1271957904100418, 0.23109371960163116, 0.12344084680080414, -0.46179133653640747, -0.14889146387577057, 0.2593580484390259, 0.062009718269109726, 0.16712093353271484, -0.12351681292057037, 0.4289439618587494, -0.023796774446964264, -0.1577301174402237, 0.4475746154785156, 0.746050238609314, -0.11362507939338684, -0.5447680950164795, -0.060017555952072144, -0.08744077384471893, 0.2579821050167084, 0.004747077822685242, -0.11654917895793915, 0.12495829164981842, -0.16898390650749207, -0.012255072593688965, -0.15822701156139374, 0.24201588332653046, 0.269519180059433, 0.22413404285907745, -0.13950325548648834, -0.34403887391090393, 0.1826171576976776, -0.09912410378456116, 0.03972955048084259, 0.3657597601413727, 0.2760234475135803, -0.15273942053318024, 0.35801488161087036, -0.26759934425354004, 0.6217220425605774, 0.33936792612075806, 0.04975150525569916, 0.05505133420228958, -0.2366834282875061, 0.3242892920970917, 0.08412973582744598, -0.15680019557476044, -0.23610518872737885, -0.11885246634483337, 0.0038306210190057755, -0.2843486964702606, 0.4368289113044739, -0.048340342938899994, 0.0006250292062759399, 0.22597971558570862, -0.29166939854621887, -0.07701873779296875, 0.173760324716568, 0.260698139667511, 0.2664484977722168, -0.17583045363426208, -0.16462239623069763, 0.19953829050064087, -0.10726985335350037, 0.2747100591659546, 0.0841742604970932, 0.0987074002623558, -0.056727346032857895, -0.1630982756614685, -0.29195302724838257, 0.20893362164497375, -0.35654374957084656, 0.5035456418991089, 0.3993522524833679, -0.08271489292383194, 0.37616652250289917, 0.10423840582370758, 0.07614617049694061, 0.12127764523029327, -0.21772512793540955, 0.1551395058631897, 0.19369468092918396, 0.03296337276697159, 0.017473215237259865, 0.06043621152639389, 0.51174396276474, -0.10836158692836761, -0.05664276331663132, 0.2612245976924896, -0.1502450555562973, -0.013430651277303696, 0.08428743481636047, 0.14933280646800995, 0.3192765712738037, -0.3976705074310303, -0.4220251739025116, 0.04850088804960251, 0.1735306680202484, -0.16910411417484283, 0.16930197179317474, 0.19322878122329712, -0.05794047564268112, 0.3934537172317505, 0.12736491858959198, -0.060699015855789185, 0.019433245062828064, 0.39513182640075684, -0.18167629837989807, 0.1414213627576828, 0.5099263191223145, -0.03183053806424141, -0.3732169270515442, -0.1795956790447235, 0.1953200399875641, -0.037644077092409134, -0.37818068265914917, 0.05274446681141853, -0.10866031050682068, -0.08604176342487335, -0.10286647081375122, 0.1954628974199295, 0.2338566780090332, -0.06194164603948593, 0.03633394464850426, -0.34008124470710754, -0.3147146701812744, -0.17115290462970734, -0.016301047056913376, -0.06530687212944031, -0.14821311831474304, 0.3487366735935211, -0.11560259014368057, 0.1409914493560791, -0.30561918020248413, 0.2488008737564087, -0.1831078678369522, 0.17554505169391632, 0.3181937634944916, -0.038143500685691833, -0.08204396069049835, -0.39331361651420593, 0.2110455334186554, -0.05023959279060364, -0.0873701274394989, -0.2965153157711029, -0.38338685035705566, 0.09868680685758591, 0.2363496720790863, -0.3316833972930908, 0.17906689643859863, -0.10183770954608917, -0.0952133983373642, -0.14592067897319794, -0.3483108878135681, 0.3726712167263031, -0.0686497688293457, 0.43838804960250854, 0.08193694800138474, -0.1049133762717247, -0.2645224332809448, 0.2500067353248596, -0.14474111795425415, 0.20595940947532654, -0.024176571518182755, 0.14891570806503296, 0.09480281174182892, 0.15069566667079926, -0.2641914188861847, -0.0032508298754692078, -0.10637739300727844, 0.14913728833198547, 0.37953290343284607, -0.39363133907318115, 0.19025349617004395, 0.023775769397616386, -0.033275652676820755, 0.4096049666404724, -0.46057772636413574, 0.1719651073217392, 0.24431341886520386, 0.25607818365097046, -0.3487221896648407, -0.08786126971244812, -0.08719861507415771, -0.008514734916388988, 0.12860874831676483, -0.09391089528799057, 0.053489718586206436, -0.22862018644809723, 0.18686005473136902, 0.13822966814041138, -0.08321652561426163, 0.027663426473736763, 0.2625828981399536, 0.09137847274541855, -0.048302508890628815, -0.10441619157791138, 0.2093053013086319, 0.14431233704090118, 0.08090730756521225, 0.5423405766487122, -0.039710596203804016, 0.018325844779610634, 0.07720012217760086, -0.018654417246580124, 0.00880875438451767, -0.3392186760902405, 0.1876833736896515, -0.23717689514160156, 0.035129301249980927, 0.03145644813776016, -0.008899837732315063, 0.23849725723266602, -0.0979124903678894, -0.24213629961013794, 0.3265654146671295, 0.03753427788615227, -0.05618720501661301, -0.022519901394844055, 0.07469605654478073, 0.08593975752592087, -0.10873915255069733, -0.12437643110752106, -0.014037113636732101, -0.24101854860782623, 0.2886113226413727, 0.27983248233795166, -0.3408263325691223, -0.5902041792869568, 0.013779962435364723, 0.25045979022979736, 0.23660656809806824, -0.3291141986846924, 0.2761158049106598, 0.028463564813137054, -0.1257660835981369, -0.09440985321998596, 0.39279070496559143, 0.6184647083282471, 0.18721574544906616, -0.01659739390015602, 0.12241246551275253, 0.09602870047092438, -0.24181482195854187, -0.034662894904613495, 0.20031492412090302, -0.22802093625068665, 0.23433302342891693, 0.34502530097961426, 0.17148059606552124, -0.2647436857223511, -0.24989472329616547, -0.05521668121218681, -0.1794516146183014, -0.4442252218723297, 0.542850911617279, -0.08735503256320953, -0.1593649834394455, -0.07414847612380981, 0.06949227303266525, -0.3150585889816284, -0.11971361935138702, 0.6771426200866699, 0.08323579281568527, 0.19981348514556885, -0.0850101113319397, 0.09360005706548691, 0.0008086021989583969, 0.2952710688114166, 0.40151873230934143, 0.22234901785850525, -0.20465187728405, -0.07261891663074493, -0.6258226037025452, 0.1252232939004898, -0.06084465608000755, -0.022706380113959312, 0.09532670676708221, 0.15285144746303558, -0.025804854929447174, 0.058547936379909515, 0.11271010339260101, 0.09222651273012161, 0.053285397589206696, 0.20561756193637848, -0.40701183676719666, -0.24375297129154205, -0.15650586783885956, 0.05774654448032379, -0.012777026742696762, -0.4809655249118805, 0.049941062927246094, -0.2340085357427597, 0.15047496557235718, -0.06905920803546906, -0.25045135617256165, 0.09111085534095764, 0.14442318677902222, 0.4137847125530243, 0.09770418703556061, 0.5867863893508911, -0.16918283700942993, 0.02256276272237301, -0.05988115444779396, -0.44262734055519104, -0.12077229470014572, 0.289655476808548, 0.14116811752319336, 0.3157990574836731, -0.15325838327407837, -0.23565687239170074, -0.3393156826496124, 0.1562572866678238, 0.060108743607997894, -0.10989068448543549, -0.3785388469696045, 0.36626213788986206, -0.23814639449119568, 0.2603236138820648, -0.1275015026330948, 0.1894601285457611, -0.08470530807971954, 0.20015180110931396, -0.23328198492527008, -0.592947781085968, 0.5382559299468994, -0.1991792768239975, -0.25278764963150024, -0.20841044187545776, 0.3369365334510803, 0.16195307672023773, 0.028050273656845093, -0.371259868144989, -0.12912002205848694, 0.503371000289917, -0.3103446662425995, -0.334636926651001, 0.33660832047462463, -0.15335659682750702, 0.23768062889575958, -0.12228970229625702, 0.6446775197982788, 0.009723009541630745, -0.11631220579147339, 0.24436384439468384, -0.012111887335777283 ]
https://github.com/huggingface/datasets/issues/3902
Can't import datasets: partially initialized module 'fsspec' has no attribute 'utils'
@deepakmahtha I think you are not using `datasets`: this is the GitHub repository of Hugging Face Datasets. If you are using `lightgbm`, you should report the issue to their repository instead. Anyway, we have proposed a possible fix just in a comment above: to update fsspec. https://github.com/huggingface/datasets/issues/3902#issuecomment-1066517824
## Describe the bug Unable to import datasets ## Steps to reproduce the bug ```python from datasets import Dataset, DatasetDict ``` ## Expected results The import works without errors ## Actual results ``` AttributeError Traceback (most recent call last) <ipython-input-37-c8cfcbe62127> in <module> 11 # from tqdm import tqdm 12 # import torch ---> 13 from datasets import Dataset 14 # from transformers import Trainer, TrainingArguments, AutoModel, AutoTokenizer, AutoModelForMaskedLM, DataCollatorForLanguageModeling 15 # from sentence_transformers import SentenceTransformer ~/.local/lib/python3.8/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 ~/.local/lib/python3.8/site-packages/datasets/arrow_dataset.py in <module> 46 ) 47 ---> 48 import fsspec 49 import numpy as np 50 import pandas as pd ~/.local/lib/python3.8/site-packages/fsspec/__init__.py in <module> 10 from . import _version, caching 11 from .callbacks import Callback ---> 12 from .core import get_fs_token_paths, open, open_files, open_local 13 from .exceptions import FSTimeoutError 14 from .mapping import FSMap, get_mapper ~/.local/lib/python3.8/site-packages/fsspec/core.py in <module> 16 caches, 17 ) ---> 18 from .compression import compr 19 from .registry import filesystem, get_filesystem_class 20 from .utils import ( ~/.local/lib/python3.8/site-packages/fsspec/compression.py in <module> 68 69 ---> 70 register_compression("zip", unzip, "zip") 71 register_compression("bz2", BZ2File, "bz2") 72 ~/.local/lib/python3.8/site-packages/fsspec/compression.py in register_compression(name, callback, extensions, force) 44 45 for ext in extensions: ---> 46 if ext in fsspec.utils.compressions and not force: 47 raise ValueError( 48 "Duplicate compression file extension: %s (%s)" % (ext, name) AttributeError: partially initialized module 'fsspec' has no attribute 'utils' (most likely due to a circular import) ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.4 - Platform: Jupyter notebook - Python version: 3.8.10 - PyArrow version: 7.0.0
47
Can't import datasets: partially initialized module 'fsspec' has no attribute 'utils' ## Describe the bug Unable to import datasets ## Steps to reproduce the bug ```python from datasets import Dataset, DatasetDict ``` ## Expected results The import works without errors ## Actual results ``` AttributeError Traceback (most recent call last) <ipython-input-37-c8cfcbe62127> in <module> 11 # from tqdm import tqdm 12 # import torch ---> 13 from datasets import Dataset 14 # from transformers import Trainer, TrainingArguments, AutoModel, AutoTokenizer, AutoModelForMaskedLM, DataCollatorForLanguageModeling 15 # from sentence_transformers import SentenceTransformer ~/.local/lib/python3.8/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 ~/.local/lib/python3.8/site-packages/datasets/arrow_dataset.py in <module> 46 ) 47 ---> 48 import fsspec 49 import numpy as np 50 import pandas as pd ~/.local/lib/python3.8/site-packages/fsspec/__init__.py in <module> 10 from . import _version, caching 11 from .callbacks import Callback ---> 12 from .core import get_fs_token_paths, open, open_files, open_local 13 from .exceptions import FSTimeoutError 14 from .mapping import FSMap, get_mapper ~/.local/lib/python3.8/site-packages/fsspec/core.py in <module> 16 caches, 17 ) ---> 18 from .compression import compr 19 from .registry import filesystem, get_filesystem_class 20 from .utils import ( ~/.local/lib/python3.8/site-packages/fsspec/compression.py in <module> 68 69 ---> 70 register_compression("zip", unzip, "zip") 71 register_compression("bz2", BZ2File, "bz2") 72 ~/.local/lib/python3.8/site-packages/fsspec/compression.py in register_compression(name, callback, extensions, force) 44 45 for ext in extensions: ---> 46 if ext in fsspec.utils.compressions and not force: 47 raise ValueError( 48 "Duplicate compression file extension: %s (%s)" % (ext, name) AttributeError: partially initialized module 'fsspec' has no attribute 'utils' (most likely due to a circular import) ``` ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: 1.18.4 - Platform: Jupyter notebook - Python version: 3.8.10 - PyArrow version: 7.0.0 @deepakmahtha I think you are not using `datasets`: this is the GitHub repository of Hugging Face Datasets. If you are using `lightgbm`, you should report the issue to their repository instead. Anyway, we have proposed a possible fix just in a comment above: to update fsspec. https://github.com/huggingface/datasets/issues/3902#issuecomment-1066517824
[ -0.3171515464782715, -0.09776302427053452, -0.06043749302625656, 0.2508161664009094, 0.5410333275794983, 0.05154288560152054, 0.23068265616893768, 0.17841294407844543, 0.14518412947654724, -0.040658801794052124, -0.09140444546937943, 0.2070273607969284, -0.084994375705719, 0.04220215231180191, -0.04811275005340576, 0.08007920533418655, 0.039268046617507935, 0.15737521648406982, -0.36250394582748413, -0.1490756869316101, -0.06672461330890656, 0.10862759500741959, -0.26059067249298096, 0.022999126464128494, -0.466716468334198, -0.042055703699588776, 0.0897894874215126, 0.2693989872932434, -0.3021414279937744, -0.6751570105552673, 0.24881316721439362, -0.20236380398273468, 0.1428641974925995, 0.3091626763343811, -0.00011272792471572757, 0.07196445763111115, 0.31681162118911743, -0.04032504931092262, -0.3669929504394531, 0.05797802656888962, -0.15879760682582855, -0.26110249757766724, 0.20147602260112762, -0.1858026683330536, 0.08908775448799133, -0.2615581154823303, -0.07321896404027939, -0.5562986135482788, 0.1979614645242691, 0.6020063757896423, 0.25396668910980225, 0.2535480856895447, 0.376718670129776, -0.06563211977481842, -0.045886389911174774, -0.06528595089912415, -0.06956792622804642, -0.04196920618414879, 0.15392962098121643, -0.1513931155204773, 0.14413458108901978, -0.04410780221223831, -0.011127104982733727, 0.24274758994579315, 0.1799449920654297, -0.18483398854732513, 0.11254110932350159, -0.4305424094200134, -0.004380378872156143, 0.008901070803403854, 0.4734686017036438, -0.26163238286972046, -0.4875105023384094, -0.07161401957273483, 0.13187725841999054, -0.0342160165309906, 0.0774441584944725, 0.0017764540389180183, 0.0501030795276165, 0.1682342141866684, 0.19307708740234375, -0.09622704237699509, -0.11906039714813232, 0.26570793986320496, -0.19760432839393616, 0.04112093150615692, -0.24809175729751587, -0.03282373398542404, 0.024130165576934814, -0.2687961459159851, 0.16090503334999084, -0.18382328748703003, -0.036659497767686844, 0.28214240074157715, -0.22307954728603363, 0.04322678595781326, 0.41319891810417175, -0.3409280478954315, -0.15406987071037292, 0.30150270462036133, -0.299243301153183, -0.0061616115272045135, -0.051598694175481796, 0.2656782865524292, 0.053783681243658066, 0.07202626764774323, 0.18192285299301147, 0.46634235978126526, 0.07023472338914871, 0.0044092098250985146, -0.15646399557590485, -0.040541306138038635, -0.15212152898311615, -0.26030200719833374, 0.09620270133018494, 0.14478649199008942, 0.37065839767456055, -0.21037127077579498, -0.2649964690208435, 0.18519195914268494, 0.019285283982753754, -0.043023303151130676, -0.10792860388755798, 0.24174907803535461, -0.05323328450322151, 0.49048876762390137, 0.0674702599644661, 0.16117116808891296, -0.18243078887462616, -0.223494753241539, -0.2142261266708374, 0.17835773527622223, -0.16306696832180023, -0.2605765163898468, 0.1102810800075531, -0.09984138607978821, 0.15280334651470184, -0.08293214440345764, -0.04964061826467514, -0.21254324913024902, 0.18549475073814392, -0.3258238732814789, 0.10657598078250885, 0.28788453340530396, -0.031680282205343246, 0.34963691234588623, 0.31112372875213623, -0.26707953214645386, -0.08031046390533447, -0.058453500270843506, -0.3358180522918701, -0.2745758295059204, -0.2645736336708069, 0.271582692861557, -0.08938035368919373, -0.03860313445329666, -0.2773096263408661, -0.13826343417167664, -0.001873895525932312, 0.0657275915145874, -0.09576103836297989, -0.20593179762363434, 0.010018687695264816, -0.11577405035495758, 0.29598507285118103, 0.490772545337677, -0.28953707218170166, -0.15737900137901306, -0.13499686121940613, -0.15308181941509247, 0.10317740589380264, 0.21477645635604858, -0.14108461141586304, 0.39069005846977234, -0.26492229104042053, 0.0945349931716919, 0.48440417647361755, -0.3106129765510559, -0.31145423650741577, 0.22609683871269226, 0.2197267860174179, -0.06543944776058197, -0.030199281871318817, -0.2271599918603897, 0.1230243444442749, 0.14875702559947968, 0.22017759084701538, 0.332999587059021, 0.0629456639289856, -0.10715688019990921, -0.1610437035560608, -0.27670273184776306, 0.10841444134712219, 0.11616796255111694, 0.252284437417984, 0.012943990528583527, 0.08791626989841461, -0.06491702795028687, 0.055202726274728775, -0.05373653396964073, -0.03042011894285679, 0.5308902263641357, 0.28945422172546387, 0.15469232201576233, -0.12563128769397736, -0.5731552839279175, -0.2998692989349365, 0.31530991196632385, 0.1423247903585434, -0.06704059988260269, -0.17839540541172028, 0.12941677868366241, -0.2853480279445648, 0.12696023285388947, -0.20799003541469574, -0.20013093948364258, 0.12254360318183899, 0.07607466727495193, -0.15454870462417603, 0.10147273540496826, -0.39258813858032227, 0.0076316604390740395, -0.06900878250598907, 0.18116495013237, -0.2581489086151123, 0.3928670287132263, -0.30306217074394226, -0.18765966594219208, 0.043139830231666565, 0.13435599207878113, 0.1268024891614914, -0.10185257345438004, -0.21805664896965027, 0.11747054755687714, 0.3525499105453491, 0.09945233911275864, -0.1108863428235054, 0.18622471392154694, 0.09371235221624374, -0.4421733617782593, -0.2014678567647934, 0.4330581724643707, 0.35604187846183777, -0.03442063182592392, -0.002596065402030945, 0.06976740062236786, 0.052470818161964417, 0.15935036540031433, 0.1339358687400818, 0.17263855040073395, 0.286373496055603, -0.04151713103055954, 0.004168527200818062, -0.2934674322605133, 0.31247633695602417, 0.116340771317482, 0.23497314751148224, 0.10873205214738846, -0.0224030539393425, -0.13542252779006958, 0.19067762792110443, 0.0591118223965168, 0.0022930800914764404, -0.021951235830783844, -0.31939324736595154, 0.16619879007339478, 0.23598264157772064, -0.02356395497918129, 0.28609901666641235, 0.19343039393424988, -0.1650981605052948, 0.04640590772032738, 0.031079571694135666, 0.0036385729908943176, 0.2746044099330902, 0.16061383485794067, -0.020850826054811478, 0.26999861001968384, 0.14348088204860687, 0.22186720371246338, -0.15482386946678162, -0.3139861822128296, 0.011663133278489113, 0.33507898449897766, -0.6247823238372803, 0.12507255375385284, -0.4319002032279968, -0.09627754986286163, -0.08149651437997818, -0.004813322797417641, 0.17064064741134644, -0.2390514612197876, -0.3558325171470642, 0.18457645177841187, -0.09491457045078278, 0.1931573450565338, -0.45263564586639404, -0.05014105141162872, 0.098725825548172, -0.10246298462152481, -0.09762448072433472, -0.06425698101520538, -0.022789839655160904, 0.03417038545012474, 0.36367565393447876, 0.16349512338638306, 0.245236337184906, 0.0313413143157959, 0.044554587453603745, -0.18766166269779205, -0.2511567771434784, 0.015845652669668198, 0.20322009921073914, 0.4261605739593506, 0.16843192279338837, 0.09592774510383606, 0.2268286496400833, -0.16761338710784912, 0.30050233006477356, 0.0435410812497139, -0.14982372522354126, 0.21190835535526276, -0.07048477232456207, -0.4356119632720947, -0.10263246297836304, -0.3086390197277069, -0.2543671727180481, -0.4043402373790741, -0.018026098608970642, 0.24284975230693817, 0.15528088808059692, 0.23305925726890564, 0.10103055089712143, 0.1663682758808136, 0.044180139899253845, 0.11335045099258423, -0.021914945915341377, -0.1602955013513565, 0.5347223281860352, -0.17979571223258972, -0.44392773509025574, -0.01387760415673256, -0.2253856658935547, -0.04958037659525871, -0.0044830674305558205, -0.34044092893600464, -0.041778627783060074, -0.41509583592414856, 0.4369359314441681, -0.23528876900672913, 0.20079350471496582, 0.23944060504436493, 0.2682829797267914, -0.06723663210868835, -0.18456247448921204, -0.06681997328996658, -0.22535642981529236, 0.14146116375923157, -0.1335574984550476, -0.2373022437095642, 0.21806645393371582, -0.04648969694972038, 0.6331477165222168, 0.31701335310935974, -0.01502600684762001, 0.25921958684921265, -0.195589080452919, 0.19635207951068878, -0.1575065553188324, -0.6132757663726807, 0.0977250263094902, -0.12901154160499573, 0.07018490880727768, 0.013216815888881683, -0.1097625270485878, 0.15461720526218414, -0.08840632438659668, 0.3763571083545685, -0.18966403603553772, -0.1465119868516922, -0.00036887265741825104, -0.42130815982818604, 0.28798708319664, -0.0034612342715263367, 0.1694815754890442, 0.006279433146119118, 0.10683088004589081, 0.12514658272266388, 0.13151788711547852, -0.0973164364695549, 0.07398810982704163, -0.5398017764091492, 0.020996423438191414, 0.016362041234970093, 0.10464179515838623, 0.03518640249967575, 0.48555099964141846, 0.06590418517589569, 0.035828493535518646, 0.017657995223999023, 0.009616702795028687, 0.23147469758987427, -0.1142621859908104, 0.005787137895822525, 0.386913537979126, 0.013032358139753342, -0.6777915954589844, -0.05012882128357887, -0.18090826272964478, -0.020523661747574806, 0.1754775196313858, 0.17699405550956726, -0.22882989048957825, -0.002136276802048087, -0.10486441850662231, 0.17409303784370422, -0.1285291165113449, 0.16523754596710205, -0.20593129098415375, -0.14944878220558167, -0.5392333269119263, -0.16577771306037903, 0.15196651220321655, 0.1271957904100418, 0.23109371960163116, 0.12344084680080414, -0.46179133653640747, -0.14889146387577057, 0.2593580484390259, 0.062009718269109726, 0.16712093353271484, -0.12351681292057037, 0.4289439618587494, -0.023796774446964264, -0.1577301174402237, 0.4475746154785156, 0.746050238609314, -0.11362507939338684, -0.5447680950164795, -0.060017555952072144, -0.08744077384471893, 0.2579821050167084, 0.004747077822685242, -0.11654917895793915, 0.12495829164981842, -0.16898390650749207, -0.012255072593688965, -0.15822701156139374, 0.24201588332653046, 0.269519180059433, 0.22413404285907745, -0.13950325548648834, -0.34403887391090393, 0.1826171576976776, -0.09912410378456116, 0.03972955048084259, 0.3657597601413727, 0.2760234475135803, -0.15273942053318024, 0.35801488161087036, -0.26759934425354004, 0.6217220425605774, 0.33936792612075806, 0.04975150525569916, 0.05505133420228958, -0.2366834282875061, 0.3242892920970917, 0.08412973582744598, -0.15680019557476044, -0.23610518872737885, -0.11885246634483337, 0.0038306210190057755, -0.2843486964702606, 0.4368289113044739, -0.048340342938899994, 0.0006250292062759399, 0.22597971558570862, -0.29166939854621887, -0.07701873779296875, 0.173760324716568, 0.260698139667511, 0.2664484977722168, -0.17583045363426208, -0.16462239623069763, 0.19953829050064087, -0.10726985335350037, 0.2747100591659546, 0.0841742604970932, 0.0987074002623558, -0.056727346032857895, -0.1630982756614685, -0.29195302724838257, 0.20893362164497375, -0.35654374957084656, 0.5035456418991089, 0.3993522524833679, -0.08271489292383194, 0.37616652250289917, 0.10423840582370758, 0.07614617049694061, 0.12127764523029327, -0.21772512793540955, 0.1551395058631897, 0.19369468092918396, 0.03296337276697159, 0.017473215237259865, 0.06043621152639389, 0.51174396276474, -0.10836158692836761, -0.05664276331663132, 0.2612245976924896, -0.1502450555562973, -0.013430651277303696, 0.08428743481636047, 0.14933280646800995, 0.3192765712738037, -0.3976705074310303, -0.4220251739025116, 0.04850088804960251, 0.1735306680202484, -0.16910411417484283, 0.16930197179317474, 0.19322878122329712, -0.05794047564268112, 0.3934537172317505, 0.12736491858959198, -0.060699015855789185, 0.019433245062828064, 0.39513182640075684, -0.18167629837989807, 0.1414213627576828, 0.5099263191223145, -0.03183053806424141, -0.3732169270515442, -0.1795956790447235, 0.1953200399875641, -0.037644077092409134, -0.37818068265914917, 0.05274446681141853, -0.10866031050682068, -0.08604176342487335, -0.10286647081375122, 0.1954628974199295, 0.2338566780090332, -0.06194164603948593, 0.03633394464850426, -0.34008124470710754, -0.3147146701812744, -0.17115290462970734, -0.016301047056913376, -0.06530687212944031, -0.14821311831474304, 0.3487366735935211, -0.11560259014368057, 0.1409914493560791, -0.30561918020248413, 0.2488008737564087, -0.1831078678369522, 0.17554505169391632, 0.3181937634944916, -0.038143500685691833, -0.08204396069049835, -0.39331361651420593, 0.2110455334186554, -0.05023959279060364, -0.0873701274394989, -0.2965153157711029, -0.38338685035705566, 0.09868680685758591, 0.2363496720790863, -0.3316833972930908, 0.17906689643859863, -0.10183770954608917, -0.0952133983373642, -0.14592067897319794, -0.3483108878135681, 0.3726712167263031, -0.0686497688293457, 0.43838804960250854, 0.08193694800138474, -0.1049133762717247, -0.2645224332809448, 0.2500067353248596, -0.14474111795425415, 0.20595940947532654, -0.024176571518182755, 0.14891570806503296, 0.09480281174182892, 0.15069566667079926, -0.2641914188861847, -0.0032508298754692078, -0.10637739300727844, 0.14913728833198547, 0.37953290343284607, -0.39363133907318115, 0.19025349617004395, 0.023775769397616386, -0.033275652676820755, 0.4096049666404724, -0.46057772636413574, 0.1719651073217392, 0.24431341886520386, 0.25607818365097046, -0.3487221896648407, -0.08786126971244812, -0.08719861507415771, -0.008514734916388988, 0.12860874831676483, -0.09391089528799057, 0.053489718586206436, -0.22862018644809723, 0.18686005473136902, 0.13822966814041138, -0.08321652561426163, 0.027663426473736763, 0.2625828981399536, 0.09137847274541855, -0.048302508890628815, -0.10441619157791138, 0.2093053013086319, 0.14431233704090118, 0.08090730756521225, 0.5423405766487122, -0.039710596203804016, 0.018325844779610634, 0.07720012217760086, -0.018654417246580124, 0.00880875438451767, -0.3392186760902405, 0.1876833736896515, -0.23717689514160156, 0.035129301249980927, 0.03145644813776016, -0.008899837732315063, 0.23849725723266602, -0.0979124903678894, -0.24213629961013794, 0.3265654146671295, 0.03753427788615227, -0.05618720501661301, -0.022519901394844055, 0.07469605654478073, 0.08593975752592087, -0.10873915255069733, -0.12437643110752106, -0.014037113636732101, -0.24101854860782623, 0.2886113226413727, 0.27983248233795166, -0.3408263325691223, -0.5902041792869568, 0.013779962435364723, 0.25045979022979736, 0.23660656809806824, -0.3291141986846924, 0.2761158049106598, 0.028463564813137054, -0.1257660835981369, -0.09440985321998596, 0.39279070496559143, 0.6184647083282471, 0.18721574544906616, -0.01659739390015602, 0.12241246551275253, 0.09602870047092438, -0.24181482195854187, -0.034662894904613495, 0.20031492412090302, -0.22802093625068665, 0.23433302342891693, 0.34502530097961426, 0.17148059606552124, -0.2647436857223511, -0.24989472329616547, -0.05521668121218681, -0.1794516146183014, -0.4442252218723297, 0.542850911617279, -0.08735503256320953, -0.1593649834394455, -0.07414847612380981, 0.06949227303266525, -0.3150585889816284, -0.11971361935138702, 0.6771426200866699, 0.08323579281568527, 0.19981348514556885, -0.0850101113319397, 0.09360005706548691, 0.0008086021989583969, 0.2952710688114166, 0.40151873230934143, 0.22234901785850525, -0.20465187728405, -0.07261891663074493, -0.6258226037025452, 0.1252232939004898, -0.06084465608000755, -0.022706380113959312, 0.09532670676708221, 0.15285144746303558, -0.025804854929447174, 0.058547936379909515, 0.11271010339260101, 0.09222651273012161, 0.053285397589206696, 0.20561756193637848, -0.40701183676719666, -0.24375297129154205, -0.15650586783885956, 0.05774654448032379, -0.012777026742696762, -0.4809655249118805, 0.049941062927246094, -0.2340085357427597, 0.15047496557235718, -0.06905920803546906, -0.25045135617256165, 0.09111085534095764, 0.14442318677902222, 0.4137847125530243, 0.09770418703556061, 0.5867863893508911, -0.16918283700942993, 0.02256276272237301, -0.05988115444779396, -0.44262734055519104, -0.12077229470014572, 0.289655476808548, 0.14116811752319336, 0.3157990574836731, -0.15325838327407837, -0.23565687239170074, -0.3393156826496124, 0.1562572866678238, 0.060108743607997894, -0.10989068448543549, -0.3785388469696045, 0.36626213788986206, -0.23814639449119568, 0.2603236138820648, -0.1275015026330948, 0.1894601285457611, -0.08470530807971954, 0.20015180110931396, -0.23328198492527008, -0.592947781085968, 0.5382559299468994, -0.1991792768239975, -0.25278764963150024, -0.20841044187545776, 0.3369365334510803, 0.16195307672023773, 0.028050273656845093, -0.371259868144989, -0.12912002205848694, 0.503371000289917, -0.3103446662425995, -0.334636926651001, 0.33660832047462463, -0.15335659682750702, 0.23768062889575958, -0.12228970229625702, 0.6446775197982788, 0.009723009541630745, -0.11631220579147339, 0.24436384439468384, -0.012111887335777283 ]
https://github.com/huggingface/datasets/issues/3901
Dataset viewer issue for IndicParaphrase- the preview doesn't show
It seems to have been fixed: <img width="1534" alt="Capture d’écran 2022-04-12 à 14 10 07" src="https://user-images.githubusercontent.com/1676121/162959599-6b7fef7c-8411-4e03-8f00-90040a658079.png">
## Dataset viewer issue for '*IndicParaphrase*' **Link:** *[IndicParaphrase](https://huggingface.co/datasets/ai4bharat/IndicParaphrase/viewer/hi/validation)* *The preview of the dataset doesn't come up. The error on the console is: Status code: 400 Exception: FileNotFoundError Message: [Errno 2] No such file or directory: '/home/hf/datasets-preview-backend/hi_IndicParaphrase_v1.0.tar'* Am I the one who added this dataset ? Yes
16
Dataset viewer issue for IndicParaphrase- the preview doesn't show ## Dataset viewer issue for '*IndicParaphrase*' **Link:** *[IndicParaphrase](https://huggingface.co/datasets/ai4bharat/IndicParaphrase/viewer/hi/validation)* *The preview of the dataset doesn't come up. The error on the console is: Status code: 400 Exception: FileNotFoundError Message: [Errno 2] No such file or directory: '/home/hf/datasets-preview-backend/hi_IndicParaphrase_v1.0.tar'* Am I the one who added this dataset ? Yes It seems to have been fixed: <img width="1534" alt="Capture d’écran 2022-04-12 à 14 10 07" src="https://user-images.githubusercontent.com/1676121/162959599-6b7fef7c-8411-4e03-8f00-90040a658079.png">
[ -0.23629122972488403, 0.2801050841808319, 0.0057153478264808655, 0.17628033459186554, -0.04072459787130356, 0.1510794460773468, 0.22422796487808228, 0.2524901032447815, 0.01474185660481453, 0.10672327131032944, 0.1024639829993248, 0.13665871322155, -0.02456742525100708, -0.21286553144454956, 0.17327998578548431, -0.05733596533536911, 0.056713081896305084, 0.28980427980422974, -0.0453776940703392, -0.08811582624912262, -0.12555426359176636, 0.17775049805641174, -0.2130025029182434, -0.06400254368782043, -0.006269888021051884, 0.17097650468349457, -0.09612433612346649, 0.039797574281692505, -0.2716746926307678, -0.5399702191352844, 0.19433557987213135, 0.2580506205558777, 0.2630362808704376, 0.45462968945503235, -0.00011545378947630525, 0.1184486448764801, 0.4071041941642761, -0.009508354589343071, -0.29467034339904785, -0.31559526920318604, -0.38897886872291565, -0.12146294116973877, 0.08633752912282944, -0.08480039238929749, -0.23415908217430115, -0.5504670143127441, 0.22150819003582, -0.1022612452507019, 0.38991355895996094, 0.14125430583953857, 0.17552128434181213, -0.13644939661026, 0.1194404661655426, -0.1078789010643959, -0.03689766675233841, 0.36057811975479126, -0.17626087367534637, -0.33897197246551514, -0.33894771337509155, 0.14000694453716278, 0.29897117614746094, 0.3518823981285095, 0.10231581330299377, -0.07360665500164032, 0.2059149146080017, 0.0059377518482506275, -0.35902640223503113, -0.4153437614440918, 0.13365091383457184, 0.2567451596260071, 0.8013644814491272, 0.039340998977422714, -0.5143753886222839, 0.11395665258169174, 0.1412728726863861, -0.1533961296081543, 0.2845408618450165, 0.07231663912534714, 0.19602595269680023, 0.24614574015140533, -0.22447365522384644, -0.25389352440834045, -0.28606539964675903, 0.18509790301322937, -0.26651105284690857, -0.0054269880056381226, -0.07707055658102036, 0.020474955439567566, 0.36125990748405457, -0.09430007636547089, -0.10764094442129135, -0.12410305440425873, -0.45663413405418396, 0.428190141916275, -0.031823981553316116, -0.15150010585784912, -0.07268878072500229, -0.16333869099617004, 0.19042691588401794, 0.22073914110660553, -0.059260644018650055, 0.2125234603881836, -0.16122916340827942, 0.019797001034021378, 0.09001941978931427, 0.2744446396827698, 0.013702332973480225, 0.6571694612503052, 0.3728529214859009, 0.09256154298782349, 0.34519127011299133, -0.13428059220314026, -0.25995582342147827, -0.0808335542678833, -0.1659107357263565, -0.20597591996192932, 0.15088656544685364, -0.32835882902145386, -0.2438240796327591, 0.2246343195438385, -0.2274692952632904, -0.06882724910974503, -0.17708177864551544, 0.25357767939567566, -0.0646267980337143, -0.2248164713382721, 0.001942705363035202, 0.2306782752275467, -0.1301770657300949, -0.32769775390625, -0.15387070178985596, -0.10871413350105286, -0.25196728110313416, 0.1789931207895279, 0.22207127511501312, -0.005865955725312233, 0.18820612132549286, -0.048017606139183044, 0.15762853622436523, -0.006152771413326263, 0.11141552031040192, -0.21469664573669434, -0.07618602365255356, 0.29814407229423523, 0.06983672082424164, 0.10850142687559128, 0.04919251799583435, -0.42989468574523926, 0.18380051851272583, 0.1542786955833435, -0.19847586750984192, 0.08982692658901215, -0.46131280064582825, 0.14142757654190063, -0.4802554249763489, -0.11001056432723999, -0.498384028673172, 0.19513234496116638, -0.07446610182523727, -0.25959059596061707, -0.1895695924758911, -0.06869170069694519, -0.1735287606716156, -0.10404382646083832, 0.3291052281856537, 0.583317220211029, -0.6670800447463989, -0.07510115951299667, -0.4240138530731201, -0.12567749619483948, 0.056180525571107864, 0.4693555235862732, -0.10743632167577744, -0.02864065021276474, -0.44321271777153015, 0.4633920192718506, 0.5195024013519287, -0.27321144938468933, -0.6565605401992798, 0.4652523100376129, -0.0360262505710125, 0.03956570476293564, 0.1877422332763672, -0.21582940220832825, 0.5644561052322388, -0.19863013923168182, -0.38350626826286316, -0.06677281111478806, 0.14066189527511597, -0.07233306765556335, -0.1894770860671997, -0.15551598370075226, -0.19838236272335052, 0.15898963809013367, 0.31722491979599, 0.016686245799064636, 0.14670781791210175, 0.08647704869508743, 0.40720948576927185, 0.0035548917949199677, 0.14519479870796204, 0.039402566850185394, 0.48445552587509155, 0.300592303276062, 0.12238152325153351, 0.16895532608032227, 0.03508469834923744, 0.054281510412693024, 0.08988942205905914, 0.00622192770242691, -0.2846029996871948, -0.09803082048892975, -0.37151461839675903, -0.15344494581222534, -0.49730369448661804, -0.36066097021102905, 0.1289227306842804, 0.2408691644668579, -0.1205018013715744, 0.20366361737251282, -0.09974992275238037, 0.2756522595882416, 0.21909652650356293, 0.1364573985338211, -0.003206562250852585, 0.3364860713481903, -0.12623687088489532, -0.014918032102286816, -0.1549707055091858, 0.051421407610177994, 0.09187214076519012, -0.26869410276412964, -0.020225703716278076, 0.24250102043151855, 0.00741953868418932, 0.1734749674797058, 0.3627810776233673, 0.10466940701007843, 0.3614177107810974, -0.9825654625892639, 0.3406337797641754, 0.1838664412498474, 0.05616852268576622, 0.1241116002202034, -0.20816045999526978, -0.015382125973701477, 0.08427032083272934, -0.12514689564704895, -0.05707436800003052, 0.0003693383187055588, 0.158049538731575, -0.18053729832172394, -0.1410503387451172, -0.3390037417411804, 0.17548900842666626, -0.011391766369342804, 0.1540808230638504, -0.21363215148448944, -0.023631561547517776, -0.05551665276288986, 0.1460130214691162, 0.08254179358482361, -0.12569475173950195, 0.055563896894454956, -0.300676167011261, 0.12766659259796143, -0.22941574454307556, 0.08305414021015167, 0.2841445803642273, 0.23607146739959717, -0.12808828055858612, 0.019701872020959854, 0.04209938645362854, -0.06302766501903534, 0.051295652985572815, -0.05716870725154877, 0.0734824538230896, 0.24661031365394592, 0.0065251300111413, 0.13248977065086365, -0.27420559525489807, -0.13429862260818481, 0.11783593147993088, 0.26766377687454224, -0.26944199204444885, 0.15155895054340363, -0.33732521533966064, -0.29151901602745056, -0.009695050306618214, 0.0849994570016861, 0.2080180048942566, -0.2876899838447571, 0.07853257656097412, 0.11383496224880219, 0.16799598932266235, 0.1244172528386116, -0.2578323483467102, -0.10340942442417145, -0.07180710881948471, -0.002952300012111664, -0.2747392952442169, 0.01179211214184761, -0.2636505365371704, 0.08666390180587769, 0.3066251873970032, -0.3069668710231781, 0.24033407866954803, -0.21745353937149048, 0.00439860112965107, -0.5051473379135132, -0.49710991978645325, 0.1637679785490036, -0.012838605791330338, 0.3853955566883087, -0.02044004201889038, 0.13816605508327484, -0.0584268793463707, -0.039483360946178436, 0.10947145521640778, -0.019983071833848953, -0.22187675535678864, -0.16373561322689056, -0.09812701493501663, -0.04905729740858078, -0.0032979436218738556, -0.23613572120666504, -0.1824592649936676, -0.2571442723274231, 0.04182175546884537, 0.07665915787220001, -0.09754376113414764, 0.2602650821208954, 0.1450711041688919, -0.0014944416470825672, 0.010943006724119186, -0.345152348279953, -0.3095146119594574, 0.02625207230448723, 0.4267837107181549, -0.39069265127182007, -0.4601741135120392, 0.34604114294052124, 0.02297285571694374, -0.06984372437000275, 0.07194750756025314, -0.7506678700447083, 0.18701906502246857, 0.0987134724855423, 0.19198818504810333, -0.09513714909553528, -0.4094075858592987, 0.2305600792169571, -0.14934514462947845, 0.0602542981505394, -0.07975168526172638, -0.18046817183494568, -0.10866225510835648, -0.12692144513130188, 0.48489993810653687, -0.21893039345741272, 0.5026809573173523, 0.13614067435264587, 1.039831280708313, 0.4212832450866699, 0.05920238792896271, 0.34631407260894775, -0.08591334521770477, 0.45364153385162354, -0.12183672934770584, -0.1974494308233261, 0.22200746834278107, 0.26963526010513306, 0.036115389317274094, 0.21818995475769043, -0.022757884114980698, -0.49368926882743835, -0.05167657136917114, 0.039091017097234726, -0.42868751287460327, -0.07971008121967316, -0.028454968705773354, -0.0861835777759552, 0.0822577252984047, 0.1365959197282791, 0.26753491163253784, 0.007595786824822426, -0.23657268285751343, -0.06454022973775864, 0.5140039324760437, 0.349791556596756, 0.0671982541680336, 0.018986035138368607, 0.003976546227931976, -0.09516308456659317, 0.19499042630195618, -0.1313582807779312, 0.36119282245635986, -0.3483348488807678, 0.007894076406955719, 0.13090631365776062, 0.10727759450674057, 0.6648898124694824, -0.19862039387226105, -0.21275894343852997, -0.019045088440179825, -0.08513431996107101, -0.07179973274469376, -0.1958352029323578, 0.20918670296669006, 0.18614105880260468, -0.22876353561878204, 0.3324701189994812, -0.09047713875770569, -0.0157167986035347, 0.6779102087020874, 0.04489869251847267, -0.26069116592407227, -0.13097770512104034, -0.10093289613723755, -0.2586939036846161, 0.022453637793660164, -0.20619583129882812, -0.3294554650783539, -0.11538465321063995, 0.15372467041015625, 0.05834614858031273, -0.17692239582538605, -0.21968626976013184, -0.0204840749502182, 0.2574276328086853, 0.3405466079711914, 0.08292722702026367, 0.21417856216430664, 0.5975805521011353, -0.21369734406471252, 0.4587043225765228, 0.3878510296344757, 0.2501164972782135, -0.4282655715942383, 0.26057153940200806, -0.19046597182750702, 0.041169457137584686, 0.09358322620391846, -0.03773706778883934, -0.32178857922554016, 0.06110164150595665, 0.08939675986766815, -0.21153834462165833, -0.04717042297124863, 0.40936681628227234, -0.14875784516334534, -0.33165985345840454, -0.427969753742218, 0.43540284037590027, 0.1483706533908844, -0.08364008367061615, 0.133601576089859, 0.20548352599143982, -0.18512551486492157, 0.3701457977294922, -0.11534770578145981, 0.6999502778053284, 0.06083615496754646, -0.10985526442527771, 0.12640097737312317, 0.057171531021595, 0.21494723856449127, -0.4266034960746765, -0.05764302611351013, -0.2474260926246643, -0.5372418761253357, -0.20792101323604584, -0.024234162643551826, 0.3483044505119324, -0.12155990302562714, -0.14459389448165894, 0.11507558077573776, 0.12728947401046753, 0.07151998579502106, 0.11170142143964767, 0.09073430299758911, -0.03252853453159332, 0.07481929659843445, 0.193008691072464, 0.19831803441047668, 0.15084664523601532, 0.2847987115383148, -0.08260152488946915, -0.08911120146512985, -0.23573504388332367, -0.07439059019088745, -0.6999578475952148, 0.18166756629943848, -0.2206430286169052, 0.0300142839550972, -0.012545622885227203, -0.5484364628791809, 0.4005168676376343, 0.3375644087791443, 0.297454297542572, 0.15466517210006714, -0.19812121987342834, 0.3924366533756256, 0.06935998052358627, -0.1165299117565155, -0.2026587724685669, 0.04022672027349472, 0.17983950674533844, -0.14327338337898254, -0.17040950059890747, 0.2138555347919464, 0.03766684606671333, -0.04123133793473244, -0.31850603222846985, -0.13438907265663147, -0.017591245472431183, -0.050623100250959396, 0.09568516910076141, -0.08464489877223969, 0.041584137827157974, -0.15212884545326233, 0.10651639103889465, 0.11408695578575134, -0.02269560657441616, -0.07543002814054489, 0.258047491312027, -0.14489009976387024, -0.1261054277420044, 0.2954840064048767, -0.05389029532670975, 0.009137667715549469, 0.6919755935668945, -0.04919632896780968, -0.1327880620956421, -0.2760494351387024, 0.05705564469099045, 0.0554790161550045, -0.3561067283153534, -0.3019421100616455, -0.14654074609279633, 0.24148069322109222, 0.23812741041183472, -0.04693456366658211, 0.1604602336883545, -0.3936068117618561, -0.23158448934555054, -0.36406704783439636, -0.015609348192811012, 0.09431016445159912, -0.5204856395721436, 0.21702229976654053, -0.18252596259117126, 0.05235957354307175, 0.1125590056180954, -0.08339095860719681, -0.2619909644126892, -0.019681820645928383, -0.04056674987077713, -0.03242671489715576, 0.27440112829208374, 0.13445881009101868, 0.16868717968463898, -0.2480798065662384, 0.1311527043581009, 0.11779054254293442, -0.2867774963378906, -0.13004814088344574, -0.0820264220237732, 0.15289074182510376, 0.02961752936244011, -0.0564965084195137, -0.10018524527549744, 0.022961057722568512, -0.07234035432338715, 0.05943921208381653, 0.177106574177742, -0.08114073425531387, 0.0989290401339531, 0.15924757719039917, 0.1032709926366806, -0.10665994137525558, 0.09315387904644012, 0.21047793328762054, 0.0747024193406105, 0.5806284546852112, 0.09640227258205414, 0.2516515851020813, -0.06102824956178665, -0.0380302332341671, -0.37334194779396057, 0.10165475308895111, 0.041693128645420074, 0.07381142675876617, 0.45412737131118774, -0.5627882480621338, 0.47072288393974304, 0.20280280709266663, 0.1922076791524887, 0.2573830485343933, -0.29744887351989746, -0.14337296783924103, 0.33540070056915283, 0.15999740362167358, -0.14013685286045074, 0.018363887444138527, 0.23942218720912933, 0.1446692794561386, -0.12143035233020782, 0.053596802055835724, 0.09770360589027405, 0.09261937439441681, 0.18517234921455383, 0.30444371700286865, 0.5903154015541077, -0.2526856064796448, 0.45402640104293823, 0.3786328136920929, -0.39137664437294006, 0.24127817153930664, -0.01789897494018078, 0.038086265325546265, -0.11512034386396408, 0.6050286889076233, -0.3812260925769806, 0.23039239645004272, 0.04710950702428818, 0.279686838388443, 0.019422702491283417, -0.2536277770996094, -0.06706580519676208, 0.2769097685813904, -0.022109001874923706, 0.1191771924495697, 0.18203535676002502, 0.1738048791885376, 0.17238269746303558, 0.2095922827720642, -0.3805820047855377, 0.1251835823059082, 0.03587695211172104, 0.09994007647037506, -0.20023801922798157, -0.22509759664535522, -0.2716732621192932, -0.05350876599550247, -0.025270726531744003, -0.04612959176301956, -0.08839459717273712, 0.14418292045593262, -0.3449505567550659, -0.24302305281162262, 0.13572657108306885, 0.033341486006975174, 0.15110450983047485, -0.2841522693634033, 0.2048325389623642, -0.04141399264335632, 0.005412109196186066, 0.30179813504219055, 0.5739185810089111, 0.2560294568538666, 0.09322553873062134, 0.05231102928519249, -0.12989768385887146, -0.0795770138502121, -0.21089839935302734, 0.1323040872812271, 0.33470389246940613, 0.09090196341276169, 0.08826704323291779, 0.11746376752853394, 0.12884995341300964, -0.06274853646755219, 0.23187041282653809, -0.07011070847511292, 0.2878531217575073, -0.21142901480197906, -0.04204707592725754, -0.39187589287757874, -0.04978281259536743, 0.05650737136602402, -0.21807017922401428, -0.1831379383802414, 0.10389268398284912, 0.20031294226646423, 0.056932177394628525, -0.007695101201534271, 0.006764058023691177, 0.05103982239961624, -0.040737662464380264, 0.13123294711112976, 0.536888599395752, 0.04377899691462517, -0.19108153879642487, -0.2052929401397705, -0.6078594923019409, 0.1693391352891922, -0.12723223865032196, -0.1071314886212349, 0.025154130533337593, 0.3253277838230133, 0.21554520726203918, 0.11514976620674133, 0.359721302986145, -0.1915455460548401, 0.2475765347480774, 0.44819343090057373, -0.11989504098892212, -0.08845630288124084, 0.10883944481611252, 0.15488825738430023, -0.2808731496334076, -0.09059566259384155, 0.12823587656021118, -0.012104397639632225, 0.01646028459072113, -0.05798361450433731, -0.00005289912223815918, -0.10588550567626953, -0.1188909262418747, 0.37248605489730835, 0.016301242634654045, 0.5731574296951294, 0.04012279957532883, 0.07493701577186584, -0.31490465998649597, -0.2644972801208496, -0.1893678903579712, 0.2851898670196533, 0.19694417715072632, 0.4250873923301697, -0.09571109712123871, -0.312958687543869, -0.2440573126077652, -0.10989584028720856, -0.05027186870574951, 0.03350895270705223, -0.4343653917312622, 0.07952570170164108, -0.12734317779541016, -0.09457046538591385, 0.1830943524837494, 0.09710186719894409, 0.058024659752845764, -0.12800247967243195, -0.0442340224981308, -0.35598039627075195, 0.2838951647281647, -0.4902099668979645, -0.021670684218406677, 0.19956935942173004, 0.07919640094041824, 0.005615785717964172, -0.30405861139297485, -0.38847196102142334, 0.19065195322036743, 0.38727399706840515, -0.06393139809370041, 0.009612027555704117, 0.07904919981956482, 0.31470558047294617, 0.07852895557880402, 0.044417861849069595, 0.6561059951782227, 0.015758514404296875, -0.10347504168748856, 0.08137868344783783, -0.10365186631679535 ]
https://github.com/huggingface/datasets/issues/3896
Missing google file for `multi_news` dataset
`datasets` 1.18.4 fixes the issue when you load the dataset with `load_dataset`. When loading in streaming mode, the fix is indeed on https://github.com/huggingface/datasets/pull/3843 which will be merged soon :)
## Dataset viewer issue for '*multi_news*' **Link:** https://huggingface.co/datasets/multi_news ``` Server error Status code: 400 Exception: FileNotFoundError Message: https://drive.google.com/uc?export=download&id=1vRY2wM6rlOZrf9exGTm5pXj5ExlVwJ0C/multi-news-original/train.src ``` Am I the one who added this dataset ? No
29
Missing google file for `multi_news` dataset ## Dataset viewer issue for '*multi_news*' **Link:** https://huggingface.co/datasets/multi_news ``` Server error Status code: 400 Exception: FileNotFoundError Message: https://drive.google.com/uc?export=download&id=1vRY2wM6rlOZrf9exGTm5pXj5ExlVwJ0C/multi-news-original/train.src ``` Am I the one who added this dataset ? No `datasets` 1.18.4 fixes the issue when you load the dataset with `load_dataset`. When loading in streaming mode, the fix is indeed on https://github.com/huggingface/datasets/pull/3843 which will be merged soon :)
[ -0.2699740529060364, -0.045839741826057434, 0.049732010811567307, 0.14202143251895905, 0.12764522433280945, 0.24816274642944336, 0.19342294335365295, 0.2745969295501709, -0.02155611664056778, 0.15792927145957947, 0.08163705468177795, 0.07922866940498352, -0.36354491114616394, 0.3349539339542389, 0.12281092256307602, -0.21371251344680786, 0.12184678763151169, 0.005675904452800751, 0.13039779663085938, -0.012960724532604218, -0.29094523191452026, 0.4830811321735382, -0.19528645277023315, -0.39581769704818726, -0.496949702501297, 0.0503464974462986, -0.16377821564674377, 0.29137375950813293, -0.0822807177901268, -0.2260228991508484, -0.09922242909669876, 0.06707660853862762, 0.0633658692240715, 0.5561426877975464, -0.00010878017928916961, 0.09660966694355011, 0.19695016741752625, -0.01662163808941841, -0.3042958974838257, -0.3295351266860962, -0.11917157471179962, -0.2145785242319107, 0.0840441882610321, 0.08170203119516373, -0.20943382382392883, -0.15269817411899567, 0.17398862540721893, -0.1258499026298523, 0.19380468130111694, 0.3944498896598816, 0.21373537182807922, 0.17652618885040283, 0.3621148467063904, -0.24093960225582123, 0.1189703643321991, -0.1591908037662506, -0.04644490033388138, 0.31280550360679626, -0.07318271696567535, 0.120649054646492, 0.01183241605758667, 0.6624205112457275, 0.29692932963371277, -0.0006959140300750732, -0.13265156745910645, -0.08523469418287277, -0.278601735830307, -0.20770539343357086, 0.0824049860239029, 0.3656959533691406, 0.3241904675960541, 0.024723397567868233, -0.29752597212791443, -0.11557097733020782, 0.22607040405273438, 0.01525912620127201, 0.3099583387374878, 0.26593220233917236, 0.01021827943623066, 0.2642279267311096, -0.26178550720214844, -0.40514883399009705, -0.04536919295787811, 0.2854011058807373, -0.15193942189216614, 0.4173750877380371, -0.05246064066886902, 0.043446093797683716, 0.19149558246135712, 0.04405564069747925, -0.07503774762153625, -0.053857624530792236, 0.009602278470993042, -0.03548482805490494, -0.2180485874414444, 0.07628268003463745, 0.23728567361831665, -0.007412388920783997, -0.05026786029338837, -0.0781644880771637, -0.2847442924976349, 0.1482703983783722, -0.17953458428382874, 0.19137471914291382, 0.28861311078071594, -0.2734931409358978, -0.11403564363718033, 0.20058460533618927, 0.4426933526992798, 0.38363760709762573, 0.11544439196586609, -0.04234194755554199, -0.023079954087734222, -0.1850614696741104, -0.3568231463432312, -0.08764778822660446, 0.328496515750885, 0.043088722974061966, -0.3071215748786926, 0.07044713944196701, -0.22816967964172363, -0.019224390387535095, 0.06407251954078674, 0.22673416137695312, -0.040592364966869354, 0.25434252619743347, 0.01689162477850914, 0.12989455461502075, -0.15904021263122559, -0.20273368060588837, -0.24119393527507782, 0.05264347046613693, -0.05228954181075096, 0.2572023272514343, 0.2526867985725403, -0.14169952273368835, 0.2949466407299042, 0.02104102447628975, 0.10475356131792068, -0.15620407462120056, -0.012945039197802544, -0.03393232077360153, -0.26256847381591797, 0.42577677965164185, 0.20723187923431396, 0.14988741278648376, 0.19156861305236816, -0.3342592716217041, 0.0919591411948204, 0.023872878402471542, -0.20231738686561584, -0.5349405407905579, -0.377551794052124, 0.24336908757686615, -0.19303172826766968, 0.0006408356130123138, -0.0854160413146019, 0.49269533157348633, -0.12587639689445496, -0.20059356093406677, -0.07413593679666519, 0.14147239923477173, -0.32519781589508057, -0.03600601479411125, 0.22844815254211426, 0.4770262837409973, -0.32753586769104004, -0.2885281443595886, -0.18562106788158417, -0.19607923924922943, -0.09433016926050186, 0.17338581383228302, -0.24981094896793365, 0.08743592351675034, -0.29712584614753723, -0.04719683155417442, 0.29478877782821655, -0.08175294101238251, -0.27056270837783813, 0.07741369307041168, -0.24763847887516022, 0.1613098531961441, 0.01842610538005829, 0.008758462965488434, -0.21678714454174042, 0.07847768068313599, 0.27184486389160156, 0.11360278725624084, -0.042892783880233765, 0.202894926071167, -0.23280751705169678, -0.09769846498966217, -0.11892856657505035, 0.22098849713802338, 0.3705184757709503, -0.08474341779947281, 0.30555260181427, -0.24948136508464813, 0.2203667163848877, -0.021168071776628494, 0.16630195081233978, 0.45048201084136963, 0.4090564548969269, 0.04826657474040985, 0.0851074680685997, -0.05886175483465195, -0.6630216240882874, 0.18249109387397766, 0.0604587197303772, 0.054811473935842514, -0.12658315896987915, -0.2398708611726761, -0.20385786890983582, -0.2788565456867218, -0.32478252053260803, -0.25420525670051575, 0.13081392645835876, 0.060029078274965286, -0.2686507999897003, 0.3854193091392517, -0.21697098016738892, 0.1346045881509781, -0.04474112391471863, 0.11210902035236359, -0.3367462754249573, 0.2658316493034363, -0.2499421089887619, 0.046400103718042374, 0.15646150708198547, 0.007108904421329498, 0.11205247044563293, -0.1856689751148224, -0.11477415263652802, 0.5158988833427429, -0.016438914462924004, 0.3071863055229187, 0.40700989961624146, 0.025843143463134766, 0.2801153063774109, -0.5864534378051758, 0.0014758948236703873, 0.19695375859737396, -0.03294840455055237, -0.20501071214675903, -0.5306294560432434, 0.27772974967956543, 0.07972559332847595, -0.05186934024095535, 0.10312944650650024, 0.3067663908004761, 0.2608007490634918, -0.049142125993967056, 0.15828756988048553, -0.2414272576570511, 0.11837658286094666, -0.09656091034412384, 0.260833740234375, -0.17599570751190186, -0.4331056773662567, 0.16595280170440674, 0.34943878650665283, 0.08256526291370392, -0.027013331651687622, 0.1943136751651764, -0.31930774450302124, -0.24186626076698303, 0.0007051993161439896, 0.3982299864292145, 0.31793975830078125, 0.17971619963645935, 0.14455775916576385, 0.2854648530483246, 0.2524556517601013, -0.3376319706439972, 0.18559160828590393, -0.03359834849834442, 0.3748420178890228, 0.31807854771614075, 0.07777740806341171, 0.0029970258474349976, -0.4142683446407318, 0.021108396351337433, 0.33183425664901733, 0.14546366035938263, -0.3140527009963989, -0.06008082628250122, -0.22762230038642883, -0.23178508877754211, -0.20432133972644806, -0.04408813267946243, -0.4008326828479767, -0.36476147174835205, 0.1441526710987091, 0.22454556822776794, -0.18370617926120758, 0.12080537527799606, 0.09337019920349121, 0.12644365429878235, 0.0041780900210142136, 0.12646755576133728, -0.07364468276500702, -0.1099015325307846, -0.14840546250343323, 0.13249804079532623, 0.23511895537376404, -0.028055209666490555, 0.12727870047092438, -0.24224862456321716, 0.01890714466571808, -0.6473363041877747, -0.49503180384635925, 0.1596491038799286, -0.15613733232021332, 0.13200443983078003, 0.1008688434958458, 0.23794011771678925, -0.28716081380844116, -0.024611400440335274, 0.2057286649942398, -0.14215223491191864, 0.1015133261680603, 0.08548205345869064, -0.08505094051361084, -0.005207963287830353, -0.03232728689908981, -0.45352640748023987, -0.22871972620487213, -0.3282015919685364, 0.31674838066101074, -0.2446497231721878, 0.03052096627652645, 0.1633336842060089, 0.2659239172935486, 0.15225675702095032, -0.02643476240336895, -0.14013276994228363, -0.285523384809494, -0.23168730735778809, 0.3149048984050751, -0.4753130376338959, -0.47857996821403503, 0.2872188091278076, 0.19156385958194733, -0.042862508445978165, -0.03939145803451538, -0.5842481255531311, -0.17798586189746857, 0.007369508966803551, -0.06075340881943703, 0.08830776810646057, -0.0733659416437149, 0.3424162268638611, -0.08948841691017151, -0.20212234556674957, -0.11935697495937347, -0.1285252422094345, -0.13097205758094788, -0.11965211480855942, 0.29613468050956726, -0.24463635683059692, 0.2517606317996979, 0.13091687858104706, 0.8454493284225464, 0.3763314485549927, 0.1880946010351181, 0.26144158840179443, -0.07648639380931854, 0.5798199772834778, -0.024406716227531433, -0.14706124365329742, 0.21567903459072113, -0.02145436406135559, 0.13369989395141602, 0.3256794512271881, 0.10004627704620361, -0.1820840835571289, -0.29927998781204224, 0.07344937324523926, -0.4389614760875702, -0.28960418701171875, 0.004142416641116142, 0.06048393249511719, 0.1060924381017685, 0.18147099018096924, -0.19600600004196167, 0.13233721256256104, -0.23290082812309265, 0.10132130980491638, 0.6919331550598145, -0.05018796771764755, -0.0970802828669548, -0.10431962460279465, -0.06793739646673203, -0.35216599702835083, 0.2764796018600464, -0.06483957171440125, -0.0262618251144886, -0.10055232048034668, -0.011814504861831665, 0.15948057174682617, 0.0028039771132171154, 0.5682066679000854, -0.3258597254753113, -0.21700938045978546, 0.0250883586704731, 0.0499027743935585, -0.07168368250131607, -0.23991869390010834, -0.2595692574977875, 0.35204535722732544, 0.21855945885181427, 0.6686892509460449, -0.07790154218673706, -0.21508663892745972, 0.4793427288532257, -0.14103685319423676, 0.0073264651000499725, -0.19518157839775085, -0.22593025863170624, -0.026960982009768486, -0.22297751903533936, -0.17080968618392944, 0.015257509425282478, 0.13235165178775787, -0.24285875260829926, -0.10908398032188416, 0.2812170088291168, 0.029791641980409622, -0.1282581090927124, -0.15055936574935913, 0.20466047525405884, 0.33647066354751587, 0.08279171586036682, 0.3960148096084595, 0.1792166531085968, 0.4689153730869293, 0.7659218907356262, -0.1142551451921463, -0.42663586139678955, 0.2505687475204468, -0.13515719771385193, 0.05295027047395706, 0.35185837745666504, -0.005487567745149136, -0.05192779749631882, 0.5907361507415771, 0.39974409341812134, 0.02680595964193344, 0.04278399050235748, 0.3419125974178314, -0.07878053933382034, -0.2595362961292267, -0.1329135000705719, 0.4234345853328705, 0.058588508516550064, 0.08170874416828156, 0.3582858741283417, 0.2719649076461792, -0.05099265277385712, -0.09582684934139252, -0.36298686265945435, 0.7006546854972839, -0.12044772505760193, 0.041740234941244125, 0.15955162048339844, -0.06322269141674042, 0.3199169933795929, -0.3107931613922119, 0.23918266594409943, -0.15960748493671417, -0.18719269335269928, -0.053029462695121765, 0.06308890879154205, 0.06054111197590828, 0.12751224637031555, -0.24650685489177704, 0.2701016068458557, 0.23989222943782806, 0.19381362199783325, -0.1722814440727234, 0.39216431975364685, -0.13383972644805908, 0.02140597254037857, 0.10891103744506836, 0.15508334338665009, 0.03295006603002548, 0.27462923526763916, -0.271090567111969, -0.03736501559615135, -0.026753652840852737, -0.19608037173748016, -0.46267056465148926, -0.008285276591777802, -0.20265892148017883, 0.35686200857162476, 0.10405978560447693, -0.489479124546051, 0.1065250039100647, 0.2307560294866562, 0.0100083127617836, -0.1957058161497116, -0.5076262354850769, 0.3593696355819702, -0.17655375599861145, -0.2647040784358978, -0.3143179416656494, -0.15734001994132996, 0.3316453993320465, 0.01205173134803772, -0.38615813851356506, 0.1204996407032013, -0.27652809023857117, -0.22049695253372192, -0.0742688924074173, -0.06949040293693542, -0.36565035581588745, -0.019062282517552376, 0.11019375920295715, -0.044000402092933655, -0.10138702392578125, -0.3672615885734558, 0.1536383032798767, -0.06701025366783142, 0.05983029678463936, -0.13212087750434875, 0.22352829575538635, -0.24231959879398346, -0.12945668399333954, 0.444345086812973, -0.08407323062419891, -0.11668691039085388, 0.3165596127510071, 0.42358559370040894, -0.20141807198524475, -0.2536206841468811, 0.06081195920705795, 0.16974660754203796, -0.22175398468971252, 0.08266285061836243, -0.009110978804528713, 0.23985253274440765, 0.3170994818210602, 0.15377217531204224, 0.04790327697992325, 0.0018055513501167297, 0.008091922849416733, -0.4800070524215698, -0.048735424876213074, 0.130428284406662, -0.2541612386703491, 0.08088798820972443, -0.18489345908164978, -0.071536123752594, 0.41723719239234924, 0.027842121198773384, -0.3635040819644928, 0.16529475152492523, -0.17467106878757477, -0.004419509321451187, -0.054722294211387634, -0.009786013513803482, 0.42182672023773193, -0.05644284933805466, 0.06951601803302765, -0.1564551740884781, -0.20067444443702698, -0.20826852321624756, -0.03981051221489906, 0.1309797763824463, 0.08625771850347519, 0.024195492267608643, 0.004174359142780304, 0.0014688726514577866, -0.38786885142326355, 0.06466745585203171, 0.16016650199890137, 0.11047672480344772, 0.058596495538949966, -0.026377104222774506, 0.007527906447649002, -0.22190552949905396, 0.06344295293092728, -0.20099186897277832, 0.046229906380176544, 0.33071833848953247, -0.02891439013183117, 0.059841856360435486, -0.06444902718067169, -0.010441668331623077, -0.08025358617305756, 0.01250072568655014, 0.09487787634134293, 0.1303805410861969, 0.2090911567211151, -0.25129204988479614, -0.04215308651328087, 0.004792248364537954, 0.41715407371520996, 0.059307314455509186, -0.5749191641807556, 0.15300290286540985, 0.25694209337234497, 0.20124760270118713, -0.3056641221046448, -0.04224887117743492, 0.3032122552394867, -0.05450636148452759, 0.17419959604740143, -0.11675836890935898, 0.3430560827255249, 0.04709962010383606, 0.009683579206466675, 0.20379087328910828, 0.32225629687309265, 0.056912895292043686, 0.34780412912368774, -0.23189309239387512, 0.03291558101773262, 0.14605821669101715, 0.05044648051261902, 0.15533892810344696, 0.095618836581707, 0.19453027844429016, -0.19748911261558533, 0.039808474481105804, -0.1680600345134735, 0.19544778764247894, 0.2584601640701294, -0.5932378768920898, 0.309750497341156, 0.1288982480764389, -0.5257315635681152, -0.17506501078605652, -0.04492376744747162, 0.6167224645614624, -0.4105325937271118, 0.14529559016227722, -0.36665141582489014, 0.2824436128139496, 0.026797715574502945, 0.2483895719051361, 0.11305424571037292, -0.18236958980560303, -0.3369000554084778, 0.22165536880493164, 0.13290777802467346, 0.03906507045030594, 0.378839373588562, 0.1465827226638794, -0.15702901780605316, -0.20579680800437927, 0.02575802057981491, 0.11200181394815445, 0.32830682396888733, -0.15428529679775238, 0.16529151797294617, 0.14870092272758484, -0.23400822281837463, 0.1463908702135086, 0.5180333256721497, 0.30699631571769714, -0.027982793748378754, 0.185527041554451, 0.21663454174995422, 0.12163828313350677, -0.12252797931432724, 0.05653926730155945, 0.11339253932237625, 0.35586532950401306, -0.21292351186275482, 0.170736625790596, 0.11549769341945648, -0.1974213570356369, 0.1416034698486328, 0.13644197583198547, 0.28532156348228455, -0.14732062816619873, -0.2654608488082886, -0.4569992423057556, -0.031603313982486725, -0.21383896470069885, -0.21480965614318848, -0.4444022476673126, -0.06199393421411514, 0.3813703656196594, 0.011698675341904163, 0.10991360992193222, -0.08464442938566208, 0.10744448006153107, 0.19573792815208435, 0.427556574344635, 0.3744041919708252, 0.10702475905418396, -0.0869150385260582, -0.6322665214538574, -0.7136017084121704, 0.27562835812568665, -0.1579359918832779, 0.2963869869709015, -0.013019086793065071, 0.174926295876503, -0.11749515682458878, 0.07624571025371552, 0.2748537063598633, 0.08412863314151764, 0.008279421366751194, -0.041539937257766724, -0.2840220332145691, -0.017766673117876053, 0.01978353038430214, -0.030823761597275734, 0.00018963590264320374, 0.03258618712425232, 0.2192154973745346, 0.00015124492347240448, 0.02535882592201233, -0.138543963432312, -0.01821056753396988, -0.23940269649028778, -0.3249519169330597, 0.32544034719467163, -0.04593610763549805, 0.2976701259613037, -0.25509896874427795, -0.2747499644756317, -0.1025216281414032, -0.09186624735593796, -0.17574752867221832, 0.22479009628295898, 0.09129049628973007, 0.4630240499973297, 0.033596694469451904, -0.3111024796962738, -0.06623200327157974, 0.32555627822875977, 0.049946948885917664, -0.1482616513967514, -0.36823877692222595, 0.08630403876304626, -0.141576886177063, 0.2040083408355713, 0.5045041441917419, 0.21008840203285217, -0.04593772441148758, -0.1641119420528412, -0.30923032760620117, -0.3907117545604706, 0.410087525844574, -0.3070969879627228, 0.10297532379627228, -0.2673332691192627, 0.1907680779695511, -0.055717431008815765, -0.0025999844074249268, -0.7274279594421387, 0.07201579958200455, 0.33264973759651184, 0.16054394841194153, -0.14866554737091064, 0.08397257328033447, -0.11278384923934937, -0.09682536870241165, -0.053214870393276215, 0.10021772980690002, 0.21641117334365845, -0.24380037188529968, 0.13414083421230316, -0.07370651513338089 ]
https://github.com/huggingface/datasets/issues/3896
Missing google file for `multi_news` dataset
That is. The PR #3843 was just opened a bit later we had made our 1.18.4 patch release... Once merged, that will fix this issue.
## Dataset viewer issue for '*multi_news*' **Link:** https://huggingface.co/datasets/multi_news ``` Server error Status code: 400 Exception: FileNotFoundError Message: https://drive.google.com/uc?export=download&id=1vRY2wM6rlOZrf9exGTm5pXj5ExlVwJ0C/multi-news-original/train.src ``` Am I the one who added this dataset ? No
25
Missing google file for `multi_news` dataset ## Dataset viewer issue for '*multi_news*' **Link:** https://huggingface.co/datasets/multi_news ``` Server error Status code: 400 Exception: FileNotFoundError Message: https://drive.google.com/uc?export=download&id=1vRY2wM6rlOZrf9exGTm5pXj5ExlVwJ0C/multi-news-original/train.src ``` Am I the one who added this dataset ? No That is. The PR #3843 was just opened a bit later we had made our 1.18.4 patch release... Once merged, that will fix this issue.
[ -0.18722409009933472, -0.004876673221588135, 0.03568989410996437, 0.182844877243042, 0.06084586679935455, 0.2791556119918823, 0.23320132493972778, 0.2045082449913025, -0.03669676184654236, 0.17451882362365723, 0.16457809507846832, 0.019153203815221786, -0.3617124855518341, 0.25781095027923584, 0.20784789323806763, -0.23291891813278198, 0.1163952499628067, 0.011815831065177917, 0.26811483502388, -0.0911787748336792, -0.3354705572128296, 0.4920600354671478, -0.13949553668498993, -0.3474697470664978, -0.5592486262321472, 0.06744468957185745, -0.22426286339759827, 0.3208019733428955, -0.04889862984418869, -0.1438562273979187, -0.09157845377922058, 0.01782711036503315, 0.0637669637799263, 0.5181998610496521, -0.00011002266546711326, 0.07440871000289917, 0.15999434888362885, -0.07280096411705017, -0.2432723492383957, -0.2922160029411316, -0.17953604459762573, -0.3841652572154999, -0.031588975340127945, 0.06339504569768906, -0.22999274730682373, -0.12480925768613815, 0.23552051186561584, -0.038747161626815796, 0.05124116688966751, 0.433063268661499, 0.2115030437707901, 0.04791562259197235, 0.487484872341156, -0.22009345889091492, 0.11557677388191223, -0.07780429720878601, -0.05100218579173088, 0.25521329045295715, -0.08173274993896484, 0.07707405835390091, 0.1039973720908165, 0.5462769269943237, 0.3046385645866394, -0.06951643526554108, -0.13164207339286804, -0.03424350544810295, -0.1518394947052002, -0.24169835448265076, 0.08634010702371597, 0.3786851167678833, 0.42967018485069275, 0.10747590661048889, -0.2502038776874542, -0.003947783261537552, 0.27504420280456543, 0.05892213433980942, 0.26316195726394653, 0.3699493110179901, -0.02905924618244171, 0.2897685766220093, -0.18958455324172974, -0.47775164246559143, -0.011406730860471725, 0.27022647857666016, -0.18482783436775208, 0.373405396938324, 0.010529736988246441, 0.057379305362701416, 0.06696862727403641, 0.10502145439386368, -0.09943200647830963, -0.04027898609638214, -0.03261348977684975, 0.0023561837151646614, -0.1493079662322998, 0.07304294407367706, 0.20401614904403687, -0.05713554471731186, -0.023247255012392998, -0.07745301723480225, -0.35195693373680115, 0.022566769272089005, -0.23162226378917694, 0.2107764482498169, 0.319998562335968, -0.26366353034973145, -0.18600249290466309, 0.2886655032634735, 0.40715110301971436, 0.23845627903938293, 0.12016741931438446, -0.025868013501167297, 0.009144440293312073, -0.1525198221206665, -0.28177520632743835, 0.04180868715047836, 0.29651063680648804, 0.007680993527173996, -0.30233529210090637, 0.04038495570421219, -0.2887435555458069, -0.06049052253365517, -0.030054971575737, 0.11458054184913635, 0.0022578048519790173, 0.27502503991127014, 0.09421613812446594, 0.09361284971237183, -0.1307661235332489, -0.2969665825366974, -0.22418057918548584, 0.12874622642993927, -0.0034950710833072662, 0.3261290192604065, 0.20073068141937256, -0.054431553930044174, 0.2158966064453125, -0.027790527790784836, 0.039558783173561096, -0.22274093329906464, -0.006846110336482525, -0.013064280152320862, -0.2587530314922333, 0.44426989555358887, 0.18465158343315125, 0.12271641939878464, 0.16589491069316864, -0.3463696837425232, 0.09505198150873184, 0.13271617889404297, -0.23552340269088745, -0.5962260365486145, -0.4397490918636322, 0.2294386774301529, -0.17769528925418854, -0.06293260306119919, -0.05914235860109329, 0.5101071000099182, -0.06541448086500168, -0.19042550027370453, -0.008642703294754028, 0.19768431782722473, -0.35266149044036865, -0.060718834400177, 0.19742915034294128, 0.48969608545303345, -0.3454838991165161, -0.23946963250637054, -0.34278878569602966, -0.22569739818572998, -0.052143655717372894, 0.19515785574913025, -0.24837109446525574, 0.24579191207885742, -0.3264864981174469, -0.13611578941345215, 0.3167673349380493, -0.0719664916396141, -0.24237629771232605, -0.0625898614525795, -0.3118368983268738, 0.09880345314741135, 0.05544976890087128, 0.052927225828170776, -0.16509036719799042, 0.05873467028141022, 0.2711959183216095, 0.11689171940088272, -0.043060868978500366, 0.18805843591690063, -0.20348814129829407, -0.03036155179142952, -0.05324845016002655, 0.2304324060678482, 0.42366817593574524, -0.07078539580106735, 0.3201605975627899, -0.3414311408996582, 0.18701988458633423, -0.011824939399957657, 0.14764101803302765, 0.5195223689079285, 0.47497716546058655, 0.0739346295595169, 0.1048128604888916, 0.005482524633407593, -0.6059771180152893, 0.17490172386169434, 0.08995264023542404, 0.05924677476286888, -0.04156722128391266, -0.1964135617017746, -0.2248479425907135, -0.32445430755615234, -0.30661171674728394, -0.2828349471092224, 0.14225180447101593, 0.04733407124876976, -0.3329624533653259, 0.41807064414024353, -0.212129607796669, 0.1743275225162506, -0.06230294704437256, 0.03497069701552391, -0.27499911189079285, 0.23144035041332245, -0.28278282284736633, 0.1294606775045395, 0.1165909469127655, 0.024813536554574966, 0.12216609716415405, -0.14929382503032684, -0.10367885231971741, 0.40132641792297363, 0.03725960850715637, 0.1733625829219818, 0.4822084307670593, -0.005454897880554199, 0.2585504651069641, -0.7087467312812805, 0.0004390645772218704, 0.17406922578811646, -0.02369103580713272, -0.24585890769958496, -0.4859754741191864, 0.22886833548545837, 0.18940208852291107, -0.17598050832748413, -0.02610517479479313, 0.33182814717292786, 0.2994700074195862, -0.11404430866241455, 0.2522146701812744, -0.1744799017906189, 0.08280683308839798, 0.004117462784051895, 0.24770928919315338, -0.1705699861049652, -0.3176650404930115, 0.19465452432632446, 0.4160517454147339, -0.009427236393094063, 0.015662558376789093, 0.18719947338104248, -0.2291240692138672, -0.18907976150512695, -0.06197815388441086, 0.3554428219795227, 0.33007103204727173, 0.17834404110908508, 0.08902941644191742, 0.23229043185710907, 0.2851097285747528, -0.2795414328575134, 0.1586308777332306, 0.016970671713352203, 0.35990190505981445, 0.29761725664138794, 0.11435151100158691, 0.03288879245519638, -0.3657297194004059, 0.06125808134675026, 0.40362676978111267, 0.21878626942634583, -0.2972446084022522, -0.11900351941585541, -0.16169871389865875, -0.15489734709262848, -0.14048397541046143, 0.011575696989893913, -0.3980475962162018, -0.37296754121780396, 0.15769368410110474, 0.04974794387817383, -0.06697442382574081, 0.06774412095546722, 0.15812215209007263, 0.13081452250480652, -0.04156433045864105, 0.13171790540218353, -0.07871435582637787, -0.09414780139923096, -0.1540471613407135, 0.12543685734272003, 0.25407543778419495, -0.022835563868284225, 0.12497663497924805, -0.2394530475139618, 0.06825259327888489, -0.7043075561523438, -0.4395393133163452, 0.0925026386976242, -0.18997536599636078, 0.050654396414756775, 0.07655465602874756, 0.2621290683746338, -0.2664458155632019, -0.01385352574288845, 0.1472311168909073, -0.11005250364542007, -0.020947493612766266, 0.0729542151093483, -0.15127718448638916, -0.030242104083299637, 0.013587065041065216, -0.4395046532154083, -0.3328358829021454, -0.2127951830625534, 0.33135515451431274, -0.17911124229431152, 0.04862942546606064, 0.021221529692411423, 0.20101387798786163, 0.11850444972515106, -0.03256155923008919, -0.18821389973163605, -0.2785401940345764, -0.1579575091600418, 0.2916122078895569, -0.40218833088874817, -0.39861398935317993, 0.37721386551856995, 0.147159606218338, -0.1747264415025711, -0.15442366898059845, -0.6030058264732361, -0.10535205900669098, 0.016925130039453506, 0.0033853575587272644, 0.023146525025367737, -0.09463340044021606, 0.46816587448120117, -0.11717408150434494, -0.17104005813598633, -0.058858513832092285, -0.1788693368434906, -0.14017128944396973, 0.017096146941184998, 0.4539300799369812, -0.2753295302391052, 0.2231188416481018, 0.07992656528949738, 0.9152955412864685, 0.3518284559249878, 0.18848152458667755, 0.20416618883609772, -0.10725804418325424, 0.551841676235199, -0.0792364701628685, -0.12019165605306625, 0.27511534094810486, -0.037476420402526855, 0.10662233829498291, 0.2463390976190567, 0.105281300842762, -0.20303601026535034, -0.311597615480423, 0.045220997184515, -0.4742397964000702, -0.24665319919586182, -0.033828794956207275, 0.14498190581798553, 0.09790806472301483, 0.1513945609331131, -0.3420819938182831, 0.03894820064306259, -0.2148829698562622, 0.1874665468931198, 0.7792717814445496, 0.03916292265057564, -0.07175619155168533, -0.06539052724838257, -0.055825669318437576, -0.2934437096118927, 0.2910728454589844, -0.04504084214568138, -0.1098099946975708, -0.1489579975605011, 0.06925255805253983, 0.16077619791030884, 0.025186892598867416, 0.5263217687606812, -0.3969438374042511, -0.2740154266357422, 0.006973976269364357, 0.09014391899108887, 0.1015978530049324, -0.2614500820636749, -0.24294808506965637, 0.323040634393692, 0.23519210517406464, 0.6074711084365845, -0.02800021320581436, -0.13815395534038544, 0.5628085136413574, -0.16224119067192078, -0.06753882765769958, -0.24948421120643616, -0.2436906397342682, -0.09177486598491669, -0.15319690108299255, -0.19370698928833008, 0.06867946684360504, 0.09843143075704575, -0.18297477066516876, -0.15737378597259521, 0.3382398784160614, 0.04534690082073212, -0.1694343537092209, -0.317152202129364, 0.18123000860214233, 0.34580662846565247, 0.04684242978692055, 0.3656401038169861, 0.1706722527742386, 0.4330361485481262, 0.7330331802368164, -0.13026440143585205, -0.3884172737598419, 0.2739969491958618, -0.2571144104003906, 0.12102615833282471, 0.3148050308227539, 0.04069682955741882, -0.04275599867105484, 0.47953516244888306, 0.34789174795150757, 0.07331377267837524, -0.09227658808231354, 0.2611967623233795, -0.11593171209096909, -0.24942688643932343, -0.13341669738292694, 0.3993435800075531, 0.064751997590065, 0.06812477111816406, 0.39127054810523987, 0.2510024309158325, -0.0017815027385950089, -0.14805056154727936, -0.41226887702941895, 0.7743066549301147, -0.17635801434516907, -0.040220197290182114, 0.08127741515636444, -0.03345843777060509, 0.3144209384918213, -0.46116262674331665, 0.25710156559944153, -0.15841485559940338, -0.20429185032844543, -0.1097366139292717, 0.024690944701433182, 0.07486723363399506, 0.12703612446784973, -0.19155004620552063, 0.28885993361473083, 0.14666153490543365, 0.15831740200519562, -0.11757050454616547, 0.35988011956214905, -0.009985314682126045, 0.08616320788860321, 0.24376803636550903, 0.15126660466194153, 0.05786648392677307, 0.337066113948822, -0.276197224855423, -0.02652900293469429, -0.11169759184122086, -0.15553000569343567, -0.595302402973175, -0.10393381863832474, -0.23960743844509125, 0.34548813104629517, 0.1469331532716751, -0.4965590238571167, 0.09795019030570984, 0.17363369464874268, 0.00040496140718460083, -0.20913554728031158, -0.471365362405777, 0.37635162472724915, -0.10266344994306564, -0.1961083859205246, -0.3093189001083374, -0.22029845416545868, 0.3089318871498108, 0.04422608017921448, -0.4749382436275482, 0.18558120727539062, -0.39605212211608887, -0.3003224730491638, -0.18982553482055664, -0.0790211409330368, -0.38745784759521484, 0.07693187892436981, 0.15054289996623993, 0.03345692902803421, -0.1402807980775833, -0.2922776937484741, 0.14920681715011597, 0.03637179732322693, 0.0744137391448021, -0.13711047172546387, 0.1778104454278946, -0.2859864830970764, -0.1235772967338562, 0.3827517330646515, -0.018987588584423065, -0.10137956589460373, 0.31909996271133423, 0.3554638624191284, -0.13427400588989258, -0.23827645182609558, 0.16420063376426697, 0.20291118323802948, -0.18673443794250488, 0.018680375069379807, -0.023886214941740036, 0.323173463344574, 0.4318345785140991, 0.1297747939825058, 0.06121434271335602, -0.01684129238128662, -0.07518334686756134, -0.5607317686080933, -0.047486476600170135, 0.05775945633649826, -0.28533050417900085, -0.013522844761610031, -0.2625463306903839, -0.06724332273006439, 0.4677385985851288, 0.07640811800956726, -0.3378607928752899, 0.1503453403711319, -0.25731027126312256, 0.054752156138420105, -0.02143443003296852, -0.0015050582587718964, 0.33167529106140137, -0.09143522381782532, 0.0767141580581665, -0.20262973010540009, -0.1469995528459549, -0.18312731385231018, 0.023653030395507812, 0.14732486009597778, 0.07388638705015182, 0.09906686097383499, -0.023945782333612442, -0.05743000656366348, -0.4132896959781647, 0.21051055192947388, 0.05862053111195564, 0.0614398717880249, 0.028493698686361313, -0.009333688765764236, -0.01468006893992424, -0.30726563930511475, 0.003733806312084198, -0.18754076957702637, 0.08912128210067749, 0.3535084128379822, 0.007571785245090723, 0.11891535669565201, 0.03459528833627701, 0.051739439368247986, -0.08036606013774872, -0.014801055192947388, 0.022022396326065063, 0.22579696774482727, 0.17670005559921265, -0.2491980940103531, -0.007930956780910492, -0.08191962540149689, 0.29372638463974, -0.03042987734079361, -0.6152096390724182, 0.2783772647380829, 0.18964335322380066, 0.1905767023563385, -0.3368074893951416, -0.05325782671570778, 0.4122397303581238, -0.01827101781964302, 0.05691738799214363, -0.09379761666059494, 0.3563445806503296, 0.02313891053199768, 0.02282983809709549, 0.21139690279960632, 0.3118530511856079, 0.05647630989551544, 0.27334511280059814, -0.2610469162464142, -0.0036976076662540436, 0.17534536123275757, 0.10749158263206482, 0.18086467683315277, 0.06663516163825989, 0.2738438546657562, -0.08108245581388474, -0.0057707540690898895, -0.1097371056675911, 0.24424894154071808, 0.29493066668510437, -0.6537454128265381, 0.44551846385002136, 0.13995806872844696, -0.48183178901672363, -0.2766651511192322, -0.024661965668201447, 0.4785228371620178, -0.3636009693145752, 0.1970672309398651, -0.439412921667099, 0.26780328154563904, 0.00017345696687698364, 0.4045162796974182, 0.1832769215106964, -0.1864820420742035, -0.28713691234588623, 0.17422589659690857, 0.22444479167461395, 0.015553105622529984, 0.36854952573776245, 0.1936071515083313, -0.2148677557706833, -0.09963434189558029, 0.009183261543512344, 0.057164400815963745, 0.2803318500518799, -0.18069253861904144, 0.16358396410942078, 0.09028210490942001, -0.2605147659778595, 0.1591387391090393, 0.4900105893611908, 0.23369106650352478, 0.00019393861293792725, 0.18992744386196136, 0.22165165841579437, 0.15563899278640747, -0.1479310691356659, 0.12314856052398682, 0.12451197952032089, 0.33922386169433594, -0.2820136845111847, 0.1327671855688095, 0.09226984530687332, -0.12539947032928467, 0.13417461514472961, 0.22361405193805695, 0.2765335142612457, -0.1848883479833603, -0.21776947379112244, -0.5578411817550659, -0.09824179112911224, -0.2640461027622223, -0.11652889102697372, -0.3371773064136505, -0.13109970092773438, 0.4041416049003601, 0.05038677528500557, 0.08601664006710052, 0.02872069552540779, 0.09507036954164505, 0.05782220885157585, 0.30744677782058716, 0.37451234459877014, 0.026539728045463562, -0.12915150821208954, -0.6353400945663452, -0.6920589804649353, 0.28119224309921265, -0.2632494866847992, 0.2551966905593872, -0.03937115520238876, 0.1626928150653839, -0.051037393510341644, 0.05545787513256073, 0.40935438871383667, 0.18130870163440704, 0.11933507770299911, 0.06787507981061935, -0.317551851272583, -0.10270541906356812, 0.08315218985080719, -0.0048003364354372025, -0.0719657689332962, 0.07121381163597107, 0.21677576005458832, 0.055840980261564255, 0.046443164348602295, -0.1325710564851761, -0.12499204277992249, -0.1616741418838501, -0.1561681032180786, 0.2589697241783142, -0.03758944571018219, 0.38536375761032104, -0.17677131295204163, -0.19316770136356354, -0.03690064325928688, -0.047653041779994965, -0.14776796102523804, 0.32686200737953186, 0.06849402189254761, 0.3568400740623474, 0.07519809901714325, -0.198856383562088, -0.042482271790504456, 0.2878503203392029, -0.004632715135812759, -0.10533257573843002, -0.46041423082351685, 0.08017820119857788, -0.1962360143661499, 0.12699276208877563, 0.5704232454299927, 0.11295150220394135, -0.03299751877784729, -0.2673785984516144, -0.3041576147079468, -0.2396586388349533, 0.3024803102016449, -0.212373286485672, 0.09158197045326233, -0.3325653672218323, 0.21114930510520935, -0.11304610222578049, 0.07268734276294708, -0.6023404002189636, -0.05057230591773987, 0.39933204650878906, 0.10202237218618393, -0.12980905175209045, 0.053738176822662354, -0.11674878001213074, -0.024020230397582054, -0.014669710770249367, -0.060580313205718994, 0.11269525438547134, -0.1374901682138443, 0.0742352306842804, -0.011994967237114906 ]
https://github.com/huggingface/datasets/issues/3896
Missing google file for `multi_news` dataset
OK. Should fix the viewer for 50 datasets <img width="148" alt="Capture d’écran 2022-03-14 à 11 51 02" src="https://user-images.githubusercontent.com/1676121/158157853-6c544a47-2d6d-4ac4-964a-6f10951ec36b.png">
## Dataset viewer issue for '*multi_news*' **Link:** https://huggingface.co/datasets/multi_news ``` Server error Status code: 400 Exception: FileNotFoundError Message: https://drive.google.com/uc?export=download&id=1vRY2wM6rlOZrf9exGTm5pXj5ExlVwJ0C/multi-news-original/train.src ``` Am I the one who added this dataset ? No
18
Missing google file for `multi_news` dataset ## Dataset viewer issue for '*multi_news*' **Link:** https://huggingface.co/datasets/multi_news ``` Server error Status code: 400 Exception: FileNotFoundError Message: https://drive.google.com/uc?export=download&id=1vRY2wM6rlOZrf9exGTm5pXj5ExlVwJ0C/multi-news-original/train.src ``` Am I the one who added this dataset ? No OK. Should fix the viewer for 50 datasets <img width="148" alt="Capture d’écran 2022-03-14 à 11 51 02" src="https://user-images.githubusercontent.com/1676121/158157853-6c544a47-2d6d-4ac4-964a-6f10951ec36b.png">
[ -0.19339753687381744, 0.14772891998291016, 0.01884012296795845, 0.29667869210243225, 0.05062642693519592, 0.3109288215637207, 0.2941398024559021, 0.18849144876003265, -0.07314808666706085, 0.12405858933925629, 0.14978766441345215, -0.0864580050110817, -0.34820032119750977, 0.23597352206707, 0.19406671822071075, -0.1597624272108078, 0.006994195282459259, 0.04990401864051819, 0.1567211151123047, -0.09288151562213898, -0.38704821467399597, 0.4132068157196045, -0.0313488207757473, -0.3563389182090759, -0.5102391839027405, -0.03299901634454727, -0.13496601581573486, 0.30645662546157837, -0.10503628849983215, -0.19111153483390808, -0.14665915071964264, 0.03524736315011978, 0.15531353652477264, 0.5570990443229675, -0.00011156823165947571, 0.14000678062438965, 0.2059161365032196, -0.08188396692276001, -0.18035362660884857, -0.11623798310756683, -0.322102427482605, -0.23581835627555847, -0.10573165863752365, -0.10406109690666199, -0.08748112618923187, -0.1110207736492157, 0.19428057968616486, -0.18928153812885284, 0.16733770072460175, 0.423309326171875, 0.22609548270702362, -0.08370550721883774, 0.41432985663414, -0.08361831307411194, 0.15696339309215546, -0.01815040409564972, 0.08686479181051254, 0.2028196156024933, -0.22118842601776123, 0.03884191811084747, 0.013131216168403625, 0.5771188139915466, 0.15174543857574463, -0.06918108463287354, -0.19973990321159363, -0.19297270476818085, -0.23814433813095093, -0.30236953496932983, 0.14456307888031006, 0.23966068029403687, 0.5382721424102783, 0.13487845659255981, -0.26338881254196167, 0.05382441729307175, 0.22056351602077484, 0.0333985835313797, 0.2443390190601349, 0.44270384311676025, 0.04675325006246567, 0.19998784363269806, -0.33299973607063293, -0.37877288460731506, -0.13419967889785767, 0.21702603995800018, -0.35321882367134094, 0.2478199601173401, -0.04005499556660652, 0.11189009249210358, -0.05362967029213905, 0.13004645705223083, -0.14305409789085388, -0.061080604791641235, -0.07979783415794373, -0.007327244617044926, -0.12375186383724213, -0.003069080412387848, 0.12599509954452515, -0.03237943351268768, -0.06643983721733093, 0.12317643314599991, -0.35468044877052307, -0.004565145820379257, -0.19666890799999237, 0.1291748285293579, 0.23124772310256958, -0.2642284035682678, -0.23070961236953735, 0.27666574716567993, 0.4023427963256836, 0.12343724817037582, 0.09206768870353699, -0.026377439498901367, -0.004959611687809229, -0.32081133127212524, -0.2527249753475189, -0.008970705792307854, 0.3598235845565796, 0.04411935433745384, -0.361774206161499, 0.15701892971992493, -0.3676454424858093, -0.11625314503908157, -0.09339457005262375, 0.24001872539520264, -0.0025725108571350574, 0.17893701791763306, 0.05826990306377411, 0.08625409007072449, -0.10051466524600983, -0.4063537120819092, -0.23306839168071747, 0.25919532775878906, 0.061142053455114365, 0.21634653210639954, 0.1470382809638977, -0.051943060010671616, 0.1378830224275589, -0.07102295756340027, 0.007186349481344223, -0.20449209213256836, 0.0477067232131958, -0.12149623036384583, -0.3182257413864136, 0.38433247804641724, 0.2175387442111969, 0.13313373923301697, 0.13976649940013885, -0.29360032081604004, 0.10318436473608017, 0.15289992094039917, -0.3207331597805023, -0.3783462345600128, -0.4226319491863251, 0.23036719858646393, -0.18005186319351196, -0.04677528142929077, -0.1888727843761444, 0.35081857442855835, -0.1459731161594391, -0.1942497193813324, 0.0030480176210403442, 0.2033003270626068, -0.2453908771276474, -0.12225209921598434, 0.15109765529632568, 0.6265178918838501, -0.42491576075553894, -0.19677101075649261, -0.3306940495967865, -0.17312286794185638, 0.012957446277141571, 0.10943841934204102, -0.18341605365276337, 0.33914580941200256, -0.4214858412742615, -0.04998631402850151, 0.4183911383152008, -0.15759062767028809, -0.3415842354297638, 0.013418684713542461, -0.2451459914445877, 0.11215720325708389, 0.16905498504638672, 0.10600525885820389, -0.073585644364357, -0.028796495869755745, 0.08478441834449768, 0.09611065685749054, -0.04395510256290436, 0.11521964520215988, -0.09483756124973297, -0.021211985498666763, -0.0877780020236969, 0.3473651707172394, 0.5229454636573792, -0.06425782293081284, 0.4516824781894684, -0.3917663097381592, 0.11761905252933502, -0.036061372607946396, 0.15151971578598022, 0.5031406283378601, 0.4215626120567322, 0.02257232740521431, 0.05816439166665077, -0.005333377048373222, -0.6120939254760742, 0.15817061066627502, 0.1179221123456955, -0.04935441166162491, -0.18750296533107758, -0.13993951678276062, -0.18343865871429443, -0.38698455691337585, -0.36198002099990845, -0.3025956153869629, 0.1464843600988388, 0.09190817922353745, -0.3827188313007355, 0.3406679928302765, -0.1360415816307068, 0.31722140312194824, -0.060980383306741714, 0.17440035939216614, -0.24505607783794403, 0.267066091299057, -0.29750415682792664, 0.13883231580257416, 0.14712373912334442, -0.017418913543224335, 0.17776238918304443, -0.17877839505672455, -0.08933092653751373, 0.37873443961143494, 0.09408251196146011, 0.20668253302574158, 0.46880829334259033, -0.10098393261432648, 0.27712497115135193, -0.7825944423675537, 0.034343473613262177, 0.11345221102237701, -0.01416432112455368, -0.21993717551231384, -0.4153306186199188, 0.15933279693126678, 0.09490732103586197, -0.21692878007888794, -0.036749694496393204, 0.21653805673122406, 0.1973753124475479, -0.10035392642021179, 0.23433150351047516, -0.1438574194908142, 0.10925628244876862, 0.17920178174972534, 0.19564563035964966, -0.15160655975341797, -0.30471271276474, 0.03466073423624039, 0.38440194725990295, -0.021331587806344032, -0.012732811272144318, 0.2074030637741089, -0.24637609720230103, 0.0037434473633766174, -0.030537711456418037, 0.3902893662452698, 0.3519551157951355, 0.19284676015377045, -0.026364091783761978, 0.11378882080316544, 0.3149714767932892, -0.26787543296813965, 0.10747075080871582, -0.03935304284095764, 0.2792128324508667, 0.30257534980773926, 0.07754292339086533, 0.11336689442396164, -0.35765451192855835, -0.05469490587711334, 0.33885547518730164, 0.19598911702632904, -0.32715103030204773, -0.037071824073791504, -0.18294107913970947, -0.285916805267334, -0.11396689713001251, 0.053515564650297165, -0.3040630519390106, -0.2806338667869568, 0.04394638538360596, 0.03344473987817764, -0.009797930717468262, 0.09957591444253922, -0.009661182761192322, 0.15832552313804626, 0.010761113837361336, 0.08621107041835785, -0.1488671600818634, -0.02665797807276249, -0.13675230741500854, 0.16837666928768158, 0.35455089807510376, -0.14177843928337097, 0.21430040895938873, -0.2508833408355713, 0.09323007613420486, -0.7055171728134155, -0.39873838424682617, 0.0841081291437149, -0.1574077010154724, 0.10677911341190338, 0.016712717711925507, 0.2984662353992462, -0.22083571553230286, 0.11465101689100266, 0.0354875773191452, 0.10961195826530457, -0.07956800609827042, 0.027530230581760406, -0.10649098455905914, 0.06024099141359329, 0.13964465260505676, -0.2922467887401581, -0.26577141880989075, -0.19237983226776123, 0.28298622369766235, -0.027037497609853745, 0.09031234681606293, 0.019967438653111458, 0.18176817893981934, 0.0526219867169857, 0.09473442286252975, -0.11278630793094635, -0.2340850979089737, -0.16742759943008423, 0.33722057938575745, -0.36951738595962524, -0.3251104950904846, 0.40319252014160156, 0.13525624573230743, -0.09314294159412384, -0.02188139036297798, -0.6589687466621399, -0.15370744466781616, -0.020483290776610374, -0.02742980234324932, -0.011847220361232758, -0.035103827714920044, 0.3883836269378662, -0.028054608032107353, -0.08318261057138443, -0.08580121397972107, -0.10541887581348419, -0.2251940369606018, -0.043028973042964935, 0.31982189416885376, -0.22282254695892334, 0.3266829550266266, 0.009833451360464096, 0.8642652630805969, 0.3669934570789337, 0.16936346888542175, 0.358083575963974, -0.07658527791500092, 0.5931630730628967, 0.01582401990890503, -0.1553368717432022, 0.34415799379348755, 0.01698705554008484, 0.12346254289150238, 0.13888749480247498, 0.016704939305782318, -0.17770831286907196, -0.303389310836792, -0.022632382810115814, -0.6120857000350952, -0.1729114055633545, -0.018582897260785103, 0.1418713480234146, 0.00674564391374588, 0.07935367524623871, -0.36382147669792175, 0.10583825409412384, -0.21585950255393982, 0.1868579387664795, 0.7676449418067932, 0.09207216650247574, -0.07758814096450806, -0.07520093023777008, -0.13697804510593414, -0.20555123686790466, 0.3628702759742737, -0.04253923520445824, -0.059814080595970154, -0.032646216452121735, 0.18569397926330566, 0.07969652861356735, 0.021002620458602905, 0.6152846217155457, -0.5279526710510254, -0.20103879272937775, -0.05956675857305527, 0.0810462161898613, 0.16309118270874023, -0.22587530314922333, -0.18762849271297455, 0.279416561126709, 0.05893688276410103, 0.4906257688999176, 0.0050886571407318115, -0.007086729630827904, 0.6816778182983398, -0.13901051878929138, -0.10851968079805374, -0.2263985127210617, -0.23211799561977386, -0.19926393032073975, -0.16221687197685242, -0.2675427794456482, 0.06618639081716537, 0.024045851081609726, -0.07953714579343796, -0.18480587005615234, 0.1003589853644371, -0.08973939716815948, -0.05790700018405914, -0.3403131663799286, 0.1656973958015442, 0.3385172188282013, 0.006957072764635086, 0.2885500192642212, 0.21978095173835754, 0.5261694192886353, 0.6920530200004578, -0.10160434246063232, -0.35551023483276367, 0.2832661271095276, -0.16974085569381714, 0.094647616147995, 0.3707568645477295, 0.08875201642513275, -0.17569062113761902, 0.3893864154815674, 0.31062832474708557, 0.00958289299160242, 0.001291752327233553, 0.3459613621234894, -0.09352746605873108, -0.4325888156890869, -0.25798749923706055, 0.3867136836051941, 0.09715554118156433, 0.07260586321353912, 0.45007774233818054, 0.2394559383392334, -0.11035235971212387, -0.26254886388778687, -0.19941097497940063, 0.8743022680282593, -0.10557553172111511, 0.03652467951178551, 0.04119843617081642, -0.07802427560091019, 0.31613224744796753, -0.48106223344802856, 0.23527085781097412, -0.1395193189382553, -0.23602356016635895, -0.19922694563865662, -0.031035268679261208, 0.14323343336582184, 0.06304597854614258, -0.11333034932613373, 0.26761260628700256, 0.19907329976558685, 0.24506846070289612, -0.04693515598773956, 0.28371381759643555, -0.004589099436998367, 0.1779581755399704, 0.4041236639022827, 0.1407441347837448, -0.07085096836090088, 0.21096374094486237, -0.3579336702823639, 0.0289870984852314, -0.03321577236056328, -0.15728577971458435, -0.5427073240280151, -0.09053096175193787, -0.4030107855796814, 0.39425361156463623, -0.02623816952109337, -0.5485453009605408, 0.13327443599700928, 0.3025316894054413, -0.029766984283924103, -0.1808130294084549, -0.30024322867393494, 0.4626691937446594, -0.05274612456560135, -0.19229410588741302, -0.28028425574302673, -0.1476958990097046, 0.2770237326622009, 0.03477495163679123, -0.2768056392669678, 0.24644851684570312, -0.2896997034549713, -0.28106075525283813, -0.19392180442810059, 0.014641083776950836, -0.29358476400375366, 0.05959383398294449, 0.062171582132577896, -0.039869122207164764, -0.10772743821144104, -0.2321556657552719, 0.12966884672641754, -0.12656503915786743, 0.1910322904586792, -0.04555016756057739, 0.07729347795248032, -0.2910560965538025, -0.16230295598506927, 0.40341293811798096, 0.08871552348136902, -0.0648447722196579, 0.3651229441165924, 0.21721182763576508, -0.2001137137413025, -0.23050162196159363, 0.2656658887863159, 0.18717534840106964, -0.20674383640289307, -0.08008845150470734, -0.09486547857522964, 0.3903545141220093, 0.28571587800979614, -0.04590059444308281, 0.06612417846918106, 0.019341278821229935, 0.07331906259059906, -0.5692015290260315, 0.02982594259083271, 0.10685869306325912, -0.2920108437538147, 0.0013111233711242676, -0.19044649600982666, -0.05688151344656944, 0.34309878945350647, 0.10159905254840851, -0.33091896772384644, 0.14727163314819336, -0.18280091881752014, 0.04235956817865372, 0.1822243183851242, 0.07326626777648926, 0.25936228036880493, -0.030634189024567604, 0.1274583339691162, -0.10573801398277283, -0.13892140984535217, -0.20804160833358765, 0.060590874403715134, 0.13564568758010864, 0.03787645697593689, -0.023295920342206955, -0.0012190500274300575, -0.06557993590831757, -0.3560068607330322, 0.24625533819198608, -0.0564933605492115, 0.042777687311172485, 0.07468175888061523, -0.053453296422958374, -0.05165143683552742, -0.32693833112716675, -0.12035172432661057, -0.06558836251497269, -0.014025874435901642, 0.5011453032493591, 0.01915692538022995, 0.18323670327663422, 0.1135311871767044, 0.017737090587615967, -0.14527162909507751, 0.02401825785636902, -0.016199514269828796, 0.14027196168899536, 0.2632191777229309, -0.31789612770080566, 0.05049381032586098, -0.07086862623691559, 0.29167306423187256, -0.05301179736852646, -0.6616233587265015, 0.13647602498531342, 0.2202731966972351, 0.19752344489097595, -0.3170921802520752, 0.018575385212898254, 0.4579141139984131, -0.10708065330982208, 0.08079823851585388, 0.02578776329755783, 0.1751931756734848, 0.11092312633991241, -0.0504557341337204, 0.14449596405029297, 0.4529914855957031, 0.10631264746189117, 0.31541991233825684, -0.17508241534233093, 0.03193611279129982, 0.16884025931358337, 0.11909999698400497, 0.3799026310443878, 0.06366679072380066, 0.3973349928855896, -0.15286460518836975, -0.01842273212969303, -0.11993984133005142, 0.13642725348472595, 0.18747028708457947, -0.6690118908882141, 0.43487828969955444, 0.29835835099220276, -0.5696749687194824, -0.2074987292289734, 0.041318610310554504, 0.387459933757782, -0.17370593547821045, 0.14284947514533997, -0.4014228284358978, 0.31450551748275757, -0.01829555630683899, 0.45920372009277344, -0.02523675188422203, -0.2029726505279541, -0.2870672941207886, 0.23180338740348816, 0.1827479749917984, -0.09069213271141052, 0.19609461724758148, 0.2783082127571106, -0.2991325259208679, 0.007464735768735409, 0.07987353205680847, -0.06429808586835861, 0.2961605489253998, -0.2395419329404831, 0.1581362634897232, 0.2151978611946106, -0.2175857424736023, 0.15813659131526947, 0.4979410469532013, 0.23709659278392792, -0.08970396965742111, 0.21890610456466675, 0.1470651924610138, 0.31476661562919617, -0.17473453283309937, 0.06603768467903137, 0.03373829647898674, 0.27531176805496216, -0.278222918510437, 0.09178733825683594, 0.13884885609149933, -0.16051575541496277, 0.1649041324853897, 0.2459253966808319, 0.16351234912872314, -0.2776746451854706, -0.34985384345054626, -0.6125110387802124, -0.12068958580493927, -0.22950780391693115, -0.23510867357254028, -0.43212318420410156, -0.10145639628171921, 0.3739742934703827, 0.03230440616607666, 0.03772510215640068, 0.11597571521997452, 0.06930256634950638, 0.09057323634624481, 0.21520575881004333, 0.36105936765670776, 0.027172576636075974, -0.1560814380645752, -0.6118451356887817, -0.6220272183418274, 0.3121070861816406, -0.1908147633075714, 0.15424390137195587, -0.018172577023506165, 0.06495275348424911, -0.09235603362321854, -0.0006757788360118866, 0.49991947412490845, 0.23515337705612183, 0.16780582070350647, 0.1696309745311737, -0.2408064752817154, -0.10444535315036774, 0.171658456325531, 0.0752766951918602, -0.21495971083641052, -0.07439526170492172, 0.2071313112974167, -0.014859110116958618, 0.09544309228658676, -0.14767605066299438, -0.12320590764284134, -0.16647960245609283, -0.21596702933311462, 0.31213200092315674, -0.081292524933815, 0.47096097469329834, -0.2023109495639801, -0.1464759111404419, 0.06318570673465729, -0.015003412961959839, -0.12501654028892517, 0.31036582589149475, 0.13719172775745392, 0.4281408190727234, 0.048893868923187256, -0.176872119307518, -0.07187402993440628, 0.3071300983428955, 0.06557236611843109, 0.045843858271837234, -0.504386305809021, 0.0007201489061117172, -0.139823779463768, 0.042690202593803406, 0.5381402969360352, 0.12081243097782135, 0.025170013308525085, -0.15569758415222168, -0.33519256114959717, -0.24812538921833038, 0.1966717690229416, -0.38065996766090393, 0.04838961735367775, -0.20211689174175262, 0.17531022429466248, -0.11051430553197861, 0.22786322236061096, -0.3238804340362549, 0.06149549037218094, 0.4632428288459778, 0.05552782863378525, -0.11578062176704407, 0.18028588593006134, -0.023789308965206146, -0.0928945392370224, 0.057241905480623245, -0.1707109659910202, 0.09278468787670135, -0.15562790632247925, 0.09495560824871063, -0.04716286063194275 ]
https://github.com/huggingface/datasets/issues/3889
Cannot load beans dataset (Couldn't reach the dataset)
Hi ! A pull request is open to fix the dataset, we'll release a patch soon with a new release of `datasets` :)
## Describe the bug The beans dataset is unavailable to download. ## Steps to reproduce the bug ```python from datasets import load_dataset ds = load_dataset('beans') ``` ## Expected results The dataset would be downloaded with no issue. ## Actual results ``` ConnectionError: Couldn't reach https://storage.googleapis.com/ibeans/train.zip (error 403) ``` [It looks like the billing of this project has been disabled because it is associated with a delinquent account.](https://storage.googleapis.com/ibeans/train.zip ) ## Environment info Google Colab
23
Cannot load beans dataset (Couldn't reach the dataset) ## Describe the bug The beans dataset is unavailable to download. ## Steps to reproduce the bug ```python from datasets import load_dataset ds = load_dataset('beans') ``` ## Expected results The dataset would be downloaded with no issue. ## Actual results ``` ConnectionError: Couldn't reach https://storage.googleapis.com/ibeans/train.zip (error 403) ``` [It looks like the billing of this project has been disabled because it is associated with a delinquent account.](https://storage.googleapis.com/ibeans/train.zip ) ## Environment info Google Colab Hi ! A pull request is open to fix the dataset, we'll release a patch soon with a new release of `datasets` :)
[ -0.4721037447452545, 0.2937532067298889, -0.16326172649860382, 0.4070332646369934, 0.3040822148323059, 0.002488046884536743, 0.1432955116033554, 0.007078506052494049, -0.04815194010734558, 0.2847830057144165, -0.0638594776391983, 0.36830946803092957, -0.01640799269080162, 0.36103248596191406, -0.023722872138023376, 0.05770750343799591, -0.10812807828187943, -0.16455543041229248, -0.5758637189865112, 0.023881420493125916, -0.29400479793548584, 0.27385950088500977, -0.023321762681007385, -0.03747433423995972, -0.26890769600868225, -0.07549312710762024, -0.0744948610663414, -0.024240560829639435, -0.4398054778575897, -0.2356322854757309, 0.3729545474052429, 0.006379209458827972, 0.14068903028964996, 0.5160427689552307, -0.00011064363206969574, -0.016040299087762833, 0.3975132703781128, 0.08944728970527649, -0.4802115261554718, -0.3550446033477783, -0.6385272741317749, -0.22087441384792328, 0.1271832287311554, -0.005602657794952393, -0.32492905855178833, 0.29843300580978394, 0.13656647503376007, -0.16404175758361816, 0.1632099449634552, 0.3456367254257202, 0.2839321494102478, -0.09326418489217758, 0.01297389343380928, -0.2624518573284149, 0.33147838711738586, -0.3533501625061035, -0.1359381526708603, 0.43481284379959106, 0.17381644248962402, -0.1343369483947754, 0.2780841588973999, 0.24613794684410095, 0.12213124334812164, -0.12010911107063293, 0.10307729244232178, -0.03954713046550751, -0.010316342115402222, -0.37597939372062683, 0.2868286967277527, 0.1133018434047699, 1.0801273584365845, -0.08981817215681076, -0.5385802388191223, 0.14898362755775452, 0.17270241677761078, -0.1384824812412262, 0.4577840268611908, 0.19398245215415955, -0.02671610377728939, 0.14731833338737488, -0.3441678285598755, -0.17303094267845154, -0.22076869010925293, 0.29201406240463257, -0.15785008668899536, 0.23007291555404663, -0.10404238104820251, 0.04394415393471718, -0.08052366971969604, 0.057459741830825806, 0.4158937931060791, 0.09819146990776062, 0.06376823782920837, 0.22073668241500854, -0.02574627473950386, 0.1214708536863327, -0.00903327763080597, 0.21293577551841736, 0.001631360501050949, 0.48583436012268066, 0.06652774661779404, -0.1074586734175682, 0.0638754814863205, 0.11071714758872986, 0.4132048785686493, 0.07941240072250366, 0.05715438723564148, 0.15711510181427002, 0.36234205961227417, 0.3630513548851013, -0.14130359888076782, -0.08430840075016022, -0.26151925325393677, -0.17849433422088623, 0.12323682010173798, 0.12654253840446472, 0.11746817827224731, -0.21926245093345642, -0.49478769302368164, 0.11543051898479462, -0.24057617783546448, -0.04954412579536438, -0.06877414882183075, 0.2745152413845062, -0.31547486782073975, -0.24095335602760315, 0.35819196701049805, 0.14308789372444153, 0.03676526993513107, -0.167122483253479, -0.2656649947166443, 0.04002504050731659, -0.24965283274650574, 0.10260432213544846, 0.2079627364873886, -0.3214915692806244, 0.2372710406780243, -0.18051815032958984, -0.07885323464870453, -0.08674576878547668, 0.12951715290546417, -0.16477398574352264, -0.39721664786338806, 0.47509461641311646, 0.2687702775001526, -0.044438041746616364, 0.02006039209663868, 0.00900605320930481, -0.05222855135798454, 0.1811431497335434, -0.16617059707641602, -0.1524888575077057, 0.1472977250814438, 0.26209044456481934, -0.25119835138320923, -0.10911770164966583, -0.6378191709518433, 0.22270116209983826, -0.0033721253275871277, -0.0461198166012764, 0.021601296961307526, -0.13728152215480804, -0.23919862508773804, -0.2655563950538635, 0.1706475168466568, 0.45653653144836426, -0.22456112504005432, -0.2256511002779007, -0.15524786710739136, -0.0981149673461914, 0.14071619510650635, 0.15745753049850464, -0.21020503342151642, 0.29025620222091675, -0.10736400634050369, 0.046661123633384705, 0.22914452850818634, -0.00659637525677681, -0.7131423354148865, 0.0040094126015901566, -0.06442968547344208, 0.06082817167043686, -0.17248883843421936, 0.04996446892619133, -0.0024190712720155716, 0.15832051634788513, 0.3343406915664673, 0.5018738508224487, -0.14607951045036316, -0.1446341723203659, -0.15958920121192932, -0.32229918241500854, 0.16647671163082123, 0.1439739167690277, 0.3315448462963104, 0.14159055054187775, 0.2922762334346771, -0.2188187837600708, 0.11723804473876953, 0.2602132558822632, -0.1560247540473938, 0.40147411823272705, 0.21557065844535828, -0.0367308109998703, 0.04426223412156105, -0.3375190198421478, -0.030314117670059204, 0.31086236238479614, -0.16759759187698364, 0.29839956760406494, -0.15556497871875763, -0.11852621287107468, -0.38788899779319763, 0.08612051606178284, -0.043708208948373795, 0.16288986802101135, 0.13269591331481934, -0.1260160207748413, -0.03976907581090927, 0.09693275392055511, -0.06582188606262207, 0.4536837637424469, -0.07210791856050491, 0.2146778553724289, -0.44419389963150024, 0.5075233578681946, -0.09481680393218994, -0.2164161652326584, 0.16017551720142365, -0.12683621048927307, 0.2517755925655365, -0.10237587988376617, -0.2076101303100586, 0.11641120165586472, 0.08234382420778275, 0.14731764793395996, 0.19112834334373474, 0.26727554202079773, 0.10457974672317505, -0.36861714720726013, -0.03548736870288849, 0.30773845314979553, 0.17166748642921448, 0.11338838189840317, 0.11322231590747833, 0.017508819699287415, -0.06531569361686707, -0.07756897062063217, 0.06072638928890228, 0.017487144097685814, 0.23538649082183838, -0.013647299259901047, -0.1798921823501587, 0.07181955873966217, 0.3981321156024933, -0.09911151230335236, -0.22901631891727448, -0.017862504348158836, -0.03408702835440636, 0.24954789876937866, 0.24453529715538025, -0.06700354814529419, 0.05387963727116585, 0.08477844297885895, -0.08122653514146805, 0.016513798385858536, 0.11880215257406235, 0.12583550810813904, 0.2569773197174072, 0.0632556900382042, 0.06401480734348297, 0.0012466125190258026, 0.1514451652765274, -0.12444543838500977, 0.30709895491600037, 0.07221872359514236, 0.407084196805954, 0.08437977731227875, 0.14705462753772736, 0.10259028524160385, -0.09825271368026733, -0.10082177817821503, 0.10553836822509766, 0.22057965397834778, -0.1456204205751419, 0.2648278772830963, -0.23104555904865265, -0.4061813950538635, 0.05005389824509621, -0.2189500480890274, -0.10190033912658691, -0.05447107553482056, -0.007994744926691055, 0.22300049662590027, 0.005952175706624985, -0.023386145010590553, -0.09614397585391998, 0.2160826176404953, 0.13415008783340454, -0.21200701594352722, -0.14773499965667725, 0.08663385361433029, -0.23560798168182373, 0.12626375257968903, 0.34023165702819824, -0.013319836929440498, 0.37620800733566284, -0.2595165967941284, -0.07835409790277481, -0.31965237855911255, -0.16834573447704315, 0.016361016780138016, 0.09659844636917114, 0.5016029477119446, 0.17343713343143463, 0.24193210899829865, -0.17618650197982788, 0.10515517741441727, 0.22043676674365997, -0.17629972100257874, -0.12922590970993042, -0.136980801820755, 0.05216425657272339, -0.043660253286361694, 0.0928468257188797, -0.5160238742828369, -0.45173928141593933, -0.19086411595344543, 0.2059095948934555, 0.10739630460739136, 0.04759969189763069, -0.055875182151794434, 0.11873294413089752, 0.025614220649003983, 0.6462154984474182, -0.03504931926727295, -0.2899831533432007, -0.2966691553592682, 0.2920728027820587, -0.08960928022861481, -0.3089388906955719, 0.14532122015953064, 0.030860930681228638, 0.19817695021629333, 0.13977737724781036, -0.6269014477729797, 0.01515390444546938, -0.13879399001598358, 0.22280004620552063, -0.1545993536710739, -0.036499008536338806, 0.15613692998886108, -0.06116266921162605, -0.046744875609874725, -0.030807439237833023, -0.3570402264595032, -0.20736080408096313, 0.2021426558494568, 0.41010817885398865, 0.009860815480351448, 0.31650447845458984, -0.1671999990940094, 0.4252545237541199, -0.06557340919971466, 0.14724156260490417, 0.3459513187408447, 0.018685121089220047, 0.09724961221218109, -0.03670702129602432, -0.3450371026992798, 0.04552224278450012, -0.18671882152557373, -0.49848121404647827, -0.046965911984443665, 0.16818249225616455, -0.09825354069471359, -0.35398948192596436, -0.16874772310256958, -0.3403344750404358, -0.1212657243013382, -0.016375331208109856, 0.02132743038237095, -0.03345195949077606, 0.25598862767219543, 0.08063619583845139, -0.006409633904695511, -0.14206579327583313, -0.05901110917329788, 0.2135864645242691, 0.11022865027189255, 0.07198628783226013, 0.10034072399139404, -0.487312376499176, -0.6308299899101257, 0.25903141498565674, 0.008844866417348385, 0.0005935961380600929, -0.24966886639595032, 0.30603551864624023, 0.18442639708518982, -0.0756632462143898, 0.5313766002655029, -0.43992751836776733, 0.09447222203016281, 0.19715797901153564, -0.029260579496622086, -0.16775266826152802, -0.16703560948371887, -0.11045350134372711, 0.046430736780166626, 0.291615754365921, 0.3247533142566681, -0.17621125280857086, 0.18618451058864594, -0.04341072589159012, 0.15068067610263824, -0.2367672622203827, -0.09321380406618118, -0.379817396402359, -0.6025207042694092, -0.2135080099105835, -0.0858873799443245, 0.044188641011714935, 0.24642430245876312, -0.07897966355085373, -0.26230600476264954, -0.009695814922451973, 0.10423464328050613, 0.03981157764792442, 0.02010176330804825, 0.12702688574790955, -0.10635942965745926, 0.2699289619922638, -0.00886920839548111, -0.1804511994123459, 0.6025006771087646, 1.0502088069915771, -0.11654621362686157, -0.2565762996673584, 0.25620558857917786, 0.08096951991319656, -0.08870131522417068, 0.22280767560005188, -0.06867358088493347, 0.05778001248836517, 0.11548997461795807, 0.033871594816446304, 0.05450607091188431, 0.13144682347774506, -0.001448407769203186, 0.07956091314554214, -0.27699247002601624, -0.48131582140922546, 0.5890465974807739, 0.05148365721106529, -0.083302803337574, 0.4626310467720032, 0.07648459076881409, -0.0981578379869461, 0.11174030601978302, 0.018458425998687744, 1.0000555515289307, -0.30930399894714355, -0.16946576535701752, 0.08264496922492981, 0.052192166447639465, 0.510668933391571, -0.39420175552368164, 0.3396223187446594, -0.23335030674934387, -0.4900539219379425, -0.14133191108703613, -0.08374273031949997, -0.026273570954799652, 0.1201617643237114, -0.12184444069862366, 0.34040266275405884, -0.432842493057251, 0.028098655864596367, 0.17056095600128174, -0.020048130303621292, -0.4061286747455597, 0.26228469610214233, -0.4714587330818176, 0.22571370005607605, -0.10989023745059967, 0.48435357213020325, -0.2636076509952545, -0.04396072402596474, -0.16222460567951202, -0.06377008557319641, -0.4644102454185486, 0.27270328998565674, -0.4714396297931671, 0.10581552982330322, 0.011248642578721046, -0.15146607160568237, -0.0012186206877231598, 0.19000980257987976, 0.03842867910861969, 0.15865984559059143, -0.24703460931777954, 0.2703690230846405, -0.3114195466041565, -0.24262699484825134, -0.14034514129161835, 0.1408325731754303, 0.4271160364151001, -0.1609935462474823, -0.23094791173934937, 0.15114259719848633, -0.15412557125091553, -0.3191987872123718, 0.36936789751052856, 0.08976329118013382, 0.12894779443740845, -0.21216803789138794, 0.13160105049610138, -0.08644019067287445, 0.05820083990693092, -0.15441372990608215, 0.1749214380979538, 0.1530902236700058, 0.11877880245447159, 0.29813098907470703, 0.2600039541721344, -0.1723320335149765, -0.18491794168949127, 0.6492555141448975, 0.13143405318260193, -0.1752392053604126, 0.23019838333129883, 0.19794584810733795, -0.1388305425643921, -0.27255183458328247, -0.06159713491797447, 0.22745732963085175, -0.0834280252456665, 0.18207843601703644, -0.19332510232925415, 0.25441813468933105, -0.07935457676649094, 0.07790658622980118, 0.326090931892395, -0.02149362862110138, 0.05415648594498634, -0.4913090467453003, 0.0654711052775383, 0.22821494936943054, 0.1223483681678772, 0.056845493614673615, 0.04287011921405792, -0.2232799530029297, 0.0025572869926691055, -0.36706602573394775, -0.33557915687561035, 0.1376219242811203, -0.5075801610946655, -0.21299168467521667, 0.33305105566978455, 0.09665486216545105, 0.2524693012237549, -0.10831908881664276, 0.17375439405441284, 0.028458761051297188, -0.027060043066740036, -0.23876023292541504, -0.047920744866132736, 0.10127457976341248, 0.11249226331710815, -0.13163557648658752, -0.11194126307964325, -0.4907904863357544, -0.08124706149101257, 0.01216534897685051, 0.1495356559753418, 0.29819101095199585, 0.07748039066791534, -0.35435613989830017, -0.10216595232486725, 0.17062130570411682, -0.3136625289916992, 0.1135520190000534, 0.02053220570087433, 0.20105960965156555, 0.07467043399810791, 0.09355637431144714, 0.32659515738487244, 0.06658904254436493, -0.34261655807495117, -0.14524617791175842, 0.07365143299102783, 0.0630740076303482, 0.44999727606773376, -0.3078930377960205, 0.09125714004039764, 0.04279131442308426, 0.055006831884384155, 0.20856612920761108, -0.32999205589294434, -0.04833042249083519, 0.14882993698120117, 0.30051180720329285, -0.19821316003799438, -0.1970638930797577, -0.3616931438446045, 0.17639639973640442, -0.26123639941215515, 0.18130899965763092, 0.1485966295003891, -0.06367301195859909, -0.035400211811065674, 0.06847410649061203, 0.39742785692214966, 0.33266621828079224, 0.2357756793498993, 0.016320984810590744, -0.05391048267483711, 0.1439305543899536, 0.116798035800457, 0.12006987631320953, 0.03591453284025192, 0.09663721919059753, -0.18025943636894226, 0.25414812564849854, -0.11384322494268417, 0.09093119204044342, -0.13489052653312683, -0.3188881576061249, -0.1619255244731903, 0.15010413527488708, -0.17836496233940125, -0.041521064937114716, 0.04602297022938728, 0.18713657557964325, -0.4841126799583435, -0.07530464231967926, -0.32721877098083496, 0.014479819685220718, -0.05402061343193054, 0.25174349546432495, -0.12369691580533981, -0.21494659781455994, 0.018162593245506287, 0.03267056122422218, -0.04992081597447395, -0.13594742119312286, 0.2046564519405365, 0.07957737892866135, -0.19536642730236053, -0.3063455820083618, -0.08367051929235458, 0.23242861032485962, 0.1232752650976181, -0.14542526006698608, 0.26660221815109253, -0.04510074853897095, -0.1854870617389679, -0.001417260617017746, 0.2231108844280243, 0.36626091599464417, 0.155378520488739, 0.0839952677488327, -0.1025412455201149, 0.10152071714401245, -0.12897709012031555, -0.02941625751554966, 0.27469757199287415, 0.3905556797981262, -0.1389596164226532, 0.17736639082431793, 0.18286317586898804, -0.1716829240322113, 0.22171366214752197, 0.048101816326379776, 0.5168676376342773, -0.0709502100944519, -0.03732588142156601, -0.3788900077342987, 0.0779128298163414, -0.1918092519044876, -0.0258985236287117, -0.35280895233154297, 0.033036116510629654, 0.28429996967315674, 0.022093310952186584, 0.06862741708755493, -0.07355393469333649, 0.07574256509542465, -0.15104223787784576, 0.2944265305995941, 0.5131560564041138, 0.38959527015686035, -0.321839302778244, -0.11042381823062897, -0.20642709732055664, 0.17944596707820892, -0.17419536411762238, -0.06489469110965729, -0.01914556324481964, -0.044768646359443665, -0.11627262085676193, 0.09697632491588593, 0.22860875725746155, 0.02568073198199272, 0.312669575214386, 0.19981953501701355, -0.3296373784542084, -0.33769041299819946, 0.07893463224172592, 0.10361073911190033, -0.14334818720817566, -0.22771525382995605, 0.06529872119426727, -0.629916787147522, 0.041583724319934845, -0.30095618963241577, -0.3014414310455322, 0.05956147238612175, 0.3727060556411743, 0.5544360280036926, 0.11016540974378586, 0.6199730634689331, -0.056037530303001404, -0.05287041887640953, -0.15233297646045685, -0.4463806450366974, -0.07274895906448364, 0.11867059767246246, 0.08319802582263947, 0.15440583229064941, 0.07870322465896606, 0.11379258334636688, -0.1230502501130104, 0.23278772830963135, -0.10044220834970474, 0.4025145173072815, -0.03453471139073372, -0.18464912474155426, -0.24663889408111572, 0.13446052372455597, 0.08416400849819183, 0.08550641685724258, -0.0067001283168792725, -0.1290949285030365, -0.21937279403209686, -0.18405479192733765, 0.4958956241607666, -0.1916484385728836, -0.19728298485279083, -0.32026973366737366, 0.14121820032596588, 0.2225211262702942, 0.09338458627462387, -0.2740246057510376, 0.011803172528743744, 0.23228046298027039, -0.04947856813669205, -0.3282744586467743, 0.2603624165058136, -0.062167663127183914, 0.21389798820018768, 0.009881190955638885, 0.28023746609687805, -0.12630879878997803, -0.14065614342689514, -0.004186712205410004, -0.1062544509768486 ]
https://github.com/huggingface/datasets/issues/3888
IterableDataset columns and feature types
@lhoestq so in order to address what’s not completed in this issue, do you think it makes sense to add a param `features` to `IterableDataset.map` so that the output features right after the `map` are defined there?
Right now, an IterableDataset (e.g. when streaming a dataset) doesn't require to know the list of columns it contains, nor their types: `my_iterable_dataset.features` may be `None` However it's often interesting to know the column types and types. This helps knowing what's inside your dataset without having to manually check a few examples, and this is useful to prepare a processing pipeline or to train models. Here are a few cases that lead to `features` being `None`: 1. when loading a dataset with `load_dataset` on CSV, JSON Lines, etc. files: type inference is only done when iterating over the dataset 2. when calling `map`, because we don't know in advance what's the output of the user's function passed to `map` 3. when calling `rename_columns`, `remove_columns`, etc. because they rely on `map` Things we can consider, for each point above: 1.a infer the type automatically from the first samples on the dataset using prefetching, when the dataset builder doesn't provide the `features` 2.a allow the user to specify the `features` as an argument to `map` (this would be consistent with the non-streaming API) 2.b prefetch the first output value to infer the type 3.a don't rely on `map` directly and reuse the previous `features` and rename/remove the corresponding ones The thing is that prefetching can take a few seconds, while the operations above are instantaneous since no data are downloaded. Therefore I'm not sure whether this solution may be worth it. Maybe prefetching could also be done when explicitly asked by the user cc @mariosasko @albertvillanova
37
IterableDataset columns and feature types Right now, an IterableDataset (e.g. when streaming a dataset) doesn't require to know the list of columns it contains, nor their types: `my_iterable_dataset.features` may be `None` However it's often interesting to know the column types and types. This helps knowing what's inside your dataset without having to manually check a few examples, and this is useful to prepare a processing pipeline or to train models. Here are a few cases that lead to `features` being `None`: 1. when loading a dataset with `load_dataset` on CSV, JSON Lines, etc. files: type inference is only done when iterating over the dataset 2. when calling `map`, because we don't know in advance what's the output of the user's function passed to `map` 3. when calling `rename_columns`, `remove_columns`, etc. because they rely on `map` Things we can consider, for each point above: 1.a infer the type automatically from the first samples on the dataset using prefetching, when the dataset builder doesn't provide the `features` 2.a allow the user to specify the `features` as an argument to `map` (this would be consistent with the non-streaming API) 2.b prefetch the first output value to infer the type 3.a don't rely on `map` directly and reuse the previous `features` and rename/remove the corresponding ones The thing is that prefetching can take a few seconds, while the operations above are instantaneous since no data are downloaded. Therefore I'm not sure whether this solution may be worth it. Maybe prefetching could also be done when explicitly asked by the user cc @mariosasko @albertvillanova @lhoestq so in order to address what’s not completed in this issue, do you think it makes sense to add a param `features` to `IterableDataset.map` so that the output features right after the `map` are defined there?
[ -0.345829039812088, -0.03658246248960495, -0.09445714950561523, -0.19148214161396027, 0.3538818359375, -0.060715414583683014, 0.4520321488380432, 0.18342328071594238, 0.18687251210212708, 0.12598203122615814, 0.20759451389312744, 0.1828855574131012, -0.29392388463020325, 0.35347500443458557, 0.15103523433208466, -0.19050244987010956, -0.12605616450309753, 0.3161492645740509, -0.07357132434844971, 0.12917639315128326, -0.3416995108127594, -0.026169428601861, -0.1522383987903595, -0.08447989821434021, 0.03896355628967285, 0.058063358068466187, 0.02423563040792942, -0.07555121928453445, 0.07619006186723709, -0.4829534888267517, 0.0079128947108984, 0.25329115986824036, 0.10737337917089462, -0.2130817174911499, -0.00012131720723118633, 0.025674067437648773, 0.24931903183460236, -0.3030569553375244, -0.2663329541683197, -0.13705475628376007, -0.27683573961257935, -0.2645254135131836, 0.08765368908643723, -0.4622795879840851, -0.19228839874267578, -0.4004332423210144, -0.0026319194585084915, -0.33409935235977173, -0.2505650520324707, 0.13572610914707184, 0.09659779071807861, 0.1748662143945694, -0.1839139461517334, 0.16870945692062378, 0.15622815489768982, 0.40748167037963867, -0.4352334141731262, -0.5254857540130615, 0.4732707142829895, 0.21861979365348816, 0.005396567285060883, 0.3527628183364868, -0.199266716837883, -0.09815436601638794, 0.2253117859363556, 0.24054229259490967, 0.11994771659374237, -0.2912815511226654, -0.1995408535003662, 0.2531293034553528, 0.587655782699585, -0.14738687872886658, -0.1566404104232788, -0.6290777921676636, 0.008811757899820805, -0.21388503909111023, 0.029442451894283295, -0.17739000916481018, -0.05908118560910225, 0.1239791065454483, -0.23374424874782562, -0.15530964732170105, 0.033894121646881104, 0.03715478628873825, 0.21393492817878723, 0.021429643034934998, -0.055540554225444794, 0.20455852150917053, -0.14616771042346954, -0.1839940994977951, 0.14504562318325043, -0.4956359267234802, 0.08480609208345413, 0.14128334820270538, 0.06940226256847382, -0.3035679757595062, 0.21117529273033142, -0.08745229989290237, -0.1006712019443512, 0.17388916015625, 0.1939207762479782, 0.06876587867736816, -0.16501349210739136, -0.06763757765293121, 0.4658948481082916, 0.018277030438184738, -0.11731166392564774, 0.13676586747169495, 0.2463804930448532, 0.05914641544222832, 0.28615155816078186, -0.22623899579048157, 0.19274209439754486, 0.3311704695224762, 0.7352901697158813, 0.32791098952293396, 0.4050895571708679, -0.0830484926700592, 0.09462147951126099, -0.04663792625069618, -0.02895955555140972, -0.09565268456935883, 0.14212393760681152, 0.02760646864771843, 0.06080958619713783, 0.37192946672439575, -0.059366703033447266, 0.06264469027519226, -0.08517073839902878, -0.18869955837726593, -0.033458203077316284, -0.3323008716106415, -0.05179184302687645, 0.21734505891799927, 0.1948758363723755, 0.1268548220396042, 0.014569945633411407, -0.2571468949317932, -0.17603377997875214, 0.3121415674686432, 0.23414835333824158, -0.2109525501728058, 0.29896196722984314, 0.3429737091064453, -0.1602562516927719, 0.17551109194755554, 0.025562481954693794, -0.05189574137330055, -0.3505462110042572, 0.4376462697982788, -0.012177594006061554, -0.5634698271751404, 0.06536386907100677, 0.046927034854888916, -0.1694682240486145, 0.18488161265850067, -0.25900205969810486, 0.5552544593811035, 0.10272545367479324, -0.20978960394859314, -0.01995997130870819, -0.036717236042022705, -0.159404918551445, -0.20756614208221436, -0.006040165200829506, 0.34384995698928833, -0.27554383873939514, -0.24854373931884766, -0.15514951944351196, -0.2285110354423523, 0.30884265899658203, -0.3155331313610077, -0.1216311976313591, 0.11630785465240479, 0.06521790474653244, 0.20151330530643463, 0.3790392279624939, 0.23159709572792053, 0.11202836781740189, 0.19730348885059357, 0.1926736980676651, 0.6841975450515747, 0.2379559874534607, 0.1367644965648651, 0.23810884356498718, -0.2870349884033203, 0.08236610889434814, 0.07024269551038742, -0.3660770058631897, -0.04425719380378723, -0.07623737305402756, -0.2435830682516098, 0.030552677810192108, 0.21731945872306824, 0.19955863058567047, 0.4316989481449127, -0.10769801586866379, -0.1306951493024826, 0.0015024542808532715, -0.23688438534736633, 0.09480643272399902, -0.07430828362703323, 0.359417200088501, 0.016678616404533386, 0.09389583021402359, -0.35606080293655396, -0.6283156871795654, 0.1979670524597168, 0.5719727277755737, -0.12531176209449768, -0.17143137753009796, -0.42005378007888794, 0.22561877965927124, 0.1122651919722557, 0.23692740499973297, 0.2177470624446869, 0.007626157253980637, 0.07619912922382355, -0.12264323234558105, -0.17447222769260406, -0.3966948688030243, 0.12895730137825012, -0.31255093216896057, -0.2899818420410156, -0.3151167333126068, 0.02993175946176052, 0.2441820651292801, 0.002313349861651659, -0.11972794681787491, 0.25545796751976013, -0.07865456491708755, -0.013380156829953194, 0.04188019782304764, 0.16693215072155, 0.2005470246076584, 0.09450562298297882, -0.22398272156715393, 0.7218297719955444, 0.18740111589431763, 0.2795713245868683, -0.07392030954360962, 0.10746373236179352, 0.07750263810157776, -0.18257126212120056, 0.020704161375761032, 0.4211997985839844, -0.12278977036476135, 0.41011887788772583, 0.058653317391872406, -0.03782770037651062, 0.24638020992279053, 0.31305256485939026, -0.46428558230400085, -0.31904923915863037, -0.334209680557251, -0.07295747101306915, -0.36729684472084045, 0.0668509379029274, -0.3246193528175354, 0.34184911847114563, 0.5664433836936951, -0.03144146502017975, -0.041143156588077545, -0.21801045536994934, 0.00017023831605911255, 0.10738033801317215, 0.14267344772815704, -0.2175092101097107, 0.48654067516326904, 0.13896021246910095, -0.03237709030508995, -0.22226102650165558, 0.010727521032094955, 0.05304533243179321, 0.22700250148773193, 0.2852887809276581, 0.21474891901016235, 0.1434912383556366, -0.10937371104955673, -0.10467083752155304, -0.2400747537612915, -0.3421391546726227, 0.06897040456533432, 0.13767492771148682, -0.4035903811454773, -0.10881809145212173, -0.021455230191349983, -0.08967538923025131, 0.36064401268959045, -0.2048538774251938, 0.2512095272541046, -0.39134758710861206, 0.05529019981622696, 0.4251076579093933, -0.3788681626319885, 0.04233141243457794, -0.48987385630607605, 0.5330860614776611, -0.023781223222613335, -0.13687731325626373, -0.22378836572170258, -0.12910665571689606, 0.06680575758218765, -0.009738463908433914, 0.008671109564602375, -0.3781988322734833, 0.0930137038230896, 0.2844448387622833, 0.013299467042088509, -0.2559967637062073, -0.31572747230529785, 0.11209025233983994, -0.13217833638191223, 0.1643998771905899, 0.34582051634788513, 0.16648390889167786, 0.22705920040607452, -0.16468900442123413, 0.1586747020483017, 0.15850016474723816, -0.0424746610224247, -0.22838328778743744, 0.0961160883307457, -0.2135707587003708, -0.19948101043701172, -0.19444629549980164, -0.05656418949365616, -0.2921867072582245, 0.06483334302902222, 0.1064564436674118, 0.25177624821662903, 0.05047914758324623, -0.22310443222522736, -0.150248721241951, 0.3189736604690552, -0.19271406531333923, -0.2295544296503067, -0.09825260937213898, 0.4559275507926941, -0.21310371160507202, 0.20030832290649414, -0.0680205374956131, -0.29256612062454224, -0.11435508728027344, 0.4508693218231201, -0.2348821759223938, -0.10783159732818604, -0.05995593219995499, 0.36784642934799194, -0.09217959642410278, -0.41659921407699585, 0.4883670508861542, 0.40277859568595886, 0.008144145831465721, -0.09361636638641357, -0.13537496328353882, 0.12036443501710892, 0.4673319458961487, -0.01988884061574936, 0.3492863178253174, 0.29020509123802185, -0.2366384118795395, 0.8746910691261292, -0.19010072946548462, 0.06847582757472992, 0.3748842477798462, 0.0018208455294370651, 0.18601636588573456, -0.14165273308753967, -0.05838856101036072, -0.1456366330385208, -0.06519140303134918, -0.11044921725988388, 0.08074541389942169, -0.21331796050071716, -0.5957075357437134, -0.1102442666888237, 0.3336750566959381, -0.1936618685722351, -0.29429733753204346, 0.41747981309890747, -0.11080953478813171, 0.36321350932121277, 0.05439089611172676, 0.17929956316947937, -0.49585413932800293, -0.08262346684932709, -0.02355285733938217, -0.03414127230644226, 0.6302485466003418, -0.24305611848831177, -0.428604394197464, 0.044478513300418854, -0.36305809020996094, 0.16001193225383759, 0.28638726472854614, 0.10803250223398209, -0.06467177718877792, -0.5349435210227966, -0.08578251302242279, 0.124688521027565, 0.2850431501865387, -0.7304319143295288, -0.4897899627685547, 0.12693248689174652, -0.08555558323860168, 0.07524668425321579, -0.2851572632789612, -0.011194095015525818, 0.2701667845249176, -0.13252468407154083, 0.543959379196167, -0.4797510504722595, -0.030282942578196526, 0.4135727882385254, -0.28626006841659546, -0.18712592124938965, -0.0030215722508728504, -0.11194799840450287, 0.045630425214767456, 0.0576968789100647, -0.10206495970487595, 0.20808379352092743, 0.08958020806312561, -0.11311071366071701, -0.19351503252983093, -0.19899562001228333, 0.03851404786109924, 0.16987848281860352, 0.18295884132385254, 0.15059825778007507, 0.2853618562221527, 0.3673040270805359, 0.1905893087387085, 0.28362971544265747, -0.17746788263320923, 0.3736706078052521, 0.10558269917964935, -0.1608457863330841, 0.316209614276886, -0.22961260378360748, 0.5388891100883484, 0.3357059359550476, -0.10140202939510345, 0.25832971930503845, 0.04523942247033119, 0.21680685877799988, -0.5313943028450012, -0.11508587747812271, 0.3363534212112427, -0.18071265518665314, -0.23021453619003296, -0.7590646743774414, 0.219583660364151, -0.01940738596022129, -0.08277454972267151, 0.5997139811515808, 0.09579597413539886, -0.32283368706703186, 0.32796525955200195, 0.33688268065452576, 0.8814032673835754, -0.08443711698055267, -0.10669992864131927, 0.1322822868824005, 0.1853553205728531, 0.1851484775543213, -0.30447685718536377, 0.3297322392463684, 0.013293858617544174, -0.5622990131378174, -0.23073896765708923, 0.009601306170225143, 0.30874666571617126, 0.09868539869785309, -0.14485937356948853, -0.011997299268841743, 0.0489080548286438, 0.6330671310424805, -0.10483916103839874, -0.04984765127301216, -0.04619947075843811, -0.43973034620285034, -0.029669418931007385, -0.032255034893751144, -0.09121762216091156, -0.21832901239395142, 0.06527732312679291, -0.08205651491880417, 0.3002006411552429, 0.01710033044219017, -0.12962965667247772, -0.1752992868423462, -0.1435965895652771, -0.07520927488803864, 0.06111425161361694, 0.238841250538826, -0.03212423250079155, 0.14930559694766998, -0.10432650148868561, -0.08160427212715149, -0.09936632215976715, 0.17611514031887054, 0.30482277274131775, 0.4541687071323395, -0.1046329215168953, -0.012782314792275429, 0.37600669264793396, -0.0371321439743042, -0.09307907521724701, 0.26327162981033325, -0.2341100126504898, -0.3022262454032898, -0.4334409236907959, -0.2911806106567383, 0.6833019256591797, -0.37983614206314087, -0.4348968267440796, 0.20713713765144348, -0.06335581094026566, 0.053798627108335495, -0.0021338649094104767, -0.12525315582752228, -0.029145091772079468, 0.4297000765800476, -0.1849406212568283, -0.08354473114013672, -0.08894118666648865, 0.11084280908107758, 0.30572518706321716, 0.36865630745887756, 0.31443604826927185, -0.362629234790802, -0.2172549068927765, -0.071025550365448, -0.18775731325149536, 0.26381945610046387, -0.2620677947998047, -0.0636083334684372, 0.21794572472572327, -0.10096277296543121, -0.07468735426664352, 0.4954560399055481, -0.20330259203910828, 0.29010847210884094, -0.2812783420085907, -0.13555589318275452, 0.04704351723194122, 0.30500099062919617, -0.05644756928086281, 0.29875490069389343, -0.07882428169250488, -0.3021107017993927, -0.08811502903699875, 0.03991450369358063, -0.23325198888778687, -0.6388100385665894, 0.008487364277243614, 0.3751364052295685, 0.26127904653549194, 0.3220294713973999, 0.3114912509918213, -0.14291751384735107, 0.11607648432254791, -0.025665272027254105, -0.1625763177871704, -0.09254146367311478, -0.06701114773750305, 0.24155153334140778, 0.028270140290260315, -0.08526846766471863, -0.1362084001302719, -0.21660038828849792, -0.38431262969970703, -0.25714465975761414, 0.2012617439031601, 0.04377236217260361, 0.013412941247224808, -0.010588593780994415, 0.02101047709584236, -0.07705923169851303, -0.19902120530605316, 0.21229290962219238, 0.060312509536743164, 0.055601462721824646, 0.013293491676449776, 0.15257702767848969, -0.24903474748134613, 0.04584027826786041, 0.098321333527565, 0.20475471019744873, 0.022068947553634644, 0.24086183309555054, 0.374520480632782, 0.11943595111370087, 0.16559895873069763, 0.1270420402288437, 0.03711923956871033, 0.28860172629356384, 0.023970725014805794, -0.09926219284534454, -0.016640838235616684, 0.09990822523832321, -0.28213581442832947, 0.19400399923324585, -0.09061753749847412, 0.10034357011318207, 0.24337929487228394, 0.5178114175796509, 0.25704580545425415, 0.22900855541229248, 0.5461753010749817, -0.23007553815841675, 0.035395409911870956, -0.13214626908302307, 0.16896934807300568, 0.5552257299423218, 0.1012842059135437, 0.11891059577465057, 0.16413740813732147, 0.11056700348854065, 0.035155653953552246, 0.12725339829921722, 0.0944702997803688, 0.029972590506076813, 0.5109493136405945, 0.05837933346629143, -0.03517138957977295, -0.4306146502494812, 0.20576947927474976, -0.03381241858005524, 0.11321397125720978, 0.43750277161598206, 0.35638147592544556, -0.29107654094696045, -0.008825554512441158, -0.22366298735141754, -0.21589674055576324, -0.1325249969959259, -0.02011144533753395, -0.12427546083927155, -0.07198125123977661, -0.2282564342021942, -0.21206845343112946, -0.1731870025396347, 0.1616750955581665, -0.1791519671678543, 0.350263774394989, -0.02079933136701584, 0.33361953496932983, -0.08645819872617722, 0.18620645999908447, -0.20334702730178833, 0.6365184187889099, -0.1382381021976471, 0.12736926972866058, -0.15798650681972504, 0.1521049439907074, 0.09549889713525772, 0.14242440462112427, -0.23532718420028687, 0.36424264311790466, -0.010152339935302734, 0.1801183819770813, 0.0677550733089447, -0.13788913190364838, 0.060744769871234894, 0.16023175418376923, 0.08408025652170181, 0.16005204617977142, 0.2797103524208069, -0.001030907966196537, 0.09007426351308823, 0.17456848919391632, 0.018990330398082733, 0.009617717005312443, -0.264178067445755, 0.44414740800857544, 0.24812106788158417, -0.22519031167030334, 0.03973802179098129, -0.25464102625846863, 0.042256735265254974, -0.42516833543777466, 0.20149758458137512, -0.26931625604629517, 0.2119837999343872, 0.07312384247779846, 0.0250413678586483, -0.04461654648184776, 0.1115010678768158, -0.03815155103802681, -0.34709733724594116, -0.36864614486694336, 0.07682709395885468, -0.4838630259037018, -0.18248745799064636, -0.0010693445801734924, -0.17284069955348969, 0.4503748118877411, 0.40148860216140747, 0.39433562755584717, 0.18314188718795776, -0.15409137308597565, -0.5431302785873413, -0.09690197557210922, 0.3960978090763092, -0.2970428764820099, -0.41537436842918396, -0.04189811646938324, -0.01399669237434864, -0.17459355294704437, -0.2067852020263672, 0.0450512059032917, 0.18775314092636108, -0.03410191833972931, -0.013277128338813782, -0.15686380863189697, 0.04704044386744499, 0.15834619104862213, 0.31988316774368286, -0.20749862492084503, 0.08083589375019073, 0.07518292963504791, 0.08614762127399445, 0.02793630212545395, -0.16381552815437317, -0.04080923646688461, 0.24367502331733704, 0.04018131643533707, 0.4192327558994293, -0.02647503651678562, 0.40515512228012085, -0.29817837476730347, -0.018960129469633102, 0.06194405257701874, -0.007977945730090141, -0.19181136786937714, 0.07186345756053925, -0.28433939814567566, 0.0840839222073555, 0.0061721717938780785, 0.03917180746793747, 0.15049508213996887, 0.15972676873207092, -0.09695522487163544, -0.20806053280830383, 0.36689087748527527, -0.03538373485207558, -0.1905568391084671, -0.03124234825372696, 0.20015278458595276, 0.37362033128738403, 0.2264808565378189, -0.6278860569000244, -0.3511069715023041, 0.4604562222957611, -0.5248968005180359, 0.34034228324890137, 0.19178543984889984, -0.03921889886260033, -0.018021203577518463, -0.40614980459213257, 0.17513597011566162, -0.16645580530166626, 0.06104177236557007, -0.3062136471271515, -0.27986305952072144 ]
https://github.com/huggingface/datasets/issues/3888
IterableDataset columns and feature types
@lhoestq cool then if you agree I can work on that! I’ll also update the docs accordingly once done, thanks!
Right now, an IterableDataset (e.g. when streaming a dataset) doesn't require to know the list of columns it contains, nor their types: `my_iterable_dataset.features` may be `None` However it's often interesting to know the column types and types. This helps knowing what's inside your dataset without having to manually check a few examples, and this is useful to prepare a processing pipeline or to train models. Here are a few cases that lead to `features` being `None`: 1. when loading a dataset with `load_dataset` on CSV, JSON Lines, etc. files: type inference is only done when iterating over the dataset 2. when calling `map`, because we don't know in advance what's the output of the user's function passed to `map` 3. when calling `rename_columns`, `remove_columns`, etc. because they rely on `map` Things we can consider, for each point above: 1.a infer the type automatically from the first samples on the dataset using prefetching, when the dataset builder doesn't provide the `features` 2.a allow the user to specify the `features` as an argument to `map` (this would be consistent with the non-streaming API) 2.b prefetch the first output value to infer the type 3.a don't rely on `map` directly and reuse the previous `features` and rename/remove the corresponding ones The thing is that prefetching can take a few seconds, while the operations above are instantaneous since no data are downloaded. Therefore I'm not sure whether this solution may be worth it. Maybe prefetching could also be done when explicitly asked by the user cc @mariosasko @albertvillanova
20
IterableDataset columns and feature types Right now, an IterableDataset (e.g. when streaming a dataset) doesn't require to know the list of columns it contains, nor their types: `my_iterable_dataset.features` may be `None` However it's often interesting to know the column types and types. This helps knowing what's inside your dataset without having to manually check a few examples, and this is useful to prepare a processing pipeline or to train models. Here are a few cases that lead to `features` being `None`: 1. when loading a dataset with `load_dataset` on CSV, JSON Lines, etc. files: type inference is only done when iterating over the dataset 2. when calling `map`, because we don't know in advance what's the output of the user's function passed to `map` 3. when calling `rename_columns`, `remove_columns`, etc. because they rely on `map` Things we can consider, for each point above: 1.a infer the type automatically from the first samples on the dataset using prefetching, when the dataset builder doesn't provide the `features` 2.a allow the user to specify the `features` as an argument to `map` (this would be consistent with the non-streaming API) 2.b prefetch the first output value to infer the type 3.a don't rely on `map` directly and reuse the previous `features` and rename/remove the corresponding ones The thing is that prefetching can take a few seconds, while the operations above are instantaneous since no data are downloaded. Therefore I'm not sure whether this solution may be worth it. Maybe prefetching could also be done when explicitly asked by the user cc @mariosasko @albertvillanova @lhoestq cool then if you agree I can work on that! I’ll also update the docs accordingly once done, thanks!
[ -0.444637268781662, -0.0764056146144867, -0.10013417899608612, -0.022534646093845367, 0.29643088579177856, 0.06714210659265518, 0.39079222083091736, 0.1923757940530777, 0.33650025725364685, 0.2634657323360443, 0.03578291833400726, 0.1314990222454071, -0.2347068041563034, 0.4166553318500519, -0.03543119505047798, -0.06866027414798737, -0.09895125776529312, 0.4787960350513458, -0.1858709454536438, 0.07887187600135803, -0.3632977306842804, -0.054415151476860046, -0.26421093940734863, -0.1503135710954666, 0.09178779274225235, -0.004897987470030785, -0.06043704226613045, -0.127457857131958, -0.11988566070795059, -0.4823112189769745, 0.060343921184539795, 0.3201676607131958, 0.14149582386016846, -0.21614614129066467, -0.00010947005648631603, -0.002209208905696869, 0.29184767603874207, -0.2823618948459625, -0.2874220311641693, -0.14721740782260895, -0.2632898986339569, -0.24438554048538208, 0.15159963071346283, -0.47245290875434875, -0.24084588885307312, -0.44523853063583374, 0.14406746625900269, -0.21028266847133636, -0.23429428040981293, 0.2092299461364746, 0.1509556919336319, 0.24948498606681824, -0.11773394048213959, 0.015177950263023376, 0.1346285343170166, 0.2602683901786804, -0.42821991443634033, -0.4366726875305176, 0.3178465962409973, 0.19103583693504333, -0.08947571367025375, 0.34994184970855713, -0.18705959618091583, 0.05768628418445587, 0.2618006765842438, 0.09338897466659546, -0.09265569597482681, -0.46775153279304504, -0.0833977684378624, 0.446556031703949, 0.6431461572647095, -0.12287121266126633, -0.14548933506011963, -0.5294094085693359, -0.013673155568540096, -0.19949014484882355, 0.17542514204978943, -0.05702178180217743, -0.1333022564649582, 0.16968421638011932, -0.32919350266456604, -0.011855361051857471, -0.06454988569021225, -0.035318054258823395, 0.10803014039993286, 0.07518193870782852, -0.0855843722820282, 0.10703593492507935, -0.08264662325382233, -0.1412772685289383, 0.2623349130153656, -0.46645984053611755, -0.01325751468539238, 0.2313258796930313, -0.18362727761268616, -0.4084674119949341, 0.12562179565429688, -0.007402464747428894, 0.0025242865085601807, 0.21906840801239014, 0.18855184316635132, 0.1066502034664154, -0.1552894115447998, 0.06740538030862808, 0.4105387330055237, 0.005824843421578407, -0.047128818929195404, -0.06332703679800034, 0.3017463684082031, 0.1488574892282486, 0.32246360182762146, -0.1787828505039215, 0.08878614753484726, 0.39314398169517517, 0.43850353360176086, 0.15486964583396912, 0.4264037013053894, -0.05001073703169823, -0.024290237575769424, -0.16466248035430908, -0.1124785915017128, 0.0005232742987573147, 0.18035809695720673, 0.174905925989151, -0.048437006771564484, 0.4350813627243042, -0.21983344852924347, -0.032202571630477905, -0.025750329717993736, -0.2310582995414734, -0.054480262100696564, -0.22499719262123108, 0.0032217279076576233, 0.020588116720318794, 0.2748950719833374, 0.008556902408599854, 0.10945375263690948, -0.11777211725711823, -0.2029065042734146, 0.3535933196544647, 0.2019052654504776, -0.3837343156337738, 0.3517567217350006, 0.32273969054222107, -0.011508919298648834, 0.013612577691674232, 0.025827661156654358, -0.12406691908836365, -0.34024614095687866, 0.26170626282691956, -0.07916563004255295, -0.4078749716281891, 0.01229037344455719, 0.16187068819999695, -0.2599027156829834, 0.10729064047336578, -0.23144224286079407, 0.5803000926971436, -0.11822689324617386, -0.11657074093818665, -0.0252251997590065, 0.016111329197883606, -0.03381939232349396, -0.20604847371578217, 0.09373673051595688, 0.3068088889122009, -0.15959584712982178, -0.1354859620332718, -0.05726368725299835, -0.3070639669895172, 0.21187132596969604, -0.12331733107566833, -0.09422153234481812, -0.06015241891145706, 0.001879774034023285, 0.23270218074321747, 0.3866218626499176, 0.224806547164917, 0.09641217440366745, 0.18300040066242218, 0.32316333055496216, 0.5172709822654724, 0.21951723098754883, 0.21454396843910217, 0.22518189251422882, -0.2612638771533966, -0.08352497220039368, 0.19861754775047302, -0.34618479013442993, -0.009108033031225204, -0.050613824278116226, -0.3772994577884674, -0.001927655190229416, 0.01936294510960579, 0.1460980325937271, 0.4199359118938446, -0.035402752459049225, -0.07878600060939789, -0.0030721426010131836, -0.3579251170158386, -0.03787466138601303, 0.02938322350382805, 0.374123215675354, 0.051280371844768524, 0.04479895159602165, -0.4044223129749298, -0.7186703085899353, 0.24480873346328735, 0.3582213521003723, -0.1073257178068161, 0.0010987073183059692, -0.4676741361618042, 0.17577117681503296, 0.10060857236385345, 0.19275341928005219, 0.18778081238269806, 0.17999447882175446, 0.1950589120388031, -0.09357337653636932, -0.172445610165596, -0.4839552342891693, 0.0351857915520668, -0.3116746246814728, -0.2128600776195526, -0.41578221321105957, -0.19016291201114655, 0.2711550295352936, -0.03589693829417229, 0.03442467004060745, 0.25912314653396606, 0.08952043950557709, -0.005067537538707256, 0.11574447154998779, 0.21179312467575073, 0.1627456545829773, 0.08845987170934677, -0.2831246852874756, 0.787228524684906, 0.09154903143644333, 0.22704944014549255, -0.18549127876758575, 0.14863668382167816, 0.19568437337875366, -0.026160981506109238, -0.18782195448875427, 0.3801310062408447, -0.18755991756916046, 0.27280208468437195, 0.08689716458320618, 0.09186287224292755, 0.36059144139289856, 0.23813992738723755, -0.3611324727535248, -0.2537496089935303, -0.3553812801837921, -0.01161755621433258, -0.255071759223938, 0.11382200568914413, -0.5203021764755249, 0.19702184200286865, 0.6606641411781311, 0.013950567692518234, 0.03989481180906296, -0.2362513542175293, -0.09911473840475082, -0.1342911571264267, 0.2652728259563446, -0.13134443759918213, 0.2173347920179367, 0.19731849431991577, 0.1931331604719162, -0.1630488932132721, 0.0030925124883651733, 0.0009063612669706345, 0.2948717176914215, 0.17292189598083496, 0.09029803425073624, -0.07640504091978073, -0.05009941756725311, -0.1099715456366539, -0.3649521768093109, -0.23569540679454803, 0.028398221358656883, 0.12454855442047119, -0.3387913703918457, -0.13934358954429626, -0.16981282830238342, -0.24539470672607422, 0.4663253128528595, -0.12870162725448608, 0.22675254940986633, -0.39721497893333435, 0.07112976908683777, 0.5295391082763672, -0.3516070246696472, 0.04976905882358551, -0.37039056420326233, 0.44381019473075867, -0.06663946062326431, 0.04888905957341194, -0.3771961033344269, -0.1021406427025795, 0.10789361596107483, 0.13792797923088074, 0.11448460817337036, -0.305340051651001, 0.18059590458869934, 0.1192525252699852, -0.056375134736299515, -0.22456926107406616, -0.2438196837902069, 0.17550446093082428, -0.10943394899368286, 0.02668827399611473, 0.2902408838272095, 0.2768813967704773, 0.25176507234573364, -0.09755966067314148, 0.06709922105073929, 0.12753793597221375, -0.09552131593227386, 0.014455847442150116, 0.05755551904439926, -0.12669424712657928, -0.2378445416688919, -0.2728586792945862, 0.023285968229174614, -0.31350985169410706, 0.1163208931684494, 0.13545076549053192, 0.35529398918151855, 0.09513526409864426, -0.237936332821846, -0.08847236633300781, 0.16687072813510895, -0.08612294495105743, -0.18251508474349976, -0.13638684153556824, 0.4894743263721466, -0.1990019679069519, -0.021017111837863922, 0.11456245183944702, -0.19986079633235931, -0.0979253351688385, 0.32834357023239136, -0.13523343205451965, -0.13356913626194, -0.25633546710014343, 0.3044288456439972, 0.06260925531387329, -0.3158024251461029, 0.5340733528137207, 0.326244592666626, -0.08913824707269669, -0.051289476454257965, 0.0928608775138855, 5.960464477539062e-7, 0.22493836283683777, -0.052490510046482086, 0.32975178956985474, 0.2054801881313324, -0.10908177495002747, 0.6247569918632507, -0.06698311865329742, 0.08786768466234207, 0.45445138216018677, -0.10796048492193222, 0.3219509720802307, -0.27453646063804626, 0.07454739511013031, 0.0004737912677228451, -0.019744262099266052, -0.040996260941028595, 0.11407601088285446, -0.27761462330818176, -0.5359674096107483, -0.2345322221517563, 0.4056943953037262, -0.2074439823627472, -0.23152463138103485, 0.4200342297554016, -0.30672088265419006, 0.17379817366600037, -0.002823915332555771, 0.2275523543357849, -0.31137073040008545, -0.25444677472114563, -0.052733976393938065, -0.04927168786525726, 0.5283742547035217, -0.21231001615524292, -0.41004565358161926, 0.010299098677933216, -0.2890795171260834, 0.24429816007614136, -0.022141383960843086, 0.14626461267471313, -0.03331964462995529, -0.49356809258461, -0.010039769113063812, 0.008372877724468708, 0.10311473160982132, -0.5537071228027344, -0.44220060110092163, 0.1711394488811493, -0.06646406650543213, 0.2174484133720398, -0.10721754282712936, -0.20154975354671478, 0.12169378250837326, -0.17765112221240997, 0.5239585041999817, -0.4723254144191742, -0.22530874609947205, 0.2770228385925293, -0.1547013521194458, -0.1686488389968872, 0.03619437664747238, -0.0250006802380085, 0.010741796344518661, 0.0629844069480896, -0.15039414167404175, 0.17218612134456635, 0.16841311752796173, -0.16544485092163086, -0.1300102174282074, -0.40634527802467346, 0.1502433717250824, 0.24798446893692017, 0.32870760560035706, 0.1484367847442627, 0.08008065819740295, 0.20819570124149323, 0.1925879567861557, 0.4602913558483124, -0.11093136668205261, 0.32650503516197205, 0.24479684233665466, -0.3682134449481964, 0.26313158869743347, -0.02261177822947502, 0.39373070001602173, 0.13598394393920898, -0.1963675171136856, 0.19779238104820251, 0.07422810792922974, 0.1665322184562683, -0.6539866328239441, -0.09203433245420456, 0.318107008934021, -0.12666350603103638, -0.24193032085895538, -0.6924405694007874, 0.40204399824142456, -0.008304275572299957, -0.14038728177547455, 0.4903613030910492, 0.121478371322155, -0.28490394353866577, 0.3115749955177307, 0.376934289932251, 0.7652449607849121, -0.022627942264080048, -0.23560091853141785, 0.2688373625278473, -0.038526132702827454, 0.2509995400905609, -0.3288993835449219, 0.29874908924102783, -0.11144658923149109, -0.5071487426757812, -0.25427162647247314, 0.12734520435333252, 0.427255243062973, 0.18162140250205994, -0.13192278146743774, 0.11382035911083221, 0.008875422179698944, 0.5809787511825562, -0.17209838330745697, 0.05755884200334549, -0.2763630747795105, -0.39225074648857117, -0.11522001028060913, 0.08169391006231308, -0.026520274579524994, -0.14725308120250702, 0.13003960251808167, -0.01435035653412342, 0.47462698817253113, 0.01763051003217697, -0.07813429087400436, -0.12853145599365234, -0.1857248842716217, -0.17746968567371368, -0.03032003715634346, 0.142434760928154, -0.040885522961616516, 0.2951612174510956, -0.06600619852542877, 0.015406928956508636, -0.14714106917381287, 0.18142497539520264, 0.26849988102912903, 0.41914018988609314, 0.010611933656036854, -0.010772786103188992, 0.3988047242164612, -0.054361745715141296, -0.07369284331798553, 0.30009594559669495, -0.28725728392601013, -0.11493609100580215, -0.18929311633110046, -0.2521172761917114, 0.4755083918571472, -0.23528079688549042, -0.3645778000354767, 0.046845030039548874, 0.01846158131957054, 0.05265102908015251, 0.09492459893226624, -0.0739486962556839, -0.038381632417440414, 0.3730069100856781, -0.1705562174320221, -0.04105793312191963, -0.11915984749794006, 0.11494466662406921, 0.23963430523872375, 0.24109724164009094, 0.3456536531448364, -0.37239372730255127, -0.23275357484817505, -0.186559796333313, 0.0593455508351326, 0.3311309516429901, -0.1267138570547104, -0.06787467002868652, 0.20507003366947174, -0.2377050220966339, -0.02523283287882805, 0.5848993062973022, -0.191315695643425, 0.1973632425069809, -0.28958773612976074, -0.14239555597305298, -0.021663494408130646, 0.399374783039093, 0.001933816820383072, 0.34819984436035156, -0.10353899747133255, -0.36978796124458313, 0.0077117253094911575, -0.009299637749791145, -0.34976422786712646, -0.5608716011047363, -0.24337805807590485, 0.36175617575645447, 0.03230033442378044, 0.285045325756073, 0.3117161691188812, -0.10578915476799011, 0.17237870395183563, -0.13459448516368866, -0.06117720901966095, -0.20546433329582214, -0.0301341749727726, 0.18937380611896515, 0.009997114539146423, 0.03860446810722351, -0.17018713057041168, -0.2717816233634949, -0.4003908336162567, -0.31051766872406006, 0.23889371752738953, -0.0010405369102954865, 0.06992263346910477, 0.12336739897727966, 0.040590256452560425, 0.023180916905403137, -0.3006383776664734, 0.07405826449394226, 0.05630279332399368, -0.03832855820655823, -0.01302412897348404, 0.12259700894355774, -0.29607635736465454, -0.02263445407152176, 0.035390835255384445, 0.26146045327186584, 0.017569832503795624, 0.02974994294345379, 0.33343571424484253, 0.20143502950668335, 0.13948306441307068, 0.13885565102100372, 0.10493956506252289, 0.2013610303401947, 0.1592928022146225, -0.09010716527700424, 0.10987995564937592, 0.20272518694400787, -0.40876954793930054, 0.2043091505765915, -0.20909945666790009, 0.05495303124189377, 0.4077483117580414, 0.3739688992500305, 0.16277123987674713, 0.1688145399093628, 0.3567754626274109, -0.30780962109565735, 0.02146891877055168, -0.21769464015960693, 0.22802430391311646, 0.5552560687065125, 0.0018668770790100098, 0.07764920592308044, 0.25375938415527344, 0.08851295709609985, 0.057633593678474426, 0.18693473935127258, 0.05339732766151428, 0.07572513818740845, 0.439021497964859, 0.05442393571138382, 0.06688159704208374, -0.43678444623947144, 0.14096331596374512, -0.0658205896615982, 0.10396368056535721, 0.3097800016403198, 0.2745550870895386, -0.278155118227005, -0.049204785376787186, -0.18735001981258392, -0.31783539056777954, -0.11833398044109344, -0.12295211106538773, -0.15955592691898346, -0.21130642294883728, -0.22716891765594482, -0.14813591539859772, -0.1808105856180191, 0.14224302768707275, -0.16189703345298767, 0.34568852186203003, -0.06403839588165283, 0.31293392181396484, -0.09361386299133301, 0.25646600127220154, -0.09524454921483994, 0.6709778308868408, -0.20284853875637054, 0.2220754325389862, -0.11559849977493286, 0.16941964626312256, 0.041121844202280045, 0.3029850125312805, -0.18483459949493408, 0.21985258162021637, 0.09587627649307251, 0.15384015440940857, -0.0029523763805627823, -0.2829396426677704, -0.0034059984609484673, 0.14755061268806458, 0.051631174981594086, 0.22467276453971863, 0.28966987133026123, 0.08140561729669571, 0.008221444673836231, 0.272926390171051, -0.10393963754177094, 0.11270642280578613, -0.2894783616065979, 0.357001394033432, 0.33772531151771545, -0.19334688782691956, 0.09757291525602341, -0.30468887090682983, 0.0364578440785408, -0.27903878688812256, 0.16999231278896332, -0.13215328752994537, 0.1787322759628296, -0.02182190492749214, 0.09300091117620468, 0.10818946361541748, 0.19335605204105377, -0.0951509028673172, -0.4663654863834381, -0.1663016974925995, 0.06477345526218414, -0.6020791530609131, -0.2592258155345917, 0.05079011619091034, -0.08720235526561737, 0.41956111788749695, 0.43132415413856506, 0.3574277460575104, 0.24043849110603333, -0.2077748030424118, -0.3154972195625305, 0.017551757395267487, 0.48124703764915466, -0.28472191095352173, -0.36556175351142883, -0.07515990734100342, -0.0019162558019161224, -0.15675853192806244, -0.29256221652030945, 0.20419345796108246, 0.1589766889810562, 0.06323616951704025, 0.11740268021821976, -0.03176437318325043, 0.12700222432613373, 0.11192220449447632, 0.21324566006660461, 0.008826476521790028, -0.05620269477367401, 0.0055412910878658295, -0.012255312874913216, -0.01277848705649376, -0.06564942002296448, -0.2131250649690628, 0.1898500621318817, 0.03984950855374336, 0.267226904630661, 0.05055387318134308, 0.45109620690345764, -0.18220514059066772, 0.053579870611429214, -0.0017930194735527039, -0.130196213722229, -0.23343603312969208, 0.048106566071510315, -0.2654709219932556, 0.1848078817129135, 0.06559430062770844, 0.05117811635136604, 0.17632094025611877, -0.045969776809215546, -0.1241566389799118, -0.26701414585113525, 0.3728514313697815, -0.07871820032596588, -0.17664463818073273, -0.026481054723262787, 0.1539342999458313, 0.355520099401474, 0.211924746632576, -0.5832735300064087, -0.21741925179958344, 0.41252854466438293, -0.6286600828170776, 0.34995460510253906, 0.08015725016593933, 0.04270509257912636, 0.09424607455730438, -0.44373756647109985, 0.23027414083480835, -0.02315054088830948, -0.05999242514371872, -0.3164852261543274, -0.3233199119567871 ]
https://github.com/huggingface/datasets/issues/3888
IterableDataset columns and feature types
I've already started with a PR as a draft @lhoestq, should we also try to look for a way to explicitly request pre-fetching right after a map operation is applied, so that the features are inferred if the user says explicitly so? Thanks!
Right now, an IterableDataset (e.g. when streaming a dataset) doesn't require to know the list of columns it contains, nor their types: `my_iterable_dataset.features` may be `None` However it's often interesting to know the column types and types. This helps knowing what's inside your dataset without having to manually check a few examples, and this is useful to prepare a processing pipeline or to train models. Here are a few cases that lead to `features` being `None`: 1. when loading a dataset with `load_dataset` on CSV, JSON Lines, etc. files: type inference is only done when iterating over the dataset 2. when calling `map`, because we don't know in advance what's the output of the user's function passed to `map` 3. when calling `rename_columns`, `remove_columns`, etc. because they rely on `map` Things we can consider, for each point above: 1.a infer the type automatically from the first samples on the dataset using prefetching, when the dataset builder doesn't provide the `features` 2.a allow the user to specify the `features` as an argument to `map` (this would be consistent with the non-streaming API) 2.b prefetch the first output value to infer the type 3.a don't rely on `map` directly and reuse the previous `features` and rename/remove the corresponding ones The thing is that prefetching can take a few seconds, while the operations above are instantaneous since no data are downloaded. Therefore I'm not sure whether this solution may be worth it. Maybe prefetching could also be done when explicitly asked by the user cc @mariosasko @albertvillanova
43
IterableDataset columns and feature types Right now, an IterableDataset (e.g. when streaming a dataset) doesn't require to know the list of columns it contains, nor their types: `my_iterable_dataset.features` may be `None` However it's often interesting to know the column types and types. This helps knowing what's inside your dataset without having to manually check a few examples, and this is useful to prepare a processing pipeline or to train models. Here are a few cases that lead to `features` being `None`: 1. when loading a dataset with `load_dataset` on CSV, JSON Lines, etc. files: type inference is only done when iterating over the dataset 2. when calling `map`, because we don't know in advance what's the output of the user's function passed to `map` 3. when calling `rename_columns`, `remove_columns`, etc. because they rely on `map` Things we can consider, for each point above: 1.a infer the type automatically from the first samples on the dataset using prefetching, when the dataset builder doesn't provide the `features` 2.a allow the user to specify the `features` as an argument to `map` (this would be consistent with the non-streaming API) 2.b prefetch the first output value to infer the type 3.a don't rely on `map` directly and reuse the previous `features` and rename/remove the corresponding ones The thing is that prefetching can take a few seconds, while the operations above are instantaneous since no data are downloaded. Therefore I'm not sure whether this solution may be worth it. Maybe prefetching could also be done when explicitly asked by the user cc @mariosasko @albertvillanova I've already started with a PR as a draft @lhoestq, should we also try to look for a way to explicitly request pre-fetching right after a map operation is applied, so that the features are inferred if the user says explicitly so? Thanks!
[ -0.3794456422328949, -0.1121738851070404, -0.048046041280031204, -0.0016452819108963013, 0.24092215299606323, -0.03550305962562561, 0.32073599100112915, 0.16656126081943512, 0.3237762153148651, 0.27321675419807434, 0.13899226486682892, 0.012926191091537476, -0.15598084032535553, 0.36539509892463684, -0.07054059952497482, -0.11024472117424011, -0.10872846096754074, 0.5422559976577759, -0.1976129710674286, 0.09589608013629913, -0.3611140251159668, -0.10275903344154358, -0.3145188093185425, -0.10530608892440796, 0.016484342515468597, -0.07717272639274597, -0.04156261309981346, -0.2045307159423828, -0.08191891014575958, -0.4163450002670288, 0.02599712647497654, 0.3201982378959656, 0.15509426593780518, -0.2362019419670105, -0.00012066168710589409, -0.021792132407426834, 0.2943209409713745, -0.23763352632522583, -0.25673431158065796, -0.09282931685447693, -0.2656777799129486, -0.31922170519828796, 0.17138585448265076, -0.527193546295166, -0.2553459107875824, -0.40186434984207153, 0.1389242708683014, -0.23234741389751434, -0.1645420342683792, 0.09055519104003906, 0.05379636585712433, 0.21776263415813446, -0.1472393125295639, 0.10760068893432617, 0.08609028160572052, 0.3443360924720764, -0.42506110668182373, -0.47265252470970154, 0.44209277629852295, 0.09998196363449097, -0.019924677908420563, 0.3563372790813446, -0.15818150341510773, 0.017727281898260117, 0.13403555750846863, 0.11876571923494339, -0.06913212686777115, -0.44208621978759766, -0.16813471913337708, 0.4206112325191498, 0.5446863770484924, -0.05098871886730194, -0.233443483710289, -0.6955186128616333, -0.03410370275378227, -0.18454095721244812, 0.18614542484283447, -0.17270025610923767, -0.12452287971973419, 0.15324263274669647, -0.3231233060359955, -0.04422615468502045, 0.06751194596290588, 0.049164287745952606, 0.08595062792301178, 0.062310416251420975, -0.04715380072593689, 0.08105434477329254, -0.13542091846466064, -0.23149199783802032, 0.27750054001808167, -0.4829822778701782, 0.11427873373031616, 0.19222281873226166, -0.06995904445648193, -0.3842974603176117, 0.17281481623649597, 0.0071549490094184875, -0.12224526703357697, 0.19265365600585938, 0.19000570476055145, 0.21168160438537598, -0.27075281739234924, 0.028703493997454643, 0.35643815994262695, 0.017548976466059685, -0.1151728704571724, 0.060113757848739624, 0.23190723359584808, 0.20892271399497986, 0.3089870512485504, -0.17195799946784973, 0.1228734701871872, 0.32889044284820557, 0.47405797243118286, 0.29236894845962524, 0.4189215898513794, -0.08543460071086884, 0.07251499593257904, -0.13372287154197693, -0.2014446258544922, -0.021524935960769653, 0.14557471871376038, 0.03261186182498932, -0.07757891714572906, 0.5268912315368652, -0.13600650429725647, 0.05029740184545517, -0.05766850709915161, -0.29055288434028625, -0.02833865024149418, -0.3012676239013672, -0.0092935711145401, 0.11009447276592255, 0.29707539081573486, 0.18982438743114471, 0.04798293858766556, -0.10450179129838943, -0.257934033870697, 0.3016267418861389, 0.23120366036891937, -0.3665914833545685, 0.29310572147369385, 0.31989821791648865, -0.16514365375041962, 0.043568529188632965, 0.048461686819791794, -0.036966875195503235, -0.3535250127315521, 0.2766847312450409, -0.0357661172747612, -0.34469538927078247, 0.15888787806034088, 0.049941856414079666, -0.2793840169906616, 0.1761239767074585, -0.27543410658836365, 0.5410725474357605, -0.047254033386707306, -0.10645273327827454, -0.010223157703876495, 0.034254059195518494, -0.09794045239686966, -0.18513435125350952, 0.09591478854417801, 0.3852241039276123, -0.0662417784333229, -0.17534694075584412, -0.07122825086116791, -0.2791028618812561, 0.33051615953445435, -0.1783418208360672, -0.08032834529876709, 0.085480697453022, 0.07835415005683899, 0.216740682721138, 0.3554607331752777, 0.20413348078727722, 0.0535799041390419, 0.19707109034061432, 0.2762201428413391, 0.6561938524246216, 0.24783474206924438, 0.16031615436077118, 0.19552931189537048, -0.22859469056129456, -0.02534693479537964, 0.260307252407074, -0.4684029817581177, 0.013055508956313133, -0.0737239271402359, -0.46386006474494934, -0.03144517540931702, 0.14296072721481323, 0.2541477382183075, 0.4423372745513916, -0.01391708105802536, -0.15946242213249207, -0.08950496464967728, -0.28709301352500916, -0.004860082641243935, -0.10790085792541504, 0.23657570779323578, 0.1053646132349968, -0.10215969383716583, -0.3410440683364868, -0.6896686553955078, 0.24577555060386658, 0.29588112235069275, -0.16161705553531647, -0.09859378635883331, -0.442970871925354, 0.2056739628314972, 0.13965877890586853, 0.27373063564300537, 0.3486592173576355, 0.05588939040899277, 0.16249814629554749, -0.14324989914894104, -0.07548560947179794, -0.4347938597202301, 0.10793799161911011, -0.31155258417129517, -0.13681627810001373, -0.3507353365421295, -0.14243729412555695, 0.29250192642211914, -0.04731840267777443, -0.02848167158663273, 0.3044806718826294, 0.06810204684734344, 0.004558704327791929, 0.11420372128486633, 0.11809863150119781, 0.14669212698936462, 0.16678252816200256, -0.2545507252216339, 0.8316341042518616, 0.16835923492908478, 0.2787698209285736, -0.14547906816005707, 0.05133882537484169, 0.13502295315265656, -0.11436709761619568, -0.14395073056221008, 0.4313806891441345, -0.13816270232200623, 0.3097957670688629, 0.0005435794591903687, -0.0027645640075206757, 0.14296497404575348, 0.22261473536491394, -0.3721846044063568, -0.23029659688472748, -0.37105676531791687, -0.03397577255964279, -0.29157814383506775, 0.15824487805366516, -0.4305609464645386, 0.15334829688072205, 0.6720950603485107, -0.023902086541056633, 0.1258404552936554, -0.24981209635734558, 0.05216075852513313, -0.12886258959770203, 0.2542501389980316, -0.30373600125312805, 0.11612411588430405, 0.12111419439315796, 0.14546020328998566, -0.22507718205451965, 0.09605178982019424, 0.04701828956604004, 0.22774353623390198, 0.2568172216415405, 0.09983104467391968, -0.041432514786720276, -0.0519208088517189, -0.013106967322528362, -0.2113824486732483, -0.22576896846294403, 0.031385816633701324, 0.11469266563653946, -0.3458416163921356, -0.21363724768161774, -0.08918901532888412, -0.1735893189907074, 0.44097229838371277, -0.11485028266906738, 0.34514471888542175, -0.4145670235157013, 0.04526367783546448, 0.4725692868232727, -0.30397695302963257, 0.048758603632450104, -0.439500093460083, 0.5204710960388184, -0.1610294133424759, -0.08630117774009705, -0.3731408417224884, -0.011719886213541031, 0.10699014365673065, 0.025919049978256226, 0.04160907864570618, -0.32123491168022156, 0.1174139454960823, 0.1609528511762619, -0.0033225584775209427, -0.16386856138706207, -0.30773699283599854, 0.11160549521446228, -0.04450570046901703, 0.009604129940271378, 0.21167312562465668, 0.21380391716957092, 0.22989405691623688, -0.12910456955432892, 0.04738759249448776, 0.2510744035243988, -0.07587507367134094, -0.06289893388748169, 0.04394140839576721, -0.053210657089948654, -0.17228037118911743, -0.2690257132053375, 0.023837804794311523, -0.3017289340496063, 0.12891548871994019, 0.06189040467143059, 0.25260764360427856, -0.02853371948003769, -0.1922650784254074, -0.1942596733570099, 0.1461370587348938, -0.0720146894454956, -0.05627678707242012, -0.13632754981517792, 0.4551315903663635, -0.05315263196825981, 0.14146791398525238, -0.06518834084272385, -0.285766065120697, -0.23227456212043762, 0.4628658890724182, -0.19268102943897247, -0.12485646456480026, -0.2669532299041748, 0.4620209336280823, 0.023446708917617798, -0.42035743594169617, 0.5343899726867676, 0.3936176300048828, -0.008944613859057426, 0.04226263612508774, 0.06455191969871521, 0.04964634031057358, 0.24073216319084167, -0.12411349266767502, 0.4145740568637848, 0.23707595467567444, -0.09290783852338791, 0.6759197115898132, -0.08994781970977783, 0.03854329138994217, 0.4645151197910309, 0.07332394272089005, 0.24017997086048126, -0.22684913873672485, 0.08694646507501602, -0.1058155968785286, 0.08164244890213013, -0.005637906491756439, 0.0427909716963768, -0.24169623851776123, -0.5623033046722412, -0.19016148149967194, 0.4200233817100525, -0.38794904947280884, -0.2845757305622101, 0.4416755735874176, -0.3987654447555542, 0.26934173703193665, -0.029252031818032265, 0.25990843772888184, -0.3434034585952759, -0.14964821934700012, -0.07632412016391754, -0.07938610017299652, 0.6858279705047607, -0.20475730299949646, -0.45803794264793396, 0.08553911000490189, -0.2607150077819824, 0.23498815298080444, 0.03577948361635208, 0.2044556587934494, -0.12359362840652466, -0.46432480216026306, 0.01233566552400589, 0.0679413452744484, 0.12075081467628479, -0.6541138887405396, -0.40628039836883545, 0.11190029978752136, -0.17750608921051025, 0.2876044511795044, -0.14256489276885986, -0.14139458537101746, 0.1210407242178917, -0.18022896349430084, 0.6465921401977539, -0.5213872194290161, -0.16162994503974915, 0.3163878321647644, -0.21531273424625397, -0.11502552777528763, 0.09701957553625107, 0.11763566732406616, 0.03314655274152756, 0.08519210666418076, -0.07263050228357315, 0.1786188781261444, 0.11464186757802963, -0.11614425480365753, -0.1483210325241089, -0.4753442406654358, 0.25292378664016724, 0.25473469495773315, 0.2648089528083801, 0.057456184178590775, 0.13780495524406433, 0.2712457776069641, 0.26302358508110046, 0.3417685627937317, -0.1082342267036438, 0.28795987367630005, 0.236824631690979, -0.30537179112434387, 0.20430567860603333, 0.03820090740919113, 0.3895140290260315, 0.277767151594162, -0.14025966823101044, 0.23466259241104126, 0.12826824188232422, 0.2568640112876892, -0.6603853106498718, -0.01747605763375759, 0.3311325013637543, -0.0986558049917221, -0.3132813274860382, -0.7386345267295837, 0.39170679450035095, 0.024889584630727768, -0.21854475140571594, 0.4789198935031891, 0.12234820425510406, -0.28185445070266724, 0.40142929553985596, 0.34285131096839905, 0.9102880358695984, -0.14538531005382538, -0.24704992771148682, 0.23386657238006592, 0.008630547672510147, 0.25704866647720337, -0.4268433451652527, 0.162760928273201, 0.005578991025686264, -0.5334233641624451, -0.22218720614910126, 0.12388937175273895, 0.4187597334384918, 0.25302645564079285, -0.05032860115170479, 0.06751973181962967, -0.018822133541107178, 0.5529953837394714, -0.038852445781230927, -0.004037484526634216, -0.17716583609580994, -0.43195840716362, -0.017403587698936462, -0.037490662187337875, -0.03672098368406296, -0.04148302599787712, 0.09920202195644379, -0.007969768717885017, 0.3243595361709595, 0.04663308709859848, -0.0903819128870964, -0.12178516387939453, -0.22896897792816162, -0.15841099619865417, -0.027302678674459457, 0.18505816161632538, 0.007618770003318787, 0.3750753104686737, -0.060211703181266785, 0.022803660482168198, -0.09232829511165619, 0.19373178482055664, 0.32021012902259827, 0.2994534373283386, 0.1012110486626625, 0.0423118956387043, 0.31090691685676575, 0.018118400126695633, -0.13362650573253632, 0.23685362935066223, -0.33058351278305054, -0.10004374384880066, -0.3433000445365906, -0.2867588400840759, 0.4774174094200134, -0.3363618552684784, -0.42196598649024963, 0.052695680409669876, 0.09114393591880798, 0.07952289283275604, 0.007469953037798405, -0.10506470501422882, 0.11174549907445908, 0.4369465112686157, -0.14175498485565186, -0.10282032191753387, -0.12700466811656952, 0.1580282747745514, 0.18170389533042908, 0.19493669271469116, 0.40568506717681885, -0.4154475927352905, -0.21902517974376678, -0.12967145442962646, -0.00908096507191658, 0.26348787546157837, -0.16705381870269775, -0.14375969767570496, 0.18181023001670837, -0.3137408494949341, -0.02229238674044609, 0.5543943047523499, -0.08199712634086609, 0.03008870780467987, -0.19645334780216217, -0.12707313895225525, 0.027692997828125954, 0.4581310749053955, 0.05385839194059372, 0.34782475233078003, -0.107907734811306, -0.3437764644622803, -0.08584610372781754, 0.041759103536605835, -0.2264062762260437, -0.5274266600608826, -0.19004496932029724, 0.36776304244995117, 0.1171802431344986, 0.28319716453552246, 0.2742125689983368, -0.11677917838096619, 0.10154611617326736, -0.2183205932378769, -0.0926181972026825, -0.08008522540330887, 0.003049086779356003, 0.23929613828659058, 0.0037001799792051315, -0.03180643171072006, -0.14142392575740814, -0.3162878155708313, -0.351381778717041, -0.3924204707145691, 0.18629898130893707, 0.05469273775815964, 0.0768178403377533, 0.07664202898740768, 0.0644097626209259, 0.11472997069358826, -0.39379429817199707, 0.22410495579242706, 0.043210022151470184, -0.09700345993041992, -0.08571427315473557, 0.10018590092658997, -0.21794740855693817, 0.010220810770988464, 0.004635008051991463, 0.24233832955360413, 0.14664506912231445, 0.0999365746974945, 0.407645046710968, 0.24463488161563873, 0.21324852108955383, 0.22145192325115204, -0.0069944895803928375, 0.0667266771197319, 0.17326875030994415, -0.11980057507753372, 0.04441637173295021, 0.12054896354675293, -0.33727842569351196, 0.2905970811843872, -0.14139991998672485, 0.08888886123895645, 0.35872989892959595, 0.4962475001811981, 0.1754557341337204, 0.2615000605583191, 0.35323935747146606, -0.3134133815765381, 0.052179452031850815, -0.15964612364768982, 0.20964178442955017, 0.6289795637130737, 0.06087760254740715, 0.07541541755199432, 0.28645050525665283, 0.11138588190078735, 0.06405697017908096, 0.09539111703634262, 0.15327641367912292, 0.09490621089935303, 0.4318992793560028, 0.13893243670463562, -0.019401811063289642, -0.6107056736946106, 0.1652582287788391, 0.021433204412460327, 0.17992958426475525, 0.32228314876556396, 0.21974527835845947, -0.3098314702510834, -0.02336517721414566, -0.23502783477306366, -0.33729153871536255, -0.1362331062555313, -0.12797975540161133, -0.1780773550271988, -0.1356240063905716, -0.27727603912353516, -0.18994155526161194, -0.21013039350509644, 0.09516391158103943, -0.12389911711215973, 0.44980236887931824, 0.004625096917152405, 0.29270118474960327, -0.06770697236061096, 0.24183127284049988, -0.13621652126312256, 0.77244633436203, -0.21407032012939453, 0.26727771759033203, -0.2151230126619339, 0.1352664828300476, 0.054673731327056885, 0.33095911145210266, -0.19427858293056488, 0.26825881004333496, 0.03466629236936569, 0.194222092628479, 0.04817797243595123, -0.21581871807575226, -0.04033583402633667, 0.15932533144950867, 0.0389285609126091, 0.30475717782974243, 0.1970132738351822, 0.02216099388897419, 0.04026934504508972, 0.20477569103240967, -0.16822665929794312, 0.08259989321231842, -0.27636051177978516, 0.37555840611457825, 0.2761384844779968, -0.17282962799072266, 0.1770920604467392, -0.2634148895740509, 0.12183170765638351, -0.30435609817504883, 0.063385009765625, -0.185256227850914, 0.19501468539237976, 0.08237667381763458, 0.025943931192159653, 0.08318519592285156, 0.0681217834353447, 0.04425106942653656, -0.4466373026371002, -0.2686465084552765, 0.09513184428215027, -0.5160408020019531, -0.3302665650844574, 0.07333952188491821, -0.1318598985671997, 0.46585509181022644, 0.36085405945777893, 0.3726101219654083, 0.22954939305782318, -0.3156856894493103, -0.34801140427589417, 0.02253604307770729, 0.4920845329761505, -0.29426372051239014, -0.3130880892276764, -0.017873845994472504, -0.08882627636194229, -0.17128099501132965, -0.3548964262008667, 0.21294111013412476, 0.2207901030778885, -0.03386395797133446, 0.08450622111558914, -0.10434979200363159, 0.16797515749931335, 0.09506044536828995, 0.26309460401535034, 0.025206511840224266, -0.010127179324626923, 0.05808691680431366, -0.012935050763189793, -0.009025480598211288, -0.2053375542163849, -0.15667061507701874, 0.2566905915737152, -0.08390581607818604, 0.341916024684906, -0.04775047302246094, 0.5494824051856995, -0.17772528529167175, -0.0464249923825264, -0.028500128537416458, -0.07370758801698685, -0.22188934683799744, -0.061191052198410034, -0.28351035714149475, 0.13694003224372864, 0.16387078166007996, 0.027787312865257263, 0.180827796459198, -0.004530108533799648, -0.12593905627727509, -0.24432286620140076, 0.2666730284690857, 0.05808992683887482, -0.026210039854049683, -0.08013177663087845, 0.16004794836044312, 0.3529722988605499, 0.2640133500099182, -0.529400110244751, -0.2603158950805664, 0.4733591675758362, -0.6874353885650635, 0.3598484992980957, 0.12570549547672272, 0.05732383951544762, -0.03021387569606304, -0.4739340841770172, 0.30249640345573425, -0.17266324162483215, 0.06389889866113663, -0.3339770436286926, -0.24284592270851135 ]
https://github.com/huggingface/datasets/issues/3888
IterableDataset columns and feature types
> should we also try to look for a way to explicitly request pre-fetching right after a map operation is applied, so that the features are inferred if the user says explicitly so? Right now one can use `ds = ds._resolve_features()` do to so. It can be used after `map` or `load_dataset` if the features are not known. Maybe we can make this method public ?
Right now, an IterableDataset (e.g. when streaming a dataset) doesn't require to know the list of columns it contains, nor their types: `my_iterable_dataset.features` may be `None` However it's often interesting to know the column types and types. This helps knowing what's inside your dataset without having to manually check a few examples, and this is useful to prepare a processing pipeline or to train models. Here are a few cases that lead to `features` being `None`: 1. when loading a dataset with `load_dataset` on CSV, JSON Lines, etc. files: type inference is only done when iterating over the dataset 2. when calling `map`, because we don't know in advance what's the output of the user's function passed to `map` 3. when calling `rename_columns`, `remove_columns`, etc. because they rely on `map` Things we can consider, for each point above: 1.a infer the type automatically from the first samples on the dataset using prefetching, when the dataset builder doesn't provide the `features` 2.a allow the user to specify the `features` as an argument to `map` (this would be consistent with the non-streaming API) 2.b prefetch the first output value to infer the type 3.a don't rely on `map` directly and reuse the previous `features` and rename/remove the corresponding ones The thing is that prefetching can take a few seconds, while the operations above are instantaneous since no data are downloaded. Therefore I'm not sure whether this solution may be worth it. Maybe prefetching could also be done when explicitly asked by the user cc @mariosasko @albertvillanova
66
IterableDataset columns and feature types Right now, an IterableDataset (e.g. when streaming a dataset) doesn't require to know the list of columns it contains, nor their types: `my_iterable_dataset.features` may be `None` However it's often interesting to know the column types and types. This helps knowing what's inside your dataset without having to manually check a few examples, and this is useful to prepare a processing pipeline or to train models. Here are a few cases that lead to `features` being `None`: 1. when loading a dataset with `load_dataset` on CSV, JSON Lines, etc. files: type inference is only done when iterating over the dataset 2. when calling `map`, because we don't know in advance what's the output of the user's function passed to `map` 3. when calling `rename_columns`, `remove_columns`, etc. because they rely on `map` Things we can consider, for each point above: 1.a infer the type automatically from the first samples on the dataset using prefetching, when the dataset builder doesn't provide the `features` 2.a allow the user to specify the `features` as an argument to `map` (this would be consistent with the non-streaming API) 2.b prefetch the first output value to infer the type 3.a don't rely on `map` directly and reuse the previous `features` and rename/remove the corresponding ones The thing is that prefetching can take a few seconds, while the operations above are instantaneous since no data are downloaded. Therefore I'm not sure whether this solution may be worth it. Maybe prefetching could also be done when explicitly asked by the user cc @mariosasko @albertvillanova > should we also try to look for a way to explicitly request pre-fetching right after a map operation is applied, so that the features are inferred if the user says explicitly so? Right now one can use `ds = ds._resolve_features()` do to so. It can be used after `map` or `load_dataset` if the features are not known. Maybe we can make this method public ?
[ -0.3393744230270386, -0.12804053723812103, -0.05538415163755417, -0.0033454522490501404, 0.22570432722568512, -0.06992135941982269, 0.3674064874649048, 0.1738416701555252, 0.3320353031158447, 0.29572001099586487, 0.07677536457777023, 0.04853132367134094, -0.15181183815002441, 0.3550935685634613, -0.05897948145866394, -0.08903367817401886, -0.1417604684829712, 0.49757909774780273, -0.17882078886032104, 0.10549314320087433, -0.37914058566093445, -0.15446233749389648, -0.2763247489929199, -0.07310299575328827, 0.017712431028485298, -0.11167525500059128, -0.05119835585355759, -0.18745017051696777, -0.05377693474292755, -0.4412745237350464, 0.01918513886630535, 0.34283941984176636, 0.17045874893665314, -0.24122849106788635, -0.00011779175110859796, -0.014008160680532455, 0.31134724617004395, -0.2502266466617584, -0.28570955991744995, -0.06339672207832336, -0.31249016523361206, -0.3450862467288971, 0.17624251544475555, -0.5943697690963745, -0.24940326809883118, -0.40903180837631226, 0.13923229277133942, -0.21777750551700592, -0.13925090432167053, 0.09874722361564636, 0.09078783541917801, 0.23636117577552795, -0.11968329548835754, 0.09587006270885468, 0.07307851314544678, 0.3375033140182495, -0.416897177696228, -0.446792334318161, 0.391854852437973, 0.16529753804206848, -0.011491484940052032, 0.38632407784461975, -0.18135778605937958, 0.010796374641358852, 0.14035451412200928, 0.1387881189584732, -0.029628999531269073, -0.4611866772174835, -0.16425734758377075, 0.4184069335460663, 0.6050739288330078, -0.060421742498874664, -0.24832752346992493, -0.6671292781829834, 0.0009212861768901348, -0.18136507272720337, 0.18624070286750793, -0.17078609764575958, -0.09550221264362335, 0.20372669398784637, -0.27458250522613525, -0.11476663500070572, 0.058412447571754456, 0.003707669675350189, 0.15331439673900604, 0.06010446324944496, -0.04122576490044594, 0.11717748641967773, -0.1498219221830368, -0.20586220920085907, 0.28708982467651367, -0.48029136657714844, 0.11344455182552338, 0.2040078341960907, -0.11567260324954987, -0.3826885223388672, 0.18310824036598206, -0.08482269197702408, -0.10119935870170593, 0.22091563045978546, 0.23007932305335999, 0.209151953458786, -0.24470272660255432, 0.038676608353853226, 0.3629890978336334, 0.07297196984291077, -0.13610830903053284, 0.03182166814804077, 0.27851980924606323, 0.20381279289722443, 0.31304439902305603, -0.17371779680252075, 0.14508815109729767, 0.33652615547180176, 0.47575825452804565, 0.28112319111824036, 0.4270164370536804, -0.05779292806982994, 0.05701091140508652, -0.1352231502532959, -0.13839876651763916, -0.03961433097720146, 0.1793593168258667, 0.05613283812999725, -0.08142238110303879, 0.5015408992767334, -0.1599196195602417, -0.020571958273649216, 0.002435533329844475, -0.2627966105937958, -0.030881445854902267, -0.31808286905288696, -0.009386036545038223, 0.09570657461881638, 0.30015867948532104, 0.13390012085437775, 0.08553061634302139, -0.1393464207649231, -0.2092616707086563, 0.2760676145553589, 0.20458537340164185, -0.355690598487854, 0.28783881664276123, 0.3226167857646942, -0.18335221707820892, 0.010617317631840706, 0.0038855746388435364, -0.03579661622643471, -0.34173712134361267, 0.2460637092590332, -0.0899796113371849, -0.4012465476989746, 0.14604537189006805, 0.07726355642080307, -0.24455206096172333, 0.2284136712551117, -0.24645978212356567, 0.5421476364135742, -0.07196088880300522, -0.10391107201576233, 0.02456788718700409, 0.0672752857208252, -0.0651620551943779, -0.2276446521282196, 0.10843994468450546, 0.35584861040115356, -0.03508452698588371, -0.11483263969421387, -0.11565496027469635, -0.25418734550476074, 0.3229050040245056, -0.12078522145748138, -0.12269848585128784, 0.0872722640633583, 0.03040287084877491, 0.18516720831394196, 0.39387568831443787, 0.19056065380573273, 0.02181723341345787, 0.2032703012228012, 0.26693660020828247, 0.6105619072914124, 0.29083511233329773, 0.17766784131526947, 0.19612866640090942, -0.226876363158226, -0.017696402966976166, 0.24656346440315247, -0.40430116653442383, -0.004581419751048088, -0.09384667873382568, -0.43455103039741516, -0.0014849938452243805, 0.11525079607963562, 0.2518961429595947, 0.45149874687194824, 0.03121255710721016, -0.1361595243215561, -0.07997385412454605, -0.29586052894592285, -0.02095337025821209, -0.16967664659023285, 0.28757479786872864, 0.1371619701385498, -0.050592925399541855, -0.31476518511772156, -0.7018659114837646, 0.2749198377132416, 0.26738426089286804, -0.16765721142292023, -0.117460697889328, -0.5053917765617371, 0.18944203853607178, 0.15791895985603333, 0.24882258474826813, 0.3188950717449188, 0.07727579027414322, 0.20896857976913452, -0.11778177320957184, -0.07096575200557709, -0.4870624840259552, 0.10193785279989243, -0.343763142824173, -0.1436043530702591, -0.34507352113723755, -0.15575045347213745, 0.30528029799461365, -0.0064407894387841225, -0.04023415967822075, 0.2777799665927887, 0.06279150396585464, -0.004918134771287441, 0.07375087589025497, 0.16453209519386292, 0.14280559122562408, 0.12682653963565826, -0.2613423764705658, 0.7893504500389099, 0.14366555213928223, 0.2072412073612213, -0.13255620002746582, 0.10570083558559418, 0.1673552393913269, -0.0846257135272026, -0.07882224768400192, 0.4344175457954407, -0.12068186700344086, 0.2937891185283661, -0.012601781636476517, -0.007384852506220341, 0.19097383320331573, 0.22592681646347046, -0.4163534343242645, -0.2421330213546753, -0.41331955790519714, -0.039715684950351715, -0.27288874983787537, 0.12030915915966034, -0.4436870217323303, 0.13834387063980103, 0.6865109801292419, -0.02076549082994461, 0.1361958235502243, -0.24027764797210693, 0.09877185523509979, -0.13357943296432495, 0.2436399608850479, -0.25348442792892456, 0.14442123472690582, 0.12045227736234665, 0.1328728049993515, -0.18691027164459229, 0.07612404227256775, 0.048372648656368256, 0.2120969146490097, 0.2661834955215454, 0.12596501410007477, -0.05319981276988983, -0.03063574992120266, -0.03250018134713173, -0.2103092074394226, -0.21523042023181915, 0.03275632858276367, 0.09120234847068787, -0.31038936972618103, -0.19512639939785004, -0.06263303756713867, -0.1792668104171753, 0.40322399139404297, -0.10690728574991226, 0.2718139886856079, -0.3758513927459717, 0.05555405095219612, 0.4299968183040619, -0.325279176235199, 0.0608958974480629, -0.4303102195262909, 0.5091381072998047, -0.16640840470790863, -0.05668804794549942, -0.40212804079055786, 0.012153752148151398, 0.12990733981132507, 0.035008396953344345, 0.03286547586321831, -0.3372928500175476, 0.15952764451503754, 0.14676488935947418, 0.07910949736833572, -0.18560677766799927, -0.3602263629436493, 0.07883889228105545, -0.044980235397815704, 0.011458409950137138, 0.2430844008922577, 0.14147184789180756, 0.28396016359329224, -0.13059794902801514, 0.053653351962566376, 0.20594269037246704, -0.03501502051949501, -0.08892813324928284, 0.06503205746412277, -0.052527476102113724, -0.21654826402664185, -0.2815704643726349, -0.03469276428222656, -0.33330175280570984, 0.14077520370483398, 0.04904397949576378, 0.27897167205810547, 0.02415042370557785, -0.24689225852489471, -0.1634015440940857, 0.15588907897472382, 0.0005643051117658615, -0.09230823069810867, -0.11786621809005737, 0.44836440682411194, -0.10112261772155762, 0.13173285126686096, -0.04032245650887489, -0.3226248025894165, -0.18671396374702454, 0.4375370740890503, -0.17583629488945007, -0.13220667839050293, -0.26113006472587585, 0.45024579763412476, 0.007402442395687103, -0.3816675543785095, 0.4868760108947754, 0.39125725626945496, -0.019701659679412842, 0.05820173770189285, 0.08964340388774872, 0.030991800129413605, 0.27550387382507324, -0.1030268743634224, 0.4198790490627289, 0.2339196503162384, -0.06835223734378815, 0.6512364149093628, -0.14871978759765625, 0.0636269748210907, 0.44666993618011475, 0.06903091073036194, 0.27969783544540405, -0.257301926612854, 0.08919377624988556, -0.12567582726478577, 0.08532501757144928, -0.057488612830638885, 0.04465629905462265, -0.2535790801048279, -0.5694260597229004, -0.23575803637504578, 0.3780588209629059, -0.4070221483707428, -0.28538453578948975, 0.42303377389907837, -0.31979721784591675, 0.2727945148944855, -0.006322333589196205, 0.30677229166030884, -0.314281702041626, -0.15918028354644775, -0.07671181857585907, -0.05109962821006775, 0.671873152256012, -0.22058993577957153, -0.43649822473526, 0.04432905465364456, -0.28036585450172424, 0.23269781470298767, 0.01763164810836315, 0.23396643996238708, -0.09738440811634064, -0.44639578461647034, 0.05772824585437775, 0.03447835519909859, 0.11780402064323425, -0.5875689387321472, -0.4134306311607361, 0.09449377655982971, -0.17206557095050812, 0.3030664920806885, -0.13044673204421997, -0.12078677117824554, 0.11051090806722641, -0.22554640471935272, 0.6215915679931641, -0.538356602191925, -0.16268597543239594, 0.2976978123188019, -0.2193141132593155, -0.167753204703331, 0.07586720585823059, 0.09088198840618134, -0.01351805031299591, 0.05828457325696945, -0.08948292583227158, 0.15673966705799103, 0.13481071591377258, -0.14703263342380524, -0.1362038403749466, -0.48623356223106384, 0.2389940619468689, 0.23249278962612152, 0.290447860956192, 0.05166792497038841, 0.15249982476234436, 0.23260551691055298, 0.26677656173706055, 0.3984009325504303, -0.135479137301445, 0.3278864026069641, 0.21344402432441711, -0.29997169971466064, 0.15824896097183228, 0.03445720672607422, 0.3866281807422638, 0.278875470161438, -0.17091357707977295, 0.24936175346374512, 0.12136141210794449, 0.24049411714076996, -0.655826985836029, 0.014118872582912445, 0.3310110867023468, -0.10853421688079834, -0.30440688133239746, -0.7967523336410522, 0.3784852921962738, -0.014562815427780151, -0.23415543138980865, 0.44294828176498413, 0.13832947611808777, -0.31871360540390015, 0.3563970923423767, 0.3060068190097809, 0.8977747559547424, -0.14180625975131989, -0.2499682903289795, 0.2588612139225006, 0.013775087893009186, 0.3066810071468353, -0.3449515104293823, 0.17175614833831787, 0.017025116831064224, -0.5055757761001587, -0.20235615968704224, 0.1201329380273819, 0.43211203813552856, 0.211153045296669, -0.020049702376127243, 0.11567263305187225, 0.0053979456424713135, 0.5576242208480835, -0.06902235001325607, 0.0451057106256485, -0.1694585382938385, -0.42769402265548706, -0.08158207684755325, -0.02534424513578415, -0.08821019530296326, -0.053428541868925095, 0.10151991993188858, -0.04122323542833328, 0.35927829146385193, 0.025980249047279358, -0.010174281895160675, -0.12427426874637604, -0.1803688108921051, -0.12379302084445953, -0.056296054273843765, 0.14641073346138, -0.04454099386930466, 0.3152102530002594, -0.086374431848526, 0.06974177807569504, -0.0790732279419899, 0.17269136011600494, 0.2955891191959381, 0.3105262517929077, 0.09245384484529495, 0.062859445810318, 0.32214415073394775, 0.010150875896215439, -0.13944514095783234, 0.29053428769111633, -0.3050163984298706, -0.18685512244701385, -0.28968149423599243, -0.3115047216415405, 0.47185224294662476, -0.2779972553253174, -0.39735057950019836, 0.06706021726131439, 0.030188415199518204, 0.08117979764938354, 0.021903179585933685, -0.06879778206348419, 0.048286352306604385, 0.39623650908470154, -0.13841059803962708, -0.1034439280629158, -0.12185865640640259, 0.14927938580513, 0.22671601176261902, 0.22239530086517334, 0.3508874177932739, -0.42219653725624084, -0.2060396671295166, -0.11399471759796143, -0.01931285485625267, 0.19609718024730682, -0.17027509212493896, -0.12522955238819122, 0.233751580119133, -0.29002514481544495, -0.05868211388587952, 0.5379303693771362, -0.08510574698448181, 0.0089578777551651, -0.24132728576660156, -0.13562816381454468, -0.04802633076906204, 0.462401807308197, 0.07101728022098541, 0.3625856339931488, -0.08323357999324799, -0.37920132279396057, -0.11309325695037842, 0.05187886580824852, -0.2545918822288513, -0.5502427816390991, -0.20571985840797424, 0.3402555286884308, 0.11841727048158646, 0.29333722591400146, 0.2836589515209198, -0.06782539933919907, 0.13334164023399353, -0.18498004972934723, -0.10706861317157745, -0.1089354008436203, 0.009204123169183731, 0.23351767659187317, 0.005211137235164642, -0.00900883600115776, -0.17527416348457336, -0.39288634061813354, -0.37935352325439453, -0.3678284287452698, 0.2107684165239334, 0.06146172434091568, 0.09683694690465927, 0.09941674768924713, 0.04666770249605179, 0.08342241495847702, -0.37573790550231934, 0.2639884054660797, 0.04751824215054512, -0.07082024216651917, -0.09609176218509674, 0.13472577929496765, -0.2969101369380951, -0.013688519597053528, -0.015650423243641853, 0.21200260519981384, 0.10220414400100708, 0.12423204630613327, 0.42390260100364685, 0.25253215432167053, 0.17739534378051758, 0.1545128971338272, 0.021402858197689056, 0.0686793178319931, 0.17727988958358765, -0.12427648901939392, 0.07358405739068985, 0.13611508905887604, -0.3784037232398987, 0.280025452375412, -0.15376092493534088, 0.11178451776504517, 0.3748580515384674, 0.46917903423309326, 0.22484156489372253, 0.29360055923461914, 0.30332809686660767, -0.31384554505348206, 0.022648010402917862, -0.13222657144069672, 0.17203831672668457, 0.6517091393470764, 0.023728784173727036, 0.11187762022018433, 0.3302571475505829, 0.09799909591674805, 0.09150376915931702, 0.16841809451580048, 0.10958552360534668, 0.14791125059127808, 0.43615928292274475, 0.13727594912052155, 0.036239031702280045, -0.5480390787124634, 0.15733806788921356, -0.03229007124900818, 0.160085991024971, 0.352604478597641, 0.19005200266838074, -0.3174116611480713, -0.056782301515340805, -0.1880505383014679, -0.3633101284503937, -0.15073953568935394, -0.10982543975114822, -0.16211339831352234, -0.121968112885952, -0.2789207994937897, -0.14027494192123413, -0.2114342302083969, 0.09569444507360458, -0.1426921933889389, 0.3837164044380188, -0.03268251568078995, 0.30709749460220337, -0.031144822016358376, 0.23781812191009521, -0.10677274316549301, 0.7652916312217712, -0.24357187747955322, 0.23841992020606995, -0.18857552111148834, 0.13586987555027008, 0.05808965116739273, 0.32299137115478516, -0.22821396589279175, 0.2646605968475342, 0.04249214380979538, 0.15663619339466095, 0.07228197902441025, -0.17371010780334473, -0.05990985408425331, 0.19550615549087524, 0.021825209259986877, 0.2545528709888458, 0.22920726239681244, 0.029940759763121605, 0.013597973622381687, 0.1749730408191681, -0.18331216275691986, 0.12751828134059906, -0.29345765709877014, 0.40573933720588684, 0.28584352135658264, -0.19592586159706116, 0.18381179869174957, -0.2593998908996582, 0.07966490834951401, -0.33057501912117004, 0.11807897686958313, -0.16537754237651825, 0.18480223417282104, 0.024795472621917725, 0.042608942836523056, -0.0038471929728984833, 0.10604875534772873, -0.02369535341858864, -0.4214847981929779, -0.22819103300571442, 0.14031191170215607, -0.5570997595787048, -0.2597808837890625, 0.13577328622341156, -0.1515229493379593, 0.46783408522605896, 0.344881147146225, 0.3585224747657776, 0.22990484535694122, -0.2937604784965515, -0.3753780722618103, 0.07991358637809753, 0.4296649992465973, -0.24372468888759613, -0.3396240472793579, -0.07731278240680695, -0.1093849241733551, -0.15150940418243408, -0.3543350100517273, 0.21253801882266998, 0.15572533011436462, -0.024755673483014107, 0.06883522868156433, -0.053643617779016495, 0.17838391661643982, 0.14348003268241882, 0.32908621430397034, 0.011163388378918171, -0.055827170610427856, 0.04789266735315323, -0.0021580643951892853, -0.015930283814668655, -0.19648101925849915, -0.11631649732589722, 0.25971922278404236, -0.07563628256320953, 0.322787880897522, -0.019243400543928146, 0.5708127021789551, -0.21421021223068237, -0.0010118297068402171, -0.017927860841155052, -0.12175266444683075, -0.17599713802337646, -0.07908499985933304, -0.3053213953971863, 0.07722358405590057, 0.21436350047588348, 0.04663246497511864, 0.18044321238994598, -0.07074743509292603, -0.0554518848657608, -0.22984528541564941, 0.3155062198638916, 0.024058710783720016, -0.06675099581480026, -0.0953092873096466, 0.19807296991348267, 0.3765789866447449, 0.24089212715625763, -0.5101929306983948, -0.25110357999801636, 0.4723910391330719, -0.6665960550308228, 0.3515247702598572, 0.11191681027412415, 0.007280743680894375, -0.026887087151408195, -0.46685802936553955, 0.23468102514743805, -0.21323010325431824, 0.06881282478570938, -0.34560897946357727, -0.2847834825515747 ]
https://github.com/huggingface/datasets/issues/3881
How to use Image folder
Hi @INF800, Please note that the `imagefolder` feature enhancement was just recently merged to our master branch (https://github.com/huggingface/datasets/commit/207be676bffe9d164740a41a883af6125edef135), but has not yet been released. We are planning to make the 2.0 release of our library in the coming days and then that feature will be available by updating your `datasets` library from PyPI. In the meantime, you can incorporate that feature if you install our library from our GitHub master branch: ```shell pip install git+https://github.com/huggingface/datasets#egg=datasets ``` Then: ```python In [1]: from datasets import load_dataset ds = load_dataset("imagefolder", data_files="https://download.microsoft.com/download/3/E/1/3E1C3F21-ECDB-4869-8368-6DEBA77B919F/kagglecatsanddogs_3367a.zip", split="train") Using custom data configuration default-7eb4e80d960deb18 Downloading and preparing dataset image_folder/default to .../.cache/huggingface/datasets/image_folder/default-7eb4e80d960deb18/0.0.0/8de8dc6d68ce3c81cc102b93cc82ede27162b5d30cd003094f935942c8294f60... Downloading data files: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 690.19it/s] Extracting data files: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 852.85it/s] Dataset image_folder downloaded and prepared to .../.cache/huggingface/datasets/image_folder/default-7eb4e80d960deb18/0.0.0/8de8dc6d68ce3c81cc102b93cc82ede27162b5d30cd003094f935942c8294f60. Subsequent calls will reuse this data. In [2]: ds Out[2]: Dataset({ features: ['image', 'label'], num_rows: 25000 }) ```
Ran this code ``` load_dataset("imagefolder", data_dir="./my-dataset") ``` `https://raw.githubusercontent.com/huggingface/datasets/master/datasets/imagefolder/imagefolder.py` missing ``` --------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) /tmp/ipykernel_33/1648737256.py in <module> ----> 1 load_dataset("imagefolder", data_dir="./my-dataset") /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, script_version, **config_kwargs) 1684 revision=revision, 1685 use_auth_token=use_auth_token, -> 1686 **config_kwargs, 1687 ) 1688 /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, script_version, **config_kwargs) 1511 download_config.use_auth_token = use_auth_token 1512 dataset_module = dataset_module_factory( -> 1513 path, revision=revision, download_config=download_config, download_mode=download_mode, data_files=data_files 1514 ) 1515 /opt/conda/lib/python3.7/site-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_files, **download_kwargs) 1200 f"Couldn't find a dataset script at {relative_to_absolute_path(combined_path)} or any data file in the same directory. " 1201 f"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}" -> 1202 ) from None 1203 raise e1 from None 1204 else: FileNotFoundError: Couldn't find a dataset script at /kaggle/working/imagefolder/imagefolder.py or any data file in the same directory. Couldn't find 'imagefolder' on the Hugging Face Hub either: FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/master/datasets/imagefolder/imagefolder.py ```
140
How to use Image folder Ran this code ``` load_dataset("imagefolder", data_dir="./my-dataset") ``` `https://raw.githubusercontent.com/huggingface/datasets/master/datasets/imagefolder/imagefolder.py` missing ``` --------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) /tmp/ipykernel_33/1648737256.py in <module> ----> 1 load_dataset("imagefolder", data_dir="./my-dataset") /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, script_version, **config_kwargs) 1684 revision=revision, 1685 use_auth_token=use_auth_token, -> 1686 **config_kwargs, 1687 ) 1688 /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, script_version, **config_kwargs) 1511 download_config.use_auth_token = use_auth_token 1512 dataset_module = dataset_module_factory( -> 1513 path, revision=revision, download_config=download_config, download_mode=download_mode, data_files=data_files 1514 ) 1515 /opt/conda/lib/python3.7/site-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_files, **download_kwargs) 1200 f"Couldn't find a dataset script at {relative_to_absolute_path(combined_path)} or any data file in the same directory. " 1201 f"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}" -> 1202 ) from None 1203 raise e1 from None 1204 else: FileNotFoundError: Couldn't find a dataset script at /kaggle/working/imagefolder/imagefolder.py or any data file in the same directory. Couldn't find 'imagefolder' on the Hugging Face Hub either: FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/master/datasets/imagefolder/imagefolder.py ``` Hi @INF800, Please note that the `imagefolder` feature enhancement was just recently merged to our master branch (https://github.com/huggingface/datasets/commit/207be676bffe9d164740a41a883af6125edef135), but has not yet been released. We are planning to make the 2.0 release of our library in the coming days and then that feature will be available by updating your `datasets` library from PyPI. In the meantime, you can incorporate that feature if you install our library from our GitHub master branch: ```shell pip install git+https://github.com/huggingface/datasets#egg=datasets ``` Then: ```python In [1]: from datasets import load_dataset ds = load_dataset("imagefolder", data_files="https://download.microsoft.com/download/3/E/1/3E1C3F21-ECDB-4869-8368-6DEBA77B919F/kagglecatsanddogs_3367a.zip", split="train") Using custom data configuration default-7eb4e80d960deb18 Downloading and preparing dataset image_folder/default to .../.cache/huggingface/datasets/image_folder/default-7eb4e80d960deb18/0.0.0/8de8dc6d68ce3c81cc102b93cc82ede27162b5d30cd003094f935942c8294f60... Downloading data files: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 690.19it/s] Extracting data files: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 852.85it/s] Dataset image_folder downloaded and prepared to .../.cache/huggingface/datasets/image_folder/default-7eb4e80d960deb18/0.0.0/8de8dc6d68ce3c81cc102b93cc82ede27162b5d30cd003094f935942c8294f60. Subsequent calls will reuse this data. In [2]: ds Out[2]: Dataset({ features: ['image', 'label'], num_rows: 25000 }) ```
[ -0.2858946919441223, 0.07919441163539886, -0.16414369642734528, 0.519249439239502, 0.39786988496780396, 0.19424113631248474, 0.3166288137435913, 0.14290893077850342, 0.04558452591300011, 0.17036841809749603, 0.07837368547916412, -0.013808638788759708, -0.20191234350204468, 0.09910792857408524, -0.02797183394432068, -0.06101495027542114, -0.13744312524795532, 0.2016352415084839, -0.18007051944732666, 0.10539866983890533, -0.32439735531806946, 0.2227630466222763, -0.1992964744567871, 0.023970115929841995, -0.37252435088157654, -0.1334151327610016, -0.25548601150512695, 0.5537114143371582, -0.3019846975803375, -0.2025514543056488, 0.14256779849529266, -0.14845316112041473, 0.2093803435564041, 0.45155903697013855, -0.00010756453411886469, 0.2240583747625351, 0.4101126194000244, -0.23110130429267883, -0.3290292024612427, -0.3769565224647522, -0.22826707363128662, -0.04417284578084946, 0.004734463058412075, -0.38196003437042236, -0.12255309522151947, -0.07823918014764786, 0.2704274356365204, 0.025410674512386322, 0.30770784616470337, 0.27651527523994446, 0.25899896025657654, 0.12140601873397827, 0.18434782326221466, -0.016901491209864616, -0.11218354851007462, 0.49309074878692627, 0.03727637231349945, 0.2362050563097, 0.07920164614915848, -0.06527967751026154, 0.16254371404647827, 0.2614590525627136, 0.035887494683265686, -0.012443963438272476, 0.23219162225723267, 0.11052732914686203, -0.006824158132076263, -0.21559393405914307, 0.12655022740364075, -0.182091623544693, 0.3849572241306305, -0.16167455911636353, -0.18176323175430298, -0.01814570277929306, -0.03954287990927696, -0.40643003582954407, 0.1617153435945511, 0.08369044214487076, -0.118756502866745, 0.0931641012430191, -0.18624654412269592, -0.2279617339372635, -0.3234364688396454, 0.3092057704925537, 0.06795604526996613, 0.08778923004865646, -0.20539332926273346, 0.07692408561706543, 0.11506018042564392, 0.04930603504180908, 0.09709066897630692, -0.3621649742126465, 0.044210854917764664, 0.12650564312934875, 0.2593221366405487, 0.1461469531059265, -0.019517123699188232, 0.15175965428352356, 0.09592851251363754, 0.10282131284475327, -0.29831603169441223, -0.2555592656135559, -0.25267431139945984, 0.07934631407260895, 0.0006243642419576645, 0.22888146340847015, -0.055761851370334625, 0.45835697650909424, 0.22302663326263428, 0.39754581451416016, -0.024601725861430168, -0.24438348412513733, -0.30115532875061035, -0.20050166547298431, 0.049957726150751114, 0.20114412903785706, 0.326768159866333, 0.0799773782491684, -0.01354173757135868, -0.4608425199985504, 0.12705892324447632, -0.06864415854215622, 0.2023272067308426, 0.28796255588531494, 0.22720816731452942, -0.02183528244495392, 0.1704132854938507, 0.2375158667564392, 0.1398354172706604, 0.09844878315925598, -0.255423367023468, 0.28424856066703796, -0.2523292601108551, -0.005160806700587273, -0.04391784965991974, -0.2546502947807312, 0.30564504861831665, -0.2868964970111847, 0.052693262696266174, 0.058540187776088715, 0.15533658862113953, -0.21698719263076782, -0.05098211020231247, 0.26103585958480835, -0.09167299419641495, -0.018739739432930946, 0.2963450849056244, -0.04541997238993645, 0.06669851392507553, 0.09966868162155151, -0.44844144582748413, -0.4122200608253479, -0.20433732867240906, 0.22125470638275146, -0.09461710602045059, 0.0263814739882946, -0.5048222541809082, -0.24247677624225616, -0.04984346777200699, -0.22074078023433685, 0.028593748807907104, 0.005032455548644066, -0.21649478375911713, -0.1788632571697235, 0.2506091594696045, 0.5779447555541992, -0.14425954222679138, 0.07152648270130157, -0.26899152994155884, -0.23021861910820007, 0.18472149968147278, 0.09179594367742538, -0.20626354217529297, 0.4836919903755188, -0.6135780811309814, -0.037743303924798965, 0.5469892621040344, -0.6308553814888, -0.26421353220939636, -0.019476642832159996, -0.016056586056947708, -0.02837318368256092, 0.14419429004192352, 0.049167223274707794, 0.06856698542833328, -0.07879511266946793, -0.10481569170951843, 0.2463378757238388, -0.020746948197484016, 0.039303019642829895, 0.011602688580751419, -0.2071625143289566, -0.15440057218074799, 0.2210119217634201, 0.09984173625707626, 0.21987569332122803, 0.2281196415424347, -0.03288298100233078, 0.062134549021720886, -0.29887643456459045, 0.17807282507419586, 0.11518837511539459, 0.3906305134296417, 0.12293396890163422, -0.1748877912759781, -0.030899139121174812, -0.37983083724975586, 0.2845122218132019, 0.10844171047210693, -0.06060291826725006, -0.46449583768844604, 0.142732635140419, -0.16168558597564697, -0.2617485225200653, -0.41191667318344116, -0.24864807724952698, 0.1931684911251068, 0.23112671077251434, 0.10355229675769806, 0.011139292269945145, -0.16044621169567108, 0.28489449620246887, -0.18410441279411316, 0.1677674651145935, -0.15608926117420197, 0.45571616291999817, -0.38713985681533813, -0.17869381606578827, 0.12040014564990997, -0.015108518302440643, 0.07757701724767685, -0.2544839680194855, -0.05919801443815231, 0.2827380299568176, 0.13521966338157654, 0.14312973618507385, 0.306769460439682, -0.07055990397930145, 0.14599545300006866, -0.3780551254749298, 0.12583138048648834, -0.1305873543024063, 0.33849194645881653, 0.07661966234445572, -0.020167268812656403, 0.18093478679656982, -0.15699906647205353, 0.08842120319604874, 0.09803815186023712, -0.10842535644769669, 0.03857893496751785, -0.03286302462220192, 0.18180501461029053, -0.19265970587730408, 0.06556491553783417, 0.2532232403755188, 0.20334267616271973, -0.03505796194076538, 0.011664979159832, -0.2331337034702301, 0.34953612089157104, 0.061736833304166794, 0.12157127261161804, 0.18106135725975037, -0.14120841026306152, 0.1114950105547905, 0.005513971671462059, 0.10758990049362183, 0.6850781440734863, 0.2946435511112213, -0.23488157987594604, 0.0732882022857666, 0.2798925042152405, -0.007790572941303253, 0.2949090301990509, 0.022982802242040634, 0.31905198097229004, 0.1136220395565033, 0.023056501522660255, -0.005512171424925327, -0.23307183384895325, -0.5380801558494568, -0.10605349391698837, 0.35992443561553955, -0.1671123057603836, 0.06577246636152267, -0.22938835620880127, -0.42902871966362, 0.2275754064321518, 0.14856407046318054, -0.011752437800168991, -0.13069701194763184, -0.13751265406608582, 0.04224235564470291, 0.17259766161441803, 0.004895212594419718, -0.31007614731788635, 0.0854402631521225, 0.07500418275594711, -0.44916465878486633, -0.5388176441192627, -0.03493880480527878, -0.04896431416273117, 0.13545919954776764, 0.3568563759326935, -0.09235801547765732, 0.3888430595397949, -0.29045921564102173, 0.170111745595932, -0.5194391012191772, -0.16853006184101105, 0.08414287865161896, 0.0003068894147872925, 0.19681134819984436, 0.33854880928993225, 0.32823607325553894, 0.20738957822322845, -0.14623187482357025, 0.42599865794181824, 0.07747919857501984, -0.326722115278244, -0.012651590630412102, -0.1966930627822876, -0.1362506002187729, -0.16420775651931763, -0.12846365571022034, -0.35732296109199524, -0.4335588216781616, -0.06843078136444092, 0.29350975155830383, 0.08248821645975113, 0.44169074296951294, 0.20308484137058258, 0.2307364046573639, -0.14040601253509521, 0.02989770472049713, -0.03977055847644806, -0.4825538098812103, 0.2662038207054138, -0.14714284241199493, -0.20142433047294617, 0.11320920288562775, -0.09715785086154938, 0.20873138308525085, 0.049699004739522934, -0.34096336364746094, -0.6610175371170044, 0.09806051105260849, 0.2304312288761139, -0.026113033294677734, 0.21054764091968536, 0.28395670652389526, 0.046252403408288956, -0.06697916239500046, -0.07259001582860947, -0.07612001895904541, -0.0332983061671257, -0.008268609642982483, 0.27623245120048523, 0.08663436025381088, 0.48563703894615173, 0.001083657145500183, 0.7047637104988098, 0.1602012664079666, -0.005663096904754639, 0.5541394948959351, -0.3467073440551758, 0.5346217155456543, -0.3130926191806793, -0.2578810453414917, 0.17359289526939392, 0.3412328362464905, -0.01595587655901909, -0.05152332782745361, 0.040161632001399994, 0.1763598620891571, -0.13919135928153992, -0.25969043374061584, -0.6329510807991028, 0.06568989157676697, 0.005821391940116882, 0.10524143278598785, 0.20907577872276306, -0.07722899317741394, -0.41149207949638367, -0.06928560137748718, -0.09871423989534378, 0.1179208755493164, 0.6839739084243774, 0.18140177428722382, 0.19671186804771423, -0.06265062838792801, -0.2422274947166443, -0.018139928579330444, 0.36359816789627075, 0.03168744593858719, -0.09198729693889618, -0.0862802192568779, 0.2153061330318451, 0.027875825762748718, -0.1463741809129715, 0.7403360605239868, -0.09525144100189209, -0.010674674063920975, 0.0185244120657444, -0.26638734340667725, -0.11050672084093094, -0.01144523173570633, -0.08961181342601776, 0.05086817964911461, -0.12382487952709198, 0.667944073677063, -0.15672296285629272, -0.28274598717689514, 0.24038507044315338, 0.05858217552304268, -0.29292023181915283, -0.08560662716627121, -0.3727974593639374, -0.39439526200294495, -0.4308893382549286, -0.18924295902252197, -0.05428311973810196, 0.14078494906425476, 0.35311660170555115, 0.034440699964761734, -0.06194475293159485, -0.23695868253707886, -0.31219762563705444, 0.006282290443778038, 0.3898470401763916, -0.16568905115127563, -0.06670484691858292, 0.337018221616745, 0.11812105774879456, 0.5655360221862793, 0.49727198481559753, -0.1634872406721115, -0.055383890867233276, 0.04755493998527527, -0.03892556577920914, 0.15716107189655304, 0.07872827351093292, -0.2703436017036438, -0.4112435579299927, -0.16047488152980804, 0.1485656201839447, -0.14653851091861725, 0.007889552041888237, 0.3987913131713867, -0.07838621735572815, -0.029113754630088806, -0.14483995735645294, 0.22775417566299438, 0.05467931553721428, 0.09832651913166046, 0.3387629985809326, 0.32427501678466797, -0.3816370964050293, 0.09073210507631302, -0.14067742228507996, 0.5482306480407715, -0.08148916065692902, 0.2978999614715576, 0.29990822076797485, -0.06765919923782349, 0.1985689401626587, 0.16608373820781708, 0.07852737605571747, -0.13393652439117432, -0.16649644076824188, -0.06401529163122177, -0.26756778359413147, 0.3405865728855133, 0.050383370369672775, -0.16866742074489594, 0.4461618959903717, -0.0890485942363739, -0.09101349115371704, -0.1511068344116211, 0.11674937605857849, -0.1589270532131195, 0.04342307895421982, -0.10214466601610184, 0.23127040266990662, 0.05473300814628601, 0.3664603531360626, -0.22044235467910767, 0.0490674190223217, -0.1903863102197647, -0.24958884716033936, -0.028194479644298553, 0.06680259853601456, -0.47855550050735474, 0.14251095056533813, 0.014971014112234116, -0.10721544921398163, 0.019641853868961334, 0.3782065510749817, -0.046462468802928925, -0.04265826568007469, -0.1432626098394394, 0.21272315084934235, -0.14498037099838257, 0.05183985084295273, -0.24012240767478943, 0.042011991143226624, 0.2063642144203186, -0.20219439268112183, 0.05887306481599808, 0.03816628456115723, -0.15743331611156464, -0.23962458968162537, -0.027689985930919647, 0.016482576727867126, 0.095319002866745, -0.00854751281440258, -0.3456416130065918, -0.17251178622245789, -0.1062447726726532, -0.12887173891067505, 0.1877816617488861, 0.04615854099392891, -0.00931310560554266, -0.007291354238986969, -0.15327227115631104, -0.14366507530212402, 0.09416384994983673, 0.05476554110646248, -0.08714215457439423, 0.18934449553489685, 0.4673839211463928, -0.11427199840545654, -0.03981709107756615, -0.3154887557029724, 0.4180922210216522, 0.05197968706488609, -0.07614382356405258, 0.1887275129556656, 0.34399935603141785, 0.22825108468532562, 0.0126238027587533, 0.03767874836921692, 0.11074453592300415, -0.30680394172668457, -0.08602241426706314, -0.491786390542984, -0.40570276975631714, 0.2501187324523926, -0.21596325933933258, 0.20420637726783752, -0.16452819108963013, 0.13078081607818604, 0.2762947678565979, -0.2896706163883209, -0.3796900510787964, 0.28266698122024536, -0.3409358561038971, 0.127092182636261, 0.30698785185813904, 0.04170360416173935, 0.4476424753665924, 0.07533226907253265, 0.26235002279281616, -0.11074981093406677, -0.26338621973991394, -0.249680757522583, -0.0660935640335083, 0.0987200066447258, 0.12120765447616577, -0.13493096828460693, 0.1189349889755249, -0.16182918846607208, -0.13428063690662384, 0.09235989302396774, -0.006042515859007835, -0.03041486255824566, -0.08367571234703064, 0.046324122697114944, 0.10990692675113678, -0.2554641664028168, -0.05380750074982643, 0.054938122630119324, -0.2516523003578186, 0.3395839035511017, 0.19299651682376862, 0.09729643166065216, 0.00292973592877388, -0.09338098764419556, -0.06502065807580948, -0.06767839938402176, 0.04869377613067627, 0.166627436876297, 0.4039123058319092, 0.029883703216910362, 0.06324677169322968, -0.11219195276498795, 0.29067090153694153, 0.006243307143449783, -0.3475567698478699, 0.3203180432319641, 0.08517378568649292, 0.2337813824415207, -0.2893438935279846, 0.015505677089095116, -0.020891066640615463, -0.1136554628610611, 0.042889561504125595, 0.0965161994099617, -0.3188045918941498, 0.1486106961965561, -0.16965116560459137, -0.054747454822063446, 0.548186719417572, -0.19034266471862793, 0.0021555102430284023, 0.14677491784095764, -0.0801941379904747, 0.09333741664886475, 0.34475135803222656, 0.2645242512226105, 0.09786882996559143, 0.6918182373046875, -0.20542123913764954, 0.30071091651916504, -0.2856634855270386, 0.03324192762374878, 0.14071489870548248, -0.29812711477279663, -0.07668571174144745, 0.021527394652366638, 0.04348715394735336, -0.06801921874284744, -0.4112866222858429, 0.08840778470039368, -0.0647997334599495, 0.10550246387720108, 0.016831623390316963, 0.24838419258594513, -0.0025915876030921936, 0.040180232375860214, -0.4531843960285187, -0.18718776106834412, -0.0388968363404274, -0.025838226079940796, 0.08734134584665298, -0.2519074082374573, -0.029787197709083557, 0.25103163719177246, -0.1083664745092392, 0.04343421757221222, 0.01686996780335903, 0.3450642228126526, -0.03008686751127243, -0.19237622618675232, 0.44677063822746277, 0.24441230297088623, 0.06706354022026062, 0.11315599083900452, 0.49395135045051575, 0.518007755279541, 0.19981072843074799, 0.11439555883407593, -0.1387731283903122, -0.020216800272464752, -0.29064425826072693, -0.17365218698978424, 0.21807961165905, 0.08240833133459091, 0.1494479924440384, -0.03139416500926018, 0.3158109486103058, -0.22661782801151276, 0.014661785215139389, -0.06798116862773895, -0.15813632309436798, -0.07539303600788116, 0.4123806655406952, -0.2585471272468567, -0.19275131821632385, -0.07527975738048553, 0.16769902408123016, -0.5033454298973083, 0.10076949745416641, 0.35759884119033813, -0.04873179271817207, 0.10622747987508774, 0.16198192536830902, 0.08192846179008484, -0.03095441684126854, 0.2062026411294937, 0.3546428680419922, -0.005245186388492584, -0.2769242823123932, -0.17778480052947998, -0.5345104932785034, -0.07298963516950607, 0.03162626177072525, -0.26796969771385193, -0.2681926488876343, -0.03288903832435608, -0.08795865625143051, -0.023028988391160965, 0.41808009147644043, 0.20506583154201508, 0.22978676855564117, -0.07757295668125153, -0.3130343556404114, -0.1979028880596161, 0.13034071028232574, 0.0677444264292717, -0.13519035279750824, -0.5085449814796448, -0.009007986634969711, -0.26839694380760193, 0.19038516283035278, 0.0027913209050893784, 0.08663004636764526, -0.1306414157152176, -0.11623573303222656, 0.3766637146472931, -0.01079312153160572, 0.2907446622848511, -0.1698557436466217, -0.004718134179711342, -0.04076577350497246, -0.1496237963438034, -0.02866099774837494, -0.06061489135026932, 0.27543723583221436, 0.28793826699256897, -0.3851911127567291, -0.26791077852249146, -0.4055072069168091, 0.05863402038812637, -0.01701200008392334, -0.10471194237470627, -0.30489620566368103, 0.21066181361675262, -0.13391351699829102, 0.023561814799904823, 0.1579907387495041, 0.22699689865112305, -0.06723437458276749, -0.2553292512893677, -0.5728759765625, -0.08330254256725311, 0.44978711009025574, -0.30615752935409546, -0.2604260742664337, 0.1681201010942459, 0.015658728778362274, -0.11841753870248795, 0.16025565564632416, -0.12972119450569153, 0.2885088622570038, 0.40429726243019104, 0.06959737092256546, -0.32873016595840454, 0.3322093188762665, 0.18165037035942078, 0.2269631177186966, 0.17114989459514618, 0.030704330652952194, -0.11174833029508591, -0.18774275481700897, -0.02708289586007595, 0.02991451323032379 ]
https://github.com/huggingface/datasets/issues/3881
How to use Image folder
Hey @albertvillanova. Does this load entire dataset in memory? Because I am facing huge trouble with loading very big datasets (OOM errors)
Ran this code ``` load_dataset("imagefolder", data_dir="./my-dataset") ``` `https://raw.githubusercontent.com/huggingface/datasets/master/datasets/imagefolder/imagefolder.py` missing ``` --------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) /tmp/ipykernel_33/1648737256.py in <module> ----> 1 load_dataset("imagefolder", data_dir="./my-dataset") /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, script_version, **config_kwargs) 1684 revision=revision, 1685 use_auth_token=use_auth_token, -> 1686 **config_kwargs, 1687 ) 1688 /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, script_version, **config_kwargs) 1511 download_config.use_auth_token = use_auth_token 1512 dataset_module = dataset_module_factory( -> 1513 path, revision=revision, download_config=download_config, download_mode=download_mode, data_files=data_files 1514 ) 1515 /opt/conda/lib/python3.7/site-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_files, **download_kwargs) 1200 f"Couldn't find a dataset script at {relative_to_absolute_path(combined_path)} or any data file in the same directory. " 1201 f"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}" -> 1202 ) from None 1203 raise e1 from None 1204 else: FileNotFoundError: Couldn't find a dataset script at /kaggle/working/imagefolder/imagefolder.py or any data file in the same directory. Couldn't find 'imagefolder' on the Hugging Face Hub either: FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/master/datasets/imagefolder/imagefolder.py ```
22
How to use Image folder Ran this code ``` load_dataset("imagefolder", data_dir="./my-dataset") ``` `https://raw.githubusercontent.com/huggingface/datasets/master/datasets/imagefolder/imagefolder.py` missing ``` --------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) /tmp/ipykernel_33/1648737256.py in <module> ----> 1 load_dataset("imagefolder", data_dir="./my-dataset") /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, script_version, **config_kwargs) 1684 revision=revision, 1685 use_auth_token=use_auth_token, -> 1686 **config_kwargs, 1687 ) 1688 /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, script_version, **config_kwargs) 1511 download_config.use_auth_token = use_auth_token 1512 dataset_module = dataset_module_factory( -> 1513 path, revision=revision, download_config=download_config, download_mode=download_mode, data_files=data_files 1514 ) 1515 /opt/conda/lib/python3.7/site-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_files, **download_kwargs) 1200 f"Couldn't find a dataset script at {relative_to_absolute_path(combined_path)} or any data file in the same directory. " 1201 f"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}" -> 1202 ) from None 1203 raise e1 from None 1204 else: FileNotFoundError: Couldn't find a dataset script at /kaggle/working/imagefolder/imagefolder.py or any data file in the same directory. Couldn't find 'imagefolder' on the Hugging Face Hub either: FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/master/datasets/imagefolder/imagefolder.py ``` Hey @albertvillanova. Does this load entire dataset in memory? Because I am facing huge trouble with loading very big datasets (OOM errors)
[ -0.2858946919441223, 0.07919441163539886, -0.16414369642734528, 0.519249439239502, 0.39786988496780396, 0.19424113631248474, 0.3166288137435913, 0.14290893077850342, 0.04558452591300011, 0.17036841809749603, 0.07837368547916412, -0.013808638788759708, -0.20191234350204468, 0.09910792857408524, -0.02797183394432068, -0.06101495027542114, -0.13744312524795532, 0.2016352415084839, -0.18007051944732666, 0.10539866983890533, -0.32439735531806946, 0.2227630466222763, -0.1992964744567871, 0.023970115929841995, -0.37252435088157654, -0.1334151327610016, -0.25548601150512695, 0.5537114143371582, -0.3019846975803375, -0.2025514543056488, 0.14256779849529266, -0.14845316112041473, 0.2093803435564041, 0.45155903697013855, -0.00010756453411886469, 0.2240583747625351, 0.4101126194000244, -0.23110130429267883, -0.3290292024612427, -0.3769565224647522, -0.22826707363128662, -0.04417284578084946, 0.004734463058412075, -0.38196003437042236, -0.12255309522151947, -0.07823918014764786, 0.2704274356365204, 0.025410674512386322, 0.30770784616470337, 0.27651527523994446, 0.25899896025657654, 0.12140601873397827, 0.18434782326221466, -0.016901491209864616, -0.11218354851007462, 0.49309074878692627, 0.03727637231349945, 0.2362050563097, 0.07920164614915848, -0.06527967751026154, 0.16254371404647827, 0.2614590525627136, 0.035887494683265686, -0.012443963438272476, 0.23219162225723267, 0.11052732914686203, -0.006824158132076263, -0.21559393405914307, 0.12655022740364075, -0.182091623544693, 0.3849572241306305, -0.16167455911636353, -0.18176323175430298, -0.01814570277929306, -0.03954287990927696, -0.40643003582954407, 0.1617153435945511, 0.08369044214487076, -0.118756502866745, 0.0931641012430191, -0.18624654412269592, -0.2279617339372635, -0.3234364688396454, 0.3092057704925537, 0.06795604526996613, 0.08778923004865646, -0.20539332926273346, 0.07692408561706543, 0.11506018042564392, 0.04930603504180908, 0.09709066897630692, -0.3621649742126465, 0.044210854917764664, 0.12650564312934875, 0.2593221366405487, 0.1461469531059265, -0.019517123699188232, 0.15175965428352356, 0.09592851251363754, 0.10282131284475327, -0.29831603169441223, -0.2555592656135559, -0.25267431139945984, 0.07934631407260895, 0.0006243642419576645, 0.22888146340847015, -0.055761851370334625, 0.45835697650909424, 0.22302663326263428, 0.39754581451416016, -0.024601725861430168, -0.24438348412513733, -0.30115532875061035, -0.20050166547298431, 0.049957726150751114, 0.20114412903785706, 0.326768159866333, 0.0799773782491684, -0.01354173757135868, -0.4608425199985504, 0.12705892324447632, -0.06864415854215622, 0.2023272067308426, 0.28796255588531494, 0.22720816731452942, -0.02183528244495392, 0.1704132854938507, 0.2375158667564392, 0.1398354172706604, 0.09844878315925598, -0.255423367023468, 0.28424856066703796, -0.2523292601108551, -0.005160806700587273, -0.04391784965991974, -0.2546502947807312, 0.30564504861831665, -0.2868964970111847, 0.052693262696266174, 0.058540187776088715, 0.15533658862113953, -0.21698719263076782, -0.05098211020231247, 0.26103585958480835, -0.09167299419641495, -0.018739739432930946, 0.2963450849056244, -0.04541997238993645, 0.06669851392507553, 0.09966868162155151, -0.44844144582748413, -0.4122200608253479, -0.20433732867240906, 0.22125470638275146, -0.09461710602045059, 0.0263814739882946, -0.5048222541809082, -0.24247677624225616, -0.04984346777200699, -0.22074078023433685, 0.028593748807907104, 0.005032455548644066, -0.21649478375911713, -0.1788632571697235, 0.2506091594696045, 0.5779447555541992, -0.14425954222679138, 0.07152648270130157, -0.26899152994155884, -0.23021861910820007, 0.18472149968147278, 0.09179594367742538, -0.20626354217529297, 0.4836919903755188, -0.6135780811309814, -0.037743303924798965, 0.5469892621040344, -0.6308553814888, -0.26421353220939636, -0.019476642832159996, -0.016056586056947708, -0.02837318368256092, 0.14419429004192352, 0.049167223274707794, 0.06856698542833328, -0.07879511266946793, -0.10481569170951843, 0.2463378757238388, -0.020746948197484016, 0.039303019642829895, 0.011602688580751419, -0.2071625143289566, -0.15440057218074799, 0.2210119217634201, 0.09984173625707626, 0.21987569332122803, 0.2281196415424347, -0.03288298100233078, 0.062134549021720886, -0.29887643456459045, 0.17807282507419586, 0.11518837511539459, 0.3906305134296417, 0.12293396890163422, -0.1748877912759781, -0.030899139121174812, -0.37983083724975586, 0.2845122218132019, 0.10844171047210693, -0.06060291826725006, -0.46449583768844604, 0.142732635140419, -0.16168558597564697, -0.2617485225200653, -0.41191667318344116, -0.24864807724952698, 0.1931684911251068, 0.23112671077251434, 0.10355229675769806, 0.011139292269945145, -0.16044621169567108, 0.28489449620246887, -0.18410441279411316, 0.1677674651145935, -0.15608926117420197, 0.45571616291999817, -0.38713985681533813, -0.17869381606578827, 0.12040014564990997, -0.015108518302440643, 0.07757701724767685, -0.2544839680194855, -0.05919801443815231, 0.2827380299568176, 0.13521966338157654, 0.14312973618507385, 0.306769460439682, -0.07055990397930145, 0.14599545300006866, -0.3780551254749298, 0.12583138048648834, -0.1305873543024063, 0.33849194645881653, 0.07661966234445572, -0.020167268812656403, 0.18093478679656982, -0.15699906647205353, 0.08842120319604874, 0.09803815186023712, -0.10842535644769669, 0.03857893496751785, -0.03286302462220192, 0.18180501461029053, -0.19265970587730408, 0.06556491553783417, 0.2532232403755188, 0.20334267616271973, -0.03505796194076538, 0.011664979159832, -0.2331337034702301, 0.34953612089157104, 0.061736833304166794, 0.12157127261161804, 0.18106135725975037, -0.14120841026306152, 0.1114950105547905, 0.005513971671462059, 0.10758990049362183, 0.6850781440734863, 0.2946435511112213, -0.23488157987594604, 0.0732882022857666, 0.2798925042152405, -0.007790572941303253, 0.2949090301990509, 0.022982802242040634, 0.31905198097229004, 0.1136220395565033, 0.023056501522660255, -0.005512171424925327, -0.23307183384895325, -0.5380801558494568, -0.10605349391698837, 0.35992443561553955, -0.1671123057603836, 0.06577246636152267, -0.22938835620880127, -0.42902871966362, 0.2275754064321518, 0.14856407046318054, -0.011752437800168991, -0.13069701194763184, -0.13751265406608582, 0.04224235564470291, 0.17259766161441803, 0.004895212594419718, -0.31007614731788635, 0.0854402631521225, 0.07500418275594711, -0.44916465878486633, -0.5388176441192627, -0.03493880480527878, -0.04896431416273117, 0.13545919954776764, 0.3568563759326935, -0.09235801547765732, 0.3888430595397949, -0.29045921564102173, 0.170111745595932, -0.5194391012191772, -0.16853006184101105, 0.08414287865161896, 0.0003068894147872925, 0.19681134819984436, 0.33854880928993225, 0.32823607325553894, 0.20738957822322845, -0.14623187482357025, 0.42599865794181824, 0.07747919857501984, -0.326722115278244, -0.012651590630412102, -0.1966930627822876, -0.1362506002187729, -0.16420775651931763, -0.12846365571022034, -0.35732296109199524, -0.4335588216781616, -0.06843078136444092, 0.29350975155830383, 0.08248821645975113, 0.44169074296951294, 0.20308484137058258, 0.2307364046573639, -0.14040601253509521, 0.02989770472049713, -0.03977055847644806, -0.4825538098812103, 0.2662038207054138, -0.14714284241199493, -0.20142433047294617, 0.11320920288562775, -0.09715785086154938, 0.20873138308525085, 0.049699004739522934, -0.34096336364746094, -0.6610175371170044, 0.09806051105260849, 0.2304312288761139, -0.026113033294677734, 0.21054764091968536, 0.28395670652389526, 0.046252403408288956, -0.06697916239500046, -0.07259001582860947, -0.07612001895904541, -0.0332983061671257, -0.008268609642982483, 0.27623245120048523, 0.08663436025381088, 0.48563703894615173, 0.001083657145500183, 0.7047637104988098, 0.1602012664079666, -0.005663096904754639, 0.5541394948959351, -0.3467073440551758, 0.5346217155456543, -0.3130926191806793, -0.2578810453414917, 0.17359289526939392, 0.3412328362464905, -0.01595587655901909, -0.05152332782745361, 0.040161632001399994, 0.1763598620891571, -0.13919135928153992, -0.25969043374061584, -0.6329510807991028, 0.06568989157676697, 0.005821391940116882, 0.10524143278598785, 0.20907577872276306, -0.07722899317741394, -0.41149207949638367, -0.06928560137748718, -0.09871423989534378, 0.1179208755493164, 0.6839739084243774, 0.18140177428722382, 0.19671186804771423, -0.06265062838792801, -0.2422274947166443, -0.018139928579330444, 0.36359816789627075, 0.03168744593858719, -0.09198729693889618, -0.0862802192568779, 0.2153061330318451, 0.027875825762748718, -0.1463741809129715, 0.7403360605239868, -0.09525144100189209, -0.010674674063920975, 0.0185244120657444, -0.26638734340667725, -0.11050672084093094, -0.01144523173570633, -0.08961181342601776, 0.05086817964911461, -0.12382487952709198, 0.667944073677063, -0.15672296285629272, -0.28274598717689514, 0.24038507044315338, 0.05858217552304268, -0.29292023181915283, -0.08560662716627121, -0.3727974593639374, -0.39439526200294495, -0.4308893382549286, -0.18924295902252197, -0.05428311973810196, 0.14078494906425476, 0.35311660170555115, 0.034440699964761734, -0.06194475293159485, -0.23695868253707886, -0.31219762563705444, 0.006282290443778038, 0.3898470401763916, -0.16568905115127563, -0.06670484691858292, 0.337018221616745, 0.11812105774879456, 0.5655360221862793, 0.49727198481559753, -0.1634872406721115, -0.055383890867233276, 0.04755493998527527, -0.03892556577920914, 0.15716107189655304, 0.07872827351093292, -0.2703436017036438, -0.4112435579299927, -0.16047488152980804, 0.1485656201839447, -0.14653851091861725, 0.007889552041888237, 0.3987913131713867, -0.07838621735572815, -0.029113754630088806, -0.14483995735645294, 0.22775417566299438, 0.05467931553721428, 0.09832651913166046, 0.3387629985809326, 0.32427501678466797, -0.3816370964050293, 0.09073210507631302, -0.14067742228507996, 0.5482306480407715, -0.08148916065692902, 0.2978999614715576, 0.29990822076797485, -0.06765919923782349, 0.1985689401626587, 0.16608373820781708, 0.07852737605571747, -0.13393652439117432, -0.16649644076824188, -0.06401529163122177, -0.26756778359413147, 0.3405865728855133, 0.050383370369672775, -0.16866742074489594, 0.4461618959903717, -0.0890485942363739, -0.09101349115371704, -0.1511068344116211, 0.11674937605857849, -0.1589270532131195, 0.04342307895421982, -0.10214466601610184, 0.23127040266990662, 0.05473300814628601, 0.3664603531360626, -0.22044235467910767, 0.0490674190223217, -0.1903863102197647, -0.24958884716033936, -0.028194479644298553, 0.06680259853601456, -0.47855550050735474, 0.14251095056533813, 0.014971014112234116, -0.10721544921398163, 0.019641853868961334, 0.3782065510749817, -0.046462468802928925, -0.04265826568007469, -0.1432626098394394, 0.21272315084934235, -0.14498037099838257, 0.05183985084295273, -0.24012240767478943, 0.042011991143226624, 0.2063642144203186, -0.20219439268112183, 0.05887306481599808, 0.03816628456115723, -0.15743331611156464, -0.23962458968162537, -0.027689985930919647, 0.016482576727867126, 0.095319002866745, -0.00854751281440258, -0.3456416130065918, -0.17251178622245789, -0.1062447726726532, -0.12887173891067505, 0.1877816617488861, 0.04615854099392891, -0.00931310560554266, -0.007291354238986969, -0.15327227115631104, -0.14366507530212402, 0.09416384994983673, 0.05476554110646248, -0.08714215457439423, 0.18934449553489685, 0.4673839211463928, -0.11427199840545654, -0.03981709107756615, -0.3154887557029724, 0.4180922210216522, 0.05197968706488609, -0.07614382356405258, 0.1887275129556656, 0.34399935603141785, 0.22825108468532562, 0.0126238027587533, 0.03767874836921692, 0.11074453592300415, -0.30680394172668457, -0.08602241426706314, -0.491786390542984, -0.40570276975631714, 0.2501187324523926, -0.21596325933933258, 0.20420637726783752, -0.16452819108963013, 0.13078081607818604, 0.2762947678565979, -0.2896706163883209, -0.3796900510787964, 0.28266698122024536, -0.3409358561038971, 0.127092182636261, 0.30698785185813904, 0.04170360416173935, 0.4476424753665924, 0.07533226907253265, 0.26235002279281616, -0.11074981093406677, -0.26338621973991394, -0.249680757522583, -0.0660935640335083, 0.0987200066447258, 0.12120765447616577, -0.13493096828460693, 0.1189349889755249, -0.16182918846607208, -0.13428063690662384, 0.09235989302396774, -0.006042515859007835, -0.03041486255824566, -0.08367571234703064, 0.046324122697114944, 0.10990692675113678, -0.2554641664028168, -0.05380750074982643, 0.054938122630119324, -0.2516523003578186, 0.3395839035511017, 0.19299651682376862, 0.09729643166065216, 0.00292973592877388, -0.09338098764419556, -0.06502065807580948, -0.06767839938402176, 0.04869377613067627, 0.166627436876297, 0.4039123058319092, 0.029883703216910362, 0.06324677169322968, -0.11219195276498795, 0.29067090153694153, 0.006243307143449783, -0.3475567698478699, 0.3203180432319641, 0.08517378568649292, 0.2337813824415207, -0.2893438935279846, 0.015505677089095116, -0.020891066640615463, -0.1136554628610611, 0.042889561504125595, 0.0965161994099617, -0.3188045918941498, 0.1486106961965561, -0.16965116560459137, -0.054747454822063446, 0.548186719417572, -0.19034266471862793, 0.0021555102430284023, 0.14677491784095764, -0.0801941379904747, 0.09333741664886475, 0.34475135803222656, 0.2645242512226105, 0.09786882996559143, 0.6918182373046875, -0.20542123913764954, 0.30071091651916504, -0.2856634855270386, 0.03324192762374878, 0.14071489870548248, -0.29812711477279663, -0.07668571174144745, 0.021527394652366638, 0.04348715394735336, -0.06801921874284744, -0.4112866222858429, 0.08840778470039368, -0.0647997334599495, 0.10550246387720108, 0.016831623390316963, 0.24838419258594513, -0.0025915876030921936, 0.040180232375860214, -0.4531843960285187, -0.18718776106834412, -0.0388968363404274, -0.025838226079940796, 0.08734134584665298, -0.2519074082374573, -0.029787197709083557, 0.25103163719177246, -0.1083664745092392, 0.04343421757221222, 0.01686996780335903, 0.3450642228126526, -0.03008686751127243, -0.19237622618675232, 0.44677063822746277, 0.24441230297088623, 0.06706354022026062, 0.11315599083900452, 0.49395135045051575, 0.518007755279541, 0.19981072843074799, 0.11439555883407593, -0.1387731283903122, -0.020216800272464752, -0.29064425826072693, -0.17365218698978424, 0.21807961165905, 0.08240833133459091, 0.1494479924440384, -0.03139416500926018, 0.3158109486103058, -0.22661782801151276, 0.014661785215139389, -0.06798116862773895, -0.15813632309436798, -0.07539303600788116, 0.4123806655406952, -0.2585471272468567, -0.19275131821632385, -0.07527975738048553, 0.16769902408123016, -0.5033454298973083, 0.10076949745416641, 0.35759884119033813, -0.04873179271817207, 0.10622747987508774, 0.16198192536830902, 0.08192846179008484, -0.03095441684126854, 0.2062026411294937, 0.3546428680419922, -0.005245186388492584, -0.2769242823123932, -0.17778480052947998, -0.5345104932785034, -0.07298963516950607, 0.03162626177072525, -0.26796969771385193, -0.2681926488876343, -0.03288903832435608, -0.08795865625143051, -0.023028988391160965, 0.41808009147644043, 0.20506583154201508, 0.22978676855564117, -0.07757295668125153, -0.3130343556404114, -0.1979028880596161, 0.13034071028232574, 0.0677444264292717, -0.13519035279750824, -0.5085449814796448, -0.009007986634969711, -0.26839694380760193, 0.19038516283035278, 0.0027913209050893784, 0.08663004636764526, -0.1306414157152176, -0.11623573303222656, 0.3766637146472931, -0.01079312153160572, 0.2907446622848511, -0.1698557436466217, -0.004718134179711342, -0.04076577350497246, -0.1496237963438034, -0.02866099774837494, -0.06061489135026932, 0.27543723583221436, 0.28793826699256897, -0.3851911127567291, -0.26791077852249146, -0.4055072069168091, 0.05863402038812637, -0.01701200008392334, -0.10471194237470627, -0.30489620566368103, 0.21066181361675262, -0.13391351699829102, 0.023561814799904823, 0.1579907387495041, 0.22699689865112305, -0.06723437458276749, -0.2553292512893677, -0.5728759765625, -0.08330254256725311, 0.44978711009025574, -0.30615752935409546, -0.2604260742664337, 0.1681201010942459, 0.015658728778362274, -0.11841753870248795, 0.16025565564632416, -0.12972119450569153, 0.2885088622570038, 0.40429726243019104, 0.06959737092256546, -0.32873016595840454, 0.3322093188762665, 0.18165037035942078, 0.2269631177186966, 0.17114989459514618, 0.030704330652952194, -0.11174833029508591, -0.18774275481700897, -0.02708289586007595, 0.02991451323032379 ]
https://github.com/huggingface/datasets/issues/3881
How to use Image folder
Can you provide the error stack trace? The loader only stores the `data_files` dict, which can get big after globbing. Then, the OOM error would mean you don't have enough memory to keep all the paths to the image files. You can circumvent this by generating an archive and loading the dataset from there. Maybe we can optimize the globbing part in our data files resolution at some point, cc @lhoestq for visibility.
Ran this code ``` load_dataset("imagefolder", data_dir="./my-dataset") ``` `https://raw.githubusercontent.com/huggingface/datasets/master/datasets/imagefolder/imagefolder.py` missing ``` --------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) /tmp/ipykernel_33/1648737256.py in <module> ----> 1 load_dataset("imagefolder", data_dir="./my-dataset") /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, script_version, **config_kwargs) 1684 revision=revision, 1685 use_auth_token=use_auth_token, -> 1686 **config_kwargs, 1687 ) 1688 /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, script_version, **config_kwargs) 1511 download_config.use_auth_token = use_auth_token 1512 dataset_module = dataset_module_factory( -> 1513 path, revision=revision, download_config=download_config, download_mode=download_mode, data_files=data_files 1514 ) 1515 /opt/conda/lib/python3.7/site-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_files, **download_kwargs) 1200 f"Couldn't find a dataset script at {relative_to_absolute_path(combined_path)} or any data file in the same directory. " 1201 f"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}" -> 1202 ) from None 1203 raise e1 from None 1204 else: FileNotFoundError: Couldn't find a dataset script at /kaggle/working/imagefolder/imagefolder.py or any data file in the same directory. Couldn't find 'imagefolder' on the Hugging Face Hub either: FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/master/datasets/imagefolder/imagefolder.py ```
73
How to use Image folder Ran this code ``` load_dataset("imagefolder", data_dir="./my-dataset") ``` `https://raw.githubusercontent.com/huggingface/datasets/master/datasets/imagefolder/imagefolder.py` missing ``` --------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) /tmp/ipykernel_33/1648737256.py in <module> ----> 1 load_dataset("imagefolder", data_dir="./my-dataset") /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, script_version, **config_kwargs) 1684 revision=revision, 1685 use_auth_token=use_auth_token, -> 1686 **config_kwargs, 1687 ) 1688 /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, script_version, **config_kwargs) 1511 download_config.use_auth_token = use_auth_token 1512 dataset_module = dataset_module_factory( -> 1513 path, revision=revision, download_config=download_config, download_mode=download_mode, data_files=data_files 1514 ) 1515 /opt/conda/lib/python3.7/site-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_files, **download_kwargs) 1200 f"Couldn't find a dataset script at {relative_to_absolute_path(combined_path)} or any data file in the same directory. " 1201 f"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}" -> 1202 ) from None 1203 raise e1 from None 1204 else: FileNotFoundError: Couldn't find a dataset script at /kaggle/working/imagefolder/imagefolder.py or any data file in the same directory. Couldn't find 'imagefolder' on the Hugging Face Hub either: FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/master/datasets/imagefolder/imagefolder.py ``` Can you provide the error stack trace? The loader only stores the `data_files` dict, which can get big after globbing. Then, the OOM error would mean you don't have enough memory to keep all the paths to the image files. You can circumvent this by generating an archive and loading the dataset from there. Maybe we can optimize the globbing part in our data files resolution at some point, cc @lhoestq for visibility.
[ -0.2858946919441223, 0.07919441163539886, -0.16414369642734528, 0.519249439239502, 0.39786988496780396, 0.19424113631248474, 0.3166288137435913, 0.14290893077850342, 0.04558452591300011, 0.17036841809749603, 0.07837368547916412, -0.013808638788759708, -0.20191234350204468, 0.09910792857408524, -0.02797183394432068, -0.06101495027542114, -0.13744312524795532, 0.2016352415084839, -0.18007051944732666, 0.10539866983890533, -0.32439735531806946, 0.2227630466222763, -0.1992964744567871, 0.023970115929841995, -0.37252435088157654, -0.1334151327610016, -0.25548601150512695, 0.5537114143371582, -0.3019846975803375, -0.2025514543056488, 0.14256779849529266, -0.14845316112041473, 0.2093803435564041, 0.45155903697013855, -0.00010756453411886469, 0.2240583747625351, 0.4101126194000244, -0.23110130429267883, -0.3290292024612427, -0.3769565224647522, -0.22826707363128662, -0.04417284578084946, 0.004734463058412075, -0.38196003437042236, -0.12255309522151947, -0.07823918014764786, 0.2704274356365204, 0.025410674512386322, 0.30770784616470337, 0.27651527523994446, 0.25899896025657654, 0.12140601873397827, 0.18434782326221466, -0.016901491209864616, -0.11218354851007462, 0.49309074878692627, 0.03727637231349945, 0.2362050563097, 0.07920164614915848, -0.06527967751026154, 0.16254371404647827, 0.2614590525627136, 0.035887494683265686, -0.012443963438272476, 0.23219162225723267, 0.11052732914686203, -0.006824158132076263, -0.21559393405914307, 0.12655022740364075, -0.182091623544693, 0.3849572241306305, -0.16167455911636353, -0.18176323175430298, -0.01814570277929306, -0.03954287990927696, -0.40643003582954407, 0.1617153435945511, 0.08369044214487076, -0.118756502866745, 0.0931641012430191, -0.18624654412269592, -0.2279617339372635, -0.3234364688396454, 0.3092057704925537, 0.06795604526996613, 0.08778923004865646, -0.20539332926273346, 0.07692408561706543, 0.11506018042564392, 0.04930603504180908, 0.09709066897630692, -0.3621649742126465, 0.044210854917764664, 0.12650564312934875, 0.2593221366405487, 0.1461469531059265, -0.019517123699188232, 0.15175965428352356, 0.09592851251363754, 0.10282131284475327, -0.29831603169441223, -0.2555592656135559, -0.25267431139945984, 0.07934631407260895, 0.0006243642419576645, 0.22888146340847015, -0.055761851370334625, 0.45835697650909424, 0.22302663326263428, 0.39754581451416016, -0.024601725861430168, -0.24438348412513733, -0.30115532875061035, -0.20050166547298431, 0.049957726150751114, 0.20114412903785706, 0.326768159866333, 0.0799773782491684, -0.01354173757135868, -0.4608425199985504, 0.12705892324447632, -0.06864415854215622, 0.2023272067308426, 0.28796255588531494, 0.22720816731452942, -0.02183528244495392, 0.1704132854938507, 0.2375158667564392, 0.1398354172706604, 0.09844878315925598, -0.255423367023468, 0.28424856066703796, -0.2523292601108551, -0.005160806700587273, -0.04391784965991974, -0.2546502947807312, 0.30564504861831665, -0.2868964970111847, 0.052693262696266174, 0.058540187776088715, 0.15533658862113953, -0.21698719263076782, -0.05098211020231247, 0.26103585958480835, -0.09167299419641495, -0.018739739432930946, 0.2963450849056244, -0.04541997238993645, 0.06669851392507553, 0.09966868162155151, -0.44844144582748413, -0.4122200608253479, -0.20433732867240906, 0.22125470638275146, -0.09461710602045059, 0.0263814739882946, -0.5048222541809082, -0.24247677624225616, -0.04984346777200699, -0.22074078023433685, 0.028593748807907104, 0.005032455548644066, -0.21649478375911713, -0.1788632571697235, 0.2506091594696045, 0.5779447555541992, -0.14425954222679138, 0.07152648270130157, -0.26899152994155884, -0.23021861910820007, 0.18472149968147278, 0.09179594367742538, -0.20626354217529297, 0.4836919903755188, -0.6135780811309814, -0.037743303924798965, 0.5469892621040344, -0.6308553814888, -0.26421353220939636, -0.019476642832159996, -0.016056586056947708, -0.02837318368256092, 0.14419429004192352, 0.049167223274707794, 0.06856698542833328, -0.07879511266946793, -0.10481569170951843, 0.2463378757238388, -0.020746948197484016, 0.039303019642829895, 0.011602688580751419, -0.2071625143289566, -0.15440057218074799, 0.2210119217634201, 0.09984173625707626, 0.21987569332122803, 0.2281196415424347, -0.03288298100233078, 0.062134549021720886, -0.29887643456459045, 0.17807282507419586, 0.11518837511539459, 0.3906305134296417, 0.12293396890163422, -0.1748877912759781, -0.030899139121174812, -0.37983083724975586, 0.2845122218132019, 0.10844171047210693, -0.06060291826725006, -0.46449583768844604, 0.142732635140419, -0.16168558597564697, -0.2617485225200653, -0.41191667318344116, -0.24864807724952698, 0.1931684911251068, 0.23112671077251434, 0.10355229675769806, 0.011139292269945145, -0.16044621169567108, 0.28489449620246887, -0.18410441279411316, 0.1677674651145935, -0.15608926117420197, 0.45571616291999817, -0.38713985681533813, -0.17869381606578827, 0.12040014564990997, -0.015108518302440643, 0.07757701724767685, -0.2544839680194855, -0.05919801443815231, 0.2827380299568176, 0.13521966338157654, 0.14312973618507385, 0.306769460439682, -0.07055990397930145, 0.14599545300006866, -0.3780551254749298, 0.12583138048648834, -0.1305873543024063, 0.33849194645881653, 0.07661966234445572, -0.020167268812656403, 0.18093478679656982, -0.15699906647205353, 0.08842120319604874, 0.09803815186023712, -0.10842535644769669, 0.03857893496751785, -0.03286302462220192, 0.18180501461029053, -0.19265970587730408, 0.06556491553783417, 0.2532232403755188, 0.20334267616271973, -0.03505796194076538, 0.011664979159832, -0.2331337034702301, 0.34953612089157104, 0.061736833304166794, 0.12157127261161804, 0.18106135725975037, -0.14120841026306152, 0.1114950105547905, 0.005513971671462059, 0.10758990049362183, 0.6850781440734863, 0.2946435511112213, -0.23488157987594604, 0.0732882022857666, 0.2798925042152405, -0.007790572941303253, 0.2949090301990509, 0.022982802242040634, 0.31905198097229004, 0.1136220395565033, 0.023056501522660255, -0.005512171424925327, -0.23307183384895325, -0.5380801558494568, -0.10605349391698837, 0.35992443561553955, -0.1671123057603836, 0.06577246636152267, -0.22938835620880127, -0.42902871966362, 0.2275754064321518, 0.14856407046318054, -0.011752437800168991, -0.13069701194763184, -0.13751265406608582, 0.04224235564470291, 0.17259766161441803, 0.004895212594419718, -0.31007614731788635, 0.0854402631521225, 0.07500418275594711, -0.44916465878486633, -0.5388176441192627, -0.03493880480527878, -0.04896431416273117, 0.13545919954776764, 0.3568563759326935, -0.09235801547765732, 0.3888430595397949, -0.29045921564102173, 0.170111745595932, -0.5194391012191772, -0.16853006184101105, 0.08414287865161896, 0.0003068894147872925, 0.19681134819984436, 0.33854880928993225, 0.32823607325553894, 0.20738957822322845, -0.14623187482357025, 0.42599865794181824, 0.07747919857501984, -0.326722115278244, -0.012651590630412102, -0.1966930627822876, -0.1362506002187729, -0.16420775651931763, -0.12846365571022034, -0.35732296109199524, -0.4335588216781616, -0.06843078136444092, 0.29350975155830383, 0.08248821645975113, 0.44169074296951294, 0.20308484137058258, 0.2307364046573639, -0.14040601253509521, 0.02989770472049713, -0.03977055847644806, -0.4825538098812103, 0.2662038207054138, -0.14714284241199493, -0.20142433047294617, 0.11320920288562775, -0.09715785086154938, 0.20873138308525085, 0.049699004739522934, -0.34096336364746094, -0.6610175371170044, 0.09806051105260849, 0.2304312288761139, -0.026113033294677734, 0.21054764091968536, 0.28395670652389526, 0.046252403408288956, -0.06697916239500046, -0.07259001582860947, -0.07612001895904541, -0.0332983061671257, -0.008268609642982483, 0.27623245120048523, 0.08663436025381088, 0.48563703894615173, 0.001083657145500183, 0.7047637104988098, 0.1602012664079666, -0.005663096904754639, 0.5541394948959351, -0.3467073440551758, 0.5346217155456543, -0.3130926191806793, -0.2578810453414917, 0.17359289526939392, 0.3412328362464905, -0.01595587655901909, -0.05152332782745361, 0.040161632001399994, 0.1763598620891571, -0.13919135928153992, -0.25969043374061584, -0.6329510807991028, 0.06568989157676697, 0.005821391940116882, 0.10524143278598785, 0.20907577872276306, -0.07722899317741394, -0.41149207949638367, -0.06928560137748718, -0.09871423989534378, 0.1179208755493164, 0.6839739084243774, 0.18140177428722382, 0.19671186804771423, -0.06265062838792801, -0.2422274947166443, -0.018139928579330444, 0.36359816789627075, 0.03168744593858719, -0.09198729693889618, -0.0862802192568779, 0.2153061330318451, 0.027875825762748718, -0.1463741809129715, 0.7403360605239868, -0.09525144100189209, -0.010674674063920975, 0.0185244120657444, -0.26638734340667725, -0.11050672084093094, -0.01144523173570633, -0.08961181342601776, 0.05086817964911461, -0.12382487952709198, 0.667944073677063, -0.15672296285629272, -0.28274598717689514, 0.24038507044315338, 0.05858217552304268, -0.29292023181915283, -0.08560662716627121, -0.3727974593639374, -0.39439526200294495, -0.4308893382549286, -0.18924295902252197, -0.05428311973810196, 0.14078494906425476, 0.35311660170555115, 0.034440699964761734, -0.06194475293159485, -0.23695868253707886, -0.31219762563705444, 0.006282290443778038, 0.3898470401763916, -0.16568905115127563, -0.06670484691858292, 0.337018221616745, 0.11812105774879456, 0.5655360221862793, 0.49727198481559753, -0.1634872406721115, -0.055383890867233276, 0.04755493998527527, -0.03892556577920914, 0.15716107189655304, 0.07872827351093292, -0.2703436017036438, -0.4112435579299927, -0.16047488152980804, 0.1485656201839447, -0.14653851091861725, 0.007889552041888237, 0.3987913131713867, -0.07838621735572815, -0.029113754630088806, -0.14483995735645294, 0.22775417566299438, 0.05467931553721428, 0.09832651913166046, 0.3387629985809326, 0.32427501678466797, -0.3816370964050293, 0.09073210507631302, -0.14067742228507996, 0.5482306480407715, -0.08148916065692902, 0.2978999614715576, 0.29990822076797485, -0.06765919923782349, 0.1985689401626587, 0.16608373820781708, 0.07852737605571747, -0.13393652439117432, -0.16649644076824188, -0.06401529163122177, -0.26756778359413147, 0.3405865728855133, 0.050383370369672775, -0.16866742074489594, 0.4461618959903717, -0.0890485942363739, -0.09101349115371704, -0.1511068344116211, 0.11674937605857849, -0.1589270532131195, 0.04342307895421982, -0.10214466601610184, 0.23127040266990662, 0.05473300814628601, 0.3664603531360626, -0.22044235467910767, 0.0490674190223217, -0.1903863102197647, -0.24958884716033936, -0.028194479644298553, 0.06680259853601456, -0.47855550050735474, 0.14251095056533813, 0.014971014112234116, -0.10721544921398163, 0.019641853868961334, 0.3782065510749817, -0.046462468802928925, -0.04265826568007469, -0.1432626098394394, 0.21272315084934235, -0.14498037099838257, 0.05183985084295273, -0.24012240767478943, 0.042011991143226624, 0.2063642144203186, -0.20219439268112183, 0.05887306481599808, 0.03816628456115723, -0.15743331611156464, -0.23962458968162537, -0.027689985930919647, 0.016482576727867126, 0.095319002866745, -0.00854751281440258, -0.3456416130065918, -0.17251178622245789, -0.1062447726726532, -0.12887173891067505, 0.1877816617488861, 0.04615854099392891, -0.00931310560554266, -0.007291354238986969, -0.15327227115631104, -0.14366507530212402, 0.09416384994983673, 0.05476554110646248, -0.08714215457439423, 0.18934449553489685, 0.4673839211463928, -0.11427199840545654, -0.03981709107756615, -0.3154887557029724, 0.4180922210216522, 0.05197968706488609, -0.07614382356405258, 0.1887275129556656, 0.34399935603141785, 0.22825108468532562, 0.0126238027587533, 0.03767874836921692, 0.11074453592300415, -0.30680394172668457, -0.08602241426706314, -0.491786390542984, -0.40570276975631714, 0.2501187324523926, -0.21596325933933258, 0.20420637726783752, -0.16452819108963013, 0.13078081607818604, 0.2762947678565979, -0.2896706163883209, -0.3796900510787964, 0.28266698122024536, -0.3409358561038971, 0.127092182636261, 0.30698785185813904, 0.04170360416173935, 0.4476424753665924, 0.07533226907253265, 0.26235002279281616, -0.11074981093406677, -0.26338621973991394, -0.249680757522583, -0.0660935640335083, 0.0987200066447258, 0.12120765447616577, -0.13493096828460693, 0.1189349889755249, -0.16182918846607208, -0.13428063690662384, 0.09235989302396774, -0.006042515859007835, -0.03041486255824566, -0.08367571234703064, 0.046324122697114944, 0.10990692675113678, -0.2554641664028168, -0.05380750074982643, 0.054938122630119324, -0.2516523003578186, 0.3395839035511017, 0.19299651682376862, 0.09729643166065216, 0.00292973592877388, -0.09338098764419556, -0.06502065807580948, -0.06767839938402176, 0.04869377613067627, 0.166627436876297, 0.4039123058319092, 0.029883703216910362, 0.06324677169322968, -0.11219195276498795, 0.29067090153694153, 0.006243307143449783, -0.3475567698478699, 0.3203180432319641, 0.08517378568649292, 0.2337813824415207, -0.2893438935279846, 0.015505677089095116, -0.020891066640615463, -0.1136554628610611, 0.042889561504125595, 0.0965161994099617, -0.3188045918941498, 0.1486106961965561, -0.16965116560459137, -0.054747454822063446, 0.548186719417572, -0.19034266471862793, 0.0021555102430284023, 0.14677491784095764, -0.0801941379904747, 0.09333741664886475, 0.34475135803222656, 0.2645242512226105, 0.09786882996559143, 0.6918182373046875, -0.20542123913764954, 0.30071091651916504, -0.2856634855270386, 0.03324192762374878, 0.14071489870548248, -0.29812711477279663, -0.07668571174144745, 0.021527394652366638, 0.04348715394735336, -0.06801921874284744, -0.4112866222858429, 0.08840778470039368, -0.0647997334599495, 0.10550246387720108, 0.016831623390316963, 0.24838419258594513, -0.0025915876030921936, 0.040180232375860214, -0.4531843960285187, -0.18718776106834412, -0.0388968363404274, -0.025838226079940796, 0.08734134584665298, -0.2519074082374573, -0.029787197709083557, 0.25103163719177246, -0.1083664745092392, 0.04343421757221222, 0.01686996780335903, 0.3450642228126526, -0.03008686751127243, -0.19237622618675232, 0.44677063822746277, 0.24441230297088623, 0.06706354022026062, 0.11315599083900452, 0.49395135045051575, 0.518007755279541, 0.19981072843074799, 0.11439555883407593, -0.1387731283903122, -0.020216800272464752, -0.29064425826072693, -0.17365218698978424, 0.21807961165905, 0.08240833133459091, 0.1494479924440384, -0.03139416500926018, 0.3158109486103058, -0.22661782801151276, 0.014661785215139389, -0.06798116862773895, -0.15813632309436798, -0.07539303600788116, 0.4123806655406952, -0.2585471272468567, -0.19275131821632385, -0.07527975738048553, 0.16769902408123016, -0.5033454298973083, 0.10076949745416641, 0.35759884119033813, -0.04873179271817207, 0.10622747987508774, 0.16198192536830902, 0.08192846179008484, -0.03095441684126854, 0.2062026411294937, 0.3546428680419922, -0.005245186388492584, -0.2769242823123932, -0.17778480052947998, -0.5345104932785034, -0.07298963516950607, 0.03162626177072525, -0.26796969771385193, -0.2681926488876343, -0.03288903832435608, -0.08795865625143051, -0.023028988391160965, 0.41808009147644043, 0.20506583154201508, 0.22978676855564117, -0.07757295668125153, -0.3130343556404114, -0.1979028880596161, 0.13034071028232574, 0.0677444264292717, -0.13519035279750824, -0.5085449814796448, -0.009007986634969711, -0.26839694380760193, 0.19038516283035278, 0.0027913209050893784, 0.08663004636764526, -0.1306414157152176, -0.11623573303222656, 0.3766637146472931, -0.01079312153160572, 0.2907446622848511, -0.1698557436466217, -0.004718134179711342, -0.04076577350497246, -0.1496237963438034, -0.02866099774837494, -0.06061489135026932, 0.27543723583221436, 0.28793826699256897, -0.3851911127567291, -0.26791077852249146, -0.4055072069168091, 0.05863402038812637, -0.01701200008392334, -0.10471194237470627, -0.30489620566368103, 0.21066181361675262, -0.13391351699829102, 0.023561814799904823, 0.1579907387495041, 0.22699689865112305, -0.06723437458276749, -0.2553292512893677, -0.5728759765625, -0.08330254256725311, 0.44978711009025574, -0.30615752935409546, -0.2604260742664337, 0.1681201010942459, 0.015658728778362274, -0.11841753870248795, 0.16025565564632416, -0.12972119450569153, 0.2885088622570038, 0.40429726243019104, 0.06959737092256546, -0.32873016595840454, 0.3322093188762665, 0.18165037035942078, 0.2269631177186966, 0.17114989459514618, 0.030704330652952194, -0.11174833029508591, -0.18774275481700897, -0.02708289586007595, 0.02991451323032379 ]
https://github.com/huggingface/datasets/issues/3881
How to use Image folder
Hey, memory error is resolved. It was fluke. But there is another issue. Currently `load_dataset("imagefolder", data_dir="./path/to/train",)` takes only `train` as arg to `split` parameter. I am creating vaildation dataset using ``` ds_valid = datasets.DatasetDict(valid=load_dataset("imagefolder", data_dir="./path/to/valid",)['train']) ```
Ran this code ``` load_dataset("imagefolder", data_dir="./my-dataset") ``` `https://raw.githubusercontent.com/huggingface/datasets/master/datasets/imagefolder/imagefolder.py` missing ``` --------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) /tmp/ipykernel_33/1648737256.py in <module> ----> 1 load_dataset("imagefolder", data_dir="./my-dataset") /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, script_version, **config_kwargs) 1684 revision=revision, 1685 use_auth_token=use_auth_token, -> 1686 **config_kwargs, 1687 ) 1688 /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, script_version, **config_kwargs) 1511 download_config.use_auth_token = use_auth_token 1512 dataset_module = dataset_module_factory( -> 1513 path, revision=revision, download_config=download_config, download_mode=download_mode, data_files=data_files 1514 ) 1515 /opt/conda/lib/python3.7/site-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_files, **download_kwargs) 1200 f"Couldn't find a dataset script at {relative_to_absolute_path(combined_path)} or any data file in the same directory. " 1201 f"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}" -> 1202 ) from None 1203 raise e1 from None 1204 else: FileNotFoundError: Couldn't find a dataset script at /kaggle/working/imagefolder/imagefolder.py or any data file in the same directory. Couldn't find 'imagefolder' on the Hugging Face Hub either: FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/master/datasets/imagefolder/imagefolder.py ```
36
How to use Image folder Ran this code ``` load_dataset("imagefolder", data_dir="./my-dataset") ``` `https://raw.githubusercontent.com/huggingface/datasets/master/datasets/imagefolder/imagefolder.py` missing ``` --------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) /tmp/ipykernel_33/1648737256.py in <module> ----> 1 load_dataset("imagefolder", data_dir="./my-dataset") /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, script_version, **config_kwargs) 1684 revision=revision, 1685 use_auth_token=use_auth_token, -> 1686 **config_kwargs, 1687 ) 1688 /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, script_version, **config_kwargs) 1511 download_config.use_auth_token = use_auth_token 1512 dataset_module = dataset_module_factory( -> 1513 path, revision=revision, download_config=download_config, download_mode=download_mode, data_files=data_files 1514 ) 1515 /opt/conda/lib/python3.7/site-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_files, **download_kwargs) 1200 f"Couldn't find a dataset script at {relative_to_absolute_path(combined_path)} or any data file in the same directory. " 1201 f"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}" -> 1202 ) from None 1203 raise e1 from None 1204 else: FileNotFoundError: Couldn't find a dataset script at /kaggle/working/imagefolder/imagefolder.py or any data file in the same directory. Couldn't find 'imagefolder' on the Hugging Face Hub either: FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/master/datasets/imagefolder/imagefolder.py ``` Hey, memory error is resolved. It was fluke. But there is another issue. Currently `load_dataset("imagefolder", data_dir="./path/to/train",)` takes only `train` as arg to `split` parameter. I am creating vaildation dataset using ``` ds_valid = datasets.DatasetDict(valid=load_dataset("imagefolder", data_dir="./path/to/valid",)['train']) ```
[ -0.2858946919441223, 0.07919441163539886, -0.16414369642734528, 0.519249439239502, 0.39786988496780396, 0.19424113631248474, 0.3166288137435913, 0.14290893077850342, 0.04558452591300011, 0.17036841809749603, 0.07837368547916412, -0.013808638788759708, -0.20191234350204468, 0.09910792857408524, -0.02797183394432068, -0.06101495027542114, -0.13744312524795532, 0.2016352415084839, -0.18007051944732666, 0.10539866983890533, -0.32439735531806946, 0.2227630466222763, -0.1992964744567871, 0.023970115929841995, -0.37252435088157654, -0.1334151327610016, -0.25548601150512695, 0.5537114143371582, -0.3019846975803375, -0.2025514543056488, 0.14256779849529266, -0.14845316112041473, 0.2093803435564041, 0.45155903697013855, -0.00010756453411886469, 0.2240583747625351, 0.4101126194000244, -0.23110130429267883, -0.3290292024612427, -0.3769565224647522, -0.22826707363128662, -0.04417284578084946, 0.004734463058412075, -0.38196003437042236, -0.12255309522151947, -0.07823918014764786, 0.2704274356365204, 0.025410674512386322, 0.30770784616470337, 0.27651527523994446, 0.25899896025657654, 0.12140601873397827, 0.18434782326221466, -0.016901491209864616, -0.11218354851007462, 0.49309074878692627, 0.03727637231349945, 0.2362050563097, 0.07920164614915848, -0.06527967751026154, 0.16254371404647827, 0.2614590525627136, 0.035887494683265686, -0.012443963438272476, 0.23219162225723267, 0.11052732914686203, -0.006824158132076263, -0.21559393405914307, 0.12655022740364075, -0.182091623544693, 0.3849572241306305, -0.16167455911636353, -0.18176323175430298, -0.01814570277929306, -0.03954287990927696, -0.40643003582954407, 0.1617153435945511, 0.08369044214487076, -0.118756502866745, 0.0931641012430191, -0.18624654412269592, -0.2279617339372635, -0.3234364688396454, 0.3092057704925537, 0.06795604526996613, 0.08778923004865646, -0.20539332926273346, 0.07692408561706543, 0.11506018042564392, 0.04930603504180908, 0.09709066897630692, -0.3621649742126465, 0.044210854917764664, 0.12650564312934875, 0.2593221366405487, 0.1461469531059265, -0.019517123699188232, 0.15175965428352356, 0.09592851251363754, 0.10282131284475327, -0.29831603169441223, -0.2555592656135559, -0.25267431139945984, 0.07934631407260895, 0.0006243642419576645, 0.22888146340847015, -0.055761851370334625, 0.45835697650909424, 0.22302663326263428, 0.39754581451416016, -0.024601725861430168, -0.24438348412513733, -0.30115532875061035, -0.20050166547298431, 0.049957726150751114, 0.20114412903785706, 0.326768159866333, 0.0799773782491684, -0.01354173757135868, -0.4608425199985504, 0.12705892324447632, -0.06864415854215622, 0.2023272067308426, 0.28796255588531494, 0.22720816731452942, -0.02183528244495392, 0.1704132854938507, 0.2375158667564392, 0.1398354172706604, 0.09844878315925598, -0.255423367023468, 0.28424856066703796, -0.2523292601108551, -0.005160806700587273, -0.04391784965991974, -0.2546502947807312, 0.30564504861831665, -0.2868964970111847, 0.052693262696266174, 0.058540187776088715, 0.15533658862113953, -0.21698719263076782, -0.05098211020231247, 0.26103585958480835, -0.09167299419641495, -0.018739739432930946, 0.2963450849056244, -0.04541997238993645, 0.06669851392507553, 0.09966868162155151, -0.44844144582748413, -0.4122200608253479, -0.20433732867240906, 0.22125470638275146, -0.09461710602045059, 0.0263814739882946, -0.5048222541809082, -0.24247677624225616, -0.04984346777200699, -0.22074078023433685, 0.028593748807907104, 0.005032455548644066, -0.21649478375911713, -0.1788632571697235, 0.2506091594696045, 0.5779447555541992, -0.14425954222679138, 0.07152648270130157, -0.26899152994155884, -0.23021861910820007, 0.18472149968147278, 0.09179594367742538, -0.20626354217529297, 0.4836919903755188, -0.6135780811309814, -0.037743303924798965, 0.5469892621040344, -0.6308553814888, -0.26421353220939636, -0.019476642832159996, -0.016056586056947708, -0.02837318368256092, 0.14419429004192352, 0.049167223274707794, 0.06856698542833328, -0.07879511266946793, -0.10481569170951843, 0.2463378757238388, -0.020746948197484016, 0.039303019642829895, 0.011602688580751419, -0.2071625143289566, -0.15440057218074799, 0.2210119217634201, 0.09984173625707626, 0.21987569332122803, 0.2281196415424347, -0.03288298100233078, 0.062134549021720886, -0.29887643456459045, 0.17807282507419586, 0.11518837511539459, 0.3906305134296417, 0.12293396890163422, -0.1748877912759781, -0.030899139121174812, -0.37983083724975586, 0.2845122218132019, 0.10844171047210693, -0.06060291826725006, -0.46449583768844604, 0.142732635140419, -0.16168558597564697, -0.2617485225200653, -0.41191667318344116, -0.24864807724952698, 0.1931684911251068, 0.23112671077251434, 0.10355229675769806, 0.011139292269945145, -0.16044621169567108, 0.28489449620246887, -0.18410441279411316, 0.1677674651145935, -0.15608926117420197, 0.45571616291999817, -0.38713985681533813, -0.17869381606578827, 0.12040014564990997, -0.015108518302440643, 0.07757701724767685, -0.2544839680194855, -0.05919801443815231, 0.2827380299568176, 0.13521966338157654, 0.14312973618507385, 0.306769460439682, -0.07055990397930145, 0.14599545300006866, -0.3780551254749298, 0.12583138048648834, -0.1305873543024063, 0.33849194645881653, 0.07661966234445572, -0.020167268812656403, 0.18093478679656982, -0.15699906647205353, 0.08842120319604874, 0.09803815186023712, -0.10842535644769669, 0.03857893496751785, -0.03286302462220192, 0.18180501461029053, -0.19265970587730408, 0.06556491553783417, 0.2532232403755188, 0.20334267616271973, -0.03505796194076538, 0.011664979159832, -0.2331337034702301, 0.34953612089157104, 0.061736833304166794, 0.12157127261161804, 0.18106135725975037, -0.14120841026306152, 0.1114950105547905, 0.005513971671462059, 0.10758990049362183, 0.6850781440734863, 0.2946435511112213, -0.23488157987594604, 0.0732882022857666, 0.2798925042152405, -0.007790572941303253, 0.2949090301990509, 0.022982802242040634, 0.31905198097229004, 0.1136220395565033, 0.023056501522660255, -0.005512171424925327, -0.23307183384895325, -0.5380801558494568, -0.10605349391698837, 0.35992443561553955, -0.1671123057603836, 0.06577246636152267, -0.22938835620880127, -0.42902871966362, 0.2275754064321518, 0.14856407046318054, -0.011752437800168991, -0.13069701194763184, -0.13751265406608582, 0.04224235564470291, 0.17259766161441803, 0.004895212594419718, -0.31007614731788635, 0.0854402631521225, 0.07500418275594711, -0.44916465878486633, -0.5388176441192627, -0.03493880480527878, -0.04896431416273117, 0.13545919954776764, 0.3568563759326935, -0.09235801547765732, 0.3888430595397949, -0.29045921564102173, 0.170111745595932, -0.5194391012191772, -0.16853006184101105, 0.08414287865161896, 0.0003068894147872925, 0.19681134819984436, 0.33854880928993225, 0.32823607325553894, 0.20738957822322845, -0.14623187482357025, 0.42599865794181824, 0.07747919857501984, -0.326722115278244, -0.012651590630412102, -0.1966930627822876, -0.1362506002187729, -0.16420775651931763, -0.12846365571022034, -0.35732296109199524, -0.4335588216781616, -0.06843078136444092, 0.29350975155830383, 0.08248821645975113, 0.44169074296951294, 0.20308484137058258, 0.2307364046573639, -0.14040601253509521, 0.02989770472049713, -0.03977055847644806, -0.4825538098812103, 0.2662038207054138, -0.14714284241199493, -0.20142433047294617, 0.11320920288562775, -0.09715785086154938, 0.20873138308525085, 0.049699004739522934, -0.34096336364746094, -0.6610175371170044, 0.09806051105260849, 0.2304312288761139, -0.026113033294677734, 0.21054764091968536, 0.28395670652389526, 0.046252403408288956, -0.06697916239500046, -0.07259001582860947, -0.07612001895904541, -0.0332983061671257, -0.008268609642982483, 0.27623245120048523, 0.08663436025381088, 0.48563703894615173, 0.001083657145500183, 0.7047637104988098, 0.1602012664079666, -0.005663096904754639, 0.5541394948959351, -0.3467073440551758, 0.5346217155456543, -0.3130926191806793, -0.2578810453414917, 0.17359289526939392, 0.3412328362464905, -0.01595587655901909, -0.05152332782745361, 0.040161632001399994, 0.1763598620891571, -0.13919135928153992, -0.25969043374061584, -0.6329510807991028, 0.06568989157676697, 0.005821391940116882, 0.10524143278598785, 0.20907577872276306, -0.07722899317741394, -0.41149207949638367, -0.06928560137748718, -0.09871423989534378, 0.1179208755493164, 0.6839739084243774, 0.18140177428722382, 0.19671186804771423, -0.06265062838792801, -0.2422274947166443, -0.018139928579330444, 0.36359816789627075, 0.03168744593858719, -0.09198729693889618, -0.0862802192568779, 0.2153061330318451, 0.027875825762748718, -0.1463741809129715, 0.7403360605239868, -0.09525144100189209, -0.010674674063920975, 0.0185244120657444, -0.26638734340667725, -0.11050672084093094, -0.01144523173570633, -0.08961181342601776, 0.05086817964911461, -0.12382487952709198, 0.667944073677063, -0.15672296285629272, -0.28274598717689514, 0.24038507044315338, 0.05858217552304268, -0.29292023181915283, -0.08560662716627121, -0.3727974593639374, -0.39439526200294495, -0.4308893382549286, -0.18924295902252197, -0.05428311973810196, 0.14078494906425476, 0.35311660170555115, 0.034440699964761734, -0.06194475293159485, -0.23695868253707886, -0.31219762563705444, 0.006282290443778038, 0.3898470401763916, -0.16568905115127563, -0.06670484691858292, 0.337018221616745, 0.11812105774879456, 0.5655360221862793, 0.49727198481559753, -0.1634872406721115, -0.055383890867233276, 0.04755493998527527, -0.03892556577920914, 0.15716107189655304, 0.07872827351093292, -0.2703436017036438, -0.4112435579299927, -0.16047488152980804, 0.1485656201839447, -0.14653851091861725, 0.007889552041888237, 0.3987913131713867, -0.07838621735572815, -0.029113754630088806, -0.14483995735645294, 0.22775417566299438, 0.05467931553721428, 0.09832651913166046, 0.3387629985809326, 0.32427501678466797, -0.3816370964050293, 0.09073210507631302, -0.14067742228507996, 0.5482306480407715, -0.08148916065692902, 0.2978999614715576, 0.29990822076797485, -0.06765919923782349, 0.1985689401626587, 0.16608373820781708, 0.07852737605571747, -0.13393652439117432, -0.16649644076824188, -0.06401529163122177, -0.26756778359413147, 0.3405865728855133, 0.050383370369672775, -0.16866742074489594, 0.4461618959903717, -0.0890485942363739, -0.09101349115371704, -0.1511068344116211, 0.11674937605857849, -0.1589270532131195, 0.04342307895421982, -0.10214466601610184, 0.23127040266990662, 0.05473300814628601, 0.3664603531360626, -0.22044235467910767, 0.0490674190223217, -0.1903863102197647, -0.24958884716033936, -0.028194479644298553, 0.06680259853601456, -0.47855550050735474, 0.14251095056533813, 0.014971014112234116, -0.10721544921398163, 0.019641853868961334, 0.3782065510749817, -0.046462468802928925, -0.04265826568007469, -0.1432626098394394, 0.21272315084934235, -0.14498037099838257, 0.05183985084295273, -0.24012240767478943, 0.042011991143226624, 0.2063642144203186, -0.20219439268112183, 0.05887306481599808, 0.03816628456115723, -0.15743331611156464, -0.23962458968162537, -0.027689985930919647, 0.016482576727867126, 0.095319002866745, -0.00854751281440258, -0.3456416130065918, -0.17251178622245789, -0.1062447726726532, -0.12887173891067505, 0.1877816617488861, 0.04615854099392891, -0.00931310560554266, -0.007291354238986969, -0.15327227115631104, -0.14366507530212402, 0.09416384994983673, 0.05476554110646248, -0.08714215457439423, 0.18934449553489685, 0.4673839211463928, -0.11427199840545654, -0.03981709107756615, -0.3154887557029724, 0.4180922210216522, 0.05197968706488609, -0.07614382356405258, 0.1887275129556656, 0.34399935603141785, 0.22825108468532562, 0.0126238027587533, 0.03767874836921692, 0.11074453592300415, -0.30680394172668457, -0.08602241426706314, -0.491786390542984, -0.40570276975631714, 0.2501187324523926, -0.21596325933933258, 0.20420637726783752, -0.16452819108963013, 0.13078081607818604, 0.2762947678565979, -0.2896706163883209, -0.3796900510787964, 0.28266698122024536, -0.3409358561038971, 0.127092182636261, 0.30698785185813904, 0.04170360416173935, 0.4476424753665924, 0.07533226907253265, 0.26235002279281616, -0.11074981093406677, -0.26338621973991394, -0.249680757522583, -0.0660935640335083, 0.0987200066447258, 0.12120765447616577, -0.13493096828460693, 0.1189349889755249, -0.16182918846607208, -0.13428063690662384, 0.09235989302396774, -0.006042515859007835, -0.03041486255824566, -0.08367571234703064, 0.046324122697114944, 0.10990692675113678, -0.2554641664028168, -0.05380750074982643, 0.054938122630119324, -0.2516523003578186, 0.3395839035511017, 0.19299651682376862, 0.09729643166065216, 0.00292973592877388, -0.09338098764419556, -0.06502065807580948, -0.06767839938402176, 0.04869377613067627, 0.166627436876297, 0.4039123058319092, 0.029883703216910362, 0.06324677169322968, -0.11219195276498795, 0.29067090153694153, 0.006243307143449783, -0.3475567698478699, 0.3203180432319641, 0.08517378568649292, 0.2337813824415207, -0.2893438935279846, 0.015505677089095116, -0.020891066640615463, -0.1136554628610611, 0.042889561504125595, 0.0965161994099617, -0.3188045918941498, 0.1486106961965561, -0.16965116560459137, -0.054747454822063446, 0.548186719417572, -0.19034266471862793, 0.0021555102430284023, 0.14677491784095764, -0.0801941379904747, 0.09333741664886475, 0.34475135803222656, 0.2645242512226105, 0.09786882996559143, 0.6918182373046875, -0.20542123913764954, 0.30071091651916504, -0.2856634855270386, 0.03324192762374878, 0.14071489870548248, -0.29812711477279663, -0.07668571174144745, 0.021527394652366638, 0.04348715394735336, -0.06801921874284744, -0.4112866222858429, 0.08840778470039368, -0.0647997334599495, 0.10550246387720108, 0.016831623390316963, 0.24838419258594513, -0.0025915876030921936, 0.040180232375860214, -0.4531843960285187, -0.18718776106834412, -0.0388968363404274, -0.025838226079940796, 0.08734134584665298, -0.2519074082374573, -0.029787197709083557, 0.25103163719177246, -0.1083664745092392, 0.04343421757221222, 0.01686996780335903, 0.3450642228126526, -0.03008686751127243, -0.19237622618675232, 0.44677063822746277, 0.24441230297088623, 0.06706354022026062, 0.11315599083900452, 0.49395135045051575, 0.518007755279541, 0.19981072843074799, 0.11439555883407593, -0.1387731283903122, -0.020216800272464752, -0.29064425826072693, -0.17365218698978424, 0.21807961165905, 0.08240833133459091, 0.1494479924440384, -0.03139416500926018, 0.3158109486103058, -0.22661782801151276, 0.014661785215139389, -0.06798116862773895, -0.15813632309436798, -0.07539303600788116, 0.4123806655406952, -0.2585471272468567, -0.19275131821632385, -0.07527975738048553, 0.16769902408123016, -0.5033454298973083, 0.10076949745416641, 0.35759884119033813, -0.04873179271817207, 0.10622747987508774, 0.16198192536830902, 0.08192846179008484, -0.03095441684126854, 0.2062026411294937, 0.3546428680419922, -0.005245186388492584, -0.2769242823123932, -0.17778480052947998, -0.5345104932785034, -0.07298963516950607, 0.03162626177072525, -0.26796969771385193, -0.2681926488876343, -0.03288903832435608, -0.08795865625143051, -0.023028988391160965, 0.41808009147644043, 0.20506583154201508, 0.22978676855564117, -0.07757295668125153, -0.3130343556404114, -0.1979028880596161, 0.13034071028232574, 0.0677444264292717, -0.13519035279750824, -0.5085449814796448, -0.009007986634969711, -0.26839694380760193, 0.19038516283035278, 0.0027913209050893784, 0.08663004636764526, -0.1306414157152176, -0.11623573303222656, 0.3766637146472931, -0.01079312153160572, 0.2907446622848511, -0.1698557436466217, -0.004718134179711342, -0.04076577350497246, -0.1496237963438034, -0.02866099774837494, -0.06061489135026932, 0.27543723583221436, 0.28793826699256897, -0.3851911127567291, -0.26791077852249146, -0.4055072069168091, 0.05863402038812637, -0.01701200008392334, -0.10471194237470627, -0.30489620566368103, 0.21066181361675262, -0.13391351699829102, 0.023561814799904823, 0.1579907387495041, 0.22699689865112305, -0.06723437458276749, -0.2553292512893677, -0.5728759765625, -0.08330254256725311, 0.44978711009025574, -0.30615752935409546, -0.2604260742664337, 0.1681201010942459, 0.015658728778362274, -0.11841753870248795, 0.16025565564632416, -0.12972119450569153, 0.2885088622570038, 0.40429726243019104, 0.06959737092256546, -0.32873016595840454, 0.3322093188762665, 0.18165037035942078, 0.2269631177186966, 0.17114989459514618, 0.030704330652952194, -0.11174833029508591, -0.18774275481700897, -0.02708289586007595, 0.02991451323032379 ]
https://github.com/huggingface/datasets/issues/3881
How to use Image folder
`data_dir="path/to/folder"` is a shorthand syntax fox `data_files={"train": "path/to/folder/**"}`, so use `data_files` in that case instead: ```python ds = load_dataset("imagefolder", data_files={"train": "path/to/train/**", "test": "path/to/test/**", "valid": "path/to/valid/**"}) ```
Ran this code ``` load_dataset("imagefolder", data_dir="./my-dataset") ``` `https://raw.githubusercontent.com/huggingface/datasets/master/datasets/imagefolder/imagefolder.py` missing ``` --------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) /tmp/ipykernel_33/1648737256.py in <module> ----> 1 load_dataset("imagefolder", data_dir="./my-dataset") /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, script_version, **config_kwargs) 1684 revision=revision, 1685 use_auth_token=use_auth_token, -> 1686 **config_kwargs, 1687 ) 1688 /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, script_version, **config_kwargs) 1511 download_config.use_auth_token = use_auth_token 1512 dataset_module = dataset_module_factory( -> 1513 path, revision=revision, download_config=download_config, download_mode=download_mode, data_files=data_files 1514 ) 1515 /opt/conda/lib/python3.7/site-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_files, **download_kwargs) 1200 f"Couldn't find a dataset script at {relative_to_absolute_path(combined_path)} or any data file in the same directory. " 1201 f"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}" -> 1202 ) from None 1203 raise e1 from None 1204 else: FileNotFoundError: Couldn't find a dataset script at /kaggle/working/imagefolder/imagefolder.py or any data file in the same directory. Couldn't find 'imagefolder' on the Hugging Face Hub either: FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/master/datasets/imagefolder/imagefolder.py ```
26
How to use Image folder Ran this code ``` load_dataset("imagefolder", data_dir="./my-dataset") ``` `https://raw.githubusercontent.com/huggingface/datasets/master/datasets/imagefolder/imagefolder.py` missing ``` --------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) /tmp/ipykernel_33/1648737256.py in <module> ----> 1 load_dataset("imagefolder", data_dir="./my-dataset") /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, script_version, **config_kwargs) 1684 revision=revision, 1685 use_auth_token=use_auth_token, -> 1686 **config_kwargs, 1687 ) 1688 /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, script_version, **config_kwargs) 1511 download_config.use_auth_token = use_auth_token 1512 dataset_module = dataset_module_factory( -> 1513 path, revision=revision, download_config=download_config, download_mode=download_mode, data_files=data_files 1514 ) 1515 /opt/conda/lib/python3.7/site-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_files, **download_kwargs) 1200 f"Couldn't find a dataset script at {relative_to_absolute_path(combined_path)} or any data file in the same directory. " 1201 f"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}" -> 1202 ) from None 1203 raise e1 from None 1204 else: FileNotFoundError: Couldn't find a dataset script at /kaggle/working/imagefolder/imagefolder.py or any data file in the same directory. Couldn't find 'imagefolder' on the Hugging Face Hub either: FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/master/datasets/imagefolder/imagefolder.py ``` `data_dir="path/to/folder"` is a shorthand syntax fox `data_files={"train": "path/to/folder/**"}`, so use `data_files` in that case instead: ```python ds = load_dataset("imagefolder", data_files={"train": "path/to/train/**", "test": "path/to/test/**", "valid": "path/to/valid/**"}) ```
[ -0.2858946919441223, 0.07919441163539886, -0.16414369642734528, 0.519249439239502, 0.39786988496780396, 0.19424113631248474, 0.3166288137435913, 0.14290893077850342, 0.04558452591300011, 0.17036841809749603, 0.07837368547916412, -0.013808638788759708, -0.20191234350204468, 0.09910792857408524, -0.02797183394432068, -0.06101495027542114, -0.13744312524795532, 0.2016352415084839, -0.18007051944732666, 0.10539866983890533, -0.32439735531806946, 0.2227630466222763, -0.1992964744567871, 0.023970115929841995, -0.37252435088157654, -0.1334151327610016, -0.25548601150512695, 0.5537114143371582, -0.3019846975803375, -0.2025514543056488, 0.14256779849529266, -0.14845316112041473, 0.2093803435564041, 0.45155903697013855, -0.00010756453411886469, 0.2240583747625351, 0.4101126194000244, -0.23110130429267883, -0.3290292024612427, -0.3769565224647522, -0.22826707363128662, -0.04417284578084946, 0.004734463058412075, -0.38196003437042236, -0.12255309522151947, -0.07823918014764786, 0.2704274356365204, 0.025410674512386322, 0.30770784616470337, 0.27651527523994446, 0.25899896025657654, 0.12140601873397827, 0.18434782326221466, -0.016901491209864616, -0.11218354851007462, 0.49309074878692627, 0.03727637231349945, 0.2362050563097, 0.07920164614915848, -0.06527967751026154, 0.16254371404647827, 0.2614590525627136, 0.035887494683265686, -0.012443963438272476, 0.23219162225723267, 0.11052732914686203, -0.006824158132076263, -0.21559393405914307, 0.12655022740364075, -0.182091623544693, 0.3849572241306305, -0.16167455911636353, -0.18176323175430298, -0.01814570277929306, -0.03954287990927696, -0.40643003582954407, 0.1617153435945511, 0.08369044214487076, -0.118756502866745, 0.0931641012430191, -0.18624654412269592, -0.2279617339372635, -0.3234364688396454, 0.3092057704925537, 0.06795604526996613, 0.08778923004865646, -0.20539332926273346, 0.07692408561706543, 0.11506018042564392, 0.04930603504180908, 0.09709066897630692, -0.3621649742126465, 0.044210854917764664, 0.12650564312934875, 0.2593221366405487, 0.1461469531059265, -0.019517123699188232, 0.15175965428352356, 0.09592851251363754, 0.10282131284475327, -0.29831603169441223, -0.2555592656135559, -0.25267431139945984, 0.07934631407260895, 0.0006243642419576645, 0.22888146340847015, -0.055761851370334625, 0.45835697650909424, 0.22302663326263428, 0.39754581451416016, -0.024601725861430168, -0.24438348412513733, -0.30115532875061035, -0.20050166547298431, 0.049957726150751114, 0.20114412903785706, 0.326768159866333, 0.0799773782491684, -0.01354173757135868, -0.4608425199985504, 0.12705892324447632, -0.06864415854215622, 0.2023272067308426, 0.28796255588531494, 0.22720816731452942, -0.02183528244495392, 0.1704132854938507, 0.2375158667564392, 0.1398354172706604, 0.09844878315925598, -0.255423367023468, 0.28424856066703796, -0.2523292601108551, -0.005160806700587273, -0.04391784965991974, -0.2546502947807312, 0.30564504861831665, -0.2868964970111847, 0.052693262696266174, 0.058540187776088715, 0.15533658862113953, -0.21698719263076782, -0.05098211020231247, 0.26103585958480835, -0.09167299419641495, -0.018739739432930946, 0.2963450849056244, -0.04541997238993645, 0.06669851392507553, 0.09966868162155151, -0.44844144582748413, -0.4122200608253479, -0.20433732867240906, 0.22125470638275146, -0.09461710602045059, 0.0263814739882946, -0.5048222541809082, -0.24247677624225616, -0.04984346777200699, -0.22074078023433685, 0.028593748807907104, 0.005032455548644066, -0.21649478375911713, -0.1788632571697235, 0.2506091594696045, 0.5779447555541992, -0.14425954222679138, 0.07152648270130157, -0.26899152994155884, -0.23021861910820007, 0.18472149968147278, 0.09179594367742538, -0.20626354217529297, 0.4836919903755188, -0.6135780811309814, -0.037743303924798965, 0.5469892621040344, -0.6308553814888, -0.26421353220939636, -0.019476642832159996, -0.016056586056947708, -0.02837318368256092, 0.14419429004192352, 0.049167223274707794, 0.06856698542833328, -0.07879511266946793, -0.10481569170951843, 0.2463378757238388, -0.020746948197484016, 0.039303019642829895, 0.011602688580751419, -0.2071625143289566, -0.15440057218074799, 0.2210119217634201, 0.09984173625707626, 0.21987569332122803, 0.2281196415424347, -0.03288298100233078, 0.062134549021720886, -0.29887643456459045, 0.17807282507419586, 0.11518837511539459, 0.3906305134296417, 0.12293396890163422, -0.1748877912759781, -0.030899139121174812, -0.37983083724975586, 0.2845122218132019, 0.10844171047210693, -0.06060291826725006, -0.46449583768844604, 0.142732635140419, -0.16168558597564697, -0.2617485225200653, -0.41191667318344116, -0.24864807724952698, 0.1931684911251068, 0.23112671077251434, 0.10355229675769806, 0.011139292269945145, -0.16044621169567108, 0.28489449620246887, -0.18410441279411316, 0.1677674651145935, -0.15608926117420197, 0.45571616291999817, -0.38713985681533813, -0.17869381606578827, 0.12040014564990997, -0.015108518302440643, 0.07757701724767685, -0.2544839680194855, -0.05919801443815231, 0.2827380299568176, 0.13521966338157654, 0.14312973618507385, 0.306769460439682, -0.07055990397930145, 0.14599545300006866, -0.3780551254749298, 0.12583138048648834, -0.1305873543024063, 0.33849194645881653, 0.07661966234445572, -0.020167268812656403, 0.18093478679656982, -0.15699906647205353, 0.08842120319604874, 0.09803815186023712, -0.10842535644769669, 0.03857893496751785, -0.03286302462220192, 0.18180501461029053, -0.19265970587730408, 0.06556491553783417, 0.2532232403755188, 0.20334267616271973, -0.03505796194076538, 0.011664979159832, -0.2331337034702301, 0.34953612089157104, 0.061736833304166794, 0.12157127261161804, 0.18106135725975037, -0.14120841026306152, 0.1114950105547905, 0.005513971671462059, 0.10758990049362183, 0.6850781440734863, 0.2946435511112213, -0.23488157987594604, 0.0732882022857666, 0.2798925042152405, -0.007790572941303253, 0.2949090301990509, 0.022982802242040634, 0.31905198097229004, 0.1136220395565033, 0.023056501522660255, -0.005512171424925327, -0.23307183384895325, -0.5380801558494568, -0.10605349391698837, 0.35992443561553955, -0.1671123057603836, 0.06577246636152267, -0.22938835620880127, -0.42902871966362, 0.2275754064321518, 0.14856407046318054, -0.011752437800168991, -0.13069701194763184, -0.13751265406608582, 0.04224235564470291, 0.17259766161441803, 0.004895212594419718, -0.31007614731788635, 0.0854402631521225, 0.07500418275594711, -0.44916465878486633, -0.5388176441192627, -0.03493880480527878, -0.04896431416273117, 0.13545919954776764, 0.3568563759326935, -0.09235801547765732, 0.3888430595397949, -0.29045921564102173, 0.170111745595932, -0.5194391012191772, -0.16853006184101105, 0.08414287865161896, 0.0003068894147872925, 0.19681134819984436, 0.33854880928993225, 0.32823607325553894, 0.20738957822322845, -0.14623187482357025, 0.42599865794181824, 0.07747919857501984, -0.326722115278244, -0.012651590630412102, -0.1966930627822876, -0.1362506002187729, -0.16420775651931763, -0.12846365571022034, -0.35732296109199524, -0.4335588216781616, -0.06843078136444092, 0.29350975155830383, 0.08248821645975113, 0.44169074296951294, 0.20308484137058258, 0.2307364046573639, -0.14040601253509521, 0.02989770472049713, -0.03977055847644806, -0.4825538098812103, 0.2662038207054138, -0.14714284241199493, -0.20142433047294617, 0.11320920288562775, -0.09715785086154938, 0.20873138308525085, 0.049699004739522934, -0.34096336364746094, -0.6610175371170044, 0.09806051105260849, 0.2304312288761139, -0.026113033294677734, 0.21054764091968536, 0.28395670652389526, 0.046252403408288956, -0.06697916239500046, -0.07259001582860947, -0.07612001895904541, -0.0332983061671257, -0.008268609642982483, 0.27623245120048523, 0.08663436025381088, 0.48563703894615173, 0.001083657145500183, 0.7047637104988098, 0.1602012664079666, -0.005663096904754639, 0.5541394948959351, -0.3467073440551758, 0.5346217155456543, -0.3130926191806793, -0.2578810453414917, 0.17359289526939392, 0.3412328362464905, -0.01595587655901909, -0.05152332782745361, 0.040161632001399994, 0.1763598620891571, -0.13919135928153992, -0.25969043374061584, -0.6329510807991028, 0.06568989157676697, 0.005821391940116882, 0.10524143278598785, 0.20907577872276306, -0.07722899317741394, -0.41149207949638367, -0.06928560137748718, -0.09871423989534378, 0.1179208755493164, 0.6839739084243774, 0.18140177428722382, 0.19671186804771423, -0.06265062838792801, -0.2422274947166443, -0.018139928579330444, 0.36359816789627075, 0.03168744593858719, -0.09198729693889618, -0.0862802192568779, 0.2153061330318451, 0.027875825762748718, -0.1463741809129715, 0.7403360605239868, -0.09525144100189209, -0.010674674063920975, 0.0185244120657444, -0.26638734340667725, -0.11050672084093094, -0.01144523173570633, -0.08961181342601776, 0.05086817964911461, -0.12382487952709198, 0.667944073677063, -0.15672296285629272, -0.28274598717689514, 0.24038507044315338, 0.05858217552304268, -0.29292023181915283, -0.08560662716627121, -0.3727974593639374, -0.39439526200294495, -0.4308893382549286, -0.18924295902252197, -0.05428311973810196, 0.14078494906425476, 0.35311660170555115, 0.034440699964761734, -0.06194475293159485, -0.23695868253707886, -0.31219762563705444, 0.006282290443778038, 0.3898470401763916, -0.16568905115127563, -0.06670484691858292, 0.337018221616745, 0.11812105774879456, 0.5655360221862793, 0.49727198481559753, -0.1634872406721115, -0.055383890867233276, 0.04755493998527527, -0.03892556577920914, 0.15716107189655304, 0.07872827351093292, -0.2703436017036438, -0.4112435579299927, -0.16047488152980804, 0.1485656201839447, -0.14653851091861725, 0.007889552041888237, 0.3987913131713867, -0.07838621735572815, -0.029113754630088806, -0.14483995735645294, 0.22775417566299438, 0.05467931553721428, 0.09832651913166046, 0.3387629985809326, 0.32427501678466797, -0.3816370964050293, 0.09073210507631302, -0.14067742228507996, 0.5482306480407715, -0.08148916065692902, 0.2978999614715576, 0.29990822076797485, -0.06765919923782349, 0.1985689401626587, 0.16608373820781708, 0.07852737605571747, -0.13393652439117432, -0.16649644076824188, -0.06401529163122177, -0.26756778359413147, 0.3405865728855133, 0.050383370369672775, -0.16866742074489594, 0.4461618959903717, -0.0890485942363739, -0.09101349115371704, -0.1511068344116211, 0.11674937605857849, -0.1589270532131195, 0.04342307895421982, -0.10214466601610184, 0.23127040266990662, 0.05473300814628601, 0.3664603531360626, -0.22044235467910767, 0.0490674190223217, -0.1903863102197647, -0.24958884716033936, -0.028194479644298553, 0.06680259853601456, -0.47855550050735474, 0.14251095056533813, 0.014971014112234116, -0.10721544921398163, 0.019641853868961334, 0.3782065510749817, -0.046462468802928925, -0.04265826568007469, -0.1432626098394394, 0.21272315084934235, -0.14498037099838257, 0.05183985084295273, -0.24012240767478943, 0.042011991143226624, 0.2063642144203186, -0.20219439268112183, 0.05887306481599808, 0.03816628456115723, -0.15743331611156464, -0.23962458968162537, -0.027689985930919647, 0.016482576727867126, 0.095319002866745, -0.00854751281440258, -0.3456416130065918, -0.17251178622245789, -0.1062447726726532, -0.12887173891067505, 0.1877816617488861, 0.04615854099392891, -0.00931310560554266, -0.007291354238986969, -0.15327227115631104, -0.14366507530212402, 0.09416384994983673, 0.05476554110646248, -0.08714215457439423, 0.18934449553489685, 0.4673839211463928, -0.11427199840545654, -0.03981709107756615, -0.3154887557029724, 0.4180922210216522, 0.05197968706488609, -0.07614382356405258, 0.1887275129556656, 0.34399935603141785, 0.22825108468532562, 0.0126238027587533, 0.03767874836921692, 0.11074453592300415, -0.30680394172668457, -0.08602241426706314, -0.491786390542984, -0.40570276975631714, 0.2501187324523926, -0.21596325933933258, 0.20420637726783752, -0.16452819108963013, 0.13078081607818604, 0.2762947678565979, -0.2896706163883209, -0.3796900510787964, 0.28266698122024536, -0.3409358561038971, 0.127092182636261, 0.30698785185813904, 0.04170360416173935, 0.4476424753665924, 0.07533226907253265, 0.26235002279281616, -0.11074981093406677, -0.26338621973991394, -0.249680757522583, -0.0660935640335083, 0.0987200066447258, 0.12120765447616577, -0.13493096828460693, 0.1189349889755249, -0.16182918846607208, -0.13428063690662384, 0.09235989302396774, -0.006042515859007835, -0.03041486255824566, -0.08367571234703064, 0.046324122697114944, 0.10990692675113678, -0.2554641664028168, -0.05380750074982643, 0.054938122630119324, -0.2516523003578186, 0.3395839035511017, 0.19299651682376862, 0.09729643166065216, 0.00292973592877388, -0.09338098764419556, -0.06502065807580948, -0.06767839938402176, 0.04869377613067627, 0.166627436876297, 0.4039123058319092, 0.029883703216910362, 0.06324677169322968, -0.11219195276498795, 0.29067090153694153, 0.006243307143449783, -0.3475567698478699, 0.3203180432319641, 0.08517378568649292, 0.2337813824415207, -0.2893438935279846, 0.015505677089095116, -0.020891066640615463, -0.1136554628610611, 0.042889561504125595, 0.0965161994099617, -0.3188045918941498, 0.1486106961965561, -0.16965116560459137, -0.054747454822063446, 0.548186719417572, -0.19034266471862793, 0.0021555102430284023, 0.14677491784095764, -0.0801941379904747, 0.09333741664886475, 0.34475135803222656, 0.2645242512226105, 0.09786882996559143, 0.6918182373046875, -0.20542123913764954, 0.30071091651916504, -0.2856634855270386, 0.03324192762374878, 0.14071489870548248, -0.29812711477279663, -0.07668571174144745, 0.021527394652366638, 0.04348715394735336, -0.06801921874284744, -0.4112866222858429, 0.08840778470039368, -0.0647997334599495, 0.10550246387720108, 0.016831623390316963, 0.24838419258594513, -0.0025915876030921936, 0.040180232375860214, -0.4531843960285187, -0.18718776106834412, -0.0388968363404274, -0.025838226079940796, 0.08734134584665298, -0.2519074082374573, -0.029787197709083557, 0.25103163719177246, -0.1083664745092392, 0.04343421757221222, 0.01686996780335903, 0.3450642228126526, -0.03008686751127243, -0.19237622618675232, 0.44677063822746277, 0.24441230297088623, 0.06706354022026062, 0.11315599083900452, 0.49395135045051575, 0.518007755279541, 0.19981072843074799, 0.11439555883407593, -0.1387731283903122, -0.020216800272464752, -0.29064425826072693, -0.17365218698978424, 0.21807961165905, 0.08240833133459091, 0.1494479924440384, -0.03139416500926018, 0.3158109486103058, -0.22661782801151276, 0.014661785215139389, -0.06798116862773895, -0.15813632309436798, -0.07539303600788116, 0.4123806655406952, -0.2585471272468567, -0.19275131821632385, -0.07527975738048553, 0.16769902408123016, -0.5033454298973083, 0.10076949745416641, 0.35759884119033813, -0.04873179271817207, 0.10622747987508774, 0.16198192536830902, 0.08192846179008484, -0.03095441684126854, 0.2062026411294937, 0.3546428680419922, -0.005245186388492584, -0.2769242823123932, -0.17778480052947998, -0.5345104932785034, -0.07298963516950607, 0.03162626177072525, -0.26796969771385193, -0.2681926488876343, -0.03288903832435608, -0.08795865625143051, -0.023028988391160965, 0.41808009147644043, 0.20506583154201508, 0.22978676855564117, -0.07757295668125153, -0.3130343556404114, -0.1979028880596161, 0.13034071028232574, 0.0677444264292717, -0.13519035279750824, -0.5085449814796448, -0.009007986634969711, -0.26839694380760193, 0.19038516283035278, 0.0027913209050893784, 0.08663004636764526, -0.1306414157152176, -0.11623573303222656, 0.3766637146472931, -0.01079312153160572, 0.2907446622848511, -0.1698557436466217, -0.004718134179711342, -0.04076577350497246, -0.1496237963438034, -0.02866099774837494, -0.06061489135026932, 0.27543723583221436, 0.28793826699256897, -0.3851911127567291, -0.26791077852249146, -0.4055072069168091, 0.05863402038812637, -0.01701200008392334, -0.10471194237470627, -0.30489620566368103, 0.21066181361675262, -0.13391351699829102, 0.023561814799904823, 0.1579907387495041, 0.22699689865112305, -0.06723437458276749, -0.2553292512893677, -0.5728759765625, -0.08330254256725311, 0.44978711009025574, -0.30615752935409546, -0.2604260742664337, 0.1681201010942459, 0.015658728778362274, -0.11841753870248795, 0.16025565564632416, -0.12972119450569153, 0.2885088622570038, 0.40429726243019104, 0.06959737092256546, -0.32873016595840454, 0.3322093188762665, 0.18165037035942078, 0.2269631177186966, 0.17114989459514618, 0.030704330652952194, -0.11174833029508591, -0.18774275481700897, -0.02708289586007595, 0.02991451323032379 ]
https://github.com/huggingface/datasets/issues/3881
How to use Image folder
And there was another issue. I loaded black and white images (jpeg file). Using load dataset. It reads it as PIL jpeg data format. But instead of converting it into 3 channel tensor, input to collator function is coming as a single channel tensor.
Ran this code ``` load_dataset("imagefolder", data_dir="./my-dataset") ``` `https://raw.githubusercontent.com/huggingface/datasets/master/datasets/imagefolder/imagefolder.py` missing ``` --------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) /tmp/ipykernel_33/1648737256.py in <module> ----> 1 load_dataset("imagefolder", data_dir="./my-dataset") /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, script_version, **config_kwargs) 1684 revision=revision, 1685 use_auth_token=use_auth_token, -> 1686 **config_kwargs, 1687 ) 1688 /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, script_version, **config_kwargs) 1511 download_config.use_auth_token = use_auth_token 1512 dataset_module = dataset_module_factory( -> 1513 path, revision=revision, download_config=download_config, download_mode=download_mode, data_files=data_files 1514 ) 1515 /opt/conda/lib/python3.7/site-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_files, **download_kwargs) 1200 f"Couldn't find a dataset script at {relative_to_absolute_path(combined_path)} or any data file in the same directory. " 1201 f"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}" -> 1202 ) from None 1203 raise e1 from None 1204 else: FileNotFoundError: Couldn't find a dataset script at /kaggle/working/imagefolder/imagefolder.py or any data file in the same directory. Couldn't find 'imagefolder' on the Hugging Face Hub either: FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/master/datasets/imagefolder/imagefolder.py ```
44
How to use Image folder Ran this code ``` load_dataset("imagefolder", data_dir="./my-dataset") ``` `https://raw.githubusercontent.com/huggingface/datasets/master/datasets/imagefolder/imagefolder.py` missing ``` --------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) /tmp/ipykernel_33/1648737256.py in <module> ----> 1 load_dataset("imagefolder", data_dir="./my-dataset") /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, script_version, **config_kwargs) 1684 revision=revision, 1685 use_auth_token=use_auth_token, -> 1686 **config_kwargs, 1687 ) 1688 /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, script_version, **config_kwargs) 1511 download_config.use_auth_token = use_auth_token 1512 dataset_module = dataset_module_factory( -> 1513 path, revision=revision, download_config=download_config, download_mode=download_mode, data_files=data_files 1514 ) 1515 /opt/conda/lib/python3.7/site-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_files, **download_kwargs) 1200 f"Couldn't find a dataset script at {relative_to_absolute_path(combined_path)} or any data file in the same directory. " 1201 f"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}" -> 1202 ) from None 1203 raise e1 from None 1204 else: FileNotFoundError: Couldn't find a dataset script at /kaggle/working/imagefolder/imagefolder.py or any data file in the same directory. Couldn't find 'imagefolder' on the Hugging Face Hub either: FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/master/datasets/imagefolder/imagefolder.py ``` And there was another issue. I loaded black and white images (jpeg file). Using load dataset. It reads it as PIL jpeg data format. But instead of converting it into 3 channel tensor, input to collator function is coming as a single channel tensor.
[ -0.2858946919441223, 0.07919441163539886, -0.16414369642734528, 0.519249439239502, 0.39786988496780396, 0.19424113631248474, 0.3166288137435913, 0.14290893077850342, 0.04558452591300011, 0.17036841809749603, 0.07837368547916412, -0.013808638788759708, -0.20191234350204468, 0.09910792857408524, -0.02797183394432068, -0.06101495027542114, -0.13744312524795532, 0.2016352415084839, -0.18007051944732666, 0.10539866983890533, -0.32439735531806946, 0.2227630466222763, -0.1992964744567871, 0.023970115929841995, -0.37252435088157654, -0.1334151327610016, -0.25548601150512695, 0.5537114143371582, -0.3019846975803375, -0.2025514543056488, 0.14256779849529266, -0.14845316112041473, 0.2093803435564041, 0.45155903697013855, -0.00010756453411886469, 0.2240583747625351, 0.4101126194000244, -0.23110130429267883, -0.3290292024612427, -0.3769565224647522, -0.22826707363128662, -0.04417284578084946, 0.004734463058412075, -0.38196003437042236, -0.12255309522151947, -0.07823918014764786, 0.2704274356365204, 0.025410674512386322, 0.30770784616470337, 0.27651527523994446, 0.25899896025657654, 0.12140601873397827, 0.18434782326221466, -0.016901491209864616, -0.11218354851007462, 0.49309074878692627, 0.03727637231349945, 0.2362050563097, 0.07920164614915848, -0.06527967751026154, 0.16254371404647827, 0.2614590525627136, 0.035887494683265686, -0.012443963438272476, 0.23219162225723267, 0.11052732914686203, -0.006824158132076263, -0.21559393405914307, 0.12655022740364075, -0.182091623544693, 0.3849572241306305, -0.16167455911636353, -0.18176323175430298, -0.01814570277929306, -0.03954287990927696, -0.40643003582954407, 0.1617153435945511, 0.08369044214487076, -0.118756502866745, 0.0931641012430191, -0.18624654412269592, -0.2279617339372635, -0.3234364688396454, 0.3092057704925537, 0.06795604526996613, 0.08778923004865646, -0.20539332926273346, 0.07692408561706543, 0.11506018042564392, 0.04930603504180908, 0.09709066897630692, -0.3621649742126465, 0.044210854917764664, 0.12650564312934875, 0.2593221366405487, 0.1461469531059265, -0.019517123699188232, 0.15175965428352356, 0.09592851251363754, 0.10282131284475327, -0.29831603169441223, -0.2555592656135559, -0.25267431139945984, 0.07934631407260895, 0.0006243642419576645, 0.22888146340847015, -0.055761851370334625, 0.45835697650909424, 0.22302663326263428, 0.39754581451416016, -0.024601725861430168, -0.24438348412513733, -0.30115532875061035, -0.20050166547298431, 0.049957726150751114, 0.20114412903785706, 0.326768159866333, 0.0799773782491684, -0.01354173757135868, -0.4608425199985504, 0.12705892324447632, -0.06864415854215622, 0.2023272067308426, 0.28796255588531494, 0.22720816731452942, -0.02183528244495392, 0.1704132854938507, 0.2375158667564392, 0.1398354172706604, 0.09844878315925598, -0.255423367023468, 0.28424856066703796, -0.2523292601108551, -0.005160806700587273, -0.04391784965991974, -0.2546502947807312, 0.30564504861831665, -0.2868964970111847, 0.052693262696266174, 0.058540187776088715, 0.15533658862113953, -0.21698719263076782, -0.05098211020231247, 0.26103585958480835, -0.09167299419641495, -0.018739739432930946, 0.2963450849056244, -0.04541997238993645, 0.06669851392507553, 0.09966868162155151, -0.44844144582748413, -0.4122200608253479, -0.20433732867240906, 0.22125470638275146, -0.09461710602045059, 0.0263814739882946, -0.5048222541809082, -0.24247677624225616, -0.04984346777200699, -0.22074078023433685, 0.028593748807907104, 0.005032455548644066, -0.21649478375911713, -0.1788632571697235, 0.2506091594696045, 0.5779447555541992, -0.14425954222679138, 0.07152648270130157, -0.26899152994155884, -0.23021861910820007, 0.18472149968147278, 0.09179594367742538, -0.20626354217529297, 0.4836919903755188, -0.6135780811309814, -0.037743303924798965, 0.5469892621040344, -0.6308553814888, -0.26421353220939636, -0.019476642832159996, -0.016056586056947708, -0.02837318368256092, 0.14419429004192352, 0.049167223274707794, 0.06856698542833328, -0.07879511266946793, -0.10481569170951843, 0.2463378757238388, -0.020746948197484016, 0.039303019642829895, 0.011602688580751419, -0.2071625143289566, -0.15440057218074799, 0.2210119217634201, 0.09984173625707626, 0.21987569332122803, 0.2281196415424347, -0.03288298100233078, 0.062134549021720886, -0.29887643456459045, 0.17807282507419586, 0.11518837511539459, 0.3906305134296417, 0.12293396890163422, -0.1748877912759781, -0.030899139121174812, -0.37983083724975586, 0.2845122218132019, 0.10844171047210693, -0.06060291826725006, -0.46449583768844604, 0.142732635140419, -0.16168558597564697, -0.2617485225200653, -0.41191667318344116, -0.24864807724952698, 0.1931684911251068, 0.23112671077251434, 0.10355229675769806, 0.011139292269945145, -0.16044621169567108, 0.28489449620246887, -0.18410441279411316, 0.1677674651145935, -0.15608926117420197, 0.45571616291999817, -0.38713985681533813, -0.17869381606578827, 0.12040014564990997, -0.015108518302440643, 0.07757701724767685, -0.2544839680194855, -0.05919801443815231, 0.2827380299568176, 0.13521966338157654, 0.14312973618507385, 0.306769460439682, -0.07055990397930145, 0.14599545300006866, -0.3780551254749298, 0.12583138048648834, -0.1305873543024063, 0.33849194645881653, 0.07661966234445572, -0.020167268812656403, 0.18093478679656982, -0.15699906647205353, 0.08842120319604874, 0.09803815186023712, -0.10842535644769669, 0.03857893496751785, -0.03286302462220192, 0.18180501461029053, -0.19265970587730408, 0.06556491553783417, 0.2532232403755188, 0.20334267616271973, -0.03505796194076538, 0.011664979159832, -0.2331337034702301, 0.34953612089157104, 0.061736833304166794, 0.12157127261161804, 0.18106135725975037, -0.14120841026306152, 0.1114950105547905, 0.005513971671462059, 0.10758990049362183, 0.6850781440734863, 0.2946435511112213, -0.23488157987594604, 0.0732882022857666, 0.2798925042152405, -0.007790572941303253, 0.2949090301990509, 0.022982802242040634, 0.31905198097229004, 0.1136220395565033, 0.023056501522660255, -0.005512171424925327, -0.23307183384895325, -0.5380801558494568, -0.10605349391698837, 0.35992443561553955, -0.1671123057603836, 0.06577246636152267, -0.22938835620880127, -0.42902871966362, 0.2275754064321518, 0.14856407046318054, -0.011752437800168991, -0.13069701194763184, -0.13751265406608582, 0.04224235564470291, 0.17259766161441803, 0.004895212594419718, -0.31007614731788635, 0.0854402631521225, 0.07500418275594711, -0.44916465878486633, -0.5388176441192627, -0.03493880480527878, -0.04896431416273117, 0.13545919954776764, 0.3568563759326935, -0.09235801547765732, 0.3888430595397949, -0.29045921564102173, 0.170111745595932, -0.5194391012191772, -0.16853006184101105, 0.08414287865161896, 0.0003068894147872925, 0.19681134819984436, 0.33854880928993225, 0.32823607325553894, 0.20738957822322845, -0.14623187482357025, 0.42599865794181824, 0.07747919857501984, -0.326722115278244, -0.012651590630412102, -0.1966930627822876, -0.1362506002187729, -0.16420775651931763, -0.12846365571022034, -0.35732296109199524, -0.4335588216781616, -0.06843078136444092, 0.29350975155830383, 0.08248821645975113, 0.44169074296951294, 0.20308484137058258, 0.2307364046573639, -0.14040601253509521, 0.02989770472049713, -0.03977055847644806, -0.4825538098812103, 0.2662038207054138, -0.14714284241199493, -0.20142433047294617, 0.11320920288562775, -0.09715785086154938, 0.20873138308525085, 0.049699004739522934, -0.34096336364746094, -0.6610175371170044, 0.09806051105260849, 0.2304312288761139, -0.026113033294677734, 0.21054764091968536, 0.28395670652389526, 0.046252403408288956, -0.06697916239500046, -0.07259001582860947, -0.07612001895904541, -0.0332983061671257, -0.008268609642982483, 0.27623245120048523, 0.08663436025381088, 0.48563703894615173, 0.001083657145500183, 0.7047637104988098, 0.1602012664079666, -0.005663096904754639, 0.5541394948959351, -0.3467073440551758, 0.5346217155456543, -0.3130926191806793, -0.2578810453414917, 0.17359289526939392, 0.3412328362464905, -0.01595587655901909, -0.05152332782745361, 0.040161632001399994, 0.1763598620891571, -0.13919135928153992, -0.25969043374061584, -0.6329510807991028, 0.06568989157676697, 0.005821391940116882, 0.10524143278598785, 0.20907577872276306, -0.07722899317741394, -0.41149207949638367, -0.06928560137748718, -0.09871423989534378, 0.1179208755493164, 0.6839739084243774, 0.18140177428722382, 0.19671186804771423, -0.06265062838792801, -0.2422274947166443, -0.018139928579330444, 0.36359816789627075, 0.03168744593858719, -0.09198729693889618, -0.0862802192568779, 0.2153061330318451, 0.027875825762748718, -0.1463741809129715, 0.7403360605239868, -0.09525144100189209, -0.010674674063920975, 0.0185244120657444, -0.26638734340667725, -0.11050672084093094, -0.01144523173570633, -0.08961181342601776, 0.05086817964911461, -0.12382487952709198, 0.667944073677063, -0.15672296285629272, -0.28274598717689514, 0.24038507044315338, 0.05858217552304268, -0.29292023181915283, -0.08560662716627121, -0.3727974593639374, -0.39439526200294495, -0.4308893382549286, -0.18924295902252197, -0.05428311973810196, 0.14078494906425476, 0.35311660170555115, 0.034440699964761734, -0.06194475293159485, -0.23695868253707886, -0.31219762563705444, 0.006282290443778038, 0.3898470401763916, -0.16568905115127563, -0.06670484691858292, 0.337018221616745, 0.11812105774879456, 0.5655360221862793, 0.49727198481559753, -0.1634872406721115, -0.055383890867233276, 0.04755493998527527, -0.03892556577920914, 0.15716107189655304, 0.07872827351093292, -0.2703436017036438, -0.4112435579299927, -0.16047488152980804, 0.1485656201839447, -0.14653851091861725, 0.007889552041888237, 0.3987913131713867, -0.07838621735572815, -0.029113754630088806, -0.14483995735645294, 0.22775417566299438, 0.05467931553721428, 0.09832651913166046, 0.3387629985809326, 0.32427501678466797, -0.3816370964050293, 0.09073210507631302, -0.14067742228507996, 0.5482306480407715, -0.08148916065692902, 0.2978999614715576, 0.29990822076797485, -0.06765919923782349, 0.1985689401626587, 0.16608373820781708, 0.07852737605571747, -0.13393652439117432, -0.16649644076824188, -0.06401529163122177, -0.26756778359413147, 0.3405865728855133, 0.050383370369672775, -0.16866742074489594, 0.4461618959903717, -0.0890485942363739, -0.09101349115371704, -0.1511068344116211, 0.11674937605857849, -0.1589270532131195, 0.04342307895421982, -0.10214466601610184, 0.23127040266990662, 0.05473300814628601, 0.3664603531360626, -0.22044235467910767, 0.0490674190223217, -0.1903863102197647, -0.24958884716033936, -0.028194479644298553, 0.06680259853601456, -0.47855550050735474, 0.14251095056533813, 0.014971014112234116, -0.10721544921398163, 0.019641853868961334, 0.3782065510749817, -0.046462468802928925, -0.04265826568007469, -0.1432626098394394, 0.21272315084934235, -0.14498037099838257, 0.05183985084295273, -0.24012240767478943, 0.042011991143226624, 0.2063642144203186, -0.20219439268112183, 0.05887306481599808, 0.03816628456115723, -0.15743331611156464, -0.23962458968162537, -0.027689985930919647, 0.016482576727867126, 0.095319002866745, -0.00854751281440258, -0.3456416130065918, -0.17251178622245789, -0.1062447726726532, -0.12887173891067505, 0.1877816617488861, 0.04615854099392891, -0.00931310560554266, -0.007291354238986969, -0.15327227115631104, -0.14366507530212402, 0.09416384994983673, 0.05476554110646248, -0.08714215457439423, 0.18934449553489685, 0.4673839211463928, -0.11427199840545654, -0.03981709107756615, -0.3154887557029724, 0.4180922210216522, 0.05197968706488609, -0.07614382356405258, 0.1887275129556656, 0.34399935603141785, 0.22825108468532562, 0.0126238027587533, 0.03767874836921692, 0.11074453592300415, -0.30680394172668457, -0.08602241426706314, -0.491786390542984, -0.40570276975631714, 0.2501187324523926, -0.21596325933933258, 0.20420637726783752, -0.16452819108963013, 0.13078081607818604, 0.2762947678565979, -0.2896706163883209, -0.3796900510787964, 0.28266698122024536, -0.3409358561038971, 0.127092182636261, 0.30698785185813904, 0.04170360416173935, 0.4476424753665924, 0.07533226907253265, 0.26235002279281616, -0.11074981093406677, -0.26338621973991394, -0.249680757522583, -0.0660935640335083, 0.0987200066447258, 0.12120765447616577, -0.13493096828460693, 0.1189349889755249, -0.16182918846607208, -0.13428063690662384, 0.09235989302396774, -0.006042515859007835, -0.03041486255824566, -0.08367571234703064, 0.046324122697114944, 0.10990692675113678, -0.2554641664028168, -0.05380750074982643, 0.054938122630119324, -0.2516523003578186, 0.3395839035511017, 0.19299651682376862, 0.09729643166065216, 0.00292973592877388, -0.09338098764419556, -0.06502065807580948, -0.06767839938402176, 0.04869377613067627, 0.166627436876297, 0.4039123058319092, 0.029883703216910362, 0.06324677169322968, -0.11219195276498795, 0.29067090153694153, 0.006243307143449783, -0.3475567698478699, 0.3203180432319641, 0.08517378568649292, 0.2337813824415207, -0.2893438935279846, 0.015505677089095116, -0.020891066640615463, -0.1136554628610611, 0.042889561504125595, 0.0965161994099617, -0.3188045918941498, 0.1486106961965561, -0.16965116560459137, -0.054747454822063446, 0.548186719417572, -0.19034266471862793, 0.0021555102430284023, 0.14677491784095764, -0.0801941379904747, 0.09333741664886475, 0.34475135803222656, 0.2645242512226105, 0.09786882996559143, 0.6918182373046875, -0.20542123913764954, 0.30071091651916504, -0.2856634855270386, 0.03324192762374878, 0.14071489870548248, -0.29812711477279663, -0.07668571174144745, 0.021527394652366638, 0.04348715394735336, -0.06801921874284744, -0.4112866222858429, 0.08840778470039368, -0.0647997334599495, 0.10550246387720108, 0.016831623390316963, 0.24838419258594513, -0.0025915876030921936, 0.040180232375860214, -0.4531843960285187, -0.18718776106834412, -0.0388968363404274, -0.025838226079940796, 0.08734134584665298, -0.2519074082374573, -0.029787197709083557, 0.25103163719177246, -0.1083664745092392, 0.04343421757221222, 0.01686996780335903, 0.3450642228126526, -0.03008686751127243, -0.19237622618675232, 0.44677063822746277, 0.24441230297088623, 0.06706354022026062, 0.11315599083900452, 0.49395135045051575, 0.518007755279541, 0.19981072843074799, 0.11439555883407593, -0.1387731283903122, -0.020216800272464752, -0.29064425826072693, -0.17365218698978424, 0.21807961165905, 0.08240833133459091, 0.1494479924440384, -0.03139416500926018, 0.3158109486103058, -0.22661782801151276, 0.014661785215139389, -0.06798116862773895, -0.15813632309436798, -0.07539303600788116, 0.4123806655406952, -0.2585471272468567, -0.19275131821632385, -0.07527975738048553, 0.16769902408123016, -0.5033454298973083, 0.10076949745416641, 0.35759884119033813, -0.04873179271817207, 0.10622747987508774, 0.16198192536830902, 0.08192846179008484, -0.03095441684126854, 0.2062026411294937, 0.3546428680419922, -0.005245186388492584, -0.2769242823123932, -0.17778480052947998, -0.5345104932785034, -0.07298963516950607, 0.03162626177072525, -0.26796969771385193, -0.2681926488876343, -0.03288903832435608, -0.08795865625143051, -0.023028988391160965, 0.41808009147644043, 0.20506583154201508, 0.22978676855564117, -0.07757295668125153, -0.3130343556404114, -0.1979028880596161, 0.13034071028232574, 0.0677444264292717, -0.13519035279750824, -0.5085449814796448, -0.009007986634969711, -0.26839694380760193, 0.19038516283035278, 0.0027913209050893784, 0.08663004636764526, -0.1306414157152176, -0.11623573303222656, 0.3766637146472931, -0.01079312153160572, 0.2907446622848511, -0.1698557436466217, -0.004718134179711342, -0.04076577350497246, -0.1496237963438034, -0.02866099774837494, -0.06061489135026932, 0.27543723583221436, 0.28793826699256897, -0.3851911127567291, -0.26791077852249146, -0.4055072069168091, 0.05863402038812637, -0.01701200008392334, -0.10471194237470627, -0.30489620566368103, 0.21066181361675262, -0.13391351699829102, 0.023561814799904823, 0.1579907387495041, 0.22699689865112305, -0.06723437458276749, -0.2553292512893677, -0.5728759765625, -0.08330254256725311, 0.44978711009025574, -0.30615752935409546, -0.2604260742664337, 0.1681201010942459, 0.015658728778362274, -0.11841753870248795, 0.16025565564632416, -0.12972119450569153, 0.2885088622570038, 0.40429726243019104, 0.06959737092256546, -0.32873016595840454, 0.3322093188762665, 0.18165037035942078, 0.2269631177186966, 0.17114989459514618, 0.030704330652952194, -0.11174833029508591, -0.18774275481700897, -0.02708289586007595, 0.02991451323032379 ]
https://github.com/huggingface/datasets/issues/3881
How to use Image folder
We don't apply any additional preprocessing on top of `PIL.Image.open(image_file)`, so you need to do the conversion yourself: ```python def to_rgb(batch): batch["image"] = [img.convert("RGB") for img in batch["image"]] return batch ds_rgb = ds.map(to_rgb, batched=True) ``` Please use our Forum for questions of this kind in the future.
Ran this code ``` load_dataset("imagefolder", data_dir="./my-dataset") ``` `https://raw.githubusercontent.com/huggingface/datasets/master/datasets/imagefolder/imagefolder.py` missing ``` --------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) /tmp/ipykernel_33/1648737256.py in <module> ----> 1 load_dataset("imagefolder", data_dir="./my-dataset") /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, script_version, **config_kwargs) 1684 revision=revision, 1685 use_auth_token=use_auth_token, -> 1686 **config_kwargs, 1687 ) 1688 /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, script_version, **config_kwargs) 1511 download_config.use_auth_token = use_auth_token 1512 dataset_module = dataset_module_factory( -> 1513 path, revision=revision, download_config=download_config, download_mode=download_mode, data_files=data_files 1514 ) 1515 /opt/conda/lib/python3.7/site-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_files, **download_kwargs) 1200 f"Couldn't find a dataset script at {relative_to_absolute_path(combined_path)} or any data file in the same directory. " 1201 f"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}" -> 1202 ) from None 1203 raise e1 from None 1204 else: FileNotFoundError: Couldn't find a dataset script at /kaggle/working/imagefolder/imagefolder.py or any data file in the same directory. Couldn't find 'imagefolder' on the Hugging Face Hub either: FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/master/datasets/imagefolder/imagefolder.py ```
47
How to use Image folder Ran this code ``` load_dataset("imagefolder", data_dir="./my-dataset") ``` `https://raw.githubusercontent.com/huggingface/datasets/master/datasets/imagefolder/imagefolder.py` missing ``` --------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) /tmp/ipykernel_33/1648737256.py in <module> ----> 1 load_dataset("imagefolder", data_dir="./my-dataset") /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, script_version, **config_kwargs) 1684 revision=revision, 1685 use_auth_token=use_auth_token, -> 1686 **config_kwargs, 1687 ) 1688 /opt/conda/lib/python3.7/site-packages/datasets/load.py in load_dataset_builder(path, name, data_dir, data_files, cache_dir, features, download_config, download_mode, revision, use_auth_token, script_version, **config_kwargs) 1511 download_config.use_auth_token = use_auth_token 1512 dataset_module = dataset_module_factory( -> 1513 path, revision=revision, download_config=download_config, download_mode=download_mode, data_files=data_files 1514 ) 1515 /opt/conda/lib/python3.7/site-packages/datasets/load.py in dataset_module_factory(path, revision, download_config, download_mode, force_local_path, dynamic_modules_path, data_files, **download_kwargs) 1200 f"Couldn't find a dataset script at {relative_to_absolute_path(combined_path)} or any data file in the same directory. " 1201 f"Couldn't find '{path}' on the Hugging Face Hub either: {type(e1).__name__}: {e1}" -> 1202 ) from None 1203 raise e1 from None 1204 else: FileNotFoundError: Couldn't find a dataset script at /kaggle/working/imagefolder/imagefolder.py or any data file in the same directory. Couldn't find 'imagefolder' on the Hugging Face Hub either: FileNotFoundError: Couldn't find file at https://raw.githubusercontent.com/huggingface/datasets/master/datasets/imagefolder/imagefolder.py ``` We don't apply any additional preprocessing on top of `PIL.Image.open(image_file)`, so you need to do the conversion yourself: ```python def to_rgb(batch): batch["image"] = [img.convert("RGB") for img in batch["image"]] return batch ds_rgb = ds.map(to_rgb, batched=True) ``` Please use our Forum for questions of this kind in the future.
[ -0.2858946919441223, 0.07919441163539886, -0.16414369642734528, 0.519249439239502, 0.39786988496780396, 0.19424113631248474, 0.3166288137435913, 0.14290893077850342, 0.04558452591300011, 0.17036841809749603, 0.07837368547916412, -0.013808638788759708, -0.20191234350204468, 0.09910792857408524, -0.02797183394432068, -0.06101495027542114, -0.13744312524795532, 0.2016352415084839, -0.18007051944732666, 0.10539866983890533, -0.32439735531806946, 0.2227630466222763, -0.1992964744567871, 0.023970115929841995, -0.37252435088157654, -0.1334151327610016, -0.25548601150512695, 0.5537114143371582, -0.3019846975803375, -0.2025514543056488, 0.14256779849529266, -0.14845316112041473, 0.2093803435564041, 0.45155903697013855, -0.00010756453411886469, 0.2240583747625351, 0.4101126194000244, -0.23110130429267883, -0.3290292024612427, -0.3769565224647522, -0.22826707363128662, -0.04417284578084946, 0.004734463058412075, -0.38196003437042236, -0.12255309522151947, -0.07823918014764786, 0.2704274356365204, 0.025410674512386322, 0.30770784616470337, 0.27651527523994446, 0.25899896025657654, 0.12140601873397827, 0.18434782326221466, -0.016901491209864616, -0.11218354851007462, 0.49309074878692627, 0.03727637231349945, 0.2362050563097, 0.07920164614915848, -0.06527967751026154, 0.16254371404647827, 0.2614590525627136, 0.035887494683265686, -0.012443963438272476, 0.23219162225723267, 0.11052732914686203, -0.006824158132076263, -0.21559393405914307, 0.12655022740364075, -0.182091623544693, 0.3849572241306305, -0.16167455911636353, -0.18176323175430298, -0.01814570277929306, -0.03954287990927696, -0.40643003582954407, 0.1617153435945511, 0.08369044214487076, -0.118756502866745, 0.0931641012430191, -0.18624654412269592, -0.2279617339372635, -0.3234364688396454, 0.3092057704925537, 0.06795604526996613, 0.08778923004865646, -0.20539332926273346, 0.07692408561706543, 0.11506018042564392, 0.04930603504180908, 0.09709066897630692, -0.3621649742126465, 0.044210854917764664, 0.12650564312934875, 0.2593221366405487, 0.1461469531059265, -0.019517123699188232, 0.15175965428352356, 0.09592851251363754, 0.10282131284475327, -0.29831603169441223, -0.2555592656135559, -0.25267431139945984, 0.07934631407260895, 0.0006243642419576645, 0.22888146340847015, -0.055761851370334625, 0.45835697650909424, 0.22302663326263428, 0.39754581451416016, -0.024601725861430168, -0.24438348412513733, -0.30115532875061035, -0.20050166547298431, 0.049957726150751114, 0.20114412903785706, 0.326768159866333, 0.0799773782491684, -0.01354173757135868, -0.4608425199985504, 0.12705892324447632, -0.06864415854215622, 0.2023272067308426, 0.28796255588531494, 0.22720816731452942, -0.02183528244495392, 0.1704132854938507, 0.2375158667564392, 0.1398354172706604, 0.09844878315925598, -0.255423367023468, 0.28424856066703796, -0.2523292601108551, -0.005160806700587273, -0.04391784965991974, -0.2546502947807312, 0.30564504861831665, -0.2868964970111847, 0.052693262696266174, 0.058540187776088715, 0.15533658862113953, -0.21698719263076782, -0.05098211020231247, 0.26103585958480835, -0.09167299419641495, -0.018739739432930946, 0.2963450849056244, -0.04541997238993645, 0.06669851392507553, 0.09966868162155151, -0.44844144582748413, -0.4122200608253479, -0.20433732867240906, 0.22125470638275146, -0.09461710602045059, 0.0263814739882946, -0.5048222541809082, -0.24247677624225616, -0.04984346777200699, -0.22074078023433685, 0.028593748807907104, 0.005032455548644066, -0.21649478375911713, -0.1788632571697235, 0.2506091594696045, 0.5779447555541992, -0.14425954222679138, 0.07152648270130157, -0.26899152994155884, -0.23021861910820007, 0.18472149968147278, 0.09179594367742538, -0.20626354217529297, 0.4836919903755188, -0.6135780811309814, -0.037743303924798965, 0.5469892621040344, -0.6308553814888, -0.26421353220939636, -0.019476642832159996, -0.016056586056947708, -0.02837318368256092, 0.14419429004192352, 0.049167223274707794, 0.06856698542833328, -0.07879511266946793, -0.10481569170951843, 0.2463378757238388, -0.020746948197484016, 0.039303019642829895, 0.011602688580751419, -0.2071625143289566, -0.15440057218074799, 0.2210119217634201, 0.09984173625707626, 0.21987569332122803, 0.2281196415424347, -0.03288298100233078, 0.062134549021720886, -0.29887643456459045, 0.17807282507419586, 0.11518837511539459, 0.3906305134296417, 0.12293396890163422, -0.1748877912759781, -0.030899139121174812, -0.37983083724975586, 0.2845122218132019, 0.10844171047210693, -0.06060291826725006, -0.46449583768844604, 0.142732635140419, -0.16168558597564697, -0.2617485225200653, -0.41191667318344116, -0.24864807724952698, 0.1931684911251068, 0.23112671077251434, 0.10355229675769806, 0.011139292269945145, -0.16044621169567108, 0.28489449620246887, -0.18410441279411316, 0.1677674651145935, -0.15608926117420197, 0.45571616291999817, -0.38713985681533813, -0.17869381606578827, 0.12040014564990997, -0.015108518302440643, 0.07757701724767685, -0.2544839680194855, -0.05919801443815231, 0.2827380299568176, 0.13521966338157654, 0.14312973618507385, 0.306769460439682, -0.07055990397930145, 0.14599545300006866, -0.3780551254749298, 0.12583138048648834, -0.1305873543024063, 0.33849194645881653, 0.07661966234445572, -0.020167268812656403, 0.18093478679656982, -0.15699906647205353, 0.08842120319604874, 0.09803815186023712, -0.10842535644769669, 0.03857893496751785, -0.03286302462220192, 0.18180501461029053, -0.19265970587730408, 0.06556491553783417, 0.2532232403755188, 0.20334267616271973, -0.03505796194076538, 0.011664979159832, -0.2331337034702301, 0.34953612089157104, 0.061736833304166794, 0.12157127261161804, 0.18106135725975037, -0.14120841026306152, 0.1114950105547905, 0.005513971671462059, 0.10758990049362183, 0.6850781440734863, 0.2946435511112213, -0.23488157987594604, 0.0732882022857666, 0.2798925042152405, -0.007790572941303253, 0.2949090301990509, 0.022982802242040634, 0.31905198097229004, 0.1136220395565033, 0.023056501522660255, -0.005512171424925327, -0.23307183384895325, -0.5380801558494568, -0.10605349391698837, 0.35992443561553955, -0.1671123057603836, 0.06577246636152267, -0.22938835620880127, -0.42902871966362, 0.2275754064321518, 0.14856407046318054, -0.011752437800168991, -0.13069701194763184, -0.13751265406608582, 0.04224235564470291, 0.17259766161441803, 0.004895212594419718, -0.31007614731788635, 0.0854402631521225, 0.07500418275594711, -0.44916465878486633, -0.5388176441192627, -0.03493880480527878, -0.04896431416273117, 0.13545919954776764, 0.3568563759326935, -0.09235801547765732, 0.3888430595397949, -0.29045921564102173, 0.170111745595932, -0.5194391012191772, -0.16853006184101105, 0.08414287865161896, 0.0003068894147872925, 0.19681134819984436, 0.33854880928993225, 0.32823607325553894, 0.20738957822322845, -0.14623187482357025, 0.42599865794181824, 0.07747919857501984, -0.326722115278244, -0.012651590630412102, -0.1966930627822876, -0.1362506002187729, -0.16420775651931763, -0.12846365571022034, -0.35732296109199524, -0.4335588216781616, -0.06843078136444092, 0.29350975155830383, 0.08248821645975113, 0.44169074296951294, 0.20308484137058258, 0.2307364046573639, -0.14040601253509521, 0.02989770472049713, -0.03977055847644806, -0.4825538098812103, 0.2662038207054138, -0.14714284241199493, -0.20142433047294617, 0.11320920288562775, -0.09715785086154938, 0.20873138308525085, 0.049699004739522934, -0.34096336364746094, -0.6610175371170044, 0.09806051105260849, 0.2304312288761139, -0.026113033294677734, 0.21054764091968536, 0.28395670652389526, 0.046252403408288956, -0.06697916239500046, -0.07259001582860947, -0.07612001895904541, -0.0332983061671257, -0.008268609642982483, 0.27623245120048523, 0.08663436025381088, 0.48563703894615173, 0.001083657145500183, 0.7047637104988098, 0.1602012664079666, -0.005663096904754639, 0.5541394948959351, -0.3467073440551758, 0.5346217155456543, -0.3130926191806793, -0.2578810453414917, 0.17359289526939392, 0.3412328362464905, -0.01595587655901909, -0.05152332782745361, 0.040161632001399994, 0.1763598620891571, -0.13919135928153992, -0.25969043374061584, -0.6329510807991028, 0.06568989157676697, 0.005821391940116882, 0.10524143278598785, 0.20907577872276306, -0.07722899317741394, -0.41149207949638367, -0.06928560137748718, -0.09871423989534378, 0.1179208755493164, 0.6839739084243774, 0.18140177428722382, 0.19671186804771423, -0.06265062838792801, -0.2422274947166443, -0.018139928579330444, 0.36359816789627075, 0.03168744593858719, -0.09198729693889618, -0.0862802192568779, 0.2153061330318451, 0.027875825762748718, -0.1463741809129715, 0.7403360605239868, -0.09525144100189209, -0.010674674063920975, 0.0185244120657444, -0.26638734340667725, -0.11050672084093094, -0.01144523173570633, -0.08961181342601776, 0.05086817964911461, -0.12382487952709198, 0.667944073677063, -0.15672296285629272, -0.28274598717689514, 0.24038507044315338, 0.05858217552304268, -0.29292023181915283, -0.08560662716627121, -0.3727974593639374, -0.39439526200294495, -0.4308893382549286, -0.18924295902252197, -0.05428311973810196, 0.14078494906425476, 0.35311660170555115, 0.034440699964761734, -0.06194475293159485, -0.23695868253707886, -0.31219762563705444, 0.006282290443778038, 0.3898470401763916, -0.16568905115127563, -0.06670484691858292, 0.337018221616745, 0.11812105774879456, 0.5655360221862793, 0.49727198481559753, -0.1634872406721115, -0.055383890867233276, 0.04755493998527527, -0.03892556577920914, 0.15716107189655304, 0.07872827351093292, -0.2703436017036438, -0.4112435579299927, -0.16047488152980804, 0.1485656201839447, -0.14653851091861725, 0.007889552041888237, 0.3987913131713867, -0.07838621735572815, -0.029113754630088806, -0.14483995735645294, 0.22775417566299438, 0.05467931553721428, 0.09832651913166046, 0.3387629985809326, 0.32427501678466797, -0.3816370964050293, 0.09073210507631302, -0.14067742228507996, 0.5482306480407715, -0.08148916065692902, 0.2978999614715576, 0.29990822076797485, -0.06765919923782349, 0.1985689401626587, 0.16608373820781708, 0.07852737605571747, -0.13393652439117432, -0.16649644076824188, -0.06401529163122177, -0.26756778359413147, 0.3405865728855133, 0.050383370369672775, -0.16866742074489594, 0.4461618959903717, -0.0890485942363739, -0.09101349115371704, -0.1511068344116211, 0.11674937605857849, -0.1589270532131195, 0.04342307895421982, -0.10214466601610184, 0.23127040266990662, 0.05473300814628601, 0.3664603531360626, -0.22044235467910767, 0.0490674190223217, -0.1903863102197647, -0.24958884716033936, -0.028194479644298553, 0.06680259853601456, -0.47855550050735474, 0.14251095056533813, 0.014971014112234116, -0.10721544921398163, 0.019641853868961334, 0.3782065510749817, -0.046462468802928925, -0.04265826568007469, -0.1432626098394394, 0.21272315084934235, -0.14498037099838257, 0.05183985084295273, -0.24012240767478943, 0.042011991143226624, 0.2063642144203186, -0.20219439268112183, 0.05887306481599808, 0.03816628456115723, -0.15743331611156464, -0.23962458968162537, -0.027689985930919647, 0.016482576727867126, 0.095319002866745, -0.00854751281440258, -0.3456416130065918, -0.17251178622245789, -0.1062447726726532, -0.12887173891067505, 0.1877816617488861, 0.04615854099392891, -0.00931310560554266, -0.007291354238986969, -0.15327227115631104, -0.14366507530212402, 0.09416384994983673, 0.05476554110646248, -0.08714215457439423, 0.18934449553489685, 0.4673839211463928, -0.11427199840545654, -0.03981709107756615, -0.3154887557029724, 0.4180922210216522, 0.05197968706488609, -0.07614382356405258, 0.1887275129556656, 0.34399935603141785, 0.22825108468532562, 0.0126238027587533, 0.03767874836921692, 0.11074453592300415, -0.30680394172668457, -0.08602241426706314, -0.491786390542984, -0.40570276975631714, 0.2501187324523926, -0.21596325933933258, 0.20420637726783752, -0.16452819108963013, 0.13078081607818604, 0.2762947678565979, -0.2896706163883209, -0.3796900510787964, 0.28266698122024536, -0.3409358561038971, 0.127092182636261, 0.30698785185813904, 0.04170360416173935, 0.4476424753665924, 0.07533226907253265, 0.26235002279281616, -0.11074981093406677, -0.26338621973991394, -0.249680757522583, -0.0660935640335083, 0.0987200066447258, 0.12120765447616577, -0.13493096828460693, 0.1189349889755249, -0.16182918846607208, -0.13428063690662384, 0.09235989302396774, -0.006042515859007835, -0.03041486255824566, -0.08367571234703064, 0.046324122697114944, 0.10990692675113678, -0.2554641664028168, -0.05380750074982643, 0.054938122630119324, -0.2516523003578186, 0.3395839035511017, 0.19299651682376862, 0.09729643166065216, 0.00292973592877388, -0.09338098764419556, -0.06502065807580948, -0.06767839938402176, 0.04869377613067627, 0.166627436876297, 0.4039123058319092, 0.029883703216910362, 0.06324677169322968, -0.11219195276498795, 0.29067090153694153, 0.006243307143449783, -0.3475567698478699, 0.3203180432319641, 0.08517378568649292, 0.2337813824415207, -0.2893438935279846, 0.015505677089095116, -0.020891066640615463, -0.1136554628610611, 0.042889561504125595, 0.0965161994099617, -0.3188045918941498, 0.1486106961965561, -0.16965116560459137, -0.054747454822063446, 0.548186719417572, -0.19034266471862793, 0.0021555102430284023, 0.14677491784095764, -0.0801941379904747, 0.09333741664886475, 0.34475135803222656, 0.2645242512226105, 0.09786882996559143, 0.6918182373046875, -0.20542123913764954, 0.30071091651916504, -0.2856634855270386, 0.03324192762374878, 0.14071489870548248, -0.29812711477279663, -0.07668571174144745, 0.021527394652366638, 0.04348715394735336, -0.06801921874284744, -0.4112866222858429, 0.08840778470039368, -0.0647997334599495, 0.10550246387720108, 0.016831623390316963, 0.24838419258594513, -0.0025915876030921936, 0.040180232375860214, -0.4531843960285187, -0.18718776106834412, -0.0388968363404274, -0.025838226079940796, 0.08734134584665298, -0.2519074082374573, -0.029787197709083557, 0.25103163719177246, -0.1083664745092392, 0.04343421757221222, 0.01686996780335903, 0.3450642228126526, -0.03008686751127243, -0.19237622618675232, 0.44677063822746277, 0.24441230297088623, 0.06706354022026062, 0.11315599083900452, 0.49395135045051575, 0.518007755279541, 0.19981072843074799, 0.11439555883407593, -0.1387731283903122, -0.020216800272464752, -0.29064425826072693, -0.17365218698978424, 0.21807961165905, 0.08240833133459091, 0.1494479924440384, -0.03139416500926018, 0.3158109486103058, -0.22661782801151276, 0.014661785215139389, -0.06798116862773895, -0.15813632309436798, -0.07539303600788116, 0.4123806655406952, -0.2585471272468567, -0.19275131821632385, -0.07527975738048553, 0.16769902408123016, -0.5033454298973083, 0.10076949745416641, 0.35759884119033813, -0.04873179271817207, 0.10622747987508774, 0.16198192536830902, 0.08192846179008484, -0.03095441684126854, 0.2062026411294937, 0.3546428680419922, -0.005245186388492584, -0.2769242823123932, -0.17778480052947998, -0.5345104932785034, -0.07298963516950607, 0.03162626177072525, -0.26796969771385193, -0.2681926488876343, -0.03288903832435608, -0.08795865625143051, -0.023028988391160965, 0.41808009147644043, 0.20506583154201508, 0.22978676855564117, -0.07757295668125153, -0.3130343556404114, -0.1979028880596161, 0.13034071028232574, 0.0677444264292717, -0.13519035279750824, -0.5085449814796448, -0.009007986634969711, -0.26839694380760193, 0.19038516283035278, 0.0027913209050893784, 0.08663004636764526, -0.1306414157152176, -0.11623573303222656, 0.3766637146472931, -0.01079312153160572, 0.2907446622848511, -0.1698557436466217, -0.004718134179711342, -0.04076577350497246, -0.1496237963438034, -0.02866099774837494, -0.06061489135026932, 0.27543723583221436, 0.28793826699256897, -0.3851911127567291, -0.26791077852249146, -0.4055072069168091, 0.05863402038812637, -0.01701200008392334, -0.10471194237470627, -0.30489620566368103, 0.21066181361675262, -0.13391351699829102, 0.023561814799904823, 0.1579907387495041, 0.22699689865112305, -0.06723437458276749, -0.2553292512893677, -0.5728759765625, -0.08330254256725311, 0.44978711009025574, -0.30615752935409546, -0.2604260742664337, 0.1681201010942459, 0.015658728778362274, -0.11841753870248795, 0.16025565564632416, -0.12972119450569153, 0.2885088622570038, 0.40429726243019104, 0.06959737092256546, -0.32873016595840454, 0.3322093188762665, 0.18165037035942078, 0.2269631177186966, 0.17114989459514618, 0.030704330652952194, -0.11174833029508591, -0.18774275481700897, -0.02708289586007595, 0.02991451323032379 ]
https://github.com/huggingface/datasets/issues/3872
HTTP error 504 Server Error: Gateway Time-out
yes but is there any way you could try pushing with `git` command line directly instead of `push_to_hub`?
I am trying to push a large dataset(450000+) records with the help of `push_to_hub()` While pushing, it gives some error like this. ``` Traceback (most recent call last): File "data_split_speech.py", line 159, in <module> data_new_2.push_to_hub("user-name/dataset-name",private=True) File "/opt/conda/lib/python3.8/site-packages/datasets/dataset_dict.py", line 951, in push_to_hub repo_id, split, uploaded_size, dataset_nbytes = self[split]._push_parquet_shards_to_hub( File "/opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 3556, in _push_parquet_shards_to_hub api.upload_file( File "/opt/conda/lib/python3.8/site-packages/huggingface_hub/hf_api.py", line 1017, in upload_file raise err File "/opt/conda/lib/python3.8/site-packages/huggingface_hub/hf_api.py", line 1008, in upload_file r.raise_for_status() File "/opt/conda/lib/python3.8/site-packages/requests/models.py", line 953, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 504 Server Error: Gateway Time-out for url: https://huggingface.co/api/datasets/user-name/dataset-name/upload/main/data/train2-00041-of-00064.parquet ``` Can anyone help me to resolve this issue.
18
HTTP error 504 Server Error: Gateway Time-out I am trying to push a large dataset(450000+) records with the help of `push_to_hub()` While pushing, it gives some error like this. ``` Traceback (most recent call last): File "data_split_speech.py", line 159, in <module> data_new_2.push_to_hub("user-name/dataset-name",private=True) File "/opt/conda/lib/python3.8/site-packages/datasets/dataset_dict.py", line 951, in push_to_hub repo_id, split, uploaded_size, dataset_nbytes = self[split]._push_parquet_shards_to_hub( File "/opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 3556, in _push_parquet_shards_to_hub api.upload_file( File "/opt/conda/lib/python3.8/site-packages/huggingface_hub/hf_api.py", line 1017, in upload_file raise err File "/opt/conda/lib/python3.8/site-packages/huggingface_hub/hf_api.py", line 1008, in upload_file r.raise_for_status() File "/opt/conda/lib/python3.8/site-packages/requests/models.py", line 953, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 504 Server Error: Gateway Time-out for url: https://huggingface.co/api/datasets/user-name/dataset-name/upload/main/data/train2-00041-of-00064.parquet ``` Can anyone help me to resolve this issue. yes but is there any way you could try pushing with `git` command line directly instead of `push_to_hub`?
[ -0.45946937799453735, -0.34232935309410095, -0.0652928352355957, 0.13714537024497986, 0.14353975653648376, -0.05058145523071289, -0.019497331231832504, 0.41117945313453674, -0.3377407491207123, -0.24126912653446198, 0.047866903245449066, 0.10722585022449493, 0.1604776531457901, 0.4615723192691803, 0.06296291947364807, 0.08459443598985672, 0.0672827959060669, -0.049748823046684265, -0.061974480748176575, 0.04634437710046768, -0.11129532009363174, -0.09798984229564667, 0.12060113251209259, 0.07004639506340027, -0.371224045753479, -0.16218158602714539, 0.11788603663444519, 0.322282075881958, -0.17828436195850372, -0.237681046128273, -0.048496343195438385, -0.07899968326091766, 0.05569544434547424, 0.5038566589355469, -0.00012303600669838488, 0.05380130559206009, 0.1469680815935135, -0.001339813694357872, -0.4750664234161377, -0.08299984037876129, -0.45393142104148865, -0.3866649568080902, -0.07082827389240265, -0.11892737448215485, 0.028419576585292816, 0.2812231183052063, -0.13596990704536438, 0.10214096307754517, 0.2842968702316284, 0.4920179545879364, 0.0959690511226654, -0.04344142973423004, 0.4811980724334717, -0.04236556589603424, 0.19246864318847656, -0.20924441516399384, -0.1680804044008255, 0.36870095133781433, 0.22022157907485962, 0.24285385012626648, 0.24563515186309814, -0.1315360963344574, 0.09699246287345886, -0.006039544939994812, 0.06353212147951126, -0.27219608426094055, 0.22402086853981018, -0.24379754066467285, -0.00027228519320487976, 0.07244400680065155, 0.11638288199901581, -0.21220320463180542, -0.5422156453132629, -0.24868029356002808, -0.3864799737930298, -0.4973600208759308, 0.13391703367233276, 0.2904358506202698, -0.18511682748794556, 0.15254263579845428, -0.19827121496200562, -0.45291632413864136, -0.028705913573503494, 0.04089430719614029, 0.00867462158203125, 0.20501600205898285, 0.02137034386396408, 0.14823269844055176, 0.050441890954971313, -0.11047209799289703, -0.11880365759134293, 0.0881052315235138, -0.14203500747680664, -0.27982884645462036, -0.5597026944160461, -0.21929824352264404, 0.007290191948413849, 0.07602657377719879, 0.22458478808403015, 0.38497066497802734, -0.0560886487364769, 0.04951874911785126, -0.029931392520666122, 0.05572430416941643, 0.46839261054992676, 0.12546983361244202, -0.01462305337190628, 0.01832187920808792, 0.1798042356967926, 0.22469785809516907, -0.018564438447356224, -0.035736314952373505, 0.1515417993068695, -0.36740151047706604, 0.08321109414100647, 0.017220329493284225, 0.3115278482437134, -0.18389950692653656, -0.10528058558702469, -0.06986433267593384, 0.057311855256557465, 0.15035293996334076, 0.03157699480652809, 0.17211993038654327, -0.01751108281314373, 0.2705173194408417, -0.29915207624435425, 0.11851047724485397, -0.26566556096076965, -0.30549517273902893, -0.1560640037059784, 0.25716760754585266, -0.039530348032712936, 0.17325708270072937, 0.008198052644729614, -0.43599000573158264, -0.14958404004573822, 0.03567508980631828, 0.14855366945266724, -0.1666671335697174, -0.09158319234848022, -0.19413086771965027, -0.09178749471902847, 0.207120880484581, 0.17785537242889404, 0.25684747099876404, 0.3273008167743683, -0.03308712691068649, -0.12176513671875, -0.18818813562393188, -0.5727049112319946, -0.5500558614730835, 0.18210694193840027, 0.05939704552292824, 0.03376232832670212, -0.01742422953248024, -0.8260694742202759, -0.1005646139383316, 0.050026047974824905, -0.06404728442430496, -0.0612550750374794, 0.14356765151023865, 0.07560974359512329, -0.050359826534986496, 0.06383632868528366, 0.24523422122001648, -0.27591753005981445, 0.3127143979072571, 0.20425033569335938, 0.4145079255104065, 0.12173019349575043, 0.3683691918849945, -0.03849076107144356, 0.15568138659000397, 0.0053818561136722565, -0.09438666701316833, 0.25853872299194336, -0.6565603017807007, -0.1934649795293808, 0.13583698868751526, -0.2571943402290344, -0.4090893566608429, -0.3261193335056305, -0.23453566431999207, 0.42985570430755615, -0.062092218548059464, 0.38486382365226746, 0.18260030448436737, 0.04655060917139053, 0.28943100571632385, -0.3203171491622925, -0.31139910221099854, -0.25344419479370117, 0.12566129863262177, -0.003306794911623001, 0.02633429318666458, 0.21862462162971497, -0.08640168607234955, -0.057454340159893036, 0.1254657655954361, 0.2504197061061859, 0.2883915901184082, 0.3329433500766754, -0.03937067836523056, 0.0821882113814354, -0.08813953399658203, -0.0801146849989891, 0.07449232786893845, 0.06729072332382202, 0.1455754041671753, -0.2961823344230652, 0.20837944746017456, -0.3494788110256195, -0.05541612207889557, -0.03515606001019478, 0.3873840868473053, -0.008745778352022171, -0.40853288769721985, 0.26137447357177734, 0.11716100573539734, 0.08197847008705139, 0.3342573940753937, -0.24265429377555847, 0.33910539746284485, -0.1309415102005005, 0.39914533495903015, 0.054526664316654205, -0.3109303116798401, 0.14183558523654938, -0.058757148683071136, 0.41842687129974365, -0.2182048261165619, -0.1748761534690857, 0.14447134733200073, -0.0015290514566004276, -0.01548808068037033, 0.3226314187049866, 0.2531340718269348, 0.18368390202522278, 0.028628621250391006, -0.15662738680839539, -0.16583023965358734, 0.03911584988236427, 0.06329961866140366, -0.05607186257839203, 0.12727989256381989, 0.029124725610017776, 0.42843392491340637, 0.18727929890155792, 0.26538437604904175, 0.20864319801330566, 0.061912018805742264, 0.36752504110336304, 0.2661958336830139, 0.04572655260562897, 0.14473384618759155, 0.06360560655593872, -0.40085017681121826, 0.3576928377151489, 0.1485636830329895, 0.24963346123695374, 0.1606438308954239, 0.14352640509605408, 0.11427267640829086, 0.08408010005950928, -0.13535885512828827, 0.2016148418188095, 0.055989693850278854, -0.18807168304920197, 0.04114716127514839, -0.10178492963314056, -0.07292960584163666, 0.14125752449035645, -0.009714845567941666, 0.14028118550777435, 0.1210366040468216, 0.11215773969888687, -0.12582752108573914, 0.14063405990600586, -0.16661499440670013, -0.051253147423267365, -0.21591420471668243, 0.32561132311820984, 0.6453016996383667, -0.2706490755081177, -0.06615304946899414, -0.09943679720163345, -0.030289631336927414, 0.38137808442115784, -0.19882923364639282, -0.4362562596797943, -0.48225128650665283, -0.07277128845453262, 0.12169253826141357, -0.23950834572315216, 0.12758293747901917, 0.2182476669549942, 0.08553057909011841, 0.34133273363113403, -0.13941901922225952, 0.10966987907886505, -0.16802069544792175, 0.05772244185209274, -0.012853286229074001, 0.2426445633172989, 0.012725716456770897, 0.16889378428459167, 0.036663949489593506, -0.1379190981388092, -0.4979196786880493, 0.11324010044336319, 0.19365692138671875, -0.09893718361854553, 0.1575779914855957, -0.22790521383285522, 0.39944958686828613, -0.038652628660202026, 0.053909316658973694, 0.2807822525501251, -0.0570957213640213, 0.022663036361336708, -0.0019253324717283249, -0.20505815744400024, 0.06908587366342545, 0.16638332605361938, 0.027334190905094147, 0.018560808151960373, -0.5421042442321777, 0.30447322130203247, 0.24877844750881195, 0.22797450423240662, -0.060866907238960266, 0.04923146218061447, 0.06594815850257874, 0.28711023926734924, -0.1858741044998169, -0.039179474115371704, -0.4880354404449463, 0.16218671202659607, -0.10539308190345764, -0.03319235518574715, 0.06479616463184357, 0.3226000666618347, 0.16315369307994843, 0.2033630758523941, -0.28390318155288696, -0.49119094014167786, -0.3252578675746918, 0.29686278104782104, -0.17927488684654236, -0.14016780257225037, 0.2536398470401764, -0.4748046398162842, -0.10701562464237213, 0.2263575792312622, 0.0760556161403656, 0.21984907984733582, 0.5247101187705994, -0.0732712671160698, 0.025831546634435654, 0.41225722432136536, 0.05571964755654335, 0.4103047847747803, 0.10283222794532776, 0.16948938369750977, 0.5648220181465149, -0.07230506837368011, 0.22926507890224457, -0.14960336685180664, -0.03237282484769821, -0.1146644651889801, -0.017630651593208313, 0.13738058507442474, 0.052838198840618134, 0.14743337035179138, -0.09826258569955826, -0.32005518674850464, -0.6196730136871338, -0.07764704525470734, -0.3406772315502167, -0.2069557011127472, 0.018025487661361694, 0.05160441994667053, 0.047080788761377335, -0.09620966762304306, -0.22946634888648987, -0.1280096471309662, 0.0762471854686737, -0.0545387864112854, -0.08940523117780685, -0.13650429248809814, -0.14126557111740112, -0.1553718000650406, -0.5547284483909607, 0.26921960711479187, -0.008765201084315777, 0.31876641511917114, -0.06220690533518791, 0.1735355257987976, 0.0958019495010376, -0.32152315974235535, 0.70637446641922, -0.49640047550201416, 0.31656646728515625, -0.1399887353181839, 0.11105719208717346, -0.22988535463809967, -0.049195729196071625, 0.06714029610157013, 0.504047691822052, 0.3228378891944885, 0.478802889585495, -0.5162235498428345, -0.17501583695411682, -0.07512598484754562, -0.1289159655570984, -0.12818565964698792, 0.05946144834160805, 0.022870559245347977, -0.30029329657554626, -0.4215441346168518, 0.1887882649898529, 0.30639928579330444, 0.27705007791519165, 0.051891572773456573, -0.21939674019813538, 0.3188138008117676, 0.22128063440322876, 0.022909291088581085, -0.2275487631559372, 0.13356032967567444, -0.18790195882320404, 0.2021283060312271, -0.11435937881469727, 0.43232664465904236, 0.17177581787109375, 0.5983043909072876, 0.26874294877052307, -0.41396021842956543, 0.1665768027305603, 0.24190527200698853, 0.10713676363229752, 0.45707255601882935, 0.3681817352771759, 0.5053190588951111, -0.12787555158138275, 0.6252366900444031, -0.15887314081192017, 0.08648765832185745, 0.2968780994415283, -0.06018101051449776, -0.4794919788837433, -0.08325239270925522, 0.3276689052581787, -0.08020797371864319, 0.26364845037460327, 0.3314414620399475, 0.5279405117034912, -0.12355063855648041, 0.02029585652053356, -0.03810267895460129, 1.1130720376968384, -0.05834299325942993, 0.057848960161209106, 0.004118284210562706, -0.041413191705942154, 0.43777963519096375, -0.46828460693359375, -0.14252375066280365, -0.20943361520767212, 0.17795975506305695, 0.08944308757781982, 0.13457496464252472, -0.23455554246902466, 0.08992482721805573, -0.20194151997566223, 0.3505270481109619, -0.2769031226634979, 0.2809252142906189, -0.1588520109653473, 0.3916323781013489, -0.4058908522129059, -0.1583193689584732, -0.1284574568271637, 0.05844639241695404, -0.0909404307603836, -0.33112531900405884, -0.07027829438447952, -0.09508685767650604, -0.12759317457675934, -0.10741428285837173, -0.5708928108215332, -0.06360141187906265, 0.0004356931895017624, 0.3380931615829468, -0.49172845482826233, -0.31548476219177246, 0.15629000961780548, -0.469104528427124, 0.31279683113098145, 0.09380722790956497, -0.406491219997406, 0.185285747051239, -0.4057430028915405, -0.09712322056293488, -0.16112245619297028, 0.10939324647188187, 0.16259244084358215, -0.06977728009223938, -0.4163149297237396, 0.1334856003522873, -0.009146242402493954, -0.3881593942642212, -0.01297670602798462, 0.12792494893074036, -0.10253565013408661, -0.2636632025241852, 0.10665293037891388, -0.009581409394741058, -0.3657341003417969, -0.24381129443645477, 0.017956987023353577, 0.09033959358930588, -0.1796811819076538, 0.27397534251213074, 0.29600706696510315, -0.21198351681232452, -0.012394987046718597, 0.19918440282344818, -0.05378133803606033, 0.09907910227775574, 0.3860095739364624, 0.24233324825763702, -0.2541516423225403, -0.08415205776691437, -0.055310510098934174, -0.07555748522281647, -0.44454437494277954, 0.44137394428253174, -0.08484774082899094, 0.30872970819473267, 0.10158589482307434, -0.040556203573942184, 0.015792692080140114, 0.24836131930351257, -0.09110695123672485, -0.17366370558738708, 0.18622110784053802, 0.14171621203422546, -0.19986087083816528, -0.029753636568784714, -0.1229003444314003, -0.05661069229245186, 0.11934293806552887, 0.1861167699098587, -0.19307343661785126, 0.3509412407875061, -0.40070754289627075, 0.21056470274925232, -0.17430604994297028, -0.3538609743118286, 0.08956988900899887, -0.22837083041667938, -0.09389117360115051, 0.1252787709236145, -0.16215471923351288, -0.10225851833820343, -0.01958627998828888, 0.19642183184623718, 0.08394359052181244, -0.31246301531791687, -0.08750981092453003, -0.1530398577451706, -0.1308470070362091, 0.026860393583774567, 0.03564520925283432, -0.06777714192867279, 0.033439427614212036, -0.5789976119995117, 0.735837459564209, -0.036126673221588135, -0.2518903613090515, 0.46087417006492615, 0.47143611311912537, 0.34618425369262695, -0.03891684114933014, 0.2725036144256592, 0.09162319451570511, 0.007640153169631958, -0.3144834637641907, 0.16414126753807068, 0.32774364948272705, -0.08724584430456161, 0.40201127529144287, -0.39778077602386475, -0.11976028978824615, 0.05470927804708481, 0.3303336501121521, 0.1851736307144165, 0.01463395170867443, -0.054609864950180054, 0.3089103698730469, 0.11318027228116989, 0.11833047866821289, -0.16803112626075745, 0.4714847207069397, -0.25352367758750916, 0.1602526754140854, 0.05240185558795929, 0.2258315086364746, -0.05284343659877777, -0.1727031022310257, 0.048779092729091644, 0.6960737705230713, 0.0667148232460022, -0.1037386953830719, -0.008855056017637253, 0.16031742095947266, -0.0028877370059490204, 0.05525650829076767, 0.0855942815542221, 0.1587422639131546, 0.23988066613674164, -0.25977224111557007, -0.024758221581578255, 0.08107562363147736, -0.13242967426776886, 0.028058752417564392, -0.3234880268573761, -0.15349283814430237, 0.13369612395763397, -0.1826828122138977, 0.05872320383787155, -0.079067662358284, 0.4739972651004791, -0.19756579399108887, -0.010672222822904587, -0.29284828901290894, 0.21520912647247314, -0.016177747398614883, 0.29582053422927856, -0.08536708354949951, -0.1715695708990097, -0.19981294870376587, 0.19817259907722473, -0.041285064071416855, -0.15364934504032135, -0.11640417575836182, 0.2075319141149521, 0.28753793239593506, 0.09358703345060349, 0.11738790571689606, 0.23848751187324524, 0.3955611288547516, -0.19843843579292297, 0.06836872547864914, 0.393574595451355, -0.3622013330459595, -0.28741514682769775, 0.13396762311458588, 0.7025138735771179, 0.09778386354446411, -0.19948655366897583, 0.3402726650238037, 0.4385058283805847, 0.06811141222715378, 0.198465496301651, -0.07022514194250107, 0.18414686620235443, 0.06102930009365082, 0.06331145763397217, 0.05044092983007431, -0.08722161501646042, -0.2890259325504303, -0.029525060206651688, 0.04319200664758682, 0.09467026591300964, 0.1488715410232544, 0.033875394612550735, -0.3392103910446167, -0.3985617160797119, -0.08911008387804031, -0.09855903685092926, 0.29413264989852905, 0.1255173236131668, -0.4562631845474243, -0.07394535094499588, -0.1321079581975937, 0.015542592853307724, -0.39080744981765747, 0.8156510591506958, 0.3819979429244995, 0.2064223289489746, -0.120991550385952, -0.28013700246810913, -0.0010845810174942017, 0.1505642533302307, -0.6568578481674194, 0.05935581773519516, 0.23196521401405334, 0.22952228784561157, 0.031528111547231674, 0.09682206809520721, 0.1793154627084732, 0.25484010577201843, -0.3665525019168854, 0.3323841392993927, -0.33126288652420044, -0.016865834593772888, 0.2843334674835205, 0.09772796928882599, -0.04965570569038391, -0.229859858751297, 0.4295729994773865, 0.16874785721302032, -0.1393808275461197, 0.06287264823913574, 0.012419499456882477, 0.06476341187953949, -0.512139081954956, -0.08496591448783875, -0.020621513947844505, 0.2823020815849304, 0.14715582132339478, -0.0703326016664505, -0.11074495315551758, -0.27064910531044006, -0.08740908652544022, -0.17986658215522766, -0.08394920825958252, 0.10544425249099731, -0.016478363424539566, -0.3133309483528137, -0.12740425765514374, 0.4828973114490509, -0.26106274127960205, 0.13042420148849487, 0.38617369532585144, -0.3698098957538605, 0.11532857269048691, 0.15640327334403992, 0.04693400114774704, -0.07164770364761353, 0.11316104233264923, -0.061060480773448944, -0.4114775061607361, -0.27688878774642944, 0.32442229986190796, -0.03438761830329895, -0.35804077982902527, -0.1551431119441986, 0.41708311438560486, 0.32959872484207153, -0.11759043484926224, 0.1458362340927124, -0.18253880739212036, 0.14268794655799866, 0.18677034974098206, -0.33917301893234253, 0.46154704689979553, -0.14379887282848358, -0.14749246835708618, 0.07809066772460938, 0.026296604424715042, -0.06741087883710861, -0.3380276560783386, 0.01247192919254303, -0.09327356517314911 ]
https://github.com/huggingface/datasets/issues/3872
HTTP error 504 Server Error: Gateway Time-out
Okay. I didnt saved the dataset to my local machine. So, I processed the dataset and pushed it directly to the hub. I think I should try saving those dataset to my local machine by `save_to_disk` and then push it with git command line
I am trying to push a large dataset(450000+) records with the help of `push_to_hub()` While pushing, it gives some error like this. ``` Traceback (most recent call last): File "data_split_speech.py", line 159, in <module> data_new_2.push_to_hub("user-name/dataset-name",private=True) File "/opt/conda/lib/python3.8/site-packages/datasets/dataset_dict.py", line 951, in push_to_hub repo_id, split, uploaded_size, dataset_nbytes = self[split]._push_parquet_shards_to_hub( File "/opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 3556, in _push_parquet_shards_to_hub api.upload_file( File "/opt/conda/lib/python3.8/site-packages/huggingface_hub/hf_api.py", line 1017, in upload_file raise err File "/opt/conda/lib/python3.8/site-packages/huggingface_hub/hf_api.py", line 1008, in upload_file r.raise_for_status() File "/opt/conda/lib/python3.8/site-packages/requests/models.py", line 953, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 504 Server Error: Gateway Time-out for url: https://huggingface.co/api/datasets/user-name/dataset-name/upload/main/data/train2-00041-of-00064.parquet ``` Can anyone help me to resolve this issue.
44
HTTP error 504 Server Error: Gateway Time-out I am trying to push a large dataset(450000+) records with the help of `push_to_hub()` While pushing, it gives some error like this. ``` Traceback (most recent call last): File "data_split_speech.py", line 159, in <module> data_new_2.push_to_hub("user-name/dataset-name",private=True) File "/opt/conda/lib/python3.8/site-packages/datasets/dataset_dict.py", line 951, in push_to_hub repo_id, split, uploaded_size, dataset_nbytes = self[split]._push_parquet_shards_to_hub( File "/opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 3556, in _push_parquet_shards_to_hub api.upload_file( File "/opt/conda/lib/python3.8/site-packages/huggingface_hub/hf_api.py", line 1017, in upload_file raise err File "/opt/conda/lib/python3.8/site-packages/huggingface_hub/hf_api.py", line 1008, in upload_file r.raise_for_status() File "/opt/conda/lib/python3.8/site-packages/requests/models.py", line 953, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 504 Server Error: Gateway Time-out for url: https://huggingface.co/api/datasets/user-name/dataset-name/upload/main/data/train2-00041-of-00064.parquet ``` Can anyone help me to resolve this issue. Okay. I didnt saved the dataset to my local machine. So, I processed the dataset and pushed it directly to the hub. I think I should try saving those dataset to my local machine by `save_to_disk` and then push it with git command line
[ -0.36487138271331787, -0.4170038104057312, -0.048948608338832855, 0.2769414782524109, 0.09378377348184586, 0.04587586969137192, -0.0634879320859909, 0.3118470311164856, -0.36931154131889343, -0.25901490449905396, -0.0208439864218235, 0.0318310521543026, 0.14565333724021912, 0.4787338972091675, 0.05488477274775505, 0.034859441220760345, 0.017029225826263428, -0.08980955183506012, -0.05037403106689453, 0.008910909295082092, -0.22988125681877136, -0.09864424914121628, 0.07681970298290253, 0.1580984741449356, -0.5101858377456665, -0.24599787592887878, 0.0203541312366724, 0.325907438993454, -0.18816189467906952, -0.29258349537849426, -0.09579608589410782, -0.11462560296058655, 0.1363118588924408, 0.3829468786716461, -0.00012433537631295621, 0.01318357139825821, 0.21271339058876038, -0.004268603399395943, -0.418923020362854, -0.04381304979324341, -0.5294637084007263, -0.33267197012901306, -0.09337811917066574, -0.06182850897312164, 0.13187026977539062, 0.03348472714424133, -0.22806034982204437, 0.011381126940250397, 0.38923388719558716, 0.46244189143180847, 0.0777100995182991, 0.0016874484717845917, 0.4364634156227112, 0.0016634694766253233, 0.09356057643890381, -0.25466376543045044, -0.08342133462429047, 0.38324928283691406, 0.15620210766792297, 0.14217233657836914, 0.20640234649181366, -0.08497761189937592, 0.06515916436910629, -0.14516083896160126, 0.08958303183317184, -0.2994663119316101, 0.11653294414281845, -0.34617432951927185, -0.03160284459590912, 0.08120037615299225, 0.24518609046936035, -0.11487393826246262, -0.49182286858558655, -0.25437718629837036, -0.3212636113166809, -0.4765680730342865, 0.2058272361755371, 0.3347841501235962, -0.027030594646930695, 0.11538596451282501, -0.14308102428913116, -0.3523392677307129, -0.07300124317407608, 0.09857040643692017, 0.04978279024362564, 0.09947296977043152, -0.025629423558712006, 0.22476136684417725, 0.003147602081298828, -0.06401973962783813, 0.007011824287474155, 0.033222444355487823, -0.048531416803598404, -0.2880666255950928, -0.4885905981063843, -0.11837497353553772, -0.012136459350585938, 0.24357309937477112, 0.098642997443676, 0.3553999066352844, 0.04568787291646004, 0.08489622175693512, -0.02313857525587082, 0.13980460166931152, 0.46016642451286316, 0.06287015974521637, 0.08282432705163956, -0.05135006457567215, 0.1644275039434433, 0.2562798261642456, -0.007030036300420761, -0.057543426752090454, 0.20314858853816986, -0.2479487806558609, 0.1182100921869278, 0.02045864798128605, 0.3487369418144226, -0.23461347818374634, -0.087419293820858, 0.12797687947750092, 0.0522405207157135, 0.12274619936943054, 0.16020239889621735, 0.23884445428848267, -0.14976951479911804, 0.2678532600402832, -0.32069331407546997, 0.16004861891269684, -0.2621195614337921, -0.3257356286048889, -0.21194373071193695, 0.30664974451065063, -0.010622996836900711, 0.23589958250522614, 0.03176094964146614, -0.4011102318763733, -0.11886738240718842, -0.035222139209508896, 0.0968228131532669, -0.20132191479206085, -0.000608367845416069, -0.2938673794269562, -0.07430312782526016, 0.19932419061660767, 0.1594529002904892, 0.323872447013855, 0.3642529249191284, -0.015758737921714783, -0.09817367792129517, -0.2610733211040497, -0.4943365454673767, -0.5729162693023682, 0.16702738404273987, 0.08100352436304092, 0.004616856575012207, 0.00510980561375618, -0.6377890110015869, -0.1372288167476654, 0.12451496720314026, -0.07138495147228241, -0.019761472940444946, 0.08579981327056885, -0.016509894281625748, -0.11638439446687698, 0.011094508692622185, 0.31820499897003174, -0.3984929919242859, 0.3429359495639801, 0.2239501029253006, 0.31834354996681213, 0.09062954038381577, 0.3288416564464569, -0.03950982168316841, 0.14310982823371887, -0.010426227934658527, 0.03907383978366852, 0.15878155827522278, -0.5656516551971436, -0.22745566070079803, 0.05352666229009628, -0.2535858154296875, -0.4784100353717804, -0.3279523551464081, -0.2018517702817917, 0.47890275716781616, -0.03441748768091202, 0.40175580978393555, 0.12067857384681702, 0.04918525367975235, 0.19428019225597382, -0.3975716829299927, -0.23059147596359253, -0.22060526907444, 0.14020590484142303, 0.014340311288833618, -0.05247632414102554, 0.20364081859588623, -0.06550094485282898, -0.040069736540317535, 0.16870029270648956, 0.34093478322029114, 0.4688008427619934, 0.35856425762176514, 0.029249582439661026, 0.1658184975385666, -0.078874871134758, -0.05554164946079254, 0.05752355605363846, -0.023031096905469894, -0.008167475461959839, -0.22666139900684357, 0.15898706018924713, -0.44477957487106323, -0.017732521519064903, -0.1459084004163742, 0.3133584260940552, -0.007044019177556038, -0.44915273785591125, 0.20957277715206146, 0.20595060288906097, 0.06658980250358582, 0.4156354069709778, -0.33047249913215637, 0.28505703806877136, -0.28207626938819885, 0.4939344525337219, -0.03591950237751007, -0.29514819383621216, 0.1844308078289032, -0.03575597703456879, 0.4606662392616272, -0.1416730135679245, -0.18584564328193665, 0.12694352865219116, 0.03292585536837578, -0.02350614219903946, 0.22403070330619812, 0.2105034589767456, 0.21369503438472748, -0.13255836069583893, -0.003910338506102562, -0.2529221177101135, 0.1083742082118988, 0.04779169708490372, -0.06717894226312637, 0.15310227870941162, -0.09174026548862457, 0.40115100145339966, 0.14388488233089447, 0.2613968849182129, 0.10040634870529175, 0.11471906304359436, 0.3153218626976013, 0.2103765308856964, 0.03114674799144268, 0.06745818257331848, 0.17178428173065186, -0.30760303139686584, 0.3594420254230499, 0.17195802927017212, 0.19190047681331635, 0.10081188380718231, 0.12976503372192383, 0.070420041680336, 0.01757880672812462, -0.19354712963104248, 0.26810476183891296, 0.1256088763475418, -0.04360906779766083, -0.005457973573356867, -0.07524889707565308, -0.003022206947207451, 0.11631804704666138, -0.01417815126478672, 0.094157874584198, 0.14749577641487122, 0.1574336439371109, -0.038514964282512665, 0.06304552406072617, -0.10521861165761948, -0.20761647820472717, -0.19950337707996368, 0.33778440952301025, 0.5914257764816284, -0.3241797089576721, -0.055476799607276917, -0.15805114805698395, -0.04240631312131882, 0.3093796372413635, -0.1118757352232933, -0.4721503257751465, -0.5671291947364807, -0.09674735367298126, 0.2416713535785675, -0.19719453155994415, 0.10899875313043594, 0.15920308232307434, 0.033843010663986206, 0.3543461561203003, -0.06198339909315109, 0.06553208082914352, -0.14837144315242767, 0.010321181267499924, -0.044173769652843475, 0.14489364624023438, 0.13567698001861572, 0.14558614790439606, 0.04584212601184845, -0.0973372533917427, -0.45436224341392517, 0.11346323043107986, 0.16235971450805664, -0.10681992769241333, 0.13464191555976868, -0.2567931115627289, 0.40939879417419434, -0.16879135370254517, -0.0010918844491243362, 0.35801073908805847, 0.015172230079770088, -0.009442349895834923, 0.029073264449834824, -0.11964355409145355, 0.1147516593337059, 0.3363604247570038, -0.023151785135269165, -0.08001282066106796, -0.47829359769821167, 0.3493707776069641, 0.08091776072978973, 0.11851450800895691, -0.06134719401597977, 0.03854208439588547, 0.15927596390247345, 0.12278447300195694, -0.15969432890415192, -0.12411639839410782, -0.4775104224681854, 0.26830804347991943, -0.12112104147672653, -0.10191603004932404, 0.09556744992733002, 0.20332391560077667, 0.23459865152835846, 0.16509050130844116, -0.3034331798553467, -0.5878689289093018, -0.2999351918697357, 0.20317859947681427, -0.1840868592262268, -0.17699354887008667, 0.36681196093559265, -0.4720643162727356, -0.05260784178972244, 0.26387107372283936, 0.000591963529586792, 0.15958788990974426, 0.5713604688644409, 0.08502271771430969, -0.11529739946126938, 0.432758629322052, -0.008650686591863632, 0.4062272310256958, 0.18747752904891968, 0.24461668729782104, 0.6442235708236694, 0.06246809661388397, 0.2524350583553314, -0.09070522338151932, -0.10858412086963654, -0.03181372955441475, -0.07816947996616364, 0.05906711518764496, -0.07431082427501678, 0.10918395966291428, -0.04507209360599518, -0.2861787676811218, -0.7629003524780273, -0.2342287003993988, -0.2524282932281494, -0.21751877665519714, 0.09764444082975388, 0.09962056577205658, 0.11624076962471008, -0.06316711008548737, -0.09887349605560303, -0.13036003708839417, 0.01129760593175888, 0.04273441061377525, -0.07762403041124344, -0.12065567821264267, -0.21826337277889252, -0.2147068977355957, -0.5001020431518555, 0.2485119253396988, 0.004760656505823135, 0.40683045983314514, -0.07008102536201477, 0.1719031035900116, 0.12207719683647156, -0.28762996196746826, 0.6791173219680786, -0.5423069000244141, 0.19926124811172485, -0.11875063180923462, 0.092068150639534, -0.3064020276069641, -0.01974218152463436, 0.1367025226354599, 0.34348809719085693, 0.1436910331249237, 0.3836483061313629, -0.3782739043235779, -0.13829034566879272, -0.04617949575185776, -0.054223619401454926, -0.18389104306697845, 0.02429225668311119, -0.013045407831668854, -0.3506692051887512, -0.46150636672973633, 0.20631888508796692, 0.1971234381198883, 0.2328435331583023, 0.04998133331537247, -0.2491840124130249, 0.29387035965919495, 0.19717636704444885, 0.031576551496982574, -0.18266870081424713, 0.17605078220367432, -0.1850261688232422, 0.2542937695980072, -0.02335040271282196, 0.4520508646965027, 0.17726841568946838, 0.5035805702209473, 0.22224514186382294, -0.3620162904262543, 0.1474209427833557, 0.21260344982147217, 0.18011420965194702, 0.42470458149909973, 0.24948225915431976, 0.3846021890640259, -0.07195588946342468, 0.5694484710693359, -0.23322348296642303, 0.1755400151014328, 0.2788999676704407, -0.08365785330533981, -0.4973253607749939, -0.05870853364467621, 0.43209320306777954, -0.06079236418008804, 0.1765240877866745, 0.4184476435184479, 0.5355461835861206, -0.0591198205947876, 0.16054676473140717, 0.04338619112968445, 1.1320991516113281, -0.07166038453578949, 0.13506746292114258, 0.02469760552048683, -0.05203276872634888, 0.4068549573421478, -0.4646477699279785, -0.14586709439754486, -0.23791873455047607, 0.04976404458284378, 0.027379600331187248, 0.1407879739999771, -0.1654818058013916, 0.17193567752838135, -0.14194242656230927, 0.3067271411418915, -0.2201145440340042, 0.23959645628929138, -0.21076993644237518, 0.3776814937591553, -0.4999106526374817, -0.19724689424037933, -0.18819035589694977, 0.06863901764154434, -0.12502676248550415, -0.20478959381580353, -0.07825755327939987, 0.02610810659825802, -0.08829048275947571, -0.1274736076593399, -0.4388582110404968, -0.06399932503700256, -0.02304530330002308, 0.4366118907928467, -0.5056642889976501, -0.31090933084487915, 0.1589888483285904, -0.32790976762771606, 0.2858402132987976, 0.05299975350499153, -0.3756570816040039, 0.1765347719192505, -0.3763727843761444, -0.24964211881160736, -0.13317662477493286, -0.017992578446865082, 0.20885919034481049, -0.09307735413312912, -0.41913676261901855, 0.17230281233787537, 0.0118422145023942, -0.15716485679149628, -0.07889878749847412, 0.19267432391643524, -0.14152832329273224, -0.3187435567378998, 0.07732947170734406, -0.07974730432033539, -0.31270158290863037, -0.28489580750465393, 0.02228638343513012, 0.20380109548568726, -0.13120217621326447, 0.3634570240974426, 0.21977084875106812, -0.1533922553062439, -0.08837272226810455, 0.3674136996269226, -0.046201400458812714, -0.017049700021743774, 0.4849696159362793, 0.18828873336315155, -0.2630431652069092, -0.1222347542643547, 0.08805758506059647, -0.0825304463505745, -0.3945292830467224, 0.33757978677749634, -0.13432084023952484, 0.31180083751678467, 0.007051373366266489, -0.12002657353878021, 0.12833532691001892, 0.1609349250793457, 0.0392792709171772, -0.28920793533325195, -0.03700295835733414, 0.21826502680778503, -0.14438077807426453, -0.05037664249539375, -0.08501912653446198, -0.028717707842588425, 0.20953652262687683, 0.24639789760112762, -0.18589997291564941, 0.3384508192539215, -0.3975350260734558, 0.15424977242946625, -0.08058279752731323, -0.3721838891506195, 0.14642515778541565, -0.27159541845321655, -0.09031994640827179, 0.2460426539182663, -0.16841576993465424, -0.08253194391727448, -0.1282043606042862, 0.1941876858472824, 0.11411415785551071, -0.29118701815605164, -0.11772997677326202, -0.26220637559890747, -0.1183808296918869, 0.07211101800203323, -0.12040732800960541, 0.05176985263824463, 0.12697146832942963, -0.5278908014297485, 0.6597733497619629, -0.09822198003530502, -0.28950291872024536, 0.42242103815078735, 0.38628754019737244, 0.29466545581817627, 0.0180432740598917, 0.2590264081954956, 0.11920611560344696, -0.01122448593378067, -0.261335164308548, 0.0993649959564209, 0.23183076083660126, -0.2470206320285797, 0.47550168633461, -0.46557724475860596, -0.13085129857063293, 0.005782207939773798, 0.32805073261260986, 0.3156191408634186, 0.0400727316737175, -0.01892637088894844, 0.2739763855934143, 0.10379335284233093, 0.11953386664390564, -0.12985722720623016, 0.5332520604133606, -0.23145271837711334, 0.0282774455845356, 0.030091576278209686, 0.19871148467063904, 0.08912652730941772, -0.2650694251060486, 0.1011112779378891, 0.5827306509017944, 0.004959188401699066, -0.05879660323262215, -0.11007519066333771, 0.16566498577594757, 0.027653280645608902, 0.16875867545604706, 0.19149412214756012, 0.22900140285491943, 0.2693858742713928, -0.170204758644104, 0.010517857037484646, -0.0888916626572609, 0.07999207824468613, -0.021320223808288574, -0.4713144898414612, -0.2125353068113327, 0.11716917902231216, -0.287404328584671, 0.03897073119878769, -0.14691239595413208, 0.583920419216156, -0.2046370953321457, 0.01515253446996212, -0.2900865972042084, 0.28273898363113403, -0.0927070751786232, 0.23336398601531982, -0.06744851917028427, -0.19216948747634888, -0.1740908920764923, 0.18238858878612518, -0.005305107682943344, -0.24253155291080475, -0.055022165179252625, 0.1867518424987793, 0.21721448004245758, -0.003633422777056694, 0.08806895464658737, 0.3314101994037628, 0.3492203950881958, -0.22024907171726227, -0.001031113788485527, 0.4264222979545593, -0.36867624521255493, -0.3769826889038086, 0.006246794015169144, 0.7024785280227661, 0.04439845681190491, -0.2278699427843094, 0.4213356375694275, 0.4478728771209717, 0.0666886568069458, 0.20128722488880157, -0.07557790726423264, 0.2711395025253296, 0.11835941672325134, 0.27321097254753113, 0.05909232050180435, -0.07544833421707153, -0.320690780878067, -0.06933367252349854, 0.12974362075328827, 0.1221936047077179, 0.10841568559408188, 0.006248731166124344, -0.24498090147972107, -0.4302976429462433, -0.1528031826019287, -0.1822018027305603, 0.31917908787727356, 0.3218485414981842, -0.3438793122768402, -0.013656947761774063, -0.11544252187013626, 0.0013242382556200027, -0.42315560579299927, 0.7757124304771423, 0.4718876779079437, 0.21040919423103333, -0.2753584384918213, -0.2904483675956726, -0.1047411561012268, 0.11841259151697159, -0.6764800548553467, 0.14847277104854584, 0.22527572512626648, 0.2572672963142395, -0.023077242076396942, 0.026722704991698265, 0.14532168209552765, 0.4765988290309906, -0.37766972184181213, 0.32068854570388794, -0.2906687259674072, -0.10520361363887787, 0.17776936292648315, 0.11212000250816345, -0.04608060419559479, -0.13179711997509003, 0.42662137746810913, 0.36499080061912537, -0.17836055159568787, -0.01574557274580002, -0.012350287288427353, -0.05647531896829605, -0.6031292676925659, -0.01064310222864151, -0.015164157375693321, 0.320156991481781, 0.16946756839752197, -0.08159387111663818, -0.025296341627836227, -0.26674240827560425, -0.026560746133327484, -0.08219114691019058, -0.0019726119935512543, 0.2522338032722473, 0.019369428977370262, -0.21282412111759186, -0.1818014234304428, 0.5314317345619202, -0.23187419772148132, -0.0007121931994333863, 0.3363857567310333, -0.24987494945526123, 0.20052450895309448, 0.22938035428524017, 0.20324714481830597, -0.048865266144275665, 0.12274950742721558, 0.056848570704460144, -0.38095957040786743, -0.4019532799720764, 0.3589881658554077, 0.03202839195728302, -0.25250425934791565, -0.10255677253007889, 0.41987791657447815, 0.3418571650981903, -0.10714418441057205, 0.03312916308641434, -0.20299024879932404, 0.21004417538642883, 0.0490867979824543, -0.31778332591056824, 0.37067151069641113, -0.06831470131874084, -0.17234358191490173, -0.018253019079566002, -0.0036821141839027405, -0.03468511253595352, -0.29877331852912903, 0.1694396436214447, -0.09417189657688141 ]
https://github.com/huggingface/datasets/issues/3872
HTTP error 504 Server Error: Gateway Time-out
`push_to_hub` is the preferred way of uploading a dataset to the Hub, which can then be reloaded with `load_dataset`. Feel free to try again and see if the server is working as expected now. Maybe we can add a retry mechanism in the meantime to workaround 504 errors. Regarding `save_to_disk`, this must only be used for local serialization (because it's uncompressed and compatible with memory-mapping). If you upload a dataset saved with `save_to_disk` to the Hub, then to reload it you will have to download/clone the repository locally by yourself and use `load_from_disk`.
I am trying to push a large dataset(450000+) records with the help of `push_to_hub()` While pushing, it gives some error like this. ``` Traceback (most recent call last): File "data_split_speech.py", line 159, in <module> data_new_2.push_to_hub("user-name/dataset-name",private=True) File "/opt/conda/lib/python3.8/site-packages/datasets/dataset_dict.py", line 951, in push_to_hub repo_id, split, uploaded_size, dataset_nbytes = self[split]._push_parquet_shards_to_hub( File "/opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 3556, in _push_parquet_shards_to_hub api.upload_file( File "/opt/conda/lib/python3.8/site-packages/huggingface_hub/hf_api.py", line 1017, in upload_file raise err File "/opt/conda/lib/python3.8/site-packages/huggingface_hub/hf_api.py", line 1008, in upload_file r.raise_for_status() File "/opt/conda/lib/python3.8/site-packages/requests/models.py", line 953, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 504 Server Error: Gateway Time-out for url: https://huggingface.co/api/datasets/user-name/dataset-name/upload/main/data/train2-00041-of-00064.parquet ``` Can anyone help me to resolve this issue.
93
HTTP error 504 Server Error: Gateway Time-out I am trying to push a large dataset(450000+) records with the help of `push_to_hub()` While pushing, it gives some error like this. ``` Traceback (most recent call last): File "data_split_speech.py", line 159, in <module> data_new_2.push_to_hub("user-name/dataset-name",private=True) File "/opt/conda/lib/python3.8/site-packages/datasets/dataset_dict.py", line 951, in push_to_hub repo_id, split, uploaded_size, dataset_nbytes = self[split]._push_parquet_shards_to_hub( File "/opt/conda/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 3556, in _push_parquet_shards_to_hub api.upload_file( File "/opt/conda/lib/python3.8/site-packages/huggingface_hub/hf_api.py", line 1017, in upload_file raise err File "/opt/conda/lib/python3.8/site-packages/huggingface_hub/hf_api.py", line 1008, in upload_file r.raise_for_status() File "/opt/conda/lib/python3.8/site-packages/requests/models.py", line 953, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 504 Server Error: Gateway Time-out for url: https://huggingface.co/api/datasets/user-name/dataset-name/upload/main/data/train2-00041-of-00064.parquet ``` Can anyone help me to resolve this issue. `push_to_hub` is the preferred way of uploading a dataset to the Hub, which can then be reloaded with `load_dataset`. Feel free to try again and see if the server is working as expected now. Maybe we can add a retry mechanism in the meantime to workaround 504 errors. Regarding `save_to_disk`, this must only be used for local serialization (because it's uncompressed and compatible with memory-mapping). If you upload a dataset saved with `save_to_disk` to the Hub, then to reload it you will have to download/clone the repository locally by yourself and use `load_from_disk`.
[ -0.3772861659526825, -0.4499163031578064, -0.05284123122692108, 0.19174320995807648, 0.07237014174461365, -0.020948246121406555, -0.04381437227129936, 0.3406633138656616, -0.3123439848423004, -0.2927144169807434, 0.0463637039065361, 0.10223044455051422, 0.21579429507255554, 0.4923061728477478, 0.00031833164393901825, 0.017253350466489792, 0.05218498408794403, -0.08276019990444183, -0.06959085166454315, 0.009886696934700012, -0.2126472443342209, -0.10077754408121109, 0.057398900389671326, 0.10260813683271408, -0.5041134357452393, -0.1804790496826172, 0.05888588726520538, 0.3174712359905243, -0.2073100209236145, -0.32622793316841125, -0.10014954954385757, -0.06354375183582306, 0.10901322215795517, 0.39264580607414246, -0.00012302787217777222, -0.021659288555383682, 0.2338331937789917, 0.05409896373748779, -0.4372367560863495, -0.031765908002853394, -0.5582008957862854, -0.3422931432723999, -0.05219423770904541, 0.02053731679916382, 0.15285763144493103, 0.13268275558948517, -0.1972375214099884, 0.044432513415813446, 0.36632728576660156, 0.4274436831474304, 0.08358671516180038, -0.002781907096505165, 0.45372259616851807, -0.05069390684366226, 0.04798809811472893, -0.3276718854904175, -0.07770901173353195, 0.3646617531776428, 0.2345076948404312, 0.11479167640209198, 0.15702131390571594, -0.11491362750530243, 0.08526911586523056, -0.0804206132888794, 0.15315324068069458, -0.3478311598300934, 0.13322336971759796, -0.3080153465270996, -0.05130954086780548, 0.11364145576953888, 0.26386213302612305, -0.11948076635599136, -0.45481395721435547, -0.25807985663414, -0.35230323672294617, -0.3883288502693176, 0.24547380208969116, 0.24846960604190826, -0.05826849117875099, 0.08557763695716858, -0.09457535296678543, -0.356979101896286, -0.008824236690998077, 0.08810631930828094, 0.015368416905403137, 0.14520858228206635, 0.03768489509820938, 0.2416587769985199, 0.03244569152593613, -0.1029636412858963, -0.02027587592601776, 0.05455157160758972, -0.08403466641902924, -0.2581089735031128, -0.5741623044013977, -0.12498850375413895, 0.0490085706114769, 0.19091612100601196, 0.11763931065797806, 0.42423444986343384, 0.05833524465560913, 0.05494716763496399, -0.008702820166945457, 0.19034484028816223, 0.5122081637382507, 0.03979884088039398, 0.09203661978244781, -0.09356797486543655, 0.12213189154863358, 0.31585997343063354, 0.03884157910943031, -0.04402204602956772, 0.17511217296123505, -0.30492928624153137, 0.044184815138578415, -0.018813583999872208, 0.34816545248031616, -0.15539373457431793, -0.11645425856113434, 0.0018173176795244217, 0.0745818167924881, 0.1376429796218872, 0.193318709731102, 0.19956359267234802, -0.13013847172260284, 0.28266218304634094, -0.2764202356338501, 0.14641839265823364, -0.26914411783218384, -0.3223249018192291, -0.21574942767620087, 0.3450806736946106, -0.10250186175107956, 0.18689483404159546, 0.056450631469488144, -0.4378083050251007, -0.20043940842151642, 0.04104725271463394, 0.12109258770942688, -0.20151525735855103, -0.047759998589754105, -0.20853637158870697, -0.14178910851478577, 0.13272008299827576, 0.1441735178232193, 0.32170405983924866, 0.35930904746055603, 0.012973017990589142, -0.11338108777999878, -0.2661963403224945, -0.5282147526741028, -0.5475773215293884, 0.17967592179775238, 0.09344005584716797, 0.04551973193883896, -0.009517956525087357, -0.6094776391983032, -0.10435435175895691, 0.046051811426877975, -0.11171075701713562, -0.022150389850139618, 0.11412445455789566, 0.006195727735757828, -0.06858984380960464, -0.00533437542617321, 0.33284056186676025, -0.36892884969711304, 0.33426886796951294, 0.22728294134140015, 0.33004412055015564, 0.04894145205616951, 0.2875007688999176, -0.007069915998727083, 0.042744580656290054, 0.0023078415542840958, 0.018726132810115814, 0.12547923624515533, -0.5967649817466736, -0.19635465741157532, 0.11066488921642303, -0.29667574167251587, -0.4900282025337219, -0.30880311131477356, -0.1809915453195572, 0.3949471116065979, -0.02366073802113533, 0.4457646906375885, 0.18969890475273132, 0.06628970056772232, 0.17140811681747437, -0.33830851316452026, -0.17546841502189636, -0.20176853239536285, 0.15651163458824158, -0.04940832778811455, -0.038682468235492706, 0.174699068069458, -0.031673356890678406, -0.04458591341972351, 0.22244742512702942, 0.28857699036598206, 0.3772686719894409, 0.3414935767650604, 0.01190616562962532, 0.1740315705537796, -0.0245587769895792, -0.015271425247192383, 0.08070450276136398, 0.00015373528003692627, 0.09710420668125153, -0.26363909244537354, 0.18446141481399536, -0.4588819444179535, 0.036818332970142365, -0.12170566618442535, 0.3685608506202698, 0.007316961884498596, -0.47133442759513855, 0.19210490584373474, 0.15437720715999603, 0.07440972328186035, 0.44013795256614685, -0.33415931463241577, 0.3136613368988037, -0.2858884632587433, 0.47192099690437317, 0.049625642597675323, -0.2516772150993347, 0.17863696813583374, 0.0064207762479782104, 0.459809273481369, -0.10518673807382584, -0.13839972019195557, 0.16957080364227295, 0.0664447769522667, -0.03929479420185089, 0.2962169945240021, 0.24121475219726562, 0.19622470438480377, -0.040632013231515884, -0.004324695095419884, -0.22644652426242828, 0.08944389224052429, 0.004266321659088135, -0.027693763375282288, 0.13331012427806854, -0.10590960085391998, 0.44621509313583374, 0.1466100513935089, 0.30947551131248474, 0.09792394936084747, 0.11291715502738953, 0.2934960424900055, 0.24065959453582764, 0.049925751984119415, 0.06564361602067947, 0.1304173320531845, -0.3172135651111603, 0.4150717258453369, 0.14089643955230713, 0.10547111928462982, 0.09378379583358765, 0.10739648342132568, 0.01688312366604805, 0.03009924665093422, -0.21425646543502808, 0.27290523052215576, 0.13896827399730682, -0.13999061286449432, 0.0015076784184202552, -0.0354149229824543, -0.030488843098282814, 0.08727946877479553, 0.00867646187543869, 0.07069955766201019, 0.06617468595504761, 0.1159539669752121, -0.06523613631725311, 0.03786538541316986, -0.14514288306236267, -0.20765629410743713, -0.29655885696411133, 0.34710535407066345, 0.5851224660873413, -0.2722339332103729, -0.07605775445699692, -0.09344255924224854, 0.002523135393857956, 0.352065771818161, -0.1693076491355896, -0.49857306480407715, -0.624808132648468, -0.11381635069847107, 0.22369714081287384, -0.17288023233413696, 0.11255516111850739, 0.14299891889095306, 0.015826061367988586, 0.3831654489040375, -0.11172018200159073, 0.05307944864034653, -0.1270463764667511, 0.04458747059106827, -0.031324245035648346, 0.1610206514596939, 0.10350847244262695, 0.11078231036663055, 0.052758850157260895, -0.07370901107788086, -0.4350570738315582, 0.07976848632097244, 0.17259006202220917, -0.11700387299060822, 0.08523810654878616, -0.20096325874328613, 0.3914005756378174, -0.11977321654558182, 0.02574767917394638, 0.3599488437175751, 0.0036054421216249466, 0.036753445863723755, 0.09607219696044922, -0.14129561185836792, 0.07801032066345215, 0.3443881571292877, -0.0033611953258514404, 0.024537701159715652, -0.4813533127307892, 0.3068944215774536, 0.05198605731129646, 0.08852016180753708, -0.009856541641056538, 0.11577929556369781, 0.11137186735868454, 0.1694014072418213, -0.1469598263502121, -0.1351214051246643, -0.4308348596096039, 0.25109297037124634, -0.0657343864440918, -0.05818437412381172, 0.10558667778968811, 0.23214088380336761, 0.22213336825370789, 0.19531725347042084, -0.2368517369031906, -0.6319935321807861, -0.3062056005001068, 0.22231051325798035, -0.2175772786140442, -0.19884413480758667, 0.31457632780075073, -0.46539461612701416, -0.09264391660690308, 0.23377728462219238, 0.02269492670893669, 0.14063936471939087, 0.5354373455047607, 0.05122138187289238, -0.06583435088396072, 0.4104044437408447, 0.06999818980693817, 0.3227865993976593, 0.16471682488918304, 0.2501215636730194, 0.6182131767272949, 0.06413142383098602, 0.259307324886322, -0.05028947442770004, -0.03724314644932747, -0.043900810182094574, -0.0754939615726471, 0.0896012932062149, -0.09888851642608643, 0.10534478724002838, -0.06071668863296509, -0.3346976041793823, -0.6989377737045288, -0.17171204090118408, -0.2218550443649292, -0.2112390100955963, 0.026204882189631462, 0.10274983942508698, 0.09623314440250397, -0.0718274861574173, -0.1176457554101944, -0.1446136236190796, 0.04521297290921211, -0.02009321004152298, -0.08289053291082382, -0.17769573628902435, -0.18018081784248352, -0.1849023848772049, -0.5194342136383057, 0.24800750613212585, -0.020398680120706558, 0.42125508189201355, -0.05482323467731476, 0.1310511827468872, 0.1483285278081894, -0.26130491495132446, 0.731248140335083, -0.5161099433898926, 0.2746117413043976, -0.12433403730392456, 0.11687299609184265, -0.30547988414764404, -0.0004267767071723938, 0.10114291310310364, 0.4197654724121094, 0.12860384583473206, 0.34703686833381653, -0.4188014566898346, -0.15362010896205902, -0.08757343888282776, -0.16299447417259216, -0.06525592505931854, -0.021759647876024246, 0.03922088071703911, -0.3634941875934601, -0.43328240513801575, 0.18696445226669312, 0.22433975338935852, 0.3152448832988739, 0.07527877390384674, -0.26802659034729004, 0.33998778462409973, 0.23740935325622559, 0.07988791167736053, -0.16685107350349426, 0.13905537128448486, -0.19172047078609467, 0.23250576853752136, -0.06749169528484344, 0.4107230603694916, 0.14519581198692322, 0.5120456218719482, 0.24252711236476898, -0.3981739282608032, 0.133701890707016, 0.24742907285690308, 0.16084790229797363, 0.43461543321609497, 0.354693740606308, 0.45730990171432495, -0.08874265849590302, 0.538705050945282, -0.23560473322868347, 0.15002165734767914, 0.3406187891960144, -0.04471492022275925, -0.49562740325927734, -0.094076007604599, 0.42834460735321045, -0.07120722532272339, 0.16653351485729218, 0.4588760733604431, 0.5559260845184326, -0.029115764424204826, 0.07158630341291428, -0.013720348477363586, 1.141095519065857, -0.08986963331699371, 0.07960003614425659, 0.06076502054929733, -0.04908481240272522, 0.34974026679992676, -0.4840095043182373, -0.1093859076499939, -0.25568482279777527, 0.07920683175325394, 0.047723785042762756, 0.16697074472904205, -0.21077442169189453, 0.16646112501621246, -0.14164422452449799, 0.23694877326488495, -0.26612669229507446, 0.2666558027267456, -0.22467927634716034, 0.34415069222450256, -0.5798574686050415, -0.1894836574792862, -0.20134681463241577, 0.08351557701826096, -0.10982951521873474, -0.28230223059654236, -0.05609901621937752, 0.00011829659342765808, -0.051412031054496765, -0.15211135149002075, -0.43263906240463257, -0.05459927022457123, 0.005544362124055624, 0.3984854817390442, -0.44491827487945557, -0.28508156538009644, 0.19677695631980896, -0.3261277377605438, 0.22510240972042084, -0.004796039313077927, -0.3410496413707733, 0.24257123470306396, -0.37658870220184326, -0.25563499331474304, -0.1348436027765274, 0.037343256175518036, 0.19776293635368347, -0.05123404413461685, -0.43409988284111023, 0.18998536467552185, 0.03189307451248169, -0.18999917805194855, -0.03198318928480148, 0.2556152939796448, -0.1560695618391037, -0.35343506932258606, 0.09169715642929077, -0.02137570083141327, -0.2832477390766144, -0.2555401623249054, 0.037537992000579834, 0.1713809370994568, -0.18696242570877075, 0.2569410502910614, 0.27603679895401, -0.19420993328094482, -0.01494443416595459, 0.35239243507385254, -0.06359783560037613, -0.02912267856299877, 0.4457249641418457, 0.2616581618785858, -0.28129321336746216, -0.09209463000297546, -0.019322142004966736, -0.040869370102882385, -0.3535614013671875, 0.34198421239852905, -0.0976322814822197, 0.31587082147598267, 0.020364809781312943, -0.12849703431129456, 0.08463800698518753, 0.19075319170951843, 0.04458163306117058, -0.2679668962955475, 0.11851855367422104, 0.22098062932491302, -0.23541437089443207, -0.07551632821559906, -0.13796448707580566, -0.07844755053520203, 0.20476891100406647, 0.24073293805122375, -0.19950559735298157, 0.35689517855644226, -0.3408786356449127, 0.14775875210762024, -0.09990108758211136, -0.3749535083770752, 0.13990767300128937, -0.2528015971183777, -0.07710517197847366, 0.1878044754266739, -0.2232019156217575, -0.08786189556121826, -0.071395143866539, 0.1737957000732422, 0.15287846326828003, -0.3083548843860626, -0.11570914834737778, -0.21182458102703094, -0.1686437577009201, 0.0615139976143837, -0.0535670705139637, 0.024101637303829193, 0.02618509531021118, -0.5437908172607422, 0.6901690363883972, -0.03378964960575104, -0.2262355238199234, 0.43883880972862244, 0.4387873411178589, 0.2871044874191284, 0.03621295467019081, 0.22666333615779877, 0.09435293078422546, 0.010257512331008911, -0.2475431263446808, 0.18525636196136475, 0.2896842658519745, -0.3038804531097412, 0.44923973083496094, -0.45701301097869873, -0.09274937957525253, -0.03166618198156357, 0.38280540704727173, 0.3346947133541107, 0.00819909293204546, -0.03273679316043854, 0.1973811388015747, 0.11586111038923264, 0.13524873554706573, -0.1415357142686844, 0.49359288811683655, -0.2298126071691513, 0.08981311321258545, -0.04815822094678879, 0.24547848105430603, 0.0431833416223526, -0.23979158699512482, 0.09627655893564224, 0.5723031163215637, -0.014114376157522202, -0.06577858328819275, -0.08481758832931519, 0.1314653903245926, 0.008704446256160736, 0.21429592370986938, 0.2010815441608429, 0.1505361646413803, 0.28614309430122375, -0.17699667811393738, 0.01837318018078804, -0.08895812183618546, 0.011895846575498581, -0.06747251003980637, -0.45782917737960815, -0.19070442020893097, 0.17898020148277283, -0.22890180349349976, 0.021021101623773575, -0.13548274338245392, 0.6381881237030029, -0.2579314708709717, 0.08905884623527527, -0.30949488282203674, 0.17357826232910156, -0.0804859846830368, 0.21702292561531067, -0.06974862515926361, -0.20117536187171936, -0.27829110622406006, 0.1671055257320404, 0.03283710032701492, -0.20295582711696625, -0.03905327618122101, 0.11508439481258392, 0.27121227979660034, -0.051986001431941986, 0.05542942136526108, 0.3578365743160248, 0.3496869206428528, -0.24624164402484894, -0.05598674714565277, 0.40207594633102417, -0.3054606020450592, -0.25417330861091614, -0.0044271741062402725, 0.730410635471344, 0.04094448313117027, -0.28212472796440125, 0.38885319232940674, 0.3772556781768799, 0.061068929731845856, 0.22512465715408325, -0.037258248776197433, 0.24884963035583496, 0.10409347712993622, 0.16799907386302948, 0.07631193846464157, -0.09248731285333633, -0.3448624908924103, -0.04832630231976509, 0.14209330081939697, 0.0986587405204773, 0.07335157692432404, -0.032429516315460205, -0.22395926713943481, -0.4697708785533905, -0.1464134156703949, -0.17808154225349426, 0.27510228753089905, 0.27953267097473145, -0.35429978370666504, -0.07644817233085632, -0.13438525795936584, 0.007103690877556801, -0.4176901876926422, 0.7556753158569336, 0.4292474091053009, 0.20702707767486572, -0.18549779057502747, -0.3326605558395386, -0.04686637967824936, 0.11741551011800766, -0.6595672965049744, 0.0857730582356453, 0.23857145011425018, 0.18024250864982605, 0.008663833141326904, 0.007075382396578789, 0.1475755274295807, 0.4343189299106598, -0.41286975145339966, 0.28360429406166077, -0.2397235780954361, -0.10792820155620575, 0.18114235997200012, 0.08877018839120865, -0.09166934341192245, -0.14486059546470642, 0.3818055987358093, 0.3393016755580902, -0.18049010634422302, -0.010121069848537445, -0.05331490561366081, -0.048741113394498825, -0.576906681060791, -0.021895162761211395, 0.027689186856150627, 0.39182382822036743, 0.148707777261734, -0.0625499039888382, -0.11281457543373108, -0.3028455972671509, -0.06015095114707947, -0.10330132395029068, -0.042525071650743484, 0.1872614175081253, 0.049338579177856445, -0.24412734806537628, -0.10646551102399826, 0.618508517742157, -0.2498248964548111, -0.02277049794793129, 0.2796122431755066, -0.2736494839191437, 0.1929459571838379, 0.271850049495697, 0.13051342964172363, -0.0963926836848259, 0.16183370351791382, 0.03176453709602356, -0.3313865065574646, -0.37235555052757263, 0.3325306177139282, 0.015723198652267456, -0.3335415720939636, -0.10631860792636871, 0.36599284410476685, 0.29577746987342834, -0.0850149542093277, 0.03954308480024338, -0.18510371446609497, 0.10749777406454086, 0.10472714155912399, -0.32128164172172546, 0.3764306902885437, -0.11841030418872833, -0.15919612348079681, -0.02344355545938015, -0.027316704392433167, -0.0368773490190506, -0.29857558012008667, 0.14943131804466248, -0.08031901717185974 ]
https://github.com/huggingface/datasets/issues/3869
Making the Hub the place for datasets in Portuguese
Hi @omarespejel! I think the philosophy for `datasets` issues is to create concrete issues with proposals to add a specific, individual dataset rather than umbrella issues for things such as datasets for a language, since we could end up with hundreds of issues (one per language). I see NILC - USP has many datasets, I would suggest to either create an issue for their datasets, or even better, we are trying to push to upload datasets as community datasets instead of adding them to the core library as guided in https://huggingface.co/docs/datasets/share. That would have the additional benefit that the dataset would live under the NILC organization. @lhoestq correct me if I'm wrong please 😄
Let's make Hugging Face Datasets the central hub for datasets in Portuguese :) **Motivation**. Datasets are currently quite scattered and an open-source central point such as the Hugging Face Hub would be ideal to support the growth of the Portuguese speaking community. What are some datasets in Portuguese worth integrating into the Hugging Face hub? Special thanks to @augusnunes for his collaboration on identifying the first ones: - [NILC - USP](http://www.nilc.icmc.usp.br/nilc/index.php/tools-and-resources). Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). cc @osanseviero
114
Making the Hub the place for datasets in Portuguese Let's make Hugging Face Datasets the central hub for datasets in Portuguese :) **Motivation**. Datasets are currently quite scattered and an open-source central point such as the Hugging Face Hub would be ideal to support the growth of the Portuguese speaking community. What are some datasets in Portuguese worth integrating into the Hugging Face hub? Special thanks to @augusnunes for his collaboration on identifying the first ones: - [NILC - USP](http://www.nilc.icmc.usp.br/nilc/index.php/tools-and-resources). Instructions to add a new dataset can be found [here](https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md). cc @osanseviero Hi @omarespejel! I think the philosophy for `datasets` issues is to create concrete issues with proposals to add a specific, individual dataset rather than umbrella issues for things such as datasets for a language, since we could end up with hundreds of issues (one per language). I see NILC - USP has many datasets, I would suggest to either create an issue for their datasets, or even better, we are trying to push to upload datasets as community datasets instead of adding them to the core library as guided in https://huggingface.co/docs/datasets/share. That would have the additional benefit that the dataset would live under the NILC organization. @lhoestq correct me if I'm wrong please 😄
[ -0.1315915435552597, -0.16614043712615967, -0.10737137496471405, 0.1489170789718628, 0.13004887104034424, 0.07393739372491837, -0.06666764616966248, 0.13297036290168762, -0.011032020673155785, 0.12169477343559265, -0.16813714802265167, -0.1752087026834488, -0.27940526604652405, 0.3597371280193329, 0.13054822385311127, -0.048543453216552734, 0.3864608407020569, -0.0830100029706955, -0.062454745173454285, -0.08285395056009293, -0.13743138313293457, 0.18956218659877777, 0.06176555156707764, -0.02214302122592926, -0.5731895565986633, 0.1409570723772049, -0.09395498037338257, 0.03651458024978638, -0.3856603801250458, -0.19780564308166504, 0.1432892382144928, 0.4266701340675354, 0.09023638814687729, 0.539527416229248, -0.00012114865967305377, -0.21746209263801575, 0.15940803289413452, -0.1447676122188568, -0.2986883819103241, -0.1695730835199356, 0.032614246010780334, -0.16361410915851593, -0.14182467758655548, 0.15090036392211914, -0.07453864812850952, 0.051106467843055725, 0.1221260353922844, -0.25012898445129395, 0.05610237270593643, 0.20370973646640778, 0.09123508632183075, 0.24420401453971863, -0.14952977001667023, -0.16102980077266693, -0.03876963257789612, 0.6321375966072083, -0.19356215000152588, 0.05931053310632706, 0.4104387164115906, 0.10630999505519867, 0.2352151870727539, 0.22152705490589142, 0.1410432904958725, -0.46709752082824707, 0.38238194584846497, -0.28033849596977234, -0.4004036486148834, -0.27706247568130493, -0.04230242222547531, 0.12429367005825043, 0.19879098236560822, -0.2461833357810974, -0.24745774269104004, -0.4921056926250458, 0.01391606591641903, 0.18755050003528595, -0.29774904251098633, 0.1847519427537918, 0.24522119760513306, 0.35606077313423157, 0.03155894577503204, -0.2882724404335022, 0.18181568384170532, 0.2682681083679199, 0.29574307799339294, 0.02752651274204254, -0.049132756888866425, -0.05068475753068924, 0.2020260989665985, -0.10316422581672668, 0.13420598208904266, -0.13098536431789398, -0.015925809741020203, -0.0499308817088604, -0.07596659660339355, -0.058140091598033905, 0.24313795566558838, 0.8860700726509094, 0.45921146869659424, 0.05446099489927292, -0.12366706132888794, -0.08644093573093414, -0.11979090422391891, -0.06804391741752625, 0.09893016517162323, -0.16986510157585144, 0.02820552885532379, -0.012478900142014027, 0.21457067131996155, -0.16618208587169647, 0.23714712262153625, -0.11214005202054977, -0.05725177004933357, 0.17702433466911316, -0.5738756656646729, -0.02917993813753128, 0.20261506736278534, -0.184224471449852, 0.12850695848464966, -0.09094857424497604, 0.14457222819328308, 0.06940636783838272, 0.28240767121315, -0.04327879101037979, 0.18537379801273346, 0.6113050580024719, -0.3046365976333618, 0.35812705755233765, -0.10088459402322769, -0.388058602809906, -0.14394186437129974, 0.09230633080005646, -0.23782604932785034, 0.24887599050998688, 0.29126960039138794, -0.38753703236579895, 0.24460256099700928, -0.008773759007453918, 0.4553104639053345, 0.028111688792705536, -0.24565701186656952, -0.07428927719593048, 0.12931151688098907, 0.06973221153020859, -0.2896452248096466, 0.06846798211336136, 0.13350845873355865, -0.10166791081428528, -0.24001339077949524, -0.16709348559379578, 0.17904402315616608, -0.528967022895813, -0.021896714344620705, 0.013268187642097473, -0.2663726210594177, 0.16901203989982605, -0.30241698026657104, 0.4685305058956146, -0.3699343502521515, -0.039356060326099396, 0.20617185533046722, 0.24813637137413025, 0.051019880920648575, -0.12774647772312164, 0.24127352237701416, 0.6300541162490845, 0.03771084174513817, -0.1742817461490631, -0.12755532562732697, 0.06335040181875229, -0.46146726608276367, 0.0972270667552948, -0.02862289734184742, 0.15394887328147888, -0.18853920698165894, 0.1348290890455246, -0.08170820027589798, -0.6641495227813721, -0.31575506925582886, -0.08293646574020386, -0.18035948276519775, -0.12497956305742264, 0.08857420831918716, 0.21311908960342407, -0.008315127342939377, -0.09888052940368652, -0.15626150369644165, 0.5355112552642822, -0.20576709508895874, -0.033791493624448776, -0.027639547362923622, -0.04789409413933754, -0.1294088363647461, 0.40713173151016235, -0.10852839052677155, -0.023654930293560028, -0.03374902158975601, -0.004296197555959225, -0.035725273191928864, -0.05377945676445961, 0.14781032502651215, -0.022994674742221832, 0.22040612995624542, -0.12251795828342438, 0.003504086285829544, -0.14327514171600342, -0.37134116888046265, 0.022453725337982178, 0.43970587849617004, -0.018488571047782898, -0.24158860743045807, -0.3776558041572571, -0.09279978275299072, 0.00425141304731369, 0.10561857372522354, -0.09663574397563934, 0.006747815757989883, 0.1345822662115097, 0.2556692361831665, 0.2551923394203186, -0.40833714604377747, 0.7855480909347534, -0.142862468957901, 0.17252464592456818, -0.29739391803741455, 0.5154014825820923, -0.04833361506462097, 0.07229472696781158, 0.1029190868139267, 0.4799443185329437, -0.0764068141579628, -0.13377009332180023, 0.1641644537448883, 0.22017338871955872, 0.0016051242128014565, 0.3779304623603821, 0.5670733451843262, 0.47542279958724976, 0.11979521065950394, -0.28138449788093567, -0.023902589455246925, -0.2028408944606781, 0.0514218844473362, -0.1336178481578827, 0.2067035734653473, 0.3131614327430725, -0.13235338032245636, 0.2396894097328186, -0.16561327874660492, 0.0645313411951065, -0.18448485434055328, 0.1721068173646927, -0.35536715388298035, -0.1945161372423172, 0.2536902129650116, 0.09797607362270355, 0.3489026427268982, 0.27065330743789673, -0.23749180138111115, 0.0542009137570858, 0.2087431699037552, -0.17147396504878998, 0.0665513426065445, 0.19355100393295288, -0.13352110981941223, -0.16041886806488037, 0.12255863100290298, -0.10970921814441681, 0.24082443118095398, 0.20863193273544312, -0.16214731335639954, 0.09925905615091324, 0.38561341166496277, -0.11483360826969147, -0.01952553540468216, 0.26530566811561584, -0.22307373583316803, 0.019346322864294052, -0.11542974412441254, 0.019310709089040756, -0.32211148738861084, -0.17351458966732025, -0.28124210238456726, 0.09381089359521866, 0.03367830440402031, -0.08894068002700806, 0.18027105927467346, -0.06666108965873718, 0.13966591656208038, -0.12254618853330612, -0.44918012619018555, -0.3087417781352997, -0.008961603045463562, 0.0020318329334259033, 0.1701337993144989, 0.06789510697126389, 0.0025192350149154663, 0.9409676194190979, -0.5917711853981018, -0.06208595633506775, -0.4047405421733856, -0.3535039722919464, -0.09953884035348892, -0.04669919237494469, 0.1837833672761917, 0.2742387056350708, 0.3022247552871704, -0.5940201282501221, 0.6496312618255615, -0.22875145077705383, -0.3201073110103607, 0.025885334238409996, -0.054816827178001404, 0.07012306898832321, 0.07549166679382324, -0.06910832226276398, -0.2875019907951355, -0.20377013087272644, -0.02883990667760372, -0.116200290620327, -0.06458697468042374, -0.2627297639846802, -0.12777110934257507, -0.14801201224327087, 0.15356357395648956, 0.08500418066978455, -0.46575793623924255, -0.5379076600074768, 0.5167250633239746, -0.34883227944374084, -0.2513880729675293, -0.07401996105909348, -0.18452900648117065, -0.047497157007455826, -0.37645629048347473, -0.08895440399646759, 0.01975339651107788, -0.6336106657981873, 0.08122619241476059, -0.33164310455322266, -0.11585387587547302, -0.2799673080444336, -0.07142364978790283, 0.09663708508014679, -0.18862159550189972, -0.4307675361633301, -0.0967627540230751, -0.09472721815109253, 0.22283753752708435, 0.20356522500514984, 0.22043898701667786, 0.11036417633295059, 0.02904801070690155, 0.15533842146396637, -0.11851851642131805, -0.2977031171321869, -0.19578790664672852, 0.3906811475753784, 0.03556030988693237, 0.07520563900470734, -0.13358819484710693, -0.03498101234436035, 0.17885297536849976, 0.23154360055923462, -0.030347365885972977, 0.348486065864563, 0.2604828476905823, 0.7044511437416077, -0.27611783146858215, -0.6298716068267822, 0.34092357754707336, 0.12828774750232697, 0.09858158230781555, 0.3123495578765869, 0.26597025990486145, 0.3521716594696045, -0.298462837934494, -0.2890526354312897, -0.2787262499332428, -0.10214214026927948, 0.031961265951395035, -0.0892593264579773, 0.1340891420841217, -0.07969487458467484, -0.3037731945514679, -0.2762396037578583, 0.005575883202254772, 0.1781216561794281, 0.3156471848487854, 0.2637830078601837, 0.15935634076595306, -0.4496564567089081, 0.05064697936177254, -0.4350970387458801, 0.02863335609436035, -0.08349322527647018, 0.027765478938817978, -0.2872438430786133, 0.12434100359678268, -0.015517614781856537, 0.30203211307525635, 0.5010738968849182, -0.4627046287059784, -0.3750753402709961, -0.08352397382259369, -0.04522814601659775, -0.44813215732574463, 0.23992832005023956, 0.17442256212234497, 0.0991465374827385, 0.020104585215449333, 0.547012984752655, -0.3816356658935547, -0.17935895919799805, 0.07785853743553162, 0.3437146842479706, 0.2454935908317566, -0.10988453030586243, 0.14012131094932556, -0.0395977608859539, -0.25512126088142395, 0.052298810333013535, 0.23484228551387787, 0.06082827225327492, 0.375641405582428, 0.16137181222438812, -0.008141783997416496, -0.008529480546712875, 0.3181879222393036, 0.06357893347740173, 0.09564141929149628, 0.32991379499435425, 0.12509042024612427, 0.35654911398887634, 0.12576395273208618, 0.08139336854219437, 0.46004483103752136, -0.103101447224617, -0.33253881335258484, 0.01804972253739834, 0.01876290887594223, 0.44607993960380554, 0.40904152393341064, 0.3528383672237396, 0.09486648440361023, -0.14634591341018677, 0.10647599399089813, -0.4354938566684723, 0.27471983432769775, 0.15460756421089172, 0.09151984006166458, -0.6227207779884338, 0.005711931735277176, 0.28365832567214966, 0.16998004913330078, -0.020974069833755493, 0.024246038869023323, 0.5000162124633789, -0.06665755063295364, 0.16223815083503723, -0.02122943103313446, 1.281440258026123, 0.030620433390140533, 0.3506726622581482, -0.0910656601190567, -0.2932290732860565, 0.3880878686904907, -0.45855945348739624, -0.3509105443954468, -0.07699394226074219, -0.06871886551380157, -0.150448277592659, -0.13540807366371155, 0.10451140999794006, 0.03492294251918793, -0.17152740061283112, -0.1380569338798523, -0.17516252398490906, 0.44556286931037903, -0.1257735788822174, 0.3872146010398865, -0.08005013316869736, -0.38595497608184814, -0.18120478093624115, 0.04887361824512482, 0.03865848109126091, 0.35797715187072754, -0.07093214243650436, -0.07081223279237747, -0.3025324046611786, 0.013800244778394699, -0.3341616988182068, -0.35183101892471313, 0.07650161534547806, -0.08554156869649887, -0.017797641456127167, -0.21516767144203186, 0.1611708700656891, 0.37963709235191345, 0.8023504614830017, -0.01250380277633667, -0.18345355987548828, 0.14474867284297943, -0.22550180554389954, -0.12703600525856018, 0.1588340550661087, -0.24692639708518982, -0.05952303111553192, 0.07774269580841064, -0.25677284598350525, -0.13763803243637085, 0.25340333580970764, 0.06890391558408737, -0.4549590051174164, -0.1640682816505432, -0.05408558249473572, -0.07645177096128464, -0.1563776433467865, 0.28911787271499634, 0.13794152438640594, -0.02621758170425892, 0.0448228120803833, 0.20707310736179352, 0.18318495154380798, -0.0861591026186943, 0.28287428617477417, -0.18008780479431152, -0.3314345180988312, 0.14533327519893646, -0.27510371804237366, -0.39783012866973877, -0.1087431013584137, 0.10173676908016205, -0.15427276492118835, -0.14457818865776062, 0.40422454476356506, 0.7960073351860046, -0.5436839461326599, -0.1912052184343338, -0.016774985939264297, -0.31744384765625, -0.2319294959306717, -0.16685475409030914, 0.4084506034851074, -0.294718474149704, 0.18564432859420776, -0.09306374192237854, -0.46485504508018494, 0.4665238857269287, 0.019752057269215584, 0.08002596348524094, -0.03424593061208725, -0.2211102694272995, 0.07164573669433594, 0.09697069972753525, -0.2060425579547882, 0.09885711967945099, -0.12306658178567886, -0.05909440666437149, 0.13476255536079407, -0.10566430538892746, 0.05072494596242905, -0.3255157768726349, -0.026889871805906296, -0.09952957928180695, -0.331000953912735, -0.04726944491267204, -0.17128504812717438, 0.16839413344860077, 0.25809985399246216, 0.14820607006549835, 0.17920170724391937, -0.1318465769290924, -0.008494812995195389, -0.3457370698451996, -0.02564791403710842, 0.35826677083969116, 0.14571283757686615, 0.00432142149657011, 0.26274093985557556, -0.01764748990535736, -0.10149918496608734, 0.21263031661510468, 0.3162955045700073, 0.1597968339920044, 0.16996972262859344, -0.0048061758279800415, 0.018575873225927353, -0.05735350400209427, 0.06818932294845581, 0.4030793607234955, 0.28563374280929565, 0.0003097131848335266, 0.05778971314430237, 0.27853959798812866, 0.2887377142906189, 0.40557971596717834, 0.0909806564450264, 0.08439570665359497, -0.06905541568994522, 0.15224561095237732, 0.41836318373680115, 0.037819139659404755, -0.13148701190948486, -0.16234174370765686, 0.33224523067474365, 0.05182236060500145, -0.007294997572898865, 0.2941964566707611, 0.3229218125343323, 0.2708403468132019, -0.1028982400894165, -0.14018386602401733, 0.22611716389656067, 0.2419089376926422, 0.38325852155685425, 0.22617588937282562, 0.1841527372598648, 0.07274463772773743, 0.2365756332874298, 0.48368433117866516, 0.10233093053102493, 0.24143482744693756, -0.4062745273113251, 0.3869887590408325, 0.045308079570531845, 0.20551134645938873, 0.5408614277839661, -0.02000311203300953, 0.30650293827056885, -0.004631221294403076, 0.30640068650245667, -0.21961668133735657, -0.09914879500865936, 0.39332932233810425, -0.14434701204299927, -0.26707661151885986, -0.09722084552049637, 0.15682871639728546, 0.011080026626586914, -0.06622618436813354, 0.2687399685382843, -0.18987584114074707, -0.3233630061149597, -0.10387185215950012, -0.10423757135868073, -0.4898509979248047, 0.1022605374455452, 0.13467222452163696, 0.08429362624883652, -0.15184438228607178, -0.08848952502012253, 0.12364959716796875, 0.2763846516609192, 0.03365961089730263, -0.16037940979003906, -0.3558163046836853, 0.052278533577919006, 0.3019956052303314, 0.489502876996994, 0.1665109544992447, -0.027301717549562454, -0.032657913863658905, 0.276476114988327, -0.15488168597221375, 0.1479000449180603, 0.05774302780628204, 0.20793166756629944, 0.020723596215248108, 0.1577075570821762, 0.014965612441301346, 0.10488945990800858, -0.03460044413805008, -0.29389268159866333, -0.16731156408786774, -0.04271180182695389, -0.2574441730976105, 0.2563548982143402, -0.1897944062948227, 0.12426658719778061, -0.14017556607723236, 0.23619979619979858, -0.3905717134475708, 0.01558065414428711, 0.31234022974967957, 0.03985411673784256, -0.09079352021217346, -0.19585245847702026, -0.0005092192441225052, -0.006182335317134857, 0.1628810167312622, 0.5433216094970703, 0.09419892728328705, -0.13758961856365204, -0.4844081401824951, -0.273776113986969, 0.06986914575099945, 0.15086543560028076, 0.18378053605556488, 0.07966870814561844, -0.3364926278591156, 0.2814253568649292, 0.35380810499191284, -0.256987988948822, 0.16625118255615234, -0.2404087632894516, -0.0729890912771225, -0.2004631608724594, 0.14553701877593994, -0.13092733919620514, 0.31996795535087585, 0.10583813488483429, 0.2899739444255829, 0.007246796041727066, 0.3487948775291443, -0.08336076140403748, -0.28179627656936646, 0.14914152026176453, -0.25106045603752136, -0.3408103883266449, 0.20156115293502808, 0.03908967971801758, -0.06041623651981354, 0.04125439375638962, -0.15760141611099243, -0.28977498412132263, -0.29825064539909363, -0.0011442825198173523, 0.22161781787872314, -0.11711151897907257, 0.10463771224021912, -0.5871734619140625, -0.5231024622917175, -0.03998664394021034, -0.1761123090982437, 0.13047833740711212, 0.3363562226295471, -0.10433362424373627, 0.02105906791985035, -0.015440508723258972, 0.06358517706394196, 0.16110557317733765, 0.24284908175468445, -0.2332324981689453, 0.027224237099289894, -0.00923176109790802, -0.07567375898361206, 0.46444132924079895, 0.14578936994075775, 0.03363535925745964, 0.021816082298755646, 0.10793627053499222, 0.21355968713760376, -0.29252389073371887, -0.41146421432495117, 0.027657434344291687, 0.07591179758310318, -0.01197318360209465, 0.016220230609178543, 0.323632150888443, 0.03446873277425766, -0.1407235711812973, -0.06553639471530914, 0.07654182612895966, -0.025860987603664398, 0.07431443780660629, 0.4699128568172455, -0.061669014394283295 ]
https://github.com/huggingface/datasets/issues/3861
big_patent cased version
To follow up on this: the cased and uncased versions actually contain different content, and the cased one is easier since it contains a Summary of the Invention in the input. See the paper describing the issue here: https://aclanthology.org/2022.gem-1.34/
Hi! I am interested in working with the big_patent dataset. In Tensorflow, there are a number of versions of the dataset: - 1.0.0 : lower cased tokenized words - 2.0.0 : Update to use cased raw strings - 2.1.2 (default): Fix update to cased raw strings. The version in the huggingface `datasets` library is the 1.0.0. I would be very interested in using the 2.1.2 cased version (used more, recently, for example in the Pegasus paper), but it does not seem to be supported (I tried using the `revision` parameter in `load_datasets`). Is there a way to already load it, or would it be possible to add that version?
39
big_patent cased version Hi! I am interested in working with the big_patent dataset. In Tensorflow, there are a number of versions of the dataset: - 1.0.0 : lower cased tokenized words - 2.0.0 : Update to use cased raw strings - 2.1.2 (default): Fix update to cased raw strings. The version in the huggingface `datasets` library is the 1.0.0. I would be very interested in using the 2.1.2 cased version (used more, recently, for example in the Pegasus paper), but it does not seem to be supported (I tried using the `revision` parameter in `load_datasets`). Is there a way to already load it, or would it be possible to add that version? To follow up on this: the cased and uncased versions actually contain different content, and the cased one is easier since it contains a Summary of the Invention in the input. See the paper describing the issue here: https://aclanthology.org/2022.gem-1.34/
[ -0.29635563492774963, -0.3385946750640869, -0.03500346466898918, 0.17709413170814514, 0.016487836837768555, 0.10124131292104721, 0.1457868069410324, 0.24699321389198303, 0.022616185247898102, 0.0014173835515975952, 0.06292110681533813, -0.2668645679950714, -0.32085639238357544, 0.24880538880825043, 0.16772595047950745, -0.07862713932991028, 0.4009076654911041, 0.10497760027647018, 0.024554528295993805, 0.12361906468868256, 0.08453847467899323, 0.1374439150094986, -0.1904994547367096, 0.29602211713790894, -0.0778624415397644, -0.08340990543365479, 0.17319917678833008, 0.070181705057621, -0.2883385419845581, -0.5799224376678467, 0.2924657464027405, 0.48507776856422424, 0.5097324848175049, 0.5326016545295715, -0.00013404179480858147, -0.07160517573356628, 0.3785340189933777, -0.07767186313867569, -0.014550704509019852, -0.2853690981864929, 0.09658022969961166, -0.25072968006134033, -0.1751021444797516, 0.018288731575012207, -0.11699042469263077, -0.37357190251350403, 0.03714977949857712, 0.19094064831733704, 0.4793280363082886, -0.07328957319259644, 0.03765038400888443, 0.010215599089860916, 0.42727142572402954, -0.17023886740207672, -0.18277278542518616, -0.0455031543970108, -0.04500295966863632, 0.26734840869903564, 0.3051007091999054, -0.09254220873117447, 0.17645588517189026, 0.07214091718196869, -0.026383070275187492, -0.04435085877776146, -0.08532089740037918, -0.0442032553255558, 0.05193626135587692, -0.02287738397717476, 0.22445794939994812, 0.6581321954727173, 0.487577885389328, -0.11294522136449814, -0.6081069707870483, -0.31640297174453735, 0.1916273534297943, -0.7018796801567078, 0.21898898482322693, -0.14258699119091034, 0.09521298110485077, 0.20110325515270233, -0.04786049947142601, -0.58347487449646, -0.4311339557170868, 0.23525235056877136, -0.20688751339912415, 0.24185311794281006, -0.19110310077667236, 0.1299496293067932, 0.24187053740024567, -0.4151146411895752, 0.17949225008487701, -0.054903969168663025, 0.24363170564174652, 0.10019396245479584, 0.1521759182214737, -0.010508894920349121, -0.1888977587223053, 0.0896335318684578, 0.23650264739990234, -0.1876371055841446, -0.23376239836215973, 0.13319534063339233, -0.37084683775901794, 0.01991957053542137, -0.14234378933906555, -0.17513540387153625, 0.1769486665725708, -0.16237297654151917, 0.39029020071029663, -0.03470578044652939, 0.24341049790382385, 0.22954538464546204, -0.7348220944404602, -0.017174214124679565, -0.4947091042995453, -0.2947392463684082, 0.24194233119487762, -0.22333157062530518, 0.16025958955287933, -0.0774381011724472, -0.1190185546875, 0.03731439635157585, -0.1306624710559845, 0.17252692580223083, -0.008579505607485771, 0.019945871084928513, -0.016658451408147812, 0.03470055013895035, -0.13777993619441986, -0.2312726229429245, -0.011407124809920788, -0.24754531681537628, 0.24755585193634033, 0.2677360773086548, 0.008820682764053345, -0.40321266651153564, 0.28121230006217957, -0.24595309793949127, 0.21799108386039734, 0.04832872003316879, -0.28301742672920227, 0.31624850630760193, -0.10595551878213882, 0.13451430201530457, -0.1923629641532898, 0.0468846932053566, -0.0006127730011940002, -0.44237250089645386, -0.1726195514202118, 0.1573372185230255, -0.20835009217262268, -0.2584257423877716, -0.3577633202075958, -0.1495962142944336, -0.40468698740005493, -0.08851435780525208, -0.35105496644973755, 0.5236234664916992, 0.06096868962049484, -0.2551476061344147, -0.1508677899837494, -0.23794834315776825, -0.3420764207839966, 0.04455876722931862, 0.4340824782848358, 0.13978631794452667, -0.5502068400382996, -0.22331689298152924, 0.08967562764883041, 0.09695042669773102, -0.387430876493454, 0.2562979757785797, -0.2890866994857788, 0.03324061632156372, 0.06316646933555603, 0.04716616868972778, 0.4224221110343933, -0.31243646144866943, -0.6911182999610901, -0.3713936507701874, 0.013587981462478638, 0.09883635491132736, 0.29619520902633667, -0.0747034028172493, -0.07388117909431458, -0.05840380862355232, -0.1036381870508194, -0.043562598526477814, 0.1101306900382042, -0.369406521320343, 0.08819548785686493, -0.010330891236662865, 0.4295533299446106, -0.09940192103385925, 0.058983828872442245, 0.030811212956905365, -0.09596828371286392, 0.20431065559387207, 0.45925384759902954, 0.031078597530722618, -0.14486737549304962, 0.19461247324943542, 0.2279662936925888, 0.1897827386856079, 0.11911261081695557, -0.12577110528945923, -0.23683160543441772, 0.15598925948143005, 0.09065286815166473, -0.16903214156627655, 0.22058233618736267, -0.10308955609798431, -0.20655900239944458, -0.21706558763980865, 0.07469816505908966, 0.05368158221244812, -0.08428352326154709, 0.05378773808479309, 0.14488628506660461, -0.06045876443386078, -0.17463447153568268, -0.10139372944831848, -0.1492292732000351, 0.08023843914270401, -0.35189899802207947, -0.007189665921032429, 0.23997651040554047, -0.13374954462051392, -0.02716847136616707, 0.12591105699539185, -0.011068582534790039, -0.2741304934024811, 0.08379098773002625, 0.3586113750934601, -0.16206446290016174, 0.3291405737400055, -0.20886582136154175, 0.4155430793762207, 0.07997395098209381, 0.35595715045928955, -0.15668286383152008, -0.2530621290206909, -0.26826348900794983, 0.1305827498435974, -0.26211005449295044, 0.47511768341064453, 0.4394579827785492, -0.22100424766540527, -0.024263205006718636, -0.2510431706905365, 0.15141624212265015, 0.1834513545036316, -0.2465941607952118, -0.0737076848745346, 0.09888997673988342, -0.16979728639125824, 0.0840139091014862, -0.07531309127807617, -0.39359602332115173, -0.0053075626492500305, 0.3706044554710388, -0.25382331013679504, 0.12498924136161804, 0.12229184061288834, -0.3024694621562958, 0.037638016045093536, 0.1580532193183899, -0.20363914966583252, 0.07866793125867844, 0.17449524998664856, -0.036302600055933, 0.09237067401409149, 0.18300490081310272, -0.06036955863237381, 0.12221826612949371, -0.12633812427520752, -0.020967626944184303, -0.15019074082374573, 0.14974108338356018, -0.0377599261701107, -0.2800867557525635, 0.18288476765155792, 0.03112204559147358, 0.0002634432166814804, -0.2046128511428833, -0.12138159573078156, -0.4441662132740021, -0.10154983401298523, -0.3345397710800171, 0.23585787415504456, -0.31653866171836853, 0.36480623483657837, -0.025298595428466797, 0.5911955237388611, 0.32905784249305725, 0.2691859006881714, 0.18464839458465576, 0.6740807890892029, 0.17943677306175232, 0.005869494751095772, 0.05987628549337387, 0.052353400737047195, -0.19628018140792847, -0.0841192826628685, 0.1301185041666031, -0.5061274170875549, 0.24658186733722687, 0.17948001623153687, -0.24359013140201569, -0.2068135291337967, -0.7744670510292053, 0.10320605337619781, -0.14206808805465698, 0.009647010825574398, 0.11227630823850632, 0.04648701474070549, -0.10335183143615723, 0.18289901316165924, 0.031863607466220856, -0.04179774969816208, -0.1655922383069992, -0.38076290488243103, -0.07650122046470642, -0.0646679699420929, 0.11396612226963043, -0.11587148159742355, -0.21231357753276825, -0.14765311777591705, 0.7083098292350769, 0.15715457499027252, -0.026128120720386505, -0.2606319189071655, -0.03070291504263878, 0.12297673523426056, 0.06015659496188164, -0.0030551208183169365, -0.124224953353405, -0.30926942825317383, 0.3804487884044647, -0.20233401656150818, -0.3648853898048401, -0.32925671339035034, 0.06702292710542679, 0.15895481407642365, -0.11706745624542236, -0.3078635036945343, 0.08030422776937485, 0.13492435216903687, -0.027252275496721268, 0.07604192197322845, -0.15316461026668549, 0.4010678827762604, -0.03754729777574539, 0.1484752893447876, -0.17707476019859314, -0.08379851281642914, 0.14813295006752014, 0.19674146175384521, 0.3472973108291626, 0.3825174570083618, 0.4001699686050415, 0.14365632832050323, 0.6309570074081421, 0.13994303345680237, -0.29416191577911377, -0.11256232857704163, -0.16986975073814392, 0.301866739988327, 0.011992722749710083, -0.007627313956618309, 0.06076430901885033, 0.2112615555524826, 0.2512056231498718, 0.34424543380737305, 0.13002923130989075, 0.16913974285125732, 0.08527685701847076, 0.018210243433713913, 0.003663640469312668, 0.04649628326296806, -0.01993860863149166, -0.025135599076747894, 0.059069372713565826, 0.04698064550757408, -0.23248067498207092, -0.37012553215026855, -0.23159512877464294, 0.1771470606327057, -0.061505526304244995, 0.5794475078582764, 0.27027666568756104, -0.18082694709300995, -0.00033412245102226734, -0.4709280729293823, 0.3420633375644684, 0.054976072162389755, 0.18917295336723328, -0.003363136202096939, 0.12132769078016281, -0.014051072299480438, 0.014914087951183319, 0.3983457088470459, 0.2297603338956833, -0.09494392573833466, -0.10398432612419128, -0.41290226578712463, -0.5145391821861267, -0.1788744032382965, -0.10757479071617126, 0.1691390722990036, 0.04732093587517738, 0.6541993618011475, -0.23438498377799988, -0.0640547052025795, -0.016666725277900696, 0.11118138581514359, -0.3876916766166687, -0.053022678941488266, -0.05820547416806221, 0.006337251514196396, -0.11890286207199097, 0.04783355072140694, 0.11710648983716965, 0.21526162326335907, -0.1621154099702835, 0.023285236209630966, -0.1858358532190323, -0.32732313871383667, 0.17321550846099854, 0.12189599871635437, 0.17456325888633728, 0.27085933089256287, -0.2130453884601593, 0.39841440320014954, 0.07503444701433182, 0.248184934258461, 0.18030737340450287, 0.13814783096313477, -0.26587069034576416, 0.062405116856098175, 0.27624666690826416, 0.2666759490966797, 0.25009939074516296, -0.29555875062942505, 0.2573065161705017, 0.27436238527297974, -0.01640263944864273, -0.5749936699867249, 0.39088955521583557, 0.4048634469509125, 0.2763794958591461, -0.4482146203517914, -0.19499094784259796, 0.6227331757545471, 0.2085610032081604, -0.1883653700351715, 0.6232404112815857, 0.39791154861450195, -0.3371731638908386, 0.04456660896539688, -0.34452491998672485, 0.6907422542572021, -0.24969883263111115, 0.16252820193767548, -0.017530854791402817, 0.22175733745098114, 0.6078065037727356, -0.16350172460079193, -0.002175772562623024, -0.17922762036323547, -0.26853010058403015, -0.292919397354126, 0.02452438697218895, 0.27850228548049927, 0.25908875465393066, -0.07161178439855576, 0.20523083209991455, 0.21075229346752167, 0.25388890504837036, 0.2307841032743454, 0.6386577486991882, 0.23526723682880402, -0.005375953391194344, -0.2722967565059662, -0.11403457820415497, 0.13876888155937195, 0.1331745833158493, 0.005241440609097481, 0.0992974117398262, 0.04067808762192726, -0.13286909461021423, -0.4010698199272156, -0.5272716283798218, -0.23767133057117462, 0.22799257934093475, 0.22625592350959778, -0.4004121422767639, 0.2257043421268463, 0.3948840796947479, 0.2622748613357544, 0.22911585867404938, -0.4335642457008362, 0.09359382092952728, -0.08598829060792923, -0.2288125902414322, -0.11333529651165009, -0.1437259018421173, 0.15682554244995117, -0.00942004844546318, 0.0905560627579689, 0.038781508803367615, 0.16454143822193146, -0.2554405927658081, -0.38770705461502075, -0.4042929410934448, 0.18938812613487244, -0.2407146543264389, -0.05416896194219589, -0.02220701426267624, 0.17757917940616608, -0.10334369540214539, -0.019223202019929886, 0.16009293496608734, -0.1620388925075531, -0.368664413690567, 0.5484050512313843, -0.05179950222373009, 0.04709789156913757, 0.5435200333595276, 0.01134072057902813, -0.07771903276443481, 0.5557975769042969, -0.08408477157354355, 0.1450045108795166, 0.1359332799911499, -0.034302257001399994, 0.37077996134757996, 0.07514766603708267, 0.14700022339820862, 0.22633817791938782, -0.22279754281044006, -0.13079023361206055, 0.10405833274126053, 0.15589003264904022, -0.32192566990852356, -0.0923609584569931, -0.11056935042142868, -0.1437932699918747, 0.19644984602928162, -0.05188766494393349, 0.2958278954029083, 0.23164117336273193, 0.046196989715099335, -0.41572582721710205, -0.013713182881474495, -0.07602189481258392, 0.2474036067724228, 0.28847458958625793, 0.0018745176494121552, 0.22972556948661804, 0.3688061237335205, -0.1310269683599472, 0.12153175473213196, -0.04329691827297211, 0.1401320993900299, -0.09531141817569733, 0.014492388814687729, -0.30504119396209717, 0.2075132429599762, -0.15631860494613647, -0.08150862902402878, 0.16459570825099945, -0.0671653002500534, -0.036704424768686295, -0.06671196222305298, 0.2413884997367859, 0.061541229486465454, 0.15343822538852692, -0.01330240536481142, -0.02153141424059868, 0.12093117088079453, 0.003431994467973709, 0.3549107611179352, -0.08833716809749603, 0.002078711986541748, 0.3200768828392029, 0.30875420570373535, 0.1683097630739212, -0.028134804219007492, -0.2126249372959137, 0.12911567091941833, 0.07372137904167175, -0.16351842880249023, 0.3702630400657654, -0.10931578278541565, -0.2028207629919052, 0.12292425334453583, 0.4292401671409607, 0.2518889307975769, -0.1882583051919937, 0.05931253731250763, 0.4267832338809967, -0.045600906014442444, -0.3027820885181427, -0.1179601326584816, 0.3013246953487396, -0.05289504677057266, -0.15812401473522186, 0.21780064702033997, 0.14617015421390533, 0.07099144160747528, -0.16608716547489166, -0.11141560226678848, 0.2823813557624817, -0.19296012818813324, 0.36200231313705444, 0.003954362124204636, 0.0009630247950553894, -0.09153018891811371, 0.05632254481315613, 0.1901559680700302, 0.2217651605606079, 0.2844080626964569, 0.13908953964710236, 0.1684141308069229, 0.051599472761154175, 0.23237089812755585, 0.4312363266944885, -0.15862524509429932, -0.13671207427978516, 0.18655286729335785, -0.06381583213806152, 0.2862224578857422, -0.14289036393165588, 0.44323623180389404, 0.07398898899555206, -0.1502382904291153, -0.32350295782089233, 0.10499542951583862, 0.009715229272842407, -0.6623202562332153, 0.07704424113035202, -0.13308848440647125, 0.24556154012680054, 0.10207371413707733, 0.007932048290967941, -0.3172270655632019, 0.015951253473758698, 0.12174186110496521, 0.1211957037448883, -0.12132340669631958, -0.45438915491104126, -0.0012479797005653381, 0.3074163496494293, 0.05340965464711189, 0.36811158061027527, 0.1167154312133789, -0.05732716619968414, 0.3061213195323944, 0.1781395822763443, 0.2457892745733261, -0.11371186375617981, 0.0912013053894043, -0.11397164314985275, -0.27999112010002136, 0.03944403678178787, 0.05383754521608353, 0.3102457821369171, 0.1787218600511551, 0.26470744609832764, -0.026499927043914795, -0.06680157780647278, 0.1085016056895256, 0.044800445437431335, -0.06289365887641907, -0.16018672287464142, -0.521917998790741, -0.24257731437683105, 0.007175477221608162, -0.040923748165369034, -0.09917892515659332, 0.14527437090873718, -0.06572528183460236, -0.011654370464384556, 0.5669763684272766, 0.12643282115459442, 0.1974734663963318, 0.24237217009067535, -0.04624025523662567, -0.002403348684310913, 0.46341434121131897, -0.016673419624567032, 0.23751279711723328, 0.32851964235305786, -0.09068626910448074, -0.32089003920555115, 0.1374678611755371, 0.16033464670181274, 0.05839293450117111, 0.040973562747240067, -0.17451296746730804, 0.30552563071250916, -0.11294935643672943, -0.06584574282169342, -0.5372362732887268, -0.10245341062545776, -0.05421905964612961, -0.058320723474025726, -0.10021427273750305, 0.24155978858470917, 0.2971632182598114, -0.06955543905496597, 0.1200585886836052, 0.1282368004322052, -0.16111275553703308, -0.2134431004524231, -0.23429866135120392, 0.22496742010116577, -0.2216738760471344, 0.2184177190065384, 0.3354257643222809, 0.20276691019535065, 0.25569263100624084, -0.038562070578336716, -0.04327865689992905, -0.4843442440032959, -0.07438107579946518, -0.3815678060054779, 0.5274761915206909, -0.2573584318161011, 0.29332467913627625, -0.43490612506866455, -0.2558634877204895, -0.08939588069915771, 0.20087119936943054, -0.08964473009109497, -0.2848982512950897, -0.1293255239725113, 0.021514074876904488, -0.2914509177207947, 0.021091969683766365, 0.24602989852428436, 0.1511339247226715, -0.14475129544734955, -0.012709755450487137, -0.08444608747959137, -0.10305916517972946, 0.7558668255805969, -0.6374334692955017, 0.08679293096065521, -0.15990403294563293, 0.1341261863708496, 0.5953890085220337, -0.09937919676303864, -0.7315731644630432, 0.14498817920684814, 0.32615193724632263, 0.2423330843448639, -0.10534237325191498, 0.29525241255760193, -0.017954021692276, 0.16920682787895203, -0.16108368337154388, 0.9729446172714233, -0.18149051070213318, -0.47251859307289124, -0.28982648253440857, -0.4286584258079529 ]
https://github.com/huggingface/datasets/issues/3861
big_patent cased version
Thanks for proposing the addition of the cased version of this dataset and for pinging again recently. I have just merged a PR that adds the cased version: https://huggingface.co/datasets/big_patent/discussions/3 The cased version (2.1.2) is the default one: ```python ds = load_dataset("big_patent", "all") ``` To use the 1.0.0 version (lower cased tokenized words), pass both parameters `codes` and `version`: ```python ds = load_dataset("big_patent", codes="all", version="1.0.0") ``` Closed by: https://huggingface.co/datasets/big_patent/discussions/3
Hi! I am interested in working with the big_patent dataset. In Tensorflow, there are a number of versions of the dataset: - 1.0.0 : lower cased tokenized words - 2.0.0 : Update to use cased raw strings - 2.1.2 (default): Fix update to cased raw strings. The version in the huggingface `datasets` library is the 1.0.0. I would be very interested in using the 2.1.2 cased version (used more, recently, for example in the Pegasus paper), but it does not seem to be supported (I tried using the `revision` parameter in `load_datasets`). Is there a way to already load it, or would it be possible to add that version?
68
big_patent cased version Hi! I am interested in working with the big_patent dataset. In Tensorflow, there are a number of versions of the dataset: - 1.0.0 : lower cased tokenized words - 2.0.0 : Update to use cased raw strings - 2.1.2 (default): Fix update to cased raw strings. The version in the huggingface `datasets` library is the 1.0.0. I would be very interested in using the 2.1.2 cased version (used more, recently, for example in the Pegasus paper), but it does not seem to be supported (I tried using the `revision` parameter in `load_datasets`). Is there a way to already load it, or would it be possible to add that version? Thanks for proposing the addition of the cased version of this dataset and for pinging again recently. I have just merged a PR that adds the cased version: https://huggingface.co/datasets/big_patent/discussions/3 The cased version (2.1.2) is the default one: ```python ds = load_dataset("big_patent", "all") ``` To use the 1.0.0 version (lower cased tokenized words), pass both parameters `codes` and `version`: ```python ds = load_dataset("big_patent", codes="all", version="1.0.0") ``` Closed by: https://huggingface.co/datasets/big_patent/discussions/3
[ -0.29173389077186584, -0.2924851179122925, -0.03984275832772255, 0.06837593764066696, 0.0190461203455925, 0.16050118207931519, 0.15711259841918945, 0.2511802911758423, -0.08451364934444427, -0.03758107125759125, -0.002141679637134075, -0.17317132651805878, -0.32748445868492126, 0.2096542865037918, 0.08893077075481415, -0.060175709426403046, 0.37270423769950867, 0.12019079178571701, 0.07852736115455627, 0.11780375242233276, 0.032957352697849274, 0.058167487382888794, -0.17055413126945496, 0.22712868452072144, 0.013545289635658264, -0.08353748917579651, 0.08001728355884552, 0.04427482932806015, -0.27105093002319336, -0.5291113257408142, 0.27998027205467224, 0.5236928462982178, 0.44593146443367004, 0.6122318506240845, -0.0001288808271056041, -0.05602975934743881, 0.3607712388038635, -0.04959258437156677, -0.11387713253498077, -0.3636808395385742, 0.09839024394750595, -0.23703192174434662, -0.18118877708911896, 0.004411056637763977, -0.10210239887237549, -0.4287126064300537, 0.08126232773065567, 0.08865737915039062, 0.5280674695968628, -0.031392306089401245, 0.08686701953411102, 0.07663846015930176, 0.4331486225128174, -0.16669726371765137, -0.22579312324523926, -0.013443097472190857, 0.02016369067132473, 0.3341792821884155, 0.35743218660354614, -0.11893539130687714, 0.26516589522361755, 0.07034099102020264, 0.04051540046930313, -0.048048023134469986, -0.06988691538572311, -0.0458749420940876, 0.01816583052277565, -0.03959731012582779, 0.25665023922920227, 0.5483212471008301, 0.4940756559371948, -0.2527484893798828, -0.68634432554245, -0.34275051951408386, 0.2852364778518677, -0.698639452457428, 0.20323055982589722, -0.16773830354213715, 0.11157763004302979, 0.17193558812141418, -0.0006698891520500183, -0.5196590423583984, -0.3903901278972626, 0.3208245038986206, -0.15479950606822968, 0.215577632188797, -0.18315225839614868, 0.15179695188999176, 0.14074893295764923, -0.42193329334259033, 0.21161755919456482, -0.13036523759365082, 0.2979108691215515, 0.17261891067028046, 0.09846644848585129, -0.001161620020866394, -0.19916614890098572, 0.04488001763820648, 0.1970055103302002, -0.20435965061187744, -0.14276468753814697, 0.12142087519168854, -0.3330131471157074, 0.002883974462747574, -0.034415245056152344, -0.12574803829193115, 0.15173836052417755, -0.09528496116399765, 0.3295080065727234, -0.019722359254956245, 0.2644362151622772, 0.18017268180847168, -0.689807653427124, -0.041646674275398254, -0.4760726988315582, -0.24806749820709229, 0.3172563910484314, -0.20150651037693024, 0.15604114532470703, -0.1345374435186386, -0.1558624804019928, 0.002669846173375845, -0.11448884755373001, 0.22899985313415527, -0.008272092789411545, 0.08898694813251495, 0.011883895844221115, 0.023027725517749786, -0.13067369163036346, -0.15992483496665955, -0.04476924613118172, -0.2112513780593872, 0.22946244478225708, 0.21223722398281097, 0.060511182993650436, -0.39596933126449585, 0.25727972388267517, -0.10690490156412125, 0.18271991610527039, 0.07949692010879517, -0.26561638712882996, 0.2753073275089264, -0.09892138093709946, 0.0009439364075660706, -0.20722812414169312, 0.06075841188430786, -0.0019833743572235107, -0.3755943179130554, -0.14612704515457153, 0.12567010521888733, -0.17821520566940308, -0.21339139342308044, -0.4016314148902893, -0.06757253408432007, -0.4185238480567932, -0.11989752948284149, -0.39072343707084656, 0.5201773047447205, 0.06211889162659645, -0.1816888004541397, -0.14169690012931824, -0.23843513429164886, -0.3263157308101654, 0.013552222400903702, 0.42342832684516907, 0.20749175548553467, -0.5515946745872498, -0.2651120722293854, 0.07123187929391861, 0.029121072962880135, -0.3872177302837372, 0.1607246845960617, -0.3522717356681824, 0.0010536909103393555, 0.04972927272319794, -0.1117171198129654, 0.38965603709220886, -0.3858926594257355, -0.7119588255882263, -0.303194522857666, -0.06731920689344406, 0.11553000658750534, 0.2753170430660248, -0.07156641781330109, -0.062462083995342255, -0.05271957069635391, -0.04267182946205139, -0.08089133352041245, 0.08772920072078705, -0.37643858790397644, 0.060234908014535904, -0.002456188201904297, 0.3909214735031128, -0.014099429361522198, 0.0524756945669651, 0.06542005389928818, -0.07240331918001175, 0.22982226312160492, 0.5080611109733582, 0.015162911266088486, -0.08217983692884445, 0.1768248975276947, 0.225447416305542, 0.23309533298015594, 0.08117566257715225, -0.08311931788921356, -0.2570006251335144, 0.19598692655563354, 0.07105404138565063, -0.09276527166366577, 0.14594271779060364, -0.11248525232076645, -0.24004721641540527, -0.2369803488254547, -0.02015511319041252, 0.025486961007118225, -0.021088555455207825, 0.11444511264562607, 0.11200515925884247, -0.10517396032810211, -0.21357877552509308, -0.04246588051319122, -0.21146278083324432, 0.05641612038016319, -0.39143645763397217, -0.039530329406261444, 0.15859420597553253, -0.12661446630954742, 0.0029719099402427673, 0.1793379783630371, -0.03759784251451492, -0.25464534759521484, 0.08934576064348221, 0.3565274477005005, -0.16391009092330933, 0.3015296459197998, -0.17717236280441284, 0.3940224051475525, 0.1660359501838684, 0.36272090673446655, -0.15576215088367462, -0.19822268187999725, -0.16987253725528717, 0.09928121417760849, -0.2425481379032135, 0.46797627210617065, 0.3604985475540161, -0.15845578908920288, -0.020052798092365265, -0.25471141934394836, 0.19300489127635956, 0.20663419365882874, -0.3039366602897644, -0.11138944327831268, 0.062205612659454346, -0.10925236344337463, 0.22073794901371002, -0.11238619685173035, -0.3608890771865845, -0.05348026007413864, 0.278540700674057, -0.2500399947166443, 0.03450595214962959, 0.10627873241901398, -0.2513643503189087, 0.11471091955900192, 0.16467566788196564, -0.1820119023323059, 0.1738000512123108, 0.2059708833694458, -0.10541479289531708, 0.1503574550151825, 0.17105351388454437, -0.01750340685248375, 0.08092574775218964, -0.029916860163211823, 0.033884696662425995, -0.16394314169883728, 0.22786204516887665, 0.003520546481013298, -0.25502100586891174, 0.09717562794685364, 0.109102264046669, 0.04480060189962387, -0.23376990854740143, -0.10085342824459076, -0.40926241874694824, -0.18921351432800293, -0.36314770579338074, 0.27967438101768494, -0.2850501835346222, 0.28972822427749634, -0.07260118424892426, 0.5501025319099426, 0.3119484484195709, 0.3224925398826599, 0.11833354830741882, 0.5347532629966736, 0.15611043572425842, -0.08858706057071686, 0.06948059797286987, 0.014288617298007011, -0.23867660760879517, -0.03318668529391289, 0.23807521164417267, -0.5674111843109131, 0.3441947102546692, 0.1870480477809906, -0.29858875274658203, -0.22010542452335358, -0.7509580254554749, 0.08529815077781677, -0.1712777316570282, 0.0878860130906105, 0.11945667117834091, -0.014056295156478882, -0.09818112850189209, 0.1504398137331009, 0.0476185604929924, -0.08066314458847046, -0.1812456250190735, -0.44620493054389954, -0.11282183974981308, -0.053594816476106644, 0.124686598777771, -0.1459948718547821, -0.24495108425617218, -0.2000209391117096, 0.7093467712402344, 0.12851513922214508, -0.04166296869516373, -0.19441473484039307, -0.02215353213250637, 0.10464081913232803, 0.07261525839567184, 0.03446649760007858, -0.16707032918930054, -0.2603197991847992, 0.3000454306602478, -0.20267456769943237, -0.3643231987953186, -0.32434168457984924, 0.0013606343418359756, 0.22548320889472961, -0.1465923935174942, -0.23907537758350372, -0.010721249505877495, 0.14377941191196442, 0.06592024862766266, 0.044060081243515015, -0.07305507361888885, 0.3194316029548645, -0.016242826357483864, 0.13318102061748505, -0.17200499773025513, -0.09394785761833191, 0.09676344692707062, 0.09282888472080231, 0.28798237442970276, 0.4254852831363678, 0.38556358218193054, 0.11473590135574341, 0.5943063497543335, 0.15866385400295258, -0.36174124479293823, -0.019120685756206512, -0.19708919525146484, 0.3375529944896698, 0.001900605857372284, -0.1312398463487625, 0.05358079448342323, 0.22660356760025024, 0.30888211727142334, 0.34828680753707886, 0.02451438456773758, 0.17569677531719208, 0.026971042156219482, -0.07800862193107605, -0.12429866194725037, 0.04096510633826256, -0.05635529011487961, -0.13743865489959717, 0.03035254403948784, 0.08907352387905121, -0.21208986639976501, -0.4295065104961395, -0.18632358312606812, 0.0970333069562912, -0.04485628008842468, 0.5443865656852722, 0.2416342794895172, -0.19749273359775543, 0.02531566098332405, -0.5322608351707458, 0.31292790174484253, 0.007766721770167351, 0.3117513954639435, 0.033726196736097336, 0.19429129362106323, -0.0006305649876594543, 0.0010946665424853563, 0.5282279849052429, 0.24376296997070312, -0.07491250336170197, -0.042042188346385956, -0.39316850900650024, -0.5756996870040894, -0.11803077161312103, -0.11546394228935242, 0.18592768907546997, 0.021797005087137222, 0.6845786571502686, -0.2646549940109253, -0.06277912855148315, -0.05137300491333008, 0.07876557856798172, -0.28743764758110046, -0.16378897428512573, -0.0358264297246933, -0.04975976422429085, -0.1707421839237213, 0.017478905618190765, 0.08370054513216019, 0.28766801953315735, -0.15593121945858002, 0.12587431073188782, -0.12961851060390472, -0.3580825924873352, 0.19276931881904602, 0.13706906139850616, 0.1568394899368286, 0.3152795135974884, -0.12801724672317505, 0.3339158594608307, 0.056041616946458817, 0.2923371195793152, 0.19575029611587524, 0.08319677412509918, -0.43267905712127686, 0.11740471422672272, 0.28784191608428955, 0.2792850434780121, 0.21981413662433624, -0.2570256292819977, 0.28330084681510925, 0.25102776288986206, -0.035838089883327484, -0.5595210194587708, 0.41127780079841614, 0.38097721338272095, 0.24105852842330933, -0.47667133808135986, -0.3167453706264496, 0.5826409459114075, 0.20912405848503113, -0.17485511302947998, 0.6334872245788574, 0.3651629090309143, -0.3605104088783264, 0.08658485114574432, -0.33119916915893555, 0.6816818118095398, -0.2224525660276413, 0.17021627724170685, -0.029327314347028732, 0.09221330285072327, 0.669834315776825, -0.047143932431936264, -0.00906650722026825, -0.18214820325374603, -0.2112032026052475, -0.20698858797550201, 0.03960246220231056, 0.2843897044658661, 0.29181230068206787, -0.043125640600919724, 0.2503145635128021, 0.19522793591022491, 0.284878134727478, 0.3110988736152649, 0.757586658000946, 0.13368600606918335, -0.06551854312419891, -0.46850547194480896, -0.05100242421030998, 0.11770252138376236, 0.11585134267807007, -0.031005291268229485, 0.07551472634077072, -0.05576099827885628, -0.16835758090019226, -0.37853115797042847, -0.5214610695838928, -0.33795708417892456, 0.2133534550666809, 0.06051209196448326, -0.36159294843673706, 0.33729088306427, 0.40333858132362366, 0.35360926389694214, 0.21292348206043243, -0.4151671826839447, 0.1165287047624588, -0.024528704583644867, -0.21726514399051666, -0.1370316743850708, -0.1770615130662918, 0.13173961639404297, 0.012643396854400635, 0.034398309886455536, 0.018212396651506424, 0.1898031085729599, -0.22034293413162231, -0.4698924422264099, -0.32279956340789795, 0.13788747787475586, -0.20137326419353485, -0.04842933267354965, -0.051743850111961365, 0.1538577526807785, -0.13273833692073822, 0.026455188170075417, 0.13443753123283386, -0.17832298576831818, -0.33907291293144226, 0.424580842256546, -0.026294846087694168, -0.01078471913933754, 0.6012629866600037, -0.007174644619226456, -0.12255411595106125, 0.6522632837295532, -0.04770146682858467, 0.18781977891921997, 0.13456395268440247, -0.060842178761959076, 0.44137153029441833, 0.02667185664176941, 0.05239340662956238, 0.29157787561416626, -0.1771223098039627, -0.09912889450788498, 0.05953837186098099, 0.15869982540607452, -0.29469266533851624, 0.04556918516755104, -0.12118887901306152, -0.20388831198215485, 0.19273808598518372, -0.07610715925693512, 0.2499680370092392, 0.30725592374801636, 0.21192573010921478, -0.3740540146827698, -0.018920572474598885, -0.14490006864070892, 0.245998814702034, 0.27645808458328247, 0.01941627450287342, 0.21881212294101715, 0.33072128891944885, -0.11518734693527222, 0.055446330457925797, 0.0306484866887331, 0.1763216108083725, -0.08768076449632645, -0.049300674349069595, -0.26771748065948486, 0.16763316094875336, -0.17322126030921936, -0.09114256501197815, 0.13790489733219147, -0.05486520007252693, -0.12265922129154205, -0.0834440365433693, 0.2543404996395111, 0.18468055129051208, 0.13311448693275452, -0.014245526865124702, 0.0699995830655098, 0.08844563364982605, 0.0743001326918602, 0.2885843515396118, -0.09780189394950867, -0.05296112596988678, 0.3952964246273041, 0.34860360622406006, 0.17113594710826874, 0.022441819310188293, -0.23790965974330902, 0.11961394548416138, 0.050734858959913254, -0.09265664964914322, 0.3573981523513794, -0.14945483207702637, -0.23960106074810028, 0.16873706877231598, 0.45702943205833435, 0.28405600786209106, -0.1999226212501526, 0.07920661568641663, 0.3891277611255646, 0.008794969879090786, -0.31984975934028625, -0.07285943627357483, 0.3093057870864868, -0.05708333104848862, -0.03746866062283516, 0.25339412689208984, 0.13685177266597748, 0.09398345649242401, -0.23645909130573273, -0.07647044956684113, 0.3150089383125305, -0.25068581104278564, 0.4231298863887787, 0.06298089772462845, 0.01756095513701439, -0.14455348253250122, 0.034148912876844406, 0.25889718532562256, 0.1857413798570633, 0.23879384994506836, 0.08240289241075516, 0.22312912344932556, 0.009264776483178139, 0.23372706770896912, 0.4292513132095337, -0.21601957082748413, -0.11861585080623627, 0.18022702634334564, -0.12649503350257874, 0.33024442195892334, -0.16170713305473328, 0.4754985570907593, 0.09418869018554688, -0.13594788312911987, -0.17014405131340027, 0.10682280361652374, 0.027277609333395958, -0.6123769283294678, 0.02122681960463524, -0.1530231535434723, 0.21561461687088013, -0.011836836114525795, -0.016358710825443268, -0.39205729961395264, -0.043478965759277344, 0.07334398478269577, 0.02717084437608719, -0.16791218519210815, -0.4322155714035034, 0.0840630903840065, 0.2445545494556427, 0.05273917689919472, 0.39460238814353943, 0.13444454967975616, -0.00683990865945816, 0.3183879256248474, 0.14075355231761932, 0.3021359443664551, -0.07125908881425858, 0.14301013946533203, -0.07791835069656372, -0.21944241225719452, 0.04040610045194626, 0.05921307951211929, 0.27529796957969666, 0.1764279305934906, 0.24531711637973785, 0.04561198875308037, 0.007121160626411438, 0.11040781438350677, -0.03192778304219246, -0.07434403896331787, -0.12073490023612976, -0.5520321726799011, -0.21863368153572083, -0.06475707143545151, -0.03243584185838699, -0.06314162909984589, 0.24794262647628784, -0.13029584288597107, 0.04027130454778671, 0.46503719687461853, 0.16221988201141357, 0.21799114346504211, 0.20187963545322418, -0.010963009670376778, 0.02008494734764099, 0.38263019919395447, 0.0004638470709323883, 0.25463467836380005, 0.20110005140304565, -0.06318900734186172, -0.4123651087284088, 0.11096072942018509, 0.13614152371883392, 0.08645956218242645, 0.010564225725829601, -0.1745959222316742, 0.37024953961372375, -0.19183574616909027, -0.08288714289665222, -0.5370723605155945, -0.07397822290658951, -0.056931234896183014, -0.029006602242588997, -0.14793924987316132, 0.20841127634048462, 0.3171384632587433, 0.007305063307285309, 0.16269376873970032, 0.08483946323394775, -0.14380991458892822, -0.15909767150878906, -0.2946227788925171, 0.2280697226524353, -0.15209627151489258, 0.13720756769180298, 0.2975098490715027, 0.24053366482257843, 0.2827458381652832, -0.05404241755604744, -0.0656702071428299, -0.5796127915382385, -0.0611608512699604, -0.48813486099243164, 0.5266405344009399, -0.27440449595451355, 0.23831579089164734, -0.42109566926956177, -0.3553825318813324, -0.1209588423371315, 0.20576588809490204, -0.10532283782958984, -0.25426185131073, -0.15752853453159332, 0.0726323053240776, -0.23157885670661926, 0.04516142979264259, 0.11016053706407547, 0.19645637273788452, -0.16583578288555145, 0.08455483615398407, -0.1029304713010788, -0.13473092019557953, 0.7250210642814636, -0.5993902683258057, 0.05327838286757469, -0.12481682747602463, 0.13267816603183746, 0.4698578715324402, -0.1055748388171196, -0.7315384745597839, 0.23839515447616577, 0.4232446551322937, 0.20202800631523132, -0.09112148731946945, 0.32282406091690063, -0.08063589036464691, 0.1689341962337494, -0.19250455498695374, 0.890220046043396, -0.2107892632484436, -0.38399457931518555, -0.19414611160755157, -0.4124879240989685 ]
https://github.com/huggingface/datasets/issues/3859
Unable to dowload big_patent (FileNotFoundError)
Hi @slvcsl, thanks for reporting. Yesterday we just made a patch release of our `datasets` library that fixes this issue: version 1.18.4. https://pypi.org/project/datasets/#history Please, feel free to update `datasets` library to the latest version: ```shell pip install -U datasets ``` And then you should force redownload of the data file to update your local cache: ```python ds = load_dataset("big_patent", "g", split="validation", download_mode="force_redownload") ``` - Note that before the fix, you just downloaded and cached the Google Drive virus scan warning page, instead of the data file This issue was already reported - #3784 and its root cause is a change in the Google Drive service. See: - #3786 We already fixed it. See: - #3787
## Describe the bug I am trying to download some splits of the big_patent dataset, using the following code: `ds = load_dataset("big_patent", "g", split="validation", download_mode="force_redownload") ` However, this leads to a FileNotFoundError. FileNotFoundError Traceback (most recent call last) [<ipython-input-3-8d8a745706a9>](https://localhost:8080/#) in <module>() 1 from datasets import load_dataset ----> 2 ds = load_dataset("big_patent", "g", split="validation", download_mode="force_redownload") 8 frames [/usr/local/lib/python3.7/dist-packages/datasets/load.py](https://localhost:8080/#) in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, script_version, **config_kwargs) 1705 ignore_verifications=ignore_verifications, 1706 try_from_hf_gcs=try_from_hf_gcs, -> 1707 use_auth_token=use_auth_token, 1708 ) 1709 [/usr/local/lib/python3.7/dist-packages/datasets/builder.py](https://localhost:8080/#) in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs) 593 if not downloaded_from_gcs: 594 self._download_and_prepare( --> 595 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 596 ) 597 # Sync info [/usr/local/lib/python3.7/dist-packages/datasets/builder.py](https://localhost:8080/#) in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 659 split_dict = SplitDict(dataset_name=self.name) 660 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs) --> 661 split_generators = self._split_generators(dl_manager, **split_generators_kwargs) 662 663 # Checksums verification [/root/.cache/huggingface/modules/datasets_modules/datasets/big_patent/bdefa7c0b39fba8bba1c6331b70b738e30d63c8ad4567f983ce315a5fef6131c/big_patent.py](https://localhost:8080/#) in _split_generators(self, dl_manager) 123 split_types = ["train", "val", "test"] 124 extract_paths = dl_manager.extract( --> 125 {k: os.path.join(dl_path, "bigPatentData", k + ".tar.gz") for k in split_types} 126 ) 127 extract_paths = {k: os.path.join(extract_paths[k], k) for k in split_types} [/usr/local/lib/python3.7/dist-packages/datasets/utils/download_manager.py](https://localhost:8080/#) in extract(self, path_or_paths, num_proc) 282 download_config.extract_compressed_file = True 283 extracted_paths = map_nested( --> 284 partial(cached_path, download_config=download_config), path_or_paths, num_proc=num_proc, disable_tqdm=False 285 ) 286 path_or_paths = NestedDataStructure(path_or_paths) [/usr/local/lib/python3.7/dist-packages/datasets/utils/py_utils.py](https://localhost:8080/#) in map_nested(function, data_struct, dict_only, map_list, map_tuple, map_numpy, num_proc, types, disable_tqdm) 260 mapped = [ 261 _single_map_nested((function, obj, types, None, True)) --> 262 for obj in utils.tqdm(iterable, disable=disable_tqdm) 263 ] 264 else: [/usr/local/lib/python3.7/dist-packages/datasets/utils/py_utils.py](https://localhost:8080/#) in <listcomp>(.0) 260 mapped = [ 261 _single_map_nested((function, obj, types, None, True)) --> 262 for obj in utils.tqdm(iterable, disable=disable_tqdm) 263 ] 264 else: [/usr/local/lib/python3.7/dist-packages/datasets/utils/py_utils.py](https://localhost:8080/#) in _single_map_nested(args) 194 # Singleton first to spare some computation 195 if not isinstance(data_struct, dict) and not isinstance(data_struct, types): --> 196 return function(data_struct) 197 198 # Reduce logging to keep things readable in multiprocessing with tqdm [/usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py](https://localhost:8080/#) in cached_path(url_or_filename, download_config, **download_kwargs) 314 elif is_local_path(url_or_filename): 315 # File, but it doesn't exist. --> 316 raise FileNotFoundError(f"Local file {url_or_filename} doesn't exist") 317 else: 318 # Something unknown FileNotFoundError: Local file /root/.cache/huggingface/datasets/downloads/extracted/ad068abb3e11f9f2f5440b62e37eb2b03ee515df9de1637c55cd1793b68668b2/bigPatentData/train.tar.gz doesn't exist I have tried this in a number of machines, including on Colab, so I think this is not environment dependent. How do I load the bigPatent dataset?
115
Unable to dowload big_patent (FileNotFoundError) ## Describe the bug I am trying to download some splits of the big_patent dataset, using the following code: `ds = load_dataset("big_patent", "g", split="validation", download_mode="force_redownload") ` However, this leads to a FileNotFoundError. FileNotFoundError Traceback (most recent call last) [<ipython-input-3-8d8a745706a9>](https://localhost:8080/#) in <module>() 1 from datasets import load_dataset ----> 2 ds = load_dataset("big_patent", "g", split="validation", download_mode="force_redownload") 8 frames [/usr/local/lib/python3.7/dist-packages/datasets/load.py](https://localhost:8080/#) in load_dataset(path, name, data_dir, data_files, split, cache_dir, features, download_config, download_mode, ignore_verifications, keep_in_memory, save_infos, revision, use_auth_token, task, streaming, script_version, **config_kwargs) 1705 ignore_verifications=ignore_verifications, 1706 try_from_hf_gcs=try_from_hf_gcs, -> 1707 use_auth_token=use_auth_token, 1708 ) 1709 [/usr/local/lib/python3.7/dist-packages/datasets/builder.py](https://localhost:8080/#) in download_and_prepare(self, download_config, download_mode, ignore_verifications, try_from_hf_gcs, dl_manager, base_path, use_auth_token, **download_and_prepare_kwargs) 593 if not downloaded_from_gcs: 594 self._download_and_prepare( --> 595 dl_manager=dl_manager, verify_infos=verify_infos, **download_and_prepare_kwargs 596 ) 597 # Sync info [/usr/local/lib/python3.7/dist-packages/datasets/builder.py](https://localhost:8080/#) in _download_and_prepare(self, dl_manager, verify_infos, **prepare_split_kwargs) 659 split_dict = SplitDict(dataset_name=self.name) 660 split_generators_kwargs = self._make_split_generators_kwargs(prepare_split_kwargs) --> 661 split_generators = self._split_generators(dl_manager, **split_generators_kwargs) 662 663 # Checksums verification [/root/.cache/huggingface/modules/datasets_modules/datasets/big_patent/bdefa7c0b39fba8bba1c6331b70b738e30d63c8ad4567f983ce315a5fef6131c/big_patent.py](https://localhost:8080/#) in _split_generators(self, dl_manager) 123 split_types = ["train", "val", "test"] 124 extract_paths = dl_manager.extract( --> 125 {k: os.path.join(dl_path, "bigPatentData", k + ".tar.gz") for k in split_types} 126 ) 127 extract_paths = {k: os.path.join(extract_paths[k], k) for k in split_types} [/usr/local/lib/python3.7/dist-packages/datasets/utils/download_manager.py](https://localhost:8080/#) in extract(self, path_or_paths, num_proc) 282 download_config.extract_compressed_file = True 283 extracted_paths = map_nested( --> 284 partial(cached_path, download_config=download_config), path_or_paths, num_proc=num_proc, disable_tqdm=False 285 ) 286 path_or_paths = NestedDataStructure(path_or_paths) [/usr/local/lib/python3.7/dist-packages/datasets/utils/py_utils.py](https://localhost:8080/#) in map_nested(function, data_struct, dict_only, map_list, map_tuple, map_numpy, num_proc, types, disable_tqdm) 260 mapped = [ 261 _single_map_nested((function, obj, types, None, True)) --> 262 for obj in utils.tqdm(iterable, disable=disable_tqdm) 263 ] 264 else: [/usr/local/lib/python3.7/dist-packages/datasets/utils/py_utils.py](https://localhost:8080/#) in <listcomp>(.0) 260 mapped = [ 261 _single_map_nested((function, obj, types, None, True)) --> 262 for obj in utils.tqdm(iterable, disable=disable_tqdm) 263 ] 264 else: [/usr/local/lib/python3.7/dist-packages/datasets/utils/py_utils.py](https://localhost:8080/#) in _single_map_nested(args) 194 # Singleton first to spare some computation 195 if not isinstance(data_struct, dict) and not isinstance(data_struct, types): --> 196 return function(data_struct) 197 198 # Reduce logging to keep things readable in multiprocessing with tqdm [/usr/local/lib/python3.7/dist-packages/datasets/utils/file_utils.py](https://localhost:8080/#) in cached_path(url_or_filename, download_config, **download_kwargs) 314 elif is_local_path(url_or_filename): 315 # File, but it doesn't exist. --> 316 raise FileNotFoundError(f"Local file {url_or_filename} doesn't exist") 317 else: 318 # Something unknown FileNotFoundError: Local file /root/.cache/huggingface/datasets/downloads/extracted/ad068abb3e11f9f2f5440b62e37eb2b03ee515df9de1637c55cd1793b68668b2/bigPatentData/train.tar.gz doesn't exist I have tried this in a number of machines, including on Colab, so I think this is not environment dependent. How do I load the bigPatent dataset? Hi @slvcsl, thanks for reporting. Yesterday we just made a patch release of our `datasets` library that fixes this issue: version 1.18.4. https://pypi.org/project/datasets/#history Please, feel free to update `datasets` library to the latest version: ```shell pip install -U datasets ``` And then you should force redownload of the data file to update your local cache: ```python ds = load_dataset("big_patent", "g", split="validation", download_mode="force_redownload") ``` - Note that before the fix, you just downloaded and cached the Google Drive virus scan warning page, instead of the data file This issue was already reported - #3784 and its root cause is a change in the Google Drive service. See: - #3786 We already fixed it. See: - #3787
[ -0.409182608127594, -0.12928347289562225, 0.0641917735338211, 0.30275532603263855, 0.05070797726511955, 0.025050029158592224, 0.4245096445083618, 0.520084798336029, 0.5669483542442322, -0.12240219116210938, -0.2795088589191437, 0.014819661155343056, -0.012764335609972477, 0.09161358326673508, -0.07517968863248825, 0.06534230709075928, 0.06134166941046715, -0.041581690311431885, -0.14017672836780548, -0.04314644634723663, -0.23412631452083588, -0.009427351877093315, -0.3754708170890808, 0.019970692694187164, -0.3191567063331604, -0.041360676288604736, 0.03593575954437256, 0.4875974953174591, -0.2835957705974579, -0.21602950990200043, 0.013718845322728157, -0.02935964986681938, 0.248628169298172, 0.6034820675849915, -0.00012019232235616073, 0.055101215839385986, 0.2616555690765381, -0.2132633775472641, -0.2595348656177521, -0.15047551691532135, -0.27372846007347107, -0.21400170028209686, -0.20665360987186432, -0.2374165952205658, 0.2654687762260437, -0.18542461097240448, 0.038083918392658234, 0.17928645014762878, 0.4696173667907715, 0.4779289662837982, 0.13514447212219238, 0.07047796249389648, 0.5052610635757446, -0.1460418403148651, 0.27781668305397034, 0.23407262563705444, -0.03929655998945236, 0.596419632434845, 0.026784747838974, -0.3373417854309082, -0.05096546560525894, -0.006545531563460827, -0.2900049090385437, 0.23558755218982697, -0.017330750823020935, -0.10132554918527603, 0.2768407464027405, -0.32996660470962524, 0.13840879499912262, 0.45285382866859436, 0.5327078104019165, -0.06005346029996872, -0.6008582711219788, -0.25920233130455017, 0.025601577013731003, -0.3486126661300659, 0.030534639954566956, 0.2735139727592468, 0.022332441061735153, 0.23548884689807892, 0.13594767451286316, -0.24455396831035614, -0.291301965713501, 0.37321901321411133, -0.12370601296424866, 0.020926356315612793, 0.042996782809495926, 0.1073797196149826, 0.16565194725990295, -0.1842278689146042, -0.19396398961544037, -0.30749043822288513, -0.06280727684497833, 0.21986614167690277, -0.13393379747867584, 0.052453190088272095, -0.11540856212377548, -0.08259465545415878, 0.31512296199798584, 0.21697422862052917, -0.24673829972743988, -0.13098493218421936, -0.18124814331531525, 0.2069275677204132, 0.12079519033432007, 0.033632900565862656, -0.39457467198371887, 0.3995685577392578, 0.2863134741783142, 0.3219994902610779, -0.0748620480298996, 0.026631828397512436, -0.26071810722351074, -0.105474092066288, -0.09794104099273682, -0.13737985491752625, 0.4678807854652405, -0.3414129316806793, -0.5968266725540161, 0.04519946873188019, -0.192192941904068, 0.04831244796514511, 0.1072942242026329, 0.4143807888031006, -0.08564437180757523, 0.005378846079111099, 0.053578123450279236, 0.3188655972480774, -0.25727277994155884, -0.30091479420661926, -0.17100122570991516, 0.2475244104862213, 0.007777541875839233, 0.13888844847679138, 0.26643145084381104, 0.02409984916448593, 0.2782333195209503, 0.1894695907831192, 0.15659832954406738, -0.13337638974189758, -0.07422701269388199, -0.288780152797699, -0.06938648968935013, 0.26405391097068787, -0.20734088122844696, 0.037985965609550476, 0.2896006405353546, -0.2783629298210144, -0.008960060775279999, 0.16038072109222412, -0.2918475866317749, -0.22815051674842834, -0.2985988259315491, 0.0788240060210228, -0.24245089292526245, -0.024923622608184814, -0.22073915600776672, -0.0982767790555954, 0.03319120407104492, -0.32515719532966614, -0.056754909455776215, -0.3650188446044922, 0.18430998921394348, -0.23560966551303864, 0.3637368083000183, 0.8700803518295288, -0.2324904352426529, -0.01967611163854599, -0.29196086525917053, -0.05013265088200569, 0.2321968674659729, 0.20797733962535858, -0.1641836315393448, 0.3228212594985962, -0.39766353368759155, 0.33881616592407227, 0.40602535009384155, -0.20401069521903992, -0.5110822916030884, 0.32893645763397217, -0.23113328218460083, 0.17659372091293335, 0.13495130836963654, -0.015495109371840954, 0.06875673681497574, 0.010408052243292332, 0.1246441975235939, 0.1675489842891693, 0.000907478854060173, -0.023864969611167908, -0.2583713233470917, -0.038576703518629074, 0.095635786652565, 0.34225618839263916, 0.21139885485172272, 0.0786466971039772, 0.2594873309135437, 0.49551627039909363, 0.37409043312072754, 0.01838766410946846, -0.15674476325511932, 0.03492899239063263, 0.38696953654289246, -0.053499750792980194, -0.15527266263961792, 0.01990066096186638, -0.5996231436729431, 0.2576732039451599, 0.11190076172351837, -0.3872249126434326, -0.030078008770942688, -0.00754682719707489, -0.49025124311447144, -0.06400582939386368, -0.145394429564476, -0.17702731490135193, 0.022480066865682602, 0.07465381920337677, -0.02656358666718006, 0.11159367859363556, -0.15260520577430725, 0.36741742491722107, -0.138284832239151, 0.16485098004341125, -0.12793636322021484, 0.3071938157081604, -0.060617826879024506, -0.22902703285217285, 0.02187763899564743, 0.0058755651116371155, 0.26373764872550964, -0.19328372180461884, -0.1099572703242302, 0.40186989307403564, 0.23930931091308594, 0.028104566037654877, -0.13320490717887878, -0.1455850750207901, 0.08834700286388397, -0.13368834555149078, 0.07523921877145767, 0.17723938822746277, 0.26109620928764343, -0.058078326284885406, -0.14925330877304077, 0.32640811800956726, -0.19515493512153625, -0.019876420497894287, 0.035476766526699066, -0.06287334859371185, 0.07302774488925934, -0.26960235834121704, 0.20787018537521362, 0.04296700656414032, 0.35709360241889954, -0.04021907225251198, 0.2261994332075119, -0.1291312873363495, -0.22253525257110596, -0.09720572084188461, 0.26661866903305054, -0.14589208364486694, 0.019398927688598633, -0.053997963666915894, -0.1401425004005432, 0.09413803368806839, 0.05353182554244995, 0.014584507793188095, 0.6575133800506592, 0.21541151404380798, -0.05773128941655159, 0.02097920887172222, 0.08238429576158524, -0.08769802749156952, 0.13785050809383392, -0.04576124995946884, -0.04025229811668396, 0.4476931393146515, -0.08836742490530014, -0.05158672109246254, -0.20094051957130432, -0.2694193720817566, 0.28303420543670654, 0.28858473896980286, -0.4013620913028717, 0.06501505523920059, -0.15103092789649963, -0.20833051204681396, -0.3740310072898865, 0.04508395493030548, -0.23262542486190796, -0.1690228283405304, -0.08203205466270447, 0.7632655501365662, -0.024810753762722015, 0.08526566624641418, -0.5080835819244385, -0.12525324523448944, -0.019249549135565758, -0.377082884311676, 0.024739213287830353, 0.0945354700088501, -0.12086615711450577, -0.023460624739527702, 0.6280727386474609, -0.07202116400003433, 0.26131686568260193, 0.047383710741996765, -0.31381112337112427, -0.2874835133552551, -0.17982584238052368, -0.049719348549842834, -0.06023232638835907, 0.0475258007645607, -0.05003425478935242, 0.30156898498535156, 0.031489305198192596, -0.1631525605916977, 0.05440262705087662, -0.048276446759700775, -0.11766941100358963, 0.15079252421855927, 0.06880510598421097, -0.0072458959184587, -0.12576444447040558, -0.4579572379589081, -0.17461228370666504, -0.4959089756011963, 0.22718366980552673, -0.04720257967710495, -0.07566007971763611, 0.3116776943206787, 0.08080025017261505, 0.19115149974822998, 0.05998188257217407, -0.16105134785175323, -0.12289922684431076, -0.018418002873659134, 0.4568367004394531, -0.07189708203077316, -0.37628090381622314, 0.07123689353466034, -0.033658575266599655, -0.18756237626075745, 0.13207893073558807, -0.4595251679420471, 0.1287805289030075, -0.02009132318198681, 0.11162011325359344, -0.2168239951133728, -0.1008230447769165, -0.05562746524810791, -0.3724874258041382, 0.040675967931747437, -0.1610458493232727, 0.11321276426315308, 0.017200477421283722, 0.05571989342570305, 0.40684518218040466, -0.2759087383747101, 0.15315650403499603, -0.15546178817749023, 0.6540619730949402, 0.13379652798175812, 0.09191260486841202, 0.3521001636981964, -0.04943180829286575, 0.2751893699169159, -0.08333312720060349, -0.4030643403530121, 0.1896349936723709, -0.03490108251571655, 0.04437882453203201, 0.09065191447734833, -0.19399914145469666, -0.029228629544377327, -0.20809976756572723, 0.09657599031925201, -0.2651352882385254, -0.23223091661930084, 0.06634865701198578, 0.1272192746400833, -0.20063522458076477, -0.012377109378576279, -0.04811316728591919, -0.03787263482809067, -0.06916550546884537, -0.01973002962768078, 0.23492152988910675, 0.3519769310951233, 0.08382702618837357, 0.1180618405342102, 0.05149232968688011, -0.028096146881580353, 0.387012779712677, 0.16741444170475006, 0.12317739427089691, -0.13761913776397705, -0.23975324630737305, -0.12858203053474426, 0.03243907541036606, 0.5007887482643127, 0.2897794246673584, 0.22644229233264923, 0.15998385846614838, -0.0381910465657711, -0.2014165073633194, -0.33711451292037964, -0.1525435596704483, 0.2364080846309662, 0.43817588686943054, 0.3192873001098633, -0.6061546206474304, 0.05263640359044075, 0.366687536239624, 0.3858216106891632, -0.06126633659005165, -0.06571689248085022, -0.31828564405441284, -0.21461781859397888, -0.34410375356674194, 0.04893806204199791, 0.2040136754512787, 0.22251193225383759, -0.19450928270816803, 0.2667386531829834, -0.07021558284759521, -0.0715140700340271, 0.11675915867090225, 0.07381626963615417, 0.34095531702041626, -0.14311860501766205, 0.19714578986167908, 0.07054053246974945, 0.20000937581062317, 0.4856928586959839, 0.7066227197647095, 0.22857320308685303, -0.41654902696609497, 0.002769108861684799, -0.0668865442276001, 0.06913803517818451, 0.1888989508152008, -0.03921890631318092, -0.019980981945991516, 0.022994838654994965, 0.08755097538232803, -0.011795253492891788, 0.47279655933380127, 0.2985718846321106, -0.2992548644542694, -0.5572169423103333, -0.14394262433052063, 0.5439444780349731, -0.023421816527843475, 0.1259440928697586, 0.4857424199581146, -0.06440243124961853, 0.007978398352861404, -0.21793529391288757, -0.4287041425704956, 0.7606568932533264, 0.09029176831245422, 0.07526608556509018, 0.33892667293548584, 0.09162221848964691, 0.33534762263298035, 0.06100596487522125, 0.12104159593582153, -0.4807029366493225, -0.3087187707424164, -0.01650867983698845, -0.18851646780967712, 0.1440834403038025, -0.00901242345571518, -0.10567498207092285, 0.29002541303634644, 0.07958610355854034, 0.40752652287483215, 0.0174906924366951, 0.3079221844673157, -0.01268148422241211, 0.07931943237781525, -0.03779800981283188, 0.03494647145271301, -0.17040115594863892, 0.4314500689506531, -0.1142549067735672, -0.2552019953727722, -0.3196443021297455, -0.2271195650100708, -0.42470782995224, 0.21912690997123718, -0.25140926241874695, 0.44484496116638184, -0.24621212482452393, -0.255939245223999, 0.005670422688126564, 0.0550893098115921, -0.2922362685203552, 0.05198679864406586, -0.29094937443733215, -0.05968451127409935, -0.026604361832141876, -0.31885311007499695, -0.13536985218524933, 0.03299245610833168, 0.46908965706825256, -0.05359156057238579, -0.22667735815048218, 0.011855803430080414, -0.06006089225411415, -0.045040715485811234, -0.051136210560798645, -0.0038011670112609863, 0.41792023181915283, -0.2919327914714813, -0.27413371205329895, -0.015102371573448181, 0.008405029773712158, -0.22067290544509888, 0.07026661932468414, 0.09991240501403809, -0.2345094084739685, -0.12786662578582764, -0.025478046387434006, -0.30491405725479126, -0.16266340017318726, 0.47721540927886963, -0.2732427716255188, 0.05860694497823715, 0.6978307962417603, 0.017213668674230576, -0.08140236884355545, -0.19323617219924927, 0.1876760721206665, -0.08088093250989914, -0.6468715071678162, 0.2430969476699829, -0.011466696858406067, 0.26891154050827026, 0.0331852063536644, 0.003543563187122345, 0.2039283961057663, -0.2327021360397339, 0.20418544113636017, -0.4186706840991974, -0.20992867648601532, 0.1457992047071457, -0.33651360869407654, 0.10353392362594604, -0.08163084089756012, 0.11363212764263153, -0.11207526177167892, -0.06393759697675705, -0.2087586373090744, 0.25839096307754517, -0.004064593464136124, 0.06773660331964493, 0.2260117381811142, 0.08850884437561035, 0.017175162211060524, 0.07022365927696228, 0.15006962418556213, 0.1503930538892746, 0.09109960496425629, -0.18188312649726868, -0.28078511357307434, 0.2066284418106079, 0.062438350170850754, -0.17037619650363922, -0.08948870003223419, -0.23182238638401031, -0.0996447503566742, 0.039289508014917374, 0.1388852298259735, 0.07633787393569946, -0.11077964305877686, -0.08988524228334427, 0.3976711630821228, 0.12907609343528748, -0.24437350034713745, 0.2556905746459961, -0.024611450731754303, 0.15491615235805511, 0.10653610527515411, 0.3201918303966522, -0.006084222346544266, 0.112897127866745, -0.48089849948883057, -0.2955358922481537, -0.0252213254570961, 0.04381904378533363, 0.35227397084236145, -0.30849313735961914, 0.04321243241429329, -0.1653204709291458, 0.1641310304403305, 0.5898931622505188, -0.09025140106678009, 0.16931016743183136, 0.2562441825866699, 0.12178162485361099, -0.33421793580055237, 0.1251787543296814, 0.47033247351646423, -0.11912111192941666, -0.06289280951023102, 0.2860032320022583, -0.2642384171485901, -0.045923516154289246, -0.384615957736969, 0.12529325485229492, 0.1463858038187027, 0.4047592878341675, 0.22273683547973633, 0.673066258430481, -0.07434951514005661, 0.0999872013926506, 0.0862434059381485, 0.11442007124423981, 0.2258373349905014, 0.28726863861083984, -0.24197202920913696, 0.21530841290950775, -0.4416085183620453, -0.05250101909041405, -0.06226065009832382, -0.417359322309494, -0.16807229816913605, 0.2806463837623596, 0.0005305483937263489, 0.2518237233161926, -0.05287429690361023, 0.05874691903591156, -0.26091864705085754, 0.08410327136516571, -0.31542256474494934, 0.1401165872812271, -0.08497308939695358, 0.19468118250370026, 0.20243947207927704, -0.25348469614982605, -0.12263385951519012, 0.09790287911891937, 0.01965666562318802, -0.09394653141498566, 0.3076061010360718, 0.3914308547973633, -0.1800818294286728, -0.1773514449596405, -0.08385313302278519, 0.2662939131259918, 0.17141121625900269, -0.3743221163749695, -0.15393097698688507, 0.3410142660140991, 0.016786012798547745, 0.16417117416858673, 0.24338433146476746, 0.5462846755981445, 0.20041102170944214, -0.047172416001558304, -0.2770192623138428, 0.19339106976985931, -0.054884862154722214, 0.0718439593911171, 0.25400590896606445, -0.09298104047775269, 0.14528633654117584, 0.3697999119758606, 0.11484695971012115, -0.08940994739532471, 0.15517625212669373, -0.04432753100991249, -0.27234598994255066, -0.24454733729362488, 0.43373724818229675, -0.2144319862127304, -0.1714169830083847, -0.2841043174266815, -0.10905580967664719, -0.11137577146291733, -0.04255543649196625, 0.11326135694980621, 0.24491232633590698, 0.18745693564414978, 0.21498699486255646, 0.02578805387020111, -0.19708026945590973, 0.2552448511123657, 0.42780497670173645, 0.23320883512496948, -0.47911128401756287, 0.15267793834209442, -0.6359620690345764, 0.3168679177761078, -0.28222474455833435, -0.20140264928340912, 0.05739251896739006, 0.10240474343299866, -0.06963669508695602, 0.0881701111793518, 0.10045334696769714, -0.07159703969955444, 0.25832054018974304, 0.41267865896224976, -0.16489344835281372, -0.29082733392715454, 0.12038782984018326, -0.08795017004013062, -0.028750820085406303, -0.5476183295249939, 0.19337107241153717, -0.17022614181041718, -0.006528690457344055, 0.01823444478213787, -0.10632732510566711, 0.08292602002620697, 0.1531956046819687, 0.1652272343635559, -0.02524382434785366, 0.6471037864685059, -0.046034373342990875, -0.25875553488731384, -0.2895873785018921, -0.21358779072761536, -0.24277396500110626, 0.315378338098526, -0.041398342698812485, 0.4714624285697937, -0.045192375779151917, -0.06826448440551758, -0.3436167240142822, 0.4675619602203369, -0.12777355313301086, -0.3384525775909424, -0.16545748710632324, -0.16084463894367218, -0.2453276515007019, 0.07659292221069336, 0.11576643586158752, 0.0845874771475792, -0.32213032245635986, 0.1844504028558731, -0.32368525862693787, -0.29105639457702637, 0.5969914197921753, -0.42413845658302307, -0.15146830677986145, -0.017217343673110008, 0.39102551341056824, 0.2235751450061798, 0.05312516540288925, -0.5479186773300171, 0.36723440885543823, 0.4208161532878876, -0.004445746541023254, -0.24628038704395294, 0.17808721959590912, -0.08196510374546051, 0.07255169749259949, 0.0662507563829422, 0.6902757883071899, -0.03509631007909775, -0.45091766119003296, 0.3813480734825134, -0.03477457910776138 ]
https://github.com/huggingface/datasets/issues/3857
Order of dataset changes due to glob.glob.
I agree using `glob.glob` alone is bad practice because it's not deterministic. Using `sorted` is a nice solution. Note that the `xglob` function you are referring to in the `streaming_download_manager.py` code just extends `glob.glob` for URLs - we don't change its behavior. That's why it has no `sorted()`
## Describe the bug After discussion with @lhoestq, just want to mention here that `glob.glob(...)` should always be used in combination with `sorted(...)` to make sure the list of files returned by `glob.glob(...)` doesn't change depending on the OS system. There are currently multiple datasets that use `glob.glob()` without making use of `sorted(...)` even the streaming download manager (if I'm not mistaken): https://github.com/huggingface/datasets/blob/c14bfeb4af89da14f870de5ddaa584b08aa08eeb/src/datasets/utils/streaming_download_manager.py#L483
48
Order of dataset changes due to glob.glob. ## Describe the bug After discussion with @lhoestq, just want to mention here that `glob.glob(...)` should always be used in combination with `sorted(...)` to make sure the list of files returned by `glob.glob(...)` doesn't change depending on the OS system. There are currently multiple datasets that use `glob.glob()` without making use of `sorted(...)` even the streaming download manager (if I'm not mistaken): https://github.com/huggingface/datasets/blob/c14bfeb4af89da14f870de5ddaa584b08aa08eeb/src/datasets/utils/streaming_download_manager.py#L483 I agree using `glob.glob` alone is bad practice because it's not deterministic. Using `sorted` is a nice solution. Note that the `xglob` function you are referring to in the `streaming_download_manager.py` code just extends `glob.glob` for URLs - we don't change its behavior. That's why it has no `sorted()`
[ -0.0024276189506053925, -0.3010301887989044, -0.11895674467086792, 0.10309352725744247, 0.18960238993167877, -0.30356696248054504, 0.24733750522136688, -0.09922124445438385, 0.09327229857444763, 0.15001608431339264, -0.2698247730731964, -0.023424910381436348, 0.035651739686727524, 0.08285867422819138, 0.20312198996543884, 0.07837910950183868, 0.07056572288274765, 0.17125850915908813, -0.2998107075691223, -0.1218608096241951, -0.3105968236923218, 0.12007494270801544, -0.21675491333007812, -0.17908929288387299, 0.19365791976451874, 0.04625127092003822, 0.005676029250025749, 0.4292046129703522, -0.36708489060401917, -0.3727451264858246, -0.24067112803459167, 0.34894803166389465, -0.12430442869663239, 0.337971031665802, -0.0001028675542329438, -0.08365671336650848, 0.012935761362314224, 0.0437232181429863, -0.2008921056985855, -0.18823619186878204, -0.2675733268260956, 0.03090076707303524, -0.36391088366508484, 0.061270780861377716, -0.04701880365610123, -0.25576579570770264, 0.2195429652929306, -0.1893501728773117, 0.15662942826747894, 0.26754239201545715, 0.2785013020038605, 0.2961479425430298, -0.07960586994886398, 0.08873820304870605, 0.52298504114151, 0.06108173727989197, 0.015570363029837608, 0.2282908707857132, 0.2922358810901642, 0.2993181049823761, -0.14643210172653198, 0.32737255096435547, -0.11820629984140396, -0.10360755026340485, 0.32187551259994507, 0.147843599319458, -0.06899266690015793, -0.134720578789711, -0.05099266767501831, 0.12403132021427155, 0.25471362471580505, -0.23562681674957275, -0.4690508544445038, -0.31656861305236816, 0.1377800554037094, -0.3013277053833008, 0.3187330663204193, 0.2627427577972412, 0.2551268935203552, 0.0883730947971344, -0.07394316047430038, 0.16111522912979126, 0.033260278403759, 0.14053431153297424, -0.1492059826850891, 0.3905848562717438, -0.15039639174938202, 0.025607142597436905, 0.13477326929569244, 0.2214226871728897, 0.12168943881988525, -0.27280521392822266, -0.20209477841854095, 0.112696073949337, -0.18218442797660828, 0.020766086876392365, 0.358222633600235, 0.41281020641326904, 0.17205461859703064, 0.2590595483779907, 0.17462784051895142, 0.06613710522651672, -0.1738147735595703, 0.01041070744395256, 0.05170278251171112, 0.46398594975471497, -0.06843619793653488, -0.1004231795668602, 0.3889588713645935, 0.1797579824924469, -0.04002884030342102, -0.022643107920885086, 0.0884358361363411, -0.1022067442536354, -0.047155801206827164, 0.11462858319282532, 0.19946327805519104, 0.014694999903440475, -0.30341437458992004, -0.2451726496219635, 0.09948252886533737, 0.04776860401034355, 0.15366482734680176, 0.31839096546173096, -0.25001809000968933, -0.04875638335943222, -0.0745520144701004, 0.0934792011976242, 0.08757193386554718, 0.12355216592550278, -0.15189987421035767, -0.4035426080226898, -0.24635209143161774, 0.1749240607023239, -0.22201304137706757, -0.21100807189941406, 0.1326160579919815, 0.2444177120923996, 0.07027582824230194, 0.010314173996448517, 0.10280486941337585, -0.12567685544490814, 0.30482667684555054, 0.11247597634792328, 0.12299095094203949, 0.2755407989025116, -0.13856491446495056, 0.1838988959789276, -0.20702335238456726, 0.1691891998052597, -0.28812289237976074, -0.41202661395072937, -0.007571795955300331, 0.3168485462665558, -0.057601768523454666, 0.07654985785484314, -0.07771999388933182, -0.09580440819263458, -0.03479521721601486, -0.32736024260520935, 0.01960325986146927, 0.010310623794794083, -0.004781369119882584, -0.32780367136001587, -0.32272666692733765, 0.0834188312292099, 0.022326331585645676, -0.07517413794994354, -0.12812143564224243, 0.01119028776884079, 0.17489871382713318, 0.06271520256996155, -0.18095144629478455, -0.1822582483291626, -0.2679775357246399, 0.13822245597839355, 0.12912634015083313, -0.0907401591539383, -0.48515623807907104, 0.1564984768629074, -0.4327242374420166, 0.2601538896560669, 0.14845508337020874, 0.3623434007167816, 0.279542475938797, -0.37863102555274963, -0.0974709540605545, 0.3717963695526123, 0.28930988907814026, 0.364703893661499, -0.07868370413780212, -0.030847689136862755, -0.19798170030117035, -0.14402605593204498, -0.3000483512878418, 0.12298890203237534, 0.06264718621969223, -0.046114351600408554, 0.4065993130207062, -0.15036849677562714, -0.24014660716056824, 0.2809964716434479, 0.37900403141975403, 0.09508205950260162, 0.15539783239364624, -0.02168847620487213, -0.24322855472564697, 0.16834887862205505, -0.16601373255252838, -0.007994633167982101, -0.10719949007034302, -0.40738749504089355, -0.05925967916846275, -0.10890679061412811, -0.18522419035434723, 0.06752267479896545, 0.22029244899749756, 0.5063839554786682, 0.07636301219463348, -0.0068670604377985, -0.01186094805598259, 0.3149935007095337, -0.19145271182060242, -0.04486127197742462, -0.10964515805244446, 0.2080719769001007, -0.08344680815935135, 0.04303582012653351, 0.16401717066764832, -0.1757761538028717, 0.05313487723469734, -0.09565934538841248, -0.006009157747030258, 0.6248893141746521, -0.024280443787574768, 0.19416260719299316, 0.03532373532652855, 0.00525529682636261, 0.1998542845249176, 0.11184105277061462, 0.0606410838663578, 0.4743308424949646, -0.019369952380657196, 0.04214269667863846, 0.0021499767899513245, 0.4418463110923767, 0.2055898755788803, 0.086262047290802, 0.21363388001918793, -0.17619460821151733, -0.009571576490998268, 0.16280293464660645, -0.10558470338582993, -0.1557450294494629, 0.2065424770116806, 0.22778794169425964, 0.2814708650112152, 0.3179134130477905, -0.4193258285522461, 0.44829463958740234, 0.8029440641403198, -0.19792428612709045, 0.0793859139084816, 0.05384053289890289, -0.11780627816915512, -0.12243504077196121, 0.08042754977941513, 0.264771431684494, 0.4423919916152954, 0.3253396451473236, 0.24105043709278107, -0.05205012112855911, 0.044206403195858, -0.24542336165905, 0.08435411751270294, -0.10774454474449158, -0.0363539420068264, 0.22372284531593323, 0.2957608997821808, -0.028025664389133453, -0.38330382108688354, -0.1459735482931137, 0.013687621802091599, -0.1301027089357376, -0.19743815064430237, -0.04365753382444382, -0.16950717568397522, -0.47776687145233154, -0.2109210193157196, -0.3267466127872467, -0.4300375282764435, -0.21893858909606934, 0.19096261262893677, 0.17633020877838135, -0.20327351987361908, 0.17943167686462402, 0.14485271275043488, 0.08815926313400269, 0.0879819244146347, -0.22139737010002136, -0.06087633967399597, 0.2938152551651001, -0.10026734322309494, 0.13162830471992493, 0.04186233505606651, -0.12227371335029602, 0.33010977506637573, -0.27913036942481995, -0.22547827661037445, -0.32189133763313293, -0.30113622546195984, -0.0547819510102272, -0.05265987664461136, -0.03327339142560959, 0.01072297990322113, -0.007315531373023987, 0.06795608252286911, -0.03809836134314537, 0.055005449801683426, -0.1560007482767105, -0.21221011877059937, 0.04927850514650345, 0.023134082555770874, -0.0033007708843797445, -0.26067864894866943, -0.23894450068473816, -0.16194766759872437, -0.3508419096469879, 0.01563069596886635, 0.21903638541698456, 0.38765305280685425, 0.02684665471315384, -0.24632175266742706, -0.23871976137161255, -0.00843803584575653, -0.06223870813846588, -0.20176170766353607, -0.6392977833747864, 0.34908029437065125, -0.20724979043006897, -0.2601877450942993, -0.31838101148605347, 0.029397573322057724, -0.2741599977016449, 0.3428639769554138, -0.27020537853240967, -0.35901883244514465, -0.1124827116727829, -0.0989149957895279, 0.11929996311664581, 0.031432680785655975, 0.15631185472011566, -0.18228693306446075, -0.1636267602443695, -0.26743125915527344, 0.08401869237422943, 0.051432445645332336, 0.3413746953010559, 0.30022671818733215, 0.07755473256111145, -0.04305800795555115, 0.18199554085731506, 0.44670313596725464, -0.08303988724946976, 0.07273993641138077, 0.19690346717834473, -0.06037389487028122, 0.435490220785141, -0.23159003257751465, 0.04045481234788895, 0.07510671764612198, 0.05072662979364395, -0.004231328144669533, 0.36926013231277466, 0.2569881081581116, 0.13241919875144958, 0.0274837464094162, 0.25077927112579346, -0.2625424265861511, -0.07667633891105652, 0.07063934206962585, 0.27427372336387634, -0.09851113706827164, 0.12024284899234772, 0.11075829714536667, -0.17959274351596832, -0.04669366031885147, -0.06506125628948212, 0.1894298791885376, 0.15052694082260132, 0.13365262746810913, -0.2575984001159668, 0.06031700596213341, -0.3704691529273987, 0.09401201456785202, 0.08155280351638794, -0.21616575121879578, 0.216430202126503, -0.09937060624361038, 0.1462656557559967, -0.24113032221794128, 0.3231787383556366, 0.1509498953819275, 0.0870843380689621, 0.07736347615718842, -0.054704613983631134, -0.21204175055027008, -0.021946759894490242, -0.2557334303855896, 0.047846827656030655, 0.3341154456138611, 0.3253519535064697, -0.37489834427833557, 0.006127111613750458, 0.012871849350631237, 0.03889046981930733, 0.013844329863786697, -0.24624940752983093, -0.4297642111778259, -0.257834792137146, -0.1391884833574295, -0.18248379230499268, 0.05724033713340759, -0.03302372992038727, -0.4967914819717407, -0.3156484365463257, 0.09201756864786148, -0.09556218236684799, -0.02148161083459854, -0.15872037410736084, 0.372875839471817, 0.06076209247112274, -0.17256787419319153, 0.14709904789924622, 0.3546217083930969, 0.1442224681377411, 0.446612685918808, 0.13547667860984802, -0.15653908252716064, -0.10638286918401718, -0.0641838014125824, -0.343243807554245, 0.4358707666397095, -0.12113896757364273, 0.16661366820335388, -0.013140194118022919, 0.21376264095306396, 0.013611672446131706, 0.32614976167678833, 0.5075035095214844, -0.20275460183620453, -0.4569193720817566, -0.5482825040817261, 0.5241411328315735, -0.03073197603225708, -0.37075644731521606, 0.7505216598510742, 0.17328715324401855, -0.304170161485672, -0.15225185453891754, 0.13133959472179413, 0.8963181972503662, -0.07213129103183746, 0.21478791534900665, 0.45538491010665894, -0.14763781428337097, 0.0875791609287262, 0.00402677059173584, 0.4842113256454468, -0.4652154743671417, -0.5597547888755798, -0.057703569531440735, -0.20844769477844238, 0.001310504972934723, 0.12993299961090088, -0.13578517735004425, 0.18674321472644806, -0.12377588450908661, 0.5899823307991028, -0.17324939370155334, 0.1407223343849182, -0.42330655455589294, -0.04179750755429268, -0.4112013578414917, 0.2171630561351776, 0.16217558085918427, 0.1256876438856125, -0.1778334081172943, -0.05181436985731125, 0.0903044193983078, -0.003743089735507965, 0.24108873307704926, 0.05484206974506378, -0.49074622988700867, -0.010241851210594177, -0.4181431829929352, -0.1585540771484375, -0.5950090885162354, 0.4116537570953369, -0.37263059616088867, 0.015926893800497055, 0.10529710352420807, 0.2467898428440094, -0.01306615024805069, 0.3487107455730438, 0.12674644589424133, -0.17481715977191925, 0.12303828448057175, -0.037886444479227066, 0.024661250412464142, -0.09912224858999252, 0.15058277547359467, -0.34178584814071655, -0.19049395620822906, 0.03377540409564972, -0.19672326743602753, 0.09646385163068771, -0.05469774454832077, 0.3214527368545532, 0.004329673945903778, -0.24234071373939514, 0.21358314156532288, -0.15408378839492798, -0.059408534318208694, 0.2549733519554138, -0.4908891022205353, -0.20847395062446594, -0.4209684133529663, 0.4456557631492615, 0.1594100296497345, 0.14457771182060242, -0.0466732531785965, -0.08339609205722809, -0.1441114842891693, -0.18804773688316345, 0.10562696307897568, -0.17102240025997162, -0.034001123160123825, 0.2940577566623688, -0.1712377816438675, 0.0026608407497406006, 0.03885830566287041, 0.005762360990047455, 0.030321484431624413, 0.2075464129447937, -0.20404259860515594, -0.1792471706867218, 0.044418975710868835, -0.07569438219070435, 0.16660133004188538, 0.08991250395774841, -0.13942445814609528, 0.08631989359855652, 0.035684049129486084, -0.19551339745521545, -0.46599486470222473, -0.03389769792556763, 0.007460212334990501, 0.11741362512111664, -0.15378698706626892, 0.21514299511909485, 0.2701052129268646, 0.013686807826161385, 0.21765846014022827, -0.015348993241786957, -0.22509904205799103, -0.2965521514415741, 0.037995029240846634, 0.048470571637153625, 0.016914257779717445, -0.14499537646770477, 0.1088511198759079, -0.34451448917388916, -0.0939098447561264, -0.2951144576072693, 0.4283052980899811, 0.3212816119194031, 0.07568011432886124, -0.26495641469955444, 0.10501205921173096, 0.015051443129777908, 0.30836039781570435, 0.21641600131988525, -0.22877517342567444, -0.10009007155895233, 0.048527710139751434, 0.1630021333694458, -0.08954177796840668, -0.025294229388237, 0.07922716438770294, -0.0044529736042022705, 0.1289120614528656, 0.253633588552475, 0.379143625497818, -0.23921258747577667, -0.006765980273485184, 0.056724511086940765, 0.716646671295166, 0.2968598008155823, -0.027101680636405945, -0.35606566071510315, -0.12232286483049393, 0.3013504445552826, -0.14987486600875854, -0.256466269493103, -0.06866440176963806, 0.09354785829782486, 0.05091695114970207, 0.00014218688011169434, 0.18222439289093018, 0.11422957479953766, 0.11019041389226913, 0.056094780564308167, 0.299511194229126, 0.2272106409072876, 0.28634920716285706, 0.2778952121734619, 0.17997309565544128, 0.24205167591571808, 0.21774551272392273, 0.11734804511070251, 0.111752450466156, 0.37517619132995605, -0.09002286940813065, 0.5579399466514587, 0.06806287169456482, -0.1441594362258911, -0.0871138796210289, -0.3135462701320648, -0.20152533054351807, 0.34246811270713806, -0.23694217205047607, 0.14196190237998962, 0.33864089846611023, -0.05288443714380264, -0.42270055413246155, -0.21289733052253723, -0.23543097078800201, 0.1820296347141266, -0.010906588286161423, 0.05363607034087181, -0.13418710231781006, -0.10793209820985794, -0.022598356008529663, 0.10861900448799133, -0.13412852585315704, -0.13731008768081665, 0.04209227114915848, -0.014199644327163696, -0.040182456374168396, -0.6556618809700012, 0.038073230534791946, -0.12994927167892456, 0.21207723021507263, -0.07962465286254883, 0.16581173241138458, 0.24569278955459595, 0.2578011155128479, 0.36197373270988464, -0.037106797099113464, 0.07864730805158615, 0.2776385545730591, 0.20653647184371948, -0.08506184071302414, 0.014939925633370876, -0.029129788279533386, -0.2169298231601715, -0.02829841896891594, -0.09335274994373322, 0.15557043254375458, 0.34689977765083313, 0.2850203216075897, -0.3293026387691498, 0.14311175048351288, 0.15235286951065063, 0.09090425074100494, 0.09537862241268158, 0.35840120911598206, -0.41842517256736755, -0.13719117641448975, -0.11628493666648865, -0.07580869644880295, -0.33045127987861633, 0.09830662608146667, 0.18559087812900543, 0.02728090062737465, 0.10803540796041489, -0.11160821467638016, 0.12813624739646912, 0.18200506269931793, 0.23423027992248535, 0.1487317681312561, 0.12776422500610352, -0.09960845112800598, -0.4332696199417114, -0.6277768611907959, 0.19424694776535034, 0.31979960203170776, -0.02715211547911167, -0.1595875769853592, 0.08295227587223053, -0.24228528141975403, -0.17315568029880524, 0.2793349623680115, -0.016930872574448586, 0.10344450920820236, 0.11401046812534332, -0.39965397119522095, -0.012067899107933044, -0.3299391269683838, 0.12965741753578186, -0.23721395432949066, -0.30656784772872925, 0.014813374727964401, -0.29890647530555725, 0.25096753239631653, -0.07353255897760391, 0.2709842920303345, -0.17831650376319885, -0.2873144745826721, 0.5472943782806396, 0.15394164621829987, -0.09891766309738159, -0.26723188161849976, -0.07367462664842606, -0.012651775032281876, -0.11579196155071259, -0.33129122853279114, -0.16483289003372192, -0.03888625279068947, 0.3658762276172638, -0.006105119828134775, -0.07548819482326508, -0.25074899196624756, 0.4459778666496277, 0.3117547035217285, 0.18505382537841797, -0.30496248602867126, 0.1289452463388443, -0.18396379053592682, -0.11866454035043716, 0.03263507038354874, 0.3180517852306366, 0.14835870265960693, -0.02311532013118267, -0.07033396512269974, -0.2410949319601059, 0.41563066840171814, 0.02211523801088333, -0.04050814360380173, -0.08457358926534653, 0.44469839334487915, 0.34362879395484924, 0.043280672281980515, -0.18511272966861725, 0.14690521359443665, 0.26194101572036743, -0.03431518375873566, -0.04180803894996643, 0.24670162796974182, -0.16430038213729858, 0.10091307759284973, -0.09767577797174454, -0.1943119764328003, 0.09797685593366623, -0.5461506247520447, 0.2887110710144043, -0.14014104008674622 ]
https://github.com/huggingface/datasets/issues/3855
Bad error message when loading private dataset
We raise the error “ FileNotFoundError: can’t find the dataset” mainly to follow best practice in security (otherwise users could be able to guess what private repositories users/orgs may have) We can indeed reformulate this and add the "If this is a private repository,..." part !
## Describe the bug A pretty common behavior of an interaction between the Hub and datasets is the following. An organization adds a dataset in private mode and wants to load it afterward. ```python from transformers import load_dataset ds = load_dataset("NewT5/dummy_data", "dummy") ``` This command then fails with: ```bash FileNotFoundError: Couldn't find a dataset script at /home/patrick/NewT5/dummy_data/dummy_data.py or any data file in the same directory. Couldn't find 'NewT5/dummy_data' on the Hugging Face Hub either: FileNotFoundError: Dataset 'NewT5/dummy_data' doesn't exist on the Hub ``` **even though** the user has access to the website `NewT5/dummy_data` since she/he is part of the org. We need to improve the error message here similar to how @sgugger, @LysandreJik and @julien-c have done it for transformers IMO. ## Steps to reproduce the bug E.g. execute the following code to see the different error messages between `transformes` and `datasets`. 1. Transformers ```python from transformers import BertModel BertModel.from_pretrained("NewT5/dummy_model") ``` The error message is clearer here - it gives: ``` OSError: patrickvonplaten/gpt2-xl is not a local folder and is not a valid model identifier listed on 'https://huggingface.co/models' If this is a private repository, make sure to pass a token having permission to this repo with `use_auth_token` or log in with `huggingface-cli login` and pass `use_auth_token=True`. ``` Let's maybe do the same for datasets? The PR was introduced to `transformers` here: https://github.com/huggingface/transformers/pull/15261 ## Expected results Better error message ## 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.18.4.dev0 - Platform: Linux-5.15.15-76051515-generic-x86_64-with-glibc2.34 - Python version: 3.9.7 - PyArrow version: 6.0.1
46
Bad error message when loading private dataset ## Describe the bug A pretty common behavior of an interaction between the Hub and datasets is the following. An organization adds a dataset in private mode and wants to load it afterward. ```python from transformers import load_dataset ds = load_dataset("NewT5/dummy_data", "dummy") ``` This command then fails with: ```bash FileNotFoundError: Couldn't find a dataset script at /home/patrick/NewT5/dummy_data/dummy_data.py or any data file in the same directory. Couldn't find 'NewT5/dummy_data' on the Hugging Face Hub either: FileNotFoundError: Dataset 'NewT5/dummy_data' doesn't exist on the Hub ``` **even though** the user has access to the website `NewT5/dummy_data` since she/he is part of the org. We need to improve the error message here similar to how @sgugger, @LysandreJik and @julien-c have done it for transformers IMO. ## Steps to reproduce the bug E.g. execute the following code to see the different error messages between `transformes` and `datasets`. 1. Transformers ```python from transformers import BertModel BertModel.from_pretrained("NewT5/dummy_model") ``` The error message is clearer here - it gives: ``` OSError: patrickvonplaten/gpt2-xl is not a local folder and is not a valid model identifier listed on 'https://huggingface.co/models' If this is a private repository, make sure to pass a token having permission to this repo with `use_auth_token` or log in with `huggingface-cli login` and pass `use_auth_token=True`. ``` Let's maybe do the same for datasets? The PR was introduced to `transformers` here: https://github.com/huggingface/transformers/pull/15261 ## Expected results Better error message ## 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.18.4.dev0 - Platform: Linux-5.15.15-76051515-generic-x86_64-with-glibc2.34 - Python version: 3.9.7 - PyArrow version: 6.0.1 We raise the error “ FileNotFoundError: can’t find the dataset” mainly to follow best practice in security (otherwise users could be able to guess what private repositories users/orgs may have) We can indeed reformulate this and add the "If this is a private repository,..." part !
[ -0.13395632803440094, -0.0272287055850029, 0.07090653479099274, 0.517871081829071, 0.14277496933937073, 0.0169358029961586, 0.5494260787963867, 0.17654740810394287, 0.2100435197353363, 0.1455807089805603, -0.4457779824733734, 0.0675094872713089, -0.030568130314350128, -0.05276184529066086, -0.005145899020135403, -0.11118577420711517, -0.023831449449062347, 0.24743103981018066, 0.007413201034069061, -0.23092839121818542, -0.11081986129283905, 0.12454938888549805, -0.1015661433339119, 0.38441431522369385, -0.3579043447971344, -0.06126862019300461, 0.11664989590644836, 0.34433743357658386, 0.056933410465717316, -0.31235745549201965, 0.43740469217300415, 0.025878049433231354, 0.3399883508682251, 0.6642183661460876, -0.00011709368845913559, 0.2644660472869873, 0.48472052812576294, 0.1298537403345108, -0.2972802221775055, -0.06800265610218048, -0.32462847232818604, -0.06378857791423798, 0.14244429767131805, -0.11475048959255219, -0.16216430068016052, 0.08427084237337112, -0.04307420551776886, -0.07861838489770889, 0.4358404278755188, 0.1240997239947319, 0.1194370687007904, 0.5723737478256226, -0.007248319685459137, -0.1731070876121521, 0.00981692224740982, 0.2576720118522644, -0.04589244723320007, 0.09875322878360748, -0.08964252471923828, 0.05728020519018173, -0.028439857065677643, 0.23623819649219513, -0.14199165999889374, -0.10250777006149292, 0.3573356568813324, 0.22308403253555298, 0.10841864347457886, -0.2037913054227829, -0.06764879077672958, 0.18290948867797852, 0.5824278593063354, -0.21169522404670715, -0.5647295117378235, -0.42987221479415894, 0.18384449183940887, 0.0854673907160759, 0.3381206691265106, 0.04320400953292847, -0.08213198184967041, 0.3190878629684448, -0.22814811766147614, -0.23659482598304749, -0.40893110632896423, 0.13400337100028992, -0.048846833407878876, 0.1816038191318512, 0.008441412821412086, 0.024817287921905518, -0.09186957776546478, -0.2445708066225052, 0.02566467598080635, -0.21532708406448364, -0.01219967007637024, 0.32412517070770264, -0.14281055331230164, -0.014409590512514114, -0.04055287688970566, 0.26115792989730835, 0.03297676891088486, -0.09942072629928589, -0.09234470874071121, -0.03614813834428787, -0.5126376152038574, -0.07101782411336899, 0.3307184875011444, 0.15587614476680756, -0.12323413044214249, 0.5292971730232239, 0.2664843797683716, 0.13906607031822205, 0.027826737612485886, 0.06688195466995239, -0.23615452647209167, 0.014998543076217175, 0.05978695675730705, -0.0019444748759269714, 0.42316168546676636, -0.2863740026950836, -0.44056907296180725, 0.2037786841392517, -0.05097685009241104, -0.022676629945635796, 0.24110275506973267, 0.395579993724823, -0.11201128363609314, 0.093827985227108, 0.14877665042877197, -0.12516458332538605, -0.29017946124076843, -0.10559456795454025, -0.19031254947185516, -0.21535761654376984, -0.1804041862487793, 0.12279067933559418, 0.07924643158912659, -0.13674037158489227, 0.006947176530957222, -0.06258971244096756, 0.35778266191482544, 0.0658230111002922, -0.32624611258506775, 0.0409524142742157, -0.08572206646203995, 0.4311698377132416, -0.06733985990285873, 0.2126428633928299, 0.05381011590361595, -0.23554034531116486, -0.11266285926103592, 0.012007389217615128, -0.42145130038261414, -0.5944163799285889, -0.06962896883487701, 0.07402410358190536, -0.38090336322784424, 0.1156596690416336, -0.2573417127132416, -0.1559450924396515, -0.048013560473918915, -0.33847948908805847, -0.04542496055364609, -0.10573795437812805, -0.1847030073404312, -0.058484237641096115, 0.3405199646949768, 0.8916215896606445, -0.18593069911003113, -0.21964067220687866, -0.47507578134536743, -0.21673251688480377, 0.049798253923654556, 0.3674640953540802, -0.22373336553573608, 0.47579848766326904, -0.3814150393009186, 0.06507448852062225, 0.17159748077392578, -0.32566484808921814, -0.5867423415184021, 0.45825400948524475, -0.36868029832839966, 0.34521105885505676, -0.003710910677909851, 0.11959303915500641, -0.17187343537807465, -0.14926087856292725, 0.13115239143371582, 0.06279470771551132, 0.12710075080394745, 0.026658346876502037, -0.13759364187717438, -0.16053074598312378, 0.09400782734155655, 0.3145623505115509, 0.1392587423324585, 0.05508370324969292, -0.004764571785926819, 0.4958386719226837, 0.28887271881103516, 0.0890718549489975, -0.25358280539512634, 0.19906271994113922, 0.304330438375473, 0.0644012838602066, 0.008787382394075394, 0.059172578155994415, -0.5730326771736145, 0.31206563115119934, -0.25583416223526, 0.2974811792373657, -0.10314318537712097, -0.12183120846748352, -0.3335515260696411, 0.04852788895368576, -0.2682649493217468, 0.05480770766735077, 0.0028908178210258484, 0.044209521263837814, -0.10557922720909119, -0.10815422236919403, -0.06252089142799377, 0.7060372829437256, -0.018763214349746704, 0.24228616058826447, -0.5906022787094116, 0.3884902000427246, -0.005519593134522438, -0.05142562463879585, 0.014347389340400696, 0.2497723400592804, 0.19094783067703247, -0.024378471076488495, -0.1640375554561615, 0.44230687618255615, -0.11255878210067749, 0.297360360622406, -0.005846302956342697, 0.13431914150714874, 0.31563159823417664, -0.31126219034194946, 0.09364183992147446, 0.39798781275749207, 0.17771275341510773, 0.29941993951797485, -0.23592916131019592, 0.07844258844852448, -0.13264182209968567, 0.023478396236896515, -0.156977117061615, -0.18988081812858582, 0.027613459154963493, 0.13066670298576355, -0.17497557401657104, -0.3263993561267853, 0.16981686651706696, -0.012048613280057907, 0.42821115255355835, 0.1368093490600586, 0.08782009780406952, -0.05887661129236221, 0.07704870402812958, -0.24138206243515015, 0.2702915072441101, 0.22418829798698425, -0.13915160298347473, 0.06324290484189987, -0.006372902542352676, 0.178660050034523, 0.3638823628425598, 0.09589660912752151, -0.3751234710216522, 0.03406110033392906, -0.13356585800647736, -0.12679028511047363, 0.08007551729679108, 0.1579611599445343, 0.01672528311610222, 0.23934563994407654, -0.11480184644460678, 0.11019864678382874, 0.026417098939418793, -0.40346765518188477, -0.09987861663103104, 0.4304695427417755, -0.6044554710388184, -0.09180281311273575, -0.05218018591403961, -0.03584231063723564, -0.11666208505630493, -0.22162732481956482, -0.45168545842170715, -0.04312540590763092, 0.04125276580452919, -0.018504824489355087, -0.12660035490989685, 0.04648774117231369, 0.08652114868164062, 0.2802393436431885, 0.0900113582611084, -0.10913606733083725, -0.15760381519794464, 0.010481886565685272, -0.18941780924797058, -0.061213839799165726, 0.23564188182353973, -0.08815540373325348, 0.0390002503991127, -0.41609540581703186, 0.09478818625211716, -0.12282753735780716, -0.03449340909719467, 0.11301244795322418, -0.10403427481651306, 0.2151346504688263, 0.2190944403409958, 0.22527152299880981, 0.2566179633140564, -0.17868465185165405, 0.23477298021316528, -0.30213645100593567, 0.02996952272951603, 0.10465478897094727, -0.11283767968416214, -0.020859094336628914, 0.009914427995681763, -0.32525891065597534, -0.35465148091316223, -0.30777493119239807, 0.12516076862812042, -0.08663394302129745, 0.1186240166425705, 0.45091989636421204, 0.17841938138008118, 0.1307477205991745, -0.04505342245101929, -0.033199459314346313, 0.006359907798469067, -0.4239847958087921, 0.3137935400009155, -0.01463979110121727, -0.19893698394298553, -0.14425207674503326, 0.12660740315914154, -0.042771805077791214, -0.35711050033569336, -0.4721202254295349, -0.21588122844696045, -0.24830015003681183, -0.09529438614845276, -0.11358293890953064, 0.08687619119882584, 0.15868090093135834, 0.01294790767133236, 0.05860498547554016, -0.0969041958451271, -0.3684704005718231, -0.10978034883737564, -0.07439912110567093, 0.036515116691589355, -0.2424352765083313, 0.0074936747550964355, -0.2596686780452728, 0.5018802285194397, 0.3403347432613373, -0.11444982886314392, -0.08344803750514984, 0.11484172940254211, 0.3629355728626251, -0.04760146886110306, -0.3376513421535492, -0.16564446687698364, 0.15168309211730957, -0.36139315366744995, 0.5166847109794617, 0.0967881828546524, 0.08203089982271194, -0.11307930946350098, -0.576099693775177, -0.2990562319755554, -0.3664742708206177, -0.12684498727321625, 0.28572410345077515, 0.03351719677448273, 0.044407714158296585, 0.103692926466465, -0.2280832678079605, -0.15283417701721191, 0.2036975622177124, 0.2744918167591095, 0.20694756507873535, 0.023143384605646133, 0.048983048647642136, -0.13578082621097565, -0.11409816890954971, 0.2746393084526062, 0.05385982245206833, 0.1912219226360321, -0.12174462527036667, 0.0976100042462349, 0.02946876734495163, 0.1829204112291336, 0.37149471044540405, -0.18069633841514587, 0.3204900026321411, -0.0009931735694408417, -0.07749350368976593, -0.31849434971809387, -0.08373779058456421, -0.17879949510097504, 0.09228471666574478, -0.07660850882530212, 0.7641342878341675, -0.2774287462234497, -0.19482672214508057, 0.126169353723526, -0.018281767144799232, -0.23487935960292816, -0.31803005933761597, -0.36188405752182007, 0.12553000450134277, -0.30881819128990173, 0.1217784732580185, -0.14532290399074554, 0.21814942359924316, -0.14282336831092834, 0.12670424580574036, 0.266553670167923, 0.08378495275974274, 0.33043771982192993, 0.2722546458244324, 0.3331063985824585, -0.0050673699006438255, 0.24031409621238708, 0.553668737411499, 0.18718354403972626, 0.2955951690673828, 0.7183184027671814, -0.07809625566005707, -0.4889562726020813, 0.014554459601640701, 0.05686911568045616, 0.016574911773204803, 0.469940185546875, 0.035111721605062485, -0.22585681080818176, 0.30370983481407166, 0.26618248224258423, -0.3592608869075775, 0.2440415620803833, 0.12167433649301529, -0.07659546285867691, -0.44945693016052246, -0.40118953585624695, 0.4901951253414154, -0.04227475821971893, -0.0930168405175209, -0.09489507973194122, 0.6261637806892395, -0.1676916629076004, 0.37773245573043823, -0.03116413950920105, 0.8984180688858032, -0.08338660001754761, 0.2443760484457016, 0.18053406476974487, 0.07824014127254486, 0.4151343107223511, -0.32992076873779297, -0.03770042583346367, -0.3338365852832794, -0.0657820925116539, -0.054137587547302246, 0.005535673350095749, 0.07718931138515472, 0.09055565297603607, -0.0818731039762497, 0.21875473856925964, -0.2191435992717743, 0.427348256111145, 0.04192949831485748, 0.18117296695709229, 0.02525237761437893, -0.29427146911621094, -0.3783057630062103, 0.06085823476314545, -0.10634841024875641, 0.41288310289382935, -0.17167145013809204, -0.16261406242847443, -0.12882709503173828, -0.11737146228551865, -0.3502604365348816, 0.22379091382026672, -0.019359176978468895, -0.04089312255382538, 0.20156389474868774, -0.2757278084754944, 0.32896074652671814, 0.3690705895423889, 0.42565762996673584, 0.30623382329940796, -0.5200268030166626, 0.03412365913391113, -0.44680845737457275, -0.04778025299310684, -0.18641537427902222, -0.018343551084399223, 0.3150208592414856, 0.1394052505493164, -0.32347479462623596, 0.012468688189983368, -0.004044603556394577, -0.12516161799430847, -0.19001418352127075, -0.1487189084291458, 0.4103625416755676, -0.46538594365119934, 0.04718717560172081, -0.14422515034675598, 0.04329245164990425, -0.06313620507717133, 0.07251569628715515, 0.22597329318523407, -0.25545185804367065, -0.16615226864814758, 0.23737452924251556, -0.4481359124183655, -0.014380410313606262, 0.3088191747665405, -0.14275386929512024, -0.007074007764458656, 0.39351966977119446, -0.023602712899446487, -0.007674559950828552, -0.2832914888858795, 0.19034665822982788, 0.5694226026535034, -0.7765672206878662, 0.08398640900850296, 0.18203088641166687, -0.048963889479637146, 0.04808063805103302, 0.026623662561178207, 0.2787846326828003, -0.23687928915023804, -0.21752212941646576, -0.26639324426651, -0.21077358722686768, 0.28313231468200684, -0.10701213777065277, 0.2174549251794815, 0.14663374423980713, 0.12815670669078827, 0.036230847239494324, -0.2627098262310028, -0.2564331293106079, -0.11549336463212967, -0.3291173279285431, -0.2031744122505188, 0.01962297409772873, -0.05370432883501053, 0.21018151938915253, -0.2429913878440857, 0.043413445353507996, 0.012834850698709488, -0.16299156844615936, -0.06967601180076599, -0.13104723393917084, 0.20873504877090454, 0.06716473400592804, -0.08904171735048294, 0.06844472885131836, -0.11842253804206848, 0.14868631958961487, -0.24521896243095398, 0.40630802512168884, 0.35969504714012146, 0.27374494075775146, 0.09883560240268707, 0.18865759670734406, 0.2397092878818512, -0.5958234667778015, 0.2619500160217285, 0.02904202789068222, 0.1972096860408783, 0.032952673733234406, -0.02700437605381012, -0.29226574301719666, -0.04470736160874367, 0.13887102901935577, 0.2049711048603058, 0.5265201926231384, 0.5842981934547424, 0.3504542410373688, -0.3330290913581848, 0.12268443405628204, 0.1926446408033371, 0.24763375520706177, -0.16127373278141022, -0.191279336810112, -0.1843140423297882, -0.0034210244193673134, 0.111551932990551, -0.23811772465705872, -0.2675558030605316, 0.0807390958070755, -0.11746739596128464, 0.006655614823102951, 0.3866281509399414, 0.06194518133997917, 0.27939340472221375, -0.06752941012382507, 0.13486814498901367, 0.6361536979675293, 0.24516096711158752, 0.07054072618484497, 0.655386745929718, -0.23250450193881989, 0.13009075820446014, 0.1230957880616188, -0.07041135430335999, 0.04307871311903, 0.6400355696678162, -0.1964801847934723, 0.20240090787410736, -0.0842096358537674, 0.19055022299289703, 0.16801178455352783, -0.36660704016685486, -0.10786488652229309, 0.024765722453594208, 0.08759485185146332, -0.024441875517368317, -0.19493937492370605, -0.060553066432476044, -0.513746976852417, 0.1638568937778473, -0.24052006006240845, -0.14990822970867157, -0.1110362634062767, 0.0056753456592559814, 0.031395718455314636, -0.10843959450721741, -0.07942762970924377, -0.19247080385684967, -0.12529483437538147, -0.3116139769554138, -0.13408827781677246, 0.01270584762096405, -0.13659970462322235, -0.07383318245410919, -0.2941659688949585, 0.46757668256759644, 0.0769510343670845, -0.16971702873706818, 0.20900583267211914, 0.19592368602752686, -0.17049674689769745, 0.18837784230709076, 0.39098089933395386, 0.43596982955932617, 0.27129653096199036, -0.09303085505962372, 0.1469268649816513, 0.1893012523651123, 0.10067325830459595, 0.08374356478452682, 0.15042579174041748, -0.3641503155231476, 0.12841366231441498, 0.12764519453048706, 0.1141388863325119, -0.10745999217033386, -0.007701721042394638, -0.04360361769795418, 0.3055557608604431, -0.183902308344841, 0.6720907688140869, -0.3736259341239929, -0.020341258496046066, -0.22325918078422546, 0.1765666902065277, -0.2582635283470154, -0.04772614687681198, 0.542569637298584, 0.11985620111227036, 0.061390288174152374, -0.1173611506819725, 0.026252225041389465, -0.051546018570661545, 0.5048493146896362, 0.5831444263458252, 0.20851457118988037, -0.3938025236129761, 0.2653401494026184, -0.7450767755508423, 0.4829038083553314, 0.01882225275039673, -0.17951887845993042, 0.150032177567482, -0.06766793131828308, -0.014075800776481628, 0.20196270942687988, 0.3571893572807312, -0.10346320271492004, -0.040966205298900604, -0.08809682726860046, -0.12373657524585724, -0.0375673808157444, -0.11865326762199402, -0.0186398196965456, -0.04388110712170601, -0.3450820744037628, 0.19558975100517273, -0.00801174622029066, -0.007975030690431595, -0.015060864388942719, 0.04258810728788376, 0.16557559370994568, 0.0316016785800457, 0.45868349075317383, 0.0023462697863578796, 0.23858557641506195, 0.13975262641906738, -0.2237817645072937, -0.393888384103775, -0.20022301375865936, -0.17265014350414276, -0.041429899632930756, 0.05051512271165848, 0.3894832134246826, -0.19852833449840546, -0.17706508934497833, -0.4016650319099426, -0.16636337339878082, 0.10217313468456268, 0.1725122481584549, -0.44151297211647034, 0.14561019837856293, -0.34246647357940674, -0.07306967675685883, -0.0330040380358696, 0.11380942910909653, 0.10936865210533142, 0.06514256447553635, -0.09930931031703949, -0.27633634209632874, 0.7716044187545776, -0.4346080720424652, -0.20619787275791168, -0.2097863256931305, 0.3061097264289856, 0.09136969596147537, -0.15129369497299194, -0.4539775550365448, 0.17896342277526855, 0.20096300542354584, 0.008712368085980415, -0.3308885097503662, -0.15077359974384308, 0.12139219045639038, 0.01814524456858635, -0.08607181906700134, 0.25216126441955566, -0.006497487425804138, -0.11106237024068832, 0.4590698778629303, -0.11949064582586288 ]
https://github.com/huggingface/datasets/issues/3854
load only England English dataset from common voice english dataset
Hi @amanjaiswal777, First note that the dataset you are trying to load is deprecated: it was the Common Voice dataset release as of Dec 2020. Currently, Common Voice dataset releases are directly hosted on the Hub, under the Mozilla Foundation organization: https://huggingface.co/mozilla-foundation For example, to get their latest Common Voice relase (8.0): - Go to the dataset page and request access permission (Mozilla Foundation requires this for people willing to use their datasets): https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0 - Looking at the dataset card, you can check that data instances have, among other fields, the ones you are interested in: "accent", "age",... - Then you can load their "en" language dataset as usual, besides passing your authentication token (more info on auth token here: https://huggingface.co/docs/hub/security) ```python from datasets import load_dataset ds_en = load_dataset("mozilla-foundation/common_voice_8_0", "en", use_auth_token=True) ``` - Finally, you can filter only the data instances you are interested in (more info on `filter` here: https://huggingface.co/docs/datasets/process#select-and-filter): ```python ds_england_en = ds_en.filter(lambda item: item["accent"] == "England English") ``` Feel free to reopen this issue if you need further assistance.
training_data = load_dataset("common_voice", "en",split='train[:250]+validation[:250]') testing_data = load_dataset("common_voice", "en", split="test[:200]") I'm trying to load only 8% of the English common voice data with accent == "England English." Can somebody assist me with this? **Typical Voice Accent Proportions:** - 24% United States English - 8% England English - 5% India and South Asia (India, Pakistan, Sri Lanka) - 3% Australian English - 3% Canadian English - 2% Scottish English - 1% Irish English - 1% Southern African (South Africa, Zimbabwe, Namibia) - 1% New Zealand English Can we replicate this for Age as well? **Age proportions of the common voice:-** - 24% 19 - 29 - 14% 30 - 39 - 10% 40 - 49 - 6% < 19 - 4% 50 - 59 - 4% 60 - 69 - 1% 70 – 79
172
load only England English dataset from common voice english dataset training_data = load_dataset("common_voice", "en",split='train[:250]+validation[:250]') testing_data = load_dataset("common_voice", "en", split="test[:200]") I'm trying to load only 8% of the English common voice data with accent == "England English." Can somebody assist me with this? **Typical Voice Accent Proportions:** - 24% United States English - 8% England English - 5% India and South Asia (India, Pakistan, Sri Lanka) - 3% Australian English - 3% Canadian English - 2% Scottish English - 1% Irish English - 1% Southern African (South Africa, Zimbabwe, Namibia) - 1% New Zealand English Can we replicate this for Age as well? **Age proportions of the common voice:-** - 24% 19 - 29 - 14% 30 - 39 - 10% 40 - 49 - 6% < 19 - 4% 50 - 59 - 4% 60 - 69 - 1% 70 – 79 Hi @amanjaiswal777, First note that the dataset you are trying to load is deprecated: it was the Common Voice dataset release as of Dec 2020. Currently, Common Voice dataset releases are directly hosted on the Hub, under the Mozilla Foundation organization: https://huggingface.co/mozilla-foundation For example, to get their latest Common Voice relase (8.0): - Go to the dataset page and request access permission (Mozilla Foundation requires this for people willing to use their datasets): https://huggingface.co/datasets/mozilla-foundation/common_voice_8_0 - Looking at the dataset card, you can check that data instances have, among other fields, the ones you are interested in: "accent", "age",... - Then you can load their "en" language dataset as usual, besides passing your authentication token (more info on auth token here: https://huggingface.co/docs/hub/security) ```python from datasets import load_dataset ds_en = load_dataset("mozilla-foundation/common_voice_8_0", "en", use_auth_token=True) ``` - Finally, you can filter only the data instances you are interested in (more info on `filter` here: https://huggingface.co/docs/datasets/process#select-and-filter): ```python ds_england_en = ds_en.filter(lambda item: item["accent"] == "England English") ``` Feel free to reopen this issue if you need further assistance.
[ -0.1626528948545456, 0.006646186113357544, -0.06801306456327438, -0.07248738408088684, 0.1917736828327179, 0.1446112096309662, 0.5200457572937012, 0.24015355110168457, 0.014608405530452728, 0.0860583484172821, -0.4945830702781677, -0.2602890729904175, 0.2044372409582138, -0.15615975856781006, -0.20826764404773712, -0.03813008964061737, -0.13856828212738037, 0.23142489790916443, 0.3187887370586395, -0.35091298818588257, 0.25030961632728577, -0.11158150434494019, -0.12393122911453247, 0.10356245934963226, -0.3548625111579895, 0.059307537972927094, 0.12052865326404572, 0.23724693059921265, -0.13827912509441376, 0.07956935465335846, 0.4342960715293884, 0.09659935534000397, 0.061072006821632385, 0.10160350054502487, -0.00011662817269098014, -0.11239081621170044, 0.15356341004371643, -0.19800324738025665, 0.03343278914690018, -0.0753733366727829, -0.1577671468257904, 0.3177831172943115, -0.05634167045354843, -0.0603828951716423, -0.11791618913412094, 0.2991827130317688, -0.19590602815151215, -0.35858219861984253, 0.6529736518859863, 0.2741495370864868, 0.1621575653553009, -0.05083143338561058, -0.41980206966400146, 0.20712192356586456, 0.050691910088062286, 0.0018480941653251648, 0.12847654521465302, 0.42988282442092896, 0.09180264919996262, -0.014199243858456612, -0.02085675299167633, 0.3105451762676239, -0.15174394845962524, -0.038648683577775955, -0.2900735139846802, 0.09322445094585419, 0.01893800124526024, -0.46731802821159363, 0.24943727254867554, 0.42351940274238586, 0.30739858746528625, -0.044718608260154724, -0.2448139488697052, -0.19754955172538757, 0.10609640926122665, -0.14206908643245697, 0.021197639405727386, 0.18350113928318024, -0.18425315618515015, 0.4176616966724396, -0.22504922747612, -0.13396595418453217, -0.03431764990091324, 0.27777618169784546, -0.2427530288696289, 0.33590614795684814, 0.041873540729284286, -0.025076113641262054, 0.28442180156707764, -0.24503470957279205, -0.14139829576015472, -0.011901412159204483, 0.1014413833618164, 0.5277358293533325, -0.2945692241191864, -0.19892027974128723, -0.31424471735954285, -0.17656296491622925, 0.49344301223754883, -0.061472758650779724, 0.049760740250349045, 0.17317509651184082, -0.4262273609638214, 0.01656339317560196, 0.32366394996643066, 0.2762880027294159, 0.3461342751979828, 0.034338440746068954, 0.06271980702877045, -0.027985399588942528, 0.04696095362305641, 0.11103025823831558, -0.30988258123397827, -0.2250700145959854, 0.152114138007164, 0.20155465602874756, 0.04153730720281601, -0.5437756180763245, -0.5168312788009644, 0.03259949013590813, 0.0667414516210556, -0.14736208319664001, -0.021126456558704376, 0.18969932198524475, 0.18397094309329987, 0.7756183743476868, 0.14771462976932526, 0.474429726600647, -0.4340800344944, -0.43834465742111206, -0.060535941272974014, 0.36790668964385986, -0.270341694355011, -0.15530739724636078, 0.33832886815071106, -0.4679102301597595, 0.1132558286190033, 0.3345907926559448, 0.1416129618883133, -0.3451957702636719, -0.04168630763888359, -0.15098831057548523, -0.02646838128566742, -0.09517714381217957, -0.04803987964987755, 0.2167368233203888, 0.26540911197662354, -0.1609545648097992, -0.219159334897995, 0.3500836491584778, -0.13334503769874573, -0.11692550778388977, -0.051904141902923584, 0.1873483657836914, -0.314996600151062, -0.2320450246334076, -0.079844169318676, 0.43023791909217834, 0.2331579029560089, -0.128108948469162, 0.10688448697328568, 0.06232219189405441, 0.020343180745840073, 0.1786414384841919, 0.37119799852371216, 0.326419472694397, -0.2245599627494812, -0.21575701236724854, -0.34598588943481445, -0.19981707632541656, 0.1475081741809845, 0.3084806501865387, 0.039500199258327484, -0.06549935787916183, -0.02149423211812973, 0.16925211250782013, 0.3668355345726013, -0.35466596484184265, -0.35937097668647766, 0.1119660809636116, -0.007340114563703537, -0.0199714545160532, -0.05945996195077896, -0.2629777491092682, 0.11458171159029007, 0.08163857460021973, 0.26047396659851074, 0.6405435800552368, 0.11666404455900192, 0.04646546393632889, 0.06357009708881378, -0.28977954387664795, 0.13543550670146942, 0.2946457266807556, 0.03337852656841278, 0.005416952073574066, -0.02701365202665329, 0.13306333124637604, 0.38806048035621643, -0.19829708337783813, 0.19115345180034637, -0.07039341330528259, 0.017164107412099838, -0.26287245750427246, -0.250657856464386, -0.26782506704330444, -0.17928194999694824, 0.22070816159248352, 0.16745243966579437, -0.022170141339302063, 0.3807219862937927, 0.06807699054479599, -0.38499704003334045, -0.28815150260925293, -0.22578103840351105, -0.08195538818836212, 0.020400572568178177, -0.28659287095069885, 0.0823279470205307, -0.24976634979248047, -0.23199664056301117, -0.017544271424412727, 0.295322984457016, -0.020241299644112587, -0.10070465505123138, 0.21275608241558075, 0.12101304531097412, -0.019425511360168457, 0.10575085878372192, 0.3208851218223572, 0.182010680437088, 0.2503679692745209, -0.18132203817367554, 0.2155877947807312, 0.05533586069941521, 0.4699525833129883, -0.19643685221672058, -0.048060521483421326, 0.16914965212345123, -0.4058133363723755, 0.27317777276039124, -0.09440521895885468, 0.016311701387166977, -0.027735918760299683, 0.059283241629600525, 0.5545341372489929, 0.3355206847190857, 0.21629975736141205, -0.12445419281721115, -0.12788721919059753, -0.03841599076986313, -0.2165101319551468, -0.024627886712551117, -0.27681130170822144, 0.2901918888092041, 0.16431325674057007, 0.34059977531433105, -0.033215418457984924, -0.20138543844223022, -0.0644005611538887, -0.04584698751568794, -0.2180229276418686, 0.09174924343824387, 0.12202861160039902, -0.24729704856872559, -0.07172106206417084, 0.03443536534905434, -0.367079496383667, 0.32248827815055847, 0.2227310985326767, 0.22581776976585388, 0.3773607015609741, 0.24881160259246826, 0.026434890925884247, 0.032638244330883026, -0.09466180205345154, 0.04004783555865288, 0.24853643774986267, 0.09317035973072052, -0.03132293373346329, -0.5917179584503174, -0.2553531527519226, -0.13008750975131989, -0.1813632994890213, -0.45582741498947144, 0.007479242980480194, -0.18319524824619293, 0.4088345170021057, -0.03629797697067261, -0.3352949917316437, -0.256925493478775, 0.05668140947818756, 0.024408744648098946, 0.016249237582087517, -0.018737632781267166, 0.040388524532318115, -0.4035811424255371, -0.10447345674037933, -0.11231707036495209, -0.23274223506450653, -0.22685381770133972, -0.0495365746319294, -0.19717243313789368, 0.07564158737659454, -0.03286910429596901, 0.2492741346359253, 0.23730649054050446, -0.40215420722961426, -0.0943991094827652, 0.26499372720718384, -0.15071842074394226, -0.048431165516376495, -0.020070210099220276, 0.06188192963600159, -0.11698780953884125, 0.26120656728744507, -0.1406397968530655, -0.12660963833332062, 0.04372483491897583, -0.20752882957458496, -0.18056003749370575, 0.029044397175312042, -0.07265032827854156, 0.3201828598976135, 0.1418701857328415, -0.4972701370716095, -0.35253995656967163, -0.2220110446214676, -0.20460133254528046, -0.07860884070396423, 0.15338826179504395, 0.5186456441879272, -0.07757639139890671, -0.07076341658830643, 0.05232451856136322, 0.12112284451723099, -0.5544794797897339, -0.03323961794376373, 0.3712908625602722, 0.01873069815337658, -0.04387285187840462, 0.023256566375494003, -0.07210896164178848, -0.06572668254375458, -0.0684177502989769, -0.11231879144906998, 0.12693020701408386, -0.28255942463874817, 0.022194895893335342, -0.32346421480178833, 0.39846569299697876, 0.14020228385925293, -0.07349545508623123, -0.05330498516559601, -0.039783548563718796, -0.08980652689933777, 0.03274209052324295, 0.1973620057106018, -0.05782266706228256, -0.25018110871315, 0.21272927522659302, -0.0936788022518158, 0.6751471161842346, 0.13471223413944244, 0.11465747654438019, 0.3498959541320801, -0.05491850525140762, 0.12513160705566406, -0.11965174227952957, -0.14632555842399597, 0.05314231663942337, 0.1829802542924881, 0.15853990614414215, 0.36573129892349243, 0.0624084398150444, -0.025575192645192146, -0.3053198456764221, -0.46557673811912537, -0.21424895524978638, -0.21854183077812195, 0.21578365564346313, -0.4697745442390442, 0.06047942116856575, 0.05402890220284462, 0.07213527709245682, -0.030935315415263176, -0.11581384390592575, 0.00369467306882143, 0.03145632892847061, -0.20774030685424805, -0.10159415751695633, -0.44051840901374817, -0.08818953484296799, -0.4005972743034363, 0.3352705240249634, 0.004621329717338085, 0.4629884660243988, 0.07705080509185791, 0.05453117936849594, 0.1173316240310669, 0.22065512835979462, 0.07289465516805649, -0.05848316103219986, 0.31285560131073, -0.09846450388431549, 0.1461968868970871, -0.3394857943058014, -0.03011579066514969, -0.11298908293247223, -0.16526956856250763, 0.08528275042772293, 0.046311963349580765, -0.47142186760902405, -0.2028166502714157, 0.051196206361055374, 0.4750998616218567, -0.03420574590563774, -0.31270158290863037, -0.04256155341863632, -0.21334794163703918, -0.33055466413497925, 0.22416046261787415, 0.1814464032649994, 0.2537383735179901, -0.2149706929922104, 0.06170547381043434, 0.3063909709453583, 0.017911311239004135, 0.6960340738296509, 0.12254634499549866, 0.04391288757324219, 0.17393381893634796, 0.0831715315580368, 0.4832804203033447, -0.2442992627620697, -0.1969243437051773, 0.7910391092300415, 0.22878658771514893, -0.014012344181537628, -0.1627374291419983, 0.26636695861816406, 0.3048916459083557, 0.37055522203445435, 0.28201740980148315, -0.2154424488544464, 0.2887977361679077, -0.19898711144924164, 0.12832467257976532, 0.1548372358083725, -0.3152424693107605, 0.3936944305896759, -0.573013961315155, -0.43218737840652466, 0.4833517074584961, -0.052813395857810974, -0.05223720148205757, -0.09273432195186615, 0.09883342683315277, -0.49027031660079956, 0.11779145151376724, -0.06491485983133316, 1.1103094816207886, 0.1858811229467392, 0.25913551449775696, 0.05457489937543869, 0.18061594665050507, -0.23230786621570587, 0.027662642300128937, -0.29143810272216797, -0.3301068842411041, -0.07653318345546722, -0.07465945929288864, -0.16111724078655243, -0.03693602234125137, 0.5031988620758057, -0.08269868791103363, 0.32202470302581787, -0.6584358811378479, -0.22801971435546875, 0.3487490713596344, 0.2812466323375702, -0.4125337600708008, -0.22245818376541138, -0.2799346148967743, 0.08068308234214783, 0.014375217258930206, 0.3041248321533203, 0.15235820412635803, 0.11376135051250458, -0.4104169011116028, -0.38892221450805664, -0.20322808623313904, 0.39574602246284485, -0.36806559562683105, 0.006735844537615776, -0.09486964344978333, -0.24320216476917267, 0.4130246639251709, 0.11619533598423004, 0.195555180311203, 0.18960203230381012, -0.08681688457727432, 0.24136660993099213, 0.3575551211833954, 0.22717656195163727, 0.26688534021377563, 0.014725224114954472, 0.10182183235883713, -0.09925945103168488, -0.7169988751411438, 0.15808308124542236, -0.1300382763147354, 0.2967648506164551, -0.12318313121795654, -0.11418929696083069, 0.1875540018081665, -0.32222557067871094, -0.39041802287101746, 0.054158248007297516, 0.32030725479125977, 0.08671459555625916, 0.08445455133914948, 0.27438896894454956, -0.25442203879356384, 0.12466027587652206, 0.21829520165920258, -0.14977267384529114, 0.1567770093679428, 0.40423813462257385, 0.18741938471794128, 0.0006761811673641205, 0.8007919788360596, -0.01577562838792801, -0.1359826624393463, -0.17344656586647034, 0.054319992661476135, 0.5566003918647766, -0.2739295959472656, -0.3517704904079437, -0.025225182995200157, -0.027775488793849945, -0.220193013548851, 0.19113409519195557, 0.18628454208374023, 0.22513169050216675, 0.2176692932844162, -0.566115140914917, -0.28228315711021423, 0.14665773510932922, -0.15163521468639374, 0.1502068042755127, -0.006277117878198624, 0.016610190272331238, -0.027807578444480896, 0.15538588166236877, -0.268606960773468, 0.03374992311000824, 0.13977587223052979, 0.2703302502632141, -0.10049828141927719, -0.11235228925943375, 0.056403111666440964, -0.0734008252620697, 0.1573203206062317, -0.10256823897361755, -0.04506528750061989, -0.2640479803085327, -0.2578163146972656, 0.16726675629615784, 0.0681813657283783, -0.24039660394191742, 0.31425783038139343, 0.1823766678571701, 0.16019020974636078, -0.0070863328874111176, 0.16041113436222076, 0.1369113326072693, 0.2695661187171936, 0.31742942333221436, 0.13649915158748627, -0.14135360717773438, -0.26779860258102417, 0.0570332407951355, -0.09963372349739075, 0.1014544665813446, 0.0833975076675415, 0.3289104998111725, 0.22060620784759521, -0.09572573751211166, -0.2097298502922058, 0.10764113813638687, 0.4823610782623291, 0.034395068883895874, -0.29738304018974304, 0.05118382349610329, 0.22681623697280884, 0.29650795459747314, 0.13609284162521362, 0.42749571800231934, -0.3213365375995636, 0.24617208540439606, 0.10312633961439133, 0.3045869767665863, -0.3311011791229248, 0.15797869861125946, 0.02716122753918171, -0.3234756886959076, -0.04702989012002945, 0.1794455647468567, 0.021039266139268875, -0.1852043867111206, 0.06458020210266113, -0.1669917106628418, 0.014541513286530972, 0.04383135586977005, 0.14118610322475433, 0.2913661599159241, -0.17944291234016418, -0.1362418681383133, 0.32192444801330566, -0.1269015371799469, -0.045769400894641876, -0.15836697816848755, -0.3693602681159973, 0.03680102527141571, 0.1019403412938118, 0.2771608829498291, -0.1430235207080841, -0.5951993465423584, -0.14638051390647888, 0.3226659297943115, 0.11579321324825287, -0.13667050004005432, -0.001956053078174591, 0.44915181398391724, 0.10602215677499771, -0.11818397045135498, 0.07053124159574509, 0.2371046543121338, 0.11972666531801224, -0.15209589898586273, 0.09402747452259064, -0.21742770075798035, -0.4912945032119751, -0.14574211835861206, -0.04382678493857384, -0.4474611282348633, 0.19368404150009155, 0.2898252606391907, -0.17903335392475128, -0.4164525270462036, 0.029455507174134254, 0.33776983618736267, -0.09346357733011246, -0.3481373190879822, 0.35976946353912354, 0.0850944072008133, -0.06757740676403046, 0.5255780220031738, 0.27999982237815857, 0.21742470562458038, 0.054789166897535324, 0.018024593591690063, 0.301584392786026, -0.10252977907657623, -0.030376851558685303, 0.08735446631908417, 0.09835759550333023, 0.38251930475234985, 0.28481143712997437, 0.17467127740383148, 0.182089701294899, -0.2049856185913086, -0.43997377157211304, 0.15260490775108337, -0.1921645700931549, -0.42469796538352966, 0.17815367877483368, 0.11306420713663101, 0.03736160695552826, -0.23410463333129883, -0.028193026781082153, -0.26647382974624634, 0.02396543323993683, 0.04121720790863037, -0.09018979966640472, 0.0064887311309576035, 0.06666947156190872, 0.027123067528009415, -0.07482306659221649, 0.02509715035557747, 0.15405601263046265, 0.14740467071533203, -0.2294451892375946, -0.050290945917367935, -0.42615875601768494, -0.08771427720785141, 0.18350115418434143, -0.22675694525241852, 0.09053398668766022, -0.21111240983009338, 0.19809839129447937, 0.3221079707145691, 0.058093369007110596, 0.22801001369953156, -0.33846157789230347, 0.16543397307395935, -0.07196278870105743, 0.1619768738746643, -0.01762860268354416, 0.5967656970024109, -0.16441050171852112, -0.47524234652519226, 0.11137692630290985, 0.10797898471355438, -0.11213680356740952, -0.023943375796079636, -0.09447088837623596, 0.23239031434059143, -0.13671480119228363, 0.2808099091053009, 0.23433290421962738, 0.7214940786361694, -0.18306702375411987, 0.07379366457462311, -0.26478615403175354, -0.10002199560403824, -0.2929312288761139, 0.16406424343585968, 0.19812250137329102, 0.28260666131973267, 0.11114095896482468, 0.0030542276799678802, -0.02571728639304638, 0.3716815114021301, -0.20512650907039642, -0.30946409702301025, -0.3673690855503082, -0.05337049812078476, 0.07302192598581314, 0.18716450035572052, -0.1774221509695053, 0.10452696681022644, -0.14309526979923248, 0.04508169740438461, -0.24115194380283356, -0.11769631505012512, 0.33078551292419434, -0.2750575840473175, -0.43084022402763367, -0.18765698373317719, 0.4283427894115448, 0.13360369205474854, -0.15586663782596588, -0.11848185956478119, 0.3291688859462738, 0.2475513368844986, -0.20240485668182373, -0.16805364191532135, 0.2405291199684143, 0.11977845430374146, -0.19418682157993317, -0.032452575862407684, 0.30179497599601746, 0.1758737862110138, -0.07186434417963028, -0.29955795407295227, -0.5935601592063904 ]
https://github.com/huggingface/datasets/issues/3854
load only England English dataset from common voice english dataset
Hey @albertvillanova trying the same approach as you with the common_voice_16_1 dataset. What I'm trying to do is to filter the valencian accent in the catalan subset. Gave me this error and I have everything it asks for decoding mp3: ![image](https://github.com/huggingface/datasets/assets/96977715/7ec02483-e728-4358-9372-ba74ec1b7fd4) ![image](https://github.com/huggingface/datasets/assets/96977715/c10fcf23-a141-4dba-a88d-89e293acfe67)
training_data = load_dataset("common_voice", "en",split='train[:250]+validation[:250]') testing_data = load_dataset("common_voice", "en", split="test[:200]") I'm trying to load only 8% of the English common voice data with accent == "England English." Can somebody assist me with this? **Typical Voice Accent Proportions:** - 24% United States English - 8% England English - 5% India and South Asia (India, Pakistan, Sri Lanka) - 3% Australian English - 3% Canadian English - 2% Scottish English - 1% Irish English - 1% Southern African (South Africa, Zimbabwe, Namibia) - 1% New Zealand English Can we replicate this for Age as well? **Age proportions of the common voice:-** - 24% 19 - 29 - 14% 30 - 39 - 10% 40 - 49 - 6% < 19 - 4% 50 - 59 - 4% 60 - 69 - 1% 70 – 79
42
load only England English dataset from common voice english dataset training_data = load_dataset("common_voice", "en",split='train[:250]+validation[:250]') testing_data = load_dataset("common_voice", "en", split="test[:200]") I'm trying to load only 8% of the English common voice data with accent == "England English." Can somebody assist me with this? **Typical Voice Accent Proportions:** - 24% United States English - 8% England English - 5% India and South Asia (India, Pakistan, Sri Lanka) - 3% Australian English - 3% Canadian English - 2% Scottish English - 1% Irish English - 1% Southern African (South Africa, Zimbabwe, Namibia) - 1% New Zealand English Can we replicate this for Age as well? **Age proportions of the common voice:-** - 24% 19 - 29 - 14% 30 - 39 - 10% 40 - 49 - 6% < 19 - 4% 50 - 59 - 4% 60 - 69 - 1% 70 – 79 Hey @albertvillanova trying the same approach as you with the common_voice_16_1 dataset. What I'm trying to do is to filter the valencian accent in the catalan subset. Gave me this error and I have everything it asks for decoding mp3: ![image](https://github.com/huggingface/datasets/assets/96977715/7ec02483-e728-4358-9372-ba74ec1b7fd4) ![image](https://github.com/huggingface/datasets/assets/96977715/c10fcf23-a141-4dba-a88d-89e293acfe67)
[ -0.269739031791687, -0.09674128890037537, -0.09815074503421783, -0.08765330910682678, 0.23183292150497437, 0.0189887136220932, 0.24800816178321838, 0.25847193598747253, -0.07169759273529053, 0.3009399175643921, -0.5380932688713074, -0.1090533658862114, 0.10190687328577042, -0.18951645493507385, -0.2281758338212967, -0.06250958889722824, -0.12171977013349533, 0.22756293416023254, 0.18090911209583282, -0.2989773154258728, 0.1585645228624344, 0.1429823338985443, -0.13754118978977203, 0.1604158580303192, -0.2309492975473404, 0.09041521698236465, 0.1290552318096161, 0.12932732701301575, -0.29512906074523926, 0.015581496991217136, 0.36192911863327026, 0.10249834507703781, -0.006106045097112656, 0.16448974609375, -0.00011623110913205892, -0.07442688196897507, 0.29406437277793884, -0.22067472338676453, 0.236149400472641, -0.24158351123332977, -0.3714270293712616, 0.5379088521003723, -0.143811896443367, 0.006834454834461212, -0.10870937258005142, 0.29058146476745605, -0.17314587533473969, -0.36005404591560364, 0.798419713973999, 0.39289888739585876, 0.1629062443971634, -0.1483035832643509, -0.2903708815574646, -0.014590255916118622, 0.27099117636680603, 0.05507063493132591, 0.16908298432826996, 0.4115409851074219, 0.17627906799316406, 0.0953291654586792, 0.09400280565023422, 0.48007091879844666, -0.22145481407642365, -0.0004328247159719467, -0.27420955896377563, -0.034996144473552704, -0.103924460709095, -0.47835955023765564, 0.31250765919685364, 0.3420630693435669, 0.5145203471183777, -0.06728291511535645, -0.26386550068855286, 0.007627509534358978, -0.02153179794549942, -0.22049252688884735, 0.050678011029958725, 0.04743872582912445, -0.29532578587532043, 0.47746631503105164, -0.258181095123291, 0.03963076323270798, -0.045907191932201385, 0.1261550635099411, -0.2111627757549286, 0.13940399885177612, -0.07040558755397797, -0.06027398258447647, 0.4786510169506073, -0.05580105632543564, -0.2215867042541504, -0.001833200454711914, 0.05682943016290665, 0.5222744941711426, -0.291434645652771, -0.2592354118824005, -0.20778414607048035, -0.1109972670674324, 0.5018334984779358, 0.12704865634441376, -0.026215389370918274, 0.12096170336008072, -0.11938727647066116, 0.1256473958492279, 0.4137428104877472, 0.11260931193828583, 0.2587312161922455, -0.10616594552993774, 0.13380640745162964, -0.2096855193376541, -0.05312858149409294, 0.030071500688791275, -0.2565574645996094, -0.34722116589546204, -0.03979133814573288, 0.13694633543491364, 0.0630878210067749, -0.6334784030914307, -0.5506576299667358, -0.09687229990959167, 0.18771693110466003, -0.15897206962108612, 0.07587358355522156, 0.2414228618144989, 0.3916783034801483, 0.28535977005958557, 0.08113721758127213, 0.42331933975219727, -0.3634110689163208, -0.4190938174724579, -0.033533647656440735, 0.3151697516441345, -0.271723210811615, -0.14762265980243683, 0.2354326695203781, -0.46312645077705383, 0.17180854082107544, 0.20518888533115387, 0.10931268334388733, -0.31528833508491516, 0.10672766715288162, -0.2453600913286209, -0.053902991116046906, 0.10676218569278717, 0.013329342007637024, 0.15721409022808075, 0.11441579461097717, -0.1523548662662506, -0.11684557050466537, 0.30591824650764465, -0.09591265767812729, -0.3302599787712097, -0.005564456805586815, 0.1760030835866928, -0.4057934284210205, -0.03221661597490311, -0.09490402787923813, 0.5754480957984924, 0.22099429368972778, -0.3008321225643158, -0.09642565995454788, 0.0286837387830019, -0.17188827693462372, 0.2084602564573288, 0.3627922534942627, 0.23679190874099731, -0.4474904537200928, -0.15160822868347168, -0.39725327491760254, -0.2534177005290985, 0.3443848192691803, 0.45121824741363525, -0.0580020546913147, -0.027520202100276947, -0.07404305040836334, 0.3737642168998718, 0.33711645007133484, -0.21983519196510315, -0.3702954053878784, 0.2273619920015335, -0.009665753692388535, -0.07766175270080566, 0.013256005942821503, -0.3609869182109833, 0.1307990550994873, 0.016306303441524506, 0.04440736398100853, 0.4918053150177002, -0.09253823757171631, -0.04995217174291611, 0.031049605458974838, -0.14151199162006378, 0.2739335894584656, 0.2196357399225235, -0.0036600492894649506, 0.05084403604269028, 0.030216459184885025, 0.2522640824317932, 0.24888965487480164, -0.11890219151973724, 0.14740785956382751, -0.04720551520586014, 0.2589934766292572, -0.4181399941444397, -0.10721927136182785, -0.29690635204315186, 0.19313427805900574, 0.0060215480625629425, 0.26096680760383606, 0.021157536655664444, 0.26013970375061035, -0.025281522423028946, -0.4374641478061676, -0.4390032887458801, -0.2799887955188751, -0.08748295903205872, 0.028970737010240555, -0.1300611048936844, 0.07809306681156158, -0.2795306444168091, -0.262959361076355, -0.24885138869285583, 0.32338589429855347, -0.11229773610830307, -0.1334468573331833, 0.15514640510082245, -0.031852103769779205, -0.09320797771215439, 0.14663586020469666, 0.2320443093776703, 0.12287639081478119, 0.1398148089647293, -0.1911437213420868, 0.1521095484495163, 0.17378367483615875, 0.3163678050041199, -0.18302679061889648, -0.13031326234340668, 0.08463673293590546, -0.5156569480895996, -0.01351938210427761, -0.2294337898492813, 0.07882563769817352, -0.019206102937459946, -0.0173979252576828, 0.38970130681991577, 0.27821290493011475, 0.20170670747756958, -0.059911809861660004, -0.052520930767059326, 0.2010945975780487, -0.21749667823314667, -0.111204594373703, -0.20098257064819336, 0.37995097041130066, 0.0056978864595294, 0.3964250087738037, -0.045806996524333954, -0.2611408531665802, -0.06365420669317245, -0.17869631946086884, -0.1721646785736084, -0.060733236372470856, 0.12094417959451675, 0.04726811498403549, -0.11769206821918488, 0.0712108314037323, -0.1805218756198883, 0.4995967149734497, 0.2363896518945694, 0.24676598608493805, 0.28925225138664246, 0.18198423087596893, -0.020034324377775192, 0.12683287262916565, -0.01266375184059143, 0.14954379200935364, 0.26002877950668335, -0.04868359491229057, -0.13819652795791626, -0.6883504390716553, -0.21046875417232513, 0.032552167773246765, -0.03154657036066055, -0.371356725692749, -0.07774225622415543, -0.24154479801654816, 0.15644735097885132, -0.10583550482988358, -0.19152286648750305, -0.1418353170156479, 0.12032441794872284, 0.13191646337509155, 0.029047470539808273, -0.2104981690645218, 0.018334290012717247, -0.16183093190193176, 0.1406790316104889, -0.06460511684417725, -0.04593055695295334, -0.1911691576242447, -0.13217084109783173, -0.2542590796947479, 0.13893234729766846, 0.23087118566036224, 0.23231057822704315, 0.2109355479478836, -0.23016151785850525, -0.09188829362392426, 0.30334338545799255, -0.2772497534751892, 0.10339418053627014, 0.025096287950873375, 0.330841064453125, -0.02410363405942917, 0.2804033160209656, -0.20349889993667603, -0.3622405529022217, 0.045108817517757416, -0.026341136544942856, -0.2831203043460846, 0.073517806828022, -0.02395048551261425, 0.15755979716777802, -0.007540404796600342, -0.6084853410720825, -0.4049544930458069, -0.21583862602710724, -0.22351153194904327, -0.326113224029541, 0.20495188236236572, 0.6240538954734802, -0.06279729306697845, -0.05831163749098778, -0.02767249383032322, 0.06562147289514542, -0.5522114634513855, 0.018941018730401993, 0.2717558741569519, -0.16183985769748688, -0.13700789213180542, -0.007352523505687714, 0.12621939182281494, 0.23099163174629211, -0.06974177807569504, -0.12503843009471893, 0.24830715358257294, -0.20864646136760712, -0.22519880533218384, -0.12453466653823853, 0.23934699594974518, 0.028856024146080017, -0.07451573759317398, -0.08586131781339645, -0.14039279520511627, -0.0727405995130539, 0.10750681906938553, 0.11734791845083237, 0.1873379647731781, -0.20938754081726074, 0.29390156269073486, -0.06470803916454315, 0.5003942847251892, 0.12309129536151886, 0.2668534815311432, 0.28844088315963745, 0.014055013656616211, 0.0829806849360466, -0.20132166147232056, -0.1932302564382553, 0.3373754322528839, 0.14639738202095032, -0.09489918500185013, 0.3688964247703552, 0.09303735196590424, -0.19715552031993866, -0.38531604409217834, -0.3470710515975952, -0.1359371840953827, -0.14341333508491516, 0.08215675503015518, -0.10179878771305084, 0.026311159133911133, 0.13148406147956848, -0.0798787921667099, 0.09136612713336945, 0.046442143619060516, -0.08094826340675354, 0.14819766581058502, 0.04018094018101692, 0.025748010724782944, -0.5134044289588928, -0.29551059007644653, -0.3462991416454315, 0.28732138872146606, -0.05443340539932251, 0.4079287052154541, -0.23536525666713715, 0.23078614473342896, 0.04905545338988304, 0.2758404612541199, 0.22605964541435242, -0.15967655181884766, 0.2207738310098648, -0.16624076664447784, 0.06724117696285248, -0.1245536282658577, 0.007738262414932251, -0.31066814064979553, -0.21496087312698364, 0.1264016479253769, -0.036457359790802, -0.3861822187900543, -0.03552013263106346, 0.14135929942131042, 0.4066236615180969, 0.10537301003932953, -0.39663800597190857, -0.07754871994256973, -0.49954453110694885, -0.33708781003952026, 0.28325340151786804, 0.3112359046936035, 0.31601861119270325, -0.12875418365001678, -0.00636151060461998, 0.4229435920715332, 0.054962195456027985, 0.7021319270133972, 0.22377212345600128, 0.14241668581962585, 0.2469790279865265, 0.003093898296356201, 0.39540815353393555, -0.22136908769607544, -0.18405362963676453, 0.7122516632080078, 0.2738470137119293, -0.03588433563709259, 0.16283774375915527, 0.0004801591858267784, 0.3033234179019928, 0.41241341829299927, 0.15023866295814514, -0.09155035763978958, 0.29654353857040405, -0.28126877546310425, 0.21588994562625885, 0.1793118119239807, -0.18320073187351227, 0.41884419322013855, -0.25817224383354187, -0.3447214663028717, 0.4653080999851227, -0.04849518835544586, -0.0412285216152668, 0.05533677339553833, 0.10536119341850281, -0.36855557560920715, 0.2599497437477112, -0.04672708362340927, 1.154323697090149, 0.39969873428344727, -0.14266738295555115, 0.15956076979637146, 0.09598544239997864, -0.08464633673429489, 0.16540545225143433, -0.16558678448200226, -0.08300469815731049, -0.13387630879878998, -0.08290451765060425, -0.13542865216732025, 0.05949733406305313, 0.5146600008010864, -0.25004979968070984, 0.2564889192581177, -0.29294610023498535, -0.1693284958600998, 0.32310521602630615, 0.21098434925079346, -0.23314419388771057, -0.10699601471424103, -0.2099359780550003, 0.07734324783086777, 0.0008011870086193085, 0.317484974861145, 0.06093188375234604, -0.02164606750011444, -0.17484518885612488, -0.401985228061676, -0.30393165349960327, 0.2602687180042267, -0.43176472187042236, 0.023649314418435097, -0.14613071084022522, -0.16323322057724, 0.5573460459709167, 0.045926377177238464, 0.1789683997631073, 0.19856975972652435, -0.20800010859966278, 0.32408174872398376, 0.3253098130226135, 0.25950559973716736, 0.10104066133499146, -0.12064814567565918, 0.2045365422964096, -0.24897149205207825, -0.6084559559822083, 0.0687345564365387, -0.07975076138973236, 0.1698756068944931, 0.04457835853099823, -0.10710370540618896, 0.02236834540963173, -0.18034373223781586, -0.5202239751815796, 0.03333033248782158, 0.14809271693229675, -0.08425646275281906, 0.08104303479194641, 0.1128859594464302, -0.3689027428627014, 0.2044350504875183, 0.17820054292678833, -0.13250476121902466, 0.18579457700252533, 0.30076369643211365, 0.22924229502677917, -0.2700123190879822, 0.624186635017395, 0.003435615450143814, -0.14276167750358582, -0.12205559015274048, -0.06089160963892937, 0.4759146273136139, -0.3731217682361603, -0.1735084056854248, -0.1754188984632492, -0.15176154673099518, -0.0649922639131546, 0.16873446106910706, 0.2451997697353363, 0.21848133206367493, 0.1327132135629654, -0.5858150124549866, -0.235928013920784, 0.2567879557609558, -0.2136683315038681, 0.21056698262691498, -0.02466583251953125, 0.04420323297381401, 0.06418794393539429, 0.09216438978910446, -0.2799755334854126, -0.05297570675611496, 0.07862309366464615, 0.33896028995513916, -0.19067463278770447, -0.0564844086766243, -0.07789085060358047, -0.10313794016838074, 0.11096295714378357, 0.19498062133789062, -0.16596442461013794, -0.18192917108535767, -0.12859627604484558, 0.2121843546628952, -0.0007275901734828949, -0.27843883633613586, 0.4149215817451477, 0.19411851465702057, 0.042050763964653015, 0.06804774701595306, 0.18433800339698792, -0.047243375331163406, 0.16167061030864716, 0.015837203711271286, -0.049887049943208694, -0.3454747498035431, -0.05677473172545433, -0.00950472429394722, 0.03144295886158943, -0.0061051249504089355, 0.173091322183609, 0.28093650937080383, 0.2239503115415573, -0.25007766485214233, -0.06096788868308067, 0.03913915902376175, 0.19654521346092224, -0.040875039994716644, -0.3384338617324829, -0.15774579346179962, 0.19055861234664917, 0.35925760865211487, 0.24821603298187256, 0.35637757182121277, -0.27157849073410034, 0.28907766938209534, 0.043556079268455505, 0.2661157250404358, -0.4507578909397125, 0.15171858668327332, -0.044107917696237564, -0.09337974339723587, -0.12289243936538696, 0.09531684219837189, 0.1505856215953827, 0.000015370547771453857, 0.1596074104309082, -0.06525245308876038, 0.16265526413917542, -0.03227274492383003, 0.15787003934383392, 0.2907958924770355, -0.3234926164150238, -0.005383778363466263, 0.11659319698810577, -0.11973024904727936, 0.006493493914604187, 0.11181767284870148, -0.5037004351615906, 0.13857559859752655, 0.2684856653213501, 0.28858259320259094, -0.10308531671762466, -0.5902221202850342, -0.1538936346769333, 0.39462071657180786, -0.002004265785217285, -0.03320430964231491, 0.02978413552045822, 0.32832714915275574, 0.022411905229091644, -0.2604556679725647, 0.13758841156959534, 0.21148012578487396, 0.0563373826444149, -0.057424355298280716, -0.19266687333583832, -0.3129396438598633, -0.6163848638534546, -0.13573674857616425, 0.04124462977051735, -0.20063896477222443, 0.2157329022884369, 0.09348943084478378, -0.10855738818645477, -0.2499956339597702, -0.14471331238746643, 0.21299701929092407, -0.18373912572860718, -0.4464094936847687, 0.6213790774345398, 0.18253062665462494, -0.07088959217071533, 0.6958620548248291, 0.49247223138809204, 0.4078279137611389, 0.13855090737342834, 0.08407048881053925, 0.15854883193969727, -0.17246130108833313, -0.16182924807071686, 0.11146277189254761, 0.2422594428062439, 0.3981034457683563, 0.4992973506450653, 0.2992222309112549, 0.15602901577949524, -0.09636400640010834, -0.37800920009613037, 0.32616764307022095, -0.05876617506146431, -0.3287005126476288, -0.10801348835229874, 0.04308643564581871, 0.17170202732086182, -0.2408529818058014, -0.049774251878261566, -0.35997408628463745, 0.0695561021566391, 0.005689722485840321, -0.06443942338228226, 0.022151846438646317, 0.15938423573970795, 0.05586332082748413, -0.07308687269687653, 0.09045618772506714, 0.07120723277330399, 0.10997293889522552, -0.3688564896583557, -0.2611950933933258, -0.6184166669845581, -0.038976944983005524, 0.1325371414422989, -0.0885649248957634, 0.071901336312294, -0.004068206064403057, 0.31573569774627686, 0.34032362699508667, -0.020129606127738953, 0.09362412244081497, -0.1739608645439148, 0.059245090931653976, -0.11868689954280853, 0.17014187574386597, 0.12207679450511932, 0.5759692788124084, -0.11647708714008331, -0.39760348200798035, 0.17383702099323273, 0.15350838005542755, -0.11348413676023483, -0.020372729748487473, -0.1447398066520691, 0.12140561640262604, -0.0536310076713562, 0.08699417114257812, 0.30298927426338196, 0.9045287370681763, -0.2889249622821808, 0.2840063273906708, -0.23727405071258545, -0.21347233653068542, -0.3325366973876953, 0.16413743793964386, 0.3928000032901764, 0.4548940658569336, 0.2044510543346405, 0.06923428922891617, -0.1202085092663765, 0.3423480987548828, -0.22952686250209808, -0.13651350140571594, -0.4317428171634674, -0.041606876999139786, 0.08708933740854263, 0.14585311710834503, -0.17213013768196106, -0.01753866672515869, -0.08975188434123993, -0.011741572991013527, -0.31970784068107605, -0.35615164041519165, 0.6214243173599243, -0.31317147612571716, -0.4680508077144623, -0.13123445212841034, 0.4539446234703064, 0.4323722720146179, -0.23408693075180054, -0.3489123582839966, 0.19021308422088623, 0.09374704211950302, -0.18848863244056702, -0.053620368242263794, 0.183968186378479, 0.13731196522712708, -0.07982369512319565, -0.007508985698223114, 0.29265886545181274, 0.28653374314308167, -0.2415880560874939, -0.19880250096321106, -0.5894849896430969 ]
https://github.com/huggingface/datasets/issues/3851
Load audio dataset error
Hi @lemoner20, thanks for reporting. I'm sorry but I cannot reproduce your problem: ```python In [1]: from datasets import load_dataset, load_metric, Audio ...: raw_datasets = load_dataset("superb", "ks", split="train") ...: print(raw_datasets[0]["audio"]) Downloading builder script: 30.2kB [00:00, 13.0MB/s] Downloading metadata: 38.0kB [00:00, 16.6MB/s] Downloading and preparing dataset superb/ks (download: 1.45 GiB, generated: 9.64 MiB, post-processed: Unknown size, total: 1.46 GiB) to .../.cache/huggingface/datasets/superb/ks/1.9.0/fc1f59e1fa54262dfb42de99c326a806ef7de1263ece177b59359a1a3354a9c9... Downloading data: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1.49G/1.49G [00:37<00:00, 39.3MB/s] Downloading data: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 71.3M/71.3M [00:01<00:00, 36.1MB/s] Downloading data files: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:41<00:00, 20.67s/it] Extracting data files: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:28<00:00, 14.24s/it] Dataset superb downloaded and prepared to .../.cache/huggingface/datasets/superb/ks/1.9.0/fc1f59e1fa54262dfb42de99c326a806ef7de1263ece177b59359a1a3354a9c9. Subsequent calls will reuse this data. {'path': '.../.cache/huggingface/datasets/downloads/extracted/8571921d3088b48f58f75b2e514815033e1ffbd06aa63fd4603691ac9f1c119f/_background_noise_/doing_the_dishes.wav', 'array': array([ 0. , 0. , 0. , ..., -0.00592041, -0.00405884, -0.00253296], dtype=float32), 'sampling_rate': 16000} ``` Which version of `datasets` are you using? Could you please fill in the environment info requested in the bug report template? You can run the command `datasets-cli env` and copy-and-paste its output below ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: - Platform: - Python version: - PyArrow version:
## Load audio dataset error Hi, when I load audio dataset following https://huggingface.co/docs/datasets/audio_process and https://github.com/huggingface/datasets/tree/master/datasets/superb, ``` from datasets import load_dataset, load_metric, Audio raw_datasets = load_dataset("superb", "ks", split="train") print(raw_datasets[0]["audio"]) ``` following errors occur ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-169-3f8253239fa0> in <module> ----> 1 raw_datasets[0]["audio"] /usr/lib/python3.6/site-packages/datasets/arrow_dataset.py in __getitem__(self, key) 1924 """Can be used to index columns (by string names) or rows (by integer index or iterable of indices or bools).""" 1925 return self._getitem( -> 1926 key, 1927 ) 1928 /usr/lib/python3.6/site-packages/datasets/arrow_dataset.py in _getitem(self, key, decoded, **kwargs) 1909 pa_subtable = query_table(self._data, key, indices=self._indices if self._indices is not None else None) 1910 formatted_output = format_table( -> 1911 pa_subtable, key, formatter=formatter, format_columns=format_columns, output_all_columns=output_all_columns 1912 ) 1913 return formatted_output /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in format_table(table, key, formatter, format_columns, output_all_columns) 530 python_formatter = PythonFormatter(features=None) 531 if format_columns is None: --> 532 return formatter(pa_table, query_type=query_type) 533 elif query_type == "column": 534 if key in format_columns: /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in __call__(self, pa_table, query_type) 279 def __call__(self, pa_table: pa.Table, query_type: str) -> Union[RowFormat, ColumnFormat, BatchFormat]: 280 if query_type == "row": --> 281 return self.format_row(pa_table) 282 elif query_type == "column": 283 return self.format_column(pa_table) /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in format_row(self, pa_table) 310 row = self.python_arrow_extractor().extract_row(pa_table) 311 if self.decoded: --> 312 row = self.python_features_decoder.decode_row(row) 313 return row 314 /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in decode_row(self, row) 219 220 def decode_row(self, row: dict) -> dict: --> 221 return self.features.decode_example(row) if self.features else row 222 223 def decode_column(self, column: list, column_name: str) -> list: /usr/lib/python3.6/site-packages/datasets/features/features.py in decode_example(self, example) 1320 else value 1321 for column_name, (feature, value) in utils.zip_dict( -> 1322 {key: value for key, value in self.items() if key in example}, example 1323 ) 1324 } /usr/lib/python3.6/site-packages/datasets/features/features.py in <dictcomp>(.0) 1319 if self._column_requires_decoding[column_name] 1320 else value -> 1321 for column_name, (feature, value) in utils.zip_dict( 1322 {key: value for key, value in self.items() if key in example}, example 1323 ) /usr/lib/python3.6/site-packages/datasets/features/features.py in decode_nested_example(schema, obj) 1053 # Object with special decoding: 1054 elif isinstance(schema, (Audio, Image)): -> 1055 return schema.decode_example(obj) if obj is not None else None 1056 return obj 1057 /usr/lib/python3.6/site-packages/datasets/features/audio.py in decode_example(self, value) 100 array, sampling_rate = self._decode_non_mp3_file_like(file) 101 else: --> 102 array, sampling_rate = self._decode_non_mp3_path_like(path) 103 return {"path": path, "array": array, "sampling_rate": sampling_rate} 104 /usr/lib/python3.6/site-packages/datasets/features/audio.py in _decode_non_mp3_path_like(self, path) 143 144 with xopen(path, "rb") as f: --> 145 array, sampling_rate = librosa.load(f, sr=self.sampling_rate, mono=self.mono) 146 return array, sampling_rate 147 /usr/lib/python3.6/site-packages/librosa/core/audio.py in load(path, sr, mono, offset, duration, dtype, res_type) 110 111 y = [] --> 112 with audioread.audio_open(os.path.realpath(path)) as input_file: 113 sr_native = input_file.samplerate 114 n_channels = input_file.channels /usr/lib/python3.6/posixpath.py in realpath(filename) 392 """Return the canonical path of the specified filename, eliminating any 393 symbolic links encountered in the path.""" --> 394 filename = os.fspath(filename) 395 path, ok = _joinrealpath(filename[:0], filename, {}) 396 return abspath(path) TypeError: expected str, bytes or os.PathLike object, not _io.BufferedReader ``` ## Expected results ``` >>> raw_datasets[0]["audio"] {'array': array([-0.0005188 , -0.00109863, 0.00030518, ..., 0.01730347, 0.01623535, 0.01724243]), 'path': '/root/.cache/huggingface/datasets/downloads/extracted/bb3a06b491a64aff422f307cd8116820b4f61d6f32fcadcfc554617e84383cb7/bed/026290a7_nohash_0.wav', 'sampling_rate': 16000} ```
178
Load audio dataset error ## Load audio dataset error Hi, when I load audio dataset following https://huggingface.co/docs/datasets/audio_process and https://github.com/huggingface/datasets/tree/master/datasets/superb, ``` from datasets import load_dataset, load_metric, Audio raw_datasets = load_dataset("superb", "ks", split="train") print(raw_datasets[0]["audio"]) ``` following errors occur ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-169-3f8253239fa0> in <module> ----> 1 raw_datasets[0]["audio"] /usr/lib/python3.6/site-packages/datasets/arrow_dataset.py in __getitem__(self, key) 1924 """Can be used to index columns (by string names) or rows (by integer index or iterable of indices or bools).""" 1925 return self._getitem( -> 1926 key, 1927 ) 1928 /usr/lib/python3.6/site-packages/datasets/arrow_dataset.py in _getitem(self, key, decoded, **kwargs) 1909 pa_subtable = query_table(self._data, key, indices=self._indices if self._indices is not None else None) 1910 formatted_output = format_table( -> 1911 pa_subtable, key, formatter=formatter, format_columns=format_columns, output_all_columns=output_all_columns 1912 ) 1913 return formatted_output /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in format_table(table, key, formatter, format_columns, output_all_columns) 530 python_formatter = PythonFormatter(features=None) 531 if format_columns is None: --> 532 return formatter(pa_table, query_type=query_type) 533 elif query_type == "column": 534 if key in format_columns: /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in __call__(self, pa_table, query_type) 279 def __call__(self, pa_table: pa.Table, query_type: str) -> Union[RowFormat, ColumnFormat, BatchFormat]: 280 if query_type == "row": --> 281 return self.format_row(pa_table) 282 elif query_type == "column": 283 return self.format_column(pa_table) /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in format_row(self, pa_table) 310 row = self.python_arrow_extractor().extract_row(pa_table) 311 if self.decoded: --> 312 row = self.python_features_decoder.decode_row(row) 313 return row 314 /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in decode_row(self, row) 219 220 def decode_row(self, row: dict) -> dict: --> 221 return self.features.decode_example(row) if self.features else row 222 223 def decode_column(self, column: list, column_name: str) -> list: /usr/lib/python3.6/site-packages/datasets/features/features.py in decode_example(self, example) 1320 else value 1321 for column_name, (feature, value) in utils.zip_dict( -> 1322 {key: value for key, value in self.items() if key in example}, example 1323 ) 1324 } /usr/lib/python3.6/site-packages/datasets/features/features.py in <dictcomp>(.0) 1319 if self._column_requires_decoding[column_name] 1320 else value -> 1321 for column_name, (feature, value) in utils.zip_dict( 1322 {key: value for key, value in self.items() if key in example}, example 1323 ) /usr/lib/python3.6/site-packages/datasets/features/features.py in decode_nested_example(schema, obj) 1053 # Object with special decoding: 1054 elif isinstance(schema, (Audio, Image)): -> 1055 return schema.decode_example(obj) if obj is not None else None 1056 return obj 1057 /usr/lib/python3.6/site-packages/datasets/features/audio.py in decode_example(self, value) 100 array, sampling_rate = self._decode_non_mp3_file_like(file) 101 else: --> 102 array, sampling_rate = self._decode_non_mp3_path_like(path) 103 return {"path": path, "array": array, "sampling_rate": sampling_rate} 104 /usr/lib/python3.6/site-packages/datasets/features/audio.py in _decode_non_mp3_path_like(self, path) 143 144 with xopen(path, "rb") as f: --> 145 array, sampling_rate = librosa.load(f, sr=self.sampling_rate, mono=self.mono) 146 return array, sampling_rate 147 /usr/lib/python3.6/site-packages/librosa/core/audio.py in load(path, sr, mono, offset, duration, dtype, res_type) 110 111 y = [] --> 112 with audioread.audio_open(os.path.realpath(path)) as input_file: 113 sr_native = input_file.samplerate 114 n_channels = input_file.channels /usr/lib/python3.6/posixpath.py in realpath(filename) 392 """Return the canonical path of the specified filename, eliminating any 393 symbolic links encountered in the path.""" --> 394 filename = os.fspath(filename) 395 path, ok = _joinrealpath(filename[:0], filename, {}) 396 return abspath(path) TypeError: expected str, bytes or os.PathLike object, not _io.BufferedReader ``` ## Expected results ``` >>> raw_datasets[0]["audio"] {'array': array([-0.0005188 , -0.00109863, 0.00030518, ..., 0.01730347, 0.01623535, 0.01724243]), 'path': '/root/.cache/huggingface/datasets/downloads/extracted/bb3a06b491a64aff422f307cd8116820b4f61d6f32fcadcfc554617e84383cb7/bed/026290a7_nohash_0.wav', 'sampling_rate': 16000} ``` Hi @lemoner20, thanks for reporting. I'm sorry but I cannot reproduce your problem: ```python In [1]: from datasets import load_dataset, load_metric, Audio ...: raw_datasets = load_dataset("superb", "ks", split="train") ...: print(raw_datasets[0]["audio"]) Downloading builder script: 30.2kB [00:00, 13.0MB/s] Downloading metadata: 38.0kB [00:00, 16.6MB/s] Downloading and preparing dataset superb/ks (download: 1.45 GiB, generated: 9.64 MiB, post-processed: Unknown size, total: 1.46 GiB) to .../.cache/huggingface/datasets/superb/ks/1.9.0/fc1f59e1fa54262dfb42de99c326a806ef7de1263ece177b59359a1a3354a9c9... Downloading data: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1.49G/1.49G [00:37<00:00, 39.3MB/s] Downloading data: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 71.3M/71.3M [00:01<00:00, 36.1MB/s] Downloading data files: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:41<00:00, 20.67s/it] Extracting data files: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:28<00:00, 14.24s/it] Dataset superb downloaded and prepared to .../.cache/huggingface/datasets/superb/ks/1.9.0/fc1f59e1fa54262dfb42de99c326a806ef7de1263ece177b59359a1a3354a9c9. Subsequent calls will reuse this data. {'path': '.../.cache/huggingface/datasets/downloads/extracted/8571921d3088b48f58f75b2e514815033e1ffbd06aa63fd4603691ac9f1c119f/_background_noise_/doing_the_dishes.wav', 'array': array([ 0. , 0. , 0. , ..., -0.00592041, -0.00405884, -0.00253296], dtype=float32), 'sampling_rate': 16000} ``` Which version of `datasets` are you using? Could you please fill in the environment info requested in the bug report template? You can run the command `datasets-cli env` and copy-and-paste its output below ## Environment info <!-- You can run the command `datasets-cli env` and copy-and-paste its output below. --> - `datasets` version: - Platform: - Python version: - PyArrow version:
[ -0.37698861956596375, -0.11540660262107849, -0.030820168554782867, 0.3962247967720032, 0.45797091722488403, 0.06998445838689804, 0.2902418375015259, 0.3150891661643982, -0.053028419613838196, 0.17489753663539886, -0.5356048345565796, 0.3172008693218231, -0.2974059581756592, 0.009562766179442406, -0.01793067529797554, -0.41443148255348206, -0.062487103044986725, 0.1607663482427597, -0.36746683716773987, 0.08969196677207947, -0.3725427985191345, 0.17430733144283295, -0.32617878913879395, 0.28652942180633545, -0.21815161406993866, -0.10664921253919601, 0.19831152260303497, 0.10520736873149872, -0.40443554520606995, -0.5568414330482483, 0.20959390699863434, -0.21488386392593384, 0.27188965678215027, 0.6587948799133301, -0.00010911104618571699, 0.10621479153633118, 0.37928587198257446, -0.0474429726600647, -0.41358375549316406, -0.2822248339653015, -0.4285668730735779, 0.05962193012237549, 0.14897392690181732, -0.12742406129837036, -0.0034841932356357574, -0.44314146041870117, -0.19010885059833527, -0.3268802762031555, 0.46151024103164673, 0.2684744894504547, 0.2999235987663269, 0.4350046217441559, 0.1923300325870514, -0.22034786641597748, 0.11943185329437256, 0.1547945886850357, 0.017395710572600365, 0.4202328026294708, 0.009191647171974182, 0.04916679114103317, 0.006947040557861328, 0.29845985770225525, -0.1738763153553009, 0.17633521556854248, 0.22985109686851501, -0.1352759152650833, -0.16752246022224426, -0.18790249526500702, 0.1613013744354248, 0.1987246572971344, 0.4726320207118988, -0.4815637171268463, -0.3459491431713104, -0.038682833313941956, 0.06902340799570084, -0.47027719020843506, 0.08012496680021286, 0.1715593785047531, -0.09720057249069214, 0.09529329091310501, -0.20516341924667358, 0.046524371951818466, -0.06869387626647949, 0.16827455163002014, 0.2375469207763672, 0.006446659564971924, -0.3387324810028076, 0.037226732820272446, 0.2738149166107178, -0.2141980081796646, -0.16694338619709015, 0.048363097012043, -0.1655760109424591, 0.36569827795028687, -0.4240429103374481, 0.11165684461593628, 0.04569860175251961, -0.13732334971427917, 0.014645323157310486, -0.04035305976867676, 0.017625899985432625, 0.04158588498830795, 0.07056768238544464, 0.16466102004051208, 0.22966957092285156, 0.0986422598361969, 0.15280768275260925, 0.1120607778429985, 0.1326160877943039, 0.23369449377059937, 0.09248773753643036, -0.031891122460365295, -0.2244517058134079, -0.23442700505256653, 0.035096969455480576, 0.11302677541971207, 0.4560841917991638, -0.23726290464401245, -0.40914735198020935, 0.02701915055513382, -0.09744137525558472, -0.0856005921959877, 0.31549638509750366, 0.2793029248714447, 0.24992240965366364, 0.10256370902061462, 0.21952755749225616, 0.39149123430252075, -0.13597209751605988, 0.0922219455242157, -0.13423554599285126, 0.08337876200675964, -0.0309070385992527, 0.13357660174369812, 0.287015825510025, -0.22245286405086517, 0.15504199266433716, 0.20770913362503052, 0.1261923909187317, -0.16103306412696838, 0.018926801159977913, -0.04930674657225609, -0.22745630145072937, 0.3239482343196869, -0.09602304548025131, 0.14989560842514038, 0.13938823342323303, 0.04106266051530838, -0.10443927347660065, 0.07067856937646866, -0.1952909231185913, -0.30296334624290466, -0.10498559474945068, 0.2461145967245102, -0.05281437933444977, 0.13407370448112488, -0.4590176045894623, -0.07322251796722412, 0.13850568234920502, -0.34591659903526306, 0.0648965835571289, -0.32057130336761475, -0.2848418354988098, 0.01838124915957451, 0.355086088180542, 0.2735078036785126, -0.2584555149078369, -0.17899475991725922, -0.11160539835691452, -0.2246556580066681, 0.03542162477970123, 0.35272330045700073, 0.029017336666584015, 0.2925768792629242, -0.14929883182048798, -0.025982480496168137, 0.2977186441421509, -0.30809521675109863, -0.20158031582832336, -0.06839486956596375, -0.021334167569875717, 0.12062466889619827, -0.08192870765924454, -0.11631106585264206, 0.10977590829133987, -0.046830274164676666, 0.31954509019851685, 0.057970333844423294, 0.08817776292562485, -0.06404492259025574, -0.0038451068103313446, -0.10556333512067795, -0.05193916708230972, 0.21325811743736267, -0.22082825005054474, 0.09107586741447449, -0.04675550013780594, -0.00948537327349186, 0.04767847806215286, -0.09926924109458923, -0.02555040270090103, 0.15980646014213562, 0.21962058544158936, 0.008425209671258926, -0.08358822762966156, -0.4422387480735779, -0.257641077041626, 0.017304573208093643, -0.09131109714508057, 0.18249793350696564, -0.36267679929733276, -0.06660766899585724, -0.24784135818481445, 0.1375558227300644, -0.39861369132995605, 0.05820859968662262, 0.13906973600387573, 0.09235168248414993, -0.04797784239053726, 0.06317995488643646, -0.2436271458864212, -0.049308933317661285, -0.057798974215984344, 0.054016534239053726, -0.4655536115169525, 0.059727743268013, 0.01912473887205124, -0.1688707172870636, 0.2765914797782898, 0.3562168478965759, 0.27616140246391296, -0.02659420855343342, -0.2120908498764038, 0.5099464654922485, 0.10674388706684113, 0.14628086984157562, -0.34292519092559814, 0.010127931833267212, 0.08339661359786987, -0.32265302538871765, -0.009067827835679054, -0.062329333275556564, 0.2937444746494293, -0.09973800927400589, -0.06723000854253769, 0.45834946632385254, -0.1053345799446106, 0.32003191113471985, 0.004308581352233887, -0.05898435413837433, 0.18027813732624054, 0.4128151535987854, -0.079990915954113, -0.14139029383659363, 0.16232000291347504, -0.1702553927898407, 0.19154304265975952, -0.054732851684093475, -0.3017841577529907, -0.31859633326530457, 0.2729860246181488, -0.1987493485212326, 0.09745615720748901, 0.134556382894516, -0.1964375078678131, 0.014538958668708801, 0.21908582746982574, -0.06007835641503334, 0.34602558612823486, 0.1377626210451126, -0.18270961940288544, 0.012034939602017403, -0.06520584970712662, -0.07165434211492538, 0.28847548365592957, 0.13372084498405457, 0.09282609075307846, 0.31199902296066284, 0.10783279687166214, 0.008172948844730854, -0.4893483519554138, -0.12667517364025116, -0.17309069633483887, 0.3339037597179413, -0.5299004316329956, -0.1459740400314331, -0.33159902691841125, -0.24889039993286133, -0.16439644992351532, -0.33937492966651917, -0.008697982877492905, -0.17275521159172058, -0.07394260913133621, 0.22996886074543, -0.2515614330768585, 0.33636945486068726, -0.09804265201091766, 0.10930484533309937, 0.19064278900623322, -0.05131839960813522, -0.10534483194351196, -0.06962399184703827, -0.0017027482390403748, 0.0683407336473465, 0.46552222967147827, 0.21311357617378235, 0.2999575436115265, -0.13949640095233917, 0.04691532999277115, -0.11560777574777603, -0.026230521500110626, 0.005324233323335648, -0.15547752380371094, 0.22200070321559906, 0.0740111917257309, 0.2549061179161072, -0.06429829448461533, -0.6536605358123779, 0.48105353116989136, -0.016089944168925285, -0.14526505768299103, 0.41306498646736145, -0.02334681898355484, 0.07642681151628494, -0.13808846473693848, -0.30180391669273376, -0.1945595145225525, -0.5705912709236145, 0.32273614406585693, -0.12577039003372192, 0.20205745100975037, 0.3859263062477112, -0.0013878187164664268, 0.3092150390148163, -0.015166150406002998, 0.34292998909950256, -0.21224254369735718, -0.15084366500377655, 0.28381529450416565, -0.28112608194351196, -0.24681682884693146, -0.3224193751811981, 0.055223554372787476, 0.27967187762260437, -0.011266561225056648, -0.3107510209083557, -0.10823144018650055, -0.0971764624118805, -0.1651502549648285, 0.017394378781318665, 0.08713506907224655, 0.03404455631971359, 0.22228188812732697, -0.040998611599206924, -0.07195577025413513, -0.1744193136692047, -0.02118036150932312, -0.07606066018342972, -0.10836029797792435, 0.08024074137210846, 0.7200369238853455, -0.34761202335357666, 0.5735510587692261, 0.24873393774032593, 0.04383845627307892, 0.3965498208999634, -0.017100023105740547, 0.25107479095458984, -0.4302440583705902, -0.4340077042579651, -0.07338006794452667, -0.11863067746162415, 0.08432964980602264, 0.045786648988723755, 0.1166929230093956, -0.05747072398662567, -0.17232389748096466, 0.1374429166316986, -0.18510344624519348, -0.19856424629688263, 0.059113048017024994, -0.11285720765590668, 0.2146124243736267, -0.01768944039940834, 0.13930785655975342, -0.0013668183237314224, -0.012019678950309753, 0.036937545984983444, 0.11903512477874756, 0.10039012134075165, -0.13045178353786469, -0.5379377007484436, -0.04928366839885712, -0.237307608127594, 0.33006447553634644, 0.13310189545154572, 0.6754536628723145, -0.17570675909519196, -0.15548956394195557, -0.017760708928108215, 0.19927580654621124, 0.15312260389328003, 0.10919398814439774, 0.06422609090805054, 0.24032461643218994, 0.04742276668548584, -0.3574051856994629, -0.03404337540268898, -0.3311008810997009, 0.21016809344291687, -0.018184758722782135, 0.37682393193244934, -0.24765720963478088, -0.25393736362457275, 0.3404424786567688, 0.29837730526924133, 0.09097945690155029, -0.16275452077388763, -0.25557607412338257, -0.3246847987174988, -0.28593137860298157, 0.060403164476156235, 0.049393825232982635, 0.3640836179256439, 0.07055438309907913, 0.044621292501688004, -0.00947793573141098, 0.005886707454919815, 0.33183592557907104, 0.017192713916301727, 0.38590431213378906, 0.16888050734996796, 0.292162150144577, 0.20844654738903046, -0.038020625710487366, 0.43442898988723755, 0.5396823883056641, -0.14911919832229614, -0.2729015648365021, 0.17503437399864197, 0.12578335404396057, 0.15445704758167267, 0.18005052208900452, -0.0136064188554883, 0.09868915379047394, 0.05434131994843483, 0.2142157405614853, -0.27204573154449463, 0.06708241254091263, 0.44178640842437744, 0.1236196979880333, -0.474012553691864, -0.42792755365371704, 0.5069891810417175, -0.03213507682085037, 0.029599793255329132, 0.5055595636367798, 0.46199727058410645, -0.1705464869737625, 0.2618415355682373, -0.2013261914253235, 0.7946385741233826, 0.025771401822566986, 0.11397328972816467, 0.544471800327301, -0.28228965401649475, 0.20943507552146912, 0.06951584666967392, 0.06566938757896423, -0.03446261212229729, -0.11647577583789825, -0.022824078798294067, -0.06625909358263016, -0.044314123690128326, 0.006120353937149048, -0.19289766252040863, 0.23634983599185944, -0.05566266179084778, 0.07206909358501434, -0.012137623503804207, 0.17405366897583008, -0.1788768470287323, -0.26044806838035583, -0.49015605449676514, 0.17014183104038239, -0.0034889504313468933, 0.05041400343179703, -0.05781805142760277, -0.14901137351989746, 0.2124679982662201, -0.27893543243408203, -0.2062697410583496, -0.06892701983451843, -0.27946150302886963, 0.2728646993637085, 0.13229432702064514, -0.43748563528060913, 0.29012036323547363, 0.07895392179489136, -0.2741124629974365, 0.06520935893058777, -0.1115565150976181, 0.0031239017844200134, -0.01966143399477005, 0.14331941306591034, -0.10609385371208191, 0.14159785211086273, 0.22844743728637695, -0.000028759241104125977, -0.1367737054824829, 0.04901885986328125, -0.010802075266838074, -0.16141048073768616, 0.1251276433467865, 0.08049832284450531, -0.022760339081287384, -0.35409384965896606, -0.4032338857650757, -0.2976568043231964, 0.06303428113460541, -0.16492561995983124, 0.1869926154613495, -0.04354212433099747, -0.20621727406978607, 0.10993572324514389, 0.16164462268352509, -0.1682066023349762, 0.028827153146266937, 0.430110901594162, -0.1315002739429474, -0.014322729781270027, 0.6254100799560547, 0.2552022635936737, -0.21590019762516022, -0.20312735438346863, 0.14462214708328247, 0.29479312896728516, -0.5281533598899841, 0.10573021322488785, 0.13838458061218262, 0.07218189537525177, -0.042406484484672546, 0.07685616612434387, 0.032076552510261536, -0.062172017991542816, 0.0034390129148960114, -0.3878534436225891, -0.44610172510147095, 0.4764642119407654, 0.03834378719329834, 0.30771905183792114, -0.06836995482444763, 0.07762269675731659, -0.03848252817988396, -0.03651590645313263, -0.35723644495010376, 0.1556636542081833, -0.13689221441745758, 0.264657199382782, 0.2682207524776459, -0.10163947194814682, 0.17307960987091064, -0.05722755193710327, 0.24351125955581665, 0.16168595850467682, -0.3068462610244751, -0.2195839285850525, 0.007529212161898613, 0.13316863775253296, -0.12674343585968018, -0.3238581120967865, -0.09372575581073761, 0.03997127711772919, -0.11052872240543365, -0.18980568647384644, 0.029723413288593292, 0.24396568536758423, -0.13213607668876648, 0.04232976213097572, 0.013128288090229034, 0.05714365839958191, 0.04007946699857712, 0.27217718958854675, -0.0328202098608017, -0.14429959654808044, -0.00996054895222187, 0.0465257354080677, -0.06977347284555435, -0.10187990963459015, -0.1238667219877243, 0.2403121292591095, 0.06247856467962265, -0.2173689901828766, 0.31434372067451477, -0.2445399910211563, 0.05390443280339241, 0.14846624433994293, 0.5309240818023682, 0.3925289213657379, -0.18492916226387024, -0.049104705452919006, 0.00995205994695425, 0.2348107248544693, -0.2104186713695526, 0.001887504244223237, -0.016231030225753784, -0.06943677365779877, -0.003174085170030594, 0.10980165004730225, -0.15596874058246613, 0.031043924391269684, 0.022810310125350952, 0.07957172393798828, 0.1721285581588745, 0.021508272737264633, 0.17476396262645721, 0.31140342354774475, 0.003660093992948532, -0.12153053283691406, 0.15637478232383728, 0.06848457455635071, 0.1835615038871765, 0.1623724102973938, -0.4743475317955017, 0.1918402910232544, 0.014994975179433823, -0.08260110020637512, 0.25919651985168457, -0.45217761397361755, -0.3418801426887512, 0.24833737313747406, 0.005576983094215393, 0.06415136158466339, -0.05184493958950043, 0.593359649181366, -0.3439289629459381, -0.17618754506111145, 0.03093245066702366, 0.06458575278520584, -0.16744741797447205, -0.09033113718032837, -0.10905342549085617, -0.15390396118164062, -0.1901974081993103, -0.10730457305908203, -0.07198472321033478, 0.19676755368709564, 0.05669720843434334, -0.0025784894824028015, 0.055355433374643326, -0.36351126432418823, -0.1061842069029808, 0.4395587742328644, 0.039973191916942596, -0.22027777135372162, 0.32904043793678284, 0.5497706532478333, 0.05050479993224144, 0.2770536541938782, 0.418947696685791, 0.6585164666175842, 0.2836868464946747, -0.1108679324388504, 0.20576182007789612, -0.10725408792495728, -0.13651730120182037, 0.24986520409584045, 0.3022420108318329, 0.06438486278057098, 0.2294769436120987, 0.3011277914047241, 0.2583593428134918, -0.14483165740966797, -0.00131123885512352, 0.0453212708234787, 0.06860089302062988, -0.2826193571090698, 0.2380909025669098, -0.4326452612876892, -0.15284450352191925, -0.0962965190410614, -0.14896216988563538, -0.39863890409469604, -0.01176424790173769, 0.33202728629112244, 0.014438772574067116, 0.06327471137046814, 0.007456937804818153, 0.08974136412143707, -0.1905127763748169, 0.454533189535141, 0.45135197043418884, 0.2124728560447693, -0.22982823848724365, -0.28353816270828247, -0.733703076839447, -0.010545983910560608, 0.12947961688041687, 0.09178882092237473, 0.1310998797416687, -0.06909459084272385, 0.2242867350578308, 0.19993752241134644, 0.08689160645008087, -0.016136953607201576, -0.271655410528183, 0.08716981112957001, -0.288891464471817, 0.0029541030526161194, -0.07357688248157501, 0.08299467712640762, -0.11672758311033249, -0.36416947841644287, 0.14447669684886932, -0.1506580114364624, 0.05302836745977402, -0.037196725606918335, 0.157942995429039, -0.28501224517822266, -0.0447249561548233, 0.10379332304000854, 0.149376779794693, 0.5703997611999512, -0.1643160581588745, -0.09529844671487808, -0.0748758614063263, -0.5269312262535095, 0.0917561873793602, 0.20327118039131165, 0.06617790460586548, 0.6200515031814575, 0.04695458710193634, -0.2369932383298874, -0.28296998143196106, 0.47801077365875244, -0.2343083769083023, -0.04829162359237671, -0.43870317935943604, 0.12486857920885086, -0.2072322964668274, -0.062254469841718674, 0.08274466544389725, -0.049120448529720306, 0.035836368799209595, 0.3579895794391632, -0.27271169424057007, -0.4445248544216156, 0.7492799162864685, -0.34488412737846375, -0.2888306975364685, 0.04006735235452652, 0.2385351061820984, 0.26714804768562317, -0.0994754359126091, -0.8630001544952393, 0.2285514771938324, 0.2634724974632263, -0.1605173945426941, -0.2602972388267517, 0.21663810312747955, -0.13724160194396973, -0.010583542287349701, -0.1032000184059143, 0.35539358854293823, 0.02272837609052658, -0.21402519941329956, 0.13330936431884766, -0.34617841243743896 ]
https://github.com/huggingface/datasets/issues/3851
Load audio dataset error
@albertvillanova Thanks for your reply. The environment info below ## Environment info - `datasets` version: 1.18.3 - Platform: Linux-4.19.91-007.ali4000.alios7.x86_64-x86_64-with-debian-buster-sid - Python version: 3.6.12 - PyArrow version: 6.0.1
## Load audio dataset error Hi, when I load audio dataset following https://huggingface.co/docs/datasets/audio_process and https://github.com/huggingface/datasets/tree/master/datasets/superb, ``` from datasets import load_dataset, load_metric, Audio raw_datasets = load_dataset("superb", "ks", split="train") print(raw_datasets[0]["audio"]) ``` following errors occur ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-169-3f8253239fa0> in <module> ----> 1 raw_datasets[0]["audio"] /usr/lib/python3.6/site-packages/datasets/arrow_dataset.py in __getitem__(self, key) 1924 """Can be used to index columns (by string names) or rows (by integer index or iterable of indices or bools).""" 1925 return self._getitem( -> 1926 key, 1927 ) 1928 /usr/lib/python3.6/site-packages/datasets/arrow_dataset.py in _getitem(self, key, decoded, **kwargs) 1909 pa_subtable = query_table(self._data, key, indices=self._indices if self._indices is not None else None) 1910 formatted_output = format_table( -> 1911 pa_subtable, key, formatter=formatter, format_columns=format_columns, output_all_columns=output_all_columns 1912 ) 1913 return formatted_output /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in format_table(table, key, formatter, format_columns, output_all_columns) 530 python_formatter = PythonFormatter(features=None) 531 if format_columns is None: --> 532 return formatter(pa_table, query_type=query_type) 533 elif query_type == "column": 534 if key in format_columns: /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in __call__(self, pa_table, query_type) 279 def __call__(self, pa_table: pa.Table, query_type: str) -> Union[RowFormat, ColumnFormat, BatchFormat]: 280 if query_type == "row": --> 281 return self.format_row(pa_table) 282 elif query_type == "column": 283 return self.format_column(pa_table) /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in format_row(self, pa_table) 310 row = self.python_arrow_extractor().extract_row(pa_table) 311 if self.decoded: --> 312 row = self.python_features_decoder.decode_row(row) 313 return row 314 /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in decode_row(self, row) 219 220 def decode_row(self, row: dict) -> dict: --> 221 return self.features.decode_example(row) if self.features else row 222 223 def decode_column(self, column: list, column_name: str) -> list: /usr/lib/python3.6/site-packages/datasets/features/features.py in decode_example(self, example) 1320 else value 1321 for column_name, (feature, value) in utils.zip_dict( -> 1322 {key: value for key, value in self.items() if key in example}, example 1323 ) 1324 } /usr/lib/python3.6/site-packages/datasets/features/features.py in <dictcomp>(.0) 1319 if self._column_requires_decoding[column_name] 1320 else value -> 1321 for column_name, (feature, value) in utils.zip_dict( 1322 {key: value for key, value in self.items() if key in example}, example 1323 ) /usr/lib/python3.6/site-packages/datasets/features/features.py in decode_nested_example(schema, obj) 1053 # Object with special decoding: 1054 elif isinstance(schema, (Audio, Image)): -> 1055 return schema.decode_example(obj) if obj is not None else None 1056 return obj 1057 /usr/lib/python3.6/site-packages/datasets/features/audio.py in decode_example(self, value) 100 array, sampling_rate = self._decode_non_mp3_file_like(file) 101 else: --> 102 array, sampling_rate = self._decode_non_mp3_path_like(path) 103 return {"path": path, "array": array, "sampling_rate": sampling_rate} 104 /usr/lib/python3.6/site-packages/datasets/features/audio.py in _decode_non_mp3_path_like(self, path) 143 144 with xopen(path, "rb") as f: --> 145 array, sampling_rate = librosa.load(f, sr=self.sampling_rate, mono=self.mono) 146 return array, sampling_rate 147 /usr/lib/python3.6/site-packages/librosa/core/audio.py in load(path, sr, mono, offset, duration, dtype, res_type) 110 111 y = [] --> 112 with audioread.audio_open(os.path.realpath(path)) as input_file: 113 sr_native = input_file.samplerate 114 n_channels = input_file.channels /usr/lib/python3.6/posixpath.py in realpath(filename) 392 """Return the canonical path of the specified filename, eliminating any 393 symbolic links encountered in the path.""" --> 394 filename = os.fspath(filename) 395 path, ok = _joinrealpath(filename[:0], filename, {}) 396 return abspath(path) TypeError: expected str, bytes or os.PathLike object, not _io.BufferedReader ``` ## Expected results ``` >>> raw_datasets[0]["audio"] {'array': array([-0.0005188 , -0.00109863, 0.00030518, ..., 0.01730347, 0.01623535, 0.01724243]), 'path': '/root/.cache/huggingface/datasets/downloads/extracted/bb3a06b491a64aff422f307cd8116820b4f61d6f32fcadcfc554617e84383cb7/bed/026290a7_nohash_0.wav', 'sampling_rate': 16000} ```
27
Load audio dataset error ## Load audio dataset error Hi, when I load audio dataset following https://huggingface.co/docs/datasets/audio_process and https://github.com/huggingface/datasets/tree/master/datasets/superb, ``` from datasets import load_dataset, load_metric, Audio raw_datasets = load_dataset("superb", "ks", split="train") print(raw_datasets[0]["audio"]) ``` following errors occur ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-169-3f8253239fa0> in <module> ----> 1 raw_datasets[0]["audio"] /usr/lib/python3.6/site-packages/datasets/arrow_dataset.py in __getitem__(self, key) 1924 """Can be used to index columns (by string names) or rows (by integer index or iterable of indices or bools).""" 1925 return self._getitem( -> 1926 key, 1927 ) 1928 /usr/lib/python3.6/site-packages/datasets/arrow_dataset.py in _getitem(self, key, decoded, **kwargs) 1909 pa_subtable = query_table(self._data, key, indices=self._indices if self._indices is not None else None) 1910 formatted_output = format_table( -> 1911 pa_subtable, key, formatter=formatter, format_columns=format_columns, output_all_columns=output_all_columns 1912 ) 1913 return formatted_output /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in format_table(table, key, formatter, format_columns, output_all_columns) 530 python_formatter = PythonFormatter(features=None) 531 if format_columns is None: --> 532 return formatter(pa_table, query_type=query_type) 533 elif query_type == "column": 534 if key in format_columns: /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in __call__(self, pa_table, query_type) 279 def __call__(self, pa_table: pa.Table, query_type: str) -> Union[RowFormat, ColumnFormat, BatchFormat]: 280 if query_type == "row": --> 281 return self.format_row(pa_table) 282 elif query_type == "column": 283 return self.format_column(pa_table) /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in format_row(self, pa_table) 310 row = self.python_arrow_extractor().extract_row(pa_table) 311 if self.decoded: --> 312 row = self.python_features_decoder.decode_row(row) 313 return row 314 /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in decode_row(self, row) 219 220 def decode_row(self, row: dict) -> dict: --> 221 return self.features.decode_example(row) if self.features else row 222 223 def decode_column(self, column: list, column_name: str) -> list: /usr/lib/python3.6/site-packages/datasets/features/features.py in decode_example(self, example) 1320 else value 1321 for column_name, (feature, value) in utils.zip_dict( -> 1322 {key: value for key, value in self.items() if key in example}, example 1323 ) 1324 } /usr/lib/python3.6/site-packages/datasets/features/features.py in <dictcomp>(.0) 1319 if self._column_requires_decoding[column_name] 1320 else value -> 1321 for column_name, (feature, value) in utils.zip_dict( 1322 {key: value for key, value in self.items() if key in example}, example 1323 ) /usr/lib/python3.6/site-packages/datasets/features/features.py in decode_nested_example(schema, obj) 1053 # Object with special decoding: 1054 elif isinstance(schema, (Audio, Image)): -> 1055 return schema.decode_example(obj) if obj is not None else None 1056 return obj 1057 /usr/lib/python3.6/site-packages/datasets/features/audio.py in decode_example(self, value) 100 array, sampling_rate = self._decode_non_mp3_file_like(file) 101 else: --> 102 array, sampling_rate = self._decode_non_mp3_path_like(path) 103 return {"path": path, "array": array, "sampling_rate": sampling_rate} 104 /usr/lib/python3.6/site-packages/datasets/features/audio.py in _decode_non_mp3_path_like(self, path) 143 144 with xopen(path, "rb") as f: --> 145 array, sampling_rate = librosa.load(f, sr=self.sampling_rate, mono=self.mono) 146 return array, sampling_rate 147 /usr/lib/python3.6/site-packages/librosa/core/audio.py in load(path, sr, mono, offset, duration, dtype, res_type) 110 111 y = [] --> 112 with audioread.audio_open(os.path.realpath(path)) as input_file: 113 sr_native = input_file.samplerate 114 n_channels = input_file.channels /usr/lib/python3.6/posixpath.py in realpath(filename) 392 """Return the canonical path of the specified filename, eliminating any 393 symbolic links encountered in the path.""" --> 394 filename = os.fspath(filename) 395 path, ok = _joinrealpath(filename[:0], filename, {}) 396 return abspath(path) TypeError: expected str, bytes or os.PathLike object, not _io.BufferedReader ``` ## Expected results ``` >>> raw_datasets[0]["audio"] {'array': array([-0.0005188 , -0.00109863, 0.00030518, ..., 0.01730347, 0.01623535, 0.01724243]), 'path': '/root/.cache/huggingface/datasets/downloads/extracted/bb3a06b491a64aff422f307cd8116820b4f61d6f32fcadcfc554617e84383cb7/bed/026290a7_nohash_0.wav', 'sampling_rate': 16000} ``` @albertvillanova Thanks for your reply. The environment info below ## Environment info - `datasets` version: 1.18.3 - Platform: Linux-4.19.91-007.ali4000.alios7.x86_64-x86_64-with-debian-buster-sid - Python version: 3.6.12 - PyArrow version: 6.0.1
[ -0.37698861956596375, -0.11540660262107849, -0.030820168554782867, 0.3962247967720032, 0.45797091722488403, 0.06998445838689804, 0.2902418375015259, 0.3150891661643982, -0.053028419613838196, 0.17489753663539886, -0.5356048345565796, 0.3172008693218231, -0.2974059581756592, 0.009562766179442406, -0.01793067529797554, -0.41443148255348206, -0.062487103044986725, 0.1607663482427597, -0.36746683716773987, 0.08969196677207947, -0.3725427985191345, 0.17430733144283295, -0.32617878913879395, 0.28652942180633545, -0.21815161406993866, -0.10664921253919601, 0.19831152260303497, 0.10520736873149872, -0.40443554520606995, -0.5568414330482483, 0.20959390699863434, -0.21488386392593384, 0.27188965678215027, 0.6587948799133301, -0.00010911104618571699, 0.10621479153633118, 0.37928587198257446, -0.0474429726600647, -0.41358375549316406, -0.2822248339653015, -0.4285668730735779, 0.05962193012237549, 0.14897392690181732, -0.12742406129837036, -0.0034841932356357574, -0.44314146041870117, -0.19010885059833527, -0.3268802762031555, 0.46151024103164673, 0.2684744894504547, 0.2999235987663269, 0.4350046217441559, 0.1923300325870514, -0.22034786641597748, 0.11943185329437256, 0.1547945886850357, 0.017395710572600365, 0.4202328026294708, 0.009191647171974182, 0.04916679114103317, 0.006947040557861328, 0.29845985770225525, -0.1738763153553009, 0.17633521556854248, 0.22985109686851501, -0.1352759152650833, -0.16752246022224426, -0.18790249526500702, 0.1613013744354248, 0.1987246572971344, 0.4726320207118988, -0.4815637171268463, -0.3459491431713104, -0.038682833313941956, 0.06902340799570084, -0.47027719020843506, 0.08012496680021286, 0.1715593785047531, -0.09720057249069214, 0.09529329091310501, -0.20516341924667358, 0.046524371951818466, -0.06869387626647949, 0.16827455163002014, 0.2375469207763672, 0.006446659564971924, -0.3387324810028076, 0.037226732820272446, 0.2738149166107178, -0.2141980081796646, -0.16694338619709015, 0.048363097012043, -0.1655760109424591, 0.36569827795028687, -0.4240429103374481, 0.11165684461593628, 0.04569860175251961, -0.13732334971427917, 0.014645323157310486, -0.04035305976867676, 0.017625899985432625, 0.04158588498830795, 0.07056768238544464, 0.16466102004051208, 0.22966957092285156, 0.0986422598361969, 0.15280768275260925, 0.1120607778429985, 0.1326160877943039, 0.23369449377059937, 0.09248773753643036, -0.031891122460365295, -0.2244517058134079, -0.23442700505256653, 0.035096969455480576, 0.11302677541971207, 0.4560841917991638, -0.23726290464401245, -0.40914735198020935, 0.02701915055513382, -0.09744137525558472, -0.0856005921959877, 0.31549638509750366, 0.2793029248714447, 0.24992240965366364, 0.10256370902061462, 0.21952755749225616, 0.39149123430252075, -0.13597209751605988, 0.0922219455242157, -0.13423554599285126, 0.08337876200675964, -0.0309070385992527, 0.13357660174369812, 0.287015825510025, -0.22245286405086517, 0.15504199266433716, 0.20770913362503052, 0.1261923909187317, -0.16103306412696838, 0.018926801159977913, -0.04930674657225609, -0.22745630145072937, 0.3239482343196869, -0.09602304548025131, 0.14989560842514038, 0.13938823342323303, 0.04106266051530838, -0.10443927347660065, 0.07067856937646866, -0.1952909231185913, -0.30296334624290466, -0.10498559474945068, 0.2461145967245102, -0.05281437933444977, 0.13407370448112488, -0.4590176045894623, -0.07322251796722412, 0.13850568234920502, -0.34591659903526306, 0.0648965835571289, -0.32057130336761475, -0.2848418354988098, 0.01838124915957451, 0.355086088180542, 0.2735078036785126, -0.2584555149078369, -0.17899475991725922, -0.11160539835691452, -0.2246556580066681, 0.03542162477970123, 0.35272330045700073, 0.029017336666584015, 0.2925768792629242, -0.14929883182048798, -0.025982480496168137, 0.2977186441421509, -0.30809521675109863, -0.20158031582832336, -0.06839486956596375, -0.021334167569875717, 0.12062466889619827, -0.08192870765924454, -0.11631106585264206, 0.10977590829133987, -0.046830274164676666, 0.31954509019851685, 0.057970333844423294, 0.08817776292562485, -0.06404492259025574, -0.0038451068103313446, -0.10556333512067795, -0.05193916708230972, 0.21325811743736267, -0.22082825005054474, 0.09107586741447449, -0.04675550013780594, -0.00948537327349186, 0.04767847806215286, -0.09926924109458923, -0.02555040270090103, 0.15980646014213562, 0.21962058544158936, 0.008425209671258926, -0.08358822762966156, -0.4422387480735779, -0.257641077041626, 0.017304573208093643, -0.09131109714508057, 0.18249793350696564, -0.36267679929733276, -0.06660766899585724, -0.24784135818481445, 0.1375558227300644, -0.39861369132995605, 0.05820859968662262, 0.13906973600387573, 0.09235168248414993, -0.04797784239053726, 0.06317995488643646, -0.2436271458864212, -0.049308933317661285, -0.057798974215984344, 0.054016534239053726, -0.4655536115169525, 0.059727743268013, 0.01912473887205124, -0.1688707172870636, 0.2765914797782898, 0.3562168478965759, 0.27616140246391296, -0.02659420855343342, -0.2120908498764038, 0.5099464654922485, 0.10674388706684113, 0.14628086984157562, -0.34292519092559814, 0.010127931833267212, 0.08339661359786987, -0.32265302538871765, -0.009067827835679054, -0.062329333275556564, 0.2937444746494293, -0.09973800927400589, -0.06723000854253769, 0.45834946632385254, -0.1053345799446106, 0.32003191113471985, 0.004308581352233887, -0.05898435413837433, 0.18027813732624054, 0.4128151535987854, -0.079990915954113, -0.14139029383659363, 0.16232000291347504, -0.1702553927898407, 0.19154304265975952, -0.054732851684093475, -0.3017841577529907, -0.31859633326530457, 0.2729860246181488, -0.1987493485212326, 0.09745615720748901, 0.134556382894516, -0.1964375078678131, 0.014538958668708801, 0.21908582746982574, -0.06007835641503334, 0.34602558612823486, 0.1377626210451126, -0.18270961940288544, 0.012034939602017403, -0.06520584970712662, -0.07165434211492538, 0.28847548365592957, 0.13372084498405457, 0.09282609075307846, 0.31199902296066284, 0.10783279687166214, 0.008172948844730854, -0.4893483519554138, -0.12667517364025116, -0.17309069633483887, 0.3339037597179413, -0.5299004316329956, -0.1459740400314331, -0.33159902691841125, -0.24889039993286133, -0.16439644992351532, -0.33937492966651917, -0.008697982877492905, -0.17275521159172058, -0.07394260913133621, 0.22996886074543, -0.2515614330768585, 0.33636945486068726, -0.09804265201091766, 0.10930484533309937, 0.19064278900623322, -0.05131839960813522, -0.10534483194351196, -0.06962399184703827, -0.0017027482390403748, 0.0683407336473465, 0.46552222967147827, 0.21311357617378235, 0.2999575436115265, -0.13949640095233917, 0.04691532999277115, -0.11560777574777603, -0.026230521500110626, 0.005324233323335648, -0.15547752380371094, 0.22200070321559906, 0.0740111917257309, 0.2549061179161072, -0.06429829448461533, -0.6536605358123779, 0.48105353116989136, -0.016089944168925285, -0.14526505768299103, 0.41306498646736145, -0.02334681898355484, 0.07642681151628494, -0.13808846473693848, -0.30180391669273376, -0.1945595145225525, -0.5705912709236145, 0.32273614406585693, -0.12577039003372192, 0.20205745100975037, 0.3859263062477112, -0.0013878187164664268, 0.3092150390148163, -0.015166150406002998, 0.34292998909950256, -0.21224254369735718, -0.15084366500377655, 0.28381529450416565, -0.28112608194351196, -0.24681682884693146, -0.3224193751811981, 0.055223554372787476, 0.27967187762260437, -0.011266561225056648, -0.3107510209083557, -0.10823144018650055, -0.0971764624118805, -0.1651502549648285, 0.017394378781318665, 0.08713506907224655, 0.03404455631971359, 0.22228188812732697, -0.040998611599206924, -0.07195577025413513, -0.1744193136692047, -0.02118036150932312, -0.07606066018342972, -0.10836029797792435, 0.08024074137210846, 0.7200369238853455, -0.34761202335357666, 0.5735510587692261, 0.24873393774032593, 0.04383845627307892, 0.3965498208999634, -0.017100023105740547, 0.25107479095458984, -0.4302440583705902, -0.4340077042579651, -0.07338006794452667, -0.11863067746162415, 0.08432964980602264, 0.045786648988723755, 0.1166929230093956, -0.05747072398662567, -0.17232389748096466, 0.1374429166316986, -0.18510344624519348, -0.19856424629688263, 0.059113048017024994, -0.11285720765590668, 0.2146124243736267, -0.01768944039940834, 0.13930785655975342, -0.0013668183237314224, -0.012019678950309753, 0.036937545984983444, 0.11903512477874756, 0.10039012134075165, -0.13045178353786469, -0.5379377007484436, -0.04928366839885712, -0.237307608127594, 0.33006447553634644, 0.13310189545154572, 0.6754536628723145, -0.17570675909519196, -0.15548956394195557, -0.017760708928108215, 0.19927580654621124, 0.15312260389328003, 0.10919398814439774, 0.06422609090805054, 0.24032461643218994, 0.04742276668548584, -0.3574051856994629, -0.03404337540268898, -0.3311008810997009, 0.21016809344291687, -0.018184758722782135, 0.37682393193244934, -0.24765720963478088, -0.25393736362457275, 0.3404424786567688, 0.29837730526924133, 0.09097945690155029, -0.16275452077388763, -0.25557607412338257, -0.3246847987174988, -0.28593137860298157, 0.060403164476156235, 0.049393825232982635, 0.3640836179256439, 0.07055438309907913, 0.044621292501688004, -0.00947793573141098, 0.005886707454919815, 0.33183592557907104, 0.017192713916301727, 0.38590431213378906, 0.16888050734996796, 0.292162150144577, 0.20844654738903046, -0.038020625710487366, 0.43442898988723755, 0.5396823883056641, -0.14911919832229614, -0.2729015648365021, 0.17503437399864197, 0.12578335404396057, 0.15445704758167267, 0.18005052208900452, -0.0136064188554883, 0.09868915379047394, 0.05434131994843483, 0.2142157405614853, -0.27204573154449463, 0.06708241254091263, 0.44178640842437744, 0.1236196979880333, -0.474012553691864, -0.42792755365371704, 0.5069891810417175, -0.03213507682085037, 0.029599793255329132, 0.5055595636367798, 0.46199727058410645, -0.1705464869737625, 0.2618415355682373, -0.2013261914253235, 0.7946385741233826, 0.025771401822566986, 0.11397328972816467, 0.544471800327301, -0.28228965401649475, 0.20943507552146912, 0.06951584666967392, 0.06566938757896423, -0.03446261212229729, -0.11647577583789825, -0.022824078798294067, -0.06625909358263016, -0.044314123690128326, 0.006120353937149048, -0.19289766252040863, 0.23634983599185944, -0.05566266179084778, 0.07206909358501434, -0.012137623503804207, 0.17405366897583008, -0.1788768470287323, -0.26044806838035583, -0.49015605449676514, 0.17014183104038239, -0.0034889504313468933, 0.05041400343179703, -0.05781805142760277, -0.14901137351989746, 0.2124679982662201, -0.27893543243408203, -0.2062697410583496, -0.06892701983451843, -0.27946150302886963, 0.2728646993637085, 0.13229432702064514, -0.43748563528060913, 0.29012036323547363, 0.07895392179489136, -0.2741124629974365, 0.06520935893058777, -0.1115565150976181, 0.0031239017844200134, -0.01966143399477005, 0.14331941306591034, -0.10609385371208191, 0.14159785211086273, 0.22844743728637695, -0.000028759241104125977, -0.1367737054824829, 0.04901885986328125, -0.010802075266838074, -0.16141048073768616, 0.1251276433467865, 0.08049832284450531, -0.022760339081287384, -0.35409384965896606, -0.4032338857650757, -0.2976568043231964, 0.06303428113460541, -0.16492561995983124, 0.1869926154613495, -0.04354212433099747, -0.20621727406978607, 0.10993572324514389, 0.16164462268352509, -0.1682066023349762, 0.028827153146266937, 0.430110901594162, -0.1315002739429474, -0.014322729781270027, 0.6254100799560547, 0.2552022635936737, -0.21590019762516022, -0.20312735438346863, 0.14462214708328247, 0.29479312896728516, -0.5281533598899841, 0.10573021322488785, 0.13838458061218262, 0.07218189537525177, -0.042406484484672546, 0.07685616612434387, 0.032076552510261536, -0.062172017991542816, 0.0034390129148960114, -0.3878534436225891, -0.44610172510147095, 0.4764642119407654, 0.03834378719329834, 0.30771905183792114, -0.06836995482444763, 0.07762269675731659, -0.03848252817988396, -0.03651590645313263, -0.35723644495010376, 0.1556636542081833, -0.13689221441745758, 0.264657199382782, 0.2682207524776459, -0.10163947194814682, 0.17307960987091064, -0.05722755193710327, 0.24351125955581665, 0.16168595850467682, -0.3068462610244751, -0.2195839285850525, 0.007529212161898613, 0.13316863775253296, -0.12674343585968018, -0.3238581120967865, -0.09372575581073761, 0.03997127711772919, -0.11052872240543365, -0.18980568647384644, 0.029723413288593292, 0.24396568536758423, -0.13213607668876648, 0.04232976213097572, 0.013128288090229034, 0.05714365839958191, 0.04007946699857712, 0.27217718958854675, -0.0328202098608017, -0.14429959654808044, -0.00996054895222187, 0.0465257354080677, -0.06977347284555435, -0.10187990963459015, -0.1238667219877243, 0.2403121292591095, 0.06247856467962265, -0.2173689901828766, 0.31434372067451477, -0.2445399910211563, 0.05390443280339241, 0.14846624433994293, 0.5309240818023682, 0.3925289213657379, -0.18492916226387024, -0.049104705452919006, 0.00995205994695425, 0.2348107248544693, -0.2104186713695526, 0.001887504244223237, -0.016231030225753784, -0.06943677365779877, -0.003174085170030594, 0.10980165004730225, -0.15596874058246613, 0.031043924391269684, 0.022810310125350952, 0.07957172393798828, 0.1721285581588745, 0.021508272737264633, 0.17476396262645721, 0.31140342354774475, 0.003660093992948532, -0.12153053283691406, 0.15637478232383728, 0.06848457455635071, 0.1835615038871765, 0.1623724102973938, -0.4743475317955017, 0.1918402910232544, 0.014994975179433823, -0.08260110020637512, 0.25919651985168457, -0.45217761397361755, -0.3418801426887512, 0.24833737313747406, 0.005576983094215393, 0.06415136158466339, -0.05184493958950043, 0.593359649181366, -0.3439289629459381, -0.17618754506111145, 0.03093245066702366, 0.06458575278520584, -0.16744741797447205, -0.09033113718032837, -0.10905342549085617, -0.15390396118164062, -0.1901974081993103, -0.10730457305908203, -0.07198472321033478, 0.19676755368709564, 0.05669720843434334, -0.0025784894824028015, 0.055355433374643326, -0.36351126432418823, -0.1061842069029808, 0.4395587742328644, 0.039973191916942596, -0.22027777135372162, 0.32904043793678284, 0.5497706532478333, 0.05050479993224144, 0.2770536541938782, 0.418947696685791, 0.6585164666175842, 0.2836868464946747, -0.1108679324388504, 0.20576182007789612, -0.10725408792495728, -0.13651730120182037, 0.24986520409584045, 0.3022420108318329, 0.06438486278057098, 0.2294769436120987, 0.3011277914047241, 0.2583593428134918, -0.14483165740966797, -0.00131123885512352, 0.0453212708234787, 0.06860089302062988, -0.2826193571090698, 0.2380909025669098, -0.4326452612876892, -0.15284450352191925, -0.0962965190410614, -0.14896216988563538, -0.39863890409469604, -0.01176424790173769, 0.33202728629112244, 0.014438772574067116, 0.06327471137046814, 0.007456937804818153, 0.08974136412143707, -0.1905127763748169, 0.454533189535141, 0.45135197043418884, 0.2124728560447693, -0.22982823848724365, -0.28353816270828247, -0.733703076839447, -0.010545983910560608, 0.12947961688041687, 0.09178882092237473, 0.1310998797416687, -0.06909459084272385, 0.2242867350578308, 0.19993752241134644, 0.08689160645008087, -0.016136953607201576, -0.271655410528183, 0.08716981112957001, -0.288891464471817, 0.0029541030526161194, -0.07357688248157501, 0.08299467712640762, -0.11672758311033249, -0.36416947841644287, 0.14447669684886932, -0.1506580114364624, 0.05302836745977402, -0.037196725606918335, 0.157942995429039, -0.28501224517822266, -0.0447249561548233, 0.10379332304000854, 0.149376779794693, 0.5703997611999512, -0.1643160581588745, -0.09529844671487808, -0.0748758614063263, -0.5269312262535095, 0.0917561873793602, 0.20327118039131165, 0.06617790460586548, 0.6200515031814575, 0.04695458710193634, -0.2369932383298874, -0.28296998143196106, 0.47801077365875244, -0.2343083769083023, -0.04829162359237671, -0.43870317935943604, 0.12486857920885086, -0.2072322964668274, -0.062254469841718674, 0.08274466544389725, -0.049120448529720306, 0.035836368799209595, 0.3579895794391632, -0.27271169424057007, -0.4445248544216156, 0.7492799162864685, -0.34488412737846375, -0.2888306975364685, 0.04006735235452652, 0.2385351061820984, 0.26714804768562317, -0.0994754359126091, -0.8630001544952393, 0.2285514771938324, 0.2634724974632263, -0.1605173945426941, -0.2602972388267517, 0.21663810312747955, -0.13724160194396973, -0.010583542287349701, -0.1032000184059143, 0.35539358854293823, 0.02272837609052658, -0.21402519941329956, 0.13330936431884766, -0.34617841243743896 ]
https://github.com/huggingface/datasets/issues/3851
Load audio dataset error
Thanks @lemoner20, I cannot reproduce your issue in datasets version 1.18.3 either. Maybe redownloading the data file may work if you had already cached this dataset previously. Could you please try passing "force_redownload"? ```python raw_datasets = load_dataset("superb", "ks", split="train", download_mode="force_redownload")
## Load audio dataset error Hi, when I load audio dataset following https://huggingface.co/docs/datasets/audio_process and https://github.com/huggingface/datasets/tree/master/datasets/superb, ``` from datasets import load_dataset, load_metric, Audio raw_datasets = load_dataset("superb", "ks", split="train") print(raw_datasets[0]["audio"]) ``` following errors occur ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-169-3f8253239fa0> in <module> ----> 1 raw_datasets[0]["audio"] /usr/lib/python3.6/site-packages/datasets/arrow_dataset.py in __getitem__(self, key) 1924 """Can be used to index columns (by string names) or rows (by integer index or iterable of indices or bools).""" 1925 return self._getitem( -> 1926 key, 1927 ) 1928 /usr/lib/python3.6/site-packages/datasets/arrow_dataset.py in _getitem(self, key, decoded, **kwargs) 1909 pa_subtable = query_table(self._data, key, indices=self._indices if self._indices is not None else None) 1910 formatted_output = format_table( -> 1911 pa_subtable, key, formatter=formatter, format_columns=format_columns, output_all_columns=output_all_columns 1912 ) 1913 return formatted_output /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in format_table(table, key, formatter, format_columns, output_all_columns) 530 python_formatter = PythonFormatter(features=None) 531 if format_columns is None: --> 532 return formatter(pa_table, query_type=query_type) 533 elif query_type == "column": 534 if key in format_columns: /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in __call__(self, pa_table, query_type) 279 def __call__(self, pa_table: pa.Table, query_type: str) -> Union[RowFormat, ColumnFormat, BatchFormat]: 280 if query_type == "row": --> 281 return self.format_row(pa_table) 282 elif query_type == "column": 283 return self.format_column(pa_table) /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in format_row(self, pa_table) 310 row = self.python_arrow_extractor().extract_row(pa_table) 311 if self.decoded: --> 312 row = self.python_features_decoder.decode_row(row) 313 return row 314 /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in decode_row(self, row) 219 220 def decode_row(self, row: dict) -> dict: --> 221 return self.features.decode_example(row) if self.features else row 222 223 def decode_column(self, column: list, column_name: str) -> list: /usr/lib/python3.6/site-packages/datasets/features/features.py in decode_example(self, example) 1320 else value 1321 for column_name, (feature, value) in utils.zip_dict( -> 1322 {key: value for key, value in self.items() if key in example}, example 1323 ) 1324 } /usr/lib/python3.6/site-packages/datasets/features/features.py in <dictcomp>(.0) 1319 if self._column_requires_decoding[column_name] 1320 else value -> 1321 for column_name, (feature, value) in utils.zip_dict( 1322 {key: value for key, value in self.items() if key in example}, example 1323 ) /usr/lib/python3.6/site-packages/datasets/features/features.py in decode_nested_example(schema, obj) 1053 # Object with special decoding: 1054 elif isinstance(schema, (Audio, Image)): -> 1055 return schema.decode_example(obj) if obj is not None else None 1056 return obj 1057 /usr/lib/python3.6/site-packages/datasets/features/audio.py in decode_example(self, value) 100 array, sampling_rate = self._decode_non_mp3_file_like(file) 101 else: --> 102 array, sampling_rate = self._decode_non_mp3_path_like(path) 103 return {"path": path, "array": array, "sampling_rate": sampling_rate} 104 /usr/lib/python3.6/site-packages/datasets/features/audio.py in _decode_non_mp3_path_like(self, path) 143 144 with xopen(path, "rb") as f: --> 145 array, sampling_rate = librosa.load(f, sr=self.sampling_rate, mono=self.mono) 146 return array, sampling_rate 147 /usr/lib/python3.6/site-packages/librosa/core/audio.py in load(path, sr, mono, offset, duration, dtype, res_type) 110 111 y = [] --> 112 with audioread.audio_open(os.path.realpath(path)) as input_file: 113 sr_native = input_file.samplerate 114 n_channels = input_file.channels /usr/lib/python3.6/posixpath.py in realpath(filename) 392 """Return the canonical path of the specified filename, eliminating any 393 symbolic links encountered in the path.""" --> 394 filename = os.fspath(filename) 395 path, ok = _joinrealpath(filename[:0], filename, {}) 396 return abspath(path) TypeError: expected str, bytes or os.PathLike object, not _io.BufferedReader ``` ## Expected results ``` >>> raw_datasets[0]["audio"] {'array': array([-0.0005188 , -0.00109863, 0.00030518, ..., 0.01730347, 0.01623535, 0.01724243]), 'path': '/root/.cache/huggingface/datasets/downloads/extracted/bb3a06b491a64aff422f307cd8116820b4f61d6f32fcadcfc554617e84383cb7/bed/026290a7_nohash_0.wav', 'sampling_rate': 16000} ```
40
Load audio dataset error ## Load audio dataset error Hi, when I load audio dataset following https://huggingface.co/docs/datasets/audio_process and https://github.com/huggingface/datasets/tree/master/datasets/superb, ``` from datasets import load_dataset, load_metric, Audio raw_datasets = load_dataset("superb", "ks", split="train") print(raw_datasets[0]["audio"]) ``` following errors occur ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-169-3f8253239fa0> in <module> ----> 1 raw_datasets[0]["audio"] /usr/lib/python3.6/site-packages/datasets/arrow_dataset.py in __getitem__(self, key) 1924 """Can be used to index columns (by string names) or rows (by integer index or iterable of indices or bools).""" 1925 return self._getitem( -> 1926 key, 1927 ) 1928 /usr/lib/python3.6/site-packages/datasets/arrow_dataset.py in _getitem(self, key, decoded, **kwargs) 1909 pa_subtable = query_table(self._data, key, indices=self._indices if self._indices is not None else None) 1910 formatted_output = format_table( -> 1911 pa_subtable, key, formatter=formatter, format_columns=format_columns, output_all_columns=output_all_columns 1912 ) 1913 return formatted_output /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in format_table(table, key, formatter, format_columns, output_all_columns) 530 python_formatter = PythonFormatter(features=None) 531 if format_columns is None: --> 532 return formatter(pa_table, query_type=query_type) 533 elif query_type == "column": 534 if key in format_columns: /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in __call__(self, pa_table, query_type) 279 def __call__(self, pa_table: pa.Table, query_type: str) -> Union[RowFormat, ColumnFormat, BatchFormat]: 280 if query_type == "row": --> 281 return self.format_row(pa_table) 282 elif query_type == "column": 283 return self.format_column(pa_table) /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in format_row(self, pa_table) 310 row = self.python_arrow_extractor().extract_row(pa_table) 311 if self.decoded: --> 312 row = self.python_features_decoder.decode_row(row) 313 return row 314 /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in decode_row(self, row) 219 220 def decode_row(self, row: dict) -> dict: --> 221 return self.features.decode_example(row) if self.features else row 222 223 def decode_column(self, column: list, column_name: str) -> list: /usr/lib/python3.6/site-packages/datasets/features/features.py in decode_example(self, example) 1320 else value 1321 for column_name, (feature, value) in utils.zip_dict( -> 1322 {key: value for key, value in self.items() if key in example}, example 1323 ) 1324 } /usr/lib/python3.6/site-packages/datasets/features/features.py in <dictcomp>(.0) 1319 if self._column_requires_decoding[column_name] 1320 else value -> 1321 for column_name, (feature, value) in utils.zip_dict( 1322 {key: value for key, value in self.items() if key in example}, example 1323 ) /usr/lib/python3.6/site-packages/datasets/features/features.py in decode_nested_example(schema, obj) 1053 # Object with special decoding: 1054 elif isinstance(schema, (Audio, Image)): -> 1055 return schema.decode_example(obj) if obj is not None else None 1056 return obj 1057 /usr/lib/python3.6/site-packages/datasets/features/audio.py in decode_example(self, value) 100 array, sampling_rate = self._decode_non_mp3_file_like(file) 101 else: --> 102 array, sampling_rate = self._decode_non_mp3_path_like(path) 103 return {"path": path, "array": array, "sampling_rate": sampling_rate} 104 /usr/lib/python3.6/site-packages/datasets/features/audio.py in _decode_non_mp3_path_like(self, path) 143 144 with xopen(path, "rb") as f: --> 145 array, sampling_rate = librosa.load(f, sr=self.sampling_rate, mono=self.mono) 146 return array, sampling_rate 147 /usr/lib/python3.6/site-packages/librosa/core/audio.py in load(path, sr, mono, offset, duration, dtype, res_type) 110 111 y = [] --> 112 with audioread.audio_open(os.path.realpath(path)) as input_file: 113 sr_native = input_file.samplerate 114 n_channels = input_file.channels /usr/lib/python3.6/posixpath.py in realpath(filename) 392 """Return the canonical path of the specified filename, eliminating any 393 symbolic links encountered in the path.""" --> 394 filename = os.fspath(filename) 395 path, ok = _joinrealpath(filename[:0], filename, {}) 396 return abspath(path) TypeError: expected str, bytes or os.PathLike object, not _io.BufferedReader ``` ## Expected results ``` >>> raw_datasets[0]["audio"] {'array': array([-0.0005188 , -0.00109863, 0.00030518, ..., 0.01730347, 0.01623535, 0.01724243]), 'path': '/root/.cache/huggingface/datasets/downloads/extracted/bb3a06b491a64aff422f307cd8116820b4f61d6f32fcadcfc554617e84383cb7/bed/026290a7_nohash_0.wav', 'sampling_rate': 16000} ``` Thanks @lemoner20, I cannot reproduce your issue in datasets version 1.18.3 either. Maybe redownloading the data file may work if you had already cached this dataset previously. Could you please try passing "force_redownload"? ```python raw_datasets = load_dataset("superb", "ks", split="train", download_mode="force_redownload")
[ -0.37698861956596375, -0.11540660262107849, -0.030820168554782867, 0.3962247967720032, 0.45797091722488403, 0.06998445838689804, 0.2902418375015259, 0.3150891661643982, -0.053028419613838196, 0.17489753663539886, -0.5356048345565796, 0.3172008693218231, -0.2974059581756592, 0.009562766179442406, -0.01793067529797554, -0.41443148255348206, -0.062487103044986725, 0.1607663482427597, -0.36746683716773987, 0.08969196677207947, -0.3725427985191345, 0.17430733144283295, -0.32617878913879395, 0.28652942180633545, -0.21815161406993866, -0.10664921253919601, 0.19831152260303497, 0.10520736873149872, -0.40443554520606995, -0.5568414330482483, 0.20959390699863434, -0.21488386392593384, 0.27188965678215027, 0.6587948799133301, -0.00010911104618571699, 0.10621479153633118, 0.37928587198257446, -0.0474429726600647, -0.41358375549316406, -0.2822248339653015, -0.4285668730735779, 0.05962193012237549, 0.14897392690181732, -0.12742406129837036, -0.0034841932356357574, -0.44314146041870117, -0.19010885059833527, -0.3268802762031555, 0.46151024103164673, 0.2684744894504547, 0.2999235987663269, 0.4350046217441559, 0.1923300325870514, -0.22034786641597748, 0.11943185329437256, 0.1547945886850357, 0.017395710572600365, 0.4202328026294708, 0.009191647171974182, 0.04916679114103317, 0.006947040557861328, 0.29845985770225525, -0.1738763153553009, 0.17633521556854248, 0.22985109686851501, -0.1352759152650833, -0.16752246022224426, -0.18790249526500702, 0.1613013744354248, 0.1987246572971344, 0.4726320207118988, -0.4815637171268463, -0.3459491431713104, -0.038682833313941956, 0.06902340799570084, -0.47027719020843506, 0.08012496680021286, 0.1715593785047531, -0.09720057249069214, 0.09529329091310501, -0.20516341924667358, 0.046524371951818466, -0.06869387626647949, 0.16827455163002014, 0.2375469207763672, 0.006446659564971924, -0.3387324810028076, 0.037226732820272446, 0.2738149166107178, -0.2141980081796646, -0.16694338619709015, 0.048363097012043, -0.1655760109424591, 0.36569827795028687, -0.4240429103374481, 0.11165684461593628, 0.04569860175251961, -0.13732334971427917, 0.014645323157310486, -0.04035305976867676, 0.017625899985432625, 0.04158588498830795, 0.07056768238544464, 0.16466102004051208, 0.22966957092285156, 0.0986422598361969, 0.15280768275260925, 0.1120607778429985, 0.1326160877943039, 0.23369449377059937, 0.09248773753643036, -0.031891122460365295, -0.2244517058134079, -0.23442700505256653, 0.035096969455480576, 0.11302677541971207, 0.4560841917991638, -0.23726290464401245, -0.40914735198020935, 0.02701915055513382, -0.09744137525558472, -0.0856005921959877, 0.31549638509750366, 0.2793029248714447, 0.24992240965366364, 0.10256370902061462, 0.21952755749225616, 0.39149123430252075, -0.13597209751605988, 0.0922219455242157, -0.13423554599285126, 0.08337876200675964, -0.0309070385992527, 0.13357660174369812, 0.287015825510025, -0.22245286405086517, 0.15504199266433716, 0.20770913362503052, 0.1261923909187317, -0.16103306412696838, 0.018926801159977913, -0.04930674657225609, -0.22745630145072937, 0.3239482343196869, -0.09602304548025131, 0.14989560842514038, 0.13938823342323303, 0.04106266051530838, -0.10443927347660065, 0.07067856937646866, -0.1952909231185913, -0.30296334624290466, -0.10498559474945068, 0.2461145967245102, -0.05281437933444977, 0.13407370448112488, -0.4590176045894623, -0.07322251796722412, 0.13850568234920502, -0.34591659903526306, 0.0648965835571289, -0.32057130336761475, -0.2848418354988098, 0.01838124915957451, 0.355086088180542, 0.2735078036785126, -0.2584555149078369, -0.17899475991725922, -0.11160539835691452, -0.2246556580066681, 0.03542162477970123, 0.35272330045700073, 0.029017336666584015, 0.2925768792629242, -0.14929883182048798, -0.025982480496168137, 0.2977186441421509, -0.30809521675109863, -0.20158031582832336, -0.06839486956596375, -0.021334167569875717, 0.12062466889619827, -0.08192870765924454, -0.11631106585264206, 0.10977590829133987, -0.046830274164676666, 0.31954509019851685, 0.057970333844423294, 0.08817776292562485, -0.06404492259025574, -0.0038451068103313446, -0.10556333512067795, -0.05193916708230972, 0.21325811743736267, -0.22082825005054474, 0.09107586741447449, -0.04675550013780594, -0.00948537327349186, 0.04767847806215286, -0.09926924109458923, -0.02555040270090103, 0.15980646014213562, 0.21962058544158936, 0.008425209671258926, -0.08358822762966156, -0.4422387480735779, -0.257641077041626, 0.017304573208093643, -0.09131109714508057, 0.18249793350696564, -0.36267679929733276, -0.06660766899585724, -0.24784135818481445, 0.1375558227300644, -0.39861369132995605, 0.05820859968662262, 0.13906973600387573, 0.09235168248414993, -0.04797784239053726, 0.06317995488643646, -0.2436271458864212, -0.049308933317661285, -0.057798974215984344, 0.054016534239053726, -0.4655536115169525, 0.059727743268013, 0.01912473887205124, -0.1688707172870636, 0.2765914797782898, 0.3562168478965759, 0.27616140246391296, -0.02659420855343342, -0.2120908498764038, 0.5099464654922485, 0.10674388706684113, 0.14628086984157562, -0.34292519092559814, 0.010127931833267212, 0.08339661359786987, -0.32265302538871765, -0.009067827835679054, -0.062329333275556564, 0.2937444746494293, -0.09973800927400589, -0.06723000854253769, 0.45834946632385254, -0.1053345799446106, 0.32003191113471985, 0.004308581352233887, -0.05898435413837433, 0.18027813732624054, 0.4128151535987854, -0.079990915954113, -0.14139029383659363, 0.16232000291347504, -0.1702553927898407, 0.19154304265975952, -0.054732851684093475, -0.3017841577529907, -0.31859633326530457, 0.2729860246181488, -0.1987493485212326, 0.09745615720748901, 0.134556382894516, -0.1964375078678131, 0.014538958668708801, 0.21908582746982574, -0.06007835641503334, 0.34602558612823486, 0.1377626210451126, -0.18270961940288544, 0.012034939602017403, -0.06520584970712662, -0.07165434211492538, 0.28847548365592957, 0.13372084498405457, 0.09282609075307846, 0.31199902296066284, 0.10783279687166214, 0.008172948844730854, -0.4893483519554138, -0.12667517364025116, -0.17309069633483887, 0.3339037597179413, -0.5299004316329956, -0.1459740400314331, -0.33159902691841125, -0.24889039993286133, -0.16439644992351532, -0.33937492966651917, -0.008697982877492905, -0.17275521159172058, -0.07394260913133621, 0.22996886074543, -0.2515614330768585, 0.33636945486068726, -0.09804265201091766, 0.10930484533309937, 0.19064278900623322, -0.05131839960813522, -0.10534483194351196, -0.06962399184703827, -0.0017027482390403748, 0.0683407336473465, 0.46552222967147827, 0.21311357617378235, 0.2999575436115265, -0.13949640095233917, 0.04691532999277115, -0.11560777574777603, -0.026230521500110626, 0.005324233323335648, -0.15547752380371094, 0.22200070321559906, 0.0740111917257309, 0.2549061179161072, -0.06429829448461533, -0.6536605358123779, 0.48105353116989136, -0.016089944168925285, -0.14526505768299103, 0.41306498646736145, -0.02334681898355484, 0.07642681151628494, -0.13808846473693848, -0.30180391669273376, -0.1945595145225525, -0.5705912709236145, 0.32273614406585693, -0.12577039003372192, 0.20205745100975037, 0.3859263062477112, -0.0013878187164664268, 0.3092150390148163, -0.015166150406002998, 0.34292998909950256, -0.21224254369735718, -0.15084366500377655, 0.28381529450416565, -0.28112608194351196, -0.24681682884693146, -0.3224193751811981, 0.055223554372787476, 0.27967187762260437, -0.011266561225056648, -0.3107510209083557, -0.10823144018650055, -0.0971764624118805, -0.1651502549648285, 0.017394378781318665, 0.08713506907224655, 0.03404455631971359, 0.22228188812732697, -0.040998611599206924, -0.07195577025413513, -0.1744193136692047, -0.02118036150932312, -0.07606066018342972, -0.10836029797792435, 0.08024074137210846, 0.7200369238853455, -0.34761202335357666, 0.5735510587692261, 0.24873393774032593, 0.04383845627307892, 0.3965498208999634, -0.017100023105740547, 0.25107479095458984, -0.4302440583705902, -0.4340077042579651, -0.07338006794452667, -0.11863067746162415, 0.08432964980602264, 0.045786648988723755, 0.1166929230093956, -0.05747072398662567, -0.17232389748096466, 0.1374429166316986, -0.18510344624519348, -0.19856424629688263, 0.059113048017024994, -0.11285720765590668, 0.2146124243736267, -0.01768944039940834, 0.13930785655975342, -0.0013668183237314224, -0.012019678950309753, 0.036937545984983444, 0.11903512477874756, 0.10039012134075165, -0.13045178353786469, -0.5379377007484436, -0.04928366839885712, -0.237307608127594, 0.33006447553634644, 0.13310189545154572, 0.6754536628723145, -0.17570675909519196, -0.15548956394195557, -0.017760708928108215, 0.19927580654621124, 0.15312260389328003, 0.10919398814439774, 0.06422609090805054, 0.24032461643218994, 0.04742276668548584, -0.3574051856994629, -0.03404337540268898, -0.3311008810997009, 0.21016809344291687, -0.018184758722782135, 0.37682393193244934, -0.24765720963478088, -0.25393736362457275, 0.3404424786567688, 0.29837730526924133, 0.09097945690155029, -0.16275452077388763, -0.25557607412338257, -0.3246847987174988, -0.28593137860298157, 0.060403164476156235, 0.049393825232982635, 0.3640836179256439, 0.07055438309907913, 0.044621292501688004, -0.00947793573141098, 0.005886707454919815, 0.33183592557907104, 0.017192713916301727, 0.38590431213378906, 0.16888050734996796, 0.292162150144577, 0.20844654738903046, -0.038020625710487366, 0.43442898988723755, 0.5396823883056641, -0.14911919832229614, -0.2729015648365021, 0.17503437399864197, 0.12578335404396057, 0.15445704758167267, 0.18005052208900452, -0.0136064188554883, 0.09868915379047394, 0.05434131994843483, 0.2142157405614853, -0.27204573154449463, 0.06708241254091263, 0.44178640842437744, 0.1236196979880333, -0.474012553691864, -0.42792755365371704, 0.5069891810417175, -0.03213507682085037, 0.029599793255329132, 0.5055595636367798, 0.46199727058410645, -0.1705464869737625, 0.2618415355682373, -0.2013261914253235, 0.7946385741233826, 0.025771401822566986, 0.11397328972816467, 0.544471800327301, -0.28228965401649475, 0.20943507552146912, 0.06951584666967392, 0.06566938757896423, -0.03446261212229729, -0.11647577583789825, -0.022824078798294067, -0.06625909358263016, -0.044314123690128326, 0.006120353937149048, -0.19289766252040863, 0.23634983599185944, -0.05566266179084778, 0.07206909358501434, -0.012137623503804207, 0.17405366897583008, -0.1788768470287323, -0.26044806838035583, -0.49015605449676514, 0.17014183104038239, -0.0034889504313468933, 0.05041400343179703, -0.05781805142760277, -0.14901137351989746, 0.2124679982662201, -0.27893543243408203, -0.2062697410583496, -0.06892701983451843, -0.27946150302886963, 0.2728646993637085, 0.13229432702064514, -0.43748563528060913, 0.29012036323547363, 0.07895392179489136, -0.2741124629974365, 0.06520935893058777, -0.1115565150976181, 0.0031239017844200134, -0.01966143399477005, 0.14331941306591034, -0.10609385371208191, 0.14159785211086273, 0.22844743728637695, -0.000028759241104125977, -0.1367737054824829, 0.04901885986328125, -0.010802075266838074, -0.16141048073768616, 0.1251276433467865, 0.08049832284450531, -0.022760339081287384, -0.35409384965896606, -0.4032338857650757, -0.2976568043231964, 0.06303428113460541, -0.16492561995983124, 0.1869926154613495, -0.04354212433099747, -0.20621727406978607, 0.10993572324514389, 0.16164462268352509, -0.1682066023349762, 0.028827153146266937, 0.430110901594162, -0.1315002739429474, -0.014322729781270027, 0.6254100799560547, 0.2552022635936737, -0.21590019762516022, -0.20312735438346863, 0.14462214708328247, 0.29479312896728516, -0.5281533598899841, 0.10573021322488785, 0.13838458061218262, 0.07218189537525177, -0.042406484484672546, 0.07685616612434387, 0.032076552510261536, -0.062172017991542816, 0.0034390129148960114, -0.3878534436225891, -0.44610172510147095, 0.4764642119407654, 0.03834378719329834, 0.30771905183792114, -0.06836995482444763, 0.07762269675731659, -0.03848252817988396, -0.03651590645313263, -0.35723644495010376, 0.1556636542081833, -0.13689221441745758, 0.264657199382782, 0.2682207524776459, -0.10163947194814682, 0.17307960987091064, -0.05722755193710327, 0.24351125955581665, 0.16168595850467682, -0.3068462610244751, -0.2195839285850525, 0.007529212161898613, 0.13316863775253296, -0.12674343585968018, -0.3238581120967865, -0.09372575581073761, 0.03997127711772919, -0.11052872240543365, -0.18980568647384644, 0.029723413288593292, 0.24396568536758423, -0.13213607668876648, 0.04232976213097572, 0.013128288090229034, 0.05714365839958191, 0.04007946699857712, 0.27217718958854675, -0.0328202098608017, -0.14429959654808044, -0.00996054895222187, 0.0465257354080677, -0.06977347284555435, -0.10187990963459015, -0.1238667219877243, 0.2403121292591095, 0.06247856467962265, -0.2173689901828766, 0.31434372067451477, -0.2445399910211563, 0.05390443280339241, 0.14846624433994293, 0.5309240818023682, 0.3925289213657379, -0.18492916226387024, -0.049104705452919006, 0.00995205994695425, 0.2348107248544693, -0.2104186713695526, 0.001887504244223237, -0.016231030225753784, -0.06943677365779877, -0.003174085170030594, 0.10980165004730225, -0.15596874058246613, 0.031043924391269684, 0.022810310125350952, 0.07957172393798828, 0.1721285581588745, 0.021508272737264633, 0.17476396262645721, 0.31140342354774475, 0.003660093992948532, -0.12153053283691406, 0.15637478232383728, 0.06848457455635071, 0.1835615038871765, 0.1623724102973938, -0.4743475317955017, 0.1918402910232544, 0.014994975179433823, -0.08260110020637512, 0.25919651985168457, -0.45217761397361755, -0.3418801426887512, 0.24833737313747406, 0.005576983094215393, 0.06415136158466339, -0.05184493958950043, 0.593359649181366, -0.3439289629459381, -0.17618754506111145, 0.03093245066702366, 0.06458575278520584, -0.16744741797447205, -0.09033113718032837, -0.10905342549085617, -0.15390396118164062, -0.1901974081993103, -0.10730457305908203, -0.07198472321033478, 0.19676755368709564, 0.05669720843434334, -0.0025784894824028015, 0.055355433374643326, -0.36351126432418823, -0.1061842069029808, 0.4395587742328644, 0.039973191916942596, -0.22027777135372162, 0.32904043793678284, 0.5497706532478333, 0.05050479993224144, 0.2770536541938782, 0.418947696685791, 0.6585164666175842, 0.2836868464946747, -0.1108679324388504, 0.20576182007789612, -0.10725408792495728, -0.13651730120182037, 0.24986520409584045, 0.3022420108318329, 0.06438486278057098, 0.2294769436120987, 0.3011277914047241, 0.2583593428134918, -0.14483165740966797, -0.00131123885512352, 0.0453212708234787, 0.06860089302062988, -0.2826193571090698, 0.2380909025669098, -0.4326452612876892, -0.15284450352191925, -0.0962965190410614, -0.14896216988563538, -0.39863890409469604, -0.01176424790173769, 0.33202728629112244, 0.014438772574067116, 0.06327471137046814, 0.007456937804818153, 0.08974136412143707, -0.1905127763748169, 0.454533189535141, 0.45135197043418884, 0.2124728560447693, -0.22982823848724365, -0.28353816270828247, -0.733703076839447, -0.010545983910560608, 0.12947961688041687, 0.09178882092237473, 0.1310998797416687, -0.06909459084272385, 0.2242867350578308, 0.19993752241134644, 0.08689160645008087, -0.016136953607201576, -0.271655410528183, 0.08716981112957001, -0.288891464471817, 0.0029541030526161194, -0.07357688248157501, 0.08299467712640762, -0.11672758311033249, -0.36416947841644287, 0.14447669684886932, -0.1506580114364624, 0.05302836745977402, -0.037196725606918335, 0.157942995429039, -0.28501224517822266, -0.0447249561548233, 0.10379332304000854, 0.149376779794693, 0.5703997611999512, -0.1643160581588745, -0.09529844671487808, -0.0748758614063263, -0.5269312262535095, 0.0917561873793602, 0.20327118039131165, 0.06617790460586548, 0.6200515031814575, 0.04695458710193634, -0.2369932383298874, -0.28296998143196106, 0.47801077365875244, -0.2343083769083023, -0.04829162359237671, -0.43870317935943604, 0.12486857920885086, -0.2072322964668274, -0.062254469841718674, 0.08274466544389725, -0.049120448529720306, 0.035836368799209595, 0.3579895794391632, -0.27271169424057007, -0.4445248544216156, 0.7492799162864685, -0.34488412737846375, -0.2888306975364685, 0.04006735235452652, 0.2385351061820984, 0.26714804768562317, -0.0994754359126091, -0.8630001544952393, 0.2285514771938324, 0.2634724974632263, -0.1605173945426941, -0.2602972388267517, 0.21663810312747955, -0.13724160194396973, -0.010583542287349701, -0.1032000184059143, 0.35539358854293823, 0.02272837609052658, -0.21402519941329956, 0.13330936431884766, -0.34617841243743896 ]
https://github.com/huggingface/datasets/issues/3851
Load audio dataset error
@albertvillanova, you can actually reproduce the error if you reach the cell `common_voice_train[0]["path"]` of this [notebook](https://colab.research.google.com/github/patrickvonplaten/notebooks/blob/master/Fine_Tune_XLSR_Wav2Vec2_on_Turkish_ASR_with_%F0%9F%A4%97_Transformers.ipynb#scrollTo=_0kRndSvqaKk). Error gets solved after updating the versions of the libraries used in there.
## Load audio dataset error Hi, when I load audio dataset following https://huggingface.co/docs/datasets/audio_process and https://github.com/huggingface/datasets/tree/master/datasets/superb, ``` from datasets import load_dataset, load_metric, Audio raw_datasets = load_dataset("superb", "ks", split="train") print(raw_datasets[0]["audio"]) ``` following errors occur ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-169-3f8253239fa0> in <module> ----> 1 raw_datasets[0]["audio"] /usr/lib/python3.6/site-packages/datasets/arrow_dataset.py in __getitem__(self, key) 1924 """Can be used to index columns (by string names) or rows (by integer index or iterable of indices or bools).""" 1925 return self._getitem( -> 1926 key, 1927 ) 1928 /usr/lib/python3.6/site-packages/datasets/arrow_dataset.py in _getitem(self, key, decoded, **kwargs) 1909 pa_subtable = query_table(self._data, key, indices=self._indices if self._indices is not None else None) 1910 formatted_output = format_table( -> 1911 pa_subtable, key, formatter=formatter, format_columns=format_columns, output_all_columns=output_all_columns 1912 ) 1913 return formatted_output /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in format_table(table, key, formatter, format_columns, output_all_columns) 530 python_formatter = PythonFormatter(features=None) 531 if format_columns is None: --> 532 return formatter(pa_table, query_type=query_type) 533 elif query_type == "column": 534 if key in format_columns: /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in __call__(self, pa_table, query_type) 279 def __call__(self, pa_table: pa.Table, query_type: str) -> Union[RowFormat, ColumnFormat, BatchFormat]: 280 if query_type == "row": --> 281 return self.format_row(pa_table) 282 elif query_type == "column": 283 return self.format_column(pa_table) /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in format_row(self, pa_table) 310 row = self.python_arrow_extractor().extract_row(pa_table) 311 if self.decoded: --> 312 row = self.python_features_decoder.decode_row(row) 313 return row 314 /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in decode_row(self, row) 219 220 def decode_row(self, row: dict) -> dict: --> 221 return self.features.decode_example(row) if self.features else row 222 223 def decode_column(self, column: list, column_name: str) -> list: /usr/lib/python3.6/site-packages/datasets/features/features.py in decode_example(self, example) 1320 else value 1321 for column_name, (feature, value) in utils.zip_dict( -> 1322 {key: value for key, value in self.items() if key in example}, example 1323 ) 1324 } /usr/lib/python3.6/site-packages/datasets/features/features.py in <dictcomp>(.0) 1319 if self._column_requires_decoding[column_name] 1320 else value -> 1321 for column_name, (feature, value) in utils.zip_dict( 1322 {key: value for key, value in self.items() if key in example}, example 1323 ) /usr/lib/python3.6/site-packages/datasets/features/features.py in decode_nested_example(schema, obj) 1053 # Object with special decoding: 1054 elif isinstance(schema, (Audio, Image)): -> 1055 return schema.decode_example(obj) if obj is not None else None 1056 return obj 1057 /usr/lib/python3.6/site-packages/datasets/features/audio.py in decode_example(self, value) 100 array, sampling_rate = self._decode_non_mp3_file_like(file) 101 else: --> 102 array, sampling_rate = self._decode_non_mp3_path_like(path) 103 return {"path": path, "array": array, "sampling_rate": sampling_rate} 104 /usr/lib/python3.6/site-packages/datasets/features/audio.py in _decode_non_mp3_path_like(self, path) 143 144 with xopen(path, "rb") as f: --> 145 array, sampling_rate = librosa.load(f, sr=self.sampling_rate, mono=self.mono) 146 return array, sampling_rate 147 /usr/lib/python3.6/site-packages/librosa/core/audio.py in load(path, sr, mono, offset, duration, dtype, res_type) 110 111 y = [] --> 112 with audioread.audio_open(os.path.realpath(path)) as input_file: 113 sr_native = input_file.samplerate 114 n_channels = input_file.channels /usr/lib/python3.6/posixpath.py in realpath(filename) 392 """Return the canonical path of the specified filename, eliminating any 393 symbolic links encountered in the path.""" --> 394 filename = os.fspath(filename) 395 path, ok = _joinrealpath(filename[:0], filename, {}) 396 return abspath(path) TypeError: expected str, bytes or os.PathLike object, not _io.BufferedReader ``` ## Expected results ``` >>> raw_datasets[0]["audio"] {'array': array([-0.0005188 , -0.00109863, 0.00030518, ..., 0.01730347, 0.01623535, 0.01724243]), 'path': '/root/.cache/huggingface/datasets/downloads/extracted/bb3a06b491a64aff422f307cd8116820b4f61d6f32fcadcfc554617e84383cb7/bed/026290a7_nohash_0.wav', 'sampling_rate': 16000} ```
29
Load audio dataset error ## Load audio dataset error Hi, when I load audio dataset following https://huggingface.co/docs/datasets/audio_process and https://github.com/huggingface/datasets/tree/master/datasets/superb, ``` from datasets import load_dataset, load_metric, Audio raw_datasets = load_dataset("superb", "ks", split="train") print(raw_datasets[0]["audio"]) ``` following errors occur ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-169-3f8253239fa0> in <module> ----> 1 raw_datasets[0]["audio"] /usr/lib/python3.6/site-packages/datasets/arrow_dataset.py in __getitem__(self, key) 1924 """Can be used to index columns (by string names) or rows (by integer index or iterable of indices or bools).""" 1925 return self._getitem( -> 1926 key, 1927 ) 1928 /usr/lib/python3.6/site-packages/datasets/arrow_dataset.py in _getitem(self, key, decoded, **kwargs) 1909 pa_subtable = query_table(self._data, key, indices=self._indices if self._indices is not None else None) 1910 formatted_output = format_table( -> 1911 pa_subtable, key, formatter=formatter, format_columns=format_columns, output_all_columns=output_all_columns 1912 ) 1913 return formatted_output /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in format_table(table, key, formatter, format_columns, output_all_columns) 530 python_formatter = PythonFormatter(features=None) 531 if format_columns is None: --> 532 return formatter(pa_table, query_type=query_type) 533 elif query_type == "column": 534 if key in format_columns: /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in __call__(self, pa_table, query_type) 279 def __call__(self, pa_table: pa.Table, query_type: str) -> Union[RowFormat, ColumnFormat, BatchFormat]: 280 if query_type == "row": --> 281 return self.format_row(pa_table) 282 elif query_type == "column": 283 return self.format_column(pa_table) /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in format_row(self, pa_table) 310 row = self.python_arrow_extractor().extract_row(pa_table) 311 if self.decoded: --> 312 row = self.python_features_decoder.decode_row(row) 313 return row 314 /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in decode_row(self, row) 219 220 def decode_row(self, row: dict) -> dict: --> 221 return self.features.decode_example(row) if self.features else row 222 223 def decode_column(self, column: list, column_name: str) -> list: /usr/lib/python3.6/site-packages/datasets/features/features.py in decode_example(self, example) 1320 else value 1321 for column_name, (feature, value) in utils.zip_dict( -> 1322 {key: value for key, value in self.items() if key in example}, example 1323 ) 1324 } /usr/lib/python3.6/site-packages/datasets/features/features.py in <dictcomp>(.0) 1319 if self._column_requires_decoding[column_name] 1320 else value -> 1321 for column_name, (feature, value) in utils.zip_dict( 1322 {key: value for key, value in self.items() if key in example}, example 1323 ) /usr/lib/python3.6/site-packages/datasets/features/features.py in decode_nested_example(schema, obj) 1053 # Object with special decoding: 1054 elif isinstance(schema, (Audio, Image)): -> 1055 return schema.decode_example(obj) if obj is not None else None 1056 return obj 1057 /usr/lib/python3.6/site-packages/datasets/features/audio.py in decode_example(self, value) 100 array, sampling_rate = self._decode_non_mp3_file_like(file) 101 else: --> 102 array, sampling_rate = self._decode_non_mp3_path_like(path) 103 return {"path": path, "array": array, "sampling_rate": sampling_rate} 104 /usr/lib/python3.6/site-packages/datasets/features/audio.py in _decode_non_mp3_path_like(self, path) 143 144 with xopen(path, "rb") as f: --> 145 array, sampling_rate = librosa.load(f, sr=self.sampling_rate, mono=self.mono) 146 return array, sampling_rate 147 /usr/lib/python3.6/site-packages/librosa/core/audio.py in load(path, sr, mono, offset, duration, dtype, res_type) 110 111 y = [] --> 112 with audioread.audio_open(os.path.realpath(path)) as input_file: 113 sr_native = input_file.samplerate 114 n_channels = input_file.channels /usr/lib/python3.6/posixpath.py in realpath(filename) 392 """Return the canonical path of the specified filename, eliminating any 393 symbolic links encountered in the path.""" --> 394 filename = os.fspath(filename) 395 path, ok = _joinrealpath(filename[:0], filename, {}) 396 return abspath(path) TypeError: expected str, bytes or os.PathLike object, not _io.BufferedReader ``` ## Expected results ``` >>> raw_datasets[0]["audio"] {'array': array([-0.0005188 , -0.00109863, 0.00030518, ..., 0.01730347, 0.01623535, 0.01724243]), 'path': '/root/.cache/huggingface/datasets/downloads/extracted/bb3a06b491a64aff422f307cd8116820b4f61d6f32fcadcfc554617e84383cb7/bed/026290a7_nohash_0.wav', 'sampling_rate': 16000} ``` @albertvillanova, you can actually reproduce the error if you reach the cell `common_voice_train[0]["path"]` of this [notebook](https://colab.research.google.com/github/patrickvonplaten/notebooks/blob/master/Fine_Tune_XLSR_Wav2Vec2_on_Turkish_ASR_with_%F0%9F%A4%97_Transformers.ipynb#scrollTo=_0kRndSvqaKk). Error gets solved after updating the versions of the libraries used in there.
[ -0.37698861956596375, -0.11540660262107849, -0.030820168554782867, 0.3962247967720032, 0.45797091722488403, 0.06998445838689804, 0.2902418375015259, 0.3150891661643982, -0.053028419613838196, 0.17489753663539886, -0.5356048345565796, 0.3172008693218231, -0.2974059581756592, 0.009562766179442406, -0.01793067529797554, -0.41443148255348206, -0.062487103044986725, 0.1607663482427597, -0.36746683716773987, 0.08969196677207947, -0.3725427985191345, 0.17430733144283295, -0.32617878913879395, 0.28652942180633545, -0.21815161406993866, -0.10664921253919601, 0.19831152260303497, 0.10520736873149872, -0.40443554520606995, -0.5568414330482483, 0.20959390699863434, -0.21488386392593384, 0.27188965678215027, 0.6587948799133301, -0.00010911104618571699, 0.10621479153633118, 0.37928587198257446, -0.0474429726600647, -0.41358375549316406, -0.2822248339653015, -0.4285668730735779, 0.05962193012237549, 0.14897392690181732, -0.12742406129837036, -0.0034841932356357574, -0.44314146041870117, -0.19010885059833527, -0.3268802762031555, 0.46151024103164673, 0.2684744894504547, 0.2999235987663269, 0.4350046217441559, 0.1923300325870514, -0.22034786641597748, 0.11943185329437256, 0.1547945886850357, 0.017395710572600365, 0.4202328026294708, 0.009191647171974182, 0.04916679114103317, 0.006947040557861328, 0.29845985770225525, -0.1738763153553009, 0.17633521556854248, 0.22985109686851501, -0.1352759152650833, -0.16752246022224426, -0.18790249526500702, 0.1613013744354248, 0.1987246572971344, 0.4726320207118988, -0.4815637171268463, -0.3459491431713104, -0.038682833313941956, 0.06902340799570084, -0.47027719020843506, 0.08012496680021286, 0.1715593785047531, -0.09720057249069214, 0.09529329091310501, -0.20516341924667358, 0.046524371951818466, -0.06869387626647949, 0.16827455163002014, 0.2375469207763672, 0.006446659564971924, -0.3387324810028076, 0.037226732820272446, 0.2738149166107178, -0.2141980081796646, -0.16694338619709015, 0.048363097012043, -0.1655760109424591, 0.36569827795028687, -0.4240429103374481, 0.11165684461593628, 0.04569860175251961, -0.13732334971427917, 0.014645323157310486, -0.04035305976867676, 0.017625899985432625, 0.04158588498830795, 0.07056768238544464, 0.16466102004051208, 0.22966957092285156, 0.0986422598361969, 0.15280768275260925, 0.1120607778429985, 0.1326160877943039, 0.23369449377059937, 0.09248773753643036, -0.031891122460365295, -0.2244517058134079, -0.23442700505256653, 0.035096969455480576, 0.11302677541971207, 0.4560841917991638, -0.23726290464401245, -0.40914735198020935, 0.02701915055513382, -0.09744137525558472, -0.0856005921959877, 0.31549638509750366, 0.2793029248714447, 0.24992240965366364, 0.10256370902061462, 0.21952755749225616, 0.39149123430252075, -0.13597209751605988, 0.0922219455242157, -0.13423554599285126, 0.08337876200675964, -0.0309070385992527, 0.13357660174369812, 0.287015825510025, -0.22245286405086517, 0.15504199266433716, 0.20770913362503052, 0.1261923909187317, -0.16103306412696838, 0.018926801159977913, -0.04930674657225609, -0.22745630145072937, 0.3239482343196869, -0.09602304548025131, 0.14989560842514038, 0.13938823342323303, 0.04106266051530838, -0.10443927347660065, 0.07067856937646866, -0.1952909231185913, -0.30296334624290466, -0.10498559474945068, 0.2461145967245102, -0.05281437933444977, 0.13407370448112488, -0.4590176045894623, -0.07322251796722412, 0.13850568234920502, -0.34591659903526306, 0.0648965835571289, -0.32057130336761475, -0.2848418354988098, 0.01838124915957451, 0.355086088180542, 0.2735078036785126, -0.2584555149078369, -0.17899475991725922, -0.11160539835691452, -0.2246556580066681, 0.03542162477970123, 0.35272330045700073, 0.029017336666584015, 0.2925768792629242, -0.14929883182048798, -0.025982480496168137, 0.2977186441421509, -0.30809521675109863, -0.20158031582832336, -0.06839486956596375, -0.021334167569875717, 0.12062466889619827, -0.08192870765924454, -0.11631106585264206, 0.10977590829133987, -0.046830274164676666, 0.31954509019851685, 0.057970333844423294, 0.08817776292562485, -0.06404492259025574, -0.0038451068103313446, -0.10556333512067795, -0.05193916708230972, 0.21325811743736267, -0.22082825005054474, 0.09107586741447449, -0.04675550013780594, -0.00948537327349186, 0.04767847806215286, -0.09926924109458923, -0.02555040270090103, 0.15980646014213562, 0.21962058544158936, 0.008425209671258926, -0.08358822762966156, -0.4422387480735779, -0.257641077041626, 0.017304573208093643, -0.09131109714508057, 0.18249793350696564, -0.36267679929733276, -0.06660766899585724, -0.24784135818481445, 0.1375558227300644, -0.39861369132995605, 0.05820859968662262, 0.13906973600387573, 0.09235168248414993, -0.04797784239053726, 0.06317995488643646, -0.2436271458864212, -0.049308933317661285, -0.057798974215984344, 0.054016534239053726, -0.4655536115169525, 0.059727743268013, 0.01912473887205124, -0.1688707172870636, 0.2765914797782898, 0.3562168478965759, 0.27616140246391296, -0.02659420855343342, -0.2120908498764038, 0.5099464654922485, 0.10674388706684113, 0.14628086984157562, -0.34292519092559814, 0.010127931833267212, 0.08339661359786987, -0.32265302538871765, -0.009067827835679054, -0.062329333275556564, 0.2937444746494293, -0.09973800927400589, -0.06723000854253769, 0.45834946632385254, -0.1053345799446106, 0.32003191113471985, 0.004308581352233887, -0.05898435413837433, 0.18027813732624054, 0.4128151535987854, -0.079990915954113, -0.14139029383659363, 0.16232000291347504, -0.1702553927898407, 0.19154304265975952, -0.054732851684093475, -0.3017841577529907, -0.31859633326530457, 0.2729860246181488, -0.1987493485212326, 0.09745615720748901, 0.134556382894516, -0.1964375078678131, 0.014538958668708801, 0.21908582746982574, -0.06007835641503334, 0.34602558612823486, 0.1377626210451126, -0.18270961940288544, 0.012034939602017403, -0.06520584970712662, -0.07165434211492538, 0.28847548365592957, 0.13372084498405457, 0.09282609075307846, 0.31199902296066284, 0.10783279687166214, 0.008172948844730854, -0.4893483519554138, -0.12667517364025116, -0.17309069633483887, 0.3339037597179413, -0.5299004316329956, -0.1459740400314331, -0.33159902691841125, -0.24889039993286133, -0.16439644992351532, -0.33937492966651917, -0.008697982877492905, -0.17275521159172058, -0.07394260913133621, 0.22996886074543, -0.2515614330768585, 0.33636945486068726, -0.09804265201091766, 0.10930484533309937, 0.19064278900623322, -0.05131839960813522, -0.10534483194351196, -0.06962399184703827, -0.0017027482390403748, 0.0683407336473465, 0.46552222967147827, 0.21311357617378235, 0.2999575436115265, -0.13949640095233917, 0.04691532999277115, -0.11560777574777603, -0.026230521500110626, 0.005324233323335648, -0.15547752380371094, 0.22200070321559906, 0.0740111917257309, 0.2549061179161072, -0.06429829448461533, -0.6536605358123779, 0.48105353116989136, -0.016089944168925285, -0.14526505768299103, 0.41306498646736145, -0.02334681898355484, 0.07642681151628494, -0.13808846473693848, -0.30180391669273376, -0.1945595145225525, -0.5705912709236145, 0.32273614406585693, -0.12577039003372192, 0.20205745100975037, 0.3859263062477112, -0.0013878187164664268, 0.3092150390148163, -0.015166150406002998, 0.34292998909950256, -0.21224254369735718, -0.15084366500377655, 0.28381529450416565, -0.28112608194351196, -0.24681682884693146, -0.3224193751811981, 0.055223554372787476, 0.27967187762260437, -0.011266561225056648, -0.3107510209083557, -0.10823144018650055, -0.0971764624118805, -0.1651502549648285, 0.017394378781318665, 0.08713506907224655, 0.03404455631971359, 0.22228188812732697, -0.040998611599206924, -0.07195577025413513, -0.1744193136692047, -0.02118036150932312, -0.07606066018342972, -0.10836029797792435, 0.08024074137210846, 0.7200369238853455, -0.34761202335357666, 0.5735510587692261, 0.24873393774032593, 0.04383845627307892, 0.3965498208999634, -0.017100023105740547, 0.25107479095458984, -0.4302440583705902, -0.4340077042579651, -0.07338006794452667, -0.11863067746162415, 0.08432964980602264, 0.045786648988723755, 0.1166929230093956, -0.05747072398662567, -0.17232389748096466, 0.1374429166316986, -0.18510344624519348, -0.19856424629688263, 0.059113048017024994, -0.11285720765590668, 0.2146124243736267, -0.01768944039940834, 0.13930785655975342, -0.0013668183237314224, -0.012019678950309753, 0.036937545984983444, 0.11903512477874756, 0.10039012134075165, -0.13045178353786469, -0.5379377007484436, -0.04928366839885712, -0.237307608127594, 0.33006447553634644, 0.13310189545154572, 0.6754536628723145, -0.17570675909519196, -0.15548956394195557, -0.017760708928108215, 0.19927580654621124, 0.15312260389328003, 0.10919398814439774, 0.06422609090805054, 0.24032461643218994, 0.04742276668548584, -0.3574051856994629, -0.03404337540268898, -0.3311008810997009, 0.21016809344291687, -0.018184758722782135, 0.37682393193244934, -0.24765720963478088, -0.25393736362457275, 0.3404424786567688, 0.29837730526924133, 0.09097945690155029, -0.16275452077388763, -0.25557607412338257, -0.3246847987174988, -0.28593137860298157, 0.060403164476156235, 0.049393825232982635, 0.3640836179256439, 0.07055438309907913, 0.044621292501688004, -0.00947793573141098, 0.005886707454919815, 0.33183592557907104, 0.017192713916301727, 0.38590431213378906, 0.16888050734996796, 0.292162150144577, 0.20844654738903046, -0.038020625710487366, 0.43442898988723755, 0.5396823883056641, -0.14911919832229614, -0.2729015648365021, 0.17503437399864197, 0.12578335404396057, 0.15445704758167267, 0.18005052208900452, -0.0136064188554883, 0.09868915379047394, 0.05434131994843483, 0.2142157405614853, -0.27204573154449463, 0.06708241254091263, 0.44178640842437744, 0.1236196979880333, -0.474012553691864, -0.42792755365371704, 0.5069891810417175, -0.03213507682085037, 0.029599793255329132, 0.5055595636367798, 0.46199727058410645, -0.1705464869737625, 0.2618415355682373, -0.2013261914253235, 0.7946385741233826, 0.025771401822566986, 0.11397328972816467, 0.544471800327301, -0.28228965401649475, 0.20943507552146912, 0.06951584666967392, 0.06566938757896423, -0.03446261212229729, -0.11647577583789825, -0.022824078798294067, -0.06625909358263016, -0.044314123690128326, 0.006120353937149048, -0.19289766252040863, 0.23634983599185944, -0.05566266179084778, 0.07206909358501434, -0.012137623503804207, 0.17405366897583008, -0.1788768470287323, -0.26044806838035583, -0.49015605449676514, 0.17014183104038239, -0.0034889504313468933, 0.05041400343179703, -0.05781805142760277, -0.14901137351989746, 0.2124679982662201, -0.27893543243408203, -0.2062697410583496, -0.06892701983451843, -0.27946150302886963, 0.2728646993637085, 0.13229432702064514, -0.43748563528060913, 0.29012036323547363, 0.07895392179489136, -0.2741124629974365, 0.06520935893058777, -0.1115565150976181, 0.0031239017844200134, -0.01966143399477005, 0.14331941306591034, -0.10609385371208191, 0.14159785211086273, 0.22844743728637695, -0.000028759241104125977, -0.1367737054824829, 0.04901885986328125, -0.010802075266838074, -0.16141048073768616, 0.1251276433467865, 0.08049832284450531, -0.022760339081287384, -0.35409384965896606, -0.4032338857650757, -0.2976568043231964, 0.06303428113460541, -0.16492561995983124, 0.1869926154613495, -0.04354212433099747, -0.20621727406978607, 0.10993572324514389, 0.16164462268352509, -0.1682066023349762, 0.028827153146266937, 0.430110901594162, -0.1315002739429474, -0.014322729781270027, 0.6254100799560547, 0.2552022635936737, -0.21590019762516022, -0.20312735438346863, 0.14462214708328247, 0.29479312896728516, -0.5281533598899841, 0.10573021322488785, 0.13838458061218262, 0.07218189537525177, -0.042406484484672546, 0.07685616612434387, 0.032076552510261536, -0.062172017991542816, 0.0034390129148960114, -0.3878534436225891, -0.44610172510147095, 0.4764642119407654, 0.03834378719329834, 0.30771905183792114, -0.06836995482444763, 0.07762269675731659, -0.03848252817988396, -0.03651590645313263, -0.35723644495010376, 0.1556636542081833, -0.13689221441745758, 0.264657199382782, 0.2682207524776459, -0.10163947194814682, 0.17307960987091064, -0.05722755193710327, 0.24351125955581665, 0.16168595850467682, -0.3068462610244751, -0.2195839285850525, 0.007529212161898613, 0.13316863775253296, -0.12674343585968018, -0.3238581120967865, -0.09372575581073761, 0.03997127711772919, -0.11052872240543365, -0.18980568647384644, 0.029723413288593292, 0.24396568536758423, -0.13213607668876648, 0.04232976213097572, 0.013128288090229034, 0.05714365839958191, 0.04007946699857712, 0.27217718958854675, -0.0328202098608017, -0.14429959654808044, -0.00996054895222187, 0.0465257354080677, -0.06977347284555435, -0.10187990963459015, -0.1238667219877243, 0.2403121292591095, 0.06247856467962265, -0.2173689901828766, 0.31434372067451477, -0.2445399910211563, 0.05390443280339241, 0.14846624433994293, 0.5309240818023682, 0.3925289213657379, -0.18492916226387024, -0.049104705452919006, 0.00995205994695425, 0.2348107248544693, -0.2104186713695526, 0.001887504244223237, -0.016231030225753784, -0.06943677365779877, -0.003174085170030594, 0.10980165004730225, -0.15596874058246613, 0.031043924391269684, 0.022810310125350952, 0.07957172393798828, 0.1721285581588745, 0.021508272737264633, 0.17476396262645721, 0.31140342354774475, 0.003660093992948532, -0.12153053283691406, 0.15637478232383728, 0.06848457455635071, 0.1835615038871765, 0.1623724102973938, -0.4743475317955017, 0.1918402910232544, 0.014994975179433823, -0.08260110020637512, 0.25919651985168457, -0.45217761397361755, -0.3418801426887512, 0.24833737313747406, 0.005576983094215393, 0.06415136158466339, -0.05184493958950043, 0.593359649181366, -0.3439289629459381, -0.17618754506111145, 0.03093245066702366, 0.06458575278520584, -0.16744741797447205, -0.09033113718032837, -0.10905342549085617, -0.15390396118164062, -0.1901974081993103, -0.10730457305908203, -0.07198472321033478, 0.19676755368709564, 0.05669720843434334, -0.0025784894824028015, 0.055355433374643326, -0.36351126432418823, -0.1061842069029808, 0.4395587742328644, 0.039973191916942596, -0.22027777135372162, 0.32904043793678284, 0.5497706532478333, 0.05050479993224144, 0.2770536541938782, 0.418947696685791, 0.6585164666175842, 0.2836868464946747, -0.1108679324388504, 0.20576182007789612, -0.10725408792495728, -0.13651730120182037, 0.24986520409584045, 0.3022420108318329, 0.06438486278057098, 0.2294769436120987, 0.3011277914047241, 0.2583593428134918, -0.14483165740966797, -0.00131123885512352, 0.0453212708234787, 0.06860089302062988, -0.2826193571090698, 0.2380909025669098, -0.4326452612876892, -0.15284450352191925, -0.0962965190410614, -0.14896216988563538, -0.39863890409469604, -0.01176424790173769, 0.33202728629112244, 0.014438772574067116, 0.06327471137046814, 0.007456937804818153, 0.08974136412143707, -0.1905127763748169, 0.454533189535141, 0.45135197043418884, 0.2124728560447693, -0.22982823848724365, -0.28353816270828247, -0.733703076839447, -0.010545983910560608, 0.12947961688041687, 0.09178882092237473, 0.1310998797416687, -0.06909459084272385, 0.2242867350578308, 0.19993752241134644, 0.08689160645008087, -0.016136953607201576, -0.271655410528183, 0.08716981112957001, -0.288891464471817, 0.0029541030526161194, -0.07357688248157501, 0.08299467712640762, -0.11672758311033249, -0.36416947841644287, 0.14447669684886932, -0.1506580114364624, 0.05302836745977402, -0.037196725606918335, 0.157942995429039, -0.28501224517822266, -0.0447249561548233, 0.10379332304000854, 0.149376779794693, 0.5703997611999512, -0.1643160581588745, -0.09529844671487808, -0.0748758614063263, -0.5269312262535095, 0.0917561873793602, 0.20327118039131165, 0.06617790460586548, 0.6200515031814575, 0.04695458710193634, -0.2369932383298874, -0.28296998143196106, 0.47801077365875244, -0.2343083769083023, -0.04829162359237671, -0.43870317935943604, 0.12486857920885086, -0.2072322964668274, -0.062254469841718674, 0.08274466544389725, -0.049120448529720306, 0.035836368799209595, 0.3579895794391632, -0.27271169424057007, -0.4445248544216156, 0.7492799162864685, -0.34488412737846375, -0.2888306975364685, 0.04006735235452652, 0.2385351061820984, 0.26714804768562317, -0.0994754359126091, -0.8630001544952393, 0.2285514771938324, 0.2634724974632263, -0.1605173945426941, -0.2602972388267517, 0.21663810312747955, -0.13724160194396973, -0.010583542287349701, -0.1032000184059143, 0.35539358854293823, 0.02272837609052658, -0.21402519941329956, 0.13330936431884766, -0.34617841243743896 ]
https://github.com/huggingface/datasets/issues/3851
Load audio dataset error
@jvel07, thanks for reporting and finding a solution. Maybe we could tell @patrickvonplaten about the version pinning issue in his notebook.
## Load audio dataset error Hi, when I load audio dataset following https://huggingface.co/docs/datasets/audio_process and https://github.com/huggingface/datasets/tree/master/datasets/superb, ``` from datasets import load_dataset, load_metric, Audio raw_datasets = load_dataset("superb", "ks", split="train") print(raw_datasets[0]["audio"]) ``` following errors occur ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-169-3f8253239fa0> in <module> ----> 1 raw_datasets[0]["audio"] /usr/lib/python3.6/site-packages/datasets/arrow_dataset.py in __getitem__(self, key) 1924 """Can be used to index columns (by string names) or rows (by integer index or iterable of indices or bools).""" 1925 return self._getitem( -> 1926 key, 1927 ) 1928 /usr/lib/python3.6/site-packages/datasets/arrow_dataset.py in _getitem(self, key, decoded, **kwargs) 1909 pa_subtable = query_table(self._data, key, indices=self._indices if self._indices is not None else None) 1910 formatted_output = format_table( -> 1911 pa_subtable, key, formatter=formatter, format_columns=format_columns, output_all_columns=output_all_columns 1912 ) 1913 return formatted_output /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in format_table(table, key, formatter, format_columns, output_all_columns) 530 python_formatter = PythonFormatter(features=None) 531 if format_columns is None: --> 532 return formatter(pa_table, query_type=query_type) 533 elif query_type == "column": 534 if key in format_columns: /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in __call__(self, pa_table, query_type) 279 def __call__(self, pa_table: pa.Table, query_type: str) -> Union[RowFormat, ColumnFormat, BatchFormat]: 280 if query_type == "row": --> 281 return self.format_row(pa_table) 282 elif query_type == "column": 283 return self.format_column(pa_table) /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in format_row(self, pa_table) 310 row = self.python_arrow_extractor().extract_row(pa_table) 311 if self.decoded: --> 312 row = self.python_features_decoder.decode_row(row) 313 return row 314 /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in decode_row(self, row) 219 220 def decode_row(self, row: dict) -> dict: --> 221 return self.features.decode_example(row) if self.features else row 222 223 def decode_column(self, column: list, column_name: str) -> list: /usr/lib/python3.6/site-packages/datasets/features/features.py in decode_example(self, example) 1320 else value 1321 for column_name, (feature, value) in utils.zip_dict( -> 1322 {key: value for key, value in self.items() if key in example}, example 1323 ) 1324 } /usr/lib/python3.6/site-packages/datasets/features/features.py in <dictcomp>(.0) 1319 if self._column_requires_decoding[column_name] 1320 else value -> 1321 for column_name, (feature, value) in utils.zip_dict( 1322 {key: value for key, value in self.items() if key in example}, example 1323 ) /usr/lib/python3.6/site-packages/datasets/features/features.py in decode_nested_example(schema, obj) 1053 # Object with special decoding: 1054 elif isinstance(schema, (Audio, Image)): -> 1055 return schema.decode_example(obj) if obj is not None else None 1056 return obj 1057 /usr/lib/python3.6/site-packages/datasets/features/audio.py in decode_example(self, value) 100 array, sampling_rate = self._decode_non_mp3_file_like(file) 101 else: --> 102 array, sampling_rate = self._decode_non_mp3_path_like(path) 103 return {"path": path, "array": array, "sampling_rate": sampling_rate} 104 /usr/lib/python3.6/site-packages/datasets/features/audio.py in _decode_non_mp3_path_like(self, path) 143 144 with xopen(path, "rb") as f: --> 145 array, sampling_rate = librosa.load(f, sr=self.sampling_rate, mono=self.mono) 146 return array, sampling_rate 147 /usr/lib/python3.6/site-packages/librosa/core/audio.py in load(path, sr, mono, offset, duration, dtype, res_type) 110 111 y = [] --> 112 with audioread.audio_open(os.path.realpath(path)) as input_file: 113 sr_native = input_file.samplerate 114 n_channels = input_file.channels /usr/lib/python3.6/posixpath.py in realpath(filename) 392 """Return the canonical path of the specified filename, eliminating any 393 symbolic links encountered in the path.""" --> 394 filename = os.fspath(filename) 395 path, ok = _joinrealpath(filename[:0], filename, {}) 396 return abspath(path) TypeError: expected str, bytes or os.PathLike object, not _io.BufferedReader ``` ## Expected results ``` >>> raw_datasets[0]["audio"] {'array': array([-0.0005188 , -0.00109863, 0.00030518, ..., 0.01730347, 0.01623535, 0.01724243]), 'path': '/root/.cache/huggingface/datasets/downloads/extracted/bb3a06b491a64aff422f307cd8116820b4f61d6f32fcadcfc554617e84383cb7/bed/026290a7_nohash_0.wav', 'sampling_rate': 16000} ```
21
Load audio dataset error ## Load audio dataset error Hi, when I load audio dataset following https://huggingface.co/docs/datasets/audio_process and https://github.com/huggingface/datasets/tree/master/datasets/superb, ``` from datasets import load_dataset, load_metric, Audio raw_datasets = load_dataset("superb", "ks", split="train") print(raw_datasets[0]["audio"]) ``` following errors occur ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-169-3f8253239fa0> in <module> ----> 1 raw_datasets[0]["audio"] /usr/lib/python3.6/site-packages/datasets/arrow_dataset.py in __getitem__(self, key) 1924 """Can be used to index columns (by string names) or rows (by integer index or iterable of indices or bools).""" 1925 return self._getitem( -> 1926 key, 1927 ) 1928 /usr/lib/python3.6/site-packages/datasets/arrow_dataset.py in _getitem(self, key, decoded, **kwargs) 1909 pa_subtable = query_table(self._data, key, indices=self._indices if self._indices is not None else None) 1910 formatted_output = format_table( -> 1911 pa_subtable, key, formatter=formatter, format_columns=format_columns, output_all_columns=output_all_columns 1912 ) 1913 return formatted_output /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in format_table(table, key, formatter, format_columns, output_all_columns) 530 python_formatter = PythonFormatter(features=None) 531 if format_columns is None: --> 532 return formatter(pa_table, query_type=query_type) 533 elif query_type == "column": 534 if key in format_columns: /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in __call__(self, pa_table, query_type) 279 def __call__(self, pa_table: pa.Table, query_type: str) -> Union[RowFormat, ColumnFormat, BatchFormat]: 280 if query_type == "row": --> 281 return self.format_row(pa_table) 282 elif query_type == "column": 283 return self.format_column(pa_table) /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in format_row(self, pa_table) 310 row = self.python_arrow_extractor().extract_row(pa_table) 311 if self.decoded: --> 312 row = self.python_features_decoder.decode_row(row) 313 return row 314 /usr/lib/python3.6/site-packages/datasets/formatting/formatting.py in decode_row(self, row) 219 220 def decode_row(self, row: dict) -> dict: --> 221 return self.features.decode_example(row) if self.features else row 222 223 def decode_column(self, column: list, column_name: str) -> list: /usr/lib/python3.6/site-packages/datasets/features/features.py in decode_example(self, example) 1320 else value 1321 for column_name, (feature, value) in utils.zip_dict( -> 1322 {key: value for key, value in self.items() if key in example}, example 1323 ) 1324 } /usr/lib/python3.6/site-packages/datasets/features/features.py in <dictcomp>(.0) 1319 if self._column_requires_decoding[column_name] 1320 else value -> 1321 for column_name, (feature, value) in utils.zip_dict( 1322 {key: value for key, value in self.items() if key in example}, example 1323 ) /usr/lib/python3.6/site-packages/datasets/features/features.py in decode_nested_example(schema, obj) 1053 # Object with special decoding: 1054 elif isinstance(schema, (Audio, Image)): -> 1055 return schema.decode_example(obj) if obj is not None else None 1056 return obj 1057 /usr/lib/python3.6/site-packages/datasets/features/audio.py in decode_example(self, value) 100 array, sampling_rate = self._decode_non_mp3_file_like(file) 101 else: --> 102 array, sampling_rate = self._decode_non_mp3_path_like(path) 103 return {"path": path, "array": array, "sampling_rate": sampling_rate} 104 /usr/lib/python3.6/site-packages/datasets/features/audio.py in _decode_non_mp3_path_like(self, path) 143 144 with xopen(path, "rb") as f: --> 145 array, sampling_rate = librosa.load(f, sr=self.sampling_rate, mono=self.mono) 146 return array, sampling_rate 147 /usr/lib/python3.6/site-packages/librosa/core/audio.py in load(path, sr, mono, offset, duration, dtype, res_type) 110 111 y = [] --> 112 with audioread.audio_open(os.path.realpath(path)) as input_file: 113 sr_native = input_file.samplerate 114 n_channels = input_file.channels /usr/lib/python3.6/posixpath.py in realpath(filename) 392 """Return the canonical path of the specified filename, eliminating any 393 symbolic links encountered in the path.""" --> 394 filename = os.fspath(filename) 395 path, ok = _joinrealpath(filename[:0], filename, {}) 396 return abspath(path) TypeError: expected str, bytes or os.PathLike object, not _io.BufferedReader ``` ## Expected results ``` >>> raw_datasets[0]["audio"] {'array': array([-0.0005188 , -0.00109863, 0.00030518, ..., 0.01730347, 0.01623535, 0.01724243]), 'path': '/root/.cache/huggingface/datasets/downloads/extracted/bb3a06b491a64aff422f307cd8116820b4f61d6f32fcadcfc554617e84383cb7/bed/026290a7_nohash_0.wav', 'sampling_rate': 16000} ``` @jvel07, thanks for reporting and finding a solution. Maybe we could tell @patrickvonplaten about the version pinning issue in his notebook.
[ -0.37698861956596375, -0.11540660262107849, -0.030820168554782867, 0.3962247967720032, 0.45797091722488403, 0.06998445838689804, 0.2902418375015259, 0.3150891661643982, -0.053028419613838196, 0.17489753663539886, -0.5356048345565796, 0.3172008693218231, -0.2974059581756592, 0.009562766179442406, -0.01793067529797554, -0.41443148255348206, -0.062487103044986725, 0.1607663482427597, -0.36746683716773987, 0.08969196677207947, -0.3725427985191345, 0.17430733144283295, -0.32617878913879395, 0.28652942180633545, -0.21815161406993866, -0.10664921253919601, 0.19831152260303497, 0.10520736873149872, -0.40443554520606995, -0.5568414330482483, 0.20959390699863434, -0.21488386392593384, 0.27188965678215027, 0.6587948799133301, -0.00010911104618571699, 0.10621479153633118, 0.37928587198257446, -0.0474429726600647, -0.41358375549316406, -0.2822248339653015, -0.4285668730735779, 0.05962193012237549, 0.14897392690181732, -0.12742406129837036, -0.0034841932356357574, -0.44314146041870117, -0.19010885059833527, -0.3268802762031555, 0.46151024103164673, 0.2684744894504547, 0.2999235987663269, 0.4350046217441559, 0.1923300325870514, -0.22034786641597748, 0.11943185329437256, 0.1547945886850357, 0.017395710572600365, 0.4202328026294708, 0.009191647171974182, 0.04916679114103317, 0.006947040557861328, 0.29845985770225525, -0.1738763153553009, 0.17633521556854248, 0.22985109686851501, -0.1352759152650833, -0.16752246022224426, -0.18790249526500702, 0.1613013744354248, 0.1987246572971344, 0.4726320207118988, -0.4815637171268463, -0.3459491431713104, -0.038682833313941956, 0.06902340799570084, -0.47027719020843506, 0.08012496680021286, 0.1715593785047531, -0.09720057249069214, 0.09529329091310501, -0.20516341924667358, 0.046524371951818466, -0.06869387626647949, 0.16827455163002014, 0.2375469207763672, 0.006446659564971924, -0.3387324810028076, 0.037226732820272446, 0.2738149166107178, -0.2141980081796646, -0.16694338619709015, 0.048363097012043, -0.1655760109424591, 0.36569827795028687, -0.4240429103374481, 0.11165684461593628, 0.04569860175251961, -0.13732334971427917, 0.014645323157310486, -0.04035305976867676, 0.017625899985432625, 0.04158588498830795, 0.07056768238544464, 0.16466102004051208, 0.22966957092285156, 0.0986422598361969, 0.15280768275260925, 0.1120607778429985, 0.1326160877943039, 0.23369449377059937, 0.09248773753643036, -0.031891122460365295, -0.2244517058134079, -0.23442700505256653, 0.035096969455480576, 0.11302677541971207, 0.4560841917991638, -0.23726290464401245, -0.40914735198020935, 0.02701915055513382, -0.09744137525558472, -0.0856005921959877, 0.31549638509750366, 0.2793029248714447, 0.24992240965366364, 0.10256370902061462, 0.21952755749225616, 0.39149123430252075, -0.13597209751605988, 0.0922219455242157, -0.13423554599285126, 0.08337876200675964, -0.0309070385992527, 0.13357660174369812, 0.287015825510025, -0.22245286405086517, 0.15504199266433716, 0.20770913362503052, 0.1261923909187317, -0.16103306412696838, 0.018926801159977913, -0.04930674657225609, -0.22745630145072937, 0.3239482343196869, -0.09602304548025131, 0.14989560842514038, 0.13938823342323303, 0.04106266051530838, -0.10443927347660065, 0.07067856937646866, -0.1952909231185913, -0.30296334624290466, -0.10498559474945068, 0.2461145967245102, -0.05281437933444977, 0.13407370448112488, -0.4590176045894623, -0.07322251796722412, 0.13850568234920502, -0.34591659903526306, 0.0648965835571289, -0.32057130336761475, -0.2848418354988098, 0.01838124915957451, 0.355086088180542, 0.2735078036785126, -0.2584555149078369, -0.17899475991725922, -0.11160539835691452, -0.2246556580066681, 0.03542162477970123, 0.35272330045700073, 0.029017336666584015, 0.2925768792629242, -0.14929883182048798, -0.025982480496168137, 0.2977186441421509, -0.30809521675109863, -0.20158031582832336, -0.06839486956596375, -0.021334167569875717, 0.12062466889619827, -0.08192870765924454, -0.11631106585264206, 0.10977590829133987, -0.046830274164676666, 0.31954509019851685, 0.057970333844423294, 0.08817776292562485, -0.06404492259025574, -0.0038451068103313446, -0.10556333512067795, -0.05193916708230972, 0.21325811743736267, -0.22082825005054474, 0.09107586741447449, -0.04675550013780594, -0.00948537327349186, 0.04767847806215286, -0.09926924109458923, -0.02555040270090103, 0.15980646014213562, 0.21962058544158936, 0.008425209671258926, -0.08358822762966156, -0.4422387480735779, -0.257641077041626, 0.017304573208093643, -0.09131109714508057, 0.18249793350696564, -0.36267679929733276, -0.06660766899585724, -0.24784135818481445, 0.1375558227300644, -0.39861369132995605, 0.05820859968662262, 0.13906973600387573, 0.09235168248414993, -0.04797784239053726, 0.06317995488643646, -0.2436271458864212, -0.049308933317661285, -0.057798974215984344, 0.054016534239053726, -0.4655536115169525, 0.059727743268013, 0.01912473887205124, -0.1688707172870636, 0.2765914797782898, 0.3562168478965759, 0.27616140246391296, -0.02659420855343342, -0.2120908498764038, 0.5099464654922485, 0.10674388706684113, 0.14628086984157562, -0.34292519092559814, 0.010127931833267212, 0.08339661359786987, -0.32265302538871765, -0.009067827835679054, -0.062329333275556564, 0.2937444746494293, -0.09973800927400589, -0.06723000854253769, 0.45834946632385254, -0.1053345799446106, 0.32003191113471985, 0.004308581352233887, -0.05898435413837433, 0.18027813732624054, 0.4128151535987854, -0.079990915954113, -0.14139029383659363, 0.16232000291347504, -0.1702553927898407, 0.19154304265975952, -0.054732851684093475, -0.3017841577529907, -0.31859633326530457, 0.2729860246181488, -0.1987493485212326, 0.09745615720748901, 0.134556382894516, -0.1964375078678131, 0.014538958668708801, 0.21908582746982574, -0.06007835641503334, 0.34602558612823486, 0.1377626210451126, -0.18270961940288544, 0.012034939602017403, -0.06520584970712662, -0.07165434211492538, 0.28847548365592957, 0.13372084498405457, 0.09282609075307846, 0.31199902296066284, 0.10783279687166214, 0.008172948844730854, -0.4893483519554138, -0.12667517364025116, -0.17309069633483887, 0.3339037597179413, -0.5299004316329956, -0.1459740400314331, -0.33159902691841125, -0.24889039993286133, -0.16439644992351532, -0.33937492966651917, -0.008697982877492905, -0.17275521159172058, -0.07394260913133621, 0.22996886074543, -0.2515614330768585, 0.33636945486068726, -0.09804265201091766, 0.10930484533309937, 0.19064278900623322, -0.05131839960813522, -0.10534483194351196, -0.06962399184703827, -0.0017027482390403748, 0.0683407336473465, 0.46552222967147827, 0.21311357617378235, 0.2999575436115265, -0.13949640095233917, 0.04691532999277115, -0.11560777574777603, -0.026230521500110626, 0.005324233323335648, -0.15547752380371094, 0.22200070321559906, 0.0740111917257309, 0.2549061179161072, -0.06429829448461533, -0.6536605358123779, 0.48105353116989136, -0.016089944168925285, -0.14526505768299103, 0.41306498646736145, -0.02334681898355484, 0.07642681151628494, -0.13808846473693848, -0.30180391669273376, -0.1945595145225525, -0.5705912709236145, 0.32273614406585693, -0.12577039003372192, 0.20205745100975037, 0.3859263062477112, -0.0013878187164664268, 0.3092150390148163, -0.015166150406002998, 0.34292998909950256, -0.21224254369735718, -0.15084366500377655, 0.28381529450416565, -0.28112608194351196, -0.24681682884693146, -0.3224193751811981, 0.055223554372787476, 0.27967187762260437, -0.011266561225056648, -0.3107510209083557, -0.10823144018650055, -0.0971764624118805, -0.1651502549648285, 0.017394378781318665, 0.08713506907224655, 0.03404455631971359, 0.22228188812732697, -0.040998611599206924, -0.07195577025413513, -0.1744193136692047, -0.02118036150932312, -0.07606066018342972, -0.10836029797792435, 0.08024074137210846, 0.7200369238853455, -0.34761202335357666, 0.5735510587692261, 0.24873393774032593, 0.04383845627307892, 0.3965498208999634, -0.017100023105740547, 0.25107479095458984, -0.4302440583705902, -0.4340077042579651, -0.07338006794452667, -0.11863067746162415, 0.08432964980602264, 0.045786648988723755, 0.1166929230093956, -0.05747072398662567, -0.17232389748096466, 0.1374429166316986, -0.18510344624519348, -0.19856424629688263, 0.059113048017024994, -0.11285720765590668, 0.2146124243736267, -0.01768944039940834, 0.13930785655975342, -0.0013668183237314224, -0.012019678950309753, 0.036937545984983444, 0.11903512477874756, 0.10039012134075165, -0.13045178353786469, -0.5379377007484436, -0.04928366839885712, -0.237307608127594, 0.33006447553634644, 0.13310189545154572, 0.6754536628723145, -0.17570675909519196, -0.15548956394195557, -0.017760708928108215, 0.19927580654621124, 0.15312260389328003, 0.10919398814439774, 0.06422609090805054, 0.24032461643218994, 0.04742276668548584, -0.3574051856994629, -0.03404337540268898, -0.3311008810997009, 0.21016809344291687, -0.018184758722782135, 0.37682393193244934, -0.24765720963478088, -0.25393736362457275, 0.3404424786567688, 0.29837730526924133, 0.09097945690155029, -0.16275452077388763, -0.25557607412338257, -0.3246847987174988, -0.28593137860298157, 0.060403164476156235, 0.049393825232982635, 0.3640836179256439, 0.07055438309907913, 0.044621292501688004, -0.00947793573141098, 0.005886707454919815, 0.33183592557907104, 0.017192713916301727, 0.38590431213378906, 0.16888050734996796, 0.292162150144577, 0.20844654738903046, -0.038020625710487366, 0.43442898988723755, 0.5396823883056641, -0.14911919832229614, -0.2729015648365021, 0.17503437399864197, 0.12578335404396057, 0.15445704758167267, 0.18005052208900452, -0.0136064188554883, 0.09868915379047394, 0.05434131994843483, 0.2142157405614853, -0.27204573154449463, 0.06708241254091263, 0.44178640842437744, 0.1236196979880333, -0.474012553691864, -0.42792755365371704, 0.5069891810417175, -0.03213507682085037, 0.029599793255329132, 0.5055595636367798, 0.46199727058410645, -0.1705464869737625, 0.2618415355682373, -0.2013261914253235, 0.7946385741233826, 0.025771401822566986, 0.11397328972816467, 0.544471800327301, -0.28228965401649475, 0.20943507552146912, 0.06951584666967392, 0.06566938757896423, -0.03446261212229729, -0.11647577583789825, -0.022824078798294067, -0.06625909358263016, -0.044314123690128326, 0.006120353937149048, -0.19289766252040863, 0.23634983599185944, -0.05566266179084778, 0.07206909358501434, -0.012137623503804207, 0.17405366897583008, -0.1788768470287323, -0.26044806838035583, -0.49015605449676514, 0.17014183104038239, -0.0034889504313468933, 0.05041400343179703, -0.05781805142760277, -0.14901137351989746, 0.2124679982662201, -0.27893543243408203, -0.2062697410583496, -0.06892701983451843, -0.27946150302886963, 0.2728646993637085, 0.13229432702064514, -0.43748563528060913, 0.29012036323547363, 0.07895392179489136, -0.2741124629974365, 0.06520935893058777, -0.1115565150976181, 0.0031239017844200134, -0.01966143399477005, 0.14331941306591034, -0.10609385371208191, 0.14159785211086273, 0.22844743728637695, -0.000028759241104125977, -0.1367737054824829, 0.04901885986328125, -0.010802075266838074, -0.16141048073768616, 0.1251276433467865, 0.08049832284450531, -0.022760339081287384, -0.35409384965896606, -0.4032338857650757, -0.2976568043231964, 0.06303428113460541, -0.16492561995983124, 0.1869926154613495, -0.04354212433099747, -0.20621727406978607, 0.10993572324514389, 0.16164462268352509, -0.1682066023349762, 0.028827153146266937, 0.430110901594162, -0.1315002739429474, -0.014322729781270027, 0.6254100799560547, 0.2552022635936737, -0.21590019762516022, -0.20312735438346863, 0.14462214708328247, 0.29479312896728516, -0.5281533598899841, 0.10573021322488785, 0.13838458061218262, 0.07218189537525177, -0.042406484484672546, 0.07685616612434387, 0.032076552510261536, -0.062172017991542816, 0.0034390129148960114, -0.3878534436225891, -0.44610172510147095, 0.4764642119407654, 0.03834378719329834, 0.30771905183792114, -0.06836995482444763, 0.07762269675731659, -0.03848252817988396, -0.03651590645313263, -0.35723644495010376, 0.1556636542081833, -0.13689221441745758, 0.264657199382782, 0.2682207524776459, -0.10163947194814682, 0.17307960987091064, -0.05722755193710327, 0.24351125955581665, 0.16168595850467682, -0.3068462610244751, -0.2195839285850525, 0.007529212161898613, 0.13316863775253296, -0.12674343585968018, -0.3238581120967865, -0.09372575581073761, 0.03997127711772919, -0.11052872240543365, -0.18980568647384644, 0.029723413288593292, 0.24396568536758423, -0.13213607668876648, 0.04232976213097572, 0.013128288090229034, 0.05714365839958191, 0.04007946699857712, 0.27217718958854675, -0.0328202098608017, -0.14429959654808044, -0.00996054895222187, 0.0465257354080677, -0.06977347284555435, -0.10187990963459015, -0.1238667219877243, 0.2403121292591095, 0.06247856467962265, -0.2173689901828766, 0.31434372067451477, -0.2445399910211563, 0.05390443280339241, 0.14846624433994293, 0.5309240818023682, 0.3925289213657379, -0.18492916226387024, -0.049104705452919006, 0.00995205994695425, 0.2348107248544693, -0.2104186713695526, 0.001887504244223237, -0.016231030225753784, -0.06943677365779877, -0.003174085170030594, 0.10980165004730225, -0.15596874058246613, 0.031043924391269684, 0.022810310125350952, 0.07957172393798828, 0.1721285581588745, 0.021508272737264633, 0.17476396262645721, 0.31140342354774475, 0.003660093992948532, -0.12153053283691406, 0.15637478232383728, 0.06848457455635071, 0.1835615038871765, 0.1623724102973938, -0.4743475317955017, 0.1918402910232544, 0.014994975179433823, -0.08260110020637512, 0.25919651985168457, -0.45217761397361755, -0.3418801426887512, 0.24833737313747406, 0.005576983094215393, 0.06415136158466339, -0.05184493958950043, 0.593359649181366, -0.3439289629459381, -0.17618754506111145, 0.03093245066702366, 0.06458575278520584, -0.16744741797447205, -0.09033113718032837, -0.10905342549085617, -0.15390396118164062, -0.1901974081993103, -0.10730457305908203, -0.07198472321033478, 0.19676755368709564, 0.05669720843434334, -0.0025784894824028015, 0.055355433374643326, -0.36351126432418823, -0.1061842069029808, 0.4395587742328644, 0.039973191916942596, -0.22027777135372162, 0.32904043793678284, 0.5497706532478333, 0.05050479993224144, 0.2770536541938782, 0.418947696685791, 0.6585164666175842, 0.2836868464946747, -0.1108679324388504, 0.20576182007789612, -0.10725408792495728, -0.13651730120182037, 0.24986520409584045, 0.3022420108318329, 0.06438486278057098, 0.2294769436120987, 0.3011277914047241, 0.2583593428134918, -0.14483165740966797, -0.00131123885512352, 0.0453212708234787, 0.06860089302062988, -0.2826193571090698, 0.2380909025669098, -0.4326452612876892, -0.15284450352191925, -0.0962965190410614, -0.14896216988563538, -0.39863890409469604, -0.01176424790173769, 0.33202728629112244, 0.014438772574067116, 0.06327471137046814, 0.007456937804818153, 0.08974136412143707, -0.1905127763748169, 0.454533189535141, 0.45135197043418884, 0.2124728560447693, -0.22982823848724365, -0.28353816270828247, -0.733703076839447, -0.010545983910560608, 0.12947961688041687, 0.09178882092237473, 0.1310998797416687, -0.06909459084272385, 0.2242867350578308, 0.19993752241134644, 0.08689160645008087, -0.016136953607201576, -0.271655410528183, 0.08716981112957001, -0.288891464471817, 0.0029541030526161194, -0.07357688248157501, 0.08299467712640762, -0.11672758311033249, -0.36416947841644287, 0.14447669684886932, -0.1506580114364624, 0.05302836745977402, -0.037196725606918335, 0.157942995429039, -0.28501224517822266, -0.0447249561548233, 0.10379332304000854, 0.149376779794693, 0.5703997611999512, -0.1643160581588745, -0.09529844671487808, -0.0748758614063263, -0.5269312262535095, 0.0917561873793602, 0.20327118039131165, 0.06617790460586548, 0.6200515031814575, 0.04695458710193634, -0.2369932383298874, -0.28296998143196106, 0.47801077365875244, -0.2343083769083023, -0.04829162359237671, -0.43870317935943604, 0.12486857920885086, -0.2072322964668274, -0.062254469841718674, 0.08274466544389725, -0.049120448529720306, 0.035836368799209595, 0.3579895794391632, -0.27271169424057007, -0.4445248544216156, 0.7492799162864685, -0.34488412737846375, -0.2888306975364685, 0.04006735235452652, 0.2385351061820984, 0.26714804768562317, -0.0994754359126091, -0.8630001544952393, 0.2285514771938324, 0.2634724974632263, -0.1605173945426941, -0.2602972388267517, 0.21663810312747955, -0.13724160194396973, -0.010583542287349701, -0.1032000184059143, 0.35539358854293823, 0.02272837609052658, -0.21402519941329956, 0.13330936431884766, -0.34617841243743896 ]
https://github.com/huggingface/datasets/issues/3848
NonMatchingChecksumError when checksum is None
Hi @jxmorris12, thanks for reporting. The objective of `verify_checksums` is to check that both checksums are equal. Therefore if one is None and the other is non-None, they are not equal, and the function accordingly raises a NonMatchingChecksumError. That behavior is expected. The question is: how did you generate the expected checksum? Normally, it should not be None. To properly generate it (it is contained in the `dataset_infos.json` file), you should have runned: https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md ```shell datasets-cli test <your-dataset-folder> --save_infos --all_configs ``` On the other hand, you should take into account that the generation of this file is NOT mandatory for personal/community datasets (we only require it for "canonical" datasets, i.e., datasets added to our library GitHub repository: https://github.com/huggingface/datasets/tree/master/datasets). Therefore, other option would be just to delete the `dataset_infos.json` file. If that file is not present, the function `verify_checksums` is not executed. Finally, you can circumvent the `verify_checksums` function by passing `ignore_verifications=True` to `load_dataset`: ```python load_dataset(..., ignore_verifications=True) ```
I ran into the following error when adding a new dataset: ```bash expected_checksums = {'https://adversarialglue.github.io/dataset/dev.zip': {'checksum': None, 'num_bytes': 40662}} recorded_checksums = {'https://adversarialglue.github.io/dataset/dev.zip': {'checksum': 'efb4cbd3aa4a87bfaffc310ae951981cc0a36c6c71c6425dd74e5b55f2f325c9', 'num_bytes': 40662}} verification_name = 'dataset source files' def verify_checksums(expected_checksums: Optional[dict], recorded_checksums: dict, verification_name=None): if expected_checksums is None: logger.info("Unable to verify checksums.") return if len(set(expected_checksums) - set(recorded_checksums)) > 0: raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums))) if len(set(recorded_checksums) - set(expected_checksums)) > 0: raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums))) bad_urls = [url for url in expected_checksums if expected_checksums[url] != recorded_checksums[url]] for_verification_name = " for " + verification_name if verification_name is not None else "" if len(bad_urls) > 0: error_msg = "Checksums didn't match" + for_verification_name + ":\n" > raise NonMatchingChecksumError(error_msg + str(bad_urls)) E datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: E ['https://adversarialglue.github.io/dataset/dev.zip'] src/datasets/utils/info_utils.py:40: NonMatchingChecksumError ``` ## Expected results The dataset downloads correctly, and there is no error. ## Actual results Datasets library is looking for a checksum of None, and it gets a non-None checksum, and throws an error. This is clearly a bug.
157
NonMatchingChecksumError when checksum is None I ran into the following error when adding a new dataset: ```bash expected_checksums = {'https://adversarialglue.github.io/dataset/dev.zip': {'checksum': None, 'num_bytes': 40662}} recorded_checksums = {'https://adversarialglue.github.io/dataset/dev.zip': {'checksum': 'efb4cbd3aa4a87bfaffc310ae951981cc0a36c6c71c6425dd74e5b55f2f325c9', 'num_bytes': 40662}} verification_name = 'dataset source files' def verify_checksums(expected_checksums: Optional[dict], recorded_checksums: dict, verification_name=None): if expected_checksums is None: logger.info("Unable to verify checksums.") return if len(set(expected_checksums) - set(recorded_checksums)) > 0: raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums))) if len(set(recorded_checksums) - set(expected_checksums)) > 0: raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums))) bad_urls = [url for url in expected_checksums if expected_checksums[url] != recorded_checksums[url]] for_verification_name = " for " + verification_name if verification_name is not None else "" if len(bad_urls) > 0: error_msg = "Checksums didn't match" + for_verification_name + ":\n" > raise NonMatchingChecksumError(error_msg + str(bad_urls)) E datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: E ['https://adversarialglue.github.io/dataset/dev.zip'] src/datasets/utils/info_utils.py:40: NonMatchingChecksumError ``` ## Expected results The dataset downloads correctly, and there is no error. ## Actual results Datasets library is looking for a checksum of None, and it gets a non-None checksum, and throws an error. This is clearly a bug. Hi @jxmorris12, thanks for reporting. The objective of `verify_checksums` is to check that both checksums are equal. Therefore if one is None and the other is non-None, they are not equal, and the function accordingly raises a NonMatchingChecksumError. That behavior is expected. The question is: how did you generate the expected checksum? Normally, it should not be None. To properly generate it (it is contained in the `dataset_infos.json` file), you should have runned: https://github.com/huggingface/datasets/blob/master/ADD_NEW_DATASET.md ```shell datasets-cli test <your-dataset-folder> --save_infos --all_configs ``` On the other hand, you should take into account that the generation of this file is NOT mandatory for personal/community datasets (we only require it for "canonical" datasets, i.e., datasets added to our library GitHub repository: https://github.com/huggingface/datasets/tree/master/datasets). Therefore, other option would be just to delete the `dataset_infos.json` file. If that file is not present, the function `verify_checksums` is not executed. Finally, you can circumvent the `verify_checksums` function by passing `ignore_verifications=True` to `load_dataset`: ```python load_dataset(..., ignore_verifications=True) ```
[ -0.2320745587348938, 0.005118116736412048, -0.0630754828453064, 0.011416986584663391, 0.039370615035295486, -0.0018275007605552673, 0.06372731924057007, 0.21398396790027618, 0.22390511631965637, 0.24077868461608887, 0.2089289128780365, -0.1715058982372284, -0.1793844997882843, -0.16863059997558594, -0.31948986649513245, 0.5820993185043335, 0.009105019271373749, 0.15676382184028625, -0.006325520575046539, -0.11034118384122849, -0.2597428858280182, 0.048444610089063644, -0.0611690878868103, -0.5326396822929382, -0.19205307960510254, 0.2473383992910385, -0.009886311367154121, 0.11497540771961212, -0.12974654138088226, -0.33025264739990234, 0.2777616083621979, 0.12626686692237854, -0.2718392610549927, 0.2832530438899994, -0.00011989539780188352, 0.22091491520404816, 0.2281813770532608, -0.10964035242795944, -0.38994404673576355, -0.13719750940799713, -0.6143534183502197, -0.4995471239089966, -0.33375775814056396, -0.15644150972366333, 0.162965327501297, 0.20581509172916412, -0.02141033671796322, -0.3387086093425751, -0.22934286296367645, 0.11947844177484512, 0.13570614159107208, 0.2888430058956146, -0.04065604880452156, -0.06274885684251785, 0.2102416455745697, 0.05403576046228409, -0.19347000122070312, -0.06336671113967896, 0.266162633895874, 0.0005340622738003731, -0.09127946943044662, 0.1432642936706543, -0.2583862245082855, 0.1313905119895935, 0.1104934960603714, -0.10033243894577026, 0.2735525369644165, -0.07034817337989807, 0.13627728819847107, 0.428672194480896, 0.21230819821357727, -0.04197579622268677, -0.460605263710022, -0.20458847284317017, -0.03515814617276192, -0.2924731969833374, 0.39484894275665283, 0.0946061834692955, -0.19707585871219635, -0.18591943383216858, -0.5737667083740234, 0.17395146191120148, -0.013353832066059113, 0.22117112576961517, 0.22961807250976562, 0.2830679416656494, 0.18891720473766327, -0.03841829299926758, 0.16714805364608765, -0.21397553384304047, -0.019150402396917343, -0.31820008158683777, -0.07747305929660797, 0.11097900569438934, -0.390953928232193, -0.22798596322536469, 0.04949676990509033, 0.4995049834251404, 0.42882153391838074, 0.46841883659362793, 0.12013740092515945, 0.06880264729261398, -0.03666682541370392, 0.16710612177848816, -0.09634613990783691, 0.14009389281272888, 0.11965833604335785, -0.06183801218867302, 0.25016212463378906, 0.17754997313022614, 0.0018885508179664612, 0.15043103694915771, 0.2900313138961792, -0.3045153319835663, 0.39380091428756714, 0.2198646068572998, 0.4815284013748169, -0.34924402832984924, -0.2934838533401489, 0.3594183623790741, -0.044186919927597046, -0.1830991506576538, 0.29433703422546387, 0.20025527477264404, -0.09990548342466354, 0.15275859832763672, -0.23567311465740204, -0.04924153536558151, -0.21584534645080566, 0.013082020916044712, -0.2533990740776062, -0.10177871584892273, -0.06658028066158295, 0.1334945559501648, 0.09933806955814362, 0.019572511315345764, 0.28936854004859924, 0.08659408241510391, 0.13574561476707458, 0.19642509520053864, 0.2705962359905243, -0.2291409820318222, 0.0655129998922348, 0.4084843397140503, -0.1550302803516388, 0.014453457668423653, 0.2092733085155487, -0.1412055790424347, -0.08509982377290726, 0.2924254536628723, -0.1688418686389923, -0.24737633764743805, -0.033758603036403656, 0.2199123203754425, -0.6749250888824463, -0.15246279537677765, 0.22137001156806946, -0.21035589277744293, 0.12875813245773315, -0.19704337418079376, -0.01224711537361145, -0.19194668531417847, -0.2976404130458832, -0.17564143240451813, -0.10625172406435013, 0.44913405179977417, -0.23587583005428314, -0.10236513614654541, -0.15225502848625183, -0.17397531867027283, 0.23589038848876953, 0.10881204903125763, 0.05166661739349365, -0.10431434959173203, -0.31893837451934814, -0.13962841033935547, 0.07393050193786621, -0.23318307101726532, -0.5747232437133789, 0.08576265722513199, -0.058321043848991394, 0.4907505512237549, 0.35213741660118103, 0.3040940463542938, -0.22102542221546173, -0.24288196861743927, 0.12969158589839935, -0.13014043867588043, 0.019632816314697266, -0.06372255086898804, -0.24063456058502197, -0.20536331832408905, 0.4354161024093628, -0.007673019543290138, 0.06482438743114471, -0.011470608413219452, 0.005835823714733124, -0.2087113857269287, 0.1196133941411972, -0.30512362718582153, -0.15531077980995178, 0.19941206276416779, 0.5661743879318237, 0.010295972228050232, -0.0027464095037430525, -0.09663989394903183, -0.40243998169898987, 0.3852774202823639, -0.06353957206010818, 0.1093883365392685, 0.03235867619514465, -0.2544022798538208, 0.07243739068508148, -0.22854354977607727, -0.2381916493177414, 0.1735435128211975, 0.10097728669643402, 0.47107207775115967, 0.13388612866401672, -0.2191174477338791, -0.0861188992857933, 0.07380237430334091, -0.38498228788375854, 0.017177240923047066, -0.2908608317375183, 0.20740669965744019, 0.016656946390867233, -0.048340488225221634, -0.1110701635479927, 0.2855120301246643, 0.16721370816230774, 0.12625494599342346, -0.06327012181282043, 0.35178133845329285, 0.37750282883644104, -0.1725124567747116, 0.1655673235654831, 0.48999595642089844, -0.08784769475460052, -0.10380023717880249, -0.1998688280582428, 0.5207356214523315, 0.11445602029561996, 0.02808091789484024, 0.006209574639797211, 0.4076436161994934, -0.03562716022133827, 0.23926138877868652, 0.09363195300102234, -0.019057393074035645, 0.20324759185314178, -0.36347225308418274, -0.13562937080860138, -0.2988699674606323, 0.35306236147880554, 0.12627212703227997, 0.040040869265794754, 0.1103011965751648, 0.11967490613460541, -0.2106354832649231, 0.08917315304279327, -0.0989118218421936, 0.05660661309957504, -0.030504576861858368, 0.2719112038612366, -0.027062037959694862, -0.08829107880592346, 0.6816490292549133, 0.4652112126350403, 0.28676414489746094, 0.04026028513908386, 0.04511435702443123, -0.1751430779695511, -0.10206866264343262, -0.04059522598981857, 0.010307379066944122, 0.09226177632808685, 0.6847397685050964, -0.03888121619820595, -0.2099471092224121, -0.3830486238002777, -0.38520169258117676, 0.05034317821264267, 0.39302489161491394, -0.39305490255355835, -0.1957712471485138, -0.3480164408683777, 0.2055252492427826, -0.2334984987974167, -0.11228730529546738, -0.3593843877315521, -0.4275899827480316, 0.1473638117313385, 0.030684828758239746, -0.09912800788879395, 0.11423596739768982, -0.5860805511474609, 0.0029741227626800537, -0.06070058047771454, -0.3298614025115967, -0.008156783878803253, -0.008315881714224815, 0.19150647521018982, 0.05546119436621666, 0.48339223861694336, -0.16732876002788544, 0.3184078335762024, -0.14810006320476532, -0.10738982260227203, -0.5216304659843445, -0.38730624318122864, -0.14433248341083527, -0.21473656594753265, 0.05276252329349518, 0.3990144729614258, 0.059415094554424286, 0.09226205945014954, -0.27064770460128784, 0.2820095121860504, 0.07014023512601852, -0.3655961751937866, 0.19090239703655243, -0.14902600646018982, -0.05514366924762726, 0.02858196571469307, 0.004231058061122894, 0.15142427384853363, -0.09678231179714203, -0.18397457897663116, 0.28767481446266174, 0.22252757847309113, 0.3205143213272095, 0.06637360155582428, 0.17335636913776398, 0.05137394741177559, 0.30082768201828003, -0.23549918830394745, -0.5980970859527588, 0.4360553026199341, 0.19566474854946136, 0.015022682026028633, 0.1611696034669876, -0.19420957565307617, 0.12814192473888397, 0.3130413889884949, -0.42804795503616333, -0.5185404419898987, -0.21558129787445068, 0.022595997899770737, 0.16114237904548645, -0.022783854976296425, 0.39314529299736023, 0.12074822187423706, -0.21831372380256653, -0.25320449471473694, -0.22067774832248688, 0.19663327932357788, -0.20125877857208252, 0.5872360467910767, -0.19621598720550537, 0.14743712544441223, 0.024615515023469925, 0.3689994812011719, 0.3948134183883667, -0.0737774670124054, 0.068452849984169, 0.09059451520442963, 0.47917404770851135, 0.1474193036556244, -0.1532067060470581, -0.101193368434906, 0.330464243888855, -0.08016403764486313, -0.05008937418460846, -0.07771006226539612, 0.07486861944198608, -0.0008508414030075073, -0.02208869718015194, -0.1989118456840515, -0.022651270031929016, -0.051298707723617554, -0.2498638927936554, 0.223951518535614, -0.09841026365756989, -0.019263051450252533, -0.15913821756839752, -0.32308870553970337, -0.06592202186584473, 0.2207455337047577, 0.007250756025314331, -0.29651254415512085, -0.5668799877166748, -0.03865760937333107, 0.03783205896615982, 0.5244725942611694, 0.253170371055603, 0.3686521649360657, 0.042387913912534714, -0.32800623774528503, -0.06106109917163849, -0.16755171120166779, 0.3448961079120636, -0.6333204507827759, 0.16738271713256836, 0.02977900207042694, -0.03156152740120888, -0.007738638669252396, -0.036911413073539734, -0.051504720002412796, 0.14981040358543396, 0.21377800405025482, 0.2400820255279541, -0.27377447485923767, 0.09756290167570114, 0.1478801667690277, 0.3227669596672058, -0.0923122763633728, -0.26017311215400696, -0.3763442635536194, -0.18980371952056885, -0.15023553371429443, 0.0883968248963356, -0.3371933400630951, 0.1604493409395218, 0.08652793616056442, -0.021371278911828995, -0.12266096472740173, -0.043108224868774414, 0.5148726105690002, -0.05732940137386322, 0.22689476609230042, 0.15825888514518738, 0.15739820897579193, -0.11338150501251221, -0.005338646471500397, 0.3777965009212494, 0.6421530842781067, -0.3209640383720398, -0.26956453919410706, -0.08666377514600754, -0.02672499045729637, 0.03349301964044571, 0.09251799434423447, 0.11179536581039429, 0.015809670090675354, 0.35592594742774963, 0.09684664011001587, -0.004925954155623913, -0.23008540272712708, 0.21307165920734406, 0.0648937001824379, -0.45569342374801636, -0.11353517323732376, -0.20089301466941833, 0.07210034132003784, 0.08457212150096893, 0.2786328196525574, 0.28909969329833984, -0.06362234055995941, 0.09518032521009445, 0.2202221155166626, 0.8011022210121155, 0.1242741197347641, -0.036569248884916306, -0.062439098954200745, -0.0014630742371082306, 0.03758231922984123, 0.10658836364746094, 0.12538020312786102, -0.13032910227775574, -0.4374608099460602, -0.10809469223022461, -0.2783319056034088, 0.49085569381713867, 0.12762895226478577, -0.14130929112434387, 0.2933642566204071, -0.06447111070156097, 0.3546549081802368, -0.010078374296426773, 0.20463570952415466, -0.36797380447387695, 0.06514856219291687, -0.020723741501569748, 0.15993456542491913, -0.02281232178211212, 0.12381923198699951, -0.020524457097053528, 0.11804332584142685, 0.014593508094549179, -0.3763992190361023, -0.2816399931907654, 0.10851217061281204, -0.06534059345722198, 0.0890640839934349, 0.3106710612773895, -0.10534852743148804, -0.20858320593833923, 0.2334529161453247, 0.26096129417419434, 0.3375813663005829, -0.16440898180007935, 0.09134781360626221, 0.2593589127063751, 0.259909987449646, 0.061164677143096924, -0.31759917736053467, 0.35325002670288086, 0.02409978210926056, -0.29725906252861023, 0.2487800121307373, 0.030201051384210587, -0.4848251938819885, 0.1692434847354889, -0.136858731508255, -0.16547144949436188, -0.2104646861553192, -0.1602783501148224, 0.062411729246377945, 0.04421829804778099, -0.28237277269363403, 0.11966875195503235, 0.2428828477859497, -0.31982600688934326, 0.20434752106666565, -0.15699753165245056, -0.24034342169761658, -0.005552772432565689, 0.4269404709339142, 0.40654054284095764, -0.09888379275798798, 0.37621447443962097, -0.38216739892959595, -0.22918035089969635, -0.2479916512966156, 0.01707889884710312, -0.10175681859254837, -0.1905539184808731, 0.0740719884634018, 0.04950860142707825, 0.26455628871917725, 0.2278960794210434, 0.244186669588089, 0.1665794849395752, 0.47384172677993774, -0.04577244445681572, -0.3763848841190338, -0.053423717617988586, -0.08264963328838348, 0.2334587275981903, 0.42153042554855347, -0.2821716368198395, -0.18039092421531677, -0.044413454830646515, -0.03153277933597565, -0.29774749279022217, -0.07468335330486298, -0.3243952691555023, -0.059907831251621246, -0.1409199982881546, 0.0639471560716629, 0.30647948384284973, -0.08258338272571564, 0.20522738993167877, -0.13043135404586792, -0.20224960148334503, -0.16480222344398499, -0.09059327840805054, 0.13762551546096802, 0.18850386142730713, 0.005921777803450823, 0.0722658708691597, -0.18651850521564484, 0.09132790565490723, -0.016065679490566254, 0.06805576384067535, 0.3391928970813751, -0.1600762903690338, 0.1458011418581009, 0.28497523069381714, -0.12647756934165955, 0.08266924321651459, -0.25608500838279724, -0.38774681091308594, -0.09620922803878784, 0.23333874344825745, -0.010919936001300812, -0.05864962562918663, 0.012585557997226715, 0.2005608230829239, 0.19255715608596802, 0.08982706069946289, -0.06311661750078201, 0.18071243166923523, -0.218373104929924, -0.21965932846069336, 0.42327842116355896, 0.19264079630374908, 0.1697726845741272, -0.2186434268951416, -0.028612565249204636, 0.1693209409713745, 0.2163846790790558, -0.40292617678642273, -0.20504304766654968, 0.28028571605682373, 0.10121805965900421, 0.3805212378501892, 0.15413129329681396, 0.015205342322587967, -0.40942516922950745, 0.5462414026260376, -0.028721319511532784, -0.004105331841856241, -0.36619454622268677, 0.32029154896736145, 0.49968764185905457, -0.05371610447764397, -0.1847577542066574, 0.01328930165618658, -0.32119372487068176, 0.12194997817277908, -0.13025560975074768, -0.06897718459367752, 0.5694171786308289, -0.3159571886062622, 0.15160317718982697, -0.40421056747436523, -0.5119750499725342, 0.5467656254768372, 0.1848156899213791, 0.11302629113197327, 0.03093881532549858, 0.15171334147453308, 0.20659971237182617, -0.025727413594722748, 0.41391515731811523, -0.45771706104278564, -0.08956733345985413, -0.09332986921072006, -0.07105095684528351, -0.2222214788198471, -0.24065187573432922, 0.009142190217971802, 0.059295061975717545, 0.14736703038215637, -0.13376249372959137, -0.04074546694755554, -0.04385938495397568, -0.03085535764694214, -0.06307476758956909, 0.15591317415237427, 0.08281062543392181, -0.03764776140451431, -0.2980404198169708, 0.1337958574295044, 0.4297821521759033, 0.08977489173412323, 0.25549182295799255, 0.41572555899620056, 0.49689996242523193, 0.3486098051071167, 0.2711160182952881, 0.1393643021583557, -0.002173919230699539, 0.0014643054455518723, -0.08001770079135895, 0.6884092092514038, -0.12299448251724243, -0.04142291471362114, 0.3877682387828827, 0.12004262208938599, -0.17365436255931854, 0.036095406860113144, -0.2044166773557663, -0.2850836515426636, 0.06841889023780823, 0.5215967297554016, 0.3775181174278259, 0.389662504196167, -0.10746926069259644, 0.17342522740364075, -0.3604956865310669, -0.6644583940505981, 0.2723970115184784, -0.039918672293424606, 0.08988811075687408, 0.08151566982269287, 0.09151585400104523, -0.30569177865982056, 0.18595319986343384, 0.24576817452907562, -0.21112695336341858, -0.3734826147556305, -0.17072606086730957, -0.7457854151725769, 0.3200780749320984, -0.35834836959838867, -0.05078306794166565, -0.26590046286582947, 0.25105175375938416, -0.030854225158691406, 0.01386493630707264, 0.2666723430156708, -0.15246659517288208, -0.15856440365314484, -0.11062437295913696, -0.11170507967472076, 0.09013845771551132, 0.07000218331813812, -0.36137157678604126, -0.054426159709692, -0.3773026168346405, 0.048880062997341156, 0.3439193367958069, 0.12099038809537888, 0.18714095652103424, 0.027043260633945465, -0.16554394364356995, 0.3364656865596771, -0.00940655916929245, 0.12093387544155121, 0.6406881809234619, -0.09010769426822662, -0.13226492702960968, -0.16507959365844727, -0.0010691112838685513, -0.1959172487258911, 0.25546348094940186, 0.08805049955844879, 0.32298970222473145, -0.06096489727497101, 0.11847147345542908, -0.011399681679904461, 0.4154302179813385, 0.062269702553749084, -0.3943665325641632, -0.14481067657470703, 0.3595021963119507, -0.1680120825767517, 0.19356480240821838, -0.1367383599281311, -0.16012194752693176, 0.26854246854782104, 0.3416759669780731, -0.15524034202098846, -0.15767046809196472, 0.5508440732955933, -0.007709117606282234, 0.13254569470882416, -0.2604152262210846, 0.3451995849609375, -0.3007701635360718, -0.07759362459182739, -0.5198216438293457, -0.059933263808488846, 0.48459142446517944, 0.191095232963562, -0.05741775035858154, 0.17890320718288422, -0.3573935329914093, 0.16563525795936584, 0.003932986408472061, -0.19582948088645935, -0.07029557228088379, -0.19738425314426422, 0.008697260171175003, -0.1751287430524826 ]
https://github.com/huggingface/datasets/issues/3848
NonMatchingChecksumError when checksum is None
Thanks @albertvillanova! That's fine. I did run that command when I was adding a new dataset. Maybe because the command crashed in the middle, the checksum wasn't stored properly. I don't know where the bug is happening. But either (i) `verify_checksums` should properly handle this edge case, where the passed checksum is None or (ii) the `datasets-cli test` shouldn't generate a corrupted dataset_infos.json file. Just a more high-level thing, I was trying to follow the instructions for adding a dataset in the CONTRIBUTING.md, so if running that command isn't even necessary, that should probably be mentioned in the document, right? But that's somewhat of a moot point, since something isn't working quite right internally if I was able to get into this corrupted state in the first place, just by following those instructions.
I ran into the following error when adding a new dataset: ```bash expected_checksums = {'https://adversarialglue.github.io/dataset/dev.zip': {'checksum': None, 'num_bytes': 40662}} recorded_checksums = {'https://adversarialglue.github.io/dataset/dev.zip': {'checksum': 'efb4cbd3aa4a87bfaffc310ae951981cc0a36c6c71c6425dd74e5b55f2f325c9', 'num_bytes': 40662}} verification_name = 'dataset source files' def verify_checksums(expected_checksums: Optional[dict], recorded_checksums: dict, verification_name=None): if expected_checksums is None: logger.info("Unable to verify checksums.") return if len(set(expected_checksums) - set(recorded_checksums)) > 0: raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums))) if len(set(recorded_checksums) - set(expected_checksums)) > 0: raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums))) bad_urls = [url for url in expected_checksums if expected_checksums[url] != recorded_checksums[url]] for_verification_name = " for " + verification_name if verification_name is not None else "" if len(bad_urls) > 0: error_msg = "Checksums didn't match" + for_verification_name + ":\n" > raise NonMatchingChecksumError(error_msg + str(bad_urls)) E datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: E ['https://adversarialglue.github.io/dataset/dev.zip'] src/datasets/utils/info_utils.py:40: NonMatchingChecksumError ``` ## Expected results The dataset downloads correctly, and there is no error. ## Actual results Datasets library is looking for a checksum of None, and it gets a non-None checksum, and throws an error. This is clearly a bug.
133
NonMatchingChecksumError when checksum is None I ran into the following error when adding a new dataset: ```bash expected_checksums = {'https://adversarialglue.github.io/dataset/dev.zip': {'checksum': None, 'num_bytes': 40662}} recorded_checksums = {'https://adversarialglue.github.io/dataset/dev.zip': {'checksum': 'efb4cbd3aa4a87bfaffc310ae951981cc0a36c6c71c6425dd74e5b55f2f325c9', 'num_bytes': 40662}} verification_name = 'dataset source files' def verify_checksums(expected_checksums: Optional[dict], recorded_checksums: dict, verification_name=None): if expected_checksums is None: logger.info("Unable to verify checksums.") return if len(set(expected_checksums) - set(recorded_checksums)) > 0: raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums))) if len(set(recorded_checksums) - set(expected_checksums)) > 0: raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums))) bad_urls = [url for url in expected_checksums if expected_checksums[url] != recorded_checksums[url]] for_verification_name = " for " + verification_name if verification_name is not None else "" if len(bad_urls) > 0: error_msg = "Checksums didn't match" + for_verification_name + ":\n" > raise NonMatchingChecksumError(error_msg + str(bad_urls)) E datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: E ['https://adversarialglue.github.io/dataset/dev.zip'] src/datasets/utils/info_utils.py:40: NonMatchingChecksumError ``` ## Expected results The dataset downloads correctly, and there is no error. ## Actual results Datasets library is looking for a checksum of None, and it gets a non-None checksum, and throws an error. This is clearly a bug. Thanks @albertvillanova! That's fine. I did run that command when I was adding a new dataset. Maybe because the command crashed in the middle, the checksum wasn't stored properly. I don't know where the bug is happening. But either (i) `verify_checksums` should properly handle this edge case, where the passed checksum is None or (ii) the `datasets-cli test` shouldn't generate a corrupted dataset_infos.json file. Just a more high-level thing, I was trying to follow the instructions for adding a dataset in the CONTRIBUTING.md, so if running that command isn't even necessary, that should probably be mentioned in the document, right? But that's somewhat of a moot point, since something isn't working quite right internally if I was able to get into this corrupted state in the first place, just by following those instructions.
[ -0.2320745587348938, 0.005118116736412048, -0.0630754828453064, 0.011416986584663391, 0.039370615035295486, -0.0018275007605552673, 0.06372731924057007, 0.21398396790027618, 0.22390511631965637, 0.24077868461608887, 0.2089289128780365, -0.1715058982372284, -0.1793844997882843, -0.16863059997558594, -0.31948986649513245, 0.5820993185043335, 0.009105019271373749, 0.15676382184028625, -0.006325520575046539, -0.11034118384122849, -0.2597428858280182, 0.048444610089063644, -0.0611690878868103, -0.5326396822929382, -0.19205307960510254, 0.2473383992910385, -0.009886311367154121, 0.11497540771961212, -0.12974654138088226, -0.33025264739990234, 0.2777616083621979, 0.12626686692237854, -0.2718392610549927, 0.2832530438899994, -0.00011989539780188352, 0.22091491520404816, 0.2281813770532608, -0.10964035242795944, -0.38994404673576355, -0.13719750940799713, -0.6143534183502197, -0.4995471239089966, -0.33375775814056396, -0.15644150972366333, 0.162965327501297, 0.20581509172916412, -0.02141033671796322, -0.3387086093425751, -0.22934286296367645, 0.11947844177484512, 0.13570614159107208, 0.2888430058956146, -0.04065604880452156, -0.06274885684251785, 0.2102416455745697, 0.05403576046228409, -0.19347000122070312, -0.06336671113967896, 0.266162633895874, 0.0005340622738003731, -0.09127946943044662, 0.1432642936706543, -0.2583862245082855, 0.1313905119895935, 0.1104934960603714, -0.10033243894577026, 0.2735525369644165, -0.07034817337989807, 0.13627728819847107, 0.428672194480896, 0.21230819821357727, -0.04197579622268677, -0.460605263710022, -0.20458847284317017, -0.03515814617276192, -0.2924731969833374, 0.39484894275665283, 0.0946061834692955, -0.19707585871219635, -0.18591943383216858, -0.5737667083740234, 0.17395146191120148, -0.013353832066059113, 0.22117112576961517, 0.22961807250976562, 0.2830679416656494, 0.18891720473766327, -0.03841829299926758, 0.16714805364608765, -0.21397553384304047, -0.019150402396917343, -0.31820008158683777, -0.07747305929660797, 0.11097900569438934, -0.390953928232193, -0.22798596322536469, 0.04949676990509033, 0.4995049834251404, 0.42882153391838074, 0.46841883659362793, 0.12013740092515945, 0.06880264729261398, -0.03666682541370392, 0.16710612177848816, -0.09634613990783691, 0.14009389281272888, 0.11965833604335785, -0.06183801218867302, 0.25016212463378906, 0.17754997313022614, 0.0018885508179664612, 0.15043103694915771, 0.2900313138961792, -0.3045153319835663, 0.39380091428756714, 0.2198646068572998, 0.4815284013748169, -0.34924402832984924, -0.2934838533401489, 0.3594183623790741, -0.044186919927597046, -0.1830991506576538, 0.29433703422546387, 0.20025527477264404, -0.09990548342466354, 0.15275859832763672, -0.23567311465740204, -0.04924153536558151, -0.21584534645080566, 0.013082020916044712, -0.2533990740776062, -0.10177871584892273, -0.06658028066158295, 0.1334945559501648, 0.09933806955814362, 0.019572511315345764, 0.28936854004859924, 0.08659408241510391, 0.13574561476707458, 0.19642509520053864, 0.2705962359905243, -0.2291409820318222, 0.0655129998922348, 0.4084843397140503, -0.1550302803516388, 0.014453457668423653, 0.2092733085155487, -0.1412055790424347, -0.08509982377290726, 0.2924254536628723, -0.1688418686389923, -0.24737633764743805, -0.033758603036403656, 0.2199123203754425, -0.6749250888824463, -0.15246279537677765, 0.22137001156806946, -0.21035589277744293, 0.12875813245773315, -0.19704337418079376, -0.01224711537361145, -0.19194668531417847, -0.2976404130458832, -0.17564143240451813, -0.10625172406435013, 0.44913405179977417, -0.23587583005428314, -0.10236513614654541, -0.15225502848625183, -0.17397531867027283, 0.23589038848876953, 0.10881204903125763, 0.05166661739349365, -0.10431434959173203, -0.31893837451934814, -0.13962841033935547, 0.07393050193786621, -0.23318307101726532, -0.5747232437133789, 0.08576265722513199, -0.058321043848991394, 0.4907505512237549, 0.35213741660118103, 0.3040940463542938, -0.22102542221546173, -0.24288196861743927, 0.12969158589839935, -0.13014043867588043, 0.019632816314697266, -0.06372255086898804, -0.24063456058502197, -0.20536331832408905, 0.4354161024093628, -0.007673019543290138, 0.06482438743114471, -0.011470608413219452, 0.005835823714733124, -0.2087113857269287, 0.1196133941411972, -0.30512362718582153, -0.15531077980995178, 0.19941206276416779, 0.5661743879318237, 0.010295972228050232, -0.0027464095037430525, -0.09663989394903183, -0.40243998169898987, 0.3852774202823639, -0.06353957206010818, 0.1093883365392685, 0.03235867619514465, -0.2544022798538208, 0.07243739068508148, -0.22854354977607727, -0.2381916493177414, 0.1735435128211975, 0.10097728669643402, 0.47107207775115967, 0.13388612866401672, -0.2191174477338791, -0.0861188992857933, 0.07380237430334091, -0.38498228788375854, 0.017177240923047066, -0.2908608317375183, 0.20740669965744019, 0.016656946390867233, -0.048340488225221634, -0.1110701635479927, 0.2855120301246643, 0.16721370816230774, 0.12625494599342346, -0.06327012181282043, 0.35178133845329285, 0.37750282883644104, -0.1725124567747116, 0.1655673235654831, 0.48999595642089844, -0.08784769475460052, -0.10380023717880249, -0.1998688280582428, 0.5207356214523315, 0.11445602029561996, 0.02808091789484024, 0.006209574639797211, 0.4076436161994934, -0.03562716022133827, 0.23926138877868652, 0.09363195300102234, -0.019057393074035645, 0.20324759185314178, -0.36347225308418274, -0.13562937080860138, -0.2988699674606323, 0.35306236147880554, 0.12627212703227997, 0.040040869265794754, 0.1103011965751648, 0.11967490613460541, -0.2106354832649231, 0.08917315304279327, -0.0989118218421936, 0.05660661309957504, -0.030504576861858368, 0.2719112038612366, -0.027062037959694862, -0.08829107880592346, 0.6816490292549133, 0.4652112126350403, 0.28676414489746094, 0.04026028513908386, 0.04511435702443123, -0.1751430779695511, -0.10206866264343262, -0.04059522598981857, 0.010307379066944122, 0.09226177632808685, 0.6847397685050964, -0.03888121619820595, -0.2099471092224121, -0.3830486238002777, -0.38520169258117676, 0.05034317821264267, 0.39302489161491394, -0.39305490255355835, -0.1957712471485138, -0.3480164408683777, 0.2055252492427826, -0.2334984987974167, -0.11228730529546738, -0.3593843877315521, -0.4275899827480316, 0.1473638117313385, 0.030684828758239746, -0.09912800788879395, 0.11423596739768982, -0.5860805511474609, 0.0029741227626800537, -0.06070058047771454, -0.3298614025115967, -0.008156783878803253, -0.008315881714224815, 0.19150647521018982, 0.05546119436621666, 0.48339223861694336, -0.16732876002788544, 0.3184078335762024, -0.14810006320476532, -0.10738982260227203, -0.5216304659843445, -0.38730624318122864, -0.14433248341083527, -0.21473656594753265, 0.05276252329349518, 0.3990144729614258, 0.059415094554424286, 0.09226205945014954, -0.27064770460128784, 0.2820095121860504, 0.07014023512601852, -0.3655961751937866, 0.19090239703655243, -0.14902600646018982, -0.05514366924762726, 0.02858196571469307, 0.004231058061122894, 0.15142427384853363, -0.09678231179714203, -0.18397457897663116, 0.28767481446266174, 0.22252757847309113, 0.3205143213272095, 0.06637360155582428, 0.17335636913776398, 0.05137394741177559, 0.30082768201828003, -0.23549918830394745, -0.5980970859527588, 0.4360553026199341, 0.19566474854946136, 0.015022682026028633, 0.1611696034669876, -0.19420957565307617, 0.12814192473888397, 0.3130413889884949, -0.42804795503616333, -0.5185404419898987, -0.21558129787445068, 0.022595997899770737, 0.16114237904548645, -0.022783854976296425, 0.39314529299736023, 0.12074822187423706, -0.21831372380256653, -0.25320449471473694, -0.22067774832248688, 0.19663327932357788, -0.20125877857208252, 0.5872360467910767, -0.19621598720550537, 0.14743712544441223, 0.024615515023469925, 0.3689994812011719, 0.3948134183883667, -0.0737774670124054, 0.068452849984169, 0.09059451520442963, 0.47917404770851135, 0.1474193036556244, -0.1532067060470581, -0.101193368434906, 0.330464243888855, -0.08016403764486313, -0.05008937418460846, -0.07771006226539612, 0.07486861944198608, -0.0008508414030075073, -0.02208869718015194, -0.1989118456840515, -0.022651270031929016, -0.051298707723617554, -0.2498638927936554, 0.223951518535614, -0.09841026365756989, -0.019263051450252533, -0.15913821756839752, -0.32308870553970337, -0.06592202186584473, 0.2207455337047577, 0.007250756025314331, -0.29651254415512085, -0.5668799877166748, -0.03865760937333107, 0.03783205896615982, 0.5244725942611694, 0.253170371055603, 0.3686521649360657, 0.042387913912534714, -0.32800623774528503, -0.06106109917163849, -0.16755171120166779, 0.3448961079120636, -0.6333204507827759, 0.16738271713256836, 0.02977900207042694, -0.03156152740120888, -0.007738638669252396, -0.036911413073539734, -0.051504720002412796, 0.14981040358543396, 0.21377800405025482, 0.2400820255279541, -0.27377447485923767, 0.09756290167570114, 0.1478801667690277, 0.3227669596672058, -0.0923122763633728, -0.26017311215400696, -0.3763442635536194, -0.18980371952056885, -0.15023553371429443, 0.0883968248963356, -0.3371933400630951, 0.1604493409395218, 0.08652793616056442, -0.021371278911828995, -0.12266096472740173, -0.043108224868774414, 0.5148726105690002, -0.05732940137386322, 0.22689476609230042, 0.15825888514518738, 0.15739820897579193, -0.11338150501251221, -0.005338646471500397, 0.3777965009212494, 0.6421530842781067, -0.3209640383720398, -0.26956453919410706, -0.08666377514600754, -0.02672499045729637, 0.03349301964044571, 0.09251799434423447, 0.11179536581039429, 0.015809670090675354, 0.35592594742774963, 0.09684664011001587, -0.004925954155623913, -0.23008540272712708, 0.21307165920734406, 0.0648937001824379, -0.45569342374801636, -0.11353517323732376, -0.20089301466941833, 0.07210034132003784, 0.08457212150096893, 0.2786328196525574, 0.28909969329833984, -0.06362234055995941, 0.09518032521009445, 0.2202221155166626, 0.8011022210121155, 0.1242741197347641, -0.036569248884916306, -0.062439098954200745, -0.0014630742371082306, 0.03758231922984123, 0.10658836364746094, 0.12538020312786102, -0.13032910227775574, -0.4374608099460602, -0.10809469223022461, -0.2783319056034088, 0.49085569381713867, 0.12762895226478577, -0.14130929112434387, 0.2933642566204071, -0.06447111070156097, 0.3546549081802368, -0.010078374296426773, 0.20463570952415466, -0.36797380447387695, 0.06514856219291687, -0.020723741501569748, 0.15993456542491913, -0.02281232178211212, 0.12381923198699951, -0.020524457097053528, 0.11804332584142685, 0.014593508094549179, -0.3763992190361023, -0.2816399931907654, 0.10851217061281204, -0.06534059345722198, 0.0890640839934349, 0.3106710612773895, -0.10534852743148804, -0.20858320593833923, 0.2334529161453247, 0.26096129417419434, 0.3375813663005829, -0.16440898180007935, 0.09134781360626221, 0.2593589127063751, 0.259909987449646, 0.061164677143096924, -0.31759917736053467, 0.35325002670288086, 0.02409978210926056, -0.29725906252861023, 0.2487800121307373, 0.030201051384210587, -0.4848251938819885, 0.1692434847354889, -0.136858731508255, -0.16547144949436188, -0.2104646861553192, -0.1602783501148224, 0.062411729246377945, 0.04421829804778099, -0.28237277269363403, 0.11966875195503235, 0.2428828477859497, -0.31982600688934326, 0.20434752106666565, -0.15699753165245056, -0.24034342169761658, -0.005552772432565689, 0.4269404709339142, 0.40654054284095764, -0.09888379275798798, 0.37621447443962097, -0.38216739892959595, -0.22918035089969635, -0.2479916512966156, 0.01707889884710312, -0.10175681859254837, -0.1905539184808731, 0.0740719884634018, 0.04950860142707825, 0.26455628871917725, 0.2278960794210434, 0.244186669588089, 0.1665794849395752, 0.47384172677993774, -0.04577244445681572, -0.3763848841190338, -0.053423717617988586, -0.08264963328838348, 0.2334587275981903, 0.42153042554855347, -0.2821716368198395, -0.18039092421531677, -0.044413454830646515, -0.03153277933597565, -0.29774749279022217, -0.07468335330486298, -0.3243952691555023, -0.059907831251621246, -0.1409199982881546, 0.0639471560716629, 0.30647948384284973, -0.08258338272571564, 0.20522738993167877, -0.13043135404586792, -0.20224960148334503, -0.16480222344398499, -0.09059327840805054, 0.13762551546096802, 0.18850386142730713, 0.005921777803450823, 0.0722658708691597, -0.18651850521564484, 0.09132790565490723, -0.016065679490566254, 0.06805576384067535, 0.3391928970813751, -0.1600762903690338, 0.1458011418581009, 0.28497523069381714, -0.12647756934165955, 0.08266924321651459, -0.25608500838279724, -0.38774681091308594, -0.09620922803878784, 0.23333874344825745, -0.010919936001300812, -0.05864962562918663, 0.012585557997226715, 0.2005608230829239, 0.19255715608596802, 0.08982706069946289, -0.06311661750078201, 0.18071243166923523, -0.218373104929924, -0.21965932846069336, 0.42327842116355896, 0.19264079630374908, 0.1697726845741272, -0.2186434268951416, -0.028612565249204636, 0.1693209409713745, 0.2163846790790558, -0.40292617678642273, -0.20504304766654968, 0.28028571605682373, 0.10121805965900421, 0.3805212378501892, 0.15413129329681396, 0.015205342322587967, -0.40942516922950745, 0.5462414026260376, -0.028721319511532784, -0.004105331841856241, -0.36619454622268677, 0.32029154896736145, 0.49968764185905457, -0.05371610447764397, -0.1847577542066574, 0.01328930165618658, -0.32119372487068176, 0.12194997817277908, -0.13025560975074768, -0.06897718459367752, 0.5694171786308289, -0.3159571886062622, 0.15160317718982697, -0.40421056747436523, -0.5119750499725342, 0.5467656254768372, 0.1848156899213791, 0.11302629113197327, 0.03093881532549858, 0.15171334147453308, 0.20659971237182617, -0.025727413594722748, 0.41391515731811523, -0.45771706104278564, -0.08956733345985413, -0.09332986921072006, -0.07105095684528351, -0.2222214788198471, -0.24065187573432922, 0.009142190217971802, 0.059295061975717545, 0.14736703038215637, -0.13376249372959137, -0.04074546694755554, -0.04385938495397568, -0.03085535764694214, -0.06307476758956909, 0.15591317415237427, 0.08281062543392181, -0.03764776140451431, -0.2980404198169708, 0.1337958574295044, 0.4297821521759033, 0.08977489173412323, 0.25549182295799255, 0.41572555899620056, 0.49689996242523193, 0.3486098051071167, 0.2711160182952881, 0.1393643021583557, -0.002173919230699539, 0.0014643054455518723, -0.08001770079135895, 0.6884092092514038, -0.12299448251724243, -0.04142291471362114, 0.3877682387828827, 0.12004262208938599, -0.17365436255931854, 0.036095406860113144, -0.2044166773557663, -0.2850836515426636, 0.06841889023780823, 0.5215967297554016, 0.3775181174278259, 0.389662504196167, -0.10746926069259644, 0.17342522740364075, -0.3604956865310669, -0.6644583940505981, 0.2723970115184784, -0.039918672293424606, 0.08988811075687408, 0.08151566982269287, 0.09151585400104523, -0.30569177865982056, 0.18595319986343384, 0.24576817452907562, -0.21112695336341858, -0.3734826147556305, -0.17072606086730957, -0.7457854151725769, 0.3200780749320984, -0.35834836959838867, -0.05078306794166565, -0.26590046286582947, 0.25105175375938416, -0.030854225158691406, 0.01386493630707264, 0.2666723430156708, -0.15246659517288208, -0.15856440365314484, -0.11062437295913696, -0.11170507967472076, 0.09013845771551132, 0.07000218331813812, -0.36137157678604126, -0.054426159709692, -0.3773026168346405, 0.048880062997341156, 0.3439193367958069, 0.12099038809537888, 0.18714095652103424, 0.027043260633945465, -0.16554394364356995, 0.3364656865596771, -0.00940655916929245, 0.12093387544155121, 0.6406881809234619, -0.09010769426822662, -0.13226492702960968, -0.16507959365844727, -0.0010691112838685513, -0.1959172487258911, 0.25546348094940186, 0.08805049955844879, 0.32298970222473145, -0.06096489727497101, 0.11847147345542908, -0.011399681679904461, 0.4154302179813385, 0.062269702553749084, -0.3943665325641632, -0.14481067657470703, 0.3595021963119507, -0.1680120825767517, 0.19356480240821838, -0.1367383599281311, -0.16012194752693176, 0.26854246854782104, 0.3416759669780731, -0.15524034202098846, -0.15767046809196472, 0.5508440732955933, -0.007709117606282234, 0.13254569470882416, -0.2604152262210846, 0.3451995849609375, -0.3007701635360718, -0.07759362459182739, -0.5198216438293457, -0.059933263808488846, 0.48459142446517944, 0.191095232963562, -0.05741775035858154, 0.17890320718288422, -0.3573935329914093, 0.16563525795936584, 0.003932986408472061, -0.19582948088645935, -0.07029557228088379, -0.19738425314426422, 0.008697260171175003, -0.1751287430524826 ]
https://github.com/huggingface/datasets/issues/3848
NonMatchingChecksumError when checksum is None
Hi @jxmorris12, Definitely, your `dataset_infos.json` was corrupted (and wrongly contains expected None checksum). While we further investigate how this can happen and fix it, feel free to delete your `dataset_infos.json` file and recreate it with: ```shell datasets-cli test <your-dataset-folder> --save_infos --all_configs ``` Also note that `verify_checksum` is working as expected: if it receives a None and and a non-None checksums as input pair, it must raise an exception: they are not equal. That is not a bug.
I ran into the following error when adding a new dataset: ```bash expected_checksums = {'https://adversarialglue.github.io/dataset/dev.zip': {'checksum': None, 'num_bytes': 40662}} recorded_checksums = {'https://adversarialglue.github.io/dataset/dev.zip': {'checksum': 'efb4cbd3aa4a87bfaffc310ae951981cc0a36c6c71c6425dd74e5b55f2f325c9', 'num_bytes': 40662}} verification_name = 'dataset source files' def verify_checksums(expected_checksums: Optional[dict], recorded_checksums: dict, verification_name=None): if expected_checksums is None: logger.info("Unable to verify checksums.") return if len(set(expected_checksums) - set(recorded_checksums)) > 0: raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums))) if len(set(recorded_checksums) - set(expected_checksums)) > 0: raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums))) bad_urls = [url for url in expected_checksums if expected_checksums[url] != recorded_checksums[url]] for_verification_name = " for " + verification_name if verification_name is not None else "" if len(bad_urls) > 0: error_msg = "Checksums didn't match" + for_verification_name + ":\n" > raise NonMatchingChecksumError(error_msg + str(bad_urls)) E datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: E ['https://adversarialglue.github.io/dataset/dev.zip'] src/datasets/utils/info_utils.py:40: NonMatchingChecksumError ``` ## Expected results The dataset downloads correctly, and there is no error. ## Actual results Datasets library is looking for a checksum of None, and it gets a non-None checksum, and throws an error. This is clearly a bug.
77
NonMatchingChecksumError when checksum is None I ran into the following error when adding a new dataset: ```bash expected_checksums = {'https://adversarialglue.github.io/dataset/dev.zip': {'checksum': None, 'num_bytes': 40662}} recorded_checksums = {'https://adversarialglue.github.io/dataset/dev.zip': {'checksum': 'efb4cbd3aa4a87bfaffc310ae951981cc0a36c6c71c6425dd74e5b55f2f325c9', 'num_bytes': 40662}} verification_name = 'dataset source files' def verify_checksums(expected_checksums: Optional[dict], recorded_checksums: dict, verification_name=None): if expected_checksums is None: logger.info("Unable to verify checksums.") return if len(set(expected_checksums) - set(recorded_checksums)) > 0: raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums))) if len(set(recorded_checksums) - set(expected_checksums)) > 0: raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums))) bad_urls = [url for url in expected_checksums if expected_checksums[url] != recorded_checksums[url]] for_verification_name = " for " + verification_name if verification_name is not None else "" if len(bad_urls) > 0: error_msg = "Checksums didn't match" + for_verification_name + ":\n" > raise NonMatchingChecksumError(error_msg + str(bad_urls)) E datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: E ['https://adversarialglue.github.io/dataset/dev.zip'] src/datasets/utils/info_utils.py:40: NonMatchingChecksumError ``` ## Expected results The dataset downloads correctly, and there is no error. ## Actual results Datasets library is looking for a checksum of None, and it gets a non-None checksum, and throws an error. This is clearly a bug. Hi @jxmorris12, Definitely, your `dataset_infos.json` was corrupted (and wrongly contains expected None checksum). While we further investigate how this can happen and fix it, feel free to delete your `dataset_infos.json` file and recreate it with: ```shell datasets-cli test <your-dataset-folder> --save_infos --all_configs ``` Also note that `verify_checksum` is working as expected: if it receives a None and and a non-None checksums as input pair, it must raise an exception: they are not equal. That is not a bug.
[ -0.2320745587348938, 0.005118116736412048, -0.0630754828453064, 0.011416986584663391, 0.039370615035295486, -0.0018275007605552673, 0.06372731924057007, 0.21398396790027618, 0.22390511631965637, 0.24077868461608887, 0.2089289128780365, -0.1715058982372284, -0.1793844997882843, -0.16863059997558594, -0.31948986649513245, 0.5820993185043335, 0.009105019271373749, 0.15676382184028625, -0.006325520575046539, -0.11034118384122849, -0.2597428858280182, 0.048444610089063644, -0.0611690878868103, -0.5326396822929382, -0.19205307960510254, 0.2473383992910385, -0.009886311367154121, 0.11497540771961212, -0.12974654138088226, -0.33025264739990234, 0.2777616083621979, 0.12626686692237854, -0.2718392610549927, 0.2832530438899994, -0.00011989539780188352, 0.22091491520404816, 0.2281813770532608, -0.10964035242795944, -0.38994404673576355, -0.13719750940799713, -0.6143534183502197, -0.4995471239089966, -0.33375775814056396, -0.15644150972366333, 0.162965327501297, 0.20581509172916412, -0.02141033671796322, -0.3387086093425751, -0.22934286296367645, 0.11947844177484512, 0.13570614159107208, 0.2888430058956146, -0.04065604880452156, -0.06274885684251785, 0.2102416455745697, 0.05403576046228409, -0.19347000122070312, -0.06336671113967896, 0.266162633895874, 0.0005340622738003731, -0.09127946943044662, 0.1432642936706543, -0.2583862245082855, 0.1313905119895935, 0.1104934960603714, -0.10033243894577026, 0.2735525369644165, -0.07034817337989807, 0.13627728819847107, 0.428672194480896, 0.21230819821357727, -0.04197579622268677, -0.460605263710022, -0.20458847284317017, -0.03515814617276192, -0.2924731969833374, 0.39484894275665283, 0.0946061834692955, -0.19707585871219635, -0.18591943383216858, -0.5737667083740234, 0.17395146191120148, -0.013353832066059113, 0.22117112576961517, 0.22961807250976562, 0.2830679416656494, 0.18891720473766327, -0.03841829299926758, 0.16714805364608765, -0.21397553384304047, -0.019150402396917343, -0.31820008158683777, -0.07747305929660797, 0.11097900569438934, -0.390953928232193, -0.22798596322536469, 0.04949676990509033, 0.4995049834251404, 0.42882153391838074, 0.46841883659362793, 0.12013740092515945, 0.06880264729261398, -0.03666682541370392, 0.16710612177848816, -0.09634613990783691, 0.14009389281272888, 0.11965833604335785, -0.06183801218867302, 0.25016212463378906, 0.17754997313022614, 0.0018885508179664612, 0.15043103694915771, 0.2900313138961792, -0.3045153319835663, 0.39380091428756714, 0.2198646068572998, 0.4815284013748169, -0.34924402832984924, -0.2934838533401489, 0.3594183623790741, -0.044186919927597046, -0.1830991506576538, 0.29433703422546387, 0.20025527477264404, -0.09990548342466354, 0.15275859832763672, -0.23567311465740204, -0.04924153536558151, -0.21584534645080566, 0.013082020916044712, -0.2533990740776062, -0.10177871584892273, -0.06658028066158295, 0.1334945559501648, 0.09933806955814362, 0.019572511315345764, 0.28936854004859924, 0.08659408241510391, 0.13574561476707458, 0.19642509520053864, 0.2705962359905243, -0.2291409820318222, 0.0655129998922348, 0.4084843397140503, -0.1550302803516388, 0.014453457668423653, 0.2092733085155487, -0.1412055790424347, -0.08509982377290726, 0.2924254536628723, -0.1688418686389923, -0.24737633764743805, -0.033758603036403656, 0.2199123203754425, -0.6749250888824463, -0.15246279537677765, 0.22137001156806946, -0.21035589277744293, 0.12875813245773315, -0.19704337418079376, -0.01224711537361145, -0.19194668531417847, -0.2976404130458832, -0.17564143240451813, -0.10625172406435013, 0.44913405179977417, -0.23587583005428314, -0.10236513614654541, -0.15225502848625183, -0.17397531867027283, 0.23589038848876953, 0.10881204903125763, 0.05166661739349365, -0.10431434959173203, -0.31893837451934814, -0.13962841033935547, 0.07393050193786621, -0.23318307101726532, -0.5747232437133789, 0.08576265722513199, -0.058321043848991394, 0.4907505512237549, 0.35213741660118103, 0.3040940463542938, -0.22102542221546173, -0.24288196861743927, 0.12969158589839935, -0.13014043867588043, 0.019632816314697266, -0.06372255086898804, -0.24063456058502197, -0.20536331832408905, 0.4354161024093628, -0.007673019543290138, 0.06482438743114471, -0.011470608413219452, 0.005835823714733124, -0.2087113857269287, 0.1196133941411972, -0.30512362718582153, -0.15531077980995178, 0.19941206276416779, 0.5661743879318237, 0.010295972228050232, -0.0027464095037430525, -0.09663989394903183, -0.40243998169898987, 0.3852774202823639, -0.06353957206010818, 0.1093883365392685, 0.03235867619514465, -0.2544022798538208, 0.07243739068508148, -0.22854354977607727, -0.2381916493177414, 0.1735435128211975, 0.10097728669643402, 0.47107207775115967, 0.13388612866401672, -0.2191174477338791, -0.0861188992857933, 0.07380237430334091, -0.38498228788375854, 0.017177240923047066, -0.2908608317375183, 0.20740669965744019, 0.016656946390867233, -0.048340488225221634, -0.1110701635479927, 0.2855120301246643, 0.16721370816230774, 0.12625494599342346, -0.06327012181282043, 0.35178133845329285, 0.37750282883644104, -0.1725124567747116, 0.1655673235654831, 0.48999595642089844, -0.08784769475460052, -0.10380023717880249, -0.1998688280582428, 0.5207356214523315, 0.11445602029561996, 0.02808091789484024, 0.006209574639797211, 0.4076436161994934, -0.03562716022133827, 0.23926138877868652, 0.09363195300102234, -0.019057393074035645, 0.20324759185314178, -0.36347225308418274, -0.13562937080860138, -0.2988699674606323, 0.35306236147880554, 0.12627212703227997, 0.040040869265794754, 0.1103011965751648, 0.11967490613460541, -0.2106354832649231, 0.08917315304279327, -0.0989118218421936, 0.05660661309957504, -0.030504576861858368, 0.2719112038612366, -0.027062037959694862, -0.08829107880592346, 0.6816490292549133, 0.4652112126350403, 0.28676414489746094, 0.04026028513908386, 0.04511435702443123, -0.1751430779695511, -0.10206866264343262, -0.04059522598981857, 0.010307379066944122, 0.09226177632808685, 0.6847397685050964, -0.03888121619820595, -0.2099471092224121, -0.3830486238002777, -0.38520169258117676, 0.05034317821264267, 0.39302489161491394, -0.39305490255355835, -0.1957712471485138, -0.3480164408683777, 0.2055252492427826, -0.2334984987974167, -0.11228730529546738, -0.3593843877315521, -0.4275899827480316, 0.1473638117313385, 0.030684828758239746, -0.09912800788879395, 0.11423596739768982, -0.5860805511474609, 0.0029741227626800537, -0.06070058047771454, -0.3298614025115967, -0.008156783878803253, -0.008315881714224815, 0.19150647521018982, 0.05546119436621666, 0.48339223861694336, -0.16732876002788544, 0.3184078335762024, -0.14810006320476532, -0.10738982260227203, -0.5216304659843445, -0.38730624318122864, -0.14433248341083527, -0.21473656594753265, 0.05276252329349518, 0.3990144729614258, 0.059415094554424286, 0.09226205945014954, -0.27064770460128784, 0.2820095121860504, 0.07014023512601852, -0.3655961751937866, 0.19090239703655243, -0.14902600646018982, -0.05514366924762726, 0.02858196571469307, 0.004231058061122894, 0.15142427384853363, -0.09678231179714203, -0.18397457897663116, 0.28767481446266174, 0.22252757847309113, 0.3205143213272095, 0.06637360155582428, 0.17335636913776398, 0.05137394741177559, 0.30082768201828003, -0.23549918830394745, -0.5980970859527588, 0.4360553026199341, 0.19566474854946136, 0.015022682026028633, 0.1611696034669876, -0.19420957565307617, 0.12814192473888397, 0.3130413889884949, -0.42804795503616333, -0.5185404419898987, -0.21558129787445068, 0.022595997899770737, 0.16114237904548645, -0.022783854976296425, 0.39314529299736023, 0.12074822187423706, -0.21831372380256653, -0.25320449471473694, -0.22067774832248688, 0.19663327932357788, -0.20125877857208252, 0.5872360467910767, -0.19621598720550537, 0.14743712544441223, 0.024615515023469925, 0.3689994812011719, 0.3948134183883667, -0.0737774670124054, 0.068452849984169, 0.09059451520442963, 0.47917404770851135, 0.1474193036556244, -0.1532067060470581, -0.101193368434906, 0.330464243888855, -0.08016403764486313, -0.05008937418460846, -0.07771006226539612, 0.07486861944198608, -0.0008508414030075073, -0.02208869718015194, -0.1989118456840515, -0.022651270031929016, -0.051298707723617554, -0.2498638927936554, 0.223951518535614, -0.09841026365756989, -0.019263051450252533, -0.15913821756839752, -0.32308870553970337, -0.06592202186584473, 0.2207455337047577, 0.007250756025314331, -0.29651254415512085, -0.5668799877166748, -0.03865760937333107, 0.03783205896615982, 0.5244725942611694, 0.253170371055603, 0.3686521649360657, 0.042387913912534714, -0.32800623774528503, -0.06106109917163849, -0.16755171120166779, 0.3448961079120636, -0.6333204507827759, 0.16738271713256836, 0.02977900207042694, -0.03156152740120888, -0.007738638669252396, -0.036911413073539734, -0.051504720002412796, 0.14981040358543396, 0.21377800405025482, 0.2400820255279541, -0.27377447485923767, 0.09756290167570114, 0.1478801667690277, 0.3227669596672058, -0.0923122763633728, -0.26017311215400696, -0.3763442635536194, -0.18980371952056885, -0.15023553371429443, 0.0883968248963356, -0.3371933400630951, 0.1604493409395218, 0.08652793616056442, -0.021371278911828995, -0.12266096472740173, -0.043108224868774414, 0.5148726105690002, -0.05732940137386322, 0.22689476609230042, 0.15825888514518738, 0.15739820897579193, -0.11338150501251221, -0.005338646471500397, 0.3777965009212494, 0.6421530842781067, -0.3209640383720398, -0.26956453919410706, -0.08666377514600754, -0.02672499045729637, 0.03349301964044571, 0.09251799434423447, 0.11179536581039429, 0.015809670090675354, 0.35592594742774963, 0.09684664011001587, -0.004925954155623913, -0.23008540272712708, 0.21307165920734406, 0.0648937001824379, -0.45569342374801636, -0.11353517323732376, -0.20089301466941833, 0.07210034132003784, 0.08457212150096893, 0.2786328196525574, 0.28909969329833984, -0.06362234055995941, 0.09518032521009445, 0.2202221155166626, 0.8011022210121155, 0.1242741197347641, -0.036569248884916306, -0.062439098954200745, -0.0014630742371082306, 0.03758231922984123, 0.10658836364746094, 0.12538020312786102, -0.13032910227775574, -0.4374608099460602, -0.10809469223022461, -0.2783319056034088, 0.49085569381713867, 0.12762895226478577, -0.14130929112434387, 0.2933642566204071, -0.06447111070156097, 0.3546549081802368, -0.010078374296426773, 0.20463570952415466, -0.36797380447387695, 0.06514856219291687, -0.020723741501569748, 0.15993456542491913, -0.02281232178211212, 0.12381923198699951, -0.020524457097053528, 0.11804332584142685, 0.014593508094549179, -0.3763992190361023, -0.2816399931907654, 0.10851217061281204, -0.06534059345722198, 0.0890640839934349, 0.3106710612773895, -0.10534852743148804, -0.20858320593833923, 0.2334529161453247, 0.26096129417419434, 0.3375813663005829, -0.16440898180007935, 0.09134781360626221, 0.2593589127063751, 0.259909987449646, 0.061164677143096924, -0.31759917736053467, 0.35325002670288086, 0.02409978210926056, -0.29725906252861023, 0.2487800121307373, 0.030201051384210587, -0.4848251938819885, 0.1692434847354889, -0.136858731508255, -0.16547144949436188, -0.2104646861553192, -0.1602783501148224, 0.062411729246377945, 0.04421829804778099, -0.28237277269363403, 0.11966875195503235, 0.2428828477859497, -0.31982600688934326, 0.20434752106666565, -0.15699753165245056, -0.24034342169761658, -0.005552772432565689, 0.4269404709339142, 0.40654054284095764, -0.09888379275798798, 0.37621447443962097, -0.38216739892959595, -0.22918035089969635, -0.2479916512966156, 0.01707889884710312, -0.10175681859254837, -0.1905539184808731, 0.0740719884634018, 0.04950860142707825, 0.26455628871917725, 0.2278960794210434, 0.244186669588089, 0.1665794849395752, 0.47384172677993774, -0.04577244445681572, -0.3763848841190338, -0.053423717617988586, -0.08264963328838348, 0.2334587275981903, 0.42153042554855347, -0.2821716368198395, -0.18039092421531677, -0.044413454830646515, -0.03153277933597565, -0.29774749279022217, -0.07468335330486298, -0.3243952691555023, -0.059907831251621246, -0.1409199982881546, 0.0639471560716629, 0.30647948384284973, -0.08258338272571564, 0.20522738993167877, -0.13043135404586792, -0.20224960148334503, -0.16480222344398499, -0.09059327840805054, 0.13762551546096802, 0.18850386142730713, 0.005921777803450823, 0.0722658708691597, -0.18651850521564484, 0.09132790565490723, -0.016065679490566254, 0.06805576384067535, 0.3391928970813751, -0.1600762903690338, 0.1458011418581009, 0.28497523069381714, -0.12647756934165955, 0.08266924321651459, -0.25608500838279724, -0.38774681091308594, -0.09620922803878784, 0.23333874344825745, -0.010919936001300812, -0.05864962562918663, 0.012585557997226715, 0.2005608230829239, 0.19255715608596802, 0.08982706069946289, -0.06311661750078201, 0.18071243166923523, -0.218373104929924, -0.21965932846069336, 0.42327842116355896, 0.19264079630374908, 0.1697726845741272, -0.2186434268951416, -0.028612565249204636, 0.1693209409713745, 0.2163846790790558, -0.40292617678642273, -0.20504304766654968, 0.28028571605682373, 0.10121805965900421, 0.3805212378501892, 0.15413129329681396, 0.015205342322587967, -0.40942516922950745, 0.5462414026260376, -0.028721319511532784, -0.004105331841856241, -0.36619454622268677, 0.32029154896736145, 0.49968764185905457, -0.05371610447764397, -0.1847577542066574, 0.01328930165618658, -0.32119372487068176, 0.12194997817277908, -0.13025560975074768, -0.06897718459367752, 0.5694171786308289, -0.3159571886062622, 0.15160317718982697, -0.40421056747436523, -0.5119750499725342, 0.5467656254768372, 0.1848156899213791, 0.11302629113197327, 0.03093881532549858, 0.15171334147453308, 0.20659971237182617, -0.025727413594722748, 0.41391515731811523, -0.45771706104278564, -0.08956733345985413, -0.09332986921072006, -0.07105095684528351, -0.2222214788198471, -0.24065187573432922, 0.009142190217971802, 0.059295061975717545, 0.14736703038215637, -0.13376249372959137, -0.04074546694755554, -0.04385938495397568, -0.03085535764694214, -0.06307476758956909, 0.15591317415237427, 0.08281062543392181, -0.03764776140451431, -0.2980404198169708, 0.1337958574295044, 0.4297821521759033, 0.08977489173412323, 0.25549182295799255, 0.41572555899620056, 0.49689996242523193, 0.3486098051071167, 0.2711160182952881, 0.1393643021583557, -0.002173919230699539, 0.0014643054455518723, -0.08001770079135895, 0.6884092092514038, -0.12299448251724243, -0.04142291471362114, 0.3877682387828827, 0.12004262208938599, -0.17365436255931854, 0.036095406860113144, -0.2044166773557663, -0.2850836515426636, 0.06841889023780823, 0.5215967297554016, 0.3775181174278259, 0.389662504196167, -0.10746926069259644, 0.17342522740364075, -0.3604956865310669, -0.6644583940505981, 0.2723970115184784, -0.039918672293424606, 0.08988811075687408, 0.08151566982269287, 0.09151585400104523, -0.30569177865982056, 0.18595319986343384, 0.24576817452907562, -0.21112695336341858, -0.3734826147556305, -0.17072606086730957, -0.7457854151725769, 0.3200780749320984, -0.35834836959838867, -0.05078306794166565, -0.26590046286582947, 0.25105175375938416, -0.030854225158691406, 0.01386493630707264, 0.2666723430156708, -0.15246659517288208, -0.15856440365314484, -0.11062437295913696, -0.11170507967472076, 0.09013845771551132, 0.07000218331813812, -0.36137157678604126, -0.054426159709692, -0.3773026168346405, 0.048880062997341156, 0.3439193367958069, 0.12099038809537888, 0.18714095652103424, 0.027043260633945465, -0.16554394364356995, 0.3364656865596771, -0.00940655916929245, 0.12093387544155121, 0.6406881809234619, -0.09010769426822662, -0.13226492702960968, -0.16507959365844727, -0.0010691112838685513, -0.1959172487258911, 0.25546348094940186, 0.08805049955844879, 0.32298970222473145, -0.06096489727497101, 0.11847147345542908, -0.011399681679904461, 0.4154302179813385, 0.062269702553749084, -0.3943665325641632, -0.14481067657470703, 0.3595021963119507, -0.1680120825767517, 0.19356480240821838, -0.1367383599281311, -0.16012194752693176, 0.26854246854782104, 0.3416759669780731, -0.15524034202098846, -0.15767046809196472, 0.5508440732955933, -0.007709117606282234, 0.13254569470882416, -0.2604152262210846, 0.3451995849609375, -0.3007701635360718, -0.07759362459182739, -0.5198216438293457, -0.059933263808488846, 0.48459142446517944, 0.191095232963562, -0.05741775035858154, 0.17890320718288422, -0.3573935329914093, 0.16563525795936584, 0.003932986408472061, -0.19582948088645935, -0.07029557228088379, -0.19738425314426422, 0.008697260171175003, -0.1751287430524826 ]
https://github.com/huggingface/datasets/issues/3848
NonMatchingChecksumError when checksum is None
At a higher level, also note that we are preparing the release of `datasets` version 2.0, and some docs are being updated... In order to add a dataset, I think the most updated instructions are in our official documentation pages: https://huggingface.co/docs/datasets/share
I ran into the following error when adding a new dataset: ```bash expected_checksums = {'https://adversarialglue.github.io/dataset/dev.zip': {'checksum': None, 'num_bytes': 40662}} recorded_checksums = {'https://adversarialglue.github.io/dataset/dev.zip': {'checksum': 'efb4cbd3aa4a87bfaffc310ae951981cc0a36c6c71c6425dd74e5b55f2f325c9', 'num_bytes': 40662}} verification_name = 'dataset source files' def verify_checksums(expected_checksums: Optional[dict], recorded_checksums: dict, verification_name=None): if expected_checksums is None: logger.info("Unable to verify checksums.") return if len(set(expected_checksums) - set(recorded_checksums)) > 0: raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums))) if len(set(recorded_checksums) - set(expected_checksums)) > 0: raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums))) bad_urls = [url for url in expected_checksums if expected_checksums[url] != recorded_checksums[url]] for_verification_name = " for " + verification_name if verification_name is not None else "" if len(bad_urls) > 0: error_msg = "Checksums didn't match" + for_verification_name + ":\n" > raise NonMatchingChecksumError(error_msg + str(bad_urls)) E datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: E ['https://adversarialglue.github.io/dataset/dev.zip'] src/datasets/utils/info_utils.py:40: NonMatchingChecksumError ``` ## Expected results The dataset downloads correctly, and there is no error. ## Actual results Datasets library is looking for a checksum of None, and it gets a non-None checksum, and throws an error. This is clearly a bug.
41
NonMatchingChecksumError when checksum is None I ran into the following error when adding a new dataset: ```bash expected_checksums = {'https://adversarialglue.github.io/dataset/dev.zip': {'checksum': None, 'num_bytes': 40662}} recorded_checksums = {'https://adversarialglue.github.io/dataset/dev.zip': {'checksum': 'efb4cbd3aa4a87bfaffc310ae951981cc0a36c6c71c6425dd74e5b55f2f325c9', 'num_bytes': 40662}} verification_name = 'dataset source files' def verify_checksums(expected_checksums: Optional[dict], recorded_checksums: dict, verification_name=None): if expected_checksums is None: logger.info("Unable to verify checksums.") return if len(set(expected_checksums) - set(recorded_checksums)) > 0: raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums))) if len(set(recorded_checksums) - set(expected_checksums)) > 0: raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums))) bad_urls = [url for url in expected_checksums if expected_checksums[url] != recorded_checksums[url]] for_verification_name = " for " + verification_name if verification_name is not None else "" if len(bad_urls) > 0: error_msg = "Checksums didn't match" + for_verification_name + ":\n" > raise NonMatchingChecksumError(error_msg + str(bad_urls)) E datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: E ['https://adversarialglue.github.io/dataset/dev.zip'] src/datasets/utils/info_utils.py:40: NonMatchingChecksumError ``` ## Expected results The dataset downloads correctly, and there is no error. ## Actual results Datasets library is looking for a checksum of None, and it gets a non-None checksum, and throws an error. This is clearly a bug. At a higher level, also note that we are preparing the release of `datasets` version 2.0, and some docs are being updated... In order to add a dataset, I think the most updated instructions are in our official documentation pages: https://huggingface.co/docs/datasets/share
[ -0.2320745587348938, 0.005118116736412048, -0.0630754828453064, 0.011416986584663391, 0.039370615035295486, -0.0018275007605552673, 0.06372731924057007, 0.21398396790027618, 0.22390511631965637, 0.24077868461608887, 0.2089289128780365, -0.1715058982372284, -0.1793844997882843, -0.16863059997558594, -0.31948986649513245, 0.5820993185043335, 0.009105019271373749, 0.15676382184028625, -0.006325520575046539, -0.11034118384122849, -0.2597428858280182, 0.048444610089063644, -0.0611690878868103, -0.5326396822929382, -0.19205307960510254, 0.2473383992910385, -0.009886311367154121, 0.11497540771961212, -0.12974654138088226, -0.33025264739990234, 0.2777616083621979, 0.12626686692237854, -0.2718392610549927, 0.2832530438899994, -0.00011989539780188352, 0.22091491520404816, 0.2281813770532608, -0.10964035242795944, -0.38994404673576355, -0.13719750940799713, -0.6143534183502197, -0.4995471239089966, -0.33375775814056396, -0.15644150972366333, 0.162965327501297, 0.20581509172916412, -0.02141033671796322, -0.3387086093425751, -0.22934286296367645, 0.11947844177484512, 0.13570614159107208, 0.2888430058956146, -0.04065604880452156, -0.06274885684251785, 0.2102416455745697, 0.05403576046228409, -0.19347000122070312, -0.06336671113967896, 0.266162633895874, 0.0005340622738003731, -0.09127946943044662, 0.1432642936706543, -0.2583862245082855, 0.1313905119895935, 0.1104934960603714, -0.10033243894577026, 0.2735525369644165, -0.07034817337989807, 0.13627728819847107, 0.428672194480896, 0.21230819821357727, -0.04197579622268677, -0.460605263710022, -0.20458847284317017, -0.03515814617276192, -0.2924731969833374, 0.39484894275665283, 0.0946061834692955, -0.19707585871219635, -0.18591943383216858, -0.5737667083740234, 0.17395146191120148, -0.013353832066059113, 0.22117112576961517, 0.22961807250976562, 0.2830679416656494, 0.18891720473766327, -0.03841829299926758, 0.16714805364608765, -0.21397553384304047, -0.019150402396917343, -0.31820008158683777, -0.07747305929660797, 0.11097900569438934, -0.390953928232193, -0.22798596322536469, 0.04949676990509033, 0.4995049834251404, 0.42882153391838074, 0.46841883659362793, 0.12013740092515945, 0.06880264729261398, -0.03666682541370392, 0.16710612177848816, -0.09634613990783691, 0.14009389281272888, 0.11965833604335785, -0.06183801218867302, 0.25016212463378906, 0.17754997313022614, 0.0018885508179664612, 0.15043103694915771, 0.2900313138961792, -0.3045153319835663, 0.39380091428756714, 0.2198646068572998, 0.4815284013748169, -0.34924402832984924, -0.2934838533401489, 0.3594183623790741, -0.044186919927597046, -0.1830991506576538, 0.29433703422546387, 0.20025527477264404, -0.09990548342466354, 0.15275859832763672, -0.23567311465740204, -0.04924153536558151, -0.21584534645080566, 0.013082020916044712, -0.2533990740776062, -0.10177871584892273, -0.06658028066158295, 0.1334945559501648, 0.09933806955814362, 0.019572511315345764, 0.28936854004859924, 0.08659408241510391, 0.13574561476707458, 0.19642509520053864, 0.2705962359905243, -0.2291409820318222, 0.0655129998922348, 0.4084843397140503, -0.1550302803516388, 0.014453457668423653, 0.2092733085155487, -0.1412055790424347, -0.08509982377290726, 0.2924254536628723, -0.1688418686389923, -0.24737633764743805, -0.033758603036403656, 0.2199123203754425, -0.6749250888824463, -0.15246279537677765, 0.22137001156806946, -0.21035589277744293, 0.12875813245773315, -0.19704337418079376, -0.01224711537361145, -0.19194668531417847, -0.2976404130458832, -0.17564143240451813, -0.10625172406435013, 0.44913405179977417, -0.23587583005428314, -0.10236513614654541, -0.15225502848625183, -0.17397531867027283, 0.23589038848876953, 0.10881204903125763, 0.05166661739349365, -0.10431434959173203, -0.31893837451934814, -0.13962841033935547, 0.07393050193786621, -0.23318307101726532, -0.5747232437133789, 0.08576265722513199, -0.058321043848991394, 0.4907505512237549, 0.35213741660118103, 0.3040940463542938, -0.22102542221546173, -0.24288196861743927, 0.12969158589839935, -0.13014043867588043, 0.019632816314697266, -0.06372255086898804, -0.24063456058502197, -0.20536331832408905, 0.4354161024093628, -0.007673019543290138, 0.06482438743114471, -0.011470608413219452, 0.005835823714733124, -0.2087113857269287, 0.1196133941411972, -0.30512362718582153, -0.15531077980995178, 0.19941206276416779, 0.5661743879318237, 0.010295972228050232, -0.0027464095037430525, -0.09663989394903183, -0.40243998169898987, 0.3852774202823639, -0.06353957206010818, 0.1093883365392685, 0.03235867619514465, -0.2544022798538208, 0.07243739068508148, -0.22854354977607727, -0.2381916493177414, 0.1735435128211975, 0.10097728669643402, 0.47107207775115967, 0.13388612866401672, -0.2191174477338791, -0.0861188992857933, 0.07380237430334091, -0.38498228788375854, 0.017177240923047066, -0.2908608317375183, 0.20740669965744019, 0.016656946390867233, -0.048340488225221634, -0.1110701635479927, 0.2855120301246643, 0.16721370816230774, 0.12625494599342346, -0.06327012181282043, 0.35178133845329285, 0.37750282883644104, -0.1725124567747116, 0.1655673235654831, 0.48999595642089844, -0.08784769475460052, -0.10380023717880249, -0.1998688280582428, 0.5207356214523315, 0.11445602029561996, 0.02808091789484024, 0.006209574639797211, 0.4076436161994934, -0.03562716022133827, 0.23926138877868652, 0.09363195300102234, -0.019057393074035645, 0.20324759185314178, -0.36347225308418274, -0.13562937080860138, -0.2988699674606323, 0.35306236147880554, 0.12627212703227997, 0.040040869265794754, 0.1103011965751648, 0.11967490613460541, -0.2106354832649231, 0.08917315304279327, -0.0989118218421936, 0.05660661309957504, -0.030504576861858368, 0.2719112038612366, -0.027062037959694862, -0.08829107880592346, 0.6816490292549133, 0.4652112126350403, 0.28676414489746094, 0.04026028513908386, 0.04511435702443123, -0.1751430779695511, -0.10206866264343262, -0.04059522598981857, 0.010307379066944122, 0.09226177632808685, 0.6847397685050964, -0.03888121619820595, -0.2099471092224121, -0.3830486238002777, -0.38520169258117676, 0.05034317821264267, 0.39302489161491394, -0.39305490255355835, -0.1957712471485138, -0.3480164408683777, 0.2055252492427826, -0.2334984987974167, -0.11228730529546738, -0.3593843877315521, -0.4275899827480316, 0.1473638117313385, 0.030684828758239746, -0.09912800788879395, 0.11423596739768982, -0.5860805511474609, 0.0029741227626800537, -0.06070058047771454, -0.3298614025115967, -0.008156783878803253, -0.008315881714224815, 0.19150647521018982, 0.05546119436621666, 0.48339223861694336, -0.16732876002788544, 0.3184078335762024, -0.14810006320476532, -0.10738982260227203, -0.5216304659843445, -0.38730624318122864, -0.14433248341083527, -0.21473656594753265, 0.05276252329349518, 0.3990144729614258, 0.059415094554424286, 0.09226205945014954, -0.27064770460128784, 0.2820095121860504, 0.07014023512601852, -0.3655961751937866, 0.19090239703655243, -0.14902600646018982, -0.05514366924762726, 0.02858196571469307, 0.004231058061122894, 0.15142427384853363, -0.09678231179714203, -0.18397457897663116, 0.28767481446266174, 0.22252757847309113, 0.3205143213272095, 0.06637360155582428, 0.17335636913776398, 0.05137394741177559, 0.30082768201828003, -0.23549918830394745, -0.5980970859527588, 0.4360553026199341, 0.19566474854946136, 0.015022682026028633, 0.1611696034669876, -0.19420957565307617, 0.12814192473888397, 0.3130413889884949, -0.42804795503616333, -0.5185404419898987, -0.21558129787445068, 0.022595997899770737, 0.16114237904548645, -0.022783854976296425, 0.39314529299736023, 0.12074822187423706, -0.21831372380256653, -0.25320449471473694, -0.22067774832248688, 0.19663327932357788, -0.20125877857208252, 0.5872360467910767, -0.19621598720550537, 0.14743712544441223, 0.024615515023469925, 0.3689994812011719, 0.3948134183883667, -0.0737774670124054, 0.068452849984169, 0.09059451520442963, 0.47917404770851135, 0.1474193036556244, -0.1532067060470581, -0.101193368434906, 0.330464243888855, -0.08016403764486313, -0.05008937418460846, -0.07771006226539612, 0.07486861944198608, -0.0008508414030075073, -0.02208869718015194, -0.1989118456840515, -0.022651270031929016, -0.051298707723617554, -0.2498638927936554, 0.223951518535614, -0.09841026365756989, -0.019263051450252533, -0.15913821756839752, -0.32308870553970337, -0.06592202186584473, 0.2207455337047577, 0.007250756025314331, -0.29651254415512085, -0.5668799877166748, -0.03865760937333107, 0.03783205896615982, 0.5244725942611694, 0.253170371055603, 0.3686521649360657, 0.042387913912534714, -0.32800623774528503, -0.06106109917163849, -0.16755171120166779, 0.3448961079120636, -0.6333204507827759, 0.16738271713256836, 0.02977900207042694, -0.03156152740120888, -0.007738638669252396, -0.036911413073539734, -0.051504720002412796, 0.14981040358543396, 0.21377800405025482, 0.2400820255279541, -0.27377447485923767, 0.09756290167570114, 0.1478801667690277, 0.3227669596672058, -0.0923122763633728, -0.26017311215400696, -0.3763442635536194, -0.18980371952056885, -0.15023553371429443, 0.0883968248963356, -0.3371933400630951, 0.1604493409395218, 0.08652793616056442, -0.021371278911828995, -0.12266096472740173, -0.043108224868774414, 0.5148726105690002, -0.05732940137386322, 0.22689476609230042, 0.15825888514518738, 0.15739820897579193, -0.11338150501251221, -0.005338646471500397, 0.3777965009212494, 0.6421530842781067, -0.3209640383720398, -0.26956453919410706, -0.08666377514600754, -0.02672499045729637, 0.03349301964044571, 0.09251799434423447, 0.11179536581039429, 0.015809670090675354, 0.35592594742774963, 0.09684664011001587, -0.004925954155623913, -0.23008540272712708, 0.21307165920734406, 0.0648937001824379, -0.45569342374801636, -0.11353517323732376, -0.20089301466941833, 0.07210034132003784, 0.08457212150096893, 0.2786328196525574, 0.28909969329833984, -0.06362234055995941, 0.09518032521009445, 0.2202221155166626, 0.8011022210121155, 0.1242741197347641, -0.036569248884916306, -0.062439098954200745, -0.0014630742371082306, 0.03758231922984123, 0.10658836364746094, 0.12538020312786102, -0.13032910227775574, -0.4374608099460602, -0.10809469223022461, -0.2783319056034088, 0.49085569381713867, 0.12762895226478577, -0.14130929112434387, 0.2933642566204071, -0.06447111070156097, 0.3546549081802368, -0.010078374296426773, 0.20463570952415466, -0.36797380447387695, 0.06514856219291687, -0.020723741501569748, 0.15993456542491913, -0.02281232178211212, 0.12381923198699951, -0.020524457097053528, 0.11804332584142685, 0.014593508094549179, -0.3763992190361023, -0.2816399931907654, 0.10851217061281204, -0.06534059345722198, 0.0890640839934349, 0.3106710612773895, -0.10534852743148804, -0.20858320593833923, 0.2334529161453247, 0.26096129417419434, 0.3375813663005829, -0.16440898180007935, 0.09134781360626221, 0.2593589127063751, 0.259909987449646, 0.061164677143096924, -0.31759917736053467, 0.35325002670288086, 0.02409978210926056, -0.29725906252861023, 0.2487800121307373, 0.030201051384210587, -0.4848251938819885, 0.1692434847354889, -0.136858731508255, -0.16547144949436188, -0.2104646861553192, -0.1602783501148224, 0.062411729246377945, 0.04421829804778099, -0.28237277269363403, 0.11966875195503235, 0.2428828477859497, -0.31982600688934326, 0.20434752106666565, -0.15699753165245056, -0.24034342169761658, -0.005552772432565689, 0.4269404709339142, 0.40654054284095764, -0.09888379275798798, 0.37621447443962097, -0.38216739892959595, -0.22918035089969635, -0.2479916512966156, 0.01707889884710312, -0.10175681859254837, -0.1905539184808731, 0.0740719884634018, 0.04950860142707825, 0.26455628871917725, 0.2278960794210434, 0.244186669588089, 0.1665794849395752, 0.47384172677993774, -0.04577244445681572, -0.3763848841190338, -0.053423717617988586, -0.08264963328838348, 0.2334587275981903, 0.42153042554855347, -0.2821716368198395, -0.18039092421531677, -0.044413454830646515, -0.03153277933597565, -0.29774749279022217, -0.07468335330486298, -0.3243952691555023, -0.059907831251621246, -0.1409199982881546, 0.0639471560716629, 0.30647948384284973, -0.08258338272571564, 0.20522738993167877, -0.13043135404586792, -0.20224960148334503, -0.16480222344398499, -0.09059327840805054, 0.13762551546096802, 0.18850386142730713, 0.005921777803450823, 0.0722658708691597, -0.18651850521564484, 0.09132790565490723, -0.016065679490566254, 0.06805576384067535, 0.3391928970813751, -0.1600762903690338, 0.1458011418581009, 0.28497523069381714, -0.12647756934165955, 0.08266924321651459, -0.25608500838279724, -0.38774681091308594, -0.09620922803878784, 0.23333874344825745, -0.010919936001300812, -0.05864962562918663, 0.012585557997226715, 0.2005608230829239, 0.19255715608596802, 0.08982706069946289, -0.06311661750078201, 0.18071243166923523, -0.218373104929924, -0.21965932846069336, 0.42327842116355896, 0.19264079630374908, 0.1697726845741272, -0.2186434268951416, -0.028612565249204636, 0.1693209409713745, 0.2163846790790558, -0.40292617678642273, -0.20504304766654968, 0.28028571605682373, 0.10121805965900421, 0.3805212378501892, 0.15413129329681396, 0.015205342322587967, -0.40942516922950745, 0.5462414026260376, -0.028721319511532784, -0.004105331841856241, -0.36619454622268677, 0.32029154896736145, 0.49968764185905457, -0.05371610447764397, -0.1847577542066574, 0.01328930165618658, -0.32119372487068176, 0.12194997817277908, -0.13025560975074768, -0.06897718459367752, 0.5694171786308289, -0.3159571886062622, 0.15160317718982697, -0.40421056747436523, -0.5119750499725342, 0.5467656254768372, 0.1848156899213791, 0.11302629113197327, 0.03093881532549858, 0.15171334147453308, 0.20659971237182617, -0.025727413594722748, 0.41391515731811523, -0.45771706104278564, -0.08956733345985413, -0.09332986921072006, -0.07105095684528351, -0.2222214788198471, -0.24065187573432922, 0.009142190217971802, 0.059295061975717545, 0.14736703038215637, -0.13376249372959137, -0.04074546694755554, -0.04385938495397568, -0.03085535764694214, -0.06307476758956909, 0.15591317415237427, 0.08281062543392181, -0.03764776140451431, -0.2980404198169708, 0.1337958574295044, 0.4297821521759033, 0.08977489173412323, 0.25549182295799255, 0.41572555899620056, 0.49689996242523193, 0.3486098051071167, 0.2711160182952881, 0.1393643021583557, -0.002173919230699539, 0.0014643054455518723, -0.08001770079135895, 0.6884092092514038, -0.12299448251724243, -0.04142291471362114, 0.3877682387828827, 0.12004262208938599, -0.17365436255931854, 0.036095406860113144, -0.2044166773557663, -0.2850836515426636, 0.06841889023780823, 0.5215967297554016, 0.3775181174278259, 0.389662504196167, -0.10746926069259644, 0.17342522740364075, -0.3604956865310669, -0.6644583940505981, 0.2723970115184784, -0.039918672293424606, 0.08988811075687408, 0.08151566982269287, 0.09151585400104523, -0.30569177865982056, 0.18595319986343384, 0.24576817452907562, -0.21112695336341858, -0.3734826147556305, -0.17072606086730957, -0.7457854151725769, 0.3200780749320984, -0.35834836959838867, -0.05078306794166565, -0.26590046286582947, 0.25105175375938416, -0.030854225158691406, 0.01386493630707264, 0.2666723430156708, -0.15246659517288208, -0.15856440365314484, -0.11062437295913696, -0.11170507967472076, 0.09013845771551132, 0.07000218331813812, -0.36137157678604126, -0.054426159709692, -0.3773026168346405, 0.048880062997341156, 0.3439193367958069, 0.12099038809537888, 0.18714095652103424, 0.027043260633945465, -0.16554394364356995, 0.3364656865596771, -0.00940655916929245, 0.12093387544155121, 0.6406881809234619, -0.09010769426822662, -0.13226492702960968, -0.16507959365844727, -0.0010691112838685513, -0.1959172487258911, 0.25546348094940186, 0.08805049955844879, 0.32298970222473145, -0.06096489727497101, 0.11847147345542908, -0.011399681679904461, 0.4154302179813385, 0.062269702553749084, -0.3943665325641632, -0.14481067657470703, 0.3595021963119507, -0.1680120825767517, 0.19356480240821838, -0.1367383599281311, -0.16012194752693176, 0.26854246854782104, 0.3416759669780731, -0.15524034202098846, -0.15767046809196472, 0.5508440732955933, -0.007709117606282234, 0.13254569470882416, -0.2604152262210846, 0.3451995849609375, -0.3007701635360718, -0.07759362459182739, -0.5198216438293457, -0.059933263808488846, 0.48459142446517944, 0.191095232963562, -0.05741775035858154, 0.17890320718288422, -0.3573935329914093, 0.16563525795936584, 0.003932986408472061, -0.19582948088645935, -0.07029557228088379, -0.19738425314426422, 0.008697260171175003, -0.1751287430524826 ]
https://github.com/huggingface/datasets/issues/3848
NonMatchingChecksumError when checksum is None
Hi @jxmorris12, we have discovered the bug why `None` checksums wrongly appeared when generating the `dataset_infos.json` file: - #3892 The fix will be accessible once this PR merged. And we are planning to do our 2.0 release today. We are also working on updating all our docs for our release today.
I ran into the following error when adding a new dataset: ```bash expected_checksums = {'https://adversarialglue.github.io/dataset/dev.zip': {'checksum': None, 'num_bytes': 40662}} recorded_checksums = {'https://adversarialglue.github.io/dataset/dev.zip': {'checksum': 'efb4cbd3aa4a87bfaffc310ae951981cc0a36c6c71c6425dd74e5b55f2f325c9', 'num_bytes': 40662}} verification_name = 'dataset source files' def verify_checksums(expected_checksums: Optional[dict], recorded_checksums: dict, verification_name=None): if expected_checksums is None: logger.info("Unable to verify checksums.") return if len(set(expected_checksums) - set(recorded_checksums)) > 0: raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums))) if len(set(recorded_checksums) - set(expected_checksums)) > 0: raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums))) bad_urls = [url for url in expected_checksums if expected_checksums[url] != recorded_checksums[url]] for_verification_name = " for " + verification_name if verification_name is not None else "" if len(bad_urls) > 0: error_msg = "Checksums didn't match" + for_verification_name + ":\n" > raise NonMatchingChecksumError(error_msg + str(bad_urls)) E datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: E ['https://adversarialglue.github.io/dataset/dev.zip'] src/datasets/utils/info_utils.py:40: NonMatchingChecksumError ``` ## Expected results The dataset downloads correctly, and there is no error. ## Actual results Datasets library is looking for a checksum of None, and it gets a non-None checksum, and throws an error. This is clearly a bug.
51
NonMatchingChecksumError when checksum is None I ran into the following error when adding a new dataset: ```bash expected_checksums = {'https://adversarialglue.github.io/dataset/dev.zip': {'checksum': None, 'num_bytes': 40662}} recorded_checksums = {'https://adversarialglue.github.io/dataset/dev.zip': {'checksum': 'efb4cbd3aa4a87bfaffc310ae951981cc0a36c6c71c6425dd74e5b55f2f325c9', 'num_bytes': 40662}} verification_name = 'dataset source files' def verify_checksums(expected_checksums: Optional[dict], recorded_checksums: dict, verification_name=None): if expected_checksums is None: logger.info("Unable to verify checksums.") return if len(set(expected_checksums) - set(recorded_checksums)) > 0: raise ExpectedMoreDownloadedFiles(str(set(expected_checksums) - set(recorded_checksums))) if len(set(recorded_checksums) - set(expected_checksums)) > 0: raise UnexpectedDownloadedFile(str(set(recorded_checksums) - set(expected_checksums))) bad_urls = [url for url in expected_checksums if expected_checksums[url] != recorded_checksums[url]] for_verification_name = " for " + verification_name if verification_name is not None else "" if len(bad_urls) > 0: error_msg = "Checksums didn't match" + for_verification_name + ":\n" > raise NonMatchingChecksumError(error_msg + str(bad_urls)) E datasets.utils.info_utils.NonMatchingChecksumError: Checksums didn't match for dataset source files: E ['https://adversarialglue.github.io/dataset/dev.zip'] src/datasets/utils/info_utils.py:40: NonMatchingChecksumError ``` ## Expected results The dataset downloads correctly, and there is no error. ## Actual results Datasets library is looking for a checksum of None, and it gets a non-None checksum, and throws an error. This is clearly a bug. Hi @jxmorris12, we have discovered the bug why `None` checksums wrongly appeared when generating the `dataset_infos.json` file: - #3892 The fix will be accessible once this PR merged. And we are planning to do our 2.0 release today. We are also working on updating all our docs for our release today.
[ -0.2320745587348938, 0.005118116736412048, -0.0630754828453064, 0.011416986584663391, 0.039370615035295486, -0.0018275007605552673, 0.06372731924057007, 0.21398396790027618, 0.22390511631965637, 0.24077868461608887, 0.2089289128780365, -0.1715058982372284, -0.1793844997882843, -0.16863059997558594, -0.31948986649513245, 0.5820993185043335, 0.009105019271373749, 0.15676382184028625, -0.006325520575046539, -0.11034118384122849, -0.2597428858280182, 0.048444610089063644, -0.0611690878868103, -0.5326396822929382, -0.19205307960510254, 0.2473383992910385, -0.009886311367154121, 0.11497540771961212, -0.12974654138088226, -0.33025264739990234, 0.2777616083621979, 0.12626686692237854, -0.2718392610549927, 0.2832530438899994, -0.00011989539780188352, 0.22091491520404816, 0.2281813770532608, -0.10964035242795944, -0.38994404673576355, -0.13719750940799713, -0.6143534183502197, -0.4995471239089966, -0.33375775814056396, -0.15644150972366333, 0.162965327501297, 0.20581509172916412, -0.02141033671796322, -0.3387086093425751, -0.22934286296367645, 0.11947844177484512, 0.13570614159107208, 0.2888430058956146, -0.04065604880452156, -0.06274885684251785, 0.2102416455745697, 0.05403576046228409, -0.19347000122070312, -0.06336671113967896, 0.266162633895874, 0.0005340622738003731, -0.09127946943044662, 0.1432642936706543, -0.2583862245082855, 0.1313905119895935, 0.1104934960603714, -0.10033243894577026, 0.2735525369644165, -0.07034817337989807, 0.13627728819847107, 0.428672194480896, 0.21230819821357727, -0.04197579622268677, -0.460605263710022, -0.20458847284317017, -0.03515814617276192, -0.2924731969833374, 0.39484894275665283, 0.0946061834692955, -0.19707585871219635, -0.18591943383216858, -0.5737667083740234, 0.17395146191120148, -0.013353832066059113, 0.22117112576961517, 0.22961807250976562, 0.2830679416656494, 0.18891720473766327, -0.03841829299926758, 0.16714805364608765, -0.21397553384304047, -0.019150402396917343, -0.31820008158683777, -0.07747305929660797, 0.11097900569438934, -0.390953928232193, -0.22798596322536469, 0.04949676990509033, 0.4995049834251404, 0.42882153391838074, 0.46841883659362793, 0.12013740092515945, 0.06880264729261398, -0.03666682541370392, 0.16710612177848816, -0.09634613990783691, 0.14009389281272888, 0.11965833604335785, -0.06183801218867302, 0.25016212463378906, 0.17754997313022614, 0.0018885508179664612, 0.15043103694915771, 0.2900313138961792, -0.3045153319835663, 0.39380091428756714, 0.2198646068572998, 0.4815284013748169, -0.34924402832984924, -0.2934838533401489, 0.3594183623790741, -0.044186919927597046, -0.1830991506576538, 0.29433703422546387, 0.20025527477264404, -0.09990548342466354, 0.15275859832763672, -0.23567311465740204, -0.04924153536558151, -0.21584534645080566, 0.013082020916044712, -0.2533990740776062, -0.10177871584892273, -0.06658028066158295, 0.1334945559501648, 0.09933806955814362, 0.019572511315345764, 0.28936854004859924, 0.08659408241510391, 0.13574561476707458, 0.19642509520053864, 0.2705962359905243, -0.2291409820318222, 0.0655129998922348, 0.4084843397140503, -0.1550302803516388, 0.014453457668423653, 0.2092733085155487, -0.1412055790424347, -0.08509982377290726, 0.2924254536628723, -0.1688418686389923, -0.24737633764743805, -0.033758603036403656, 0.2199123203754425, -0.6749250888824463, -0.15246279537677765, 0.22137001156806946, -0.21035589277744293, 0.12875813245773315, -0.19704337418079376, -0.01224711537361145, -0.19194668531417847, -0.2976404130458832, -0.17564143240451813, -0.10625172406435013, 0.44913405179977417, -0.23587583005428314, -0.10236513614654541, -0.15225502848625183, -0.17397531867027283, 0.23589038848876953, 0.10881204903125763, 0.05166661739349365, -0.10431434959173203, -0.31893837451934814, -0.13962841033935547, 0.07393050193786621, -0.23318307101726532, -0.5747232437133789, 0.08576265722513199, -0.058321043848991394, 0.4907505512237549, 0.35213741660118103, 0.3040940463542938, -0.22102542221546173, -0.24288196861743927, 0.12969158589839935, -0.13014043867588043, 0.019632816314697266, -0.06372255086898804, -0.24063456058502197, -0.20536331832408905, 0.4354161024093628, -0.007673019543290138, 0.06482438743114471, -0.011470608413219452, 0.005835823714733124, -0.2087113857269287, 0.1196133941411972, -0.30512362718582153, -0.15531077980995178, 0.19941206276416779, 0.5661743879318237, 0.010295972228050232, -0.0027464095037430525, -0.09663989394903183, -0.40243998169898987, 0.3852774202823639, -0.06353957206010818, 0.1093883365392685, 0.03235867619514465, -0.2544022798538208, 0.07243739068508148, -0.22854354977607727, -0.2381916493177414, 0.1735435128211975, 0.10097728669643402, 0.47107207775115967, 0.13388612866401672, -0.2191174477338791, -0.0861188992857933, 0.07380237430334091, -0.38498228788375854, 0.017177240923047066, -0.2908608317375183, 0.20740669965744019, 0.016656946390867233, -0.048340488225221634, -0.1110701635479927, 0.2855120301246643, 0.16721370816230774, 0.12625494599342346, -0.06327012181282043, 0.35178133845329285, 0.37750282883644104, -0.1725124567747116, 0.1655673235654831, 0.48999595642089844, -0.08784769475460052, -0.10380023717880249, -0.1998688280582428, 0.5207356214523315, 0.11445602029561996, 0.02808091789484024, 0.006209574639797211, 0.4076436161994934, -0.03562716022133827, 0.23926138877868652, 0.09363195300102234, -0.019057393074035645, 0.20324759185314178, -0.36347225308418274, -0.13562937080860138, -0.2988699674606323, 0.35306236147880554, 0.12627212703227997, 0.040040869265794754, 0.1103011965751648, 0.11967490613460541, -0.2106354832649231, 0.08917315304279327, -0.0989118218421936, 0.05660661309957504, -0.030504576861858368, 0.2719112038612366, -0.027062037959694862, -0.08829107880592346, 0.6816490292549133, 0.4652112126350403, 0.28676414489746094, 0.04026028513908386, 0.04511435702443123, -0.1751430779695511, -0.10206866264343262, -0.04059522598981857, 0.010307379066944122, 0.09226177632808685, 0.6847397685050964, -0.03888121619820595, -0.2099471092224121, -0.3830486238002777, -0.38520169258117676, 0.05034317821264267, 0.39302489161491394, -0.39305490255355835, -0.1957712471485138, -0.3480164408683777, 0.2055252492427826, -0.2334984987974167, -0.11228730529546738, -0.3593843877315521, -0.4275899827480316, 0.1473638117313385, 0.030684828758239746, -0.09912800788879395, 0.11423596739768982, -0.5860805511474609, 0.0029741227626800537, -0.06070058047771454, -0.3298614025115967, -0.008156783878803253, -0.008315881714224815, 0.19150647521018982, 0.05546119436621666, 0.48339223861694336, -0.16732876002788544, 0.3184078335762024, -0.14810006320476532, -0.10738982260227203, -0.5216304659843445, -0.38730624318122864, -0.14433248341083527, -0.21473656594753265, 0.05276252329349518, 0.3990144729614258, 0.059415094554424286, 0.09226205945014954, -0.27064770460128784, 0.2820095121860504, 0.07014023512601852, -0.3655961751937866, 0.19090239703655243, -0.14902600646018982, -0.05514366924762726, 0.02858196571469307, 0.004231058061122894, 0.15142427384853363, -0.09678231179714203, -0.18397457897663116, 0.28767481446266174, 0.22252757847309113, 0.3205143213272095, 0.06637360155582428, 0.17335636913776398, 0.05137394741177559, 0.30082768201828003, -0.23549918830394745, -0.5980970859527588, 0.4360553026199341, 0.19566474854946136, 0.015022682026028633, 0.1611696034669876, -0.19420957565307617, 0.12814192473888397, 0.3130413889884949, -0.42804795503616333, -0.5185404419898987, -0.21558129787445068, 0.022595997899770737, 0.16114237904548645, -0.022783854976296425, 0.39314529299736023, 0.12074822187423706, -0.21831372380256653, -0.25320449471473694, -0.22067774832248688, 0.19663327932357788, -0.20125877857208252, 0.5872360467910767, -0.19621598720550537, 0.14743712544441223, 0.024615515023469925, 0.3689994812011719, 0.3948134183883667, -0.0737774670124054, 0.068452849984169, 0.09059451520442963, 0.47917404770851135, 0.1474193036556244, -0.1532067060470581, -0.101193368434906, 0.330464243888855, -0.08016403764486313, -0.05008937418460846, -0.07771006226539612, 0.07486861944198608, -0.0008508414030075073, -0.02208869718015194, -0.1989118456840515, -0.022651270031929016, -0.051298707723617554, -0.2498638927936554, 0.223951518535614, -0.09841026365756989, -0.019263051450252533, -0.15913821756839752, -0.32308870553970337, -0.06592202186584473, 0.2207455337047577, 0.007250756025314331, -0.29651254415512085, -0.5668799877166748, -0.03865760937333107, 0.03783205896615982, 0.5244725942611694, 0.253170371055603, 0.3686521649360657, 0.042387913912534714, -0.32800623774528503, -0.06106109917163849, -0.16755171120166779, 0.3448961079120636, -0.6333204507827759, 0.16738271713256836, 0.02977900207042694, -0.03156152740120888, -0.007738638669252396, -0.036911413073539734, -0.051504720002412796, 0.14981040358543396, 0.21377800405025482, 0.2400820255279541, -0.27377447485923767, 0.09756290167570114, 0.1478801667690277, 0.3227669596672058, -0.0923122763633728, -0.26017311215400696, -0.3763442635536194, -0.18980371952056885, -0.15023553371429443, 0.0883968248963356, -0.3371933400630951, 0.1604493409395218, 0.08652793616056442, -0.021371278911828995, -0.12266096472740173, -0.043108224868774414, 0.5148726105690002, -0.05732940137386322, 0.22689476609230042, 0.15825888514518738, 0.15739820897579193, -0.11338150501251221, -0.005338646471500397, 0.3777965009212494, 0.6421530842781067, -0.3209640383720398, -0.26956453919410706, -0.08666377514600754, -0.02672499045729637, 0.03349301964044571, 0.09251799434423447, 0.11179536581039429, 0.015809670090675354, 0.35592594742774963, 0.09684664011001587, -0.004925954155623913, -0.23008540272712708, 0.21307165920734406, 0.0648937001824379, -0.45569342374801636, -0.11353517323732376, -0.20089301466941833, 0.07210034132003784, 0.08457212150096893, 0.2786328196525574, 0.28909969329833984, -0.06362234055995941, 0.09518032521009445, 0.2202221155166626, 0.8011022210121155, 0.1242741197347641, -0.036569248884916306, -0.062439098954200745, -0.0014630742371082306, 0.03758231922984123, 0.10658836364746094, 0.12538020312786102, -0.13032910227775574, -0.4374608099460602, -0.10809469223022461, -0.2783319056034088, 0.49085569381713867, 0.12762895226478577, -0.14130929112434387, 0.2933642566204071, -0.06447111070156097, 0.3546549081802368, -0.010078374296426773, 0.20463570952415466, -0.36797380447387695, 0.06514856219291687, -0.020723741501569748, 0.15993456542491913, -0.02281232178211212, 0.12381923198699951, -0.020524457097053528, 0.11804332584142685, 0.014593508094549179, -0.3763992190361023, -0.2816399931907654, 0.10851217061281204, -0.06534059345722198, 0.0890640839934349, 0.3106710612773895, -0.10534852743148804, -0.20858320593833923, 0.2334529161453247, 0.26096129417419434, 0.3375813663005829, -0.16440898180007935, 0.09134781360626221, 0.2593589127063751, 0.259909987449646, 0.061164677143096924, -0.31759917736053467, 0.35325002670288086, 0.02409978210926056, -0.29725906252861023, 0.2487800121307373, 0.030201051384210587, -0.4848251938819885, 0.1692434847354889, -0.136858731508255, -0.16547144949436188, -0.2104646861553192, -0.1602783501148224, 0.062411729246377945, 0.04421829804778099, -0.28237277269363403, 0.11966875195503235, 0.2428828477859497, -0.31982600688934326, 0.20434752106666565, -0.15699753165245056, -0.24034342169761658, -0.005552772432565689, 0.4269404709339142, 0.40654054284095764, -0.09888379275798798, 0.37621447443962097, -0.38216739892959595, -0.22918035089969635, -0.2479916512966156, 0.01707889884710312, -0.10175681859254837, -0.1905539184808731, 0.0740719884634018, 0.04950860142707825, 0.26455628871917725, 0.2278960794210434, 0.244186669588089, 0.1665794849395752, 0.47384172677993774, -0.04577244445681572, -0.3763848841190338, -0.053423717617988586, -0.08264963328838348, 0.2334587275981903, 0.42153042554855347, -0.2821716368198395, -0.18039092421531677, -0.044413454830646515, -0.03153277933597565, -0.29774749279022217, -0.07468335330486298, -0.3243952691555023, -0.059907831251621246, -0.1409199982881546, 0.0639471560716629, 0.30647948384284973, -0.08258338272571564, 0.20522738993167877, -0.13043135404586792, -0.20224960148334503, -0.16480222344398499, -0.09059327840805054, 0.13762551546096802, 0.18850386142730713, 0.005921777803450823, 0.0722658708691597, -0.18651850521564484, 0.09132790565490723, -0.016065679490566254, 0.06805576384067535, 0.3391928970813751, -0.1600762903690338, 0.1458011418581009, 0.28497523069381714, -0.12647756934165955, 0.08266924321651459, -0.25608500838279724, -0.38774681091308594, -0.09620922803878784, 0.23333874344825745, -0.010919936001300812, -0.05864962562918663, 0.012585557997226715, 0.2005608230829239, 0.19255715608596802, 0.08982706069946289, -0.06311661750078201, 0.18071243166923523, -0.218373104929924, -0.21965932846069336, 0.42327842116355896, 0.19264079630374908, 0.1697726845741272, -0.2186434268951416, -0.028612565249204636, 0.1693209409713745, 0.2163846790790558, -0.40292617678642273, -0.20504304766654968, 0.28028571605682373, 0.10121805965900421, 0.3805212378501892, 0.15413129329681396, 0.015205342322587967, -0.40942516922950745, 0.5462414026260376, -0.028721319511532784, -0.004105331841856241, -0.36619454622268677, 0.32029154896736145, 0.49968764185905457, -0.05371610447764397, -0.1847577542066574, 0.01328930165618658, -0.32119372487068176, 0.12194997817277908, -0.13025560975074768, -0.06897718459367752, 0.5694171786308289, -0.3159571886062622, 0.15160317718982697, -0.40421056747436523, -0.5119750499725342, 0.5467656254768372, 0.1848156899213791, 0.11302629113197327, 0.03093881532549858, 0.15171334147453308, 0.20659971237182617, -0.025727413594722748, 0.41391515731811523, -0.45771706104278564, -0.08956733345985413, -0.09332986921072006, -0.07105095684528351, -0.2222214788198471, -0.24065187573432922, 0.009142190217971802, 0.059295061975717545, 0.14736703038215637, -0.13376249372959137, -0.04074546694755554, -0.04385938495397568, -0.03085535764694214, -0.06307476758956909, 0.15591317415237427, 0.08281062543392181, -0.03764776140451431, -0.2980404198169708, 0.1337958574295044, 0.4297821521759033, 0.08977489173412323, 0.25549182295799255, 0.41572555899620056, 0.49689996242523193, 0.3486098051071167, 0.2711160182952881, 0.1393643021583557, -0.002173919230699539, 0.0014643054455518723, -0.08001770079135895, 0.6884092092514038, -0.12299448251724243, -0.04142291471362114, 0.3877682387828827, 0.12004262208938599, -0.17365436255931854, 0.036095406860113144, -0.2044166773557663, -0.2850836515426636, 0.06841889023780823, 0.5215967297554016, 0.3775181174278259, 0.389662504196167, -0.10746926069259644, 0.17342522740364075, -0.3604956865310669, -0.6644583940505981, 0.2723970115184784, -0.039918672293424606, 0.08988811075687408, 0.08151566982269287, 0.09151585400104523, -0.30569177865982056, 0.18595319986343384, 0.24576817452907562, -0.21112695336341858, -0.3734826147556305, -0.17072606086730957, -0.7457854151725769, 0.3200780749320984, -0.35834836959838867, -0.05078306794166565, -0.26590046286582947, 0.25105175375938416, -0.030854225158691406, 0.01386493630707264, 0.2666723430156708, -0.15246659517288208, -0.15856440365314484, -0.11062437295913696, -0.11170507967472076, 0.09013845771551132, 0.07000218331813812, -0.36137157678604126, -0.054426159709692, -0.3773026168346405, 0.048880062997341156, 0.3439193367958069, 0.12099038809537888, 0.18714095652103424, 0.027043260633945465, -0.16554394364356995, 0.3364656865596771, -0.00940655916929245, 0.12093387544155121, 0.6406881809234619, -0.09010769426822662, -0.13226492702960968, -0.16507959365844727, -0.0010691112838685513, -0.1959172487258911, 0.25546348094940186, 0.08805049955844879, 0.32298970222473145, -0.06096489727497101, 0.11847147345542908, -0.011399681679904461, 0.4154302179813385, 0.062269702553749084, -0.3943665325641632, -0.14481067657470703, 0.3595021963119507, -0.1680120825767517, 0.19356480240821838, -0.1367383599281311, -0.16012194752693176, 0.26854246854782104, 0.3416759669780731, -0.15524034202098846, -0.15767046809196472, 0.5508440732955933, -0.007709117606282234, 0.13254569470882416, -0.2604152262210846, 0.3451995849609375, -0.3007701635360718, -0.07759362459182739, -0.5198216438293457, -0.059933263808488846, 0.48459142446517944, 0.191095232963562, -0.05741775035858154, 0.17890320718288422, -0.3573935329914093, 0.16563525795936584, 0.003932986408472061, -0.19582948088645935, -0.07029557228088379, -0.19738425314426422, 0.008697260171175003, -0.1751287430524826 ]